1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Turn the 'fetch_register' linux target op into a method of
6 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
7 (class linux_process_target) <low_fetch_register>: Declare.
8 * linux-x86-low.cc (the_low_target)
9 * linux-aarch64-low.cc (the_low_target)
10 * linux-arm-low.cc (the_low_target)
11 * linux-bfin-low.cc (the_low_target)
12 * linux-cris-low.cc (the_low_target)
13 * linux-crisv32-low.cc (the_low_target)
14 * linux-m32r-low.cc (the_low_target)
15 * linux-m68k-low.cc (the_low_target)
16 * linux-nios2-low.cc (the_low_target)
17 * linux-ppc-low.cc (the_low_target)
18 * linux-s390-low.cc (the_low_target)
19 * linux-sh-low.cc (the_low_target)
20 * linux-sparc-low.cc (the_low_target)
21 * linux-tic6x-low.cc (the_low_target)
22 * linux-tile-low.cc (the_low_target)
23 * linux-xtensa-low.cc (the_low_target): Remove the op field.
24 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
26 (ia64_fetch_register): Turn into...
27 (ia64_target::low_fetch_register): ...this.
28 (the_low_target): Remove the op field.
29 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
31 (mips_fetch_register): Turn into...
32 (mips_target::low_fetch_register): ...this.
33 (the_low_target): Remove the op field.
34 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
36 (riscv_fetch_register): Turn into...
37 (riscv_target::low_fetch_register): ...this.
38 (the_low_target): Remove the op field.
40 Update the callers below.
42 * linux-low.cc (linux_process_target::fetch_registers)
43 (linux_process_target::low_fetch_register)
45 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
47 Turn the 'cannot_fetch_register' and 'cannot_store_register'
48 linux target ops into methods of linux_process_target.
50 * linux-low.h (struct linux_target_ops): Remove the low target ops.
51 (class linux_process_target) <fetch_register>
53 <usr_fetch_inferior_registers>
54 <usr_store_inferior_registers>
55 <low_cannot_fetch_register>
56 <low_cannot_fetch_register> Declare.
57 * linux-low.cc (fetch_register): Turn into...
58 (linux_process_target::fetch_register): ...this.
59 (store_register): Turn into ...
60 (linux_process_target::store_register): ...this.
61 (usr_fetch_inferior_registers): Turn into...
62 (linux_process_target::usr_fetch_inferior_registers): ...this.
63 (usr_store_inferior_registers): Turn into...
64 (linux_process_target::usr_store_inferior_registers): ...this.
65 * linux-x86-low.cc (class x86_target)
66 <low_cannot_fetch_register>
67 <low_cannot_store_register>: Declare.
68 (x86_cannot_store_register): Turn into...
69 (x86_target::low_cannot_store_register): ...this.
70 (x86_cannot_fetch_register): Turn into...
71 (x86_target::low_cannot_fetch_register): ...this.
72 (the_low_target): Remove the target op fields.
73 * linux-aarch64-low.cc (class aarch64_target)
74 <low_cannot_fetch_register>
75 <low_cannot_store_register>: Declare.
76 (aarch64_target::low_cannot_fetch_register)
77 (aarch64_target::low_cannot_store_register): Define.
78 (the_low_target): Remove the op fields.
79 * linux-arm-low.cc (class arm_target)
80 <low_cannot_fetch_register>
81 <low_cannot_store_register>: Declare.
82 (arm_cannot_fetch_register): Turn into...
83 (arm_target::low_cannot_fetch_register): ...this.
84 (arm_cannot_store_register): Turn into...
85 (arm_target::low_cannot_store_register): ...this.
86 (the_low_target): Remove the op fields.
87 * linux-bfin-low.cc (class bfin_target)
88 <low_cannot_fetch_register>
89 <low_cannot_store_register>: Declare.
90 (bfin_cannot_fetch_register): Turn into...
91 (bfin_target::low_cannot_fetch_register): ...this.
92 (bfin_cannot_store_register): Turn into...
93 (bfin_target::low_cannot_store_register): ...this.
94 (the_low_target): Remove the op fields.
95 * linux-cris-low.cc (class cris_target)
96 <low_cannot_fetch_register>
97 <low_cannot_store_register>: Declare.
98 (cris_cannot_fetch_register): Turn into...
99 (cris_target::low_cannot_fetch_register): ...this.
100 (cris_cannot_store_register): Turn into...
101 (cris_target::low_cannot_store_register): ...this.
102 (the_low_target): Remove the op fields.
103 * linux-crisv32-low.cc (class crisv32_target)
104 <low_cannot_fetch_register>
105 <low_cannot_store_register>: Declare.
106 (crisv32_target::low_cannot_fetch_register)
107 (crisv32_target::low_cannot_store_register): Define.
108 (the_low_target): Remove the op fields.
109 * linux-ia64-low.cc (class ia64_target)
110 <low_cannot_fetch_register>
111 <low_cannot_store_register>: Declare.
112 (ia64_cannot_fetch_register): Turn into...
113 (ia64_target::low_cannot_fetch_register): ...this.
114 (ia64_cannot_store_register): Turn into...
115 (ia64_target::low_cannot_store_register): ...this.
116 (the_low_target): Remove the op fields.
117 * linux-m32r-low.cc (class m32r_target)
118 <low_cannot_fetch_register>
119 <low_cannot_store_register>: Declare.
120 (m32r_cannot_fetch_register): Turn into...
121 (m32r_target::low_cannot_fetch_register): ...this.
122 (m32r_cannot_store_register): Turn into...
123 (m32r_target::low_cannot_store_register): ...this.
124 (the_low_target): Remove the op fields.
125 * linux-m68k-low.cc (class m68k_target)
126 <low_cannot_fetch_register>
127 <low_cannot_store_register>: Declare.
128 (m68k_cannot_fetch_register): Turn into...
129 (m68k_target::low_cannot_fetch_register): ...this.
130 (m68k_cannot_store_register): Turn into...
131 (m68k_target::low_cannot_store_register): ...this.
132 (the_low_target): Remove the op fields.
133 * linux-mips-low.cc (class mips_target)
134 <low_cannot_fetch_register>
135 <low_cannot_store_register>: Declare.
136 (mips_cannot_fetch_register): Turn into...
137 (mips_target::low_cannot_fetch_register): ...this.
138 (mips_cannot_store_register): Turn into...
139 (mips_target::low_cannot_store_register): ...this.
140 (get_usrregs_info): Inline at the call sites in
141 low_cannot_fetch_register and low_cannot_store_register,
143 (the_low_target): Remove the op fields.
144 * linux-nios2-low.cc (class nios2_target)
145 <low_cannot_fetch_register>
146 <low_cannot_store_register>: Declare.
147 (nios2_cannot_fetch_register): Turn into...
148 (nios2_target::low_cannot_fetch_register): ...this.
149 (nios2_cannot_store_register): Turn into...
150 (nios2_target::low_cannot_store_register): ...this.
151 (the_low_target): Remove the op fields.
152 * linux-ppc-low.cc (class ppc_target)
153 <low_cannot_fetch_register>
154 <low_cannot_store_register>: Declare.
155 (ppc_cannot_fetch_register): Turn into...
156 (ppc_target::low_cannot_fetch_register): ...this.
157 (ppc_cannot_store_register): Turn into...
158 (ppc_target::low_cannot_store_register): ...this.
159 (the_low_target): Remove the op fields.
160 * linux-riscv-low.cc (class riscv_target)
161 <low_cannot_fetch_register>
162 <low_cannot_store_register>: Declare.
163 (riscv_target::low_cannot_fetch_register)
164 (riscv_target::low_cannot_store_register): Define.
165 (the_low_target): Remove the op fields.
166 * linux-s390-low.cc (class s390_target)
167 <low_cannot_fetch_register>
168 <low_cannot_store_register>: Declare.
169 (s390_cannot_fetch_register): Turn into...
170 (s390_target::low_cannot_fetch_register): ...this.
171 (s390_cannot_store_register): Turn into...
172 (s390_target::low_cannot_store_register): ...this.
173 (the_low_target): Remove the op fields.
174 * linux-sh-low.cc (class sh_target)
175 <low_cannot_fetch_register>
176 <low_cannot_store_register>: Declare.
177 (sh_cannot_fetch_register): Turn into...
178 (sh_target::low_cannot_fetch_register): ...this.
179 (sh_cannot_store_register): Turn into...
180 (sh_target::low_cannot_store_register): ...this.
181 (the_low_target): Remove the op fields.
182 * linux-sparc-low.cc (class sparc_target)
183 <low_cannot_fetch_register>
184 <low_cannot_store_register>: Declare.
185 (sparc_cannot_fetch_register): Turn into...
186 (sparc_target::low_cannot_fetch_register): ...this.
187 (sparc_cannot_store_register): Turn into...
188 (sparc_target::low_cannot_store_register): ...this.
189 (the_low_target): Remove the op fields.
190 * linux-tic6x-low.cc (class tic6x_target)
191 <low_cannot_fetch_register>
192 <low_cannot_store_register>: Declare.
193 (tic6x_cannot_fetch_register): Turn into...
194 (tic6x_target::low_cannot_fetch_register): ...this.
195 (tic6x_cannot_store_register): Turn into...
196 (tic6x_target::low_cannot_store_register): ...this.
197 (the_low_target): Remove the op fields.
198 * linux-tile-low.cc (class tile_target)
199 <low_cannot_fetch_register>
200 <low_cannot_store_register>: Declare.
201 (tile_cannot_fetch_register): Turn into...
202 (tile_target::low_cannot_fetch_register): ...this.
203 (tile_cannot_store_register): Turn into...
204 (tile_target::low_cannot_store_register): ...this.
205 (the_low_target): Remove the op fields.
206 * linux-xtensa-low.cc (class xtensa_target)
207 <low_cannot_fetch_register>
208 <low_cannot_store_register>: Declare.
209 (xtensa_target::low_cannot_fetch_register)
210 (xtensa_target::low_cannot_store_register): Define.
211 (the_low_target): Remove the op fields.
213 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
215 Turn the 'regs_info' linux target op into a method of
216 linux_process_target.
218 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
219 (class linux_process_target) <get_regs_info>: Define.
221 Update the callers below.
223 * linux-low.cc (linux_process_target::fetch_registers)
224 (linux_process_target::store_registers)
225 * proc-service.cc (gregset_info)
227 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
228 (x86_linux_regs_info): Turn into ...
229 (x86_target::get_regs_info): ...this.
230 (the_low_target): Remove the op field.
231 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
233 (aarch64_regs_info): Turn into ...
234 (aarch64_target::get_regs_info): ...this.
235 (the_low_target): Remove the op field.
236 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
237 (arm_regs_info): Turn into ...
238 (arm_target::get_regs_info): ...this.
239 (the_low_target): Remove the op field.
240 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
241 (bfin_regs_info): Turn into ...
242 (bfin_target::get_regs_info): ...this.
243 (the_low_target): Remove the op field.
244 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
245 (cris_regs_info): Turn into ...
246 (cris_target::get_regs_info): ...this.
247 (the_low_target): Remove the op field.
248 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
250 (crisv32_regs_info): Turn into ...
251 (crisv32_target::get_regs_info): ...this.
252 (the_low_target): Remove the op field.
253 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
254 (ia64_regs_info): Turn into ...
255 (ia64_target::get_regs_info): ...this.
256 (the_low_target): Remove the op field.
257 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
258 (m32r_regs_info): Turn into ...
259 (m32r_target::get_regs_info): ...this.
260 (the_low_target): Remove the op field.
261 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
262 (m68k_regs_info): Turn into ...
263 (m68k_target::get_regs_info): ...this.
264 (the_low_target): Remove the op field.
265 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
266 (mips_regs_info): Turn into ...
267 (mips_target::get_regs_info): ...this.
268 (the_low_target): Remove the op field.
269 (get_usrregs_info): Update the call to the op.
270 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
271 (nios2_regs_info): Turn into ...
272 (nios2_target::get_regs_info): ...this.
273 (the_low_target): Remove the op field.
274 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
275 (ppc_regs_info): Turn into ...
276 (ppc_target::get_regs_info): ...this.
277 (the_low_target): Remove the op field.
278 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
279 (riscv_regs_info): Turn into ...
280 (riscv_target::get_regs_info): ...this.
281 (the_low_target): Remove the op field.
282 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
283 (s390_regs_info): Turn into ...
284 (s390_target::get_regs_info): ...this.
285 (the_low_target): Remove the op field.
286 (s390_collect_ptrace_register)
287 (s390_supply_ptrace_register)
288 (s390_fill_gregset): Update the call to the op.
289 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
290 (sh_regs_info): Turn into ...
291 (sh_target::get_regs_info): ...this.
292 (the_low_target): Remove the op field.
293 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
294 (sparc_regs_info): Turn into ...
295 (sparc_target::get_regs_info): ...this.
296 (the_low_target): Remove the op field.
297 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
298 (tic6x_regs_info): Turn into ...
299 (tic6x_target::get_regs_info): ...this.
300 (the_low_target): Remove the op field.
301 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
302 (tile_regs_info): Turn into ...
303 (tile_target::get_regs_info): ...this.
304 (the_low_target): Remove the op field.
305 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
307 (xtensa_regs_info): Turn into ...
308 (xtensa_target::get_regs_info): ...this.
309 (the_low_target): Remove the op field.
311 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
313 Turn the 'arch_setup' linux target op into a method of
314 linux_process_target.
316 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
317 (class linux_process_target) <arch_setup_thread>
318 <low_arch_setup>: New declarations.
319 * linux-low.cc (linux_arch_setup): Delete.
320 (linux_arch_setup_thread): Turn into...
321 (linux_process_target::arch_setup_thread): ... this.
323 Update the callers below.
325 (linux_process_target::handle_extended_wait)
326 (linux_process_target::post_create_inferior)
327 (linux_process_target::filter_event)
329 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
331 (x86_linux_update_xmltarget): Turn into...
332 (x86_target::update_xmltarget): ...this.
333 (x86_linux_process_qsupported): Update the call to
334 x86_linux_update_xmltarget.
335 (x86_arch_setup): Turn into ...
336 (x86_target::low_arch_setup): ...this.
337 (the_low_target): Remove the op field.
338 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
340 (aarch64_arch_setup): Turn into ...
341 (aarch64_target::low_arch_setup): ...this.
342 (the_low_target): Remove the op field.
343 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
345 (arm_arch_setup): Turn into ...
346 (arm_target::low_arch_setup): ...this.
347 (the_low_target): Remove the op field.
348 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
350 (bfin_arch_setup): Turn into ...
351 (bfin_target::low_arch_setup): ...this.
352 (the_low_target): Remove the op field.
353 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
355 (cris_arch_setup): Turn into ...
356 (cris_target::low_arch_setup): ...this.
357 (the_low_target): Remove the op field.
358 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
360 (crisv32_arch_setup): Turn into ...
361 (crisv32_target::low_arch_setup): ...this.
362 (the_low_target): Remove the op field.
363 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
365 (ia64_arch_setup): Turn into ...
366 (ia64_target::low_arch_setup): ...this.
367 (the_low_target): Remove the op field.
368 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
370 (m32r_arch_setup): Turn into ...
371 (m32r_target::low_arch_setup): ...this.
372 (the_low_target): Remove the op field.
373 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
375 (m68k_arch_setup): Turn into ...
376 (m68k_target::low_arch_setup): ...this.
377 (the_low_target): Remove the op field.
378 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
380 (mips_arch_setup): Turn into ...
381 (mips_target::low_arch_setup): ...this.
382 (the_low_target): Remove the op field.
383 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
385 (nios2_arch_setup): Turn into ...
386 (nios2_target::low_arch_setup): ...this.
387 (the_low_target): Remove the op field.
388 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
390 (ppc_arch_setup): Turn into ...
391 (ppc_target::low_arch_setup): ...this.
392 (the_low_target): Remove the op field.
393 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
395 (riscv_arch_setup): Turn into ...
396 (riscv_target::low_arch_setup): ...this.
397 (the_low_target): Remove the op field.
398 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
400 (s390_arch_setup): Turn into ...
401 (s390_target::low_arch_setup): ...this.
402 (the_low_target): Remove the op field.
403 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
405 (sh_arch_setup): Turn into ...
406 (sh_target::low_arch_setup): ...this.
407 (the_low_target): Remove the op field.
408 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
410 (sparc_arch_setup): Turn into ...
411 (sparc_target::low_arch_setup): ...this.
412 (the_low_target): Remove the op field.
413 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
415 (tic6x_arch_setup): Turn into ...
416 (tic6x_target::low_arch_setup): ...this.
417 (the_low_target): Remove the op field.
418 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
420 (tile_arch_setup): Turn into ...
421 (tile_target::low_arch_setup): ...this.
422 (the_low_target): Remove the op field.
423 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
425 (xtensa_arch_setup): Turn into ...
426 (xtensa_target::low_arch_setup): ...this.
427 (the_low_target): Remove the op field.
429 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
431 * linux-low.h (the_linux_target): New extern declaration.
432 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
434 (the_linux_target): Remove.
435 * linux-x86-low.cc (class x86_target): New class.
436 (the_x86_target): New static object.
437 (the_linux_target): Define as pointer to the_x86_target.
438 * linux-aarch64-low.cc (class aarch64_target): New class.
439 (the_aarch64_target): New static object.
440 (the_linux_target): Define as pointer to the_aarch64_target.
441 * linux-arm-low.cc (class arm_target): New class.
442 (the_arm_target): New static object.
443 (the_linux_target): Define as pointer to the_arm_target.
444 * linux-bfin-low.cc (class bfin_target): New class.
445 (the_bfin_target): New static object.
446 (the_linux_target): Define as pointer to the_bfin_target.
447 * linux-cris-low.cc (class cris_target): New class.
448 (the_cris_target): New static object.
449 (the_linux_target): Define as pointer to the_cris_target.
450 * linux-crisv32-low.cc (class crisv32_target): New class.
451 (the_crisv32_target): New static object.
452 (the_linux_target): Define as pointer to the_crisv32_target.
453 * linux-ia64-low.cc (class ia64_target): New class.
454 (the_ia64_target): New static object.
455 (the_linux_target): Define as pointer to the_ia64_target.
456 * linux-m32r-low.cc (class m32r_target): New class.
457 (the_m32r_target): New static object.
458 (the_linux_target): Define as pointer to the_m32r_target.
459 * linux-m68k-low.cc (class m68k_target): New class.
460 (the_m68k_target): New static object.
461 (the_linux_target): Define as pointer to the_m68k_target.
462 * linux-mips-low.cc (class mips_target): New class.
463 (the_mips_target): New static object.
464 (the_linux_target): Define as pointer to the_mips_target.
465 * linux-nios2-low.cc (class nios2_target): New class.
466 (the_nios2_target): New static object.
467 (the_linux_target): Define as pointer to the_nios2_target.
468 * linux-ppc-low.cc (class ppc_target): New class.
469 (the_ppc_target): New static object.
470 (the_linux_target): Define as pointer to the_ppc_target.
471 * linux-riscv-low.cc (class riscv_target): New class.
472 (the_riscv_target): New static object.
473 (the_linux_target): Define as pointer to the_riscv_target.
474 * linux-s390-low.cc (class s390_target): New class.
475 (the_s390_target): New static object.
476 (the_linux_target): Define as pointer to the_s390_target.
477 * linux-sh-low.cc (class sh_target): New class.
478 (the_sh_target): New static object.
479 (the_linux_target): Define as pointer to the_sh_target.
480 * linux-sparc-low.cc (class sparc_target): New class.
481 (the_sparc_target): New static object.
482 (the_linux_target): Define as pointer to the_sparc_target.
483 * linux-tic6x-low.cc (class tic6x_target): New class.
484 (the_tic6x_target): New static object.
485 (the_linux_target): Define as pointer to the_tic6x_target.
486 * linux-tile-low.cc (class tile_target): New class.
487 (the_tile_target): New static object.
488 (the_linux_target): Define as pointer to the_tile_target.
489 * linux-xtensa-low.cc (class xtensa_target): New class.
490 (the_xtensa_target): New static object.
491 (the_linux_target): Define as pointer to the_xtensa_target.
493 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
495 Turn some static functions in linux-low.cc into private methods of
496 linux_process_target.
498 * linux-low.cc (handle_extended_wait): Turn into ...
499 (linux_process_target::handle_extended_wait): ...this. Call
500 'mourn' on 'this' object instead of 'the_target'.
501 (maybe_move_out_of_jump_pad): Turn into...
502 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
503 (linux_low_filter_event): Turn into...
504 (linux_process_target::filter_event): ...this.
505 (linux_wait_for_event_filtered): Turn into...
506 (linux_process_target::wait_for_event_filtered): ...this.
507 (linux_wait_for_event): Turn into...
508 (linux_process_target::wait_for_event): ...this.
509 (linux_wait_1): Turn into...
510 (linux_process_target::wait_1): ...this.
511 (wait_for_sigstop): Turn into...
512 (linux_process_target::wait_for_sigstop): ...this.
513 (move_out_of_jump_pad_callback): Turn into...
514 (linux_process_target::move_out_of_jump_pad): ...this.
515 (stop_all_lwps): Turn into...
516 (linux_process_target::stop_all_lwps): ...this.
517 (start_step_over): Turn into...
518 (linux_process_target::start_step_over): ...this.
519 (complete_ongoing_step_over): Turn into...
520 (linux_process_target::complete_ongoing_step_over): ...this.
521 (proceed_all_lwps): Turn into...
522 (linux_process_target::proceed_all_lwps): ...this.
523 (unstop_all_lwps): Turn into...
524 (linux_process_target::unstop_all_lwps): ...this.
526 * linux-low.h (class linux_process_target)
527 <handle_extended_wait>
528 <maybe_move_out_of_jump_pad>
530 <wait_for_event_filtered>
534 <move_out_of_jump_pad>
537 <complete_ongoing_step_over>
539 <unstop_all_lwps>: Declare.
541 Update the callers below.
543 * linux-low.cc (linux_process_target::attach): Update.
544 (linux_process_target::stabilize_threads): Ditto.
545 (linux_process_target::wait): Ditto.
547 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
549 * linux-low.h (struct linux_target_ops): Update the comment for
550 'cannot_store_register' to return 0 or 1.
551 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
554 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
556 * config.in: Re-generate.
557 * configure: Re-generate.
559 2020-03-17 Kamil Rytarowski <n54@gmx.com>
561 * regcache.cc (find_register_by_number): Update.
562 * tdesc.cc (init_target_desc): Likewise.
563 * tdesc.h (target_desc::reg_defs): Likewise.
565 2020-03-12 Tom Tromey <tom@tromey.com>
567 * configure: Rebuild.
568 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
569 (WIN32APILIBS): New subst.
570 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
572 (gdbsupport/%.o): Remove target.
573 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
574 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
575 (WIN32APILIBS): New variable.
576 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
577 (gdbreplay$(EXEEXT)): Likewise.
579 2020-03-12 Tom Tromey <tom@tromey.com>
581 * config.in, configure: Rebuild.
582 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
583 * acinclude.m4: Include gettext-sister.m4.
584 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
586 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
587 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
589 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
591 * acinclude.m4: Update path to selftest.m4.
593 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
595 * configure.ac: Don't source bfd/development.sh, move
596 GDB_AC_COMMON higher.
597 * configure: Re-generate.
599 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
601 * configure: Re-generate.
603 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
605 * configure: Re-generate.
607 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
609 * .dir-locals.el: New file.
611 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
613 * .gitattributes: New file.
615 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
617 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
618 reply into an S reply.
619 * server.cc (disable_packet_T): New global.
620 (captured_main): Set new global when appropriate.
621 * server.h (disable_packet_T): Declare.
623 2020-02-21 Tom Tromey <tom@tromey.com>
625 * Makefile.in (mostlyclean): New target.
627 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
629 * target.h (struct process_stratum_target): Remove.
630 (class process_target): Rename to ...
631 (class process_stratum_target): ... this.
632 * linux-low.h (class linux_process_target): Derive from
633 'process_stratum_target'.
634 * linux-low.cc (linux_target_ops): Remove.
635 (initialize_low): Set the_target to the singleton instance of
636 linux_process_target.
637 * lynx-low.h (class lynx_process_target): Derive from
638 'process_stratum_target'.
639 * lynx-low.cc (lynx_target_ops): Remove.
640 (initialize_low): Set the_target to the singleton instance of
642 * nto-low.h (class nto_process_target): Derive from
643 'process_stratum_target'.
644 * nto-low.cc (nto_target_ops): Remove.
645 (initialize_low): Set the_target to the singleton instance of
647 * win32-low.h (class win32_process_target): Derive from
648 'process_stratum_target'.
649 * win32-low.cc (win32_target_ops): Remove.
650 (initialize_low): Set the_target to the singleton instance of
651 win32_process_target.
653 Replace 'the_target->pt' with 'the_target' in the uses below.
655 * hostio.cc (hostio_error)
660 * linux-aarch32-low.cc (arm_breakpoint_at)
661 * linux-aarch64-low.cc (aarch64_breakpoint_at)
662 * linux-arm-low.cc (arm_sigreturn_next_pc)
664 (arm_get_syscall_trapinfo)
665 * linux-cris-low.cc (cris_breakpoint_at)
666 * linux-crisv32-low.cc (cris_breakpoint_at)
667 * linux-low.cc (handle_extended_wait)
670 (linux_process_target::breakpoint_kind_from_pc)
672 * linux-m32r-low.cc (m32r_breakpoint_at)
673 * linux-mips-low.cc (mips_breakpoint_at)
674 * linux-nios2-low.cc (nios2_breakpoint_at)
675 * linux-ppc-low.cc (ppc_breakpoint_at)
676 * linux-s390-low.cc (s390_get_hwcap)
677 * linux-sh-low.cc (sh_breakpoint_at)
678 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
679 (sparc_store_gregset_from_stack)
680 (sparc_breakpoint_at)
681 * linux-tic6x-low.cc (tic6x_breakpoint_at)
682 * linux-tile-low.cc (tile_breakpoint_at)
683 * linux-x86-low.cc (x86_breakpoint_at)
684 * linux-xtensa-low.cc (xtensa_breakpoint_at)
685 * mem-break.cc (bp_size)
687 (insert_memory_breakpoint)
688 (set_raw_breakpoint_at)
689 (delete_raw_breakpoint)
691 (uninsert_raw_breakpoint)
692 (reinsert_raw_breakpoint)
693 (validate_inserted_breakpoint)
694 * regcache.cc (regcache_read_pc)
696 * remote-utils.cc (putpkt_binary_1)
699 (prepare_resume_reply)
700 * server.cc (handle_general_set)
703 (handle_qxfer_exec_file)
704 (handle_qxfer_libraries_svr4)
705 (handle_qxfer_osdata)
706 (handle_qxfer_siginfo)
711 (queue_stop_reply_callback)
713 * target.cc (prepare_to_access_memory)
714 (done_accessing_memory)
715 (read_inferior_memory)
716 (target_write_memory)
717 (target_stop_and_wait)
719 (target_mourn_inferior)
720 (target_continue_no_signal)
722 (target_supports_multi_process)
725 (target_create_inferior)
726 (target_post_create_inferior)
728 (target_supports_fork_events)
729 (target_supports_vfork_events)
730 (target_supports_exec_events)
731 (target_handle_new_gdb_connection)
734 (fetch_inferior_registers)
735 (store_inferior_registers)
737 (target_supports_non_stop)
739 (target_process_qsupported)
740 (target_supports_catch_syscall)
741 (target_get_ipa_tdesc_idx)
742 (target_supports_tracepoints)
743 (target_supports_fast_tracepoints)
744 (target_get_min_fast_tracepoint_insn_len)
745 (target_thread_stopped)
748 (target_stabilize_threads)
749 (target_install_fast_tracepoint_jump_pad)
751 (target_supports_disable_randomization)
752 (target_supports_agent)
753 (target_enable_btrace)
754 (target_disable_btrace)
756 (target_read_btrace_conf)
757 (target_supports_range_stepping)
758 (target_supports_stopped_by_sw_breakpoint)
759 (target_stopped_by_sw_breakpoint)
760 (target_supports_stopped_by_hw_breakpoint)
761 (target_supports_hardware_single_step)
762 (target_stopped_by_hw_breakpoint)
763 (target_breakpoint_kind_from_pc)
764 (target_breakpoint_kind_from_current_state)
765 (target_supports_software_single_step)
766 (target_core_of_thread)
768 (target_thread_handle)
769 * win32-low.cc (do_initial_child_stuff)
771 Rename target op default definitions listed below.
773 * target.cc (process_target::post_create_inferior): Rename as ...
774 (process_stratum_target::post_create_inferior): ... this.
775 (process_target::prepare_to_access_memory): Rename as ...
776 (process_stratum_target::prepare_to_access_memory): ... this.
777 (process_target::done_accessing_memory): Rename as ...
778 (process_stratum_target::done_accessing_memory): ... this.
779 (process_target::look_up_symbols): Rename as ...
780 (process_stratum_target::look_up_symbols): ... this.
781 (process_target::supports_read_auxv): Rename as ...
782 (process_stratum_target::supports_read_auxv): ... this.
783 (process_target::read_auxv): Rename as ...
784 (process_stratum_target::read_auxv): ... this.
785 (process_target::supports_z_point_type): Rename as ...
786 (process_stratum_target::supports_z_point_type): ... this.
787 (process_target::insert_point): Rename as ...
788 (process_stratum_target::insert_point): ... this.
789 (process_target::remove_point): Rename as ...
790 (process_stratum_target::remove_point): ... this.
791 (process_target::stopped_by_sw_breakpoint): Rename as ...
792 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
793 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
794 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
795 (process_target::stopped_by_hw_breakpoint): Rename as ...
796 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
797 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
798 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
799 (process_target::supports_hardware_single_step): Rename as ...
800 (process_stratum_target::supports_hardware_single_step): ... this.
801 (process_target::stopped_by_watchpoint): Rename as ...
802 (process_stratum_target::stopped_by_watchpoint): ... this.
803 (process_target::stopped_data_address): Rename as ...
804 (process_stratum_target::stopped_data_address): ... this.
805 (process_target::supports_read_offsets): Rename as ...
806 (process_stratum_target::supports_read_offsets): ... this.
807 (process_target::read_offsets): Rename as ...
808 (process_stratum_target::read_offsets): ... this.
809 (process_target::supports_get_tls_address): Rename as ...
810 (process_stratum_target::supports_get_tls_address): ... this.
811 (process_target::get_tls_address): Rename as ...
812 (process_stratum_target::get_tls_address): ... this.
813 (process_target::hostio_last_error): Rename as ...
814 (process_stratum_target::hostio_last_error): ... this.
815 (process_target::supports_qxfer_osdata): Rename as ...
816 (process_stratum_target::supports_qxfer_osdata): ... this.
817 (process_target::qxfer_osdata): Rename as ...
818 (process_stratum_target::qxfer_osdata): ... this.
819 (process_target::supports_qxfer_siginfo): Rename as ...
820 (process_stratum_target::supports_qxfer_siginfo): ... this.
821 (process_target::qxfer_siginfo): Rename as ...
822 (process_stratum_target::qxfer_siginfo): ... this.
823 (process_target::supports_non_stop): Rename as ...
824 (process_stratum_target::supports_non_stop): ... this.
825 (process_target::async): Rename as ...
826 (process_stratum_target::async): ... this.
827 (process_target::start_non_stop): Rename as ...
828 (process_stratum_target::start_non_stop): ... this.
829 (process_target::supports_multi_process): Rename as ...
830 (process_stratum_target::supports_multi_process): ... this.
831 (process_target::supports_fork_events): Rename as ...
832 (process_stratum_target::supports_fork_events): ... this.
833 (process_target::supports_vfork_events): Rename as ...
834 (process_stratum_target::supports_vfork_events): ... this.
835 (process_target::supports_exec_events): Rename as ...
836 (process_stratum_target::supports_exec_events): ... this.
837 (process_target::handle_new_gdb_connection): Rename as ...
838 (process_stratum_target::handle_new_gdb_connection): ... this.
839 (process_target::handle_monitor_command): Rename as ...
840 (process_stratum_target::handle_monitor_command): ... this.
841 (process_target::core_of_thread): Rename as ...
842 (process_stratum_target::core_of_thread): ... this.
843 (process_target::supports_read_loadmap): Rename as ...
844 (process_stratum_target::supports_read_loadmap): ... this.
845 (process_target::read_loadmap): Rename as ...
846 (process_stratum_target::read_loadmap): ... this.
847 (process_target::process_qsupported): Rename as ...
848 (process_stratum_target::process_qsupported): ... this.
849 (process_target::supports_tracepoints): Rename as ...
850 (process_stratum_target::supports_tracepoints): ... this.
851 (process_target::read_pc): Rename as ...
852 (process_stratum_target::read_pc): ... this.
853 (process_target::write_pc): Rename as ...
854 (process_stratum_target::write_pc): ... this.
855 (process_target::supports_thread_stopped): Rename as ...
856 (process_stratum_target::supports_thread_stopped): ... this.
857 (process_target::thread_stopped): Rename as ...
858 (process_stratum_target::thread_stopped): ... this.
859 (process_target::supports_get_tib_address): Rename as ...
860 (process_stratum_target::supports_get_tib_address): ... this.
861 (process_target::get_tib_address): Rename as ...
862 (process_stratum_target::get_tib_address): ... this.
863 (process_target::pause_all): Rename as ...
864 (process_stratum_target::pause_all): ... this.
865 (process_target::unpause_all): Rename as ...
866 (process_stratum_target::unpause_all): ... this.
867 (process_target::stabilize_threads): Rename as ...
868 (process_stratum_target::stabilize_threads): ... this.
869 (process_target::supports_fast_tracepoints): Rename as ...
870 (process_stratum_target::supports_fast_tracepoints): ... this.
871 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
872 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
873 (process_target::emit_ops): Rename as ...
874 (process_stratum_target::emit_ops): ... this.
875 (process_target::supports_disable_randomization): Rename as ...
876 (process_stratum_target::supports_disable_randomization): ... this.
877 (process_target::supports_qxfer_libraries_svr4): Rename as ...
878 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
879 (process_target::qxfer_libraries_svr4): Rename as ...
880 (process_stratum_target::qxfer_libraries_svr4): ... this.
881 (process_target::supports_agent): Rename as ...
882 (process_stratum_target::supports_agent): ... this.
883 (process_target::enable_btrace): Rename as ...
884 (process_stratum_target::enable_btrace): ... this.
885 (process_target::disable_btrace): Rename as ...
886 (process_stratum_target::disable_btrace): ... this.
887 (process_target::read_btrace): Rename as ...
888 (process_stratum_target::read_btrace): ... this.
889 (process_target::read_btrace_conf): Rename as ...
890 (process_stratum_target::read_btrace_conf): ... this.
891 (process_target::supports_range_stepping): Rename as ...
892 (process_stratum_target::supports_range_stepping): ... this.
893 (process_target::supports_pid_to_exec_file): Rename as ...
894 (process_stratum_target::supports_pid_to_exec_file): ... this.
895 (process_target::pid_to_exec_file): Rename as ...
896 (process_stratum_target::pid_to_exec_file): ... this.
897 (process_target::supports_multifs): Rename as ...
898 (process_stratum_target::supports_multifs): ... this.
899 (process_target::multifs_open): Rename as ...
900 (process_stratum_target::multifs_open): ... this.
901 (process_target::multifs_unlink): Rename as ...
902 (process_stratum_target::multifs_unlink): ... this.
903 (process_target::multifs_readlink): Rename as ...
904 (process_stratum_target::multifs_readlink): ... this.
905 (process_target::breakpoint_kind_from_pc): Rename as ...
906 (process_stratum_target::breakpoint_kind_from_pc): ... this.
907 (process_target::breakpoint_kind_from_current_state): Rename as ...
908 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
909 (process_target::thread_name): Rename as ...
910 (process_stratum_target::thread_name): ... this.
911 (process_target::thread_handle): Rename as ...
912 (process_stratum_target::thread_handle): ... this.
913 (process_target::supports_software_single_step): Rename as ...
914 (process_stratum_target::supports_software_single_step): ... this.
915 (process_target::supports_catch_syscall): Rename as ...
916 (process_stratum_target::supports_catch_syscall): ... this.
917 (process_target::get_ipa_tdesc_idx): Rename as ...
918 (process_stratum_target::get_ipa_tdesc_idx): ... this.
920 2020-02-20 Pedro Alves <palves@redhat.com>
922 * target.cc (set_target_ops): Simply copy the given target pointer
923 instead of creating a copy of the pointed object.
925 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
927 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
930 * target.h (struct process_stratum_target): Remove the target op.
931 (class process_target): Add the target op.
932 (target_get_ipa_tdesc_idx): Update the macro.
933 * target.cc (process_target::get_ipa_tdesc_idx): Define.
935 Update the derived classes and callers below.
937 * linux-low.cc (linux_target_ops): Update.
938 (linux_get_ipa_tdesc_idx): Turn into ...
939 (linux_process_target::get_ipa_tdesc_idx): ... this.
940 * linux-low.h (class linux_process_target): Update.
941 * lynx-low.cc (lynx_target_ops): Update.
942 * nto-low.cc (nto_target_ops): Update.
943 * win32-low.cc (win32_target_ops): Update.
945 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
947 Turn process_stratum_target's supports_catch_syscall op into a
948 method of process_target.
950 * target.h (struct process_stratum_target): Remove the target op.
951 (class process_target): Add the target op.
952 (target_supports_catch_syscall): Update the macro.
953 * target.cc (process_target::supports_catch_syscall): Define.
955 Update the derived classes and callers below.
957 * linux-low.cc (linux_target_ops): Update.
958 (linux_supports_catch_syscall): Turn into ...
959 (linux_process_target::supports_catch_syscall): ... this.
960 * linux-low.h (class linux_process_target): Update.
961 * lynx-low.cc (lynx_target_ops): Update.
962 * nto-low.cc (nto_target_ops): Update.
963 * win32-low.cc (win32_target_ops): Update.
965 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
967 Turn process_stratum_target's supports_software_single_step op
968 into a method of process_target.
970 * target.h (struct process_stratum_target): Remove the target op.
971 (class process_target): Add the target op.
972 (target_supports_software_single_step): Update the macro.
973 * target.cc (process_target::supports_software_single_step): Define.
975 Update the derived classes and callers below.
977 * linux-low.cc (linux_target_ops): Update.
978 (linux_supports_software_single_step): Turn into ...
979 (linux_process_target::supports_software_single_step): ... this.
980 * linux-low.h (class linux_process_target): Update.
981 * lynx-low.cc (lynx_target_ops): Update.
982 * nto-low.cc (nto_target_ops): Update.
983 * win32-low.cc (win32_target_ops): Update.
985 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
987 Turn process_stratum_target's thread_name and thread_handle ops
988 into methods of process_target.
990 * target.h (struct process_stratum_target): Remove the target ops.
991 (class process_target): Add the target ops.
992 (target_thread_name): Update the macro.
993 (target_thread_handle): Update the macro.
994 * target.cc (process_target::thread_name): Define.
995 (process_target::thread_handle): Define.
997 Update the derived classes and callers below.
999 * linux-low.cc (linux_target_ops): Update.
1000 (linux_process_target::thread_name): Define.
1001 (linux_process_target::thread_handle): Define.
1002 * linux-low.h (class linux_process_target): Update.
1003 * lynx-low.cc (lynx_target_ops): Update.
1004 * nto-low.cc (nto_target_ops): Update.
1005 * win32-low.cc (win32_target_ops): Update.
1007 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1009 Turn process_stratum_target's breakpoint_kind_from_pc,
1010 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1011 ops into methods of process_target.
1013 * target.h (struct process_stratum_target): Remove the target op.
1014 (class process_target): Add the target op.
1015 (target_breakpoint_kind_from_pc): Update the macro.
1016 (target_breakpoint_kind_from_current_state): Update the macro.
1017 (default_breakpoint_kind_from_pc): Remove declaration.
1018 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1019 (process_target::breakpoint_kind_from_pc): ... this.
1020 (process_target::breakpoint_kind_from_current_state): Define.
1022 Update the derived classes and callers below.
1024 * mem-break.cc (bp_size): Update.
1025 (bp_opcode): Update.
1026 * linux-low.cc (linux_target_ops): Update.
1027 (linux_wait_1): Update.
1028 (linux_breakpoint_kind_from_pc): Turn into ...
1029 (linux_process_target::breakpoint_kind_from_pc): ... this.
1030 (linux_sw_breakpoint_from_kind): Turn into ...
1031 (linux_process_target::sw_breakpoint_from_kind): ... this.
1032 (linux_breakpoint_kind_from_current_state): Turn into ...
1033 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1034 * linux-low.h (class linux_process_target): Update.
1035 * lynx-low.cc (lynx_target_ops): Update.
1036 (lynx_process_target::sw_breakpoint_from_kind): Define.
1037 * lynx-low.h (class lynx_process_target): Update.
1038 * nto-low.cc (nto_target_ops): Update.
1039 (nto_sw_breakpoint_from_kind): Turn into ...
1040 (nto_process_target::sw_breakpoint_from_kind): ... this.
1041 * nto-low.h (class nto_process_target): Update.
1042 * win32-low.cc (win32_target_ops): Update.
1043 (win32_sw_breakpoint_from_kind): Turn into ...
1044 (win32_process_target::sw_breakpoint_from_kind): ... this.
1045 * win32-low.h (class win32_process_target): Update.
1047 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1049 Turn process_stratum_target's multifs_open, multifs_readlink,
1050 multifs_unlink ops into methods of process_target.
1052 * target.h (struct process_stratum_target): Remove the target ops.
1053 (class process_target): Add the target ops. Also add
1055 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1057 (process_target::supports_multifs): Define.
1058 (process_target::multifs_open): Define.
1059 (process_target::multifs_readlink): Define.
1060 (process_target::multifs_unlink): Define.
1062 Update the derived classes and callers below.
1064 * hostio.cc (handle_setfs): Update.
1065 (handle_open): Update.
1066 (handle_unlink): Update.
1067 (handle_readlink): Update.
1068 * linux-low.cc (linux_target_ops): Update.
1069 (linux_process_target::supports_multifs): Define.
1070 (linux_process_target::multifs_open): Define.
1071 (linux_process_target::multifs_readlink): Define.
1072 (linux_process_target::multifs_unlink): Define.
1073 * linux-low.h (class linux_process_target): Update.
1074 * lynx-low.cc (lynx_target_ops): Update.
1075 * nto-low.cc (nto_target_ops): Update.
1076 * win32-low.cc (win32_target_ops): Update.
1078 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1080 Turn process_stratum_target's pid_to_exec_file op into a method
1083 * target.h (struct process_stratum_target): Remove the target op.
1084 (class process_target): Add the target op. Also add
1085 'supports_pid_to_exec_file'.
1086 * target.cc (process_target::pid_to_exec_file): Define.
1087 (process_target::supports_pid_to_exec_file): Define.
1089 Update the derived classes and callers below.
1091 * server.cc (handle_qxfer_exec_file): Update.
1092 (handle_query): Update.
1093 * linux-low.cc (linux_target_ops): Update.
1094 (linux_process_target::supports_pid_to_exec_file): Define.
1095 (linux_process_target::pid_to_exec_file): Define.
1096 * linux-low.h (class linux_process_target): Update.
1097 * lynx-low.cc (lynx_target_ops): Update.
1098 * nto-low.cc (nto_target_ops): Update.
1099 * win32-low.cc (win32_target_ops): Update.
1101 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103 Turn process_stratum_target's supports_range_stepping op into a
1104 method of process_target.
1106 * target.h (struct process_stratum_target): Remove the target op.
1107 (class process_target): Add the target op.
1108 (target_supports_range_stepping): Update the macro.
1109 * target.cc (process_target::supports_range_stepping): Define.
1111 Update the derived classes and callers below.
1113 * linux-low.cc (linux_target_ops): Update.
1114 (linux_supports_range_stepping): Turn into ...
1115 (linux_process_target::supports_range_stepping): ... this.
1116 * linux-low.h (class linux_process_target): Update.
1117 * lynx-low.cc (lynx_target_ops): Update.
1118 * nto-low.cc (nto_target_ops): Update.
1119 * win32-low.cc (win32_target_ops): Update.
1121 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1123 Turn process_stratum_target's btrace-related ops (enable_btrace,
1124 disable_btrace, read_btrace, read_btrace_conf) into methods of
1127 * target.h (struct process_stratum_target): Remove the target ops.
1128 (class process_target): Add the target ops.
1129 (target_enable_btrace): Update.
1130 (target_disable_btrace): Update.
1131 (target_read_btrace): Update.
1132 (target_read_btrace_conf): Update.
1133 * target.cc (process_target::enable_btrace): Define.
1134 (process_target::disable_btrace): Define.
1135 (process_target::read_btrace): Define.
1136 (process_target::read_btrace_conf): Define.
1138 Update the derived classes and callers below.
1140 * linux-low.cc (linux_target_ops): Update.
1141 (linux_process_target:enable_btrace): Define as a wrapper around
1142 linux_enable_btrace.
1143 (linux_low_disable_btrace): Turn into ...
1144 (linux_process_target::disable_btrace): ... this.
1145 (linux_low_read_btrace): Turn into ...
1146 (linux_process_target::read_btrace): ... this.
1147 (linux_low_btrace_conf): Turn into ...
1148 (linux_process_target::read_btrace_conf): ... this.
1149 * linux-low.h (class linux_process_target): Update.
1150 * lynx-low.cc (lynx_target_ops): Update.
1151 * nto-low.cc (nto_target_ops): Update.
1152 * win32-low.cc (win32_target_ops): Update.
1154 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1156 Turn process_stratum_target's supports_agent op into a method of
1159 * target.h (struct process_stratum_target): Remove the target op.
1160 (class process_target): Add the target op.
1161 (target_supports_agent): Update the macro.
1162 * target.cc (process_target::supports_agent): Define.
1164 Update the derived classes and callers below.
1166 * linux-low.cc (linux_target_ops): Update.
1167 (linux_supports_agent): Turn into ...
1168 (linux_process_target::supports_agent): ... this.
1169 * linux-low.h (class linux_process_target): Update.
1170 * lynx-low.cc (lynx_target_ops): Update.
1171 * nto-low.cc (nto_target_ops): Update.
1172 * win32-low.cc (win32_target_ops): Update.
1174 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1176 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1177 method of process_target.
1179 * target.h (struct process_stratum_target): Remove the target op.
1180 (class process_target): Add the target op. Also add
1181 'supports_qxfer_libraries_svr4'.
1182 * target.cc (process_target::qxfer_libraries_svr4): Define.
1183 (process_target::supports_qxfer_libraries_svr4): Define.
1185 Update the derived classes and callers below.
1187 * server.cc (handle_qxfer_libraries_svr4): Update.
1188 (handle_query): Update.
1189 * linux-low.cc (linux_target_ops): Update.
1190 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1191 (linux_qxfer_libraries_svr4): Turn into ...
1192 (linux_process_target::qxfer_libraries_svr4): ... this.
1193 * linux-low.h (class linux_process_target): Update.
1194 * lynx-low.cc (lynx_target_ops): Update.
1195 * nto-low.cc (nto_target_ops): Update.
1196 * win32-low.cc (win32_target_ops): Update.
1198 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1200 Turn process_stratum_target's supports_disable_randomization op
1201 into a method of process_target.
1203 * target.h (struct process_stratum_target): Remove the target op.
1204 (class process_target): Add the target op.
1205 (target_supports_disable_randomization): Update the macro.
1206 * target.cc (process_target::supports_disable_randomization): Define.
1208 Update the derived classes and callers below.
1210 * linux-low.cc (linux_target_ops): Update.
1211 (linux_supports_disable_randomization): Turn into ...
1212 (linux_process_target::supports_disable_randomization): ... this.
1213 * linux-low.h (class linux_process_target): Update.
1214 * lynx-low.cc (lynx_target_ops): Update.
1215 * nto-low.cc (nto_target_ops): Update.
1216 * win32-low.cc (win32_target_ops): Update.
1218 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1220 Turn process_stratum_target's emit_ops op into a method of
1223 * target.h (struct process_stratum_target): Remove the target op.
1224 (class process_target): Add the target op.
1225 (target_emit_ops): Update the macro.
1226 * target.cc (process_target::emit_ops): Define.
1228 Update the derived classes and callers below.
1230 * linux-low.cc (linux_target_ops): Update.
1231 (linux_emit_ops): Turn into ...
1232 (linux_process_target::emit_ops): ... this.
1233 * linux-low.h (class linux_process_target): Update.
1234 * lynx-low.cc (lynx_target_ops): Update.
1235 * nto-low.cc (nto_target_ops): Update.
1236 * win32-low.cc (win32_target_ops): Update.
1238 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1240 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1241 and get_min_fast_tracepoint_insn_len ops into methods of
1244 * target.h (struct process_stratum_target): Remove the target ops.
1245 (class process_target): Add the target ops. Also add
1246 'supports_fast_tracepoints'.
1247 (target_supports_fast_tracepoints): Update the macro.
1248 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1249 (install_fast_tracepoint_jump_pad): Update and rename the macro
1251 (target_install_fast_tracepoint_jump_pad): ... this.
1252 * target.cc (process_target::supports_fast_tracepoints): Define.
1253 (process_target::install_fast_tracepoint_jump_pad): Define.
1254 (process_target::get_min_fast_tracepoint_insn_len): Define.
1256 Update the derived classes and callers below.
1258 * tracepoint.cc (install_fast_tracepoint): Update.
1259 * linux-low.cc (linux_target_ops): Update.
1260 (linux_process_target::supports_fast_tracepoints): Define.
1261 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1262 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1263 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1264 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
1265 * linux-low.h (class linux_process_target): Update.
1266 * lynx-low.cc (lynx_target_ops): Update.
1267 * nto-low.cc (nto_target_ops): Update.
1268 * win32-low.cc (win32_target_ops): Update.
1270 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272 Turn process_stratum_target's stabilize_threads op into a
1273 method of process_target.
1275 * target.h (struct process_stratum_target): Remove the target op.
1276 (class process_target): Add the target op.
1277 (target_stabilize_threads): Update the macro.
1278 * target.cc (process_target::stabilize_threads): Define.
1280 Update the derived classes and callers below.
1282 * server.cc (handle_status): Update.
1283 * tracepoint.cc (cmd_qtdp): Update.
1284 (cmd_qtstart): Update.
1285 * linux-low.cc (linux_target_ops): Update.
1286 (linux_stabilize_threads): Turn into ...
1287 (linux_process_target::stabilize_threads): ... this.
1288 (linux_wait_1): Update.
1289 * linux-low.h (class linux_process_target): Update.
1290 * lynx-low.cc (lynx_target_ops): Update.
1291 * nto-low.cc (nto_target_ops): Update.
1292 * win32-low.cc (win32_target_ops): Update.
1294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1296 Turn process_stratum_target's pause_all and unpause_all ops
1297 into methods of process_target.
1299 * target.h (struct process_stratum_target): Remove the target ops.
1300 (class process_target): Add the target ops.
1301 (pause_all): Update the macro and rename to...
1302 (target_pause_all): ... this.
1303 (unpause_all): Update the macro and rename to...
1304 (target_unpause_all): ... this.
1305 * target.cc (process_target::pause_all): Define.
1306 (process_target::unpause_all): Define.
1308 Update the derived classes and callers below.
1310 * server.cc (handle_status): Update.
1311 * tracepoint.cc (clear_installed_tracepoints): Update.
1313 (cmd_qtstart): Update.
1314 (stop_tracing): Update.
1315 (cmd_qtstatus): Update.
1316 (upload_fast_traceframes): Update.
1317 (run_inferior_command): Update.
1318 * linux-low.cc (linux_target_ops): Update.
1319 (linux_pause_all): Turn into ...
1320 (linux_process_target::pause_all): ... this.
1321 (linux_unpause_all): Turn into ...
1322 (linux_process_target::unpause_all): ... this.
1323 (linux_process_target::prepare_to_access_memory): Update.
1324 (linux_process_target::done_accessing_memory): Update.
1325 * linux-low.h (class linux_process_target): Update.
1326 * lynx-low.cc (lynx_target_ops): Update.
1327 * nto-low.cc (nto_target_ops): Update.
1328 * win32-low.cc (win32_target_ops): Update.
1330 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1332 Turn process_stratum_target's get_tib_address op into a method of
1335 * target.h (struct process_stratum_target): Remove the target op.
1336 (class process_target): Add the target op. Also add
1337 'supports_get_tib_address'.
1338 * target.cc (process_target::get_tib_address): Define.
1339 (process_target::supports_get_tib_address): Define.
1341 Update the derived classes and callers below.
1343 * server.cc (handle_query): Update.
1344 * linux-low.cc (win32_target_ops): Update.
1345 * lynx-low.cc (lynx_target_ops): Update.
1346 * nto-low.cc (nto_target_ops): Update.
1347 * win32-low.cc (win32_target_ops): Update.
1348 (win32_process_target::supports_get_tib_address): Define.
1349 (win32_get_tib_address): Turn into ...
1350 (win32_process_target::get_tib_address): ... this.
1351 * win32-low.h (class win32_process_target): Update.
1353 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1355 Turn process_stratum_target's thread_stopped op into a method of
1358 * target.h (struct process_stratum_target): Remove the target op.
1359 (class process_target): Add the target op. Also add
1360 'supports_thread_stopped'.
1361 (target_thread_stopped): Update the macro.
1362 * target.cc (process_target::thread_stopped): Define.
1363 (process_target::supports_thread_stopped): Define.
1364 (prepare_to_access_memory): Update.
1366 Update the derived classes and callers below.
1368 * server.cc (queue_stop_reply_callback): Update.
1369 * linux-low.cc (linux_target_ops): Update.
1370 (linux_process_target::supports_thread_stopped): Define.
1371 (linux_thread_stopped): Turn into ...
1372 (linux_process_target::thread_stopped): ... this.
1373 * linux-low.h (class linux_process_target): Update.
1374 * lynx-low.cc (lynx_target_ops): Update.
1375 * nto-low.cc (nto_target_ops): Update.
1376 * win32-low.cc (win32_target_ops): Update.
1378 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1380 Turn process_stratum_target's read_pc and write_pc ops into
1381 methods of process_target.
1383 * target.h (struct process_stratum_target): Remove the target ops.
1384 (class process_target): Add the target ops.
1385 * target.cc (process_target::read_pc): Define.
1386 (process_target::write_pc): Define.
1388 Update the derived classes and callers below.
1390 * regcache.cc (regcache_read_pc): Update.
1391 (regcache_write_pc): Update.
1392 * linux-low.cc (linux_target_ops): Update.
1393 (linux_read_pc): Turn into ...
1394 (linux_process_target::read_pc): ... this.
1395 (linux_write_pc): Turn into ...
1396 (linux_process_target::write_pc): ... this.
1397 * linux-low.h (class linux_process_target): Update.
1398 * lynx-low.cc (lynx_target_ops): Update.
1399 * nto-low.cc (nto_target_ops): Update.
1400 * win32-low.cc (win32_target_ops): Update.
1402 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1404 Turn process_stratum_target's supports_tracepoints op into a
1405 method of process_target.
1407 * target.h (struct process_stratum_target): Remove the target op.
1408 (class process_target): Add the target op.
1409 (target_supports_tracepoints): Update the macro.
1410 * target.cc (process_target::supports_tracepoints): Define.
1412 Update the derived classes and callers below.
1414 * linux-low.cc (linux_target_ops): Update.
1415 (linux_supports_tracepoints): Turn into ...
1416 (linux_process_target::supports_tracepoints): ... this.
1417 * linux-low.h (class linux_process_target): Update.
1418 * lynx-low.cc (lynx_target_ops): Update.
1419 * nto-low.cc (nto_target_ops): Update.
1420 * win32-low.cc (win32_target_ops): Update.
1422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1424 Turn process_stratum_target's process_qsupported op into a method
1427 * target.h (struct process_stratum_target): Remove the target op.
1428 (class process_target): Add the target op.
1429 (target_process_qsupported): Update the macro.
1430 * target.cc (process_target::process_qsupported): Define.
1432 Update the derived classes and callers below.
1434 * linux-low.cc (linux_target_ops): Update.
1435 (linux_process_qsupported): Turn into ...
1436 (linux_process_target::process_qsupported): ... this.
1437 * linux-low.h (class linux_process_target): Update.
1438 * lynx-low.cc (lynx_target_ops): Update.
1439 * nto-low.cc (nto_target_ops): Update.
1440 * win32-low.cc (win32_target_ops): Update.
1442 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1444 Turn process_stratum_target's read_loadmap op into a method of
1447 * target.h (struct process_stratum_target): Remove the target op.
1448 (class process_target): Add the target op. Also add
1449 'supports_read_loadmap'.
1450 * target.cc (process_target::read_loadmap): Define.
1451 (process_target::supports_read_loadmap): Define.
1453 Update the derived classes and callers below.
1455 * server.cc (handle_qxfer_fdpic): Update.
1456 (handle_query): Update.
1457 * linux-low.cc (linux_target_ops): Update.
1458 (linux_process_target::supports_read_loadmap): Define.
1459 (linux_read_loadmap): Turn into ...
1460 (linux_process_target::read_loadmap): ... this.
1461 * linux-low.h (class linux_process_target): Update.
1462 * lynx-low.cc (lynx_target_ops): Update.
1463 * nto-low.cc (nto_target_ops): Update.
1464 * win32-low.cc (win32_target_ops): Update.
1466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468 Turn process_stratum_target's core_of_thread op into a method of
1471 * target.h (struct process_stratum_target): Remove the target op.
1472 (class process_target): Add the target op.
1473 (target_core_of_thread): Update the macro.
1474 * target.cc (process_target::core_of_thread): Define.
1476 Update the derived classes and callers below.
1478 * linux-low.cc (linux_target_ops): Update.
1479 (linux_process_target::core_of_thread): Define.
1480 * linux-low.h (class linux_process_target): Update.
1481 * lynx-low.cc (lynx_target_ops): Update.
1482 * nto-low.cc (nto_target_ops): Update.
1483 * win32-low.cc (win32_target_ops): Update.
1485 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1487 Turn process_stratum_target's handle_monitor_command op into a
1488 method of process_target.
1490 * target.h (struct process_stratum_target): Remove the target op.
1491 (class process_target): Add the target op.
1492 (target_handle_monitor_command): Update the macro.
1493 * target.cc (process_target::handle_monitor_command): Define.
1495 Update the derived classes and callers below.
1497 * server.cc (handle_query): Update.
1498 * linux-low.cc (linux_target_ops): Update.
1499 (linux_process_target::handle_monitor_command): Define.
1500 * linux-low.h (class linux_process_target): Update.
1501 * lynx-low.cc (lynx_target_ops): Update.
1502 * nto-low.cc (nto_target_ops): Update.
1503 * win32-low.cc (win32_target_ops): Update.
1505 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1507 Turn process_stratum_target's handle_new_gdb_connection op into a
1508 method of process_target.
1510 * target.h (struct process_stratum_target): Remove the target op.
1511 (class process_target): Add the target op.
1512 (target_handle_new_gdb_connection): Update the macro.
1513 * target.cc (process_target::handle_new_gdb_connection): Define.
1515 Update the derived classes and callers below.
1517 * linux-low.cc (linux_target_ops): Update.
1518 (linux_handle_new_gdb_connection): Turn into ...
1519 (linux_process_target::handle_new_gdb_connection): ... this.
1520 * linux-low.h (class linux_process_target): Update.
1521 * lynx-low.cc (lynx_target_ops): Update.
1522 * nto-low.cc (nto_target_ops): Update.
1523 * win32-low.cc (win32_target_ops): Update.
1525 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1527 Turn process_stratum_target's supports_fork_events,
1528 supports_vfork_events, and supports_exec_events ops into methods
1531 * target.h (struct process_stratum_target): Remove the target ops.
1532 (class process_target): Add the target ops.
1533 (target_supports_fork_events): Update the macro.
1534 (target_supports_vfork_events): Update the macro.
1535 (target_supports_exec_events): Update the macro.
1536 * target.cc (process_target::supports_fork_events): Define.
1537 (process_target::supports_vfork_events): Define.
1538 (process_target::supports_exec_events): Define.
1540 Update the derived classes and callers below.
1542 * linux-low.cc (linux_target_ops): Update.
1543 (linux_supports_fork_events): Turn into ...
1544 (linux_process_target::supports_fork_events): ... this.
1545 (linux_supports_vfork_events): Turn into ...
1546 (linux_process_target::supports_vfork_events): ... this.
1547 (linux_supports_exec_events): Turn into ...
1548 (linux_process_target::supports_exec_events): ... this.
1549 * linux-low.h (class linux_process_target): Update.
1550 * lynx-low.cc (lynx_target_ops): Update.
1551 * nto-low.cc (nto_target_ops): Update.
1552 * win32-low.cc (win32_target_ops): Update.
1554 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1556 Turn process_stratum_target's supports_multi_process op into a
1557 method of process_target.
1559 * target.h (struct process_stratum_target): Remove the target op.
1560 (class process_target): Add the target op.
1561 * target.cc (process_target::supports_multi_process): Define.
1562 (target_supports_multi_process): Update.
1564 Update the derived classes and callers below.
1566 * linux-low.cc (linux_target_ops): Update.
1567 (linux_supports_multi_process): Turn into ...
1568 (linux_process_target::supports_multi_process): ... this.
1569 * linux-low.h (class linux_process_target): Update.
1570 * lynx-low.cc (lynx_target_ops): Update.
1571 * nto-low.cc (nto_target_ops): Update.
1572 * win32-low.cc (win32_target_ops): Update.
1574 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1576 Turn process_stratum_target's supports_non_stop, async, and
1577 start_non_stop ops into methods of process_target.
1579 * target.h (struct process_stratum_target): Remove the target ops.
1580 (class process_target): Add the target ops.
1581 (target_supports_non_stop): Update the macro.
1582 (target_async): Update the macro.
1583 (start_non_stop): Remove declaration.
1584 * target.cc (process_target::supports_non_stop): Define.
1585 (process_target::async): Define.
1586 (process_target::start_non_stop): Define.
1587 (start_non_stop): Remove.
1589 Update the derived classes and callers below.
1591 * server.cc (handle_qxfer_siginfo): Update.
1592 (handle_query): Update.
1593 * linux-low.cc (linux_target_ops): Update.
1594 (linux_supports_non_stop): Turn into ...
1595 (linux_process_target::supports_non_stop): ... this.
1596 (linux_async): Turn into ...
1597 (linux_process_target::async): ... this.
1598 (linux_start_non_stop): Turn into ...
1599 (linux_process_target::start_non_stop): ... this.
1600 * linux-low.h (class linux_process_target): Update.
1601 * lynx-low.cc (lynx_target_ops): Update.
1602 * nto-low.cc (nto_target_ops): Update.
1603 (nto_supports_non_stop): Remove; rely on the default behavior
1605 * win32-low.cc (win32_target_ops): Update.
1607 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1609 Turn process_stratum_target's qxfer_siginfo op into a method of
1612 * target.h (struct process_stratum_target): Remove the target op.
1613 (class process_target): Add the target op. Also add
1614 'supports_qxfer_siginfo'.
1615 * target.cc (process_target::qxfer_siginfo): Define.
1616 (process_target::supports_qxfer_siginfo): Define.
1618 Update the derived classes and callers below.
1620 * server.cc (handle_qxfer_siginfo): Update.
1621 (handle_query): Update.
1622 * linux-low.cc (linux_target_ops): Update.
1623 (linux_process_target::supports_qxfer_siginfo): Define.
1624 (linux_xfer_siginfo): Turn into ...
1625 (linux_process_target::qxfer_siginfo): ... this.
1626 * linux-low.h (class linux_process_target): Update.
1627 * lynx-low.cc (lynx_target_ops): Update.
1628 * nto-low.cc (nto_target_ops): Update.
1629 * win32-low.cc (win32_target_ops): Update.
1631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1633 Turn process_stratum_target's qxfer_osdata op into a method of
1636 * target.h (struct process_stratum_target): Remove the target op.
1637 (class process_target): Add the target op. Also add
1638 'supports_qxfer_osdata'.
1639 * target.cc (process_target::qxfer_osdata): Define.
1640 (process_target::supports_qxfer_osdata): Define.
1642 Update the derived classes and callers below.
1644 * server.cc (handle_qxfer_osdata): Update.
1645 (handle_query): Update.
1646 * linux-low.cc (linux_target_ops): Update.
1647 (linux_process_target::supports_qxfer_osdata): Define.
1648 (linux_qxfer_osdata): Turn into ...
1649 (linux_process_target::qxfer_osdata): ... this.
1650 * linux-low.h (class linux_process_target): Update.
1651 * lynx-low.cc (lynx_target_ops): Update.
1652 * nto-low.cc (nto_target_ops): Update.
1653 * win32-low.cc (win32_target_ops): Update.
1655 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1657 Turn process_stratum_target's hostio_last_error op into a
1658 method of process_target.
1660 * target.h (struct process_stratum_target): Remove the target op.
1661 (class process_target): Add the target op.
1662 * target.cc: Add "hostio.h" to includes.
1663 (process_target::hostio_last_error): Define.
1665 Update the derived classes and callers below.
1667 * hostio.cc (hostio_error): Update.
1668 * linux-low.cc: Remove "hostio.h" from includes.
1669 (linux_target_ops): Update.
1670 * lynx-low.cc (lynx_target_ops): Update.
1671 * nto-low.cc (nto_target_ops): Update.
1672 * win32-low.h (class win32_process_target): Update.
1673 * win32-low.cc (win32_target_ops): Update.
1674 (wince_hostio_last_error): Turn into ...
1675 (win32_process_target::hostio_last_error): ... this.
1677 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1679 Turn process_stratum_target's get_tls_address op into a method of
1682 * target.h (struct process_stratum_target): Remove the target op.
1683 (class process_target): Add the target op. Also add
1684 'supports_get_tls_address'.
1685 * target.cc (process_target::get_tls_address): Define.
1686 (process_target::supports_get_tls_address): Define.
1688 Update the derived classes and callers below.
1690 * server.cc (handle_query): Update.
1691 * linux-low.cc (linux_target_ops): Update.
1692 (linux_process_target::supports_get_tls_address): Define.
1693 (linux_process_target::get_tls_address): Define.
1694 * linux-low.h (class linux_process_target): Update.
1695 * lynx-low.cc (lynx_target_ops): Update.
1696 * nto-low.cc (nto_target_ops): Update.
1697 * win32-low.cc (win32_target_ops): Update.
1699 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1701 Turn process_stratum_target's read_offsets op into a method of
1704 * target.h (struct process_stratum_target): Remove the target op.
1705 (class process_target): Add the target op. Also add
1706 'supports_read_offsets'.
1707 * target.cc (process_target::read_offsets): Define.
1708 (process_target::supports_read_offsets): Define.
1710 Update the derived classes and callers below.
1712 * server.cc (handle_query): Update.
1713 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1714 (linux_target_ops): Update.
1715 (linux_process_target::supports_read_offsets): Define.
1716 (linux_read_offsets): Turn into ...
1717 (linux_process_target::read_offsets): ... this.
1718 * linux-low.h (class linux_process_target): Update.
1719 * lynx-low.cc (lynx_target_ops): Update.
1720 * nto-low.cc (nto_target_ops): Update.
1721 * win32-low.cc (win32_target_ops): Update.
1723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725 Turn process_stratum_target's stopped_by_watchpoint and
1726 stopped_data_address ops into methods of process_target.
1728 * target.h (struct process_stratum_target): Remove the target ops.
1729 (class process_target): Add the target ops.
1730 * target.cc (process_target::stopped_by_watchpoint): Define.
1731 (process_target::stopped_data_address): Define.
1733 Update the derived classes and callers below.
1735 * remote-utils.cc (prepare_resume_reply): Update.
1736 * linux-low.cc (linux_target_ops): Update.
1737 (linux_stopped_by_watchpoint): Turn into ...
1738 (linux_process_target::stopped_by_watchpoint): ... this.
1739 (linux_stopped_data_address): Turn into ...
1740 (linux_process_target::stopped_data_address): ... this.
1741 * linux-low.h (class linux_process_target): Update.
1742 * lynx-low.cc (lynx_target_ops): Update.
1743 * nto-low.cc (nto_target_ops): Update.
1744 (nto_stopped_by_watchpoint): Turn into ...
1745 (nto_process_target::stopped_by_watchpoint): ... this.
1746 (nto_stopped_data_address): Turn into ...
1747 (nto_process_target::stopped_data_address): ... this.
1748 * nto-low.h (class nto_process_target): Update.
1749 * win32-low.cc (win32_target_ops): Update.
1750 (win32_stopped_by_watchpoint): Turn into ...
1751 (win32_process_target::stopped_by_watchpoint): ... this.
1752 (win32_stopped_data_address): Turn into ...
1753 (win32_process_target::stopped_data_address): ... this.
1754 * win32-low.h (class win32_process_target): Update.
1756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1758 Turn process_stratum_target's supports_hardware_single_step op into
1759 a method of process_target.
1761 * target.h (struct process_stratum_target): Remove the target op.
1762 (class process_target): Add the target op.
1763 (target_supports_hardware_single_step): Update the macro.
1764 (target_can_do_hardware_single_step): Remove declaration.
1765 * target.cc (process_target::supports_hardware_single_step): Define.
1766 (target_can_do_hardware_single_step): Remove.
1768 Update the derived classes and callers below.
1770 * linux-low.h (class linux_process_target): Update.
1771 * linux-low.cc (linux_target_ops): Update.
1772 (linux_supports_hardware_single_step): Turn into ...
1773 (linux_process_target::supports_hardware_single_step): ... this.
1774 * lynx-low.h (class lynx_process_target): Update.
1775 * lynx-low.cc (lynx_target_ops): Update.
1776 (lynx_process_target::supports_hardware_single_step): Define.
1777 * nto-low.h (class nto_process_target): Update.
1778 * nto-low.cc (nto_target_ops): Update.
1779 (nto_process_target::supports_hardware_single_step): Define.
1780 * win32-low.h (class win32_process_target): Update.
1781 * win32-low.cc (win32_target_ops): Update.
1782 (win32_process_target::supports_hardware_single_step): Define.
1784 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1786 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1787 ops into methods of process_target.
1789 * target.h (struct process_stratum_target): Remove the target ops.
1790 (class process_target): Add the target ops.
1791 (target_stopped_by_hw_breakpoint): Update the macro.
1792 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1793 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1794 (process_target::supports_stopped_by_hw_breakpoint): Define.
1796 Update the derived classes and callers below.
1798 * linux-low.cc (linux_target_ops): Update.
1799 (linux_stopped_by_hw_breakpoint): Turn into ...
1800 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1801 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1802 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1803 * linux-low.h (class linux_process_target): Update.
1804 * lynx-low.cc (lynx_target_ops): Update.
1805 * nto-low.cc (nto_target_ops): Update.
1806 * win32-low.cc (win32_target_ops): Update.
1808 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1810 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1811 ops into methods of process_target.
1813 * target.h (struct process_stratum_target): Remove the target ops.
1814 (class process_target): Add the target ops.
1815 (target_stopped_by_sw_breakpoint): Update the macro.
1816 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1817 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1818 (process_target::supports_stopped_by_sw_breakpoint): Define.
1820 Update the derived classes and callers below.
1822 * linux-low.cc (linux_target_ops): Update.
1823 (linux_stopped_by_sw_breakpoint): Turn into ...
1824 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1825 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1826 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1827 * linux-low.h (class linux_process_target): Update.
1828 * lynx-low.cc (lynx_target_ops): Update.
1829 * nto-low.cc (nto_target_ops): Update.
1830 * win32-low.cc (win32_target_ops): Update.
1832 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1834 Turn process_stratum_target's insert_point and remove_point ops
1835 into methods of process_target.
1837 * target.h (struct process_stratum_target): Remove the target ops.
1838 (class process_target): Add the target ops.
1839 * target.cc (process_target::insert_point): Define.
1840 (process_target::remove_point): Define.
1842 Update the derived classes and callers below.
1844 * mem-break.cc (set_raw_breakpoint_at): Update.
1845 (delete_raw_breakpoint): Update.
1846 (uninsert_raw_breakpoint): Update.
1847 (reinsert_raw_breakpoint): Update.
1848 * linux-low.cc (linux_target_ops): Update.
1849 (linux_insert_point): Turn into ...
1850 (linux_process_target::insert_point): ... this.
1851 (linux_remove_point): Turn into ...
1852 (linux_process_target::remove_point): ... this.
1853 * linux-low.h (class linux_process_target): Update.
1854 * lynx-low.cc (lynx_target_ops): Update.
1855 * nto-low.cc (nto_target_ops): Update.
1856 (nto_insert_point): Turn into ...
1857 (nto_process_target::insert_point): ... this.
1858 (nto_remove_point): Turn into ...
1859 (nto_process_target::remove_point): ... this.
1860 * nto-low.h (class nto_process_target): Update.
1861 * win32-low.cc (win32_target_ops): Update.
1862 (win32_insert_point): Turn into ...
1863 (win32_process_target::insert_point): ... this.
1864 (win32_remove_point): Turn into ...
1865 (win32_process_target::remove_point): ... this.
1866 * win32-low.h (class win32_process_target): Update.
1868 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1870 Turn process_stratum_target's supports_z_point_type op into a
1871 method of process_target.
1873 * target.h (struct process_stratum_target): Remove the target op.
1874 (class process_target): Add the target op.
1875 * target.cc (process_target::supports_z_point_type): Define.
1877 Update the derived classes and callers below.
1879 * mem-break.cc (z_type_supported): Update.
1880 * linux-low.cc (linux_target_ops): Update.
1881 (linux_supports_z_point_type): Turn into ...
1882 (linux_process_target::supports_z_point_type): ... this.
1883 * linux-low.h (class linux_process_target): Update.
1884 * lynx-low.cc (lynx_target_ops): Update.
1885 * nto-low.cc (nto_target_ops): Update.
1886 (nto_supports_z_point_type): Turn into ...
1887 (nto_process_target::supports_z_point_type): ... this.
1888 * nto-low.h (class nto_process_target): Update.
1889 * win32-low.cc (win32_target_ops): Update.
1890 (win32_supports_z_point_type): Turn into ...
1891 (win32_process_target::supports_z_point_type): ... this.
1892 * win32-low.h (class win32_process_target): Update.
1894 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1896 Turn process_stratum_target's read_auxv op into a method of
1899 * target.h (class process_stratum_target): Remove the target op.
1900 (struct process_target): Add the target op. Also add
1901 'supports_read_auxv'.
1902 * target.cc (process_target::read_auxv): Define.
1903 (process_target::supports_read_auxv): Define.
1905 Update the derived classes and callers below.
1907 * server.cc (handle_qxfer_auxv): Update.
1908 (handle_query): Update.
1909 * linux-low.cc (linux_target_ops): Update.
1910 (linux_process_target::supports_read_auxv): Define.
1911 (linux_read_auxv): Turn into ...
1912 (linux_process_target::read_auxv): ... this.
1913 * linux-low.h (class linux_process_target): Update.
1914 * lynx-low.cc (lynx_target_ops): Update.
1915 * nto-low.cc (nto_target_ops): Update.
1916 (nto_process_target::supports_read_auxv): Define.
1917 (nto_read_auxv): Turn into ...
1918 (nto_process_target::read_auxv): ... this.
1919 * nto-low.h (class nto_process_target): Update.
1920 * win32-low.cc (win32_target_ops): Update.
1922 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1924 Turn process_stratum_target's request_interrupt op into a method of
1927 * target.h (struct process_stratum_target): Remove the target op.
1928 (class process_target): Add the target op.
1930 Update the derived classes and callers below.
1932 * remote-utils.cc (putpkt_binary_1): Update.
1933 (input_interrupt): Update.
1935 * server.cc (handle_v_requests): Update.
1936 * linux-low.cc (linux_target_ops): Update.
1937 (linux_request_interrupt): Turn into ...
1938 (linux_process_target::request_interrupt): ... this.
1939 * linux-low.h (class linux_process_target): Update.
1940 * lynx-low.cc (lynx_target_ops): Update.
1941 (lynx_request_interrupt): Turn into ...
1942 (lynx_process_target::request_interrupt): ... this.
1943 * lynx-low.h (class lynx_process_target): Update.
1944 * nto-low.cc (nto_target_ops): Update.
1945 (nto_request_interrupt): Turn into ...
1946 (nto_process_target::request_interrupt): ... this.
1947 * nto-low.h (class nto_process_target): Update.
1948 * win32-low.cc (win32_target_ops): Update.
1949 (win32_request_interrupt): Turn into ...
1950 (win32_process_target::request_interrupt): ... this.
1951 * win32-low.h (class win32_process_target): Update.
1953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1955 Turn process_stratum_target's look_up_symbols op into a method of
1958 * target.h (struct process_stratum_target): Remove the target op.
1959 (class process_target): Add the target op.
1960 * target.cc (process_target::look_up_symbols): Define.
1962 Update the derived classes and callers below.
1964 * server.cc (handle_query): Update.
1965 * linux-low.cc (linux_target_ops): Update.
1966 (linux_look_up_symbols): Turn into ...
1967 (linux_process_target::look_up_symbols): ... this.
1968 * linux-low.h (class linux_process_target): Update.
1969 * lynx-low.cc (lynx_target_ops): Update.
1970 * nto-low.cc (nto_target_ops): Update.
1971 * win32-low.cc (win32_target_ops): Update.
1973 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1975 Turn process_stratum_target's read_memory and write_memory
1976 ops into methods of process_target.
1978 * target.h (struct process_stratum_target): Remove the target ops.
1979 (class process_target): Add the target ops.
1981 Update the derived classes and callers below.
1983 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1984 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1985 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1986 (arm_get_syscall_trapinfo): Update.
1987 * linux-cris-low.cc (cris_breakpoint_at): Update.
1988 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1989 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1990 * linux-mips-low.cc (mips_breakpoint_at): Update.
1991 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1992 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1993 * linux-sh-low.cc (sh_breakpoint_at): Update.
1994 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1995 (sparc_store_gregset_from_stack): Update.
1996 (sparc_breakpoint_at): Update.
1997 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1998 * linux-tile-low.cc (tile_breakpoint_at): Update.
1999 * linux-x86-low.cc (x86_breakpoint_at): Update.
2000 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2001 * mem-brea.cc (insert_memory_breakpoint): Update.
2002 (validate_inserted_breakpoint): Update.
2003 * target.cc (read_inferior_memory): Update.
2004 (target_write_memory): Update.
2005 * linux-low.cc (linux_target_ops): Update.
2006 (linux_read_memory): Make a wrapper around the read_memory target
2008 (linux_process_target::read_memory): Rename from linux_read_memory.
2009 (linux_write_memory): Turn into ...
2010 (linux_process_target::write_memory): ... this.
2011 * linux-low.h (class linux_process_target): Update.
2012 * lynx-low.cc (lynx_target_ops): Update.
2013 (lynx_read_memory): Turn into ...
2014 (lynx_process_target::read_memory): ... this.
2015 (lynx_write_memory): Turn into ...
2016 (lynx_process_target::write_memory): ... this.
2017 * lynx-low.h (class lynx_process_target): Update.
2018 * nto-low.cc (nto_target_ops): Update.
2019 (nto_read_memory): Turn into ...
2020 (nto_process_target::read_memory): ... this.
2021 (nto_write_memory): Turn into ...
2022 (nto_process_target::write_memory): ... this.
2023 * nto-low.h (class nto_process_target): Update.
2024 * win32-low.cc (win32_target_ops): Update.
2025 (win32_read_inferior_memory): Turn into ...
2026 (win32_process_target::read_memory): ... this.
2027 (win32_write_inferior_memory): Turn into ...
2028 (win32_process_target::write_memory): ... this.
2029 * win32-low.h (class win32_process_target): Update.
2031 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2033 Turn process_stratum_target's prepare_to_access_memory and
2034 done_accessing_memory ops into methods of process_target.
2036 * target.h (struct process_stratum_target): Remove the target ops.
2037 (class process_target): Add the target ops.
2038 * target.cc (process_target::prepare_to_access_memory): Define.
2039 (process_target::done_accessing_memory): Define.
2040 (prepare_to_access_memory): Update.
2041 (done_accessing_memory): Update.
2043 Update the derived classes and callers below.
2045 * linux-low.cc (linux_target_ops): Update.
2046 (linux_prepare_to_access_memory): Turn into ...
2047 (linux_process_target::prepare_to_access_memory): ... this.
2048 (linux_done_accessing_memory): Turn into ...
2049 (linux_process_target::done_accessing_memory): ... this.
2050 * linux-low.h (class linux_process_target): Update.
2051 * lynx-low.cc (lynx_target_ops): Update.
2052 * nto-low.cc (nto_target_ops): Update.
2053 * win32-low.cc (win32_target_ops): Update.
2055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2057 Turn process_stratum_target's fetch_registers and store_registers
2058 ops into methods of process_target.
2060 * target.h (struct process_stratum_target): Remove the target ops.
2061 (class process_target): Add the target ops.
2062 (fetch_inferior_registers): Update the macro.
2063 (store_inferior_registers): Update the macro.
2065 Update the derived classes and callers below.
2067 * linux-low.cc (linux_target_ops): Update.
2068 (linux_fetch_registers): Turn into ...
2069 (linux_process_target::fetch_registers): ... this.
2070 (linux_store_registers): Turn into ...
2071 (linux_process_target::store_registers): ... this.
2072 * linux-low.h (class linux_process_target): Update.
2073 * lynx-low.cc (lynx_target_ops): Update.
2074 (lynx_fetch_registers): Turn into ...
2075 (lynx_process_target::fetch_registers): ... this.
2076 (lynx_store_registers): Turn into ...
2077 (lynx_process_target::store_registers): ... this.
2078 * lynx-low.h (class lynx_process_target): Update.
2079 * nto-low.cc (nto_target_ops): Update.
2080 (nto_fetch_registers): Turn into ...
2081 (nto_process_target::fetch_registers): ... this.
2082 (nto_store_registers): Turn into ...
2083 (nto_process_target::store_registers): ... this.
2084 * nto-low.h (class nto_process_target): Update.
2085 * win32-low.cc (win32_target_ops): Update.
2086 (win32_fetch_inferior_registers): Turn into ...
2087 (win32_process_target::fetch_registers): ... this.
2088 (win32_store_inferior_registers): Turn into ...
2089 (win32_process_target::store_registers): ... this.
2090 * win32-low.h (class win32_process_target): Update.
2092 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2094 Turn process_stratum_target's wait op into a method of
2097 * target.h (struct process_stratum_target): Remove the target op.
2098 (class process_target): Add the target op.
2100 Update the derived classes and callers below.
2102 * target.cc (target_wait): Update.
2103 * linux-low.cc (linux_target_ops): Update.
2104 (linux_wait): Turn into ...
2105 (linux_process_target::wait): ... this.
2106 * linux-low.h (class linux_process_target): Update.
2107 * lynx-low.cc (lynx_target_ops): Update.
2108 (lynx_wait): Turn into ...
2109 (lynx_process_target::wait): ... this.
2110 * lynx-low.h (class lynx_process_target): Update.
2111 * nto-low.cc (nto_target_ops): Update.
2112 (nto_wait): Turn into ...
2113 (nto_process_target::wait): ... this.
2114 * nto-low.h (class nto_process_target): Update.
2115 * win32-low.cc (win32_target_ops): Update.
2116 (win32_wait): Turn into ...
2117 (win32_process_target::wait): ... this.
2118 (do_initial_child_stuff): Update.
2119 * win32-low.h (class win32_process_target): Update.
2121 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2123 Turn process_stratum_target's resume op into a method of
2126 * target.h (struct process_stratum_target): Remove the target op.
2127 (class process_target): Add the target op.
2129 Update the derived classes and callers below.
2131 * server.cc (resume): Update.
2132 * target.cc (target_stop_and_wait): Update.
2133 (target_continue_no_signal): Update.
2134 (target_continue): Update.
2135 * linux-low.cc (linux_target_ops): Update.
2136 (linux_resume): Turn into ...
2137 (linux_process_target::resume): ... this.
2138 * linux-low.h (class linux_process_target): Update.
2139 * lynx-low.cc (lynx_target_ops): Update.
2140 (lynx_resume): Turn into ...
2141 (lynx_process_target::resume): ... this.
2142 * lynx-low.h (class lynx_process_target): Update.
2143 * nto-low.cc (nto_target_ops): Update.
2144 (nto_resume): Turn into ...
2145 (nto_process_target::resume): ... this.
2146 * nto-low.h (class nto_process_target): Update.
2147 * win32-low.cc (win32_target_ops): Update.
2148 (win32_resume): Turn into ...
2149 (win32_process_target::resume): ... this.
2150 (win32_process_target::detach): Update.
2151 (do_initial_child_stuff): Update.
2152 * win32-low.h (class win32_process_target): Update.
2154 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2156 Turn process_stratum_target's thread_alive op into a method of
2159 * target.h (struct process_stratum_target): Remove the target op.
2160 (class process_target): Add the target op.
2161 (mythread_alive): Update the macro.
2163 Update the derived classes and callers below.
2165 * linux-low.cc (linux_target_ops): Update.
2166 (linux_thread_alive): Turn into ...
2167 (linux_process_target::thread_alive): ... this.
2168 (wait_for_sigstop): Update.
2169 * linux-low.h (class linux_process_target): Update.
2170 * lynx-low.cc (lynx_target_ops): Update.
2171 (lynx_thread_alive): Turn into ...
2172 (lynx_process_target::thread_alive): ... this.
2173 * lynx-low.h (class lynx_process_target): Update.
2174 * nto-low.cc (nto_target_ops): Update.
2175 (nto_thread_alive): Turn into ...
2176 (nto_process_target::thread_alive): ... this.
2177 * nto-low.h (class nto_process_target): Update.
2178 * win32-low.cc (win32_target_ops): Update.
2179 (win32_thread_alive): Turn into ...
2180 (win32_process_target::thread_alive): ... this.
2181 * win32-low.h (class win32_process_target): Update.
2183 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2185 Turn process_stratum_target's join op into a method of
2188 * target.h (struct process_stratum_target): Remove the target op.
2189 (class process_target): Add the target op.
2190 (join_inferior): Update the macro.
2192 Update the derived classes and callers below.
2194 * linux-low.cc (linux_target_ops): Update.
2195 (linux_join): Turn into ...
2196 (linux_process_target::join): ... this.
2197 * linux-low.h (class linux_process_target): Update.
2198 * lynx-low.cc (lynx_target_ops): Update.
2199 (lynx_join): Turn into ...
2200 (lynx_process_target::join): ... this.
2201 * lynx-low.h (class lynx_process_target): Update.
2202 * nto-low.cc (nto_target_ops): Update.
2203 (nto_process_target::join): Define.
2204 * nto-low.h (class nto_process_target): Update.
2205 * win32-low.cc (win32_target_ops): Update.
2206 (win32_join): Turn into ...
2207 (win32_process_target::join): ... this.
2208 * win32-low.h (class win32_process_target): Update.
2210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2212 Turn process_stratum_target's mourn op into a method of
2215 * target.h (struct process_stratum_target): Remove the target op.
2216 (class process_target): Add the target op.
2218 Update the derived classes and callers below.
2220 * target.cc (target_mourn_inferior): Update.
2221 * linux-low.cc (linux_target_ops): Update.
2222 (linux_mourn): Turn into ...
2223 (linux_process_target::mourn): ... this.
2224 (handle_extended_wait): Update.
2225 (linux_process_target::kill): Update.
2226 (linux_process_target::detach): Update.
2227 * linux-low.h (class linux_process_target): Update.
2228 * lynx-low.cc (lynx_target_ops): Update.
2229 (lynx_mourn): Turn into ...
2230 (lynx_process_target::mourn): ... this.
2231 * lynx-low.h (class lynx_process_target): Update.
2232 * nto-low.cc (nto_target_ops): Update.
2233 (nto_mourn): Turn into ...
2234 (nto_process_target::mourn): ... this.
2235 * nto-low.h (class nto_process_target): Update.
2236 * win32-low.cc (win32_target_ops): Update.
2237 (win32_mourn): Turn into ...
2238 (win32_process_target::mourn): ... this.
2239 * win32-low.h (class win32_process_target): Update.
2241 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2243 Turn process_stratum_target's detach op into a method of
2246 * target.h (struct process_stratum_target): Remove the target op.
2247 (class process_target): Add the target op.
2248 (detach_inferior): Update the macro.
2250 Update the derived classes and callers below.
2252 * linux-low.cc (linux_target_ops): Update.
2253 (linux_detach): Turn into ...
2254 (linux_process_target::detach): ... this.
2255 * linux-low.h (class linux_process_target): Update.
2256 * lynx-low.cc (lynx_target_ops): Update.
2257 (lynx_detach): Turn into ...
2258 (lynx_process_target::detach): ... this.
2259 * lynx-low.h (class lynx_process_target): Update.
2260 * nto-low.cc (nto_target_ops): Update.
2261 (nto_detach): Turn into ...
2262 (nto_process_target::detach): ... this.
2263 * nto-low.h (class nto_process_target): Update.
2264 * win32-low.cc (win32_target_ops): Update.
2265 (win32_detach): Turn into ...
2266 (win32_process_target::detach): ... this.
2267 * win32-low.h (class win32_process_target): Update.
2269 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2271 Turn process_stratum_target's kill op into a method of
2274 * target.h (struct process_stratum_target): Remove the target op.
2275 (class process_target): Add the target op.
2277 Update the derived classes and callers below.
2279 * target.cc (kill_inferior): Update.
2280 * linux-low.cc (linux_target_ops): Update.
2281 (linux_kill): Turn into ...
2282 (linux_process_target::kill): ... this.
2283 * linux-low.h (class linux_process_target): Update.
2284 * lynx-low.cc (lynx_target_ops): Update.
2285 (lynx_kill): Turn into ...
2286 (lynx_process_target::kill): ... this.
2287 * lynx-low.h (class lynx_process_target): Update.
2288 * nto-low.cc (nto_target_ops): Update.
2289 (nto_kill): Turn into ...
2290 (nto_process_target::kill): ... this.
2291 * nto-low.h (class nto_process_target): Update.
2292 * win32-low.cc (win32_target_ops): Update.
2293 (win32_kill): Turn into ...
2294 (win32_process_target::kill): ... this.
2295 * win32-low.h (class win32_process_target): Update.
2297 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2299 Turn process_stratum_target's attach op into a method of
2302 * target.h (struct process_stratum_target): Remove the target op.
2303 (class process_target): Add the target op.
2304 (myattach): Update the macro.
2306 Update the derived classes and callers below.
2308 * linux-low.cc (linux_target_ops): Update.
2309 (linux_attach): Turn into ...
2310 (linux_process_target::attach): ... this.
2311 * linux-low.h (class linux_process_target): Update.
2312 * lynx-low.cc (lynx_target_ops): Update.
2313 (lynx_attach): Turn into ...
2314 (lynx_process_target::attach): ... this.
2315 * lynx-low.h (class lynx_process_target): Update.
2316 * nto-low.cc (nto_target_ops): Update.
2317 (nto_attach): Turn into ...
2318 (nto_process_target::attach): ... this.
2319 * nto-low.h (class nto_process_target): Update.
2320 * win32-low.cc (win32_target_ops): Update.
2321 (win32_attach): Turn into ...
2322 (win32_process_target::attach): ... this.
2323 * win32-low.h (class win32_process_target): Update.
2325 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2327 Turn process_stratum_target's post_create_inferior op into a method
2330 * target.h (struct process_stratum_target): Remove the target op.
2331 (class process_target): Add the target op.
2332 (target_post_create_inferior): Update the macro.
2333 * target.cc (process_target::post_create_inferior): Define.
2335 Update the derived classes and callers below.
2337 * linux-low.cc (linux_target_ops): Update.
2338 (linux_post_create_inferior): Turn into ...
2339 (linux_process_target::post_create_inferior): ... this.
2340 * linux-low.h (class linux_process_target): Update.
2341 * lynx-low.cc (lynx_target_ops): Update.
2342 * nto-low.cc (nto_target_ops): Update.
2343 * win32-low.cc (win32_target_ops): Update.
2345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2347 Turn process_stratum_target's create_inferior op into a method of
2350 * target.h (struct process_stratum_target): Remove the target op.
2351 (class process_target): Add the target op.
2352 (create_inferior): Rename the macro to ...
2353 (target_create_inferior): ... this.
2355 Update the derived classes and callers below.
2357 * server.cc (handle_v_run): Update.
2358 (captured_main): Update.
2359 (process_serial_event): Update.
2360 * linux-low.cc (linux_target_ops): Update.
2361 (linux_create_inferior): Turn into ...
2362 (linux_process_target::create_inferior): ... this.
2363 * linux-low.h (class linux_process_target): Update.
2364 * lynx-low.cc (lynx_target_ops): Update.
2365 (lynx_create_inferior): Turn into ...
2366 (lynx_process_target::create_inferior): ... this.
2367 * lynx-low.h (class lynx_process_target): Update.
2368 * nto-low.cc (nto_target_ops): Update.
2369 (nto_create_inferior): Turn into ...
2370 (nto_process_target::create_inferior): ... this.
2371 * nto-low.h (class nto_process_target): Update.
2372 * win32-low.cc (win32_target_ops): Update.
2373 (win32_create_inferior): Turn into ...
2374 (win32_process_target::create_inferior): ... this.
2375 * win32-low.h (class win32_process_target): Update.
2377 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2379 * target.h (class process_target): New class definition.
2380 (struct process_stratum_target) <pt>: New field with type
2382 * linux-low.h (class linux_process_target): Define as a derived
2383 class of 'process_target'.
2384 * linux-low.cc (linux_target_ops): Add a linux_process_target*
2386 * lynx-low.h (class lynx_process_target): Define as a derived
2387 class of 'process_target'.
2388 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
2390 * nto-low.h (class nto_process_target): Define as a derived
2391 class of 'process_target'.
2392 * nto-low.cc (nto_target_ops): Add an nto_process_target*
2394 * win32-low.h (class win32_process_target): Define as a derived
2395 class of 'process_target'.
2396 * win32-low.cc (win32_target_ops): Add a win32_process_target*
2399 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2401 * configure: Regenerate.
2403 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
2404 Andrew Burgess <andrew.burgess@embecosm.com>
2406 * linux-riscv-low.cc: New file.
2407 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
2408 and nat/riscv-linux-tdesc.c.
2409 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
2410 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
2413 2020-02-14 Tom Tromey <tom@tromey.com>
2415 * acinclude.m4: Don't include acx_configure_dir.m4.
2416 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
2417 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
2418 (all, install-only, uninstall, clean-info, clean)
2419 (maintainer-clean): Don't recurse.
2420 (subdir_do, all-lib): Remove.
2421 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
2423 (generated_files): Update.
2424 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
2425 * configure: Rebuild.
2426 * configure.ac: Don't configure gnulib or libiberty.
2429 2020-02-14 Eli Zaretskii <eliz@gnu.org>
2431 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
2432 preparing the command line for CreateProcess.
2433 (win32_create_inferior): Reflect the program name in debugging
2434 output that shows the process and its command line.
2436 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2438 * Makefile.in: Rename source files from .c to .cc.
2439 * %.c: Rename to %.cc.
2440 * configure.ac: Rename server.c to server.cc.
2441 * configure: Re-generate.
2443 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2445 * Makefile.in: Rename gdbsupport source files from .c to .cc.
2447 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
2449 * win32-low.c (win32_create_inferior): Set signal_pid.
2451 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
2452 Pedro Alves <palves@redhat.com>
2454 Skip building gdbserver in a cross-configuration.
2455 * configure.srv: Set $gdbserver_host depending on whether $target
2456 is $host. Use $gdbserver_host instead of $host.
2458 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2460 * configure: Re-generate.
2462 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2464 * configure: Re-generate.
2466 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2468 * acinclude.m4: Update warning.m4 path.
2470 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2472 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
2473 (handle_exception): Set siginfo_er.
2474 (win32_xfer_siginfo): New function.
2476 2020-02-07 Tom Tromey <tom@tromey.com>
2477 Pedro Alves <palves@redhat.com>
2479 * README: Update build documentation.
2480 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
2482 * configure.ac: Update paths.
2483 * configure: Rebuild.
2484 * acinclude.m4: Update paths.
2485 * Makefile.in: Update include paths.
2486 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
2487 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
2488 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
2489 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
2490 (%-generated.c): Update paths.
2491 * Move entire directory from ../gdb/gdbserver.
2493 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
2495 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2497 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2499 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2500 assignment instead of srv_linux_obj.
2502 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
2504 * server.c (handle_qxfer_libraries): Write segment-address with
2507 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
2509 * Makefile.in (install-strip): New target.
2510 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
2511 * aclocal.m4: Regenerate.
2512 * configure: Regenerate.
2513 * configure.ac: Add AM_PROG_INSTALL_STRIP.
2515 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2517 * Makefile.in (SFILES): Adjust paths to point to real files.
2518 (OBS): Move waitstatus.o to target/waitstatus.o.
2519 (TAGS): Transform paths appropriately.
2521 (nat/%.o): ... this pattern rule.
2523 (target/%.o): ... this pattern rule.
2524 * configure.srv: Adjust paths throughout to include nat/ prefix
2525 with the revant files.
2526 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
2527 * configure: Regenerate.
2529 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2531 * Makefile.in (TAGS): Remove config files from the recipe.
2533 2020-01-14 Tom Tromey <tom@tromey.com>
2535 * configure: Rebuild.
2536 * configure.ac: Remove any checks that were added to common.m4.
2537 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
2540 2020-01-14 Tom Tromey <tom@tromey.com>
2542 * server.h: Include config.h.
2543 * gdbreplay.c: Include config.h.
2544 * configure: Rebuild.
2545 * configure.ac: Don't source common.host.
2546 * acinclude.m4: Update path.
2547 * Makefile.in (INCSUPPORT): New variable.
2548 (INCLUDE_CFLAGS): Add INCSUPPORT.
2549 (SFILES): Update paths.
2550 (version-generated.c): Update path to create-version.sh.
2551 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
2553 2020-01-14 Tom Tromey <tom@tromey.com>
2555 * configure.ac (LIBS): Use WIN32APILIBS.
2556 (USE_WIN32API): Don't define.
2557 * configure: Rebuild.
2559 2020-01-14 Tom Tromey <tom@tromey.com>
2561 * configure: Rebuild.
2563 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2565 * Makefile.in (%-generated.c): Remove rule for files from
2568 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2570 * configure: Re-generate.
2572 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2574 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2576 * tracepoint.c (stop_tracing, flush_trace_buffer,
2577 about_to_request_buffer_space, get_trace_state_variable_value,
2578 set_trace_state_variable_value, gdb_collect): Add declaration.
2580 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2582 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2583 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2584 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2585 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2586 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2589 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2591 * inferiors.c: Include gdbsupport/common-inferior.h.
2593 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2595 * hostio-errno.c: Include hostio.h.
2597 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2599 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2602 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2604 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2605 * linux-arm-tdesc.h: Include arch/arm.h.
2607 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2609 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2611 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2613 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2614 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2616 2020-01-10 Pedro Alves <palves@redhat.com>
2618 * fork-child.c (post_fork_inferior): Pass target down to
2620 * inferiors.c (switch_to_thread): Add process_stratum_target
2622 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2623 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2624 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2625 * remote-utils.c (prepare_resume_reply): Pass the target to
2627 * target.c (the_target): Now a process_stratum_target.
2628 (done_accessing_memory): Pass the target to switch_to_thread.
2629 (set_target_ops): Ajust to use process_stratum_target.
2630 * target.h (struct target_ops): Rename to ...
2631 (struct process_stratum_target): ... this.
2632 (the_target, set_target_ops): Adjust.
2633 (prepare_to_access_memory): Adjust comment.
2634 * win32-low.c (child_xfer_memory): Adjust to use
2635 process_stratum_target.
2636 (win32_target_ops): Now a process_stratum_target.
2638 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2639 Pedro Alves <palves@redhat.com>
2641 * win32-low.c (get_child_debug_event): Extract the fatal exception
2642 from the exit status and convert to the equivalent Posix signal
2644 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2645 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2647 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2649 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2651 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2653 * server.c (gdbserver_version): Change copyright year to 2020.
2654 * gdbreplay.c (gdbreplay_version): Likewise.
2656 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2658 * configure: Regenerate.
2659 * configure.ac: Quote variable arguments of test.
2661 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2663 * Makefile.in: Fix build with GNU Make 3.81
2665 2019-12-16 Tom Tromey <tromey@adacore.com>
2667 * server.c (get_exec_file): Constify result.
2669 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2671 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2672 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2673 * config.in: Regenerate.
2674 * configure: Regenerate.
2675 * configure.ac: Don't check for strerror.
2676 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2677 Call safe_strerror instead of strerror.
2678 * server.h (strerror): Remove this now-unnecessary declaration.
2679 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2681 (gdb_agent_helper_thread): Likewise.
2682 * utils.c (perror_with_name): Likewise.
2684 2019-11-26 Tom Tromey <tom@tromey.com>
2686 * configure, config.in: Rebuild.
2688 2019-11-26 Tom Tromey <tom@tromey.com>
2690 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2691 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2693 * configure, config.in: Rebuild.
2695 2019-11-26 Tom Tromey <tom@tromey.com>
2697 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2698 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2699 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2700 * acinclude.m4: Include ax_pthread.m4.
2701 * config.in, configure: Rebuild.
2703 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2705 * debug.c (debug_set_output): Call safe_strerror instead of
2707 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2708 (linux_kill_one_lwp): Likewise.
2709 (linux_detach_one_lwp): Likewise.
2710 (linux_wait_for_event_filtered): Likewise.
2711 (store_register): Likewise.
2712 * lynx-low.c (lynx_attach): Likewise.
2713 * mem-break.c (insert_memory_breakpoint): Likewise.
2714 (remove_memory_breakpoint): Likewise.
2715 (delete_fast_tracepoint_jump): Likewise.
2716 (set_fast_tracepoint_jump): Likewise.
2717 (uninsert_fast_tracepoint_jumps_at): Likewise.
2718 (reinsert_fast_tracepoint_jumps_at): Likewise.
2719 * nto-low.c (nto_xfer_memory): Likewise.
2720 (nto_resume): Likewise.
2722 2019-11-20 Luis Machado <luis.machado@linaro.org>
2724 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2725 instead of register count.
2726 * tdesc.c (tdesc_contains_feature): New function.
2727 * tdesc.h (tdesc_contains_feature): New prototype.
2729 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2731 * Makefile.in: Add safe-strerror.c.
2732 * configure: Regenerate.
2733 * configure.ac: Don't source common.host.
2735 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2737 * config.in: Regenerate.
2738 * configure: Regenerate.
2740 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2742 * ax.c (ax_printf): Handle size_t_arg.
2744 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2746 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2747 * mi/mi-main.c (output_cores): Likewise.
2748 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2749 (linux_xfer_osdata_modules): Likewise.
2750 * remote.c (register_remote_support_xml): Likewise.
2751 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2752 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2754 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2756 * configure: Regenerate.
2757 * configure.ac: Remove check for strerror_r.
2759 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2761 * config.in: Regenerate.
2762 * configure: Regenerate.
2763 * configure.ac: Also check for strerror_r.
2765 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2767 * ax.h (debug_agent): Remove duplicate declaration.
2769 2019-10-26 Tom de Vries <tdevries@suse.de>
2771 * linux-aarch64-low.c: Fix typos in comments.
2772 * linux-arm-low.c: Same.
2773 * linux-low.c: Same.
2774 * linux-ppc-low.c: Same.
2775 * proc-service.c: Same.
2778 * tracepoint.c: Same.
2779 * win32-low.c: Same.
2781 2019-10-25 Tom Tromey <tromey@adacore.com>
2783 * utils.c (xstrdup): Remove.
2785 2019-10-23 Tom Tromey <tom@tromey.com>
2787 * configure, config.in: Rebuild.
2789 2019-10-23 Tom Tromey <tom@tromey.com>
2791 * configure: Rebuild.
2792 * acinclude.m4: Use m4_include, not sinclude.
2794 2019-10-17 Tom Tromey <tromey@adacore.com>
2796 * configure: Rebuild.
2797 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2798 in AC_CONFIG_FILES invocation.
2799 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2802 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2804 * server.c: Include xml-builtin.h.
2805 (get_xml_features): Don't declare xml_builtins here.
2807 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2809 * Makefile.in: Remove references to vec-ipa.o.
2811 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2813 * Makefile.in: Remove references to vec.c.
2815 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2817 * server.c (server_waiting): Change to bool.
2818 (extended_protocol): Likewise.
2819 (response_needed): Likewise.
2820 (exit_requested): Likewise.
2821 (run_once): Likewise.
2822 (report_no_resumed): Likewise.
2823 (non_stop): Likewise.
2824 (disable_packet_vCont): Likewise.
2825 (disable_packet_Tthread): Likewise.
2826 (disable_packet_qC): Likewise.
2827 (disable_packet_qfThreadInfo): Likewise.
2828 (handle_general_set): Update.
2829 (handle_detach): Update.
2830 (handle_monitor_command): Update.
2831 (handle_query): Update.
2832 (captured_main): Update.
2833 (process_serial_event): Update.
2834 * server.h (server_waiting): Change to bool.
2835 (disable_packet_vCont): Likewise.
2836 (disable_packet_Tthread): Likewise.
2837 (disable_packet_qC): Likewise.
2838 (disable_packet_qfThreadInfo): Likewise.
2839 (run_once): Likewise.
2840 (non_stop): Likewise.
2841 * target.c (target_stop_and_wait): Update.
2843 2019-10-02 Tom Tromey <tromey@adacore.com>
2845 * Makefile.in (SFILES): Add common-inferior.c.
2846 (OBS): Add common-inferior.o.
2847 * server.c (startup_with_shell): Don't define.
2849 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2851 * linux-low.c (linux_low_read_btrace): Update for change to
2854 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2856 * debug.c (debug_threads): Remove comment in favor of the header.
2857 * debug.h (using_threads): Add declaration.
2858 (debug_threads): Add comment.
2859 * linux-aarch64-low.c: Include debug.h and remove declaration of
2861 * nto-low.c: Likewise.
2862 * remote-utils.c: Likewise.
2863 * thread-db.c: Likewise.
2865 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2867 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2868 and powerpc-cell64l-ipa.o.
2869 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2870 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2871 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2874 * spu-low.c: Remove file.
2876 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2877 (parse_spufs_run): Remove.
2878 (ppc_get_pc): Remove Cell/B.E. support.
2879 (ppc_set_pc): Likewise.
2880 (ppc_breakpoint_at): Likewise.
2881 (ppc_arch_setup): Likewise.
2882 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2883 tdesc_powerpc_cell32l.
2884 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2885 or init_registers_powerpc_cell32l.
2886 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2887 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2888 or init_registers_powerpc_cell32l.
2889 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2890 (init_registers_powerpc_cell32l): Remove prototype.
2891 (init_registers_powerpc_cell64l): Likewise.
2893 * target.h (struct target_ops): Remove qxfer_spu member.
2894 * server.c (handle_qxfer_spu): Remove.
2895 (qxfer_packets): Remove entry for "spu".
2896 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2897 * linux-low.c (SPUFS_MAGIC): Remove.
2898 (spu_enumerate_spu_ids): Remove.
2899 (linux_qxfer_spu): Remove.
2900 (linux_target_ops): Remove qxfer_spu member.
2901 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2902 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2903 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2905 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2907 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2908 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2909 * config.in: Regenerate.
2910 * configure: Regenerate.
2912 2019-08-15 Tom Tromey <tromey@adacore.com>
2914 * target.c (target_write_memory): Use gdb::byte_vector.
2916 2019-08-15 Tom Tromey <tromey@adacore.com>
2918 * tracepoint.c (write_inferior_data_pointer)
2919 (write_inferior_integer, write_inferior_int8)
2920 (write_inferior_uinteger, m_tracepoint_action_download)
2921 (r_tracepoint_action_download, x_tracepoint_action_download)
2922 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2923 (download_agent_expr, download_tracepoint_1)
2924 (download_trace_state_variables, upload_fast_traceframes): Update.
2925 * server.c (gdb_write_memory): Update.
2926 * remote-utils.c (relocate_instruction): Update.
2927 * proc-service.c (ps_pdwrite): Update.
2928 * mem-break.c (remove_memory_breakpoint)
2929 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2930 (uninsert_fast_tracepoint_jumps_at)
2931 (reinsert_fast_tracepoint_jumps_at): Update.
2932 * linux-x86-low.c (append_insns)
2933 (i386_install_fast_tracepoint_jump_pad)
2934 (amd64_write_goto_address, i386_write_goto_address): Update.
2935 * linux-s390-low.c (append_insns, s390_write_goto_address):
2937 * linux-ppc-low.c (ppc_relocate_instruction)
2938 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2939 (ppc_write_goto_address): Update.
2940 * linux-aarch64-low.c (append_insns): Update.
2941 * target.h (struct target_ops): Update.
2942 (write_inferior_memory): Don't declare.
2943 * target.c (target_write_memory): Rename from
2944 write_inferior_memory. Remove old target_write_memory.
2946 2019-08-15 Tom Tromey <tromey@adacore.com>
2948 * target.c (write_inferior_memory): Use std::vector.
2950 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2953 * configure.ac: Drop enable-libmcheck support.
2954 * configure, config.in: Rebuild.
2955 * acinclude.m4: Don't include it.
2957 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2959 * configure.srv: Remove Arm xml files.
2961 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2963 * configure.srv: Add new files. Remove xml generated files.
2964 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2966 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2967 * linux-aarch32-tdesc.c: New file.
2968 * linux-aarch32-tdesc.h: New file.
2969 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2970 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2971 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2972 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2973 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2974 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2975 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2976 (arm_read_description): Call arm_linux_read_description.
2977 (initialize_low_arch): Don't init registers.
2978 * linux-arm-tdesc.c: New file.
2979 * linux-arm-tdesc.h: New file.
2981 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2983 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2984 Move counter inside for.
2985 (arm_read_description): Check ptrace earlier.
2986 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2988 2019-07-09 Tom Tromey <tom@tromey.com>
2990 * configure: Rebuild.
2991 * configure.ac: Change common to gdbsupport.
2992 * acinclude.m4: Change common to gdbsupport.
2993 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2994 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2995 common to gdbsupport.
2996 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2997 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2998 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2999 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3000 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3001 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3002 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3003 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3004 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3005 common to gdbsupport.
3007 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3009 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3011 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3013 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3015 * configure.srv: Remove legacy xml.
3016 * linux-aarch64-low.c (initialize_low_arch): Remove
3017 initialize_low_tdesc call.
3018 * linux-aarch64-tdesc-selftest.c: Remove file.
3019 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3020 * linux-x86-low.c (initialize_low_arch): Remove
3021 initialize_low_tdesc call.
3022 * linux-x86-tdesc-selftest.c: Remove file.
3023 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3025 2019-06-20 Tom de Vries <tdevries@suse.de>
3027 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3028 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3030 2019-06-19 Tom de Vries <tdevries@suse.de>
3032 * debug.h (debug_write): Change return type to ssize_t.
3033 * debug.c (debug_write): Same.
3035 2019-06-14 Tom Tromey <tom@tromey.com>
3037 * configure.ac: Use new path to gnulib.
3038 * configure: Rebuild.
3039 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3042 2019-06-11 Tom Tromey <tom@tromey.com>
3044 * Makefile.in (SFILES): Add alloc.c.
3046 (IPA_OBJS): Add alloc-ipa.o.
3047 (alloc-ipa.o): New target.
3048 (%.o: ../%.c): New pattern rule.
3050 2019-06-10 Tom Tromey <tromey@adacore.com>
3052 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3053 end warning with a newline.
3054 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3056 * thread-db.c (attach_thread): Don't end warning with a newline.
3057 (thread_db_notice_clone): Likewise.
3058 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3060 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3061 end warning with a newline.
3063 2019-06-04 Pedro Alves <palves@redhat.com>
3065 * server.c (captured_main): Use make_unique_xstrdup.
3067 2019-06-02 Tom Tromey <tom@tromey.com>
3069 * gdbreplay.c (fromhex): Remove.
3070 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3072 2019-05-29 Tom Tromey <tromey@adacore.com>
3074 * configure: Rebuild.
3076 2019-05-06 Kevin Buettner <kevinb@redhat.com>
3078 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3079 sign extension code on 32-bit builds.
3081 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3084 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3086 2019-04-19 Tom Tromey <tom@tromey.com>
3088 * server.c (struct vstop_notif): Derive from notif_event.
3090 (queue_stop_reply): Update.
3091 (remove_all_on_match_ptid): Change type. Rewrite.
3092 (discard_queued_stop_replies): Rewrite.
3093 (in_queued_stop_replies_ptid): Change type.
3094 (in_queued_stop_replies): Rewrite.
3095 (notif_stop): Update.
3096 (queue_stop_reply_callback): Update.
3097 (captured_main): Don't call initialize_notif.
3098 (push_stop_notification): Update.
3099 * notif.c (notif_write_event, handle_notif_ack)
3100 (notif_event_enque, notif_push): Update.
3101 (notif_event_xfree, initialize_notif): Remove.
3102 * notif.h (struct notif_event): Include <list>, not
3104 (struct notif_server) <queue>: Now a std::list.
3105 (notif_event_p): Remove typedef.
3106 (initialize_notif): Don't declare.
3107 (struct notif_event): Add virtual destructor.
3109 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3111 * ax.c (ax_vdebug): Call debug_printf.
3112 * debug.c (debug_write): New function.
3113 * debug.h (debug_write): New declaration.
3114 * linux-low.c (sigchld_handler): Call debug_write.
3116 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3118 * debug.c (debug_set_output): New function.
3119 (debug_vprintf): Send output to debug_file.
3120 (debug_flush): Likewise.
3121 * debug.h (debug_set_output): New declaration.
3122 * server.c (handle_monitor_command): Add debug-file option.
3123 (captured_main): Likewise.
3125 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3127 * debug.c (remote_debug): Add definition.
3128 * debug.h (remote_debug): Add declaration.
3129 * hostio.c (remote_debug): Remove declaration.
3130 * remote-utils.c (struct ui_file): Likewise.
3131 (remote_debug): Likewise.
3132 * remote-utils.h (remote_debug): Likewise,
3133 * server.c (remote_debug): Remove definition.
3135 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3137 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3138 when using a 64-bit gdbserver.
3140 2019-04-09 Tom Tromey <tromey@adacore.com>
3142 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3144 2019-04-08 Tom Tromey <tom@tromey.com>
3146 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3148 (linux_resume_one_lwp): Likewise.
3150 2019-04-08 Tom Tromey <tom@tromey.com>
3152 * gdbreplay.c: Update.
3153 * linux-low.c: Update.
3156 2019-04-08 Tom Tromey <tom@tromey.com>
3158 * server.c: Use C++ exception handling.
3159 * linux-low.c: Use C++ exception handling.
3160 * gdbreplay.c: Use C++ exception handling.
3162 2019-04-08 Tom Tromey <tom@tromey.com>
3164 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3165 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3166 (captured_main, main): Update.
3167 * gdbreplay.c (main): Update.
3169 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3171 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3172 value in argument pointer, return 1 if the entry is found and 0
3173 otherwise. Move comment.
3174 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3175 * linux-low.h (linux_get_auxv): Declare.
3176 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3178 2019-04-05 Tom Tromey <tromey@adacore.com>
3180 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3183 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3185 * linux-low.c (AT_HWCAP2): Add define if not already included.
3187 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3189 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3190 (aarch64_arch_setup): Call linux_get_hwcap.
3191 * linux-arm-low.c (arm_get_hwcap): Remove function.
3192 (arm_read_description): Call linux_get_hwcap.
3193 * linux-low.c (linux_get_auxv): New function.
3194 (linux_get_hwcap): Likewise.
3195 (linux_get_hwcap2): Likewise.
3196 * linux-low.h (linux_get_hwcap): New declaration.
3197 (linux_get_hwcap2): Likewise.
3198 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3199 (ppc_arch_setup): Call linux_get_hwcap.
3200 * linux-s390-low.c (s390_get_hwcap): Remove function.
3201 (s390_arch_setup): Call linux_get_hwcap.
3203 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3204 Jiong Wang <jiong.wang@arm.com>
3206 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3207 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3209 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3211 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3212 Jiong Wang <jiong.wang@arm.com>
3214 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3215 (aarch64_get_hwcap): New function.
3216 (aarch64_arch_setup): Read APIA hwcap.
3218 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3219 Jiong Wang <jiong.wang@arm.com>
3221 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3222 (initialize_low_tracepoint): Likewise.
3223 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3224 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3225 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3226 (aarch64_linux_read_description): Likewise.
3227 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3229 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3231 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3232 i386_create_target_description for 'segments' parameter.
3233 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3234 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3235 * win32-i386-low.c (i386_arch_setup): Likewise.
3237 2019-03-12 Tom Tromey <tromey@adacore.com>
3239 * linux-low.c (iterate_over_lwps): Update.
3241 2019-03-06 Tom Tromey <tom@tromey.com>
3243 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3244 (captured_main): Use SCOPE_EXIT.
3246 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3248 * configure.srv: Use '$enable_unittest' instead of '$development'
3249 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3252 2019-02-27 Tom Tromey <tromey@adacore.com>
3254 * gdbreplay.c (logchar): Handle \r\n.
3256 2019-02-07 Alan Hayward <alan.hayward@arm.com>
3258 * linux-low.c (linux_attach): Add process before lwp.
3259 * server.c (attach_inferior): Check if already attached.
3261 2019-02-07 Tom Tromey <tom@tromey.com>
3263 * x86-tdesc.h: Rename include guard.
3264 * x86-low.h: Add include guard.
3265 * wincecompat.h: Rename include guard.
3266 * win32-low.h: Add include guard.
3267 * utils.h: Rename include guard.
3268 * tracepoint.h: Rename include guard.
3269 * tdesc.h: Rename include guard.
3270 * target.h: Rename include guard.
3271 * server.h: Rename include guard.
3272 * remote-utils.h: Rename include guard.
3273 * regcache.h: Rename include guard.
3274 * nto-low.h: Rename include guard.
3275 * notif.h: Add include guard.
3276 * mem-break.h: Rename include guard.
3277 * lynx-low.h: Add include guard.
3278 * linux-x86-tdesc.h: Add include guard.
3279 * linux-s390-tdesc.h: Add include guard.
3280 * linux-ppc-tdesc-init.h: Add include guard.
3281 * linux-low.h: Add include guard.
3282 * linux-aarch64-tdesc.h: Add include guard.
3283 * linux-aarch32-low.h: Add include guard.
3284 * inferiors.h: Rename include guard.
3285 * i387-fp.h: Rename include guard.
3286 * hostio.h: Rename include guard.
3287 * gdbthread.h: Rename include guard.
3288 * gdb_proc_service.h: Rename include guard.
3289 * event-loop.h: Rename include guard.
3290 * dll.h: Rename include guard.
3291 * debug.h: Rename include guard.
3292 * ax.h: Rename include guard.
3294 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3297 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3298 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3300 2019-01-25 Tom Tromey <tom@tromey.com>
3302 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3304 2019-01-25 Tom Tromey <tom@tromey.com>
3306 * win32-low.c: Fix common/ includes.
3307 * win32-i386-low.c: Fix common/ includes.
3308 * tracepoint.c: Fix common/ includes.
3309 * thread-db.c: Fix common/ includes.
3310 * target.h: Fix common/ includes.
3311 * symbol.c: Fix common/ includes.
3312 * spu-low.c: Fix common/ includes.
3313 * server.h: Fix common/ includes.
3314 * server.c: Fix common/ includes.
3315 * remote-utils.c: Fix common/ includes.
3316 * regcache.h: Fix common/ includes.
3317 * regcache.c: Fix common/ includes.
3318 * nto-x86-low.c: Fix common/ includes.
3319 * notif.h: Fix common/ includes.
3320 * mem-break.h: Fix common/ includes.
3321 * lynx-low.c: Fix common/ includes.
3322 * lynx-i386-low.c: Fix common/ includes.
3323 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3324 * linux-x86-low.c: Fix common/ includes.
3325 * linux-low.c: Fix common/ includes.
3326 * inferiors.h: Fix common/ includes.
3327 * i387-fp.c: Fix common/ includes.
3328 * hostio.c: Fix common/ includes.
3329 * hostio-errno.c: Fix common/ includes.
3330 * gdbthread.h: Fix common/ includes.
3331 * gdbreplay.c: Fix common/ includes.
3332 * fork-child.c: Fix common/ includes.
3333 * event-loop.c: Fix common/ includes.
3335 (enum gdb_agent_op): Fix common/ includes.
3337 2019-01-21 Tom Tromey <tom@tromey.com>
3339 * tracepoint.c: Fix includes.
3340 * remote-utils.c: Fix includes.
3341 * linux-x86-low.c: Fix includes.
3343 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3345 * gdbreplay.c (gdbreplay_version): Update copyright year in
3347 * server.c (gdbserver_version): Likewise.
3349 2018-12-05 Alan Hayward <alan.hayward@arm.com>
3351 * linux-low.c (add_lwp): Switch ordering.
3353 2018-11-29 Tom Tromey <tom@tromey.com>
3355 * win32-low.c (win32_join): Take pid, not process.
3356 * target.h (struct target_ops) <join>: Change argument type.
3357 (join_inferior): Change argument name.
3358 * spu-low.c (spu_join): Take pid, not process.
3359 * server.c (handle_detach): Preserve pid before destroying
3361 * lynx-low.c (lynx_join): Take pid, not process.
3362 * linux-low.c (linux_join): Take pid, not process.
3364 2018-11-23 Alan Hayward <alan.hayward@arm.com>
3366 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3367 (aarch64_cannot_fetch_register): Likewise.
3368 (struct linux_target_ops): Update references.
3370 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3372 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3374 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3376 * configure.srv (ipa_ppc_linux_regobj): Add
3377 powerpc-isa207-htm-vsx32l-ipa.o and
3378 powerpc-isa207-htm-vsx64l-ipa.o.
3379 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
3380 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
3381 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
3382 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
3383 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
3384 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
3385 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
3386 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
3387 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3388 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
3389 (init_registers_powerpc_isa207_htm_vsx32l)
3390 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
3391 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
3392 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
3393 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
3394 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
3395 (ppc_store_tm_ctarregset): New functions.
3396 (ppc_regsets): Add entries for HTM regsets.
3397 (ppc_arch_setup): Set htm in features struct when needed. Set
3398 sizes for the HTM regsets.
3399 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
3400 (initialize_low_arch): Call
3401 init_registers_powerpc_isa207_htm_vsx32l and
3402 init_registers_powerpc_isa207_htm_vsx64l.
3403 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3404 PPC_TDESC_ISA207_HTM_VSX.
3405 (initialize_low_tracepoint): Call
3406 init_registers_powerpc_isa207_htm_vsx32l and
3407 init_registers_powerpc_isa207_htm_vsx64l.
3409 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3411 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
3412 rs6000/power-linux-pmu.xml to srv_xmlfiles.
3413 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
3414 (ppc_store_pmuregset): New functions.
3415 (ppc_regsets): Add entries for ebb and pmu regsets.
3416 (ppc_arch_setup): Set isa207 in features struct if the ebb and
3417 pmu regsets are available. Set sizes for these regsets.
3419 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3421 * configure.srv (ipa_ppc_linux_regobj): Add
3422 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
3423 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
3424 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
3425 rs6000/powerpc-isa207-vsx32l.xml, and
3426 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
3427 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3428 <PPC_TDESC_ISA207_VSX>: New enum value.
3429 (init_registers_powerpc_isa207_vsx32l): Declare.
3430 (init_registers_powerpc_isa207_vsx64l): Declare.
3431 * linux-ppc-low.c (ppc_fill_tarregset): New function.
3432 (ppc_store_tarregset): New function.
3433 (ppc_regsets): Add entry for the TAR regset.
3434 (ppc_arch_setup): Set isa207 in features struct when needed. Set
3435 size for the TAR regsets.
3436 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
3437 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
3438 and init_registers_powerpc_isa207_vsx64l.
3439 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
3440 (initialize_low_tracepoint): Call
3441 init_registers_powerpc_isa207_vsx32l and
3442 init_registers_powerpc_isa207_vsx64l.
3444 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3445 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3447 * configure.srv (ipa_ppc_linux_regobj): Add
3448 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
3449 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
3450 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
3451 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
3452 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
3453 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
3454 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
3455 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3456 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
3457 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
3458 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
3459 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
3460 (ppc_hwcap): Add comment.
3461 (ppc_hwcap2): New global.
3462 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
3463 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
3464 (ppc_regsets): Add entries for the DSCR and PPR regsets.
3465 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
3466 when needed. Set sizes for the the DSCR and PPR regsets.
3467 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
3468 (initialize_low_arch): Call
3469 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3470 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3471 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3472 PPC_TDESC_ISA205_PPR_DSCR_VSX.
3473 (initialize_low_tracepoint): Call
3474 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3475 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3477 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3479 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
3481 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
3482 Simon Marchi <simark@simark.ca>
3484 * acinclude.m4: Include "../selftest.m4".
3485 * configure: Regenerate.
3486 * configure.ac: Use "GDB_AC_SELFTEST".
3487 * configure.srv: Use "$enable_unittests" instead of
3488 "$development" when checking whether unit tests have been
3490 * server.c (captured_main): Update message informing that
3491 selftests have been disabled.
3493 2018-10-04 Tom Tromey <tom@tromey.com>
3495 * configure: Rebuild.
3497 2018-10-04 Tom Tromey <tom@tromey.com>
3499 * server.c (handle_status): Rename inner "thread".
3500 (process_serial_event): Declare "res" in 'm' case.
3501 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
3502 (iterate_over_lwps): Rename inner "thread".
3503 (linux_qxfer_libraries_svr4): Rename inner "len".
3504 * gdbthread.h (find_thread_in_random): Rename inner "thread".
3506 2018-10-01 Gary Benson <gbenson@redhat.com>
3508 * gdb_proc_service.h: Moved common code to
3509 common/gdb_proc_service.h.
3511 2018-10-01 Gary Benson <gbenson@redhat.com>
3513 * gdb_proc_service.h: Synchronize comments and whitespace with
3514 GDB's version of this file.
3516 2018-09-25 Tom Tromey <tom@tromey.com>
3518 * configure: Rebuild.
3519 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3521 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3523 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3524 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3525 ($(IPA_LIB)): Sort IPA_OBJS.
3527 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3529 * Makefile.in: Remove references to $(ADD_DEPS).
3531 2018-09-16 Tom Tromey <tom@tromey.com>
3533 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3535 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3538 2018-09-05 Tom Tromey <tom@tromey.com>
3540 * configure: Rebuild.
3542 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3545 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3547 2018-08-27 Tom Tromey <tom@tromey.com>
3550 * configure: Rebuild.
3552 2018-08-27 Tom Tromey <tom@tromey.com>
3554 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
3555 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
3556 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
3557 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
3558 (s390x_emit_stack_adjust): Add casts to unsigned char.
3560 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3564 * server.h (struct client_state) <disable_randomization>:
3567 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3569 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3571 (mips_supply_ptrace_register): Likewise.
3573 2018-07-22 Tom Tromey <tom@tromey.com>
3575 * configure: Rebuild.
3577 2018-07-22 Tom Tromey <tom@tromey.com>
3579 * win32-low.c (win32_create_inferior): Remove unused variables.
3580 * gdbreplay.c (remote_open): Remove unused variable.
3581 * remote-utils.c (remote_prepare): Remove unused variable.
3582 * x86-tdesc.h (X86_TDESC_H): Define.
3583 (amd64_expedite_regs): Define conditionally.
3584 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3585 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3586 * remote-utils.c (readchar): Remove unused variable.
3588 2018-07-13 Pedro Alves <palves@redhat.com>
3590 * linux-low.c (linux_kill): Change parameter to process_info
3591 pointer instead of pid. Adjust.
3592 * lynx-low.c (lynx_kill): Likewise.
3593 * nto-low.c (nto_kill): Likewise.
3594 * spu-low.c (spu_kill): Likewise.
3595 * win32-low.c (win32_kill): Likewise.
3596 * server.c (handle_v_kill, kill_inferior_callback)
3597 (detach_or_kill_for_exit): Adjust.
3598 * target.c (kill_inferior): Change parameter to process_info
3599 pointer instead of pid. Adjust.
3600 * target.h (struct target_ops) <kill>: Change parameter to
3601 process_info pointer instead of pid. Adjust all implementations
3603 (kill_inferior): Likewise.
3605 2018-07-13 Pedro Alves <palves@redhat.com>
3607 * linux-low.c (linux_detach, linux_join): Change parameter to
3608 process_info pointer instead of pid. Adjust.
3609 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3610 * nto-low.c (nto_detach): Likewise.
3611 * spu-low.c (spu_detach, spu_join): Likewise.
3612 * win32-low.c (win32_detach, win32_join): Likewise.
3613 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3614 * target.h (struct target_ops) <detach, join>: Change parameter to
3615 process_info pointer instead of pid. Adjust all implementations
3617 (detach_inferior, join_inferior): Rename 'pid' parameter to
3620 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3621 Jan Kratochvil <jan.kratochvil@redhat.com>
3622 Paul Fertser <fercerpav@gmail.com>
3623 Tsutomu Seki <sekiriki@gmail.com>
3625 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3626 (OBS): Add 'common/netstuff.o'.
3627 (GDBREPLAY_OBS): Likewise.
3628 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3629 (remote_open): Implement support for IPv6
3631 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3633 (handle_accept_event): Accept connections from IPv6 sources.
3634 (remote_prepare): Handle IPv6-style hostnames; implement
3635 support for IPv6 connections.
3636 (remote_open): Implement support for printing connections from
3639 2018-07-11 Pedro Alves <palves@redhat.com>
3642 * mem-break.c (any_persistent_commands): Add process_info
3643 parameter and use it instead of relying on the current process.
3644 Change return type to bool.
3645 * mem-break.h (any_persistent_commands): Add process_info
3646 parameter and change return type to bool.
3647 * server.c (handle_detach): Remove require_running_or_return call.
3648 Look up the process_info for the process we're about to detach.
3649 If not found, return back error to GDB. Adjust
3650 any_persistent_commands call to pass down a process pointer.
3652 2018-07-11 Pedro Alves <palves@redhat.com>
3654 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3655 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3656 instead of collect_register_by_name.
3657 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3658 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3660 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3661 Pedro Alves <palves@redhat.com>
3663 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3665 2018-07-03 Tom Tromey <tom@tromey.com>
3667 * linux-low.c: Update.
3668 * lynx-low.c: Update.
3669 * mem-break.c: Update.
3670 * nto-low.c: Update.
3671 * remote-utils.c: Update.
3673 * spu-low.c: Update.
3675 * win32-low.c: Update.
3677 2018-07-03 Tom Tromey <tom@tromey.com>
3681 2018-07-03 Tom Tromey <tom@tromey.com>
3683 * linux-low.c: Update.
3685 2018-07-03 Tom Tromey <tom@tromey.com>
3689 2018-07-03 Tom Tromey <tom@tromey.com>
3691 * linux-low.c: Update.
3692 * linux-mips-low.c: Update.
3693 * lynx-low.c: Update.
3694 * nto-low.c: Update.
3695 * remote-utils.c: Update.
3697 * spu-low.c: Update.
3699 * thread-db.c: Update.
3701 2018-07-03 Tom Tromey <tom@tromey.com>
3703 * linux-low.c: Update.
3704 * linux-mips-low.c: Update.
3705 * lynx-low.c: Update.
3706 * mem-break.c: Update.
3707 * nto-low.c: Update.
3708 * remote-utils.c: Update.
3710 * spu-low.c: Update.
3712 * tracepoint.c: Update.
3714 2018-07-03 Tom Tromey <tom@tromey.com>
3716 * linux-low.c: Update.
3717 * linux-ppc-low.c: Update.
3718 * linux-x86-low.c: Update.
3719 * proc-service.c: Update.
3721 * spu-low.c: Update.
3722 * thread-db.c: Update.
3723 * win32-low.c: Update.
3725 2018-07-03 Tom Tromey <tom@tromey.com>
3727 * linux-low.c: Update.
3728 * lynx-low.c: Update.
3729 * nto-low.c: Update.
3730 * remote-utils.c: Update.
3731 * spu-low.c: Update.
3732 * thread-db.c: Update.
3733 * win32-low.c: Update.
3735 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3737 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3738 parameter in call to 'amd64_create_target_description'.
3740 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 * x86-tdesc.h: Remove executable permission flag.
3744 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3746 * configure.ac: Remove AC_PREREQ, add missing quoting.
3747 * configure: Re-generate.
3748 * config.in: Re-generate.
3749 * aclocal.m4: Re-generate.
3751 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3753 * tracepoint.h (current_traceframe): Remove declaration.
3755 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3757 * linux-aarch64-low.c (is_sve_tdesc): New function.
3758 (aarch64_sve_regs_copy_to_regcache): Likewise.
3759 (aarch64_sve_regs_copy_from_regcache): Likewise.
3760 (aarch64_regs_info): Add SVE checks.
3761 (initialize_low_arch): Initialize SVE.
3763 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3765 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3767 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3769 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3770 (initialize_low_tracepoint): Likewise
3771 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3772 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3774 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3776 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3778 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3780 * server.h (PBUFSIZ): Increase size
3782 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3784 * regcache.c (regcache::raw_compare): New function.
3785 * regcache.h (regcache::raw_compare): New declaration.
3787 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3789 * regcache.c (new_register_cache): Use new.
3790 (free_register_cache): Use delete.
3791 (register_data): Use const.
3792 (supply_register): Move body inside regcache.
3793 (regcache::raw_supply): New override function.
3794 (collect_register): Move body inside regcache.
3795 (regcache::raw_collect): New override function.
3796 (regcache::get_register_status): New override function.
3797 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3799 2018-06-09 Tom Tromey <tom@tromey.com>
3801 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3803 (event_queue): Use std::queue.
3804 (gdb_event_xfree): Remove.
3805 (initialize_event_loop, process_event, wait_for_event): Update.
3807 2018-06-08 Stan Cox <scox@redhat.com>
3809 * win32-low.c (win32_create_inferior): last_ptid and last_status
3810 moved to client_state.
3812 2018-06-08 Pedro Alves <palves@redhat.com>
3814 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3815 common/common-exceptions.o, common/common-utils.o,
3816 common/errors.o, common/print-utils.o and utils.o.
3817 * gdbreplay.c: Include "common-defs.h" instead of the two
3818 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3819 string.h or alloca.h.
3820 (perror_with_name): Delete.
3821 (remote_open): Use xstrdup instead of strdup.
3822 (main): Rename to ...
3823 (captured_main): ... this.
3826 2018-06-08 Tom Tromey <tom@tromey.com>
3828 * linux-low.c (linux_low_read_btrace): Update.
3830 2018-06-04 Stan Cox <scox@redhat.com>
3832 * server.h (struct client_state): New.
3833 * server.c (cont_thread, general_thread, multi_process)
3834 (report_fork_events, report_vfork_events, report_exec_events)
3835 (report_thread_events, swbreak_feature, hwbreak_feature)
3836 (vCont_supported, disable_randomization, pass_signals)
3837 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3838 Moved to client_state.
3839 * remote-utils.c (remote_debug, noack_mode)
3840 (transport_is_reliable): Moved to client_state.
3841 * tracepoint.c (current_traceframe): Moved to client_state.
3844 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3845 linux-low.c, remote-utils.h, target.c: Use client_state.
3847 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3849 * configure.srv: Add new c/h file.
3851 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3853 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3856 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3858 * gdb.arch/mips-fpregset-core.exp: New test.
3859 * gdb.arch/mips-fpregset-core.c: New test source.
3861 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3864 * hostio.c (require_int): Do not report overflow for integers
3865 between 0xfffffff and 0x7fffffff.
3867 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3869 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3870 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3871 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3873 (the_low_target): Wire them.
3875 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3877 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3878 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3879 mode. Call collect_register_by_name with vscr using
3880 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3881 (ppc_store_vrregset): Add and set vscr_offset variable as in
3882 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3885 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3887 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3888 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3889 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3891 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3893 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3894 (ppc_store_vsxregset): Likewise.
3895 (ppc_fill_vrregset): Likewise.
3896 (ppc_store_vrregset): Likewise.
3897 (ppc_fill_evrregset): Likewise.
3898 (ppc_store_evrregset): Likewise.
3899 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3900 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3903 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3905 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3906 wordsize of the inferior. Call ppc_linux_target_wordsize.
3908 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3910 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3911 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3912 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3913 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3914 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3915 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3916 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3917 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3918 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3919 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3920 (tdesc_powerpc_e500l): Remove.
3921 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3922 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3923 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3924 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3926 (ppc_arch_setup): Remove target description matching code. Fill a
3927 ppc_linux_features struct and call ppc_linux_match_description
3930 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3932 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3933 width of the requested register exceeds the width of the
3935 (mips_cannot_store_register): Likewise.
3937 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3939 * linux-mips-low.c (mips_fetch_register): New function. Update
3941 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3942 (the_low_target): Wire `mips_fetch_register'.
3944 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3946 * lynx-i386-low.c (LYNXOS_178): New macro.
3947 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3948 the layout on LynxOS-178.
3949 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3950 handle floating point registers that are not supported by
3953 2018-05-10 Tom Tromey <tom@tromey.com>
3955 * configure: Rebuild.
3957 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3960 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3961 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3962 Use it to set the expedite_regs field in the given tdesc.
3963 * x86-tdesc.h: New file.
3964 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3965 Adjust following the addition of the new expedite_regs parameter
3966 to init_target_desc.
3967 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3968 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3969 (i386_linux_read_description, amd64_linux_read_description):
3970 Adjust following the addition of the new expedite_regs parameter
3971 to init_target_desc.
3972 * lynx-i386-low.c: #include "x86-tdesc.h".
3973 (lynx_i386_arch_setup): Adjust following the addition of the new
3974 expedite_regs parameter to init_target_desc.
3975 * nto-x86-low.c: #include "x86-tdesc.h".
3976 (nto_x86_arch_setup): Adjust following the addition of the new
3977 expedite_regs parameter to init_target_desc.
3978 * win32-i386-low.c: #include "x86-tdesc.h".
3979 (i386_arch_setup): Adjust following the addition of the new
3980 expedite_regs parameter to init_target_desc.
3982 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3985 * win32-low.c (win32_create_inferior): Add call to my_wait
3986 setting last_status global.
3988 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3991 * win32-low.c (create_process): Only call gdb_tilde_expand if
3992 inferior_cwd is not NULL.
3994 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3996 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3997 registers to the cache if their values have changed.
3998 (i387_xsave_to_cache): Provide default values for x87 control
3999 registers when these features are available, but disabled.
4000 * regcache.c (supply_register_by_name_zeroed): New function.
4001 * regcache.h (supply_register_by_name_zeroed): Declare new
4004 2018-05-07 Tom Tromey <tom@tromey.com>
4006 * configure: Rebuild.
4008 2018-05-04 Tom Tromey <tom@tromey.com>
4010 * configure: Rebuild.
4012 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 Pedro Alves <palves@redhat.com>
4015 * linux-aarch64-low.c (aarch64_stopped_data_address):
4018 2018-04-27 Tom Tromey <tom@tromey.com>
4020 * configure: Rebuild.
4022 2018-04-23 Tom Tromey <tom@tromey.com>
4024 * configure: Rebuild.
4026 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4028 * Makefile.in (depcomp): Add "..".
4029 (all_deps_files): New and use it.
4031 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4033 * configure.srv (aarch64*-*-linux*): Don't include xml.
4034 (i[34567]86-*-cygwin*): Likewise.
4035 (i[34567]86-*-linux*): Likewise.
4036 (i[34567]86-*-lynxos*): Likewise.
4037 (i[34567]86-*-mingw32ce*): Likewise.
4038 (i[34567]86-*-mingw*): Likewise.
4039 (i[34567]86-*-nto*): Likewise.
4040 (tic6x-*-uclinux): Likewise.
4041 (x86_64-*-linux*): Likewise.
4042 (x86_64-*-mingw*): Likewise.
4043 (x86_64-*-cygwin*): Likewise.
4045 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4047 * tdesc.c: Remove xml parameter.
4049 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4051 * server.c (get_features_xml): Remove cast.
4052 * tdesc.c (void target_desc::accept): Fill in function.
4053 (tdesc_get_features_xml): Remove old xml creation.
4054 (print_xml_feature::visit_pre): Add xml vistor.
4055 * tdesc.h (struct target_desc): Make xmltarget mutable.
4056 (tdesc_get_features_xml): Remove declaration.
4058 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4060 * tdesc.c (tdesc_architecture_name): Add new function.
4061 (tdesc_osabi_name): Likewise.
4062 (tdesc_get_features_xml): Use new functions.
4064 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4066 * tdesc.c (tdesc_create_flags): Remove.
4067 (tdesc_add_flag): Likewise.
4068 (tdesc_named_type): Likewise.
4069 (tdesc_create_union): Likewise.
4070 (tdesc_create_struct): Likewise.
4071 (tdesc_create_vector): Likewise.
4072 (tdesc_add_bitfield): Likewise.
4073 (tdesc_add_field): Likewise.
4074 (tdesc_set_struct_size): Likewise.
4076 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4078 * tdesc.c (~target_desc): Remove implictly deleted items.
4079 (init_target_desc): Iterate all features.
4080 (tdesc_get_features_xml): Use vector.
4081 (tdesc_create_feature): Create feature.
4082 * tdesc.h (tdesc_feature) Remove
4083 (target_desc): Add features.
4085 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4087 * Makefile.in: Add common/tdesc.c
4088 * tdesc.c (init_target_desc): init all reg_defs from register
4090 (tdesc_create_reg): Create tdesc_reg.
4091 * tdesc.h (tdesc_feature): Add register vector.
4093 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4095 * tdesc.h (struct target_desc) <features>: Change type to
4096 std::vector<std::string>.
4097 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4099 (tdesc_get_features_xml): Likewise.
4100 (tdesc_create_feature): Likewise.
4102 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4104 * regcache.c (find_register_by_number): Return a ref.
4105 (find_regno): Use references.
4106 (register_size): Likewise.
4107 (register_data): Likewise.
4108 * tdesc.c (target_desc::~target_desc): Remove free calls.
4109 (target_desc::operator==): Use std::vector compare.
4110 (init_target_desc): Use reference.
4111 (tdesc_create_reg): Use reg constructors.
4112 * tdesc.h (struct target_desc): Replace pointer with object.
4114 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4116 * regcache.c (find_register_by_number): Make static.
4117 (find_regno): Use find_register_by_number
4118 * regcache.h (struct reg): Remove declaration.
4120 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4122 * tdesc.c (target_desc::~target_desc): Move to here.
4123 (target_desc::operator==): Likewise.
4124 * tdesc.h (target_desc::~target_desc): Move from here.
4125 (target_desc::operator==): Likewise.
4127 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4129 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4131 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4133 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4135 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4136 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4137 and init_registers_s390_gs_linux64.
4139 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4141 * linux-s390-low.c (s390_fill_gs): Remove function.
4142 (s390_fill_gsbc): Remove function.
4143 (s390_regsets): Set fill functions for the guarded storage regsets
4146 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4148 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4149 the word size. Add comment.
4150 (s390_get_wordsize): New function.
4151 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4152 pswm with it. Instead, use s390_get_wordsize to determine the
4153 word size first and derive the correct tdesc from that directly.
4155 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4157 * Makefile.in: Include silent-rules.mk.
4158 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4159 (COMPILE): Add ECHO_CXX.
4160 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4161 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4162 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4163 (version-generated.c): Add ECHO_GEN.
4164 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4165 (IPAGENT_COMPILE): Add ECHO_CXX.
4166 (%-generated.c): Add ECHO_REGDAT.
4168 2018-03-14 Tom Tromey <tom@tromey.com>
4171 * ax.c (ax_printf): Special case for NULL.
4173 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4175 * linux-low.c (linux_qxfer_libraries_svr4): Use
4176 xml_escape_text_append.
4178 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4180 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4182 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4184 * server.c (handle_general_set): Remove unnecessary xstrdup.
4186 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4188 * server.c (parse_debug_format_options): Adjust to
4189 delim_string_to_char_ptr_vec changes.
4190 * thread-db.c (thread_db_load_search): Adjust to
4191 dirnames_to_char_ptr_vec changes.
4193 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4195 * target.h (target_enable_btrace, target_disable_btrace)
4196 (target_read_btrace, target_read_btrace_conf): Turn macro into
4197 inline function. Throw error if target method is not defined.
4198 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4199 check for btrace target method. Be prepared to handle exceptions
4200 from btrace target methods.
4202 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4204 * server.c (captured_main): Change order of error message printed
4205 when the current working directory cannot be found.
4207 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4209 * server.c: Include "filenames.h" and "pathstuff.h".
4210 (program_name): Delete variable.
4211 (program_path): New anonymous class.
4212 (get_exec_wrapper): Use "program_path" instead of
4214 (handle_v_run): Likewise.
4215 (captured_main): Likewise.
4216 (process_serial_event): Likewise.
4218 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4220 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4221 (OBJS): Add "pathstuff.o".
4222 * server.c (current_directory): New global variable.
4223 (captured_main): Initialize "current_directory".
4225 2018-02-26 Alan Hayward <alan.hayward@arm.com>
4227 * tdesc.c: Use common/tdesc.h.
4228 * tdesc.h: Likewise.
4230 2018-02-20 Alan Hayward <alan.hayward@arm.com>
4231 Simon Marchi <simon.marchi@ericsson.com>
4233 * Makefile.in: Switch order of make rules.
4235 2018-02-19 Alan Hayward <alan.hayward@arm.com>
4237 * Makefile.in: Add common directory in build.
4238 * configure.ac: Add common reference.
4239 * configure: Regenerate.
4241 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4243 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4244 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4245 * spu-low.c (spu_target_ops): Likewise.
4246 * win32-low.c (win32_target_ops): Likewise.
4247 * server.c (supported_btrace_packets): Report packets unconditionally.
4248 * target.h (target_ops) <supports_btrace>: Remove.
4249 (target_supports_btrace): Remove.
4251 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4253 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4254 (handle_btrace_disable): Change return type to void. Use exceptions
4256 (handle_btrace_general_set): Catch exception and copy message to
4259 2018-02-08 Tom Tromey <tom@tromey.com>
4261 * linux-low.c (install_software_single_step_breakpoints): Use
4262 make_scoped_restore.
4263 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4264 (do_restore_current_thread_cleanup): Remove.
4265 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4268 2018-02-08 Tom Tromey <tom@tromey.com>
4270 * mem-break.c (set_raw_breakpoint_at): Use
4271 gdb::unique_xmalloc_ptr.
4273 2018-01-30 Pedro Alves <palves@redhat.com>
4276 * target.c (target_terminal::terminal_state): Rename to ...
4277 (target_terminal::m_terminal_state): ... this.
4279 2018-01-19 James Clarke <jrtc27@jrtc27.com>
4281 * linux-low.c (handle_extended_wait): Surround call to
4282 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4284 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4286 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4287 linux_ptrace_attach_fail_reason_string now returning an
4289 (linux_attach): Likewise.
4290 * thread-db.c (attach_thread): Likewise.
4292 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4295 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4296 checking for fs_base/gs_base fields in struct user_regs_struct.
4297 * configure: Regenerate.
4299 2018-01-16 Yao Qi <yao.qi@linaro.org>
4302 * linux-low.c (fetch_register): Call supply_register instead of
4305 2018-01-08 Yao Qi <yao.qi@linaro.org>
4306 Simon Marchi <simon.marchi@ericsson.com>
4308 * Makefile.in (OBS): Remove selftest.o.
4309 * configure.ac: Set srv_selftest_objs if $development is true.
4310 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4311 * configure: Re-generated.
4312 * server.c (captured_main): Wrap variable selftest_filter with
4315 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4317 * server.c (parse_debug_format_options): Return std::string.
4318 (handle_monitor_command, captured_main): Adjust.
4320 2018-01-05 Pedro Alves <palves@redhat.com>
4323 * server.c (captured_main): Pass quiet=false to
4324 save_original_signals_state.
4326 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4328 * gdbreplay.c (gdbreplay_version): Update copyright year in
4330 * server.c (gdbserver_version): Likewise.
4332 2017-12-08 Tom Tromey <tom@tromey.com>
4334 * ax.c (ax_printf): Update.
4336 2017-12-07 Yao Qi <yao.qi@linaro.org>
4338 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4339 aarch64_linux_read_description.
4340 * linux-amd64-ipa.c (idx2mask): New array.
4341 (get_ipa_tdesc): Move idx2mask out.
4342 (initialize_low_tracepoint): Initialize target descriptions.
4343 * linux-i386-ipa.c (idx2mask): New array.
4344 (get_ipa_tdesc): Move idx2mask out.
4345 (initialize_low_tracepoint): Initialize target descriptions.
4347 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4349 * tdesc.c (struct tdesc_type): Change return type.
4350 (tdesc_add_flag): Change parameter type.
4351 (tdesc_add_bitfield): Likewise.
4352 (tdesc_add_field): Likewise.
4353 (tdesc_set_struct_size): Likewise.
4355 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4357 * regcache.c (registers_to_string): Remove unused variable.
4359 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4361 * inferiors.c (for_each_inferior_with_data): Remove.
4362 * inferiors.h (for_each_inferior_with_data): Remove.
4363 * server.c (handle_qxfer_threads_worker): Change parameter type.
4364 (handle_qxfer_threads_proper): Use for_each_thread.
4366 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4368 * inferiors.c (for_each_inferior): Remove.
4369 (clear_inferiors): Use for_each_thread.
4370 * inferiors.h (for_each_inferior): Remove.
4371 * linux-low.c (linux_wait_for_event_filtered): Use
4373 (linux_stabilize_threads): Likewise.
4374 * regcache.c (regcache_release): Likewise.
4375 * server.c (gdb_wants_all_threads_stopped): Likewise.
4376 (clear_pending_status_callback): Remove.
4377 (handle_status): Use for_each_thread.
4378 (captured_main): Likewise.
4379 * win32-low.c (child_init_thread_list): Likewise.
4380 (win32_clear_inferiors): Likewise.
4381 (fake_breakpoint_event): Likewise.
4383 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4385 * inferiors.h (find_inferior): Remove.
4386 * inferiors.c (find_inferior): Remove.
4388 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4390 * linux-low.c (resume_status_pending_p): Update comment.
4391 (need_step_over_p): Update comment.
4393 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4395 * linux-low.c (proceed_one_lwp): Return void, change parameter
4397 (unsuspend_and_proceed_one_lwp): Likewise.
4398 (proceed_all_lwps): Use for_each_thread.
4399 (unstop_all_lwps): Likewise.
4401 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4403 * linux-low.c (linux_resume_one_thread): Return void, take
4405 (linux_resume): Use for_each_thread.
4407 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4409 * linux-low.c (send_sigstop_callback): Return void, change
4410 parameter type. Rename to...
4411 (send_sigstop): ... this.
4412 (suspend_and_send_sigstop_callback): Return void, change parameter
4414 (suspend_and_send_sigstop): ... this.
4415 (stop_all_lwps): Use for_each_thread.
4417 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4419 * linux-low.c (lwp_running): Return bool, remove unused
4421 (linux_stabilize_threads): Use find_thread.
4423 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4425 * linux-low.c (select_singlestep_lwp_callback): Remove.
4426 (count_events_callback): Remove.
4427 (select_event_lwp_callback): Remove.
4428 (select_event_lwp): Use find_thread/for_each_thread.
4430 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4432 * linux-low.c (not_stopped_callback): Return bool, take filter
4434 (linux_wait_for_event_filtered): Use find_thread.
4435 (linux_wait_1): Likewise.
4437 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4439 * linux-low.c (same_lwp): Remove.
4440 (find_lwp_pid): Use find_thread.
4442 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4444 * linux-low.c (delete_lwp_callback): Remove.
4445 (linux_mourn): Use for_each_thread.
4447 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4449 * linux-low.c (linux_detach_lwp_callback): Return void, remove
4450 args parameter, don't check for pid.
4451 (linux_detach): Use for_each_thread.
4453 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4455 * linux-low.c (struct counter): Remove.
4456 (second_thread_of_pid_p): Remove.
4457 (last_thread_of_process_p): Use find_thread.
4459 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4461 * inferiors.c (find_inferior_in_random): Remove.
4462 * inferiors.h (find_inferior_in_random): Remove.
4463 * linux-low.c (status_pending_p_callback): Return bool, accept
4464 parameter ptid directly.
4465 (linux_wait_for_event_filtered): Use find_thread_in_random.
4466 (linux_wait_1): Likewise.
4468 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4470 * inferiors.c (find_inferior_id): Remove.
4471 (find_thread_ptid): Move implemention from find_inferior_id to
4473 * inferiors.h (find_inferior_id): Remove.
4474 * server.c (handle_status): Use find_thread_ptid.
4475 (process_serial_event): Likewise.
4476 * thread-db.c (find_one_thread): Likewise.
4477 (thread_db_thread_handle): Likewise.
4478 * win32-low.c (thread_rec): Likewise.
4479 (child_delete_thread): Likewise.
4480 (win32_thread_alive): Likewise.
4481 (get_child_debug_event): Likewise.
4483 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4485 * linux-mips-low.c (update_watch_registers_callback): Return
4486 void, remove pid_p parameter, don't check for pid.
4487 (mips_insert_point, mips_remove_point): Use for_each_thread.
4489 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4491 * lynx.low (lynx_delete_thread_callback): Remove.
4492 (lynx_mourn): Use for_each_thread.
4494 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4496 * regcache.c (regcache_invalidate_one): Remove.
4497 (regcache_invalidate_pid): use for_each_thread.
4499 2017-11-26 Tom Tromey <tom@tromey.com>
4501 * linux-low.c (linux_create_inferior): Update.
4503 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4505 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4507 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4509 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
4510 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4511 * linux-aarch64-tdesc-selftest.c: New file.
4512 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4514 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4516 * configure.srv: Add new file.
4517 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4518 * linux-aarch64-tdesc-selftest.c: New file.
4519 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4521 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4523 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
4524 * linux-aarch64-low.c (initialize_low_arch): Remove init.
4525 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
4527 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4529 * configure.srv: Add new files.
4530 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
4531 aarch64_linux_read_description.
4532 * linux-aarch64-low.c (aarch64_linux_read_description):
4533 Merge with aarch64_arch_setup.
4534 (aarch64_arch_setup): Call aarch64_linux_read_description.
4535 * linux-aarch64-tdesc.c: New file.
4536 * linux-aarch64-tdesc.h: New file.
4538 2017-11-24 Yao Qi <yao.qi@linaro.org>
4540 * configure.srv: Set $srv_regobj for tic6x-linux.
4541 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
4542 (tic6x_read_description): Move some code to tic6x_arch_setup.
4543 (tic6x_tdesc_test): New function.
4544 (initialize_low_arch): Call selftests::register_test.
4546 2017-11-22 Yao Qi <yao.qi@linaro.org>
4548 * remote-utils.c (prepare_resume_reply): Use memcpy.
4550 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4552 * linux-low.c (kill_one_lwp_callback): Return void, take
4553 argument directly, don't filter on pid.
4554 (linux_kill): Use for_each_thread.
4556 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4558 * linux-low.c (need_step_over_p): Return bool, remove dummy
4560 (linux_resume, proceed_all_lwps): Use find_thread.
4562 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4564 * linux-low.c (resume_status_pending_p): Return bool, remove
4566 (linux_resume): Use find_thread.
4568 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4570 * linux-low.c (struct thread_resume_array): Remove.
4571 (linux_set_resume_request): Return void, take arguments
4573 (linux_resume): Use for_each_thread.
4575 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4577 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4578 return bool, remove data argument.
4579 (linux_stabilize_threads): Use find_thread.
4581 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4583 * linux-low.c (unsuspend_one_lwp): Remove.
4584 (unsuspend_all_lwps): Use for_each_thread, inline code from
4587 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4589 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4590 * linux-low.c (struct iterate_over_lwps_args): Remove.
4591 (iterate_over_lwps_filter): Remove.
4592 (iterate_over_lwps): Use find_thread.
4594 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4596 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4597 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4598 code from reset_lwp_ptrace_options_callback.
4600 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4602 * linux-arm-low.c (struct update_registers_data): Remove.
4603 (update_registers_callback): Return void, take arguments
4604 directly, don't check thread's pid.
4605 (arm_insert_point, arm_remove_point): Use for_each_thread.
4607 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4609 * win32-low.c (continue_one_thread): Return void, take argument
4611 (child_continue): Use for_each_thread.
4613 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4615 * win32-i386-low.c (update_debug_registers_callback): Rename
4617 (update_debug_registers): ... this, return void, remove pid_p arg.
4618 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4620 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4622 * inferiors.h (struct process_info): Add constructor, initialize
4624 <syscalls_to_catch>: Change type to std::vector<int>.
4625 * inferiors.c (add_process): Allocate process_info with new.
4626 (remove_process): Free process_info with delete.
4627 * linux-low.c (handle_extended_wait): Adjust.
4628 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4629 * server.c (handle_general_set): Adjust.
4631 2017-11-16 Pedro Alves <palves@redhat.com>
4633 * remote-utils.c (remote_close): Block SIGIO signals instead of
4634 uninstalling the SIGIO handler.
4636 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4638 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4640 2017-11-16 Yao Qi <yao.qi@linaro.org>
4642 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4643 (tic6x_store_gregset): Likewise.
4644 (tic6x_usrregs_info): Move it up.
4646 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4648 * Makefile.in: Update arch rules.
4649 * configure.srv: Explicitly mark arch/ files.
4651 2017-11-13 Andreas Schwab <schwab@suse.de>
4653 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4655 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4657 2017-11-06 Pedro Alves <palves@redhat.com>
4659 * config.in, configure: Regenerate.
4661 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4663 * target.c (struct thread_search): Remove.
4664 (thread_search_callback): Remove.
4665 (prepare_to_access_memory): Use for_each_thread instead of
4666 find_inferior. Inline code from thread_search_callback.
4668 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4670 * server.c (struct visit_actioned_threads_data): Remove.
4671 (visit_actioned_threads): Change prototype to take arguments
4673 (resume): Use find_thread instead of find_inferior.
4675 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4677 * server.c (queue_stop_reply_callback): Change prototype, return
4679 (find_status_pending_thread_callback): Remove.
4680 (handle_status): Replace find_inferior with find_thread and
4683 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4685 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4687 (aarch64_store_gregset): Likewise.
4688 (aarch64_fill_fpregset): Likewise.
4689 (aarch64_store_fpregset): Likewise.
4691 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4693 * gdbthread.h (find_thread, for_each_thread): New functions.
4694 * inferiors.c (thread_of_pid): Remove.
4695 (find_any_thread_of_pid): Use find_thread.
4696 * linux-low.c (num_lwps): Use for_each_thread.
4698 2017-10-17 Yao Qi <yao.qi@linaro.org>
4700 * Makefile.in: Remove one rule.
4701 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4703 2017-10-17 Yao Qi <yao.qi@linaro.org>
4705 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4706 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4708 2017-10-17 Yao Qi <yao.qi@linaro.org>
4710 * configure.srv: Rename arm.o with arch/arm.o.
4712 2017-10-17 Yao Qi <yao.qi@linaro.org>
4714 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4715 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4716 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4717 (arch-i386.o, arch-amd64.o): Remove rules.
4718 (arch/%.o): New rule.
4719 Update POSTCOMPILE and COMPILE.pre.
4720 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4721 * configure: Re-generated.
4722 * configure.srv: Replace arch-i386.o with arch/i386.o.
4723 Replace arch-amd64.o with arch/amd64.o.
4725 2017-10-16 Yao Qi <yao.qi@linaro.org>
4727 * configure: Regenerated.
4729 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4731 * inferiors.h: (struct inferior_list): Remove.
4732 (struct inferior_list_entry); Remove.
4733 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4734 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4735 get_first_inferior): Remove.
4736 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4737 find_inferior_id, find_inferior_in_random): Change signature.
4738 * inferiors.c (all_threads): Change type to
4739 std::list<thread_info *>.
4740 (get_thread): Remove macro.
4741 (find_inferior, find_inferior_id): Change signature, implement
4743 (find_inferior_in_random): Change signature, implement using
4744 find_thread_in_random.
4745 (for_each_inferior, for_each_inferior_with_data): Change
4746 signature, implement using for_each_thread.
4747 (add_inferior_to_list, remove_inferior): Remove.
4748 (add_thread, get_first_thread, thread_of_pid,
4749 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4750 (get_first_inferior, one_inferior_p, clear_inferior_list):
4752 (clear_inferiors, get_thread_process): Update.
4753 * gdbthread.h: Include <list>.
4754 (struct thread_info) <entry>: Remove field.
4756 (all_threads): Change type to std::list<thread_info *>.
4757 (get_first_inferior): Add doc.
4758 (find_thread, for_each_thread, find_thread_in_random): New
4760 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4761 * linux-arm-low.c (update_registers_callback): Update.
4762 * linux-low.c (second_thread_of_pid_p): Update.
4763 (kill_one_lwp_callback, linux_detach_lwp_callback,
4764 delete_lwp_callback, status_pending_p_callback, same_lwp,
4765 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4766 iterate_over_lwps, not_stopped_callback,
4767 resume_stopped_resumed_lwps, count_events_callback,
4768 select_singlestep_lwp_callback, select_event_lwp_callback,
4769 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4770 suspend_and_send_sigstop_callback, wait_for_sigstop,
4771 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4772 lwp_running, linux_set_resume_request, resume_status_pending_p,
4773 need_step_over_p, start_step_over, linux_resume_one_thread,
4774 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4775 reset_lwp_ptrace_options_callback): Update.
4776 * linux-mips-low.c (update_watch_registers_callback): Update.
4777 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4779 (free_register_cache_thread_one): Remove.
4780 (regcache_release): Update.
4781 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4782 handle_qxfer_threads_worker): Update.
4783 (handle_query): Update, use list iterator.
4784 (visit_actioned_threads, handle_pending_status,
4785 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4786 clear_pending_status_callback, set_pending_status_callback,
4787 find_status_pending_thread_callback, handle_status,
4788 process_serial_event): Update.
4789 * target.c (thread_search_callback): Update.
4790 * thread-db.c (thread_db_get_tls_address): Update.
4791 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4793 * win32-i386-low.c (update_debug_registers_callback): Update.
4794 * win32-low.c (delete_thread_info, child_delete_thread,
4795 continue_one_thread, suspend_one_thread,
4796 get_child_debug_event): Adjust.
4798 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4800 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4801 * inferiors.h: Include <list>.
4802 (struct process_info) <entry>: Remove field.
4804 (pid_of): Change macro to function.
4805 (ptid_of, lwpid_of): Remove macro.
4806 (all_processes): Change type to std::list<process_info *>.
4807 (ALL_PROCESSES): Remove macro.
4808 (for_each_process, find_process): New function.
4809 * inferiors.c (all_processes): Change type to
4810 std::list<process_info *>.
4811 (find_thread_process): Adjust.
4812 (add_process): Likewise.
4813 (remove_process): Likewise.
4814 (find_process_pid): Likewise.
4815 (get_first_process): Likewise.
4816 (started_inferior_callback): Remove.
4817 (have_started_inferiors_p): Adjust.
4818 (attached_inferior_callback): Remove.
4819 (have_attached_inferiors_p): Adjust.
4820 * linux-low.c (check_zombie_leaders): Likewise.
4821 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4822 (x86_linux_update_xmltarget): Adjust.
4823 * server.c (handle_query): Likewise.
4824 (gdb_reattached_process): Remove.
4825 (handle_status): Adjust.
4826 (kill_inferior_callback): Likewise.
4827 (detach_or_kill_inferior): Remove.
4828 (print_started_pid): Likewise.
4829 (print_attached_pid): Likewise.
4830 (detach_or_kill_for_exit): Update.
4831 (process_serial_event): Likewise.
4832 * linux-arm-low.c (arm_new_fork): Likewise.
4834 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4836 * dll.h: Include <list>.
4837 (struct dll_info): Add constructor.
4838 <entry>: Remove field.
4839 (all_dlls): Change type to std::list<dll_info>.
4840 * dll.c: Include <algorithm>.
4841 (get_dll): Remove macro.
4842 (all_dlls): Change type to std::list<dll_info *>.
4843 (free_one_dll): Remove.
4844 (match_dll): Likewise.
4845 (loaded_dll): Adjust.
4846 (unloaded_dll): Adjust to all_dlls type change, use
4847 std::find_if. Inline code from match_dll.
4848 (clear_dlls): Adjust to all_dlls type change.
4849 * server.c (emit_dll_description): Remove.
4850 (handle_qxfer_libraries): Adjust to all_dlls type change,
4851 integrate emit_dll_description's functionality.
4853 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4855 * linux-low.h (struct linux_target_ops) <delete_process>: New
4857 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4858 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4859 (struct linux_target_ops): Add delete_process callback.
4860 * linux-arm-low.c (arm_delete_process): New.
4861 (struct linux_target_ops): Add delete_process callback.
4862 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4863 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4864 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4865 * linux-mips-low.c (mips_linux_delete_process): New.
4866 (struct linux_target_ops): Add delete_process callback.
4867 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4868 * linux-s390-low.c (struct linux_target_ops): Likewise.
4869 * linux-sh-low.c (struct linux_target_ops): Likewise.
4870 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4871 * linux-tile-low.c (struct linux_target_ops): Likewise.
4872 * linux-x86-low.c (x86_linux_delete_process): New.
4873 (struct linux_target_ops): Add delete_process callback.
4874 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4876 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4878 * linux-aarch64-low.c (the_low_target): Add thread delete
4880 * linux-arm-low.c (arm_delete_thread): New function.
4881 (the_low_target): Add thread delete callback.
4882 * linux-bfin-low.c (the_low_target): Likewise.
4883 * linux-crisv32-low.c (the_low_target): Likewise.
4884 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4886 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4888 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4889 * linux-mips-low.c (mips_linux_delete_thread): New function.
4890 (the_low_target): Add thread delete callback.
4891 * linux-ppc-low.c (the_low_target): Likewise.
4892 * linux-s390-low.c (the_low_target): Likewise.
4893 * linux-sh-low.c (the_low_target): Likewise.
4894 * linux-tic6x-low.c (the_low_target): Likewise.
4895 * linux-tile-low.c (the_low_target): Likewise.
4896 * linux-x86-low.c (the_low_target): Likewise.
4897 * linux-xtensa-low.c (the_low_target): Likewise.
4899 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4901 * win32-low.c: Include "common-inferior.h".
4903 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4905 * inferiors.c (set_inferior_cwd): New function.
4906 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4907 (handle_query): Inform that QSetWorkingDir is supported.
4908 * win32-low.c (create_process): Pass the inferior's cwd to
4911 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4913 * inferiors.c (current_inferior_cwd): New global variable.
4914 (get_inferior_cwd): New function.
4915 * inferiors.h (struct process_info) <cwd>: New field.
4917 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4919 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4920 (OBS): Add gdb_tilde_expand.o.
4922 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4924 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4925 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4927 2017-09-29 Pedro Alves <palves@redhat.com>
4929 * ax.c (gdb_parse_agent_expr): Constify.
4930 * ax.h (gdb_parse_agent_expr): Constify.
4931 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4933 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4934 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4935 * remote-utils.h (read_ptid): Constify.
4936 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4937 (process_point_options, process_serial_event): Constify.
4938 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4939 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4940 (cmd_qtbuffer): Constify.
4942 2017-09-29 Pedro Alves <palves@redhat.com>
4944 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4947 2017-09-29 Pedro Alves <palves@redhat.com>
4949 * linux-low.c (handle_extended_wait): Pass parent thread instead
4950 of process to thread_db_notice_clone.
4951 * linux-low.h (thread_db_notice_clone): Replace parent process
4952 parameter with parent thread parameter.
4953 * thread-db.c (find_one_thread): Add comment.
4954 (thread_db_notice_clone): Replace parent process parameter with
4955 parent thread parameter. Temporarily switch to the parent thread.
4957 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4959 * gdbthread.h: Include "common-gdbthread.h".
4960 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4961 "if" when validating the ptid.
4962 * remote-utils.c: Include "gdbthread.h".
4963 (prepare_resume_reply): Use "switch_to_thread".
4964 * target.c (done_accessing_memory): Likewise.
4966 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4968 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4969 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4970 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4971 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4972 s390x-gs-linux64-ipa.o to ipa_obj.
4973 * linux-s390-low.c (HWCAP_S390_GS): New define.
4974 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4976 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4977 (s390_arch_setup): Check for guarded-storage support and choose
4979 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4980 init_registers_s390x_gs_linux64.
4981 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4983 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4984 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4986 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4988 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4990 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4992 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4993 (thread_db_thread_handle): Declare.
4994 * linux-low.c (linux_target_ops): Initialize thread_handle.
4995 * server.c (handle_qxfer_threads_worker): Add support for
4997 * target.h (struct target_ops): Add new function pointer,
4999 (target_thread_handle): Define.
5000 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5002 (thread_db_thread_handle): New function.
5004 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5006 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5007 * linux-low.h (thread_db_notice_clone): Declare.
5008 * thread-db.c (thread_db_notice_clone): New function.
5010 2017-09-21 Pedro Alves <palves@redhat.com>
5012 * server.c (gdb_read_memory, handle_status, process_serial_event)
5013 (handle_serial_event, handle_target_event): Adjust to
5014 set_desired_thread prototype change.
5015 * target.c (set_desired_thread): Remove 'use_general' parameter
5017 * target.h (set_desired_thread): Remove 'use_general' parameter.
5019 2017-09-20 Tom Tromey <tom@tromey.com>
5021 * target.c (target_terminal::terminal_state): Define.
5022 (target_terminal::init): Rename from target_terminal_init.
5023 (target_terminal::inferior): Rename from
5024 target_terminal_inferior.
5025 (target_terminal::ours): Rename from target_terminal_ours.
5026 (target_terminal::ours_for_output, target_terminal::info): New.
5028 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5030 * server.c (accumulate_file_name_length): Remove.
5031 (emit_dll_description): Adjust to std::string change.
5032 (handle_qxfer_libraries): Use std::string to hold document.
5034 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5036 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5037 return type of xml_escape_text.
5038 * server.c (emit_dll_description): Likewise.
5040 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5042 * server.c (captured_main): Accept argument for --selftest.
5043 Update run_tests call.
5044 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5045 when registering selftests.
5047 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5049 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5050 instead of "VEC" for "target_desc.reg_defs".
5051 (regcache_cpy): Likewise.
5052 (registers_to_string): Likewise.
5053 (registers_from_string): Likewise.
5054 (find_regno): Likewise.
5055 (supply_regblock): Likewise.
5056 (regcache_raw_read_unsigned): Likewise.
5057 * tdesc.c (init_target_desc): Likewise.
5058 (tdesc_create_reg): Likewise.
5059 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5060 (struct target_desc) <reg_defs>: Convert to "std::vector".
5061 (target_desc): Do not initialize "reg_defs".
5062 (~target_desc): Update code to use "std::vector" instead of "VEC"
5063 for "target_desc.reg_defs".
5064 (operator==): Likewise.
5066 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5068 * inferiors.h (thread_to_gdb_id): Remove.
5069 * inferiors.c (thread_to_gdb_id): Remove.
5070 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5071 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5072 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5074 * nto-low.c (nto_fetch_registers, nto_store_registers,
5075 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5077 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5079 * inferiors.h (gdb_id_to_thread_id): Remove.
5080 * inferiors.c (gdb_id_to_thread_id): Remove.
5081 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5082 removal. Move pid declaration closer to where it's used.
5084 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5086 * server.c (handle_detach): New function.
5087 (process_serial_event): Move code out, call handle_detach.
5089 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5091 * server.c (require_running): Rename to ...
5092 (require_running_or_return): ... this ...
5093 (require_running_or_break): ... and this.
5094 (handle_query, process_serial_event): Adjust.
5096 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5098 * linux-low.c (linux_set_resume_request): Remove unused
5101 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5103 * server.c (first_thread_of): Remove.
5104 (process_serial_event): Replace usage of first_thread_of with
5105 find_any_thread_of_pid.
5106 * tracepoint.c (same_process_p): Remove.
5107 (gdb_agent_about_to_close): Replace usage of same_process_p with
5108 find_any_thread_of_pid.
5109 * linux-x86-low.c (same_process_callback): Remove.
5110 (x86_arch_setup_process_callback): Replace usage of
5111 same_process_callback with find_any_thread_of_pid.
5112 * thread-db.c (any_thread_of): Remove.
5113 (switch_to_process): Replace usage of any_thread_of with
5114 find_any_thread_of_pid.
5115 * inferiors.c (thread_pid_matches_callback): Remove.
5116 (find_thread_process): Adjust to use find_any_thread_of_pid.
5118 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5120 * regcache.c (get_thread_regcache): Guard calls to "memset"
5123 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5125 * linux-low.c (handle_extended_wait): Use
5126 "allocate_target_description" instead of "XNEW".
5127 * linux-x86-low.c (initialize_low_arch): Likewise.
5129 2017-09-05 Yao Qi <yao.qi@linaro.org>
5131 * configure.srv (srv_i386_regobj): Remove.
5132 (srv_amd64_regobj): Remove.
5133 (srv_regobj): Set it to "" for x86 non-linux targets.
5134 * linux-x86-tdesc.c (i386_linux_read_description):
5135 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5136 (init_registers_i386): Remove the declaration.
5137 (tdesc_i386): Remove the declaration.
5138 (lynx_i386_arch_setup): Call i386_create_target_description.
5139 * nto-x86-low.c: Likewise.
5140 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5141 [!__x86_64__]: include arch/i386.h.
5142 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5144 2017-09-05 Yao Qi <yao.qi@linaro.org>
5146 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5147 i386/amd64-XXX-linux from it.
5149 2017-09-05 Yao Qi <yao.qi@linaro.org>
5151 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5153 (ipa_amd64_linux_regobj): Remove.
5154 (ipa_x32_linux_regobj): Remove.
5156 2017-09-05 Yao Qi <yao.qi@linaro.org>
5158 * Makefile.in (arch-amd64.o): New rule.
5159 * configure.srv: Append arch-amd64.o.
5160 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5161 (get_ipa_tdesc): Call amd64_linux_read_description.
5162 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5163 and init_registers_amd64_XXX.
5164 * linux-x86-low.c (x86_linux_read_description): Call
5165 amd64_linux_read_description.
5166 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5167 (initialize_low_arch): Don't call init_registers_x32_XXX and
5168 init_registers_amd64_XXX.
5169 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5170 and tdesc_amd64_XXX.
5171 [__x86_64__] (amd64_tdesc_test): New function.
5172 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5173 and init_registers_amd64_XXX.
5174 * linux-x86-tdesc.c: Include arch/amd64.h.
5175 (xcr0_to_tdesc_idx): New function.
5176 (i386_linux_read_description): New function.
5177 (amd64_get_ipa_tdesc_idx): New function.
5178 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5179 (amd64_get_ipa_tdesc): Declare.
5181 2017-09-05 Yao Qi <yao.qi@linaro.org>
5183 * configure.srv (srv_i386_linux_xmlfiles): Remove
5184 i386/i386-XXX-linux.xml from it.
5186 2017-09-05 Yao Qi <yao.qi@linaro.org>
5188 * configure.srv: Set srv_i386_linux_regobj empty if $development
5190 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5191 initialize_low_tdesc.
5192 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5193 with #if initialize_low_tdesc.
5194 * linux-x86-tdesc-selftest.c: New file.
5195 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5197 2017-09-05 Yao Qi <yao.qi@linaro.org>
5199 * Makefile.in (arch-i386.o): New rule.
5200 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5201 (x86_64-*-linux*): Likewise.
5202 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5203 include arch/i386.h.
5204 (i386_linux_read_description): Remove code and call
5205 i386_create_target_description.
5206 * tdesc.c (allocate_target_description): New function.
5207 * tdesc.h (set_tdesc_architecture): Remove declaration.
5208 (set_tdesc_osabi): Likewise.
5210 2017-09-05 Yao Qi <yao.qi@linaro.org>
5212 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5213 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5214 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5216 * server.c (get_features_xml): Call tdesc_get_features_xml.
5217 * tdesc.c (set_tdesc_architecture): New function.
5218 (set_tdesc_osabi): New function.
5219 (tdesc_get_features_xml): New function.
5220 (tdesc_create_feature): Add an argument.
5221 * tdesc.h (struct target_desc) <features>: New field.
5222 <arch, osabi>: New field.
5223 (~target_desc): xfree features, arch, and osabi.
5224 (target_desc::oerator==): Don't compare .xmltarget.
5225 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5226 (set_tdesc_osabi): Likewise.
5227 (tdesc_get_features_xml): Likewise.
5229 2017-09-05 Yao Qi <yao.qi@linaro.org>
5231 * linux-x86-tdesc.c: Include selftest.h.
5232 (i386_tdesc_test): New function.
5233 (initialize_low_tdesc): Call selftests::register_test.
5234 * tdesc.h: Include regdef.h.
5235 (target_desc): Override operator == and !=.
5237 2017-09-05 Yao Qi <yao.qi@linaro.org>
5239 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5240 (ipa_obj): Likewise.
5241 * linux-i386-ipa.c: Include common/x86-xstate.h
5242 (get_ipa_tdesc): Call i386_linux_read_description.
5243 (initialize_low_tracepoint): Don't call init_registers_XXX
5244 functions, call initialize_low_tdesc instead.
5245 * linux-x86-low.c (x86_linux_read_description): Call
5246 i386_linux_read_description.
5247 (initialize_low_arch): Don't call init_registers_i386_XXX
5248 functions, call initialize_low_tdesc.
5249 * linux-x86-tdesc.c: New file.
5250 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5251 (i386_get_ipa_tdesc_idx): Declare.
5252 (i386_get_ipa_tdesc): Declare.
5253 (initialize_low_tdesc): Declare.
5255 2017-09-05 Yao Qi <yao.qi@linaro.org>
5257 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5260 2017-09-05 Yao Qi <yao.qi@linaro.org>
5262 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5263 * regcache.c (get_thread_regcache): Use VEC_length.
5264 (init_register_cache): Likewise.
5265 (regcache_cpy): Likewise.
5266 (registers_to_string): Iterate reg_defs via VEC_iterate.
5267 (find_regno): Likewise.
5268 (find_register_by_number): Use VEC_index.
5269 (register_size): Call find_register_by_number.
5270 (register_data): Call find_register_by_number.
5271 (supply_regblock): Use VEC_length.
5272 (regcache_raw_read_unsigned): Likewise.
5273 * tdesc.c (init_target_desc): Iterate reg_defs via
5275 (default_description): Update initializer.
5276 (copy_target_description): Don't update field num_registers.
5277 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5278 <num_registers>: Remove.
5280 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5282 * Makefile.in (.SECONDARY): Define target.
5284 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5286 * linux-low.c (linux_wait_1): Adjust.
5287 * server.c (queue_stop_reply_callback): Adjust.
5289 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5291 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5292 QEnvironmentUnset and QEnvironmentReset packets.
5293 (handle_query): Inform remote that QEnvironmentHexEncoded,
5294 QEnvironmentUnset and QEnvironmentReset are supported.
5296 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5298 * inferiors.h (inferior_target_data): Rename to ...
5299 (thread_target_data): ... this.
5300 (inferior_regcache_data): Rename to ...
5301 (thread_regcache_data): ... this.
5302 (set_inferior_regcache_data): Rename to ...
5303 (set_thread_regcache_data): ... this.
5304 * inferiors.c (inferior_target_data): Rename to ...
5305 (thread_target_data): ... this.
5306 (inferior_regcache_data): Rename to ...
5307 (thread_regcache_data): ... this.
5308 (set_inferior_regcache_data): Rename to ...
5309 (set_thread_regcache_data): ... this.
5310 (free_one_thread): Update.
5311 * linux-low.h (get_thread_lwp): Update.
5312 * regcache.c (get_thread_regcache): Update.
5313 (regcache_invalidate_thread): Update.
5314 (free_register_cache_thread): Update.
5315 * win32-i386-low.c (update_debug_registers_callback): Update.
5316 (win32_get_current_dr): Update.
5317 * win32-low.c (thread_rec): Update.
5318 (delete_thread_info): Update.
5319 (continue_one_thread): Update.
5320 (suspend_one_thread): Update.
5322 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5324 * inferiors.c (set_inferior_target_data): Remove.
5325 * inferiors.h (set_inferior_target_data): Remove.
5327 2017-08-18 Yao Qi <yao.qi@linaro.org>
5329 * Makefile.in (OBS): Add selftest.o.
5330 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5331 * configure, config.in: Re-generated.
5332 * server.c: Include common/sefltest.h.
5333 (captured_main): Handle option --selftest.
5335 2017-08-09 Yao Qi <yao.qi@linaro.org>
5337 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5338 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5339 i386-avx-mpx.o and i386-mmx.o.
5340 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5341 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5342 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5343 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
5344 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
5345 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
5346 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
5347 i386/amd64-avx-mpx.xml.
5349 2017-08-09 Yao Qi <yao.qi@linaro.org>
5351 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
5352 and x32-avx-avx512.o.
5353 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
5354 i386/x32-avx-avx512.xml.
5356 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5358 * tracepoint.h (enum class fast_tpoint_collect_result): New
5360 (fast_tracepoint_collecting): Change return type to
5361 fast_tpoint_collect_result.
5362 * tracepoint.c (fast_tracepoint_collecting): Likewise.
5363 * linux-low.h: Include tracepoint.h.
5364 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
5365 fast_tpoint_collect_result.
5366 * linux-low.c (handle_tracepoints): Adjust.
5367 (linux_fast_tracepoint_collecting): Change return type to
5368 fast_tpoint_collect_result.
5369 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
5370 linux_wait_1, stuck_in_jump_pad_callback,
5371 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
5372 proceed_one_lwp): Adjust to type change.
5374 2017-07-10 Yao Qi <yao.qi@linaro.org>
5376 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5378 2017-06-29 Yao Qi <yao.qi@linaro.org>
5380 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5382 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5384 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5386 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5388 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5390 * linux-low.c (linux_create_inferior): Adjust code to access the
5391 environment information via 'gdb_environ' class.
5392 * lynx-low.c (lynx_create_inferior): Likewise.
5393 * server.c (our_environ): Make it an instance of 'gdb_environ'.
5394 (get_environ): Return a pointer to 'our_environ'.
5395 (captured_main): Initialize 'our_environ'.
5396 * server.h (get_environ): Adjust prototype.
5397 * spu-low.c (spu_create_inferior): Adjust code to access the
5398 environment information via 'gdb_environ' class.
5400 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5402 * linux-low.c (linux_read_memory, linux_write_memory): Remove
5403 usage of "register" keyword.
5405 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5407 * configure: Re-generate.
5409 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5411 * configure: Re-generate.
5413 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5415 * Makefile.in (COMPILE.pre): Add "-x c++".
5417 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
5419 * fork-child.c: Conditionally include <signal.h>.
5421 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5423 * server.c (handle_general_set): Handle new packet
5424 "QStartupWithShell".
5425 (handle_query): Add "QStartupWithShell" to the list of supported
5427 (gdbserver_usage): Add help text explaining the
5428 new "--startup-with-shell" and "--no-startup-with-shell" CLI
5430 (captured_main): Recognize and act upon the presence of the new
5433 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5434 Pedro Alves <palves@redhat.com>
5436 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
5437 * configure: Regenerate.
5438 * configure.srv (srv_linux_obj): Add "fork-child.o" and
5440 (i[34567]86-*-lynxos*): Likewise.
5441 (spu*-*-*): Likewise.
5442 * fork-child.c: New file.
5443 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
5445 (linux_ptrace_fun): New function.
5446 (linux_create_inferior): Adjust function prototype to reflect
5447 change on "target.h". Adjust function code to use
5449 (linux_request_interrupt): Delete "signal_pid".
5450 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5451 (lynx_ptrace_fun): New function.
5452 (lynx_create_inferior): Adjust function prototype to reflect
5453 change on "target.h". Adjust function code to use
5455 * nto-low.c (nto_create_inferior): Adjust function prototype and
5456 code to reflect change on "target.h". Update comments.
5457 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
5458 "common-terminal.h" and "environ.h".
5459 (terminal_fd): Moved to fork-child.c.
5460 (old_foreground_pgrp): Likewise.
5461 (restore_old_foreground_pgrp): Likewise.
5462 (last_status): Make it global.
5463 (last_ptid): Likewise.
5464 (our_environ): New variable.
5465 (startup_with_shell): Likewise.
5466 (program_name): Likewise.
5467 (program_argv): Rename to...
5468 (program_args): ...this.
5469 (wrapper_argv): New variable.
5470 (start_inferior): Delete function.
5471 (get_exec_wrapper): New function.
5472 (get_exec_file): Likewise.
5473 (get_environ): Likewise.
5474 (prefork_hook): Likewise.
5475 (post_fork_inferior): Likewise.
5476 (postfork_hook): Likewise.
5477 (postfork_child_hook): Likewise.
5478 (handle_v_run): Update code to deal with arguments coming from the
5479 remote host. Update calls from "start_inferior" to
5481 (captured_main): Likewise. Initialize environment variable. Call
5483 * server.h (post_fork_inferior): New prototype.
5484 (get_environ): Likewise.
5485 (last_status): Declare.
5486 (last_ptid): Likewise.
5487 (signal_pid): Likewise.
5488 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5489 (spu_ptrace_fun): New function.
5490 (spu_create_inferior): Adjust function prototype to reflect change
5491 on "target.h". Adjust function code to use "fork_inferior".
5492 * target.c (target_terminal_init): New function.
5493 (target_terminal_inferior): Likewise.
5494 (target_terminal_ours): Likewise.
5495 * target.h: Include <vector>.
5496 (struct target_ops) <create_inferior>: Update prototype.
5497 (create_inferior): Update macro.
5498 * utils.c (gdb_flush_out_err): New function.
5499 * win32-low.c (win32_create_inferior): Adjust function prototype
5500 and code to reflect change on "target.h".
5502 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5504 * inferiors.c (switch_to_thread): New function.
5506 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5508 * Makefile.in (SFILE): Add "common/job-control.c".
5509 (OBS): Add "job-control.o".
5511 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5513 * Makefile: Remove "@host_makefile_frag@".
5515 2017-05-05 Pedro Alves <palves@redhat.com>
5517 * configure: Regenerate.
5519 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5521 * configure: Regenerate.
5523 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5525 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
5526 software_single_step change of return type to
5527 std::vector<CORE_ADDR>.
5528 * linux-low.c (install_software_single_step_breakpoints):
5530 * linux-low.h (install_software_single_step_breakpoints):
5533 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5535 * remote-utils.c: Include "gdb_termios.h" instead of
5537 * terminal.h: Delete file.
5539 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5541 * server.c: Include <vector>.
5542 <program_argv, wrapper_argv>: Convert to std::vector.
5543 (start_inferior): Rewrite function to use C++.
5544 (handle_v_run): Likewise. Update code that calculates the argv
5545 based on the vRun packet; use C++.
5546 (captured_main): Likewise.
5548 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5550 * server.c (handle_v_cont): Initialize thread_resume::thread
5553 2017-04-05 Pedro Alves <palves@redhat.com>
5555 * configure: Regenerate.
5557 2017-04-05 Pedro Alves <palves@redhat.com>
5559 * gdbreplay.c (sync_error): Constify.
5560 * linux-x86-low.c (push_opcode): Constify.
5562 2017-04-05 Pedro Alves <palves@redhat.com>
5564 * win32-low.c (get_child_debug_event)
5565 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5566 Report TARGET_WAITKIND_SPURIOUS instead.
5568 2017-04-05 Pedro Alves <palves@redhat.com>
5570 * remote-utils.c (remote_prepare, remote_open): Constify.
5571 * remote-utils.h (remote_prepare, remote_open): Constify.
5572 * server.c (captured_main): Constify 'port' handling.
5574 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5576 * Makefile.in (clean): Clear .deps.
5578 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5580 * .gitignore: Remove generated files, replace with wildcard.
5581 * (clean): Replace removal of generated files with wildcard.
5582 (version.c): Replace with...
5583 (version-generated.c): ...this.
5584 (xml-builtin.c): Replace with...
5585 (xml-builtin-generated.c): ...this.
5586 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5587 (%.c: *regformats*): Replace with...
5588 (%-generated.c: *regformats*): ...this.
5590 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5592 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5593 (xtensa_fill_gregset): Call collect_register_by_name for
5595 (xtensa_store_gregset): Call supply_register_by_name for
5598 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5600 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5601 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5602 (xtensa_store_gregset): Call supply_register for all registers in
5603 a0_regnum..a0_regnum + C0_NREGS range.
5605 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5607 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5608 (ax-ipa.o: ax.c): Remove.
5609 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5610 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5611 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5612 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5613 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5615 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5617 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5618 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5619 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5620 (errors-ipa.o: ../common/errors.c): Remove.
5621 (format-ipa.o: ../common/format.c): Remove.
5622 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5624 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5626 * Makefile.in (%-ipa.o: %.c): New rule.
5627 (tracepoint-ipa.o: tracepoint.c): Remove.
5628 (utils-ipa.o: utils.c): Remove.
5629 (remote-utils-ipa.o: remote-utils.c): Remove.
5630 (regcache-ipa.o: regcache.c): Remove.
5631 (i386-linux-ipa.o: i386-linux.c): Remove.
5632 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5633 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5634 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5635 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5636 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5637 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5638 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5639 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5640 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5641 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5642 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5643 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5644 (aarch64-ipa.o: aarch64.c): Remove.
5645 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5646 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5647 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5648 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5649 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5650 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5651 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5652 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5653 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5654 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5655 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5656 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5657 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5658 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5659 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5660 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5661 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5662 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5663 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5664 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5665 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5666 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5667 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5668 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5669 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5670 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5671 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5672 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5673 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5674 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5675 (tdesc-ipa.o: tdesc.c): Remove.
5676 (x32-linux-ipa.o: x32-linux.c): Remove.
5677 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5678 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5680 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5682 * Makefile.in (%.o: ../arch/%.c): New rule.
5683 (arm.o: ../arch/arm.c): Remove.
5684 (arm-linux.o: ../arch/arm-linux.c): Remove.
5685 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5686 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5688 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5690 * Makefile.in (%.o: ../nat/%.c): New rule.
5691 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5692 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5693 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5694 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5695 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5696 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5697 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5698 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5699 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5700 (linux-personality.o: ../nat/linux-personality.c): Remove.
5701 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5702 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5703 (x86-linux.o: ../nat/x86-linux.c): Remove.
5704 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5705 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5707 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5709 * Makefile.in (%.o: ../common/%.c): New rule.
5710 (signals.o: ../common/signals.c): Remove.
5711 (print-utils.o: ../common/print-utils.c): Remove.
5712 (rsp-low.o: ../common/rsp-low.c): Remove.
5713 (common-utils.o: ../common/common-utils.c): Remove.
5714 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5715 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5716 (vec.o: ../common/vec.c): Remove.
5717 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5718 (xml-utils.o: ../common/xml-utils.c): Remove.
5719 (ptid.o: ../common/ptid.c): Remove.
5720 (buffer.o: ../common/buffer.c): Remove.
5721 (format.o: ../common/format.c): Remove.
5722 (filestuff.o: ../common/filestuff.c): Remove.
5723 (agent.o: ../common/agent.c): Remove.
5724 (errors.o: ../common/errors.c): Remove.
5725 (environ.o: ../common/environ.c): Remove.
5726 (common-debug.o: ../common/common-debug.c): Remove.
5727 (cleanups.o: ../common/cleanups.c): Remove.
5728 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5729 (fileio.o: ../common/fileio.c): Remove.
5730 (common-regcache.o: ../common/common-regcache.c): Remove.
5731 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5732 (new-op.o: ../common/new-op.c): Remove.
5733 (btrace-common.o: ../common/btrace-common.c): Remove.
5735 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5737 * Makefile.in (%.o: ../target/%.c): New rule.
5738 (waitstatus.o: ../target/waitstatus.c): Remove.
5740 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5743 (%.c: ../regformats/%.dat,
5744 (%.c: ../regformats/arm/%.dat,
5745 (%.c: ../regformats/i386/%.dat,
5746 (%.c: ../regformats/rs6000/%.dat): New rules.
5747 (aarch64.c): Remove.
5748 (reg-arm.c): Remove.
5749 (arm-with-iwmmxt.c): Remove.
5750 (arm-with-vfpv2.c): Remove.
5751 (arm-with-vfpv3.c): Remove.
5752 (arm-with-neon.c): Remove.
5753 (reg-bfin.c): Remove.
5754 (reg-cris.c): Remove.
5755 (reg-crisv32.c): Remove.
5757 (i386-linux.c): Remove.
5758 (i386-avx.c): Remove.
5759 (i386-avx-linux.c): Remove.
5760 (i386-avx-avx512.c): Remove.
5761 (i386-avx-avx512-linux.c): Remove.
5762 (i386-mpx.c): Remove.
5763 (i386-mpx-linux.c): Remove.
5764 (i386-avx-mpx-avx512-pku.c): Remove.
5765 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5766 (i386-avx-mpx.c): Remove.
5767 (i386-avx-mpx-linux.c): Remove.
5768 (i386-mmx.c): Remove.
5769 (i386-mmx-linux.c): Remove.
5770 (reg-ia64.c): Remove.
5771 (reg-m32r.c): Remove.
5772 (reg-m68k.c): Remove.
5774 (mips-linux.c): Remove.
5775 (mips-dsp-linux.c): Remove.
5776 (mips64-linux.c): Remove.
5777 (mips64-dsp-linux.c): Remove.
5778 (nios2-linux.c): Remove.
5779 (powerpc-32.c): Remove.
5780 (powerpc-32l.c): Remove.
5781 (powerpc-altivec32l.c): Remove.
5782 (powerpc-cell32l.c): Remove.
5783 (powerpc-vsx32l.c): Remove.
5784 (powerpc-isa205-32l.c): Remove.
5785 (powerpc-isa205-altivec32l.c): Remove.
5786 (powerpc-isa205-vsx32l.c): Remove.
5787 (powerpc-e500l.c): Remove.
5788 (powerpc-64l.c): Remove.
5789 (powerpc-altivec64l.c): Remove.
5790 (powerpc-cell64l.c): Remove.
5791 (powerpc-vsx64l.c): Remove.
5792 (powerpc-isa205-64l.c): Remove.
5793 (powerpc-isa205-altivec64l.c): Remove.
5794 (powerpc-isa205-vsx64l.c): Remove.
5795 (s390-linux32.c): Remove.
5796 (s390-linux32v1.c): Remove.
5797 (s390-linux32v2.c): Remove.
5798 (s390-linux64.c): Remove.
5799 (s390-linux64v1.c): Remove.
5800 (s390-linux64v2.c): Remove.
5801 (s390-te-linux64.c): Remove.
5802 (s390-vx-linux64.c): Remove.
5803 (s390-tevx-linux64.c): Remove.
5804 (s390x-linux64.c): Remove.
5805 (s390x-linux64v1.c): Remove.
5806 (s390x-linux64v2.c): Remove.
5807 (s390x-te-linux64.c): Remove.
5808 (s390x-vx-linux64.c): Remove.
5809 (s390x-tevx-linux64.c): Remove.
5810 (tic6x-c64xp-linux.c): Remove.
5811 (tic6x-c64x-linux.c): Remove.
5812 (tic6x-c62x-linux.c): Remove.
5814 (reg-sparc64.c): Remove.
5815 (reg-spu.c): Remove.
5817 (amd64-linux.c): Remove.
5818 (amd64-avx.c): Remove.
5819 (amd64-avx-linux.c): Remove.
5820 (amd64-avx-avx512.c): Remove.
5821 (amd64-avx-avx512-linux.c): Remove.
5822 (amd64-mpx.c): Remove.
5823 (amd64-mpx-linux.c): Remove.
5824 (amd64-avx-mpx-avx512-pku.c): Remove.
5825 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5826 (amd64-avx-mpx.c): Remove.
5827 (amd64-avx-mpx-linux.c): Remove.
5829 (x32-linux.c): Remove.
5830 (x32-avx.c): Remove.
5831 (x32-avx-linux.c): Remove.
5832 (x32-avx-avx512.c): Remove.
5833 (x32-avx-avx512-linux.c): Remove.
5834 (reg-xtensa.c): Remove.
5835 (reg-tilegx.c): Remove.
5836 (reg-tilegx32.c): Remove.
5838 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5840 * Makefile.in (SFILES): Add "common/environ.c".
5841 (OBJS): Add "common/environ.h".
5843 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5845 * configure.ac: Check if the fs_base and gs_base members of
5846 `struct user_regs_struct' exist.
5847 * config.in: Regenerated.
5848 * configure: Likewise.
5850 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5852 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5854 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5855 (get_next_pcs_syscall_next_pc): Likewise.
5857 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5859 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5860 * nto-x86-low.c: Likewise.
5862 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5864 * Makefile.in: Include disable-implicit-rules.mk.
5866 2016-11-23 Pedro Alves <palves@redhat.com>
5868 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5869 (debug_vprintf): Use std::chrono::steady_clock instead of
5870 gettimeofday. Use '.' instead of ':'.
5871 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5872 (get_timestamp): Use std::chrono::steady_clock instead of
5875 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5877 * Makefile.in: Fix whitespace formatting.
5879 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5881 * Makefile.in (SFILES, OBS): Flatten list and order
5884 2016-11-23 Pedro Alves <palves@redhat.com>
5886 * event-loop.c (handle_file_event): Use warning.
5887 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5888 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5891 2016-11-23 Pedro Alves <palves@redhat.com>
5893 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5895 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5896 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5897 debug_printf and debug_flush for debug output.
5898 * server.c (handle_general_set): Likewise.
5899 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5902 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5904 * Makefile.in (.c.o): Replace rule with ...
5905 (%.o: %.c): ... this one.
5907 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5909 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5910 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5912 * configure.ac: Remove checks for the make program.
5913 * configure: Re-generate.
5915 2016-10-28 Pedro Alves <palves@redhat.com>
5917 * Makefile.in (CXX_DIALECT): Get from configure.
5918 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5919 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5920 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5921 * config.in: Regenerate.
5922 * configure: Regenerate.
5924 2016-10-27 Yao Qi <yao.qi@linaro.org>
5926 * linux-low.c (linux_supports_range_stepping): Return true if
5927 can_software_single_step return true.
5929 2016-10-27 Yao Qi <yao.qi@linaro.org>
5931 * inferiors.c (find_inferior_in_random): New function.
5932 * inferiors.h (find_inferior_in_random): Declare.
5933 * linux-low.c (linux_wait_for_event_filtered): Call
5934 find_inferior_in_random instead of find_inferior.
5936 2016-10-27 Yao Qi <yao.qi@linaro.org>
5938 * linux-low.c (linux_wait_1): If single-step breakpoints are
5939 inserted, remove them.
5941 2016-10-26 Pedro Alves <palves@redhat.com>
5943 * linux-low.c (handle_extended_wait): Link parent/child fork
5945 (linux_wait_1): Unlink them.
5946 (linux_set_resume_request): Ignore resume requests for
5947 already-resumed and unhandled fork child threads.
5948 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5949 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5951 (handle_v_requests) <vCont>: Don't call require_running.
5952 * server.h (in_queued_stop_replies): New declaration.
5954 2016-10-24 Yao Qi <yao.qi@linaro.org>
5957 * linux-aarch64-low.c (append_insns): Cast the return value to
5960 2016-10-10 Yao Qi <yao.qi@linaro.org>
5962 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5964 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5966 * target.c (target_supports_multi_process): New function, moved
5968 * target.h (target_supports_multi_process): ... here. Remove
5971 2016-10-05 Tom Tromey <tom@tromey.com>
5974 * tracepoint.c (handle_tracepoint_bkpts): Check
5975 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5977 2016-10-05 Yao Qi <yao.qi@linaro.org>
5979 * configure.srv: Update the path of arm-*.xml files.
5981 2016-10-05 Terry Guo <terry.guo@arm.com>
5982 Yao Qi <yao.qi@linaro.org>
5984 * Makefile.in: Adjust the path of rules.
5985 * configure.srv: Update the path of xml files.
5986 * regformats/arm-with-iwmmxt.dat: Regenerated.
5987 * regformats/arm-with-neon.dat: Likewise.
5988 * regformats/arm-with-vfpv2.dat: Likewise.
5989 * regformats/arm-with-vfpv3.dat Likewise.
5991 2016-09-30 Yao Qi <yao.qi@linaro.org>
5994 * target.c (target_stop_and_wait): Don't call
5995 target_continue_no_signal, use resume_stop instead.
5997 2016-09-26 Yao Qi <yao.qi@linaro.org>
5999 * linux-low.c (linux_wait_1): Call debug_exit.
6001 2016-09-23 Pedro Alves <palves@redhat.com>
6003 * Makefile.in (SFILES): Add common/new-op.c.
6004 (OBS): Add common/new-op.o.
6005 (new-op.o): New rule.
6007 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6009 * .gitinore: Ignore more files.
6011 2016-09-21 Yao Qi <yao.qi@linaro.org>
6013 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6016 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6018 * server.c (start_inferior): Call target_mourn_inferior instead of
6019 mourn_inferior; pass ptid_t argument to it.
6021 (handle_target_event): Likewise.
6022 * target.c (target_mourn_inferior): New function.
6023 * target.h (mourn_inferior): Delete macro.
6025 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6027 * linux-low.c (lwp_is_stepping): New function.
6029 2016-09-06 Carl Love <cel@us.ibm.com>
6031 * server.c (start_inferior): Fixed comment, requested comment change
6032 didn't get updated correctly. Removed reference to ptrace () call as
6033 it is only true on Linux systems.
6035 2016-09-06 Carl Love <cel@us.ibm.com>
6037 * server.c (start_inferior): Do not call
6038 function target_post_create_inferior () if the
6039 inferior process has already exited.
6041 2016-09-05 Pedro Alves <palves@redhat.com>
6043 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6044 (COMPILE.pre, CC_LD): Use CXX directly.
6045 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6046 * acinclude.m4: Don't include build-with-cxx.m4.
6047 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6048 * configure: Regenerate.
6050 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6053 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6054 call writing data to own_buf.
6056 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6058 * target.c (mywait): Call target_wait instead of
6060 (target_wait): New function.
6062 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6064 * server.c (start_inferior): New variable 'ptid'. Replace calls
6065 to the_target->resume by target_continue{,_no_signal}, depending
6067 * target.c (target_stop_and_wait): Call target_continue_no_signal
6068 instead of the_target->resume.
6069 (target_continue): New function.
6071 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6073 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6075 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6078 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6080 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6081 * linux-arm-low.c (ps_get_thread_area): Likewise.
6082 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6083 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6084 * linux-mips-low.c (ps_get_thread_area): Likewise.
6085 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6086 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6087 * linux-x86-low.c (ps_get_thread_area): Likewise.
6088 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6090 2016-08-19 Pedro Alves <palves@redhat.com>
6092 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6094 2016-08-19 Pedro Alves <palves@redhat.com>
6096 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6097 comment. Use memcpy instead of casting through unsigned long.
6099 2016-08-19 Pedro Alves <palves@redhat.com>
6101 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6102 allocating around 0x80000000.
6104 2016-08-19 Pedro Alves <palves@redhat.com>
6107 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6108 (x32-avx512-linux-ipa.o): New rules.
6109 * configure.ac (x86_64-*-linux*): New x32 check.
6110 * configure.srv (ipa_x32_linux_regobj): New.
6111 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6112 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6114 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6116 * configure: Regenerate.
6118 2016-08-09 Pedro Alves <palves@redhat.com>
6121 * Makefile.in (OBS): Add signals-state-save-restore.o.
6122 (signals-state-save-restore.o): New rule.
6123 * config.in: Regenerate.
6124 * configure: Regenerate.
6125 * linux-low.c: Include "signals-state-save-restore.h".
6126 (linux_create_inferior): Call
6127 restore_original_signals_state.
6128 * server.c: Include "dispositions-save-restore.h".
6129 (captured_main): Call save_original_signals_state.
6131 2016-08-05 Pedro Alves <palves@redhat.com>
6133 * configure: Regenerate.
6135 2016-08-04 Yao Qi <yao.qi@linaro.org>
6137 * linux-low.c (regsets_fetch_inferior_registers): Check
6138 errno is ESRCH or not.
6140 2016-08-02 Yao Qi <yao.qi@linaro.org>
6142 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6143 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6144 (thread_db_load_search): Update.
6145 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6146 td_ta_set_event and td_ta_event_getmsg.
6148 2016-07-26 Pedro Alves <palves@redhat.com>
6151 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6152 of unsigned long for 64-bit registers and use uint32_t instead of
6153 unsigned int for 32-bit registers.
6155 2016-07-26 Pedro Alves <palves@redhat.com>
6157 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6160 2016-07-21 Tom Tromey <tom@tromey.com>
6162 * configure: Rebuild.
6164 2016-07-21 Yao Qi <yao.qi@linaro.org>
6166 * mem-break.c (find_gdb_breakpoint): Cast bp to
6167 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6169 2016-07-21 Yao Qi <yao.qi@linaro.org>
6171 * server.c (handle_v_requests): Support s and S actions
6172 if target_supports_software_single_step return true.
6174 2016-07-21 Yao Qi <yao.qi@linaro.org>
6176 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6177 is resume_step, call maybe_hw_step.
6178 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6180 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6182 (proceed_one_lwp): If resume request is resume_step, install
6183 reinsert breakpoints and call maybe_hw_step.
6185 2016-07-21 Yao Qi <yao.qi@linaro.org>
6187 * linux-low.c (proceed_one_lwp): Declare.
6188 (linux_resume_one_thread): Remove local variable 'step'.
6189 Lift code enqueue signal. Call proceed_one_lwp instead of
6190 linux_resume_one_lwp.
6192 2016-07-21 Yao Qi <yao.qi@linaro.org>
6194 * linux-low.c (linux_resume_one_thread): Call
6195 enqueue_pending_signal.
6197 2016-07-21 Yao Qi <yao.qi@linaro.org>
6199 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6200 * inferiors.c (do_restore_current_thread_cleanup): New function.
6201 (make_cleanup_restore_current_thread): Likewise.
6202 * linux-low.c (install_software_single_step_breakpoints): Call
6203 make_cleanup_restore_current_thread. Switch current_thread to
6206 2016-07-21 Yao Qi <yao.qi@linaro.org>
6208 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6209 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6210 (clone_one_breakpoint): Likewise.
6211 (delete_reinsert_breakpoints): Change parameter to thread.
6213 (has_reinsert_breakpoints): Likewise.
6214 (uninsert_reinsert_breakpoints): Likewise.
6215 (reinsert_reinsert_breakpoints): Likewise.
6216 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6217 (delete_reinsert_breakpoints): Likewise.
6218 (reinsert_reinsert_breakpoints): Likewise.
6219 (uninsert_reinsert_breakpoints): Likewise.
6220 (has_reinsert_breakpoints): Likewise.
6222 2016-07-21 Yao Qi <yao.qi@linaro.org>
6224 * inferiors.c (get_thread_process): Make parameter const.
6225 * inferiors.h (get_thread_process): Update declaration.
6226 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6227 Add new parameters child_thread and parent_thread. Callers
6229 * mem-break.h (clone_all_breakpoints): Update declaration.
6231 2016-07-21 Yao Qi <yao.qi@linaro.org>
6233 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6234 <command_list, handler>: Remove.
6235 (struct gdb_breakpoint): New.
6236 (struct other_breakpoint): New.
6237 (struct reinsert_breakpoint): New.
6238 (is_gdb_breakpoint): New function.
6239 (any_persistent_commands): Update command_list if
6240 is_gdb_breakpoint returns true.
6241 (set_breakpoint): Create breakpoints according to their types.
6242 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6243 (set_gdb_breakpoint_1): Likewise.
6244 (set_gdb_breakpoint): Likewise.
6245 (clear_breakpoint_conditions): Change parameter type to
6246 'struct gdb_breakpoint *'.
6247 (clear_breakpoint_commands): Likewise.
6248 (clear_breakpoint_conditions_and_commands): Likewise.
6249 (add_condition_to_breakpoint): Likewise.
6250 (add_breakpoint_condition): Likewise.
6251 (add_commands_to_breakpoint): Likewise.
6252 (check_breakpoints): Check other_breakpoint.
6253 (clone_one_breakpoint): Clone breakpopint according to its type.
6254 * mem-break.h (struct gdb_breakpoint): Declare.
6255 (set_gdb_breakpoint): Update declaration.
6256 (clear_breakpoint_conditions_and_commands): Likewise.
6257 (add_breakpoint_condition): Likewise.
6258 (add_breakpoint_commands): Likewise.
6259 * server.c (process_point_options): Change parameter type to
6260 'struct gdb_breakpoint *'.
6262 2016-07-21 Yao Qi <yao.qi@linaro.org>
6264 * mem-break.c (set_breakpoint_at): Rename it to ...
6265 (set_breakpoint_type_at): ... it.
6266 (set_breakpoint_at): Call set_breakpoint_type_at.
6267 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6268 * mem-break.h (set_breakpoint_at): Update comments.
6270 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6272 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6274 (nios2_store_gregset): Likewise.
6276 2016-07-01 Pedro Alves <palves@redhat.com>
6277 Antoine Tremblay <antoine.tremblay@ericsson.com>
6279 * linux-low.c: Change interface to take the target lwp_info
6280 pointer directly and return void. Handle detaching from a zombie
6282 (linux_detach_lwp_callback): New function.
6283 (linux_detach): Detach from the leader thread after detaching from
6286 2016-06-28 Yao Qi <yao.qi@linaro.org>
6288 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6289 for variable new_offset.
6290 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6291 (aarch64_ftrace_insn_reloc_cb): Likewise.
6292 (aarch64_ftrace_insn_reloc_tb): Likewise.
6293 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6294 PRIx64 instead of PRIx32.
6296 2016-06-28 Yao Qi <yao.qi@linaro.org>
6298 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6299 (the_low_target): Install arm_get_syscall_trapinfo.
6301 2016-06-28 Yao Qi <yao.qi@linaro.org>
6303 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6305 (the_low_target): Install aarch64_get_syscall_trapinfo.
6307 2016-06-28 Yao Qi <yao.qi@linaro.org>
6309 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6311 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6312 Remove parameter sysno.
6313 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6316 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6318 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6319 (s390_emit_ne_goto): Likewise.
6320 (s390_emit_lt_goto): Likewise.
6321 (s390_emit_le_goto): Likewise.
6322 (s390_emit_gt_goto): Likewise.
6323 (s390_emit_ge_goto): Likewise.
6324 (s390x_emit_eq_goto): Likewise.
6325 (s390x_emit_ne_goto): Likewise.
6326 (s390x_emit_lt_goto): Likewise.
6327 (s390x_emit_le_goto): Likewise.
6328 (s390x_emit_gt_goto): Likewise.
6329 (s390x_emit_ge_goto): Likewise.
6330 (s390_emit_ops_impl): Mark variable static.
6331 (s390x_emit_ops): Likewise.
6333 2016-06-17 Yao Qi <yao.qi@linaro.org>
6335 * linux-low.c (handle_extended_wait): Call
6336 uninsert_reinsert_breakpoints for the parent process. Remove
6337 reinsert breakpoints from the child process. Reinsert them to
6338 the parent process when vfork is done.
6339 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6340 (reinsert_reinsert_breakpoints): New function.
6341 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6342 (reinsert_reinsert_breakpoints): Declare.
6344 2016-06-17 Yao Qi <yao.qi@linaro.org>
6346 * linux-low.c (handle_extended_wait): If the parent is doing
6347 step-over, remove the reinsert breakpoints from the forked child.
6349 2016-06-17 Yao Qi <yao.qi@linaro.org>
6351 * linux-low.c (unsuspend_all_lwps): Declare.
6352 (linux_low_filter_event): If thread exited, call finish_step_over.
6353 If step-over is finished, unsuspend other threads.
6355 2016-06-17 Yao Qi <yao.qi@linaro.org>
6357 * linux-low.c (linux_resume_one_lwp_throw): Assert
6358 has_reinsert_breakpoints returns false.
6359 * mem-break.c (delete_disabled_breakpoints): Assert
6360 bp type isn't reinsert_breakpoint.
6362 2016-06-17 Yao Qi <yao.qi@linaro.org>
6364 * linux-low.c (maybe_hw_step): New function.
6365 (linux_resume_one_lwp_throw): Call maybe_hw_step.
6366 (finish_step_over): Switch current_thread to lwp temporarily,
6367 and assert has_reinsert_breakpoints returns true.
6368 (proceed_one_lwp): Call maybe_hw_step.
6369 * mem-break.c (has_reinsert_breakpoints): New function.
6370 * mem-break.h (has_reinsert_breakpoints): Declare.
6372 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6374 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6376 2016-05-17 Yao Qi <yao.qi@linaro.org>
6378 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6379 instead of find_inferior.
6381 2016-05-05 Yao Qi <yao.qi@linaro.org>
6383 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6384 Initialize res to zero.
6386 2016-05-05 Yao Qi <yao.qi@linaro.org>
6388 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6391 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6393 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
6394 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
6395 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6397 2016-04-28 Par Olsson <par.olsson@windriver.com>
6398 Simon Marchi <simon.marchi@ericsson.com>
6400 * tracepoint.c (write_inferior_int8): New function.
6401 (cmd_qtenable_disable): Write enable flag using
6402 write_inferior_int8.
6404 2016-04-25 Yao Qi <yao.qi@linaro.org>
6406 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
6407 (need_step_over_p): Return zero if the LWP has pending signals
6408 can be delivered on software single step target.
6410 2016-04-25 Yao Qi <yao.qi@linaro.org>
6412 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
6413 return instead of error.
6415 2016-04-22 Yao Qi <yao.qi@linaro.org>
6417 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
6420 2016-04-22 Yao Qi <yao.qi@linaro.org>
6422 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
6423 signal when stepping over breakpoint with software single
6426 2016-04-21 Pedro Alves <palves@redhat.com>
6428 * linux-s390-low.c (s390_collect_ptrace_register)
6429 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
6431 (s390_check_regset): Use void * instead of gdb_byte *.
6433 2016-04-20 Pedro Alves <palves@redhat.com>
6435 * configure: Renegerate.
6437 2016-04-20 Yao Qi <yao.qi@linaro.org>
6439 * linux-aarch32-low.c: Include "arch/arm-linux.h".
6440 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
6442 (arm_store_gregset): Likewise.
6444 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6446 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
6447 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
6448 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
6449 (amd64-avx-mpx-linux.c): New rules.
6450 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
6451 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
6452 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
6453 (srv_amd64_regobj): Add amd64-avx-mpx.o.
6454 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
6455 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
6456 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
6457 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
6458 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
6459 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
6460 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
6461 * linux-x86-low.c (x86_linux_read_description): Add case for
6462 X86_XSTATE_AVX_MPX_MASK.
6463 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
6464 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
6465 init_registers_i386_avx_mpx_linux.
6466 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6467 (initialize_low_tracepoint): Call
6468 init_registers_i386_avx_mpx_linux.
6469 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6470 (initialize_low_tracepoint): Call
6471 init_registers_amd64_avx_mpx_linux.
6472 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
6473 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
6474 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
6477 2016-04-18 Pedro Alves <palves@redhat.com>
6479 * configure: Regenerate.
6481 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
6483 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
6484 (aarch64_emit_sub): Likewise.
6486 2016-04-12 Pedro Alves <palves@redhat.com>
6488 * utils.c (prepare_to_throw_exception): Delete.
6490 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
6492 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6494 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6496 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6498 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6500 * linux-aarch64-ipa.c: Add <elf.h> include.
6501 * linux-ppc-ipa.c: Add <elf.h> include.
6502 * linux-s390-ipa.c: Add <elf.h> include.
6504 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6506 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
6507 (get_raw_reg_ptr): Likewise.
6508 (get_trace_state_variable_value_ptr): Likewise.
6509 (set_trace_state_variable_value_ptr): Likewise.
6510 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
6513 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6514 Marcin Kościelnicki <koriakin@0x04.net>
6517 * linux-ppc-low.c (emit_insns): New function.
6518 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
6519 (ppc_emit_prologue): New function.
6520 (ppc_emit_epilogue): New function.
6521 (ppc_emit_add): New function.
6522 (ppc_emit_sub): New function.
6523 (ppc_emit_mul): New function.
6524 (ppc_emit_lsh): New function.
6525 (ppc_emit_rsh_signed): New function.
6526 (ppc_emit_rsh_unsigned): New function.
6527 (ppc_emit_ext): New function.
6528 (ppc_emit_zero_ext): New function.
6529 (ppc_emit_log_not): New function.
6530 (ppc_emit_bit_and): New function.
6531 (ppc_emit_bit_or): New function.
6532 (ppc_emit_bit_xor): New function.
6533 (ppc_emit_bit_not): New function.
6534 (ppc_emit_equal): New function.
6535 (ppc_emit_less_signed): New function.
6536 (ppc_emit_less_unsigned): New function.
6537 (ppc_emit_ref): New function.
6538 (ppc_emit_const): New function.
6539 (ppc_emit_reg): New function.
6540 (ppc_emit_pop): New function.
6541 (ppc_emit_stack_flush): New function.
6542 (ppc_emit_swap): New function.
6543 (ppc_emit_stack_adjust): New function.
6544 (ppc_emit_call): New function.
6545 (ppc_emit_int_call_1): New function.
6546 (ppc_emit_void_call_2): New function.
6547 (ppc_emit_if_goto): New function.
6548 (ppc_emit_goto): New function.
6549 (ppc_emit_eq_goto): New function.
6550 (ppc_emit_ne_goto): New function.
6551 (ppc_emit_lt_goto): New function.
6552 (ppc_emit_le_goto): New function.
6553 (ppc_emit_gt_goto): New function.
6554 (ppc_emit_ge_goto): New function.
6555 (ppc_write_goto_address): New function.
6556 (ppc_emit_ops_impl): New static variable.
6557 (ppc64v1_emit_prologue): New function.
6558 (ppc64v2_emit_prologue): New function.
6559 (ppc64_emit_epilogue): New function.
6560 (ppc64_emit_add): New function.
6561 (ppc64_emit_sub): New function.
6562 (ppc64_emit_mul): New function.
6563 (ppc64_emit_lsh): New function.
6564 (ppc64_emit_rsh_signed): New function.
6565 (ppc64_emit_rsh_unsigned): New function.
6566 (ppc64_emit_ext): New function.
6567 (ppc64_emit_zero_ext): New function.
6568 (ppc64_emit_log_not): New function.
6569 (ppc64_emit_bit_and): New function.
6570 (ppc64_emit_bit_or): New function.
6571 (ppc64_emit_bit_xor): New function.
6572 (ppc64_emit_bit_not): New function.
6573 (ppc64_emit_equal): New function.
6574 (ppc64_emit_less_signed): New function.
6575 (ppc64_emit_less_unsigned): New function.
6576 (ppc64_emit_ref): New function.
6577 (ppc64_emit_const): New function.
6578 (ppc64v1_emit_reg): New function.
6579 (ppc64v2_emit_reg): New function.
6580 (ppc64_emit_pop): New function.
6581 (ppc64_emit_stack_flush): New function.
6582 (ppc64_emit_swap): New function.
6583 (ppc64v1_emit_call): New function.
6584 (ppc64v2_emit_call): New function.
6585 (ppc64v1_emit_int_call_1): New function.
6586 (ppc64v2_emit_int_call_1): New function.
6587 (ppc64v1_emit_void_call_2): New function.
6588 (ppc64v2_emit_void_call_2): New function.
6589 (ppc64_emit_if_goto): New function.
6590 (ppc64_emit_eq_goto): New function.
6591 (ppc64_emit_ne_goto): New function.
6592 (ppc64_emit_lt_goto): New function.
6593 (ppc64_emit_le_goto): New function.
6594 (ppc64_emit_gt_goto): New function.
6595 (ppc64_emit_ge_goto): New function.
6596 (ppc64v1_emit_ops_impl): New static variable.
6597 (ppc64v2_emit_ops_impl): New static variable.
6598 (ppc_emit_ops): New function.
6599 (linux_low_target): Wire in ppc_emit_ops.
6601 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6602 Marcin Kościelnicki <koriakin@0x04.net>
6605 * Makefile.in: Add powerpc-*-ipa.o
6606 * configure.srv: Add ipa_obj for powerpc*-linux.
6607 * linux-ppc-ipa.c: New file.
6608 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6610 (PPC_FIELD): New macro.
6611 (PPC_SEXT): New macro.
6612 (PPC_OP6): New macro.
6613 (PPC_BO): New macro.
6614 (PPC_LI): New macro.
6615 (PPC_BD): New macro.
6616 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6617 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6618 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6619 (ppc_get_thread_area): New function.
6620 (is_elfv2_inferior): New function.
6621 (gen_ds_form): New function.
6622 (GEN_STD): New macro.
6623 (GEN_STDU): New macro.
6624 (GEN_LD): New macro.
6625 (GEN_LDU): New macro.
6626 (gen_d_form): New function.
6627 (GEN_ADDI): New macro.
6628 (GEN_ADDIS): New macro.
6629 (GEN_LI): New macro.
6630 (GEN_LIS): New macro.
6631 (GEN_ORI): New macro.
6632 (GEN_ORIS): New macro.
6633 (GEN_LWZ): New macro.
6634 (GEN_STW): New macro.
6635 (GEN_STWU): New macro.
6636 (gen_xfx_form): New function.
6637 (GEN_MFSPR): New macro.
6638 (GEN_MTSPR): New macro.
6639 (GEN_MFCR): New macro.
6640 (GEN_MTCR): New macro.
6641 (GEN_SYNC): New macro.
6642 (GEN_LWSYNC): New macro.
6643 (gen_x_form): New function.
6644 (GEN_OR): New macro.
6645 (GEN_MR): New macro.
6646 (GEN_LWARX): New macro.
6647 (GEN_STWCX): New macro.
6648 (GEN_CMPW): New macro.
6649 (gen_md_form): New function.
6650 (GEN_RLDICL): New macro.
6651 (GEN_RLDICR): New macro.
6652 (gen_i_form): New function.
6654 (GEN_BL): New macro.
6655 (gen_b_form): New function.
6656 (GEN_BNE): New macro.
6657 (GEN_LOAD): New macro.
6658 (GEN_STORE): New macro.
6659 (gen_limm): New function.
6660 (gen_atomic_xchg): New function.
6661 (gen_call): New function.
6662 (ppc_relocate_instruction): New function.
6663 (ppc_install_fast_tracepoint_jump_pad): New function.
6664 (ppc_get_min_fast_tracepoint_insn_len): New function.
6665 (ppc_get_ipa_tdesc_idx): New function.
6666 (the_low_target): Wire in the new functions.
6667 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6669 * linux-ppc-tdesc.h: New file.
6671 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6673 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6674 (alloc_jump_pad_buffer): New function.
6675 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6676 (alloc_jump_pad_buffer): New function.
6677 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6678 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6679 (alloc_jump_pad_buffer): New function.
6680 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6681 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6682 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6683 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6685 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6687 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6688 * linux-amd64-ipa.c: Likewise.
6689 * linux-i386-ipa.c: Likewise.
6690 * linux-s390-ipa.c: Likewise.
6691 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6692 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6693 set_trace_state_variable_value_ptr.
6694 (struct ipa_sym_addresses): Likewise.
6695 (symbol_list): Likewise.
6696 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6697 accessing gdb_collect directly.
6698 (gdb_collect_ptr_type): New typedef.
6699 (get_raw_reg_ptr_type): New typedef.
6700 (get_trace_state_variable_value_ptr_type): New typedef.
6701 (set_trace_state_variable_value_ptr_type): New typedef.
6702 (gdb_collect_ptr): New global.
6703 (get_raw_reg_ptr): New global.
6704 (get_trace_state_variable_value_ptr): New global.
6705 (set_trace_state_variable_value_ptr): New global.
6706 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6707 accessing get_raw_reg directly.
6708 (get_get_tsv_func_addr): Likewise for
6709 get_trace_state_variable_value_ptr.
6710 (get_set_tsv_func_addr): Likewise for
6711 set_trace_state_variable_value_ptr.
6712 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6714 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6716 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6718 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6720 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6722 (relocate_instruction): Remove own_buf.
6723 * server.c (own_buf): Make global.
6724 (handle_v_requests): Make global.
6725 * server.h (own_buf): New declaration.
6726 (handle_v_requests): New prototype.
6728 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6731 * linux-s390-low.c (add_insns): New function.
6732 (s390_emit_prologue): New function.
6733 (s390_emit_epilogue): New function.
6734 (s390_emit_add): New function.
6735 (s390_emit_sub): New function.
6736 (s390_emit_mul): New function.
6737 (s390_emit_lsh): New function.
6738 (s390_emit_rsh_signed): New function.
6739 (s390_emit_rsh_unsigned): New function.
6740 (s390_emit_ext): New function.
6741 (s390_emit_log_not): New function.
6742 (s390_emit_bit_and): New function.
6743 (s390_emit_bit_or): New function.
6744 (s390_emit_bit_xor): New function.
6745 (s390_emit_bit_not): New function.
6746 (s390_emit_equal): New function.
6747 (s390_emit_less_signed): New function.
6748 (s390_emit_less_unsigned): New function.
6749 (s390_emit_ref): New function.
6750 (s390_emit_if_goto): New function.
6751 (s390_emit_goto): New function.
6752 (s390_write_goto_address): New function.
6753 (s390_emit_litpool): New function.
6754 (s390_emit_const): New function.
6755 (s390_emit_call): New function.
6756 (s390_emit_reg): New function.
6757 (s390_emit_pop): New function.
6758 (s390_emit_stack_flush): New function.
6759 (s390_emit_zero_ext): New function.
6760 (s390_emit_swap): New function.
6761 (s390_emit_stack_adjust): New function.
6762 (s390_emit_set_r2): New function.
6763 (s390_emit_int_call_1): New function.
6764 (s390_emit_void_call_2): New function.
6765 (s390_emit_eq_goto): New function.
6766 (s390_emit_ne_goto): New function.
6767 (s390_emit_lt_goto): New function.
6768 (s390_emit_le_goto): New function.
6769 (s390_emit_gt_goto): New function.
6770 (s390_emit_ge_goto): New function.
6771 (s390x_emit_prologue): New function.
6772 (s390x_emit_epilogue): New function.
6773 (s390x_emit_add): New function.
6774 (s390x_emit_sub): New function.
6775 (s390x_emit_mul): New function.
6776 (s390x_emit_lsh): New function.
6777 (s390x_emit_rsh_signed): New function.
6778 (s390x_emit_rsh_unsigned): New function.
6779 (s390x_emit_ext): New function.
6780 (s390x_emit_log_not): New function.
6781 (s390x_emit_bit_and): New function.
6782 (s390x_emit_bit_or): New function.
6783 (s390x_emit_bit_xor): New function.
6784 (s390x_emit_bit_not): New function.
6785 (s390x_emit_equal): New function.
6786 (s390x_emit_less_signed): New function.
6787 (s390x_emit_less_unsigned): New function.
6788 (s390x_emit_ref): New function.
6789 (s390x_emit_if_goto): New function.
6790 (s390x_emit_const): New function.
6791 (s390x_emit_call): New function.
6792 (s390x_emit_reg): New function.
6793 (s390x_emit_pop): New function.
6794 (s390x_emit_stack_flush): New function.
6795 (s390x_emit_zero_ext): New function.
6796 (s390x_emit_swap): New function.
6797 (s390x_emit_stack_adjust): New function.
6798 (s390x_emit_int_call_1): New function.
6799 (s390x_emit_void_call_2): New function.
6800 (s390x_emit_eq_goto): New function.
6801 (s390x_emit_ne_goto): New function.
6802 (s390x_emit_lt_goto): New function.
6803 (s390x_emit_le_goto): New function.
6804 (s390x_emit_gt_goto): New function.
6805 (s390x_emit_ge_goto): New function.
6806 (s390_emit_ops): New function.
6807 (struct linux_target_ops): Fill in emit_ops hook.
6809 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6812 * Makefile.in: Add s390 IPA files.
6813 * configure.srv: Build IPA for s390.
6814 * linux-s390-ipa.c: New file.
6815 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6816 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6817 (tdesc_s390_linux32): Likewise.
6818 (init_registers_s390_linux32v1): Likewise.
6819 (tdesc_s390_linux32v1): Likewise.
6820 (init_registers_s390_linux32v2): Likewise.
6821 (tdesc_s390_linux32v2): Likewise.
6822 (init_registers_s390_linux64): Likewise.
6823 (tdesc_s390_linux64): Likewise.
6824 (init_registers_s390_linux64v1): Likewise.
6825 (tdesc_s390_linux64v1): Likewise.
6826 (init_registers_s390_linux64v2): Likewise.
6827 (tdesc_s390_linux64v2): Likewise.
6828 (init_registers_s390_te_linux64): Likewise.
6829 (tdesc_s390_te_linux64): Likewise.
6830 (init_registers_s390_vx_linux64): Likewise.
6831 (tdesc_s390_vx_linux64): Likewise.
6832 (init_registers_s390_tevx_linux64): Likewise.
6833 (tdesc_s390_tevx_linux64): Likewise.
6834 (init_registers_s390x_linux64): Likewise.
6835 (tdesc_s390x_linux64): Likewise.
6836 (init_registers_s390x_linux64v1): Likewise.
6837 (tdesc_s390x_linux64v1): Likewise.
6838 (init_registers_s390x_linux64v2): Likewise.
6839 (tdesc_s390x_linux64v2): Likewise.
6840 (init_registers_s390x_te_linux64): Likewise.
6841 (tdesc_s390x_te_linux64): Likewise.
6842 (init_registers_s390x_vx_linux64): Likewise.
6843 (tdesc_s390x_vx_linux64): Likewise.
6844 (init_registers_s390x_tevx_linux64): Likewise.
6845 (tdesc_s390x_tevx_linux64): Likewise.
6846 (have_hwcap_s390_vx): New static variable.
6847 (s390_arch_setup): Fill have_hwcap_s390_vx.
6848 (s390_get_thread_area): New function.
6849 (s390_ft_entry_gpr_esa): New const.
6850 (s390_ft_entry_gpr_zarch): New const.
6851 (s390_ft_entry_misc): New const.
6852 (s390_ft_entry_fr): New const.
6853 (s390_ft_entry_vr): New const.
6854 (s390_ft_main_31): New const.
6855 (s390_ft_main_64): New const.
6856 (s390_ft_exit_fr): New const.
6857 (s390_ft_exit_vr): New const.
6858 (s390_ft_exit_misc): New const.
6859 (s390_ft_exit_gpr_esa): New const.
6860 (s390_ft_exit_gpr_zarch): New const.
6861 (append_insns): New function.
6862 (s390_relocate_instruction): New function.
6863 (s390_install_fast_tracepoint_jump_pad): New function.
6864 (s390_get_min_fast_tracepoint_insn_len): New function.
6865 (s390_get_ipa_tdesc_idx): New function.
6866 (struct linux_target_ops): Wire in the above functions.
6867 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6868 * linux-s390-tdesc.h: New file.
6870 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6872 * linux-s390-low.c (s390_supports_tracepoints): New function.
6873 (struct linux_target_ops): Fill supports_tracepoints hook.
6875 2016-03-18 Yao Qi <yao.qi@linaro.org>
6877 * linux-low.c (lwp_signal_can_be_delivered): New function.
6878 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6880 2016-03-18 Yao Qi <yao.qi@linaro.org>
6882 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6883 0 if signal is enqueued. Remove 'signal' from one debugging
6884 message. Move one debugging message to some lines below.
6885 Remove code setting 'signal' to 0.
6887 2016-03-18 Yao Qi <yao.qi@linaro.org>
6889 * linux-low.c (linux_low_filter_event): Remove redundant
6890 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6892 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6894 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6895 (struct linux_target_ops): Wire in the above.
6897 2016-03-03 Yao Qi <yao.qi@linaro.org>
6899 * linux-low.c: Update comments to start_step_over.
6901 2016-03-03 Yao Qi <yao.qi@linaro.org>
6904 * linux-low.c (handle_extended_wait): Set child suspended
6905 if event_lwp->bp_reinsert isn't zero.
6907 2016-03-02 Yao Qi <yao.qi@linaro.org>
6909 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6910 enqueue_pending_signal.
6912 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6914 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6917 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6919 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6920 (s390_regmap_3264) [!__s390x__]: New global.
6921 (s390_collect_ptrace_register): Skip map entries containing -1.
6922 (s390_supply_ptrace_register): Ditto.
6923 (s390_fill_gprs_high): New function.
6924 (s390_store_gprs_high): New function.
6925 (s390_regsets): Add NT_S390_HIGH_GPRS.
6926 (s390_get_hwcap): Enable on 31-bit.
6927 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6928 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6929 Detect NT_S390_HIGH_GPRS.
6930 (s390_usrregs_info_3264): Enable on 31-bit.
6931 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6932 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6934 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6937 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6938 * configure.srv: Ditto.
6939 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6940 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6941 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6942 (init_registers_amd64_linux): Remove prototype.
6943 (tdesc_amd64_linux): Remove declaration.
6944 (get_ipa_tdesc): New function.
6945 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6946 initialize remaining tdescs.
6947 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6948 (init_registers_i386_linux): Remove prototype.
6949 (tdesc_i386_linux): Remove declaration.
6950 (get_ipa_tdesc): New function.
6951 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6952 initialize remaining tdescs.
6953 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6954 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6955 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6956 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6957 (x86_get_ipa_tdesc_idx): New function.
6958 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6959 * linux-x86-tdesc.h: New file.
6960 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6961 (target_get_ipa_tdesc_idx): New macro.
6962 * tracepoint.c (ipa_tdesc_idx): New macro.
6963 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6964 (symbol_list): Add ipa_tdesc_idx.
6965 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6966 (ipa_tdesc): Remove.
6967 (ipa_tdesc_idx): New variable.
6968 (get_context_regcache): Use get_ipa_tdesc.
6969 (gdb_collect): Ditto.
6971 * tracepoint.h (get_ipa_tdesc): New prototype.
6972 (ipa_tdesc): Remove.
6974 2016-02-24 Pedro Alves <palves@redhat.com>
6976 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6977 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6978 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6979 Factor out common code between the USE_SIGTRAP_SIGINFO and
6980 !USE_SIGTRAP_SIGINFO blocks.
6981 (linux_low_filter_event): Call save_stop_reason instead of
6982 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6984 (linux_wait_1): Update comments.
6986 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6988 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6989 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6990 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6991 ppc_insert_point, ppc_remove_point.
6993 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6995 * linux-s390-low.c (s390_supports_z_point_type): New function.
6996 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6998 2016-02-16 Yao Qi <yao.qi@linaro.org>
7000 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7001 PC. Get pc from regcache_read_pc.
7003 2016-02-12 Yao Qi <yao.qi@linaro.org>
7005 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7006 or linux_get_pc_32bit.
7007 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7009 2016-02-12 Yao Qi <yao.qi@linaro.org>
7011 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7012 arm_linux_get_next_pcs_fixup.
7014 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7016 * tracepoint.c (x_tracepoint_action_download): Change
7017 write_inferior_data_ptr to write_inferior_data_pointer.
7018 (cmd_qtstart): Likewise.
7019 (write_inferior_data_ptr): Remove.
7020 (download_agent_expr): Change write_inferior_data_ptr to
7021 write_inferior_data_pointer.
7022 (download_tracepoint_1): Likewise.
7023 (download_tracepoint): Likewise.
7024 (download_trace_state_variables): Likewise.
7026 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
7027 Marcin Kościelnicki <koriakin@0x04.net>
7029 * tracepoint.c (struct tracepoint_action_ops): Remove.
7030 (struct tracepoint_action): Remove ops.
7031 (m_tracepoint_action_download, r_tracepoint_action_download)
7032 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7033 size and offset accordingly.
7034 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7035 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7036 (tracepoint_action_send, tracepoint_action_download): New functions.
7037 Helpers for trace action handlers.
7038 (add_tracepoint_action): Remove setup actions ops.
7039 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7041 2016-02-10 Yao Qi <yao.qi@linaro.org>
7043 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7045 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7047 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7049 * configure: Regenerate.
7051 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7053 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7054 void * to gdb_byte *.
7055 * linux-low.c (siginfo_fixup): Likewise.
7056 (linux_xfer_siginfo): Likewise.
7057 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7059 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7061 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7063 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7065 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7067 * linux-x86-low.c [__x86_64__]: Include
7068 "nat/amd64-linux-siginfo.h".
7069 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7070 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7071 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7072 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7073 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7074 (cpt_si_fd, si_timerid, si_overrun): Move from
7075 nat/amd64-linux-siginfo.c.
7076 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7078 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7080 * server.c (skip_to_semicolon): Remove.
7081 (process_point_options): Use strchrnul instead of
7084 2016-01-26 Yao Qi <yao.qi@linaro.org>
7086 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7087 * linux-low.c (install_software_single_step_breakpoints): Don't
7088 call regcache_read_pc.
7089 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7092 2016-01-26 Yao Qi <yao.qi@linaro.org>
7094 * linux-low.c (install_software_single_step_breakpoints): Call
7095 regcache_read_pc instead of get_pc.
7097 2016-01-26 Yao Qi <yao.qi@linaro.org>
7099 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7100 (unblock_async_io): Rename to ...
7101 (block_unblock_async_io): ... it. New function.
7102 (enable_async_io): Don't install SIGIO handler. Unblock it
7104 (disable_async_io): Don't ignore SIGIO. Block it instead.
7105 (initialize_async_io): Install SIGIO handler. Don't call
7108 2016-01-26 Yao Qi <yao.qi@linaro.org>
7110 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7111 first character is '\003', call *the_target->request_interrupt.
7113 2016-01-25 Yao Qi <yao.qi@linaro.org>
7115 * remote-utils.c (new_thread_notify): Remove.
7116 (dead_thread_notify): Likewise.
7117 * remote-utils.h (new_thread_notify): Remove declaration.
7118 (dead_thread_notify): Likewise.
7120 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7122 * gdb.trace/pending.exp: Fix expected message on continue.
7124 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7126 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7127 it works properly on big-endian machines where sizeof (CORE_ADDR)
7130 2016-01-21 Pedro Alves <palves@redhat.com>
7132 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7133 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7134 * configure: Regenerate.
7136 2016-01-21 Yao Qi <yao.qi@linaro.org>
7138 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7139 is_thumb and set it according to CPSR saved on the stack.
7140 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7141 arm_sigreturn_next_pc.
7143 2016-01-18 Yao Qi <yao.qi@linaro.org>
7145 * linux-low.c (linux_set_pc_64bit): New function.
7146 (linux_get_pc_64bit): New function.
7147 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7149 * linux-sparc-low.c (debug_threads): Remove declaration.
7150 (sparc_get_pc): Remove.
7151 (the_low_target): Use linux_get_pc_64bit instead of
7153 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7154 (the_low_target): Use linux_get_pc_64bit and
7157 2016-01-18 Yao Qi <yao.qi@linaro.org>
7159 * linux-arm-low.c (debug_threads): Remove declaration.
7160 (arm_get_pc, arm_set_pc): Remove.
7161 (the_low_target): Use linux_get_pc_32bit and
7163 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7164 (the_low_target): Use linux_get_pc_32bit and
7166 * linux-cris-low.c (debug_threads): Remove declaration.
7167 (cris_get_pc, cris_set_pc,): Remove.
7168 (the_low_target): Use linux_get_pc_32bit and
7170 * linux-crisv32-low.c (debug_threads): Remove declaration.
7171 (cris_get_pc, cris_set_pc): Remove.
7172 (the_low_target): Use linux_get_pc_32bit and
7174 * linux-low.c: Include inttypes.h.
7175 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7176 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7177 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7178 (the_low_target): Use linux_get_pc_32bit and
7180 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7181 (the_low_target): Use linux_get_pc_32bit and
7183 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7184 (the_low_target): Use linux_get_pc_32bit and
7186 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7187 (the_low_target): Use linux_get_pc_32bit and
7189 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7190 (the_low_target): Use linux_get_pc_32bit and
7193 2016-01-18 Gary Benson <gbenson@redhat.com>
7195 * configure.ac (AC_FUNC_FORK): New check.
7196 * config.in: Regenerate.
7197 * configure: Likewise.
7199 2016-01-14 Yao Qi <yao.qi@linaro.org>
7201 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7202 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7203 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7204 arm_get_next_pcs_ctor.
7206 2016-01-12 Josh Stone <jistone@redhat.com>
7207 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7209 * inferiors.h: Include "gdb_vecs.h".
7210 (struct process_info): Add syscalls_to_catch.
7211 * inferiors.c (remove_process): Free syscalls_to_catch.
7212 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7213 syscall_return stops.
7214 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7215 * server.c (handle_general_set): Handle QCatchSyscalls.
7216 (handle_query): Report support for QCatchSyscalls.
7217 * target.h (struct target_ops): Add supports_catch_syscall.
7218 (target_supports_catch_syscall): New macro.
7219 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7220 (struct lwp_info): Add syscall_state.
7221 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7222 Maintain syscall_state and syscalls_to_catch across exec.
7223 (get_syscall_trapinfo): New function, proxy to the_low_target.
7224 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7225 (linux_low_filter_event): Toggle syscall_state entry/return for
7226 syscall traps, and set it ignored for all others.
7227 (gdb_catching_syscalls_p): New function.
7228 (gdb_catch_this_syscall_p): New function.
7229 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7230 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7231 (linux_supports_catch_syscall): New function.
7232 (linux_target_ops): Install it.
7233 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7234 (the_low_target): Install it.
7236 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7238 * acinclude.m4: Include new ../warning.m4 file.
7239 * configure: Regenerated.
7240 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7242 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7244 * ax.c (is_goto_target): Mark static.
7245 * linux-low.c (register_addr): Likewise.
7246 (linux_fetch_registers, linux_store_registers): Likewise.
7247 * mem-break.c (any_persistent_commands): Fix old prototype.
7248 (add_commands_to_breakpoint): Mark static.
7249 * regcache.c (find_register_by_name): Delete unused func.
7250 * remote-utils.c (hex_or_minus_one): Mark static.
7251 * server.c (monitor_show_help): Mark static.
7252 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7253 handle_v_requests): Likewise.
7255 2016-01-12 Pedro Alves <palves@redhat.com>
7257 Remove use of the registered trademark symbol throughout.
7259 2016-01-08 Yao Qi <yao.qi@linaro.org>
7261 * remote-utils.c (getpkt): If c is '\003', call target hook
7264 2016-01-06 Yao Qi <yao.qi@linaro.org>
7266 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7267 linux-aarch32-low.c.
7268 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7269 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7270 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7271 (thumb2_breakpoint): Declare.
7272 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7273 linux-aarch32-low.h.
7274 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7275 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7276 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7278 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7280 * gdbreplay.c (gdbreplay_version): Change copyright year in
7282 * server.c (gdbserver_version): Likewise.
7284 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7286 * server.c (crc32_table): Delete.
7287 (crc32): Use libiberty's xcrc32 function.
7289 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7291 * lynx-low.c (lynx_delete_thread_callback): New function.
7292 (lynx_mourn): Properly delete our process and all of its
7293 threads. Remove call to clear_inferiors.
7295 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7297 * target.c (thread_search_callback): Add check that
7298 the thread_stopped target callback is not NULL before
7301 2015-12-21 Yao Qi <yao.qi@linaro.org>
7303 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7306 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7308 * server.c (handle_query): Call target_supports_software_single_step.
7310 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7312 * linux-low.c (single_step): New function.
7313 (linux_resume_one_lwp_throw): Call single_step.
7314 (start_step_over): Likewise.
7316 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7318 * Makefile.in (SFILES): Append arch/arm-linux.c,
7319 arch/arm-get-next-pcs.c.
7320 (arm-linux.o): New rule.
7321 (arm-get-next-pcs.o): New rule.
7322 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7324 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7325 to linux-aarch32-low.c.
7326 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7327 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7328 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7329 (thumb2_breakpoint_len): Likewise.
7330 (arm_is_thumb_mode): Make non-static.
7331 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7332 from linux-aarch32-low.c.
7333 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7334 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7335 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7336 (thumb2_breakpoint_len): Likewise.
7337 (arm_is_thumb_mode): New declaration.
7338 * linux-arm-low.c: Include arch/arm-linux.h
7339 aarch/arm-get-next-pcs.h, sys/syscall.h.
7340 (get_next_pcs_ops): New struct.
7341 (get_next_pcs_addr_bits_remove): New function.
7342 (get_next_pcs_is_thumb): New function.
7343 (get_next_pcs_read_memory_unsigned_integer): Likewise.
7344 (arm_sigreturn_next_pc): Likewise.
7345 (get_next_pcs_syscall_next_pc): Likewise.
7346 (arm_gdbserver_get_next_pcs): Likewise.
7347 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
7349 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7350 * server.h: Include gdb_vecs.h.
7352 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7354 * Makefile.in (SFILES): Append common/common-regcache.c.
7355 (OBS): Append common-regcache.o.
7356 (common-regcache.o): New rule.
7357 * regcache.c (init_register_cache): Initialize cache to
7359 (regcache_raw_read_unsigned): New function.
7360 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7361 register_status enum.
7363 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7365 * linux-aarch64-low.c (the_low_targets): Rename
7366 breakpoint_reinsert_addr to get_next_pcs.
7367 * linux-arm-low.c (the_low_targets): Likewise.
7368 * linux-bfin-low.c (the_low_targets): Likewise.
7369 * linux-cris-low.c (the_low_targets): Likewise.
7370 * linux-crisv32-low.c (the_low_targets): Likewise.
7371 * linux-low.c (can_software_single_step): Likewise.
7372 (install_software_single_step_breakpoints): New function.
7373 (start_step_over): Use install_software_single_step_breakpoints.
7374 * linux-low.h: New CORE_ADDR vector.
7375 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
7377 * linux-mips-low.c (the_low_targets): Likewise.
7378 * linux-nios2-low.c (the_low_targets): Likewise.
7379 * linux-sparc-low.c (the_low_targets): Likewise.
7381 2015-12-17 Pedro Alves <palves@redhat.com>
7383 * linux-low.c (linux_kill_one_lwp): Remove references to
7385 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7387 (linux_init_signals): Delete.
7388 (initialize_low): Adjust.
7389 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7391 2015-12-16 Pedro Alves <palves@redhat.com>
7393 * configure.ac (compiler warning flags): When testing a
7394 -Wno-foo option, check whether -Wfoo works instead.
7395 * configure: Regenerate.
7397 2015-12-11 Don Breazeal <donb@codesourcery.com>
7399 * server.c (process_serial_event): Don't exit from gdbserver
7400 in remote mode if there are still active inferiors.
7402 2015-12-11 Yao Qi <yao.qi@linaro.org>
7404 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
7405 arm_breakpoint_at if the process is 32-bit.
7407 2015-12-11 Yao Qi <yao.qi@linaro.org>
7409 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
7412 2015-12-07 Yao Qi <yao.qi@linaro.org>
7414 * configure.srv: Append arm.o to srv_tgtobj for
7415 aarch64*-*-linux* target.
7416 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
7417 from linux-arm-low.c.
7418 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7419 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7420 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7421 (thumb2_breakpoint_len): Likewise.
7422 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
7423 (arm_breakpoint_kinds): Likewise.
7424 (arm_breakpoint_kind_from_pc): Likewise.
7425 (arm_sw_breakpoint_from_kind): Likewise.
7426 (arm_breakpoint_kind_from_current_state): Likewise.
7427 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
7428 (arm_sw_breakpoint_from_kind): Declare.
7429 (arm_breakpoint_kind_from_current_state): Declare.
7430 (arm_breakpoint_at): Declare.
7431 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
7432 arm_sw_breakpoint_from_kind if process is 32-bit.
7433 (aarch64_breakpoint_kind_from_pc): New function.
7434 (aarch64_breakpoint_kind_from_current_state): New function.
7435 (the_low_target): Initialize fields breakpoint_kind_from_pc
7436 and breakpoint_kind_from_current_state.
7437 * linux-arm-low.c (arm_breakpoint_kinds): Move to
7438 linux-aarch32-low.c.
7439 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
7440 (arm_breakpoint, arm_breakpoint_len): Likewise.
7441 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
7442 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7443 (arm_is_thumb_mode): Likewise.
7444 (arm_breakpoint_at): Likewise.
7445 (arm_breakpoint_kind_from_pc): Likewise.
7446 (arm_sw_breakpoint_from_kind): Likewise.
7447 (arm_breakpoint_kind_from_current_state): Likewise.
7450 2015-08-04 Yao Qi <yao.qi@linaro.org>
7452 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7453 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7454 * server.c (extended_protocol): Remove "static".
7455 * server.h (extended_protocol): Declare it.
7457 2015-12-04 Josh Stone <jistone@redhat.com>
7459 * target.h (struct target_ops) <arch_setup>: Rename to ...
7460 (struct target_ops) <post_create_inferior>: ... this.
7461 (target_arch_setup): Rename to ...
7462 (target_post_create_inferior): ... this, calling post_create_inferior.
7463 * server.c (start_inferior): Update target_arch_setup calls to
7464 target_post_create_inferior.
7465 * linux-low.c (linux_low_ptrace_options): Forward declare.
7466 (linux_arch_setup): Update its comment for general use.
7467 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
7468 (struct linux_target_ops): Use linux_post_create_inferior.
7469 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
7470 to post_create_inferior.
7471 * nto-low.c (struct nto_target_ops): Likewise.
7472 * spu-low.c (struct spu_target_ops): Likewise.
7473 * win32-low.c (struct win32_target_ops): Likewise.
7475 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
7477 * linux-arm-low.c: Remove duplicate arch/arm.h include.
7479 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7481 * linux-arm-low.c (arm_reinsert_addr): Remove function.
7482 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
7483 * linux-cris-low.c (cris_reinsert_addr> Remove function.
7484 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7485 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
7486 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7487 * linux-mips-low.c (mips_reinsert_addr): Remove function.
7488 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7489 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
7490 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7491 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
7492 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7494 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7496 * linux-low.c (linux_look_up_symbols): Don't call
7497 linux_supports_traceclone.
7498 * linux-low.h (thread_db_init): Remove use_events argument.
7499 * thread-db.c (thread_db_use_event): Remove global variable.
7500 (struct thread_db) <td_thr_event_enable_p>: Remove field.
7501 (struct thread_db) <td_create_bp>: Remove field.
7502 (thread_db_create_event): Remove function.
7503 (thread_db_enable_reporting): Likewise.
7504 (find_one_thread): Don't check for thread_db_use_events.
7505 (attach_thread): Likewise.
7506 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
7507 (try_thread_db_load_1): Don't check for thread_db_use_events.
7508 (thread_db_init): Remove use_events argument and thread events
7510 (remove_thread_event_breakpoints): Remove function.
7511 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7513 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7515 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7517 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7518 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
7519 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7520 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
7521 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
7523 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7525 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7526 * linux-low.c (can_hardware_single_step): Use
7527 supports_hardware_single_step.
7528 (can_software_single_step): New function.
7529 (start_step_over): Call can_software_single_step.
7530 (linux_supports_hardware_single_step): New function.
7531 (struct target_ops) <supports_software_single_step>: Initialize.
7532 * linux-low.h (struct linux_target_ops)
7533 <supports_hardware_single_step>: Initialize.
7534 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
7535 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7536 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
7537 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
7538 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
7539 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7540 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
7541 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7542 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
7543 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
7545 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7546 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7548 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7549 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7550 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7552 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7553 * target.h (struct target_ops): <supports_software_single_step>:
7555 (target_supports_software_single_step): New macro.
7557 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7559 * linux-low.c (linux_wait_1): Fix pc advance condition.
7560 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
7561 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
7563 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7565 * linux-arm-low.c (arm_is_thumb_mode): New function.
7566 (arm_breakpoint_at): Use arm_is_thumb_mode.
7567 (arm_breakpoint_kind_from_current_state): New function.
7568 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7570 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7571 (linux_breakpoint_kind_from_current_state): New function.
7572 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7573 * linux-low.h (struct linux_target_ops)
7574 <breakpoint_kind_from_current_state>: New field.
7575 * target.h (struct target_ops): Likewise.
7576 (target_breakpoint_kind_from_current_state): New macro.
7578 2015-11-30 Pedro Alves <palves@redhat.com>
7580 * linux-low.c (linux_resume): Wake up the event loop before
7583 2015-11-30 Pedro Alves <palves@redhat.com>
7585 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7587 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7589 * target.c (struct thread_search): New structure.
7590 (thread_search_callback): New function.
7591 (prev_general_thread): New global.
7592 (prepare_to_access_memory, done_accessing_memory): New functions.
7593 * target.h (prepare_to_access_memory, done_accessing_memory):
7594 Replace macros with function declarations.
7596 2015-11-30 Pedro Alves <palves@redhat.com>
7599 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7600 report TARGET_WAITKIND_NO_RESUMED.
7601 * remote-utils.c (prepare_resume_reply): Handle
7602 TARGET_WAITKIND_NO_RESUMED.
7603 * server.c (report_no_resumed): New global.
7604 (handle_query) <qSupported>: Handle "no-resumed+". Report
7605 "no-resumed+" support.
7606 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7607 return error if the client doesn't support no-resumed events.
7608 (push_stop_notification): New function.
7609 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7610 events if the client supports them.
7612 2015-11-30 Pedro Alves <palves@redhat.com>
7614 * linux-low.c (thread_still_has_status_pending_p): Don't check
7616 (lwp_resumed): New function.
7617 (status_pending_p_callback): Return early if the LWP is not
7618 supposed to be resumed.
7620 2015-11-30 Pedro Alves <palves@redhat.com>
7622 * linux-low.c (handle_extended_wait): Assert that the LWP's
7623 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7624 thread create events, leave the new child's status pending.
7625 (linux_low_filter_event): If GDB wants to hear about thread exit
7626 events, leave the LWP marked dead and don't delete it.
7627 (linux_wait_for_event_filtered): Don't check for thread exit.
7628 (filter_exit_event): New function.
7629 (linux_wait_1): Use it, when returning an exit event.
7630 (linux_resume_one_lwp_throw): Assert that the LWP's
7631 waitstatus is TARGET_WAITKIND_IGNORE.
7632 * remote-utils.c (prepare_resume_reply): Handle
7633 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7634 * server.c (report_thread_events): New global.
7635 (handle_general_set): Handle QThreadEvents.
7636 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7637 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7638 TARGET_WAITKIND_THREAD_EXITED.
7639 * server.h (report_thread_events): Declare.
7641 2015-11-30 Pedro Alves <palves@redhat.com>
7643 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7644 the thread's last_resume_kind was resume_stop.
7646 2015-11-30 Pedro Alves <palves@redhat.com>
7648 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7651 2015-11-30 Pedro Alves <palves@redhat.com>
7653 * server.c (handle_v_requests): Handle vCtrlC.
7655 2015-11-30 Pedro Alves <palves@redhat.com>
7657 * gdbthread.h (find_any_thread_of_pid): Declare.
7658 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7660 * server.c (handle_query): If current_thread is NULL, look for
7661 another thread of the selected process.
7663 2015-11-26 Daniel Colascione <dancol@dancol.org>
7664 Simon Marchi <simon.marchi@ericsson.com>
7666 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7667 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7669 * target.h (struct target_ops) <thread_name>: New field.
7670 (target_thread_name): New macro.
7672 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7674 * regcache.h (regcache_invalidate_pid): Add declaration.
7675 * regcache.c (regcache_invalidate_pid): New function, extracted
7676 from regcache_invalidate.
7677 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7678 Add trivial documentation comment.
7679 * lynx-low.c: Use regcache_invalidate_pid instead of
7680 regcache_invalidate.
7682 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7684 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7685 and Elf64_auxv_t if the target is Android.
7687 2015-11-22 Doug Evans <xdje42@gmail.com>
7689 * target.h: #include <sys/types.h>.
7691 2015-11-19 Pedro Alves <palves@redhat.com>
7693 * linux-low.c (linux_process_qsupported): Change prototype.
7695 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7697 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7698 and adjust to loop over all features.
7699 * server.c (handle_query) <qSupported>: Adjust to call
7700 target_process_qsupported once, passing it a vector of unprocessed
7702 * target.h (struct target_ops) <process_qsupported>: Change
7704 (target_process_qsupported): Adjust.
7706 2015-11-19 Pedro Alves <palves@redhat.com>
7708 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7710 * configure: Regenerate.
7712 2015-11-19 Pedro Alves <palves@redhat.com>
7714 * configure: Regenerate.
7716 2015-11-19 Yao Qi <yao.qi@linaro.org>
7718 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7721 2015-11-19 Yao Qi <yao.qi@linaro.org>
7723 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7724 (struct aarch64_operand): Move enum out.
7726 2015-11-19 Yao Qi <yao.qi@linaro.org>
7728 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7729 struct user_fpsimd_state *.
7730 (aarch64_store_fpregset): Likewise.
7732 2015-11-19 Yao Qi <yao.qi@linaro.org>
7734 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7735 struct user_pt_regs *.
7736 (aarch64_store_gregset): Likewise.
7738 2015-11-18 Pedro Alves <palves@redhat.com>
7740 * Makefile.in (all_object_files): Add $IPA_OBJS.
7742 2015-11-17 Pedro Alves <palves@redhat.com>
7744 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7745 GDB_SIGNAL_0 and gdb_signal_to_string.
7747 2015-11-17 Pedro Alves <palves@redhat.com>
7749 * win32-low.c (handle_output_debug_string): Remove parameter.
7750 (win32_kill): Remove our_status local and adjust call to
7751 handle_output_debug_string.
7752 (get_child_debug_event): Adjust call to
7753 handle_output_debug_string.
7755 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7757 * linux-mips-low.c (mips_fill_gregset): Add cast.
7758 (mips_store_gregset): Likewise.
7759 (mips_fill_fpregset): Likewise.
7760 (mips_store_fpregset): Likewise.
7762 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7764 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7767 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7769 * linux-mips-low.c (mips_linux_new_thread): Change type of
7770 watch_type to enum target_hw_bp_type.
7772 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7774 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7775 Change return type to arm_hwbp_type.
7777 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7779 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7780 (arm_store_gregset): Likewise.
7781 * linux-arm-low.c (arm_get_hwcap): Likewise.
7782 (arm_read_description): Likewise.
7784 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7786 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7788 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7790 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7791 (ppc_fill_vsxregset): Likewise.
7792 (ppc_store_vsxregset): Likewise.
7793 (ppc_fill_vrregset): Likewise.
7794 (ppc_store_vrregset): Likewise.
7795 (ppc_fill_evrregset): Likewise.
7796 (ppc_store_evrregset): Likewise.
7798 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7800 * linux-ppc-low.c (ppc_usrregs_info): Remove
7801 forward-declaration.
7802 (ppc_arch_setup): Move lower in file.
7804 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7806 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7807 (ps_pdwrite): Likewise.
7809 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7811 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7812 to after assert checks.
7814 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7816 * proc-service.c (ps_pdread): Add/adjust casts.
7817 (ps_pdwrite): Add/adjust casts.
7819 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7821 * server.c (handle_search_memory_1): Cast return value of
7824 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7826 * server.c (write_qxfer_response): Change type of data to
7829 2015-10-29 Pedro Alves <palves@redhat.com>
7831 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7833 2015-10-29 Pedro Alves <palves@redhat.com>
7835 * tracepoint.c (clear_installed_tracepoints): Add casts.
7837 2015-10-29 Pedro Alves <palves@redhat.com>
7839 * server.c (handle_v_cont, process_serial_event): Add enum
7840 gdb_signal casts to signal parsing code.
7842 2015-10-29 Pedro Alves <palves@redhat.com>
7844 * linux-low.h (NULL_REGSET): Define.
7845 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7846 * linux-arm-low.c (arm_regsets): Likewise.
7847 * linux-crisv32-low.c (cris_regsets): Likewise.
7848 * linux-m68k-low.c (m68k_regsets): Likewise.
7849 * linux-mips-low.c (mips_regsets): Likewise.
7850 * linux-nios2-low.c (nios2_regsets): Likewise.
7851 * linux-ppc-low.c (ppc_regsets): Likewise.
7852 * linux-s390-low.c (s390_regsets): Likewise.
7853 * linux-sh-low.c (sh_regsets): Likewise.
7854 * linux-sparc-low.c (sparc_regsets): Likewise.
7855 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7856 * linux-tile-low.c (tile_regsets): Likewise.
7857 * linux-x86-low.c (x86_regsets): Likewise.
7858 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7860 2015-10-29 Pedro Alves <palves@redhat.com>
7862 * linux-low.h (NULL_REGSET): Define.
7863 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7864 * linux-arm-low.c (arm_regsets): Likewise.
7865 * linux-crisv32-low.c (cris_regsets): Likewise.
7866 * linux-m68k-low.c (m68k_regsets): Likewise.
7867 * linux-mips-low.c (mips_regsets): Likewise.
7868 * linux-nios2-low.c (nios2_regsets): Likewise.
7869 * linux-ppc-low.c (ppc_regsets): Likewise.
7870 * linux-s390-low.c (s390_regsets): Likewise.
7871 * linux-sh-low.c (sh_regsets): Likewise.
7872 * linux-sparc-low.c (sparc_regsets): Likewise.
7873 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7874 * linux-tile-low.c (tile_regsets): Likewise.
7875 * linux-x86-low.c (x86_regsets): Likewise.
7876 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7878 2015-10-26 Doug Evans <dje@google.com>
7880 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7882 2015-10-26 Doug Evans <dje@google.com>
7884 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7886 2015-10-26 Doug Evans <dje@google.com>
7888 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7890 (attach_thread, find_new_threads_callback): Ditto.
7892 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7894 * mem-break.h (set_breakpoint_data): Remove.
7896 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7898 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7899 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7900 (initialize_low): Remove set_breakpoint_data call.
7901 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7902 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7903 (initialize_low): Remove set_breakpoint_data call.
7904 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7905 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7906 (initialize_low): Remove set_breakpoint_data call.
7908 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7910 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7911 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7912 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7913 * target.h (target_breakpoint_kind_from_pc): New macro.
7915 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7917 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7918 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7919 the default breakpoint kind.
7921 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7923 * linux-arm-low.c (arm_supports_z_point_type): Add software
7926 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7928 * linux-arm-low.c: Refactor breakpoint definitions.
7929 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7930 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7932 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7934 * Makefile.in: Add arm.c/o.
7935 * configure.srv: Likewise.
7936 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7937 (arm_breakpoint_kind_from_pc): New function.
7938 (arm_sw_breakpoint_from_kind): Return proper kind.
7939 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7941 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7943 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7945 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7946 (struct raw_breakpoint) <size>: Remove.
7947 (struct raw_breakpoint) <kind>: Add.
7948 (bp_size): New function.
7949 (bp_opcode): Likewise.
7950 (find_raw_breakpoint_at): Adjust for kind.
7951 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7952 (remove_memory_breakpoint): Adjust for kind call bp_size.
7953 (set_raw_breakpoint_at): Adjust for kind.
7954 (set_breakpoint): Likewise.
7955 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7956 (delete_raw_breakpoint): Adjust for kind.
7957 (delete_breakpoint): Likewise.
7958 (find_gdb_breakpoint): Likewise.
7959 (set_gdb_breakpoint_1): Likewise.
7960 (set_gdb_breakpoint): Likewise.
7961 (delete_gdb_breakpoint_1): Likewise.
7962 (delete_gdb_breakpoint): Likewise.
7963 (uninsert_raw_breakpoint): Likewise.
7964 (reinsert_raw_breakpoint): Likewise.
7965 (set_breakpoint_data): Remove.
7966 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7967 (check_mem_read): Adjust for kind call bp_size.
7968 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7969 (clone_one_breakpoint): Adjust for kind.
7970 * mem-break.h (set_gdb_breakpoint): Likewise.
7971 (delete_gdb_breakpoint): Likewise.
7972 * server.c (process_serial_event): Likewise.
7974 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7976 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7977 (struct linux_target_ops) <breakpoint>: Remove.
7978 (struct linux_target_ops) <breakpoint_len>: Remove.
7979 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7980 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7981 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7982 (arm_sw_breakpoint_from_kind): New function.
7983 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7984 (struct linux_target_ops) <breakpoint>: Remove.
7985 (struct linux_target_ops) <breakpoint_len>: Remove.
7986 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7987 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7988 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7989 (struct linux_target_ops) <breakpoint>: Remove.
7990 (struct linux_target_ops) <breakpoint_len>: Remove.
7991 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7992 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7993 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7994 (struct linux_target_ops) <breakpoint>: Remove.
7995 (struct linux_target_ops) <breakpoint_len>: Remove.
7996 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7997 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7998 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7999 and sw_breakpoint_from_kind to increment the pc.
8000 (linux_breakpoint_kind_from_pc): New function.
8001 (linux_sw_breakpoint_from_kind): New function.
8002 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8003 (initialize_low): Call breakpoint_kind_from_pc and
8004 sw_breakpoint_from_kind to replace breakpoint_data/len.
8005 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8007 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8008 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8009 (struct linux_target_ops) <breakpoint>: Remove.
8010 (struct linux_target_ops) <breakpoint_len>: Remove.
8011 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8012 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8013 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8014 (struct linux_target_ops) <breakpoint>: Remove.
8015 (struct linux_target_ops) <breakpoint_len>: Remove.
8016 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8017 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8018 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8019 (struct linux_target_ops) <breakpoint>: Remove.
8020 (struct linux_target_ops) <breakpoint_len>: Remove.
8021 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8022 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8023 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8024 (struct linux_target_ops) <breakpoint>: Remove.
8025 (struct linux_target_ops) <breakpoint_len>: Remove.
8026 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8027 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8028 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8029 (struct linux_target_ops) <breakpoint>: Remove.
8030 (struct linux_target_ops) <breakpoint_len>: Remove.
8031 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8032 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8033 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8034 (struct linux_target_ops) <breakpoint>: Remove.
8035 (struct linux_target_ops) <breakpoint_len>: Remove.
8036 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8037 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8038 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8039 (struct linux_target_ops) <breakpoint>: Remove.
8040 (struct linux_target_ops) <breakpoint_len>: Remove.
8041 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8042 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8043 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8044 (struct linux_target_ops) <breakpoint>: Remove.
8045 (struct linux_target_ops) <breakpoint_len>: Remove.
8046 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8047 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8048 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8049 (struct linux_target_ops) <breakpoint>: Remove.
8050 (struct linux_target_ops) <breakpoint_len>: Remove.
8051 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8052 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8053 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8054 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8055 (struct linux_target_ops) <breakpoint>: Remove.
8056 (struct linux_target_ops) <breakpoint_len>: Remove.
8057 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8058 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8059 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8060 (struct linux_target_ops) <breakpoint>: Remove.
8061 (struct linux_target_ops) <breakpoint_len>: Remove.
8062 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8063 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8065 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8067 * linux-cris-low.c (cris_get_pc): Remove void arg.
8069 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8071 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8074 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8076 * inferiors.c (thread_pid_matches_callback): New function.
8077 (find_thread_process): New function.
8078 (remove_thread): Reset current_thread.
8079 (remove_process): Assert threads have been removed first.
8081 2015-10-15 Yao Qi <yao.qi@linaro.org>
8083 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8085 (aarch64_remove_point): Likewise.
8086 * regcache.c (regcache_register_size): New function.
8088 2015-10-12 Yao Qi <yao.qi@linaro.org>
8090 * linux-aarch64-low.c: Update all callers as emit_load_store
8091 is renamed to aarch64_emit_load_store.
8093 2015-10-12 Yao Qi <yao.qi@linaro.org>
8095 * linux-aarch64-low.c: Update all callers of function renaming
8096 from emit_insn to aarch64_emit_insn.
8098 2015-10-12 Yao Qi <yao.qi@linaro.org>
8100 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8101 arch/aarch64-insn.h.
8102 (struct aarch64_memory_operand): Likewise.
8104 (emit_insn): Move to arch/aarch64-insn.c.
8105 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8106 (emit_load_store): Move to arch/aarch64-insn.c.
8107 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8108 (can_encode_int32): Remove.
8110 2015-10-12 Yao Qi <yao.qi@linaro.org>
8112 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8113 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8114 (aarch64_relocate_instruction): Likewise.
8115 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8116 (struct aarch64_insn_visitor): Likewise.
8118 2015-10-12 Yao Qi <yao.qi@linaro.org>
8120 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8121 (struct aarch64_insn_visitor): New.
8122 (struct aarch64_insn_relocation_data): New.
8123 (aarch64_ftrace_insn_reloc_b): New function.
8124 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8125 (aarch64_ftrace_insn_reloc_cb): Likewise.
8126 (aarch64_ftrace_insn_reloc_tb): Likewise.
8127 (aarch64_ftrace_insn_reloc_adr): Likewise.
8128 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8129 (aarch64_ftrace_insn_reloc_others): Likewise.
8131 (aarch64_relocate_instruction): Use visitor.
8133 2015-10-12 Yao Qi <yao.qi@linaro.org>
8135 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8136 int. Add argument buf.
8137 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8138 aarch64_relocate_instruction.
8140 2015-10-12 Yao Qi <yao.qi@linaro.org>
8142 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8143 argument insn. Remove local variable insn. Don't call
8145 (aarch64_install_fast_tracepoint_jump_pad): Call
8148 2015-09-30 Yao Qi <yao.qi@linaro.org>
8150 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8151 (emit_load_store_pair): Likewise.
8153 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8155 * dll.c (match_dll): Add cast(s).
8156 (unloaded_dll): Likewise.
8157 * linux-low.c (second_thread_of_pid_p): Likewise.
8158 (delete_lwp_callback): Likewise.
8159 (count_events_callback): Likewise.
8160 (select_event_lwp_callback): Likewise.
8161 (linux_set_resume_request): Likewise.
8162 * server.c (accumulate_file_name_length): Likewise.
8163 (emit_dll_description): Likewise.
8164 (handle_qxfer_threads_worker): Likewise.
8165 (visit_actioned_threads): Likewise.
8166 * thread-db.c (any_thread_of): Likewise.
8167 * tracepoint.c (same_process_p): Likewise.
8168 (match_blocktype): Likewise.
8169 (build_traceframe_info_xml): Likewise.
8171 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8173 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8175 (gdb_unparse_agent_expr): Likewise.
8176 * hostio.c (require_data): Likewise.
8177 (handle_pread): Likewise.
8178 * linux-low.c (disable_regset): Likewise.
8179 (fetch_register): Likewise.
8180 (store_register): Likewise.
8181 (get_dynamic): Likewise.
8182 (linux_qxfer_libraries_svr4): Likewise.
8183 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8184 (set_fast_tracepoint_jump): Likewise.
8185 (uninsert_fast_tracepoint_jumps_at): Likewise.
8186 (reinsert_fast_tracepoint_jumps_at): Likewise.
8187 (validate_inserted_breakpoint): Likewise.
8188 (clone_agent_expr): Likewise.
8189 * regcache.c (init_register_cache): Likewise.
8190 * remote-utils.c (putpkt_binary_1): Likewise.
8191 (decode_M_packet): Likewise.
8192 (decode_X_packet): Likewise.
8193 (look_up_one_symbol): Likewise.
8194 (relocate_instruction): Likewise.
8195 (monitor_output): Likewise.
8196 * server.c (handle_search_memory): Likewise.
8197 (handle_qxfer_exec_file): Likewise.
8198 (handle_qxfer_libraries): Likewise.
8199 (handle_qxfer): Likewise.
8200 (handle_query): Likewise.
8201 (handle_v_cont): Likewise.
8202 (handle_v_run): Likewise.
8203 (captured_main): Likewise.
8204 * target.c (write_inferior_memory): Likewise.
8205 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8206 * tracepoint.c (init_trace_buffer): Likewise.
8207 (add_tracepoint_action): Likewise.
8208 (add_traceframe): Likewise.
8209 (add_traceframe_block): Likewise.
8210 (cmd_qtdpsrc): Likewise.
8211 (cmd_qtdv): Likewise.
8212 (cmd_qtstatus): Likewise.
8213 (response_source): Likewise.
8214 (response_tsv): Likewise.
8215 (cmd_qtnotes): Likewise.
8216 (gdb_collect): Likewise.
8217 (initialize_tracepoint): Likewise.
8219 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8221 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8222 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8223 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8225 (enum aarch64_condition_codes): New enum.
8226 (w0): New static global.
8229 (struct aarch64_memory_operand) <type>: New
8230 MEMORY_OPERAND_POSTINDEX type.
8231 (postindex_memory_operand): New helper function.
8232 (emit_ret): New function.
8233 (emit_load_store_pair): New function, factored out of emit_stp
8234 with support for MEMORY_OPERAND_POSTINDEX.
8235 (emit_stp): Rewrite using emit_load_store_pair.
8236 (emit_ldp): New function.
8237 (emit_load_store): Likewise.
8238 (emit_ldr): Mention post-index instruction in comment.
8239 (emit_ldrh): New function.
8240 (emit_ldrb): New function.
8241 (emit_ldrsw): Mention post-index instruction in comment.
8242 (emit_str): Likewise.
8243 (emit_subs): New function.
8244 (emit_cmp): Likewise.
8245 (emit_and): Likewise.
8246 (emit_orr): Likewise.
8247 (emit_orn): Likewise.
8248 (emit_eor): Likewise.
8249 (emit_mvn): Likewise.
8250 (emit_lslv): Likewise.
8251 (emit_lsrv): Likewise.
8252 (emit_asrv): Likewise.
8253 (emit_mul): Likewise.
8254 (emit_sbfm): Likewise.
8255 (emit_sbfx): Likewise.
8256 (emit_ubfm): Likewise.
8257 (emit_ubfx): Likewise.
8258 (emit_csinc): Likewise.
8259 (emit_cset): Likewise.
8260 (emit_nop): Likewise.
8261 (emit_ops_insns): New helper function.
8262 (emit_pop): Likewise.
8263 (emit_push): Likewise.
8264 (aarch64_emit_prologue): New function.
8265 (aarch64_emit_epilogue): Likewise.
8266 (aarch64_emit_add): Likewise.
8267 (aarch64_emit_sub): Likewise.
8268 (aarch64_emit_mul): Likewise.
8269 (aarch64_emit_lsh): Likewise.
8270 (aarch64_emit_rsh_signed): Likewise.
8271 (aarch64_emit_rsh_unsigned): Likewise.
8272 (aarch64_emit_ext): Likewise.
8273 (aarch64_emit_log_not): Likewise.
8274 (aarch64_emit_bit_and): Likewise.
8275 (aarch64_emit_bit_or): Likewise.
8276 (aarch64_emit_bit_xor): Likewise.
8277 (aarch64_emit_bit_not): Likewise.
8278 (aarch64_emit_equal): Likewise.
8279 (aarch64_emit_less_signed): Likewise.
8280 (aarch64_emit_less_unsigned): Likewise.
8281 (aarch64_emit_ref): Likewise.
8282 (aarch64_emit_if_goto): Likewise.
8283 (aarch64_emit_goto): Likewise.
8284 (aarch64_write_goto_address): Likewise.
8285 (aarch64_emit_const): Likewise.
8286 (aarch64_emit_call): Likewise.
8287 (aarch64_emit_reg): Likewise.
8288 (aarch64_emit_pop): Likewise.
8289 (aarch64_emit_stack_flush): Likewise.
8290 (aarch64_emit_zero_ext): Likewise.
8291 (aarch64_emit_swap): Likewise.
8292 (aarch64_emit_stack_adjust): Likewise.
8293 (aarch64_emit_int_call_1): Likewise.
8294 (aarch64_emit_void_call_2): Likewise.
8295 (aarch64_emit_eq_goto): Likewise.
8296 (aarch64_emit_ne_goto): Likewise.
8297 (aarch64_emit_lt_goto): Likewise.
8298 (aarch64_emit_le_goto): Likewise.
8299 (aarch64_emit_gt_goto): Likewise.
8300 (aarch64_emit_ge_got): Likewise.
8301 (aarch64_emit_ops_impl): New static global variable.
8302 (aarch64_emit_ops): New target function, return
8303 &aarch64_emit_ops_impl.
8304 (struct linux_target_ops): Install it.
8306 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8308 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8309 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8311 * linux-aarch64-ipa.c: New file.
8312 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8314 (aarch64_get_thread_area): New target method.
8315 (extract_signed_bitfield): New helper function.
8316 (aarch64_decode_ldr_literal): New function.
8317 (enum aarch64_opcodes): New enum.
8318 (struct aarch64_register): New struct.
8319 (struct aarch64_operand): New struct.
8320 (x0): New static global.
8329 (aarch64_register): New helper function.
8330 (register_operand): Likewise.
8331 (immediate_operand): Likewise.
8332 (struct aarch64_memory_operand): New struct.
8333 (offset_memory_operand): New helper function.
8334 (preindex_memory_operand): Likewise.
8335 (enum aarch64_system_control_registers): New enum.
8336 (ENCODE): New macro.
8337 (emit_insn): New helper function.
8338 (emit_b): New function.
8339 (emit_bcond): Likewise.
8340 (emit_cb): Likewise.
8341 (emit_tb): Likewise.
8342 (emit_blr): Likewise.
8343 (emit_stp): Likewise.
8344 (emit_ldp_q_offset): Likewise.
8345 (emit_stp_q_offset): Likewise.
8346 (emit_load_store): Likewise.
8347 (emit_ldr): Likewise.
8348 (emit_ldrsw): Likewise.
8349 (emit_str): Likewise.
8350 (emit_ldaxr): Likewise.
8351 (emit_stxr): Likewise.
8352 (emit_stlr): Likewise.
8353 (emit_data_processing_reg): Likewise.
8354 (emit_data_processing): Likewise.
8355 (emit_add): Likewise.
8356 (emit_sub): Likewise.
8357 (emit_mov): Likewise.
8358 (emit_movk): Likewise.
8359 (emit_mov_addr): Likewise.
8360 (emit_mrs): Likewise.
8361 (emit_msr): Likewise.
8362 (emit_sevl): Likewise.
8363 (emit_wfe): Likewise.
8364 (append_insns): Likewise.
8365 (can_encode_int32_in): New helper function.
8366 (aarch64_relocate_instruction): New function.
8367 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
8368 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
8369 (struct linux_target_ops): Install aarch64_get_thread_area,
8370 aarch64_install_fast_tracepoint_jump_pad and
8371 aarch64_get_min_fast_tracepoint_insn_len.
8373 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8375 * Makefile.in (aarch64-insn.o): New rule.
8376 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8378 2015-09-21 Yao Qi <yao.qi@linaro.org>
8380 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8382 2015-09-21 Yao Qi <yao.qi@linaro.org>
8384 * tracepoint.c (max_jump_pad_size): Remove.
8386 2015-09-18 Yao Qi <yao.qi@linaro.org>
8388 * linux-aarch64-low.c: Don't include sys/uio.h.
8389 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8391 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
8393 * tracepoint.c (eval_result_type): Change prototype.
8394 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8396 2015-09-15 Pedro Alves <palves@redhat.com>
8398 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
8399 Check whether to report exec events instead of checking whether
8400 multiprocess is enabled.
8402 2015-09-15 Pedro Alves <palves@redhat.com>
8405 * remote-utils.c (prepare_resume_reply): Merge
8406 TARGET_WAITKIND_VFORK_DONE switch case with the
8407 TARGET_WAITKIND_FORKED case.
8409 2015-09-15 Yao Qi <yao.qi@linaro.org>
8411 * server.c (handle_query): Check string comparison using
8412 "else if" instead of "if".
8414 2015-09-15 Yao Qi <yao.qi@linaro.org>
8416 * server.c (vCont_supported): New global variable.
8417 (handle_query): Set vCont_supported to 1 if "vContSupported+"
8418 matches. Append ";vContSupported+" to own_buf.
8419 (handle_v_requests): Append ";s;S" to own_buf if target supports
8420 hardware single step or vCont_supported is false.
8421 (capture_main): Set vCont_supported to zero.
8423 2015-09-15 Yao Qi <yao.qi@linaro.org>
8425 * linux-low.c (linux_supports_conditional_breakpoints): Rename
8427 (linux_supports_hardware_single_step): ... New function.
8428 (linux_target_ops): Update.
8429 * lynx-low.c (lynx_target_ops): Set field
8430 supports_hardware_single_step to target_can_do_hardware_single_step.
8431 * nto-low.c (nto_target_ops): Likewise.
8432 * spu-low.c (spu_target_ops): Likewise.
8433 * win32-low.c (win32_target_ops): Likewise.
8434 * target.c (target_can_do_hardware_single_step): New function.
8435 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8436 Remove. <supports_hardware_single_step>: New field.
8437 (target_supports_conditional_breakpoints): Remove.
8438 (target_supports_hardware_single_step): New macro.
8439 (target_can_do_hardware_single_step): Declare.
8440 * server.c (handle_query): Use target_supports_hardware_single_step
8441 instead of target_supports_conditional_breakpoints.
8443 2015-09-15 Yao Qi <yao.qi@linaro.org>
8445 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
8447 (struct linux_target_ops the_low_target): Install
8448 aarch64_linux_siginfo_fixup.
8450 2015-09-11 Don Breazeal <donb@codesourcery.com>
8451 Luis Machado <lgustavo@codesourcery.com>
8453 * linux-low.c (linux_mourn): Static declaration.
8454 (linux_arch_setup): Move in front of
8455 handle_extended_wait.
8456 (linux_arch_setup_thread): New function.
8457 (handle_extended_wait): Handle exec events. Call
8458 linux_arch_setup_thread. Make event_lwp argument a
8459 pointer-to-a-pointer.
8460 (check_zombie_leaders): Do not check stopped threads.
8461 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
8462 (linux_low_filter_event): Add lwp and thread for exec'ing
8463 non-leader thread if leader thread has been deleted.
8464 Refactor code into linux_arch_setup_thread and call it.
8465 Pass child lwp pointer by reference to handle_extended_wait.
8466 (linux_wait_for_event_filtered): Update comment.
8467 (linux_wait_1): Prevent clobbering exec event status.
8468 (linux_supports_exec_events): New function.
8469 (linux_target_ops) <supports_exec_events>: Initialize new member.
8470 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
8472 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
8473 * server.c (report_exec_events): New global variable.
8474 (handle_query): Handle qSupported query for exec-events feature.
8475 (captured_main): Initialize report_exec_events.
8476 * server.h (report_exec_events): Declare new global variable.
8477 * target.h (struct target_ops) <supports_exec_events>: New
8479 (target_supports_exec_events): New macro.
8480 * win32-low.c (win32_target_ops) <supports_exec_events>:
8481 Initialize new member.
8483 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
8485 * linux-low.c (linux_low_enable_btrace): Remove.
8486 (linux_target_ops): Replace linux_low_enable_btrace with
8487 linux_enable_btrace.
8489 2015-09-03 Yao Qi <yao.qi@linaro.org>
8491 * linux-aarch64-low.c (aarch64_insert_point): Call
8492 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8495 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8497 * linux-low.c (check_stopped_by_breakpoint): Use
8498 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8500 2015-08-27 Pedro Alves <palves@redhat.com>
8502 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8504 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8506 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8507 the XNEW-family equivalent.
8508 (compile_bytecodes): Likewise.
8509 * dll.c (loaded_dll): Likewise.
8510 * event-loop.c (append_callback_event): Likewise.
8511 (create_file_handler): Likewise.
8512 (create_file_event): Likewise.
8513 * hostio.c (handle_open): Likewise.
8514 * inferiors.c (add_thread): Likewise.
8515 (add_process): Likewise.
8516 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
8517 * linux-arm-low.c (arm_new_process): Likewise.
8518 (arm_new_thread): Likewise.
8519 * linux-low.c (add_to_pid_list): Likewise.
8520 (linux_add_process): Likewise.
8521 (handle_extended_wait): Likewise.
8522 (add_lwp): Likewise.
8523 (enqueue_one_deferred_signal): Likewise.
8524 (enqueue_pending_signal): Likewise.
8525 (linux_resume_one_lwp_throw): Likewise.
8526 (linux_resume_one_thread): Likewise.
8527 (linux_read_memory): Likewise.
8528 (linux_write_memory): Likewise.
8529 * linux-mips-low.c (mips_linux_new_process): Likewise.
8530 (mips_linux_new_thread): Likewise.
8531 (mips_add_watchpoint): Likewise.
8532 * linux-x86-low.c (initialize_low_arch): Likewise.
8533 * lynx-low.c (lynx_add_process): Likewise.
8534 * mem-break.c (set_raw_breakpoint_at): Likewise.
8535 (set_breakpoint): Likewise.
8536 (add_condition_to_breakpoint): Likewise.
8537 (add_commands_to_breakpoint): Likewise.
8538 (clone_agent_expr): Likewise.
8539 (clone_one_breakpoint): Likewise.
8540 * regcache.c (new_register_cache): Likewise.
8541 * remote-utils.c (look_up_one_symbol): Likewise.
8542 * server.c (queue_stop_reply): Likewise.
8543 (start_inferior): Likewise.
8544 (queue_stop_reply_callback): Likewise.
8545 (handle_target_event): Likewise.
8546 * spu-low.c (fetch_ppc_memory): Likewise.
8547 (store_ppc_memory): Likewise.
8548 * target.c (set_target_ops): Likewise.
8549 * thread-db.c (thread_db_load_search): Likewise.
8550 (try_thread_db_load_1): Likewise.
8551 * tracepoint.c (add_tracepoint): Likewise.
8552 (add_tracepoint_action): Likewise.
8553 (create_trace_state_variable): Likewise.
8554 (cmd_qtdpsrc): Likewise.
8555 (cmd_qtro): Likewise.
8556 (add_while_stepping_state): Likewise.
8557 * win32-low.c (child_add_thread): Likewise.
8558 (get_image_name): Likewise.
8560 2015-08-25 Yao Qi <yao.qi@linaro.org>
8562 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8564 2015-08-25 Yao Qi <yao.qi@linaro.org>
8566 * Makefile.in (aarch64-linux.o): New rule.
8567 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8569 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8570 (aarch64_init_debug_reg_state): Make it extern.
8571 (aarch64_linux_prepare_to_resume): Remove.
8573 2015-08-25 Yao Qi <yao.qi@linaro.org>
8575 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8576 lwp_arch_private_info and ptid_of_lwp.
8578 2015-08-25 Yao Qi <yao.qi@linaro.org>
8580 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8581 Find proc_info by find_process_pid. All callers updated.
8583 2015-08-25 Yao Qi <yao.qi@linaro.org>
8585 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8587 (debug_reg_change_callback): Remove.
8588 (aarch64_notify_debug_reg_change): Remove.
8590 2015-08-25 Yao Qi <yao.qi@linaro.org>
8592 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8593 Call current_lwp_ptid.
8595 2015-08-25 Yao Qi <yao.qi@linaro.org>
8597 * linux-aarch64-low.c (debug_reg_change_callback): Use
8600 2015-08-25 Yao Qi <yao.qi@linaro.org>
8602 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8604 2015-08-25 Yao Qi <yao.qi@linaro.org>
8606 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8608 2015-08-25 Yao Qi <yao.qi@linaro.org>
8610 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8613 2015-08-25 Yao Qi <yao.qi@linaro.org>
8615 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8617 (debug_reg_change_callback): Remove argument entry and add argument
8618 lwp. Remove local variable thread. Don't print thread id in the
8619 debugging output. Don't check whether pid of thread equals to pid.
8620 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8621 iterate_over_lwps instead find_inferior.
8623 2015-08-24 Pedro Alves <palves@redhat.com>
8625 * inferiors.c (get_first_process): New function.
8626 * inferiors.h (get_first_process): New declaration.
8627 * remote-utils.c (read_ptid): Default to the first process in the
8628 list, instead of to the current thread's process.
8630 2015-08-24 Pedro Alves <palves@redhat.com>
8632 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8633 * event-loop.c: Likewise.
8634 * remote-utils.c: Likewise.
8635 * tracepoint.c: Likewise.
8637 2015-08-24 Pedro Alves <palves@redhat.com>
8639 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8642 2015-08-21 Pedro Alves <palves@redhat.com>
8644 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8645 instead of literal 1.
8647 2015-08-21 Pedro Alves <palves@redhat.com>
8649 * tdesc.c (default_description): Explicitly zero-initialize.
8651 2015-08-21 Pedro Alves <palves@redhat.com>
8654 * inferiors.c (remove_thread): Discard any pending stop reply for
8656 * server.c (remove_all_on_match_pid): Rename to ...
8657 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8659 (discard_queued_stop_replies): Change parameter to a ptid. Now
8661 (handle_v_kill, kill_inferior_callback, captured_main)
8662 (process_serial_event): Adjust.
8663 * server.h (discard_queued_stop_replies): Declare.
8665 2015-08-21 Pedro Alves <palves@redhat.com>
8667 * linux-low.c (wait_for_sigstop): Always switch to no thread
8668 selected if the previously current thread dies.
8669 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8670 process instead of the current thread's.
8671 * remote-utils.c (input_interrupt): Don't check if there's no
8673 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8674 current thread to the general thread fails, error out.
8675 (handle_qxfer_auxv, handle_qxfer_libraries)
8676 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8677 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8678 (handle_query): Check if there's a thread selected instead of
8679 checking whether there's any thread in the thread list.
8680 (handle_qxfer_threads, handle_qxfer_btrace)
8681 (handle_qxfer_btrace_conf): Don't error out early if there's no
8682 thread in the thread list.
8683 (handle_v_cont, myresume): Don't set the current thread to the
8685 (process_serial_event) <Hg handling>: Also set thread_id if the
8686 previous general thread is still alive.
8687 (process_serial_event) <g/G handling>: If setting the current
8688 thread to the general thread fails, error out.
8689 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8690 thread's lwp instead of the current thread's.
8691 * target.c (set_desired_thread): If the desired thread was not
8692 found, leave the current thread pointing to NULL. Return an int
8693 (boolean) indicating success.
8694 * target.h (set_desired_thread): Change return type to int.
8696 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8698 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8699 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8701 (ps_get_thread_area): New function.
8703 2015-08-19 Gary Benson <gbenson@redhat.com>
8705 * hostio.c (handle_pread): Do not attempt to read more data
8706 than hostio_reply_with_data can fit in a packet.
8708 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8710 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8712 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8714 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8716 2015-08-06 Pedro Alves <palves@redhat.com>
8718 * tracepoint.c (expr_eval_result): Now an int.
8720 2015-08-06 Pedro Alves <palves@redhat.com>
8722 * gdbthread.h (struct regcache): Forward declare.
8723 (struct thread_info) <regcache_data>: Now a struct regcache
8725 * inferiors.c (inferior_regcache_data)
8726 (set_inferior_regcache_data): Now work with struct regcache
8728 * inferiors.h (struct regcache): Forward declare.
8729 (inferior_regcache_data, set_inferior_regcache_data): Now work
8730 with struct regcache pointers.
8731 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8732 (free_register_cache_thread): Remove struct regcache pointer
8735 2015-08-06 Pedro Alves <palves@redhat.com>
8737 * server.c (captured_main): On error, print the exception message
8738 to stderr, and if run_once is set, throw a quit.
8740 2015-08-06 Pedro Alves <palves@redhat.com>
8742 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8745 2015-08-06 Pedro Alves <palves@redhat.com>
8747 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8748 reading beyond the passed in buffer length.
8750 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8752 * tracepoint.c (symbol_list) <required>: Remove.
8754 2015-08-06 Pedro Alves <palves@redhat.com>
8756 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8757 count if stopping and suspending threads.
8758 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8759 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8760 (linux_detach): Complete an ongoing step-over.
8761 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8763 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8764 (linux_wait_1): If passing a signal to the inferior after
8765 finishing a step-over, unsuspend and re-resume all lwps. If we
8766 see a single-step event but the thread should be continuing, don't
8767 pass the trap to gdb.
8768 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8769 internal_error instead of gdb_assert.
8770 (enqueue_pending_signal): New function.
8771 (check_ptrace_stopped_lwp_gone): Add debug output.
8772 (start_step_over): Use internal_error instead of gdb_assert.
8773 (complete_ongoing_step_over): New function.
8774 (linux_resume_one_thread): Don't resume a suspended thread.
8775 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8778 2015-08-06 Pedro Alves <palves@redhat.com>
8780 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8781 (linux_thread_alive): Use lwp_is_marked_dead.
8782 (extended_event_reported): Delete.
8783 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8784 instead of extended_event_reported.
8785 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8787 (lwp_is_marked_dead): New function.
8788 (lwp_running): Use lwp_is_marked_dead.
8789 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8792 2015-08-06 Pedro Alves <palves@redhat.com>
8794 * linux-low.c (linux_wait_1): Move fork event output out of the
8795 !report_to_gdb check. Pass event_child->waitstatus to
8796 target_waitstatus_to_string instead of ourstatus.
8798 2015-08-04 Yao Qi <yao.qi@linaro.org>
8800 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8801 if current_thread is 32 bit.
8803 2015-08-04 Yao Qi <yao.qi@linaro.org>
8805 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8806 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8807 * server.c (extended_protocol): Remove "static".
8808 * server.h (extended_protocol): Declare it.
8810 2015-08-04 Yao Qi <yao.qi@linaro.org>
8812 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8813 both aarch64 and aarch32.
8814 (aarch64_set_pc): Likewise.
8816 2015-08-04 Yao Qi <yao.qi@linaro.org>
8818 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8819 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8820 arm-with-neon.xml to srv_xmlfiles.
8821 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8822 (is_64bit_tdesc): New function.
8823 (aarch64_linux_read_description): New function.
8824 (aarch64_arch_setup): Call aarch64_linux_read_description.
8825 (regs_info): Rename to regs_info_aarch64.
8826 (aarch64_regs_info): Return right regs_info.
8827 (initialize_low_arch): Call initialize_low_arch_aarch32.
8829 2015-08-04 Yao Qi <yao.qi@linaro.org>
8831 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8832 * linux-aarch32-low.c: New file.
8833 * linux-aarch32-low.h: New file.
8834 * linux-arm-low.c (arm_fill_gregset): Move it to
8835 linux-aarch32-low.c.
8836 (arm_store_gregset): Likewise.
8837 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8838 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8839 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8840 (regs_info): Rename to regs_info_arm.
8841 (arm_regs_info): Return regs_info_aarch32 if
8842 have_ptrace_getregset is 1 and target description is
8843 arm_with_neon or arm_with_vfpv3.
8844 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8845 Call initialize_low_arch_aarch32 instead.
8847 2015-08-04 Yao Qi <yao.qi@linaro.org>
8849 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8850 * linux-low.c: ... here.
8851 * linux-low.h (have_ptrace_getregset): Declare it.
8853 2015-08-04 Pedro Alves <palves@redhat.com>
8855 * thread-db.c (struct thread_db): Use new typedefs.
8856 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8858 (disable_thread_event_reporting): Cast result of dlsym to
8859 destination function pointer type.
8860 (thread_db_mourn): Use td_ta_delete_ftype.
8862 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8864 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8866 (CDX_BREAKPOINT): Define for R2.
8867 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8868 (the_low_target): Add comments.
8870 2015-07-30 Yao Qi <yao.qi@linaro.org>
8872 * linux-arm-low.c (arm_hwcap): Remove it.
8873 (arm_read_description): New local variable arm_hwcap. Don't
8874 set arm_hwcap to zero.
8876 2015-07-30 Yao Qi <yao.qi@linaro.org>
8878 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8879 Use regcache->tdesc instead.
8880 (arm_store_wmmxregset): Likewise.
8881 (arm_fill_vfpregset): Likewise.
8882 (arm_store_vfpregset): Likewise.
8884 2015-07-30 Yao Qi <yao.qi@linaro.org>
8886 * linux-arm-low.c: Include arch/arm.h.
8887 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8888 (arm_store_gregset): Likewise.
8890 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8892 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8893 ptrace's 4th parameter.
8895 2015-07-27 Yao Qi <yao.qi@linaro.org>
8897 * configure.srv (case aarch64*-*-linux*): Don't set
8900 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8902 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8904 * linux-arm-low.c: Likewise.
8905 * linux-cris-low.c: Likewise.
8906 * linux-crisv32-low.c: Likewise.
8907 * linux-low.c: Likewise.
8908 * linux-m68k-low.c: Likewise.
8909 * linux-mips-low.c: Likewise.
8910 * linux-nios2-low.c: Likewise.
8911 * linux-s390-low.c: Likewise.
8912 * linux-sparc-low.c: Likewise.
8913 * linux-tic6x-low.c: Likewise.
8914 * linux-tile-low.c: Likewise.
8915 * linux-x86-low.c: Likewise.
8917 2015-07-24 Pedro Alves <palves@redhat.com>
8919 * config.in: Regenerate.
8920 * configure: Regenerate.
8922 2015-07-24 Pedro Alves <palves@redhat.com>
8924 * acinclude.m4: Include ../ptrace.m4.
8925 * configure.ac: Call GDB_AC_PTRACE.
8926 * config.in, configure: Regenerate.
8928 2015-07-24 Yao Qi <yao.qi@linaro.org>
8930 * linux-low.c (linux_create_inferior): Remove setting to
8931 proc->priv->new_inferior.
8932 (linux_attach): Likewise.
8933 (linux_low_filter_event): Likewise.
8934 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8936 2015-07-24 Yao Qi <yao.qi@linaro.org>
8938 * linux-low.c (linux_arch_setup): New function.
8939 (linux_low_filter_event): If proc->tdesc is NULL and
8940 proc->attached is true, call the_low_target.arch_setup.
8941 Otherwise, keep status pending, and return.
8942 (linux_resume_one_lwp_throw): Don't call get_pc if
8943 thread->while_stepping isn't NULL. Don't call
8944 get_thread_regcache if proc->tdesc is NULL.
8945 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8946 (linux_target_ops): Install arch_setup.
8947 * server.c (start_inferior): Call the_target->arch_setup.
8948 * target.h (struct target_ops) <arch_setup>: New field.
8949 (target_arch_setup): New marco.
8950 * lynx-low.c (lynx_target_ops): Update.
8951 * nto-low.c (nto_target_ops): Update.
8952 * spu-low.c (spu_target_ops): Update.
8953 * win32-low.c (win32_target_ops): Update.
8955 2015-07-24 Yao Qi <yao.qi@linaro.org>
8957 * linux-low.c (linux_add_process): Don't set
8958 proc->priv->new_inferior.
8959 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8960 (linux_attach): Likewise.
8962 2015-07-24 Yao Qi <yao.qi@linaro.org>
8964 * server.c (start_inferior): Code refactor.
8966 2015-07-24 Yao Qi <yao.qi@linaro.org>
8968 * server.c (process_serial_event): Set general_thread.
8970 2015-07-21 Yao Qi <yao.qi@linaro.org>
8972 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8973 aarch64_linux_get_debug_reg_capacity.
8975 2015-07-17 Yao Qi <yao.qi@linaro.org>
8977 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8978 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8979 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8980 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8981 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8982 (AARCH64_HWP_ALIGNMENT): Likewise.
8983 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8984 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8985 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8986 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8987 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8988 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8989 (struct aarch64_debug_reg_state): Likewise.
8990 (struct arch_lwp_info): Likewise.
8991 (aarch64_align_watchpoint): Likewise.
8992 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8993 (aarch64_watchpoint_length): Likewise.
8994 (aarch64_point_encode_ctrl_reg): Likewise
8995 (aarch64_point_is_aligned): Likewise.
8996 (aarch64_align_watchpoint): Likewise.
8997 (aarch64_linux_set_debug_regs):
8998 (aarch64_dr_state_insert_one_point): Likewise.
8999 (aarch64_dr_state_remove_one_point): Likewise.
9000 (aarch64_handle_breakpoint): Likewise.
9001 (aarch64_handle_aligned_watchpoint): Likewise.
9002 (aarch64_handle_unaligned_watchpoint): Likewise.
9003 (aarch64_handle_watchpoint): Likewise.
9005 2015-07-17 Yao Qi <yao.qi@linaro.org>
9007 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9008 and don't aarch64_get_debug_reg_state. All callers update.
9009 (aarch64_handle_aligned_watchpoint): Likewise.
9010 (aarch64_handle_unaligned_watchpoint): Likewise.
9011 (aarch64_handle_watchpoint): Likewise.
9012 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9013 (aarch64_remove_point): Likewise.
9015 2015-07-17 Yao Qi <yao.qi@linaro.org>
9017 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9019 (aarch64_handle_unaligned_watchpoint): Likewise.
9021 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9023 Revert the previous 3 commits:
9024 Move gdb_regex* to common/
9025 Move linux_find_memory_regions_full & co.
9026 gdbserver build-id attribute generator
9028 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9029 Jan Kratochvil <jan.kratochvil@redhat.com>
9031 gdbserver build-id attribute generator.
9032 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9033 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9034 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9036 (get_dynamic): Use find_pdhr to traverse program headers.
9037 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9038 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9039 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9040 (get_hex_build_id): New.
9041 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9042 to reply XML document.
9044 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9045 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 * target.c: Include target/target-utils.h and fcntl.h.
9048 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9049 (target_fileio_read_stralloc): New functions.
9051 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9053 * Makefile.in (OBS): Add gdb_regex.o.
9055 * config.in: Rebuilt.
9056 * configure: Rebuilt.
9058 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9059 Jan Kratochvil <jan.kratochvil@redhat.com>
9061 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9062 * Makefile.in (OBS): Add target-utils.o.
9063 (linux-maps.o, target-utils.o): New.
9064 * configure.srv (srv_linux_obj): Add linux-maps.o.
9066 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9068 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9070 (the_low_target): Install it.
9072 2015-07-14 Pedro Alves <palves@redhat.com>
9074 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9075 Instead, ignore ECHILD, and throw an error for other errnos.
9077 2015-07-10 Pedro Alves <palves@redhat.com>
9079 * event-loop.c (struct callback_event) <data>: Change type to
9080 gdb_client_data instance instead of gdb_client_data pointer.
9081 (append_callback_event): Adjust.
9083 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9085 * linux-aarch64-low.c: Add comments for each linux_target_ops
9086 method. Remove comments already covered in target_ops and
9087 linux_target_ops definitions.
9088 (the_low_target): Add comments for each unimplemented method.
9090 2015-07-09 Yao Qi <yao.qi@linaro.org>
9092 * linux-aarch64-low.c (aarch64_regmap): Remove.
9093 (aarch64_usrregs_info): Remove.
9094 (regs_info): Set field usrregs to NULL.
9096 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9098 * linux-low.c: Include "rsp-low.h"
9099 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9100 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9101 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9102 (handle_btrace_enable_pt): New.
9103 (handle_btrace_general_set): Support "pt".
9104 (handle_btrace_conf_general_set): Support "pt:size".
9106 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9108 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9111 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9113 * linux-aarch64-low.c: Remove comment about endianness.
9114 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9115 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9118 2015-06-24 Gary Benson <gbenson@redhat.com>
9120 * linux-i386-ipa.c (stdint.h): Do not include.
9121 * lynx-i386-low.c (stdint.h): Likewise.
9122 * lynx-ppc-low.c (stdint.h): Likewise.
9123 * mem-break.c (stdint.h): Likewise.
9124 * thread-db.c (stdint.h): Likewise.
9125 * tracepoint.c (stdint.h): Likewise.
9126 * win32-low.c (stdint.h): Likewise.
9128 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9130 * server.c (write_qxfer_response): Update call to
9131 remote_escape_output.
9133 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9134 Jan Kratochvil <jan.kratochvil@redhat.com>
9136 Merge multiple hex conversions.
9137 * gdbreplay.c (tohex): Rename to 'fromhex'.
9138 (logchar): Use fromhex.
9140 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9142 * server.c (handle_qxfer_libraries): Set `version' attribute for
9145 2015-06-10 Gary Benson <gbenson@redhat.com>
9147 * target.h (struct target_ops) <multifs_open>: New field.
9148 <multifs_unlink>: Likewise.
9149 <multifs_readlink>: Likewise.
9150 * linux-low.c (nat/linux-namespaces.h): New include.
9151 (linux_target_ops): Initialize the_target->multifs_open,
9152 the_target->multifs_unlink and the_target->multifs_readlink.
9153 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9154 * hostio.c (hostio_fs_pid): New static variable.
9155 (hostio_handle_new_gdb_connection): New function.
9156 (handle_setfs): Likewise.
9157 (handle_open): Use the_target->multifs_open as appropriate.
9158 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9159 (handle_readlink): Use the_target->multifs_readlink as
9161 (handle_vFile): Handle vFile:setfs packets.
9162 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9163 after target_handle_new_gdb_connection.
9165 2015-06-10 Gary Benson <gbenson@redhat.com>
9167 * configure.ac (AC_CHECK_FUNCS): Add setns.
9168 * config.in: Regenerate.
9169 * configure: Likewise.
9170 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9171 (linux-namespaces.o): New rule.
9172 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9174 2015-06-09 Gary Benson <gbenson@redhat.com>
9176 * hostio.c (handle_open): Process mode argument with
9177 fileio_to_host_mode.
9179 2015-06-01 Yao Qi <yao.qi@linaro.org>
9181 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9182 * linux-x86-low.c: Likewise.
9184 2015-05-28 Don Breazeal <donb@codesourcery.com>
9186 * linux-low.c (handle_extended_wait): Initialize
9187 thread_info.last_resume_kind for new fork children.
9189 2015-05-15 Pedro Alves <palves@redhat.com>
9191 * target.h (target_handle_new_gdb_connection): Rewrite using if
9192 wrapped in do/while.
9194 2015-05-14 Joel Brobecker <brobecker@adacore.com>
9196 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9197 * configure, config.in: Regenerate.
9198 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9201 2015-05-12 Don Breazeal <donb@codesourcery.com>
9203 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9204 PTRACE_EVENT_VFORK_DONE.
9205 (linux_low_ptrace_options, extended_event_reported): Add vfork
9207 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9208 and "vforkdone" for RSP 'T' Stop Reply Packet.
9209 * server.h (report_vfork_events): Declare
9212 2015-05-12 Don Breazeal <donb@codesourcery.com>
9214 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9215 (the_low_target) <new_fork>: Initialize new member.
9216 * linux-arm-low.c (arm_new_fork): New function.
9217 (the_low_target) <new_fork>: Initialize new member.
9218 * linux-low.c (handle_extended_wait): Call new target function
9220 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9221 * linux-mips-low.c (mips_add_watchpoint): New function
9222 extracted from mips_insert_point.
9223 (the_low_target) <new_fork>: Initialize new member.
9224 (mips_linux_new_fork): New function.
9225 (mips_insert_point): Call mips_add_watchpoint.
9226 * linux-x86-low.c (x86_linux_new_fork): New function.
9227 (the_low_target) <new_fork>: Initialize new member.
9229 2015-05-12 Don Breazeal <donb@codesourcery.com>
9231 * linux-low.c (handle_extended_wait): Implement return value,
9232 rename argument 'event_child' to 'event_lwp', handle
9233 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9234 (linux_low_ptrace_options): New function.
9235 (linux_low_filter_event): Call linux_low_ptrace_options,
9236 use different argument fo linux_enable_event_reporting,
9237 use return value from handle_extended_wait.
9238 (extended_event_reported): New function.
9239 (linux_wait_1): Call extended_event_reported and set
9240 status to report fork events.
9241 (linux_write_memory): Add pid to debug message.
9242 (reset_lwp_ptrace_options_callback): New function.
9243 (linux_handle_new_gdb_connection): New function.
9244 (linux_target_ops): Initialize new structure member.
9245 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9246 * lynx-low.c: Initialize new structure member.
9247 * remote-utils.c (prepare_resume_reply): Implement stop reason
9248 "fork" for "T" stop message.
9249 * server.c (handle_query): Call handle_new_gdb_connection.
9250 * server.h (report_fork_events): Declare global flag.
9251 * target.h (struct target_ops) <handle_new_gdb_connection>:
9253 (target_handle_new_gdb_connection): New macro.
9254 * win32-low.c: Initialize new structure member.
9256 2015-05-12 Don Breazeal <donb@codesourcery.com>
9258 * mem-break.c (APPEND_TO_LIST): Define macro.
9259 (clone_agent_expr): New function.
9260 (clone_one_breakpoint): New function.
9261 (clone_all_breakpoints): New function.
9262 * mem-break.h: Declare new functions.
9264 2015-05-12 Don Breazeal <donb@codesourcery.com>
9266 * linux-low.c (linux_supports_fork_events): New function.
9267 (linux_supports_vfork_events): New function.
9268 (linux_target_ops): Initialize new structure members.
9269 (initialize_low): Call linux_check_ptrace_features.
9270 * lynx-low.c (lynx_target_ops): Initialize new structure
9272 * server.c (report_fork_events, report_vfork_events):
9274 (handle_query): Add new features to qSupported packet and
9276 (captured_main): Initialize new global variables.
9277 * target.h (struct target_ops) <supports_fork_events>:
9279 <supports_vfork_events>: New member.
9280 (target_supports_fork_events): New macro.
9281 (target_supports_vfork_events): New macro.
9282 * win32-low.c (win32_target_ops): Initialize new structure
9285 2015-05-12 Gary Benson <gbenson@redhat.com>
9287 * server.c (handle_qxfer_exec_file): Use current process
9290 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9292 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9293 Remove HAVE_PTRACE_GETREGS conditionals.
9294 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9295 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9297 2015-05-08 Yao Qi <yao.qi@linaro.org>
9299 * linux-low.c (linux_supports_conditional_breakpoints): New
9301 (linux_target_ops): Install new target method.
9302 * lynx-low.c (lynx_target_ops): Install NULL hook for
9303 supports_conditional_breakpoints.
9304 * nto-low.c (nto_target_ops): Likewise.
9305 * spu-low.c (spu_target_ops): Likewise.
9306 * win32-low.c (win32_target_ops): Likewise.
9307 * server.c (handle_query): Check
9308 target_supports_conditional_breakpoints.
9309 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9311 (target_supports_conditional_breakpoints): New macro.
9313 2015-05-06 Pedro Alves <palves@redhat.com>
9316 * server.c (start_inferior): If the process exits, mourn it.
9318 2015-04-21 Gary Benson <gbenson@redhat.com>
9320 * hostio.c (fileio_open_flags_to_host): Factored out to
9321 fileio_to_host_openflags in common/fileio.c. Single use
9324 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9326 * linux-xtensa-low.c (xtensa_fill_gregset)
9327 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9330 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9332 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9333 (regs_info): Replace usrregs pointer with NULL.
9335 2015-04-17 Gary Benson <gbenson@redhat.com>
9337 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9338 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9339 * server.c (handle_qxfer_exec_file): New function.
9340 (qxfer_packets): Add exec-file entry.
9341 (handle_query): Report qXfer:exec-file:read as supported packet.
9343 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9345 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9347 2015-04-09 Gary Benson <gbenson@redhat.com>
9349 * hostio-errno.c (errno_to_fileio_error): Remove function.
9350 Update caller to use remote_fileio_to_fio_error.
9352 2015-04-09 Yao Qi <yao.qi@linaro.org>
9354 * linux-low.c (linux_insert_point): Call
9355 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
9356 (linux_remove_point): Call remove_memory_breakpoint if type is
9358 * linux-x86-low.c (x86_insert_point): Don't call
9359 insert_memory_breakpoint.
9360 (x86_remove_point): Don't call remove_memory_breakpoint.
9362 2015-04-01 Pedro Alves <palves@redhat.com>
9363 Cleber Rosa <crosa@redhat.com>
9365 * server.c (gdbserver_usage): Reorganize and extend the usage
9368 2015-03-24 Pedro Alves <palves@redhat.com>
9370 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
9371 output. Also dump TRAP_TRACE.
9372 (linux_low_filter_event): In debug output, distinguish a
9373 resume_stop SIGSTOP from a delayed SIGSTOP.
9375 2015-03-24 Gary Benson <gbenson@redhat.com>
9377 * linux-x86-low.c (x86_linux_new_thread): Moved to
9379 (x86_linux_prepare_to_resume): Likewise.
9381 2015-03-24 Gary Benson <gbenson@redhat.com>
9383 * Makefile.in (x86-linux-dregs.o): New rule.
9384 * configure.srv: Add x86-linux-dregs.o to relevant targets.
9385 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
9386 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9387 (x86_linux_dr_get): Likewise.
9388 (x86_linux_dr_set): Likewise.
9389 (update_debug_registers_callback): Likewise.
9390 (x86_linux_dr_set_addr): Likewise.
9391 (x86_linux_dr_get_addr): Likewise.
9392 (x86_linux_dr_set_control): Likewise.
9393 (x86_linux_dr_get_control): Likewise.
9394 (x86_linux_dr_get_status): Likewise.
9395 (x86_linux_update_debug_registers): Likewise.
9397 2015-03-24 Gary Benson <gbenson@redhat.com>
9399 * linux-x86-low.c (x86_linux_update_debug_registers):
9400 New function, factored out from...
9401 (x86_linux_prepare_to_resume): ...this.
9403 2015-03-24 Gary Benson <gbenson@redhat.com>
9405 * linux-x86-low.c (x86_linux_dr_get): Update comments.
9406 (x86_linux_dr_set): Likewise.
9407 (update_debug_registers_callback): Likewise.
9408 (x86_linux_dr_set_addr): Likewise.
9409 (x86_linux_dr_get_addr): Likewise.
9410 (x86_linux_dr_set_control): Likewise.
9411 (x86_linux_dr_get_control): Likewise.
9412 (x86_linux_dr_get_status): Likewise.
9413 (x86_linux_prepare_to_resume): Likewise.
9415 2015-03-24 Gary Benson <gbenson@redhat.com>
9417 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
9418 Use perror_with_name. Pass string through gettext.
9419 (x86_linux_dr_set): Likewise.
9421 2015-03-24 Gary Benson <gbenson@redhat.com>
9423 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
9424 (x86_linux_dr_set_addr): ...this.
9425 (x86_dr_low_get_addr): Rename to...
9426 (x86_linux_dr_get_addr): ...this.
9427 (x86_dr_low_set_control): Rename to...
9428 (x86_linux_dr_set_control): ...this.
9429 (x86_dr_low_get_control): Rename to...
9430 (x86_linux_dr_get_control): ...this.
9431 (x86_dr_low_get_status): Rename to...
9432 (x86_linux_dr_get_status): ...this.
9433 (x86_dr_low): Update with new function names.
9435 2015-03-24 Gary Benson <gbenson@redhat.com>
9437 * Makefile.in (x86-linux.o): New rule.
9438 * configure.srv: Add x86-linux.o to relevant targets.
9439 * linux-low.c (lwp_set_arch_private_info): New function.
9440 (lwp_arch_private_info): Likewise.
9441 * linux-x86-low.c: Include nat/x86-linux.h.
9442 (arch_lwp_info): Removed structure.
9443 (update_debug_registers_callback):
9444 Use lwp_set_debug_registers_changed.
9445 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9446 and lwp_set_debug_registers_changed.
9447 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9449 2015-03-24 Gary Benson <gbenson@redhat.com>
9451 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
9452 * linux-arm-low.c (arm_new_thread): Likewise.
9453 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
9454 * linux-mips-low.c (mips_linux_new_thread): Likewise.
9455 * linux-x86-low.c (x86_linux_new_thread): Likewise.
9456 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
9458 2015-03-24 Gary Benson <gbenson@redhat.com>
9460 * linux-low.c (ptid_of_lwp): New function.
9461 (lwp_is_stopped): Likewise.
9462 (lwp_stop_reason): Likewise.
9463 * linux-x86-low.c (update_debug_registers_callback):
9465 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9468 2015-03-24 Gary Benson <gbenson@redhat.com>
9470 * linux-low.h (linux_stop_lwp): Remove declaration.
9472 2015-03-24 Gary Benson <gbenson@redhat.com>
9474 * linux-low.h: Include nat/linux-nat.h.
9475 * linux-low.c (iterate_over_lwps_args): New structure.
9476 (iterate_over_lwps_filter): New function.
9477 (iterate_over_lwps): Likewise.
9478 * linux-x86-low.c (update_debug_registers_callback):
9479 Update signature to what iterate_over_lwps expects.
9480 Remove PID check that iterate_over_lwps now performs.
9481 (x86_dr_low_set_addr): Use iterate_over_lwps.
9482 (x86_dr_low_set_control): Likewise.
9484 2015-03-24 Gary Benson <gbenson@redhat.com>
9486 * linux-x86-low.c (x86_debug_reg_state): New function.
9487 (x86_linux_prepare_to_resume): Use the above.
9489 2015-03-24 Gary Benson <gbenson@redhat.com>
9491 * linux-low.c (current_lwp_ptid): New function.
9492 * linux-x86-low.c: Include nat/linux-nat.h.
9493 (x86_dr_low_get_addr): Use current_lwp_ptid.
9494 (x86_dr_low_get_control): Likewise.
9495 (x86_dr_low_get_status): Likewise.
9497 2015-03-20 Pedro Alves <palves@redhat.com>
9499 * tracepoint.c (cmd_qtstatus): Make "str" const.
9501 2015-03-20 Pedro Alves <palves@redhat.com>
9503 * server.c (handle_general_set): Make "req_str" const.
9505 2015-03-19 Pedro Alves <palves@redhat.com>
9507 * linux-low.c (linux_resume_one_lwp): Rename to ...
9508 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9509 instead call perror_with_name.
9510 (check_ptrace_stopped_lwp_gone): New function.
9511 (linux_resume_one_lwp): Reimplement as wrapper around
9512 linux_resume_one_lwp_throw that swallows errors if the LWP is
9515 2015-03-19 Pedro Alves <palves@redhat.com>
9517 * linux-low.c (count_events_callback, select_event_lwp_callback):
9518 No longer check whether the thread has resume_stop as last resume
9521 2015-03-19 Pedro Alves <palves@redhat.com>
9523 * linux-low.c (count_events_callback, select_event_lwp_callback):
9524 Use the lwp's status_pending_p field, not the thread's.
9526 2015-03-19 Pedro Alves <palves@redhat.com>
9528 * linux-low.c (select_event_lwp_callback): Update comments to
9529 no longer mention SIGTRAP.
9531 2015-03-18 Gary Benson <gbenson@redhat.com>
9533 * server.c (handle_query): Do not report vFile:fstat as supported.
9535 2015-03-11 Gary Benson <gbenson@redhat.com>
9537 * hostio.c (sys/types.h): New include.
9538 (sys/stat.h): Likewise.
9539 (common-remote-fileio.h): Likewise.
9540 (handle_fstat): New function.
9541 (handle_vFile): Handle vFile:fstat packets.
9543 2015-03-11 Gary Benson <gbenson@redhat.com>
9545 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9546 struct stat.st_blocks and struct stat.st_blksize.
9547 * configure: Regenerate.
9548 * config.in: Likewise.
9549 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9550 (OBS): Add common-remote-fileio.o.
9551 (common-remote-fileio.o): New rule.
9553 2015-03-09 Pedro Alves <palves@redhat.com>
9555 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9556 'struct sockaddr' pointer in 'accept' call.
9558 2015-03-09 Pedro Alves <palves@redhat.com>
9561 2015-03-07 Pedro Alves <palves@redhat.com>
9562 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9563 or <winsock2.h> here. Instead include "gdb_socket.h".
9564 (remote_open): Use union gdb_sockaddr_u.
9565 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9566 or <winsock2.h> here. Instead include "gdb_socket.h".
9567 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9568 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9570 (init_named_socket, gdb_agent_helper_thread): Use union
9573 2015-03-07 Pedro Alves <palves@redhat.com>
9575 * configure.ac (build_warnings): Move
9576 -Wdeclaration-after-statement to the C-specific set.
9577 * configure: Regenerate.
9579 2015-03-07 Pedro Alves <palves@redhat.com>
9581 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9582 or <winsock2.h> here. Instead include "gdb_socket.h".
9583 (remote_open): Use union gdb_sockaddr_u.
9584 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9585 or <winsock2.h> here. Instead include "gdb_socket.h".
9586 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9587 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9589 (init_named_socket, gdb_agent_helper_thread): Use union
9592 2015-03-07 Pedro Alves <palves@redhat.com>
9594 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9597 2015-03-06 Yao Qi <yao.qi@linaro.org>
9599 * linux-aarch64-low.c (aarch64_insert_point): Use
9600 show_debug_regs as a boolean.
9601 (aarch64_remove_point): Likewise.
9603 2015-03-05 Pedro Alves <palves@redhat.com>
9605 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9606 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9607 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9608 * nto-low.c (nto_target_ops): Likewise.
9609 * spu-low.c (spu_target_ops): Likewise.
9610 * win32-low.c (win32_target_ops): Likewise.
9612 2015-03-04 Pedro Alves <palves@redhat.com>
9614 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9615 Decide whether a breakpoint triggered based on the SIGTRAP's
9617 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9618 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9619 (linux_low_filter_event): Check for breakpoints before checking
9621 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9623 (linux_stopped_by_sw_breakpoint)
9624 (linux_supports_stopped_by_sw_breakpoint)
9625 (linux_stopped_by_hw_breakpoint)
9626 (linux_supports_stopped_by_hw_breakpoint): New functions.
9627 (linux_target_ops): Install new target methods.
9629 2015-03-04 Pedro Alves <palves@redhat.com>
9631 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9632 * server.c (swbreak_feature, hwbreak_feature): New globals.
9633 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9634 (captured_main): Clear swbreak_feature and hwbreak_feature.
9635 * server.h (swbreak_feature, hwbreak_feature): Declare.
9636 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9637 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9638 supports_stopped_by_hw_breakpoint>: New fields.
9639 (target_supports_stopped_by_sw_breakpoint)
9640 (target_stopped_by_sw_breakpoint)
9641 (target_supports_stopped_by_hw_breakpoint)
9642 (target_stopped_by_hw_breakpoint): Declare.
9644 2015-03-04 Pedro Alves <palves@redhat.com>
9646 enum lwp_stop_reason -> enum target_stop_reason
9647 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9648 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9649 (linux_wait_1, stuck_in_jump_pad_callback)
9650 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9651 (linux_stopped_by_watchpoint):
9652 * linux-low.h (enum lwp_stop_reason): Delete.
9653 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9654 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9656 2015-03-04 Yao Qi <yao.qi@linaro.org>
9658 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9660 2015-03-03 Gary Benson <gbenson@redhat.com>
9662 * hostio.c (handle_vFile): Fix prefix lengths.
9664 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9666 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9669 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9671 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9672 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9673 (clean): Add "rm -f" for above C files.
9674 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9675 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9676 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9677 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9678 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9679 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9680 (init_registers_s390x_vx_linux64)
9681 (init_registers_s390x_tevx_linux64)
9682 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9683 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9685 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9686 (s390_store_vxrs_high): New functions.
9687 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9689 (s390_arch_setup): Add logic for selecting one of the new target
9690 descriptions. Activate the new vector regsets if applicable.
9691 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9692 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9693 and init_registers_s390x_tevx_linux64.
9695 2015-03-01 Pedro Alves <palves@redhat.com>
9697 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9700 2015-02-27 Pedro Alves <palves@redhat.com>
9702 * linux-x86-low.c (u_debugreg_offset): New function.
9703 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9705 2015-02-27 Pedro Alves <palves@redhat.com>
9707 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9708 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9709 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9710 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9711 (ps_lsetfpregs, ps_getpid)
9712 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9713 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9714 (ps_lsetxregs, ps_plog): Declare.
9716 2015-02-27 Pedro Alves <palves@redhat.com>
9718 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9719 IP_AGENT_EXPORT_FUNC.
9720 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9721 IP_AGENT_EXPORT_FUNC.
9722 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9723 (IP_AGENT_EXPORT): Delete.
9724 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9725 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9726 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9727 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9728 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9729 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9730 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9731 (traceframe_read_count, traceframe_write_count)
9732 (traceframes_created, trace_state_variables, get_raw_reg)
9733 (get_trace_state_variable_value, set_trace_state_variable_value)
9734 (ust_loaded, helper_thread_id, cmd_buf): Use
9735 IPA_SYM_EXPORTED_NAME.
9736 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9737 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9738 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9739 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9740 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9741 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9742 EXTERN_C_PUSH/EXTERN_C_POP.
9743 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9744 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9745 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9746 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9747 (traceframe_write_count, traceframe_read_count)
9748 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9749 (about_to_request_buffer_space, get_trace_state_variable_value)
9750 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9751 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9752 EXTERN_C_PUSH/EXTERN_C_POP.
9753 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9754 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9755 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9756 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9757 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9758 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9759 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9760 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9762 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9763 (IP_AGENT_EXPORT_VAR_DECL): Define.
9765 (gdb_agent_get_raw_reg): Declare.
9767 2015-02-27 Tom Tromey <tromey@redhat.com>
9768 Pedro Alves <palves@redhat.com>
9770 Rename symbols whose names are reserved C++ keywords throughout.
9772 2015-02-27 Pedro Alves <palves@redhat.com>
9774 * Makefile.in (COMPILER): New, get it from autoconf.
9775 (CXX): Get from autoconf instead.
9776 (COMPILE.pre): Use COMPILER.
9777 (CC-LD): Rename to ...
9778 (CC_LD): ... this. Use COMPILER.
9779 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9780 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9781 * acinclude.m4: Include build-with-cxx.m4.
9782 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9783 Disable -Werror by default if building in C++ mode.
9784 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9785 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9786 the C++ compiler. Save/restore CXXFLAGS too.
9787 * configure: Regenerate.
9789 2015-02-27 Pedro Alves <palves@redhat.com>
9791 * acinclude.m4: Include libiberty.m4.
9792 * configure.ac: Call libiberty_INIT.
9793 * config.in, configure: Regenerate.
9795 2015-02-26 Pedro Alves <palves@redhat.com>
9797 * linux-low.c (linux_wait_1): When incrementing the PC past a
9798 program breakpoint always use the_low_target.breakpoint_len as
9799 increment, rather than the maximum between that and
9800 the_low_target.decr_pc_after_break.
9802 2015-02-23 Pedro Alves <palves@redhat.com>
9804 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9805 thread was doing a step-over; always adjust the PC if
9806 we stepped over a permanent breakpoint.
9807 (linux_wait_1): If we stepped over breakpoint that was on top of a
9808 permanent breakpoint, manually advance the PC past it.
9810 2015-02-23 Pedro Alves <palves@redhat.com>
9812 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9814 (x86_fill_gregset, x86_store_gregset): Use it when handling
9817 2015-02-20 Pedro Alves <palves@redhat.com>
9819 * thread-db.c: Include "nat/linux-procfs.h".
9820 (thread_db_init): Skip listing new threads if the kernel supports
9821 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9823 2015-02-20 Pedro Alves <palves@redhat.com>
9825 * linux-low.c (status_pending_p_callback): Use ptid_match.
9827 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9829 PR breakpoints/16812
9830 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9831 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9832 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9834 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9836 PR breakpoints/15956
9837 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9839 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9841 * linux-low.c (linux_low_btrace_conf): Print size.
9842 * server.c (handle_btrace_conf_general_set): New.
9843 (hanle_general_set): Call handle_btrace_conf_general_set.
9844 (handle_query): Report Qbtrace-conf:bts:size as supported.
9846 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9848 * linux-low.c (linux_low_enable_btrace): Update parameters.
9849 (linux_low_btrace_conf): New.
9850 (linux_target_ops)<to_btrace_conf>: Initialize.
9851 * server.c (current_btrace_conf): New.
9852 (handle_btrace_enable): Rename to ...
9853 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9854 to target_enable_btrace. Update comment. Update users.
9855 (handle_qxfer_btrace_conf): New.
9856 (qxfer_packets): Add btrace-conf entry.
9857 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9858 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9859 (target_ops)<read_btrace_conf>: New.
9860 (target_enable_btrace): Update parameters.
9861 (target_read_btrace_conf): New.
9863 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9865 * server.c (handle_btrace_general_set): Remove call to
9866 target_supports_btrace.
9867 (supported_btrace_packets): New.
9868 (handle_query): Call supported_btrace_packets.
9869 * target.h: include btrace-common.h.
9870 (btrace_target_info): Removed.
9871 (supports_btrace, target_supports_btrace): Update parameters.
9873 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9875 * Makefile.in (SFILES): Add common/btrace-common.c.
9876 (OBS): Add common/btrace-common.o.
9877 (btrace-common.o): Add build rules.
9878 * linux-low: Include btrace-common.h.
9879 (linux_low_read_btrace): Use struct btrace_data. Call
9880 btrace_data_init and btrace_data_fini.
9882 2015-02-06 Pedro Alves <palves@redhat.com>
9884 * thread-db.c (find_new_threads_callback): Add debug output.
9886 2015-02-04 Pedro Alves <palves@redhat.com>
9888 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9889 (resume_stopped_resumed_lwps): New function.
9890 (linux_wait_for_event_filtered): Use it.
9892 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9894 * Makefile.in (SFILES): Add linux-personality.c.
9895 (linux-personality.o): New rule.
9896 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9897 list of objects to be built.
9898 * linux-low.c: Include nat/linux-personality.h.
9899 (linux_create_inferior): Remove code to disable address space
9900 randomization (moved to ../nat/linux-personality.c). Create
9901 cleanup to disable address space randomization.
9903 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9905 * Makefile.in (posix-strerror.o): New rule.
9906 (mingw-strerror.o): Likewise.
9907 * configure: Regenerated.
9908 * configure.ac: Source file ../common/common.host. Initialize new
9909 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9911 2015-01-14 Yao Qi <yao@codesourcery.com>
9913 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9914 (ppc-linux.o): New rule.
9915 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9916 * configure.ac: AC_CHECK_FUNCS(getauxval).
9917 * config.in: Re-generated.
9918 * configure: Re-generated.
9919 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9920 ppc64_64bit_inferior_p
9922 2015-01-14 Yao Qi <yao@codesourcery.com>
9924 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9925 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9926 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9927 (PT_ORIG_R3, PT_TRAP): Likewise.
9928 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9929 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9930 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9932 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9934 * i387-fp.c (i387_cache_to_xsave): In look over
9935 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9936 zmmh_low_space field by use of zmmh_high_space.
9938 2015-01-09 Pedro Alves <palves@redhat.com>
9940 * linux-low.c (step_over_bkpt): Move higher up in the file.
9941 (handle_extended_wait): Don't store the stop_pc here.
9942 (get_stop_pc): Adjust comments and rename to ...
9943 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9944 stopped for a software breakpoint or hardware breakpoint.
9945 (thread_still_has_status_pending_p): New function.
9946 (status_pending_p_callback): Use
9947 thread_still_has_status_pending_p. If the event is no longer
9948 interesting, resume the LWP.
9949 (handle_tracepoints): Add assert.
9950 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9951 (wstatus_maybe_breakpoint): New function.
9952 (cancel_breakpoint): Delete function.
9953 (check_stopped_by_watchpoint): New function, factored out from
9954 linux_low_filter_event.
9955 (lp_status_maybe_breakpoint): Delete function.
9956 (linux_low_filter_event): Remove filter_ptid argument.
9957 Leave thread group exits pending here. Store the LWP's stop PC.
9958 Always leave events pending.
9959 (linux_wait_for_event_filtered): Pull all events out of the
9960 kernel, and leave them all pending.
9961 (count_events_callback, select_event_lwp_callback): Consider all
9963 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9964 (select_event_lwp): Only give preference to the stepping LWP in
9965 all-stop mode. Adjust comments.
9966 (ignore_event): New function.
9967 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9968 references to cancel_breakpoints. Adjust to renames. Also give
9969 equal priority to all LWPs that have had events in non-stop mode.
9970 If reporting a software breakpoint event, unadjust the LWP's PC.
9971 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9972 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9974 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9975 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9976 (linux_stopped_by_watchpoint): Adjust.
9977 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9978 * linux-low.h (enum lwp_stop_reason): New.
9979 (struct lwp_info) <stop_pc>: Adjust comment.
9980 <stopped_by_watchpoint>: Delete field.
9981 <stop_reason>: New field.
9982 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9983 * mem-break.c (software_breakpoint_inserted_here)
9984 (hardware_breakpoint_inserted_here): New function.
9985 * mem-break.h (software_breakpoint_inserted_here)
9986 (hardware_breakpoint_inserted_here): Declare.
9987 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9988 (cancel_breakpoints): Delete.
9989 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9990 (upload_fast_traceframes): Remove references to
9993 2015-01-09 Pedro Alves <palves@redhat.com>
9995 * thread-db.c (find_new_threads_callback): Ignore thread if the
9996 kernel thread ID is -1.
9998 2015-01-09 Pedro Alves <palves@redhat.com>
10000 * linux-low.c (linux_attach_fail_reason_string): Move to
10001 nat/linux-ptrace.c, and rename.
10002 (linux_attach_lwp): Update comment.
10003 (attach_proc_task_lwp_callback): New function.
10004 (linux_attach): Adjust to rename and use
10005 linux_proc_attach_tgid_threads.
10006 (linux_attach_fail_reason_string): Delete declaration.
10008 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10010 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10011 * server.c (gdbserver_version): Likewise.
10013 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10015 * remote-utils.c: Include ctype.h.
10016 (input_interrupt): Explicitly handle the case when the char
10017 received is the NUL byte. Improve the printing of non-ASCII
10020 2014-12-16 Joel Brobecker <brobecker@adacore.com>
10022 * linux-low.c (linux_low_filter_event): Update call to
10023 linux_enable_event_reporting following the addition of
10024 a new parameter to that function.
10026 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
10029 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10030 (AARCH64_FPCR_REGNO): Likewise.
10031 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10032 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10033 (aarch64_store_fpregset): Likewise.
10035 2014-12-15 Joel Brobecker <brobecker@adacore.com>
10037 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10038 Remove FIXME comment about assumption about N.
10040 2014-12-13 Joel Brobecker <brobecker@adacore.com>
10042 * configure.ac: If large-file support is disabled in GDBserver,
10043 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10044 * configure: Regenerate.
10046 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10048 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10049 warning upon ENODATA from ptrace.
10050 * linux-s390-low.c (s390_store_tdb): New.
10051 (s390_regsets): Add regset for NT_S390_TDB.
10053 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10055 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10056 without a fill_function.
10057 * linux-s390-low.c (s390_fill_last_break): Remove.
10058 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10059 (s390_arch_setup): Use regset's size instead of fill_function for
10060 loop end condition.
10062 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10064 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10065 the regset's store function when ptrace returned an error.
10066 * regcache.c (get_thread_regcache): Invalidate register cache
10067 before fetching inferior's registers.
10069 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10071 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10072 while-loop as for-loop.
10073 (regsets_store_inferior_registers): Likewise.
10075 2014-11-28 Yao Qi <yao@codesourcery.com>
10077 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10078 * config.in, configure: Re-generate.
10079 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10082 2014-11-21 Yao Qi <yao@codesourcery.com>
10084 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10085 (AC_CHECK_HEADERS): Remove malloc.h.
10086 * configure: Re-generated.
10087 * config.in: Re-generated.
10088 * server.h: Don't include alloca.h and malloc.h.
10089 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10090 Don't include malloc.h.
10092 2014-11-17 Joel Brobecker <brobecker@adacore.com>
10094 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10095 corresponding ERRNO check in same block.
10097 2014-11-12 Pedro Alves <palves@redhat.com>
10099 * server.c (cont_thread): Update comment.
10100 (start_inferior, attach_inferior): No longer clear cont_thread.
10101 (handle_v_cont): No longer set cont_thread.
10102 (captured_main): Clear cont_thread each time a GDB connects.
10104 2014-11-12 Pedro Alves <palves@redhat.com>
10106 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10107 thread, and don't resume all threads if the Hc thread has exited.
10109 2014-11-12 Pedro Alves <palves@redhat.com>
10111 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10112 the process group instead of to a specific LWP.
10114 2014-10-15 Pedro Alves <palves@redhat.com>
10117 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10119 (arm_set_thread_context): Delete.
10120 (the_low_target): Adjust.
10121 * win32-i386-low.c (debug_registers_changed)
10122 (debug_registers_used): Delete.
10123 (update_debug_registers_callback): New function.
10124 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10125 needing to update their debug registers.
10126 (win32_get_current_dr): New function.
10127 (x86_dr_low_get_addr, x86_dr_low_get_control)
10128 (x86_dr_low_get_status): Fetch the debug register from the thread
10130 (i386_initial_stuff): Adjust.
10131 (i386_get_thread_context): Remove current_event parameter. Don't
10132 clear debug_registers_changed nor copy DR values to
10134 (i386_set_thread_context): Delete.
10135 (i386_prepare_to_resume): New function.
10136 (i386_thread_added): Mark the thread as needing to update irs
10138 (the_low_target): Remove i386_set_thread_context and install
10139 i386_prepare_to_resume.
10140 * win32-low.c (win32_get_thread_context): Adjust.
10141 (win32_set_thread_context): Use SetThreadContext
10143 (win32_prepare_to_resume): New function.
10144 (win32_require_context): New function, factored out from ...
10145 (thread_rec): ... this.
10146 (continue_one_thread): Call win32_prepare_to_resume on each thread
10147 we're about to continue.
10148 (win32_resume): Call win32_prepare_to_resume on the event thread.
10149 * win32-low.h (struct win32_thread_info)
10150 <debug_registers_changed>: New field.
10151 (struct win32_target_ops): Change prototype of set_thread_context,
10152 delete set_thread_context and add prepare_to_resume.
10153 (win32_require_context): New declaration.
10155 2014-10-08 Gary Benson <gbenson@redhat.com>
10157 * server.h: Do not include common-exceptions.h.
10159 2014-10-08 Gary Benson <gbenson@redhat.com>
10161 * server.h: Do not include cleanups.h.
10163 2014-09-30 James Hogan <james.hogan@imgtec.com>
10165 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10166 mips64-dsp-linux.c.
10168 2014-09-23 Yao Qi <yao@codesourcery.com>
10170 * linux-low.c (lp_status_maybe_breakpoint): New function.
10171 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10172 (count_events_callback): Likewise.
10173 (select_event_lwp_callback): Likewise.
10174 (cancel_breakpoints_callback): Likewise.
10176 2014-09-19 Don Breazeal <donb@codesourcery.com>
10178 * linux-low.c (handle_extended_wait): Call
10179 linux_ptrace_get_extended_event.
10180 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10181 linux_is_extended_waitstatus.
10183 2014-09-16 Joel Brobecker <brobecker@adacore.com>
10185 * Makefile.in (CPPFLAGS): Define.
10186 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10187 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10189 2014-09-16 Gary Benson <gbenson@redhat.com>
10191 * inferiors.h (current_inferior): Renamed as...
10192 (current_thread): New variable. All uses updated.
10193 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10194 (maybe_move_out_of_jump_pad): Likewise.
10195 (cancel_breakpoint): Likewise.
10196 (linux_low_filter_event): Likewise.
10197 (wait_for_sigstop): Likewise.
10198 (linux_resume_one_lwp): Likewise.
10199 (need_step_over_p): Likewise.
10200 (start_step_over): Likewise.
10201 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10202 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10203 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10204 and save_inferior as saved_thread.
10205 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10207 (regcache_invalidate_thread): Likewise.
10208 * remote-utils.c (prepare_resume_reply): Likewise.
10209 * thread-db.c (thread_db_get_tls_address): Likewise.
10210 (disable_thread_event_reporting): Likewise.
10211 (remove_thread_event_breakpoints): Likewise.
10212 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10214 * target.h (set_desired_inferior): Renamed as...
10215 (set_desired_thread): New declaration. All uses updated.
10216 * server.c (myresume): Updated comment to reference thread instead
10218 (handle_serial_event): Likewise.
10219 (handle_target_event): Likewise.
10221 2014-09-12 Tom Tromey <tromey@redhat.com>
10222 Gary Benson <gbenson@redhat.com>
10224 * regcache.h: Include common-regcache.h.
10225 (regcache_read_pc): Don't declare.
10226 * regcache.c (get_thread_regcache_for_ptid): New function.
10228 2014-09-11 Tom Tromey <tromey@redhat.com>
10229 Gary Benson <gbenson@redhat.com>
10231 * symbol.c: New file.
10232 * Makefile.in (SFILES): Add symbol.c.
10233 (OBS): Add symbol.o.
10235 2014-09-11 Gary Benson <gbenson@redhat.com>
10237 * target.c (target_stop_ptid, target_continue_ptid): New
10240 2014-09-11 Tom Tromey <tromey@redhat.com>
10241 Gary Benson <gbenson@redhat.com>
10243 * target.h: Include target/target.h.
10244 * target.c (target_read_memory, target_read_uint32)
10245 (target_write_memory): New functions.
10247 2014-09-11 Gary Benson <gbenson@redhat.com>
10249 * server.h (debug_hw_points): Don't declare.
10250 * server.c (debug_hw_points): Don't define. Replace all uses
10251 with show_debug_regs.
10252 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10253 all uses with show_debug_regs.
10255 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10257 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10258 endianness into account.
10259 (ppc_supply_ptrace_register): Likewise.
10261 2014-09-03 James Hogan <james.hogan@imgtec.com>
10263 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10264 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10266 2014-09-03 Gary Benson <gbenson@redhat.com>
10268 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10269 ALL_DEBUG_ADDRESS_REGISTERS.
10271 2014-09-02 Gary Benson <gbenson@redhat.com>
10273 * i386-low.h: Renamed as...
10274 * x86-low.h: New file. All type, function and variable name
10275 prefixes changed from "i386_" to "x86_". All references updated.
10276 * i386-low.c: Renamed as...
10277 * x86-low.c: New file. All type, function and variable name
10278 prefixes changed from "i386_" to "x86_". All references updated.
10280 2014-09-02 Gary Benson <gbenson@redhat.com>
10282 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10283 (x86_linux_new_thread): Likewise.
10285 2014-08-29 Gary Benson <gbenson@redhat.com>
10287 * server.h (setjmp.h): Do not include.
10288 (toplevel): Do not declare.
10289 (common-exceptions.h): Include.
10290 (cleanups.h): Likewise.
10291 * server.c (toplevel): Do not define.
10292 (exit_code): New static global.
10293 (detach_or_kill_for_exit_cleanup): New function.
10294 (main): New function. Original main renamed to...
10295 (captured_main): New function.
10296 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10298 2014-08-29 Gary Benson <gbenson@redhat.com>
10300 * Makefile.in (SFILES): Add common/common-exceptions.c.
10301 (OBS): Add common-exceptions.o.
10302 (common-exceptions.o): New rule.
10303 * utils.c (prepare_to_throw_exception): New function.
10305 2014-08-29 Gary Benson <gbenson@redhat.com>
10307 * config.in: Regenerate.
10308 * configure: Likewise.
10310 2014-08-29 Gary Benson <gbenson@redhat.com>
10312 * Makefile.in (SFILES): Add common/cleanups.c.
10314 (cleanups.o): New rule.
10316 2014-08-29 Gary Benson <gbenson@redhat.com>
10318 * utils.c (internal_vwarning): New function.
10320 2014-08-28 Gary Benson <gbenson@redhat.com>
10322 * utils.h (fatal): Remove declaration.
10323 * utils.c (fatal): Remove function.
10325 2014-08-28 Gary Benson <gbenson@redhat.com>
10327 * tracepoint.c (gdb_agent_init): Replace fatal with
10329 (initialize_tracepoint): Likewise.
10331 2014-08-28 Gary Benson <gbenson@redhat.com>
10333 * remote-utils.c (remote_prepare): Replace fatal with error.
10335 2014-08-28 Gary Benson <gbenson@redhat.com>
10337 * linux-low.c (linux_async): Replace fatal with warning.
10338 Tidy up and return.
10339 (linux_start_non_stop): Return -1 if linux_async failed.
10341 2014-08-28 Gary Benson <gbenson@redhat.com>
10343 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10345 (i386_dr_low_get_addr): Remove vague comment.
10346 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10349 2014-08-28 Gary Benson <gbenson@redhat.com>
10351 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10352 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10354 (linux_resume_one_lwp): Likewise.
10355 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10357 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
10358 with internal_error.
10359 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
10360 (init_register_cache): Replace fatal with gdb_assert_not_reached.
10361 (find_register_by_name): Replace fatal with internal_error.
10362 (find_regno): Likewise.
10363 * tdesc.c (init_target_desc): Replace check with gdb_assert.
10364 * thread-db.c (thread_db_create_event): Likewise.
10365 (thread_db_load_search): Likewise.
10366 (try_thread_db_load_1): Likewise.
10367 * tracepoint.c (get_jump_space_head): Replace fatal with
10369 (claim_trampoline_space): Likewise.
10370 (have_fast_tracepoint_trampoline_buffer): Likewise.
10371 (cmd_qtstart): Likewise.
10372 (stop_tracing): Likewise.
10373 (fast_tracepoint_collecting): Likewise.
10374 (target_malloc): Likewise.
10375 (download_tracepoint): Likewise.
10376 (download_trace_state_variables): Replace check with gdb_assert.
10377 (upload_fast_traceframes): Replace fatal with internal_error.
10379 2014-08-19 Tom Tromey <tromey@redhat.com>
10380 Gary Benson <gbenson@redhat.com>
10382 * Makefile.in (SFILES): Add common/common-debug.c.
10383 (OBS): Add common-debug.o.
10384 (common-debug.o): New rule.
10385 * debug.h (debug_printf): Don't declare.
10386 * debug.c (debug_printf): Renamed and rewritten as...
10387 (debug_vprintf): New function.
10389 2014-08-19 Gary Benson <gbenson@redhat.com>
10391 * utils.h: Do not include print-utils.h.
10393 2014-08-19 Tom Tromey <tromey@redhat.com>
10394 Gary Benson <gbenson@redhat.com>
10396 * server.h: Add static assertion.
10397 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
10399 2014-08-19 Tom Tromey <tromey@redhat.com>
10400 Gary Benson <gbenson@redhat.com>
10402 * Makefile.in (SFILES): Add common/errors.c.
10403 (OBS): Add errors.o.
10404 (IPA_OBS): Add errors-ipa.o.
10405 (errors.o): New rule.
10406 (errors-ipa.o): Likewise.
10407 * utils.h (perror_with_name, error, warning): Don't declare.
10408 * utils.c (warning): Renamed and rewritten as...
10409 (vwarning): New function.
10410 (error): Renamed and rewritten as...
10411 (verror): New function.
10412 (internal_error): Renamed and rewritten as...
10413 (internal_verror): New function.
10415 2014-08-07 Gary Benson <gbenson@redhat.com>
10417 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
10418 * configure: Regenerate.
10419 * config.in: Likewise.
10420 * server.h: Do not include errno.h.
10421 * event-loop.c: Likewise.
10422 * hostio-errno.c: Likewise.
10423 * linux-low.c: Likewise.
10424 * remote-utils.c: Likewise.
10425 * spu-low.c: Likewise.
10426 * utils.c: Likewise.
10427 * gdbreplay.c: Unconditionally include errno.h.
10429 2014-08-07 Gary Benson <gbenson@redhat.com>
10431 * server.h: Do not include string.h.
10432 * event-loop.c: Likewise.
10433 * linux-low.c: Likewise.
10434 * regcache.c: Likewise.
10435 * remote-utils.c: Likewise.
10436 * spu-low.c: Likewise.
10437 * utils.c: Likewise.
10439 2014-08-07 Gary Benson <gbenson@redhat.com>
10441 * server.h: Do not include gdb_assert.h.
10443 2014-08-07 Gary Benson <gbenson@redhat.com>
10445 * server.h: Do not include common-utils.h.
10447 2014-08-07 Gary Benson <gbenson@redhat.com>
10449 * server.h: Do not include ptid.h.
10450 * notif.h: Likewise.
10452 2014-08-07 Gary Benson <gbenson@redhat.com>
10454 * server.h: Do not include gdb_locale.h.
10456 2014-08-07 Gary Benson <gbenson@redhat.com>
10458 * server.h: Do not include gdb/signals.h.
10459 * win32-low.c: Likewise.
10461 2014-08-07 Gary Benson <gbenson@redhat.com>
10463 * server.h: Do not include pathmax.h.
10465 2014-08-07 Gary Benson <gbenson@redhat.com>
10467 * server.h: Do not include libiberty.h.
10468 * linux-bfin-low.c: Likewise.
10470 2014-08-07 Gary Benson <gbenson@redhat.com>
10472 * server.h: Do not include ansidecl.h.
10474 2014-08-07 Gary Benson <gbenson@redhat.com>
10476 * linux-x86-low.c: Do not include stddef.h.
10477 * lynx-ppc-low.c: Likewise.
10478 * tracepoint.c: Likewise.
10480 2014-08-07 Gary Benson <gbenson@redhat.com>
10482 * server.h: Do not include stdarg.h.
10483 * nto-low.c: Likewise.
10485 2014-08-07 Gary Benson <gbenson@redhat.com>
10487 * server.h: Do not include stdlib.h.
10488 * inferiors.c: Likewise.
10489 * linux-low.c: Likewise.
10490 * regcache.c: Likewise.
10491 * spu-low.c: Likewise.
10492 * tracepoint.c: Likewise.
10493 * utils.c: Likewise.
10495 2014-08-07 Gary Benson <gbenson@redhat.com>
10497 * server.h: Do not include stdio.h.
10498 * linux-low.c: Likewise.
10499 * remote-utils.c: Likewise.
10500 * spu-low.c: Likewise.
10501 * utils.c: Likewise.
10502 * wincecompat.c: Likewise.
10504 2014-08-06 Gary Benson <gbenson@redhat.com>
10506 * regcache.c (init_register_cache): Move conditionals inside if.
10508 2014-08-06 Gary Benson <gbenson@redhat.com>
10510 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10512 2014-07-31 Gary Benson <gbenson@redhat.com>
10514 * ax.h: Do not include server.h.
10515 * gdbthread.h: Likewise.
10516 * lynx-low.h: Likewise.
10517 * notif.h: Likewise.
10519 2014-07-30 Gary Benson <gbenson@redhat.com>
10521 * server.h: Include common-defs.h.
10522 Do not include config.h or build-gnulib-gdbserver/config.h.
10524 2014-07-30 Gary Benson <gbenson@redhat.com>
10526 * hostio-errno.c: Move server.h to top of includes list.
10527 * inferiors.c: Likewise.
10528 * linux-x86-low.c: Likewise.
10529 * notif.c: Include server.h.
10531 2014-07-24 Tom Tromey <tromey@redhat.com>
10532 Gary Benson <gbenson@redhat.com>
10534 * server.h (CORE_ADDR): Now unsigned.
10536 2014-07-16 Pedro Alves <palves@redhat.com>
10538 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10540 2014-07-15 Pedro Alves <palves@redhat.com>
10542 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10545 2014-07-11 Pedro Alves <palves@redhat.com>
10547 * linux-low.c (kill_wait_lwp): New function, based on
10548 kill_one_lwp_callback, but use my_waitpid directly.
10549 (kill_one_lwp_callback, linux_kill): Use it.
10551 2014-06-23 Pedro Alves <palves@redhat.com>
10553 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10554 before setting DR0..DR3.
10556 2014-06-20 Gary Benson <gbenson@redhat.com>
10558 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10559 * configure: Regenerated.
10560 * config.in: Likewise.
10562 2014-06-20 Gary Benson <gbenson@redhat.com>
10564 * Makefile.in (SFILES): Update locations for files moved
10565 from common to nat.
10566 (object file files): Reordered.
10568 2014-06-20 Gary Benson <gbenson@redhat.com>
10570 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10571 (i386_dr_low_set_addr): Likewise.
10572 (i386_dr_low_get_addr): Likewise.
10573 (i386_dr_low_can_set_control): Likewise.
10574 (i386_dr_low_set_control): Likewise.
10575 (i386_dr_low_get_control): Likewise.
10576 (i386_dr_low_get_status): Likewise.
10577 (i386_get_debug_register_length): Likewise.
10578 * linux-x86-low.c (i386_dr_low_set_addr):
10579 Changed signature. Made static.
10580 (i386_dr_low_get_addr): Likewise.
10581 (i386_dr_low_set_control): Likewise.
10582 (i386_dr_low_get_control): Likewise.
10583 (i386_dr_low_get_status): Likewise.
10584 (i386_dr_low): New global variable.
10585 * win32-i386-low.c (i386_dr_low_set_addr):
10586 Changed signature. Made static.
10587 (i386_dr_low_get_addr): Likewise.
10588 (i386_dr_low_set_control): Likewise.
10589 (i386_dr_low_get_control): Likewise.
10590 (i386_dr_low_get_status): Likewise.
10591 (i386_dr_low): New global variable.
10593 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10595 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10596 * Makefile.in (AR, AR_FLAGS): Define.
10597 * configure: Regenerate.
10599 2014-06-19 Gary Benson <gbenson@redhat.com>
10601 * Makefile.in (i386-dregs.o): New rule.
10602 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10603 * i386-low.c (target.h): Remove include.
10604 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10605 (DR_CONTROL_SHIFT): Likewise.
10606 (DR_CONTROL_SIZE): Likewise.
10607 (DR_RW_EXECUTE): Likewise.
10608 (DR_RW_WRITE): Likewise.
10609 (DR_RW_READ): Likewise.
10610 (DR_RW_IORW): Likewise.
10611 (DR_LEN_1): Likewise.
10612 (DR_LEN_2): Likewise.
10613 (DR_LEN_4): Likewise.
10614 (DR_LEN_8): Likewise.
10615 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10616 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10617 (DR_ENABLE_SIZE): Likewise.
10618 (DR_LOCAL_SLOWDOWN): Likewise.
10619 (DR_GLOBAL_SLOWDOWN): Likewise.
10620 (DR_CONTROL_RESERVED): Likewise.
10621 (I386_DR_CONTROL_MASK): Likewise.
10622 (I386_DR_VACANT): Likewise.
10623 (I386_DR_LOCAL_ENABLE): Likewise.
10624 (I386_DR_GLOBAL_ENABLE): Likewise.
10625 (I386_DR_DISABLE): Likewise.
10626 (I386_DR_SET_RW_LEN): Likewise.
10627 (I386_DR_GET_RW_LEN): Likewise.
10628 (I386_DR_WATCH_HIT): Likewise.
10629 (i386_wp_op_t): Likewise.
10630 (i386_show_dr): Likewise.
10631 (i386_length_and_rw_bits): Likewise.
10632 (i386_insert_aligned_watchpoint): Likewise.
10633 (i386_remove_aligned_watchpoint): Likewise.
10634 (i386_handle_nonaligned_watchpoint): Likewise.
10635 i386_update_inferior_debug_regs(): Likewise.
10636 (i386_dr_insert_watchpoint): Likewise.
10637 (i386_dr_remove_watchpoint): Likewise.
10638 (i386_dr_region_ok_for_watchpoint): Likewise.
10639 (i386_dr_stopped_data_address): Likewise.
10640 (i386_dr_stopped_by_watchpoint): Likewise.
10642 2014-06-19 Gary Benson <gbenson@redhat.com>
10644 * i386-low.c (i386_dr_show): Renamed to
10645 i386_show_dr and made static. All uses updated.
10646 (i386_dr_length_and_rw_bits): Renamed to
10647 i386_length_and_rw_bits and made static.
10649 (i386_dr_insert_aligned_watchpoint): Renamed to
10650 i386_insert_aligned_watchpoint and made static.
10652 (i386_dr_remove_aligned_watchpoint): Renamed to
10653 i386_remove_aligned_watchpoint and made static.
10655 (i386_dr_update_inferior_debug_regs): Renamed to
10656 i386_update_inferior_debug_regs and made static.
10659 2014-06-18 Gary Benson <gbenson@redhat.com>
10661 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10662 (i386_dr_low_can_set_control): Likewise.
10663 (i386_get_debug_register_length): Likewise.
10664 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10665 (i386_dr_low_can_set_control): Likewise.
10666 (i386_get_debug_register_length): Likewise.
10668 2014-06-17 Gary Benson <gbenson@redhat.com>
10670 * i386-low.h (i386-dregs.h): New include.
10671 (DR_FIRSTADDR): Now in i386-dregs.h.
10672 (DR_LASTADDR): Likewise.
10673 (DR_NADDR): Likewise.
10674 (DR_STATUS): Likewise.
10675 (DR_CONTROL): Likewise.
10676 (i386_debug_reg_state): Likewise.
10677 (i386_dr_insert_watchpoint): Likewise.
10678 (i386_dr_remove_watchpoint): Likewise.
10679 (i386_dr_region_ok_for_watchpoint): Likewise.
10680 (i386_dr_stopped_data_address): Likewise.
10681 (i386_dr_stopped_by_watchpoint): Likewise.
10682 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10684 2014-06-18 Gary Benson <gbenson@redhat.com>
10686 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10687 i386_dr_insert_watchpoint.
10688 (i386_low_remove_watchpoint): Renamed to
10689 i386_dr_remove_watchpoint.
10690 (i386_low_region_ok_for_watchpoint): Renamed to
10691 i386_dr_region_ok_for_watchpoint.
10692 (i386_low_stopped_data_address): Renamed to
10693 i386_dr_stopped_data_address.
10694 (i386_low_stopped_by_watchpoint): Renamed to
10695 i386_dr_stopped_by_watchpoint.
10696 * i386-low.c (i386_show_dr): Renamed to
10697 i386_dr_show and made nonstatic. All uses updated.
10698 (i386_length_and_rw_bits): Renamed to
10699 i386_dr_length_and_rw_bits and made nonstatic.
10701 (i386_insert_aligned_watchpoint): Renamed to
10702 i386_dr_insert_aligned_watchpoint and made nonstatic.
10704 (i386_remove_aligned_watchpoint): Renamed to
10705 i386_dr_remove_aligned_watchpoint and made nonstatic.
10707 (i386_update_inferior_debug_regs): Renamed to
10708 i386_dr_update_inferior_debug_regs and made nonstatic.
10710 (i386_low_insert_watchpoint): Renamed to
10711 i386_dr_insert_watchpoint. All uses updated.
10712 (i386_low_remove_watchpoint): Renamed to
10713 i386_dr_remove_watchpoint. All uses updated.
10714 (i386_low_region_ok_for_watchpoint): Renamed to
10715 i386_dr_region_ok_for_watchpoint. All uses updated.
10716 (i386_low_stopped_data_address): Renamed to
10717 i386_dr_stopped_data_address. All uses updated.
10718 (i386_low_stopped_by_watchpoint): Renamed to
10719 i386_dr_stopped_by_watchpoint. All uses updated.
10721 2014-06-18 Gary Benson <gbenson@redhat.com>
10723 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10724 (i386_dr_low_can_set_control): Likewise.
10725 (i386_insert_aligned_watchpoint): New check.
10727 2014-06-18 Gary Benson <gbenson@redhat.com>
10729 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10732 2014-06-18 Gary Benson <gbenson@redhat.com>
10734 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10735 instead of fatal and error.
10736 (i386_handle_nonaligned_watchpoint): Likewise.
10738 2014-06-18 Gary Benson <gbenson@redhat.com>
10740 * i386-low.c (i386_get_debug_register_length): New macro.
10741 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10742 (i386_show_dr): Use debug_printf instead of fprintf. Use
10743 phex to format values.
10745 2014-06-18 Gary Benson <gbenson@redhat.com>
10747 * i386-low.h: Comment changes.
10748 * i386-low.c: Likewise.
10750 2014-06-18 Gary Benson <gbenson@redhat.com>
10752 * i386-low.c: Whitespace changes.
10754 2014-06-12 Tom Tromey <tromey@redhat.com>
10756 * utils.c (freeargv): Remove.
10758 2014-06-12 Tom Tromey <tromey@redhat.com>
10760 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10761 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10762 (parse_debug_format_options): Likewise.
10763 (gdbserver_usage): Likewise.
10764 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10765 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10766 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10768 ($(LIBGNU)): Depend on libiberty.
10769 (all-lib): Recurse into all subdirs.
10770 (install-only): Invoke "install" target in subdirs.
10771 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10773 * configure: Rebuild.
10774 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10775 for vasprintf, vsnprintf, or gettimeofday.
10776 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10779 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10781 * development.sh: Delete.
10782 * Makefile.in (config.status): Adjust dependency on development.sh.
10783 * configure.ac: Adjust development.sh source call.
10784 * configure: Regenerate.
10786 2014-06-02 Pedro Alves <palves@redhat.com>
10788 * ax.c (gdb_free_agent_expr): New function.
10789 * ax.h (gdb_free_agent_expr): New declaration.
10790 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10792 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10794 (clear_breakpoint_conditions_and_commands): New function.
10795 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10796 (clear_breakpoint_conditions_and_commands): New declaration.
10798 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10800 * linux-aarch64-low.c (asm/ptrace.h): Include.
10802 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10804 Fix TLS access for -static -pthread.
10805 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10806 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10807 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10809 2014-05-20 Pedro Alves <palves@redhat.com>
10811 * linux-aarch64-low.c (aarch64_insert_point)
10812 (aarch64_remove_point): No longer check whether the type is
10813 supported here. Adjust to new interface.
10814 (the_low_target): Install aarch64_supports_z_point_type as
10815 supports_z_point_type method.
10816 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10817 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10818 instead of a Z packet char. Adjust.
10819 (arm_supports_z_point_type): New function.
10820 (arm_insert_point, arm_remove_point): Adjust to new interface.
10821 (the_low_target): Install arm_supports_z_point_type.
10822 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10823 (cris_insert_point, cris_remove_point): Adjust to new interface.
10824 Don't check whether the type is supported here.
10825 (the_low_target): Install cris_supports_z_point_type.
10826 * linux-low.c (linux_supports_z_point_type): New function.
10827 (linux_insert_point, linux_remove_point): Adjust to new interface.
10828 * linux-low.h (struct linux_target_ops) <insert_point,
10829 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10830 raw_breakpoint pointer parameter.
10831 <supports_z_point_type>: New method.
10832 * linux-mips-low.c (mips_supports_z_point_type): New function.
10833 (mips_insert_point, mips_remove_point): Adjust to new interface.
10834 Use mips_supports_z_point_type.
10835 (the_low_target): Install mips_supports_z_point_type.
10836 * linux-ppc-low.c (the_low_target): Install NULL as
10837 supports_z_point_type method.
10838 * linux-s390-low.c (the_low_target): Install NULL as
10839 supports_z_point_type method.
10840 * linux-sparc-low.c (the_low_target): Install NULL as
10841 supports_z_point_type method.
10842 * linux-x86-low.c (x86_supports_z_point_type): New function.
10843 (x86_insert_point): Adjust to new insert_point interface. Use
10844 insert_memory_breakpoint. Adjust to new
10845 i386_low_insert_watchpoint interface.
10846 (x86_remove_point): Adjust to remove_point interface. Use
10847 remove_memory_breakpoint. Adjust to new
10848 i386_low_remove_watchpoint interface.
10849 (the_low_target): Install x86_supports_z_point_type.
10850 * lynx-low.c (lynx_target_ops): Install NULL as
10851 supports_z_point_type callback.
10852 * nto-low.c (nto_supports_z_point_type): New.
10853 (nto_insert_point, nto_remove_point): Adjust to new interface.
10854 (nto_target_ops): Install nto_supports_z_point_type.
10855 * mem-break.c: Adjust intro comment.
10856 (struct raw_breakpoint) <raw_type, size>: New fields.
10857 <inserted>: Update comment.
10858 <shlib_disabled>: Delete field.
10859 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10860 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10861 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10862 (raw_bkpt_type_to_target_hw_bp_type): New function.
10863 (find_enabled_raw_code_breakpoint_at): New function.
10864 (find_raw_breakpoint_at): New type and size parameters. Use them.
10865 (insert_memory_breakpoint): New function, based off
10866 set_raw_breakpoint_at.
10867 (remove_memory_breakpoint): New function.
10868 (set_raw_breakpoint_at): Reimplement.
10869 (set_breakpoint): New, based on set_breakpoint_at.
10870 (set_breakpoint_at): Reimplement.
10871 (delete_raw_breakpoint): Go through the_target->remove_point
10872 instead of assuming memory breakpoints.
10873 (find_gdb_breakpoint_at): Delete.
10874 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10875 (find_gdb_breakpoint): New function.
10876 (set_gdb_breakpoint_at): Delete.
10877 (z_type_supported): New function.
10878 (set_gdb_breakpoint_1): New function, loosely based off
10879 set_gdb_breakpoint_at.
10880 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10881 (delete_gdb_breakpoint_at): Delete.
10882 (delete_gdb_breakpoint_1): New function, loosely based off
10883 delete_gdb_breakpoint_at.
10884 (delete_gdb_breakpoint): New function.
10885 (clear_gdb_breakpoint_conditions): Rename to ...
10886 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10888 (add_condition_to_breakpoint): Make static.
10889 (add_breakpoint_condition): Take a struct breakpoint pointer
10890 instead of an address. Adjust.
10891 (gdb_condition_true_at_breakpoint): Rename to ...
10892 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10894 (gdb_condition_true_at_breakpoint): Reimplement.
10895 (add_breakpoint_commands): Take a struct breakpoint pointer
10896 instead of an address. Adjust.
10897 (gdb_no_commands_at_breakpoint): Rename to ...
10898 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10899 parameter. Return true if no breakpoint was found. Change debug
10901 (gdb_no_commands_at_breakpoint): Reimplement.
10902 (run_breakpoint_commands): Rename to ...
10903 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10904 and change return type to boolean.
10905 (run_breakpoint_commands): New function.
10906 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10907 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10908 breakpoint. Go through the_target->remove_point instead of
10909 assuming memory breakpoint.
10910 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10911 software and hardware breakpoints.
10912 (reinsert_raw_breakpoint): Go through the_target->insert_point
10913 instead of assuming memory breakpoint.
10914 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10915 software and hardware breakpoints.
10916 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10917 Check both software and hardware breakpoints.
10918 (validate_inserted_breakpoint): Assert the breakpoint is a
10919 software breakpoint. Set the inserted flag to -1 instead of
10920 setting shlib_disabled.
10921 (delete_disabled_breakpoints): Adjust.
10922 (validate_breakpoints): Only validate software breakpoints.
10923 Adjust to inserted flag change.
10924 (check_mem_read, check_mem_write): Skip breakpoint types other
10925 than software breakpoints. Adjust to inserted flag change.
10926 * mem-break.h (enum raw_bkpt_type): New enum.
10927 (raw_breakpoint, struct process_info): Forward declare.
10928 (Z_packet_to_target_hw_bp_type): Delete declaration.
10929 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10930 (set_gdb_breakpoint, delete_gdb_breakpoint)
10931 (clear_breakpoint_conditions): New declarations.
10932 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10933 (breakpoint_inserted_here): Update comment.
10934 (add_breakpoint_condition, add_breakpoint_commands): Replace
10935 address parameter with a breakpoint pointer parameter.
10936 (gdb_breakpoint_here): Update comment.
10937 (delete_gdb_breakpoint_at): Delete.
10938 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10939 * server.c (process_point_options): Take a struct breakpoint
10940 pointer instead of an address. Adjust.
10941 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10942 delete_gdb_breakpoint.
10943 * spu-low.c (spu_target_ops): Install NULL as
10944 supports_z_point_type method.
10945 * target.h: Include mem-break.h.
10946 (struct target_ops) <prepare_to_access_memory>: Update comment.
10947 <supports_z_point_type>: New field.
10948 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10949 instead of a char. Also take a raw breakpoint pointer.
10950 * win32-arm-low.c (the_low_target): Install NULL as
10951 supports_z_point_type.
10952 * win32-i386-low.c (i386_supports_z_point_type): New function.
10953 (i386_insert_point, i386_remove_point): Adjust to new interface.
10954 (the_low_target): Install i386_supports_z_point_type.
10955 * win32-low.c (win32_supports_z_point_type): New function.
10956 (win32_insert_point, win32_remove_point): Adjust to new interface.
10957 (win32_target_ops): Install win32_supports_z_point_type.
10958 * win32-low.h (struct win32_target_ops):
10959 <supports_z_point_type>: New method.
10960 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10961 instead of a char. Also take a raw breakpoint pointer.
10963 2014-05-20 Pedro Alves <palves@redhat.com>
10965 * mem-break.h: Include break-common.h.
10966 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10967 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10968 (Z_packet_to_target_hw_bp_type): New declaration.
10969 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10970 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10971 (Z_PACKET_ACCESS_WP): Delete macros.
10972 (Z_packet_to_hw_type): Delete function.
10973 * i386-low.h: Don't include break-common.h here.
10974 (Z_packet_to_hw_type): Delete declaration.
10975 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10976 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10977 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10978 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10979 * linux-aarch64-low.c: Don't include break-common.h here.
10980 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10981 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10982 (Z_packet_to_target_hw_bp_type): Delete function.
10983 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10985 (mips_insert_point, mips_remove_point): Use
10986 Z_packet_to_target_hw_bp_type.
10988 2014-05-20 Pedro Alves <palves@redhat.com>
10990 * linux-aarch64-low.c: Include break-common.h.
10991 (enum target_point_type): Delete.
10992 (Z_packet_to_point_type): Rename to ...
10993 (Z_packet_to_target_hw_bp_type): ... this, and return a
10994 target_hw_bp_type instead.
10995 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10996 instead of an enum target_point_type.
10997 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10999 (aarch64_dr_state_insert_one_point)
11000 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11001 (aarch64_handle_aligned_watchpoint)
11002 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11003 Take an enum target_hw_bp_type instead of an enum
11005 (aarch64_supports_z_point_type): New function.
11006 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11007 use Z_packet_to_target_hw_bp_type.
11009 2014-05-20 Joel Brobecker <brobecker@adacore.com>
11011 * configure.ac: Only use -Werror by default when DEVELOPMENT
11013 * configure: Regenerate.
11015 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11017 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11018 * linux-x86-low.c (X86_64_USER_REGS): New.
11019 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11021 2014-04-28 Yao Qi <yao@codesourcery.com>
11023 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11026 2014-04-25 Pedro Alves <palves@redhat.com>
11029 * linux-low.c (linux_attach_fail_reason_string): New function.
11030 (linux_attach_lwp): Delete.
11031 (linux_attach_lwp_1): Rename to ...
11032 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11033 argument. Remove "initial" parameter. Return int instead of
11034 void. Don't error or warn here.
11035 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11036 failure to attach to the tgid. Call warning when failing to
11038 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11039 argument. Remove "initial" parameter. Return int instead of
11040 void. Don't error or warn here.
11041 (linux_attach_fail_reason_string): New declaration.
11042 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11043 interface change. Use linux_attach_fail_reason_string.
11045 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
11046 Walfred Tedeschi <walfred.tedeschi@intel.com>
11048 * Makefile.in: Added rules to handle new files
11049 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11050 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11051 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11052 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11053 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11054 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11055 x32-avx512-linux.o.
11056 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11057 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11058 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11059 i386/x32-avx512.xml.
11060 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11061 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11062 i386/x32-avx512-linux.xml.
11063 * i387-fp.c (num_avx512_k_registers): New constant for number
11065 (num_avx512_zmmh_low_registers): New constant for number of
11066 lower ZMM registers (0-15).
11067 (num_avx512_zmmh_high_registers): New constant for number of
11068 higher ZMM registers (16-31).
11069 (num_avx512_ymmh_registers): New contant for number of higher
11070 YMM registers (ymm16-31 added by avx521 on x86_64).
11071 (num_avx512_xmm_registers): New constant for number of higher
11072 XMM registers (xmm16-31 added by AVX512 on x86_64).
11073 (struct i387_xsave): Add space for AVX512 registers.
11074 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11075 Add code to handle AVX512 registers.
11076 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11077 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11078 prototypei from generated file.
11079 (tdesc_amd64_avx512_linux): Likewise.
11080 (init_registers_x32_avx512_linux): Likewise.
11081 (tdesc_x32_avx512_linux): Likewise.
11082 (init_registers_i386_avx512_linux): Likewise.
11083 (tdesc_i386_avx512_linux): Likewise.
11084 (x86_64_regmap): Add AVX512 registers.
11085 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11087 (initialize_low_arch): Add code to initialize AVX512 registers.
11089 2014-04-23 Pedro Alves <palves@redhat.com>
11091 * mem-break.c (find_gdb_breakpoint_at): Make static.
11092 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11094 2014-04-23 Pedro Alves <palves@redhat.com>
11096 * i386-low.c: Don't include break-common.h here.
11097 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11098 prototype to take target_hw_bp_type as argument instead of a Z
11100 * i386-low.h: Include break-common.h here.
11101 (Z_packet_to_hw_type): Declare.
11102 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11104 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11105 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11106 (x86_remove_point): Convert the packet number to a
11107 target_hw_bp_type before calling i386_low_remove_watchpoint.
11108 * win32-i386-low.c (i386_insert_point): Convert the packet number
11109 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11110 (i386_remove_point): Convert the packet number to a
11111 target_hw_bp_type before calling i386_low_remove_watchpoint.
11113 2014-04-23 Pedro Alves <palves@redhat.com>
11115 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11117 2014-04-10 Pedro Alves <palves@redhat.com>
11119 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11120 Check if the condition or command is NULL before checking if the
11121 breakpoint is known. On success, return true.
11122 * mem-break.h (add_breakpoint_condition): Document return.
11123 (add_breakpoint_commands): Add describing comment.
11124 * server.c (skip_to_semicolon): New function.
11125 (process_point_options): Use it.
11127 2014-04-09 Pedro Alves <palves@redhat.com>
11129 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11132 2014-02-27 Pedro Alves <palves@redhat.com>
11135 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11137 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11139 (last_thread_of_process_p): Take a PID argument instead of a
11141 (linux_wait_for_lwp): Delete.
11142 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11144 (linux_low_filter_event): New function, party factored out from
11145 linux_wait_for_event.
11146 (linux_wait_for_event): Rename to ...
11147 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11148 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11149 sigsuspend. Check for zombie leaders.
11150 (linux_wait_for_event): Reimplement as wrapper around
11151 linux_wait_for_event_filtered.
11152 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11153 a normal or signal exit is seen, it's the whole process exiting.
11154 (wait_for_sigstop): No longer a for_each_inferior callback.
11155 Rewrite on top of linux_wait_for_event_filtered.
11156 (stop_all_lwps): Call wait_for_sigstop directly.
11157 * server.c (resume, handle_target_event): Handle
11158 TARGET_WAITKIND_NO_RESUMED.
11160 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11162 * win32-low.c (psapi_get_dll_name,
11163 * win32_CreateToolhelp32Snapshot): Delete.
11164 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11165 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11167 (handle_load_dll): Add function description.
11168 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11170 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11172 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11174 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11175 base address when calling win32_add_one_solib.
11176 (handle_load_dll): Delete local variable load_addr.
11177 Remove 0x1000 offset applied to DLL base address when calling
11178 win32_add_one_solib.
11179 (handle_unload_dll): Add comment.
11181 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11183 * win32-low.c (win32_add_all_dlls): Renames
11184 win32_ensure_ntdll_loaded. Rewrite function documentation.
11185 Adjust implementation to always load all DLLs.
11186 Add 0x1000 offset to DLL base address when calling
11187 win32_add_one_solib.
11188 (child_initialization_done): New static global.
11189 (do_initial_child_stuff): Set child_initialization_done to
11190 zero during child initialization, and 1 after. Replace call
11191 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11193 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11194 (handle_unload_dll): Add function documentation.
11195 (get_child_debug_event): Ignore load and unload DLL events
11196 during child initialization.
11198 2014-02-20 Doug Evans <dje@google.com>
11200 Remove global all_lwps.
11201 * inferiors.h (ptid_of): Move here from linux-low.h.
11202 (pid_of, lwpid_of): Ditto.
11203 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11204 parameter is a struct thread_info * now.
11205 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11206 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11207 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11209 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11210 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11211 * linux-arm-low.c (update_registers_callback): Update, "entry"
11212 parameter is a struct thread_info * now.
11213 Fetch lwpid from current_inferior directly.
11214 (arm_insert_point): Pass &all_threads to find_inferior instead of
11216 (arm_remove_point): Ditto.
11217 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11218 (arm_prepare_to_resume): Fetch pid from thread.
11219 (arm_read_description): Fetch lwpid from current_inferior directly.
11220 * linux-low.c (all_lwps): Delete.
11221 (delete_lwp): Delete call to remove_inferior.
11222 (handle_extended_wait): Fetch lwpid from thread.
11223 (add_lwp): Don't set lwp->entry.id. Remove call to
11224 add_inferior_to_list.
11225 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11226 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11227 (kill_one_lwp_callback): Ditto.
11228 (linux_kill): Don't dereference NULL pointer.
11229 Fetch ptid,lwpid from thread.
11230 (get_detach_signal): Fetch ptid from thread.
11231 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11232 Simplify call to regcache_invalidate_thread.
11233 (delete_lwp_callback): Update, "entry" parameter is a
11234 struct thread_info * now. Fetch pid from thread.
11235 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11236 (status_pending_p_callback): Update, "entry" parameter is a
11237 struct thread_info * now. Fetch ptid from thread.
11238 (find_lwp_pid): Update, "entry" parameter is a
11239 struct thread_info * now.
11240 (linux_wait_for_lwp): Fetch pid from thread.
11241 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11242 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11243 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11244 (dequeue_one_deferred_signal): Ditto.
11245 (cancel_breakpoint): Fetch ptid from current_inferior.
11246 (linux_wait_for_event): Pass &all_threads to find_inferior,
11247 not &all_lwps. Fetch ptid, lwpid from thread.
11248 (count_events_callback): Update, "entry" parameter is a
11249 struct thread_info * now.
11250 (select_singlestep_lwp_callback): Ditto.
11251 (select_event_lwp_callback): Ditto.
11252 (cancel_breakpoints_callback): Ditto.
11253 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11255 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11256 (unsuspend_one_lwp): Update, "entry" parameter is a
11257 struct thread_info * now.
11258 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11260 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11261 Fetch lwpid from thread, not lwp.
11262 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11263 Pass &all_threads to find_inferior, not &all_lwps.
11264 (send_sigstop): Fetch lwpid from thread, not lwp.
11265 (send_sigstop_callback): Update, "entry" parameter is a
11266 struct thread_info * now.
11267 (suspend_and_send_sigstop_callback): Ditto.
11268 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11269 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11270 struct thread_info * now.
11271 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11273 (lwp_running): Update, "entry" parameter is a
11274 struct thread_info * now.
11275 (stop_all_lwps): Fetch ptid from thread.
11276 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11277 (linux_resume_one_lwp): Fetch lwpid from thread.
11278 (linux_set_resume_request): Update, "entry" parameter is a
11279 struct thread_info * now. Fetch pid, lwpid from thread.
11280 (resume_status_pending_p): Update, "entry" parameter is a
11281 struct thread_info * now.
11282 (need_step_over_p): Ditto. Fetch lwpid from thread.
11283 (start_step_over): Fetch lwpid from thread.
11284 (linux_resume_one_thread): Update, "entry" parameter is a
11285 struct thread_info * now. Fetch lwpid from thread.
11286 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11287 (proceed_one_lwp): Update, "entry" parameter is a
11288 struct thread_info * now. Fetch lwpid from thread.
11289 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11290 struct thread_info * now.
11291 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11292 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11293 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11295 (regsets_store_inferior_registers): Ditto.
11296 (fetch_register, store_register): Ditto.
11297 (linux_read_memory, linux_write_memory): Ditto.
11298 (linux_request_interrupt): Ditto.
11299 (linux_read_auxv): Ditto.
11300 (linux_xfer_siginfo): Ditto.
11301 (linux_qxfer_spu): Ditto.
11302 (linux_qxfer_libraries_svr4): Ditto.
11303 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11304 moved to inferiors.h.
11306 (get_thread_lwp): Update.
11307 (struct lwp_info): Delete member "entry". Simplify comment for
11309 (all_lwps): Delete.
11310 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11311 current_inferior directly.
11312 (update_watch_registers_callback): Update, "entry" parameter is a
11313 struct thread_info * now. Fetch pid from thread.
11314 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11315 (mips_insert_point): Fetch lwpid from current_inferior.
11316 Pass &all_threads to find_inferior, not &all_lwps.
11317 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11318 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11320 (mips_stopped_data_address): Ditto.
11321 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11323 * linux-tile-low.c (tile_arch_setup): Ditto.
11324 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11325 (update_debug_registers_callback): Update, "entry" parameter is a
11326 struct thread_info * now. Fetch pid from thread.
11327 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11328 Pass &all_threads to find_inferior, not &all_lwps.
11329 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11330 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11331 Pass &all_threads to find_inferior, not &all_lwps.
11332 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11333 (i386_dr_low_get_status): Ditto.
11334 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11335 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11336 (x86_linux_read_description): Ditto.
11337 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11339 2014-02-20 Doug Evans <dje@google.com>
11341 * inferiors.c (get_first_inferior): Fix buglet.
11343 2014-02-19 Doug Evans <dje@google.com>
11345 * gdbthread.h (add_thread): Change result type to struct thread_info *.
11346 * inferiors.c (add_thread): Change result type to struct thread_info *.
11347 All callers updated.
11348 (add_lwp): Call add_thread here instead of in callers.
11349 All callers updated.
11350 * linux-low.h (get_lwp_thread): Rewrite.
11351 (struct lwp_info): New member "thread".
11353 2014-02-19 Doug Evans <dje@google.com>
11355 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11356 All callers updated.
11358 2014-02-19 Doug Evans <dje@google.com>
11360 * inferiors.c (add_thread): Fix whitespace.
11362 2014-02-19 Doug Evans <dje@google.com>
11364 * dll.c (clear_dlls): Replace accessing list implemention details
11366 * gdbthread.h (get_first_thread): Declare.
11367 * inferiors.c (for_each_inferior_with_data): New function.
11368 (get_first_thread): New function.
11369 (find_thread_ptid): Simplify.
11370 (get_first_inferior): New function.
11371 (clear_list): Delete.
11372 (one_inferior_p): New function.
11373 (clear_inferior_list): New function.
11374 (clear_inferiors): Update.
11375 * inferiors.h (for_each_inferior_with_data): Declare.
11376 (clear_inferior_list): Declare.
11377 (one_inferior_p): Declare.
11378 (get_first_inferior): Declare.
11379 * linux-low.c (linux_wait_for_event): Replace accessing list
11380 implemention details with API function.
11381 * server.c (target_running): Ditto.
11382 (accumulate_file_name_length): New function.
11383 (emit_dll_description): New function.
11384 (handle_qxfer_libraries): Replace accessing list implemention
11385 details with API function.
11386 (handle_qxfer_threads_worker): New function.
11387 (handle_qxfer_threads_proper): Replace accessing list implemention
11388 details with API function.
11389 (handle_query): Ditto.
11390 (visit_actioned_threads_callback_ftype): New typedef.
11391 (visit_actioned_threads_data): New struct.
11392 (visit_actioned_threads): Rewrite to be find_inferior callback.
11393 (resume): Call find_inferior.
11394 (handle_status): Replace accessing list implemention
11395 details with API function.
11396 (process_serial_event): Replace accessing list implemention details
11398 * target.c (set_desired_inferior): Replace accessing list implemention
11399 details with API function.
11400 * tracepoint.c (same_process_p): New function.
11401 (gdb_agent_about_to_close): Replace accessing list implemention
11402 details with API function.
11403 * win32-low.c (child_delete_thread): Replace accessing list
11404 implemention details with API function.
11405 (match_dll_by_basename): New function.
11406 (dll_is_loaded_by_basename): New function.
11407 (win32_ensure_ntdll_loaded): Replace accessing list implemention
11408 details call to dll_is_loaded_by_basename.
11410 2014-02-19 Doug Evans <dje@google.com>
11412 * dll.h (struct dll_info): Add comment.
11413 * gdbthread.h (struct thread_info): Add comment.
11414 (current_ptid): Simplify.
11415 * inferiors.c (add_process): Update.
11416 (remove_process): Update.
11417 * inferiors.h (struct process_info): Rename member "head" to "entry".
11418 * linux-low.c (delete_lwp): Update.
11420 (last_thread_of_process_p): Update.
11421 (kill_one_lwp_callback, linux_kill): Update.
11422 (status_pending_p_callback): Update.
11423 (wait_for_sigstop): Update. Simplify read of ptid.
11424 (start_step_over): Update.
11425 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
11426 (get_lwp_thread): Update.
11427 (struct lwp_info): Rename member "head" to "entry".
11428 * regcache.h (inferior_list_entry): Delete.
11429 * server.c (kill_inferior_callback): Update.
11430 (detach_or_kill_inferior_callback): Update.
11431 (print_started_pid): Update.
11432 (print_attached_pid): Update.
11433 (process_serial_event): Simplify read of ptid.
11434 * thread-db.c (thread_db_create_event): Update.
11435 (thread_db_get_tls_address): Update.
11436 * win32-low.c (current_inferior_ptid): Simplify.
11438 2014-02-19 Tom Tromey <tromey@redhat.com>
11440 * target.h (struct target_ops) <supports_btrace>: Add target_ops
11442 (target_supports_btrace): Update.
11444 2014-02-14 Yao Qi <yao@codesourcery.com>
11446 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
11447 (rsp-low-ipa.o): New target.
11449 2014-02-12 Tom Tromey <tromey@redhat.com>
11451 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
11452 convert_ascii_to_int.
11453 * regcache.c (registers_to_string): Likewise.
11454 * remote-utils.c (decode_M_packet): Likewise.
11455 * server.c (process_serial_event): Likewise.
11457 2014-02-12 Tom Tromey <tromey@redhat.com>
11459 * server.c (handle_query, handle_v_run): Use hex2bin, not
11461 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
11463 2014-02-12 Tom Tromey <tromey@redhat.com>
11465 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
11466 convert_int_to_ascii.
11467 * regcache.c (registers_to_string, collect_register_as_string):
11469 * remote-utils.c (look_up_one_symbol, relocate_instruction):
11471 * server.c (process_serial_event): Likewise.
11472 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
11473 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
11475 2014-02-12 Tom Tromey <tromey@redhat.com>
11477 * remote-utils.c (look_up_one_symbol, monitor_output): Use
11478 bin2hex, not hexify.
11479 * tracepoint.c (cmd_qtstatus): Likewise.
11481 2014-02-12 Tom Tromey <tromey@redhat.com>
11483 * remote-utils.c (monitor_output): Pass explicit length to
11486 2014-02-12 Tom Tromey <tromey@redhat.com>
11488 * tracepoint.c: Include rsp-low.h.
11489 * server.c: Include rsp-low.h.
11490 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
11491 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
11493 * remote-utils.c: Include rsp-low.h.
11494 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
11495 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
11496 (convert_int_to_ascii, convert_ascii_to_int): Move to
11498 * regcache.c: Include rsp-low.h.
11499 * ax.c: Include rsp-low.h.
11500 * Makefile.in (SFILES): Add common/rsp-low.c.
11501 (OBS): Add rsp-low.o.
11502 (rsp-low.o): New target.
11504 2014-02-12 Tom Tromey <tromey@redhat.com>
11506 * utils.h (pulongest, plongest, phex_nz): Don't declare.
11507 Include print-utils.h.
11508 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11509 (plongest, thirty_two, phex_nz): Remove.
11510 * Makefile.in (SFILES): Add common/print-utils.c.
11511 (OBS): Add print-utils.o.
11512 (print-utils-ipa.o): New target.
11513 (print-utils.o): New target.
11514 (IPA_OBJS): Add print-utils-ipa.o.
11516 2014-02-06 Tom Tromey <tromey@redhat.com>
11518 * Makefile.in (SFILES): Fix indentation.
11520 2014-02-05 Doug Evans <dje@google.com>
11522 * linux-low.c (linux_wait_for_event): Improve comment.
11523 (linux_wait_1): Keep current_inferior in sync with event_child.
11525 2014-01-22 Doug Evans <dje@google.com>
11527 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11529 2014-01-22 Doug Evans <dje@google.com>
11531 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
11532 * configure: Regenerate.
11533 * config.in: Regenerate.
11534 * Makefile.in (SFILES): Add debug.c.
11535 (OBS): Add debug.o.
11536 * debug.c: New file.
11537 * debug.h: New file.
11538 * linux-aarch64-low.c (*): Update all debugging printfs to use
11539 debug_printf instead of fprintf.
11540 * linux-arm-low.c (*): Ditto.
11541 * linux-cris-low.c (*): Ditto.
11542 * linux-crisv32-low.c (*): Ditto.
11543 * linux-m32r-low.c (*): Ditto.
11544 * linux-sparc-low.c (*): Ditto.
11545 * linux-x86.c (*): Ditto.
11546 * linux-low.c (*): Ditto.
11547 (linux_wait_1): Add calls to debug_enter, debug_exit.
11548 (linux_wait): Remove redundant debugging printf.
11549 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11550 (linux_resume, unstop_all_lwps): Ditto.
11551 * mem-break.c (*): Update all debugging printfs to use
11552 debug_printf instead of fprintf.
11553 * remote-utils.c (*): Ditto.
11554 * thread-db.c (*): Ditto.
11555 * server.c #include <ctype.h>, "gdb_vecs.h".
11556 (debug_threads): Moved to debug.c.
11557 (*): Update all debugging printfs to use debug_printf instead of
11559 (start_inferior): Replace call to fflush with call to debug_flush.
11560 (monitor_show_help): Mention set debug-format.
11561 (parse_debug_format_options): New function.
11562 (handle_monitor_command): Handle "monitor set debug-format".
11563 (gdbserver_usage): Mention --debug-format.
11564 (main): Parse --debug-format.
11565 * server.h (debug_threads): Declaration moved to debug.h.
11566 #include "debug.h".
11567 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11568 trace_debug_1 that uses debug_printf.
11569 (tracepoint_look_up_symbols): Update all debugging printfs to use
11570 debug_printf instead of fprintf.
11572 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11574 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11577 2014-01-17 Pedro Alves <palves@redhat.com>
11580 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11581 defined after including gdb_proc_service.h.
11583 2014-01-16 Doug Evans <dje@google.com>
11585 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11586 (match_dll): Use it.
11588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11590 * target.h (target_ops) <read_btrace>: Change parameters and
11591 return type to allow error reporting.
11592 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11593 trace reading errors on.
11594 * linux-low.c (linux_low_read_btrace): Pass trace reading
11596 (linux_low_disable_btrace): New.
11598 2014-01-15 Doug Evans <dje@google.com>
11600 * inferiors.c (thread_id_to_gdb_id): Delete.
11601 * inferiors.h (thread_id_to_gdb_id): Delete.
11603 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11605 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11606 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11609 2014-01-08 Pedro Alves <palves@redhat.com>
11611 * server.c (handle_status): Don't discard previous queued stop
11612 replies or thread's pending status here.
11613 (main) <disconnection>: Do it here instead.
11615 2014-01-08 Pedro Alves <palves@redhat.com>
11617 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11618 * server.c (visit_actioned_threads, handle_pending_status): New
11620 (handle_v_cont): Factor out parts to ...
11621 (resume): ... this new function. If in all-stop, and a thread
11622 being resumed has a pending status, report it without actually
11624 (myresume): Adjust to use the new 'resume' function.
11625 (clear_pending_status_callback, set_pending_status_callback)
11626 (find_status_pending_thread_callback): New functions.
11627 (handle_status): Handle the case of multiple threads having
11628 interesting statuses to report. Report threads' real last signal
11629 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11630 with an interesting thread to report the status for, instead of
11631 always reporting the status of the first thread.
11633 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11635 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11636 * gdbreplay.c (gdbreplay_version): Likewise.
11638 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11640 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11641 iov.iov_len with the real length in use.
11643 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11645 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11646 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11647 for all targets that use win32-low.c.
11648 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11649 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11651 2013-12-13 Pedro Alves <palves@redhat.com>
11653 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11654 if equal to TARGET_WAITKIND_LOADED.
11655 * win32-low.c (cached_status): New static global.
11656 (win32_wait): Add declaration.
11657 (do_initial_child_stuff): Flush all initial pending debug events
11658 up to the initial breakpoint.
11659 (win32_wait): If CACHED_STATUS was set, return that instead
11660 of doing a real wait. Remove the code resuming the execution
11661 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11662 during the initial phase. Also remove the code changing
11663 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11664 TARGET_WAITKIND_STOPPED.
11666 2013-12-11 Yao Qi <yao@codesourcery.com>
11668 * notif.c (handle_notif_ack): Return 0 if no notification
11671 2013-11-20 Doug Evans <dje@google.com>
11673 * linux-low.c (linux_set_resume_request): Fix comment.
11675 2013-11-20 Doug Evans <dje@google.com>
11677 * linux-low.c (resume_status_pending_p): Tweak comment.
11679 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11681 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11682 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11683 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11684 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11685 (srv_amd64_regobj): Add amd64-mpx.o.
11686 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11687 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11688 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11689 * i387-fp.c (num_pl_bnd_register) Added constant.
11690 (num_pl_bnd_cfg_registers) Added constant.
11691 (struct i387_xsave) Added reserved area and MPX fields.
11692 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11693 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11695 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11696 (init_registers_amd64_mpx_linux): Declare new function.
11697 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11698 (x86_64_regmap): Add MPX registers.
11699 (x86_linux_read_description): Add MPX case.
11700 (initialize_low_arch): Initialize MPX targets.
11702 2013-11-18 Tom Tromey <tromey@redhat.com>
11704 * configure: Rebuild.
11705 * configure.ac: Don't check for stdlib.h.
11706 * gdbreplay.c: Unconditionally include stdlib.h.
11708 2013-11-18 Tom Tromey <tromey@redhat.com>
11710 * config.in: Rebuild.
11711 * configure: Rebuild.
11712 * configure.ac: Don't use AC_HEADER_DIRENT.
11714 2013-11-18 Tom Tromey <tromey@redhat.com>
11716 * server.h: Don't check HAVE_STRING_H.
11717 * gdbreplay.c: Don't check HAVE_STRING_H.
11718 * configure: Rebuild.
11720 2013-11-18 Tom Tromey <tromey@redhat.com>
11722 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11725 2013-11-08 Tom Tromey <tromey@redhat.com>
11727 * configure, config.in: Rebuild.
11728 * configure.ac: Remove unused configury.
11730 2013-11-08 Tom Tromey <tromey@redhat.com>
11732 * acinclude.m4: Include common.m4, codeset.m4.
11733 * configure, config.in: Rebuild.
11734 * configure.ac: Use GDB_AC_COMMON.
11736 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11738 * linux-s390-low.c (HWCAP_S390_TE): New define.
11739 (s390_arch_setup): Consider the TE field in the HWCAP for
11740 determining 'have_regset_tdb'.
11742 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11745 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11748 2013-10-02 Pedro Alves <palves@redhat.com>
11750 * server.c (process_serial_event): Don't output "GDBserver
11751 exiting" if GDB is connected through stdio.
11752 * target.c (mywait): Likewise, be silent if GDB is connected
11755 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11757 * lynx-low.c (lynx_add_threads_after_attach): New function.
11758 (lynx_attach): Remove call to add_thread. Add call to
11759 lynx_add_threads_after_attach instead.
11761 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11763 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11764 * config.in, configure: Regenerated.
11766 2013-09-18 Yao Qi <yao@codesourcery.com>
11769 * server.c (start_inferior): Clear 'resume_info'.
11771 2013-09-16 Jiong Wang <jiwang@tilera.com>
11773 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11776 2013-09-16 Jiong Wang <jiwang@tilera.com>
11778 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11779 linux-tile-low.o to srv_tgtobj.
11781 2013-09-16 Will Newton <will.newton@linaro.org>
11783 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11786 2013-09-06 Pedro Alves <palves@redhat.com>
11788 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11789 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11790 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11791 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11792 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11793 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11795 2013-09-06 Pedro Alves <palves@redhat.com>
11797 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11798 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11800 2013-09-06 Pedro Alves <palves@redhat.com>
11802 * linux-amd64-ipa.c: Include tracepoint.h.
11803 * linux-i386-ipa.c: Include tracepoint.h.
11805 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11807 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11808 (ps_get_thread_area): New function.
11810 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11812 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11813 (initialize_low_arch): Call init_registers_crisv32 rather than
11814 init_register_crisv32.
11816 2013-09-05 Pedro Alves <palves@redhat.com>
11818 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11820 * hostio.h: ... this new file.
11821 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11822 win32-low.c: Include hostio.h.
11824 2013-09-05 Pedro Alves <palves@redhat.com>
11826 * server.h (gdb_client_data, handler_func, callback_handler_func)
11827 (delete_file_handler, add_file_handler, append_callback_event)
11828 (delete_callback_event, start_event_loop, initialize_event_loop):
11829 Move to event-loop.h and include it.
11830 * event-loop.h: New file.
11832 2013-09-05 Pedro Alves <palves@redhat.com>
11834 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11835 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11836 (loaded_dll, unloaded_dll): Move to ...
11837 * dll.h: ... this new file.
11838 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11840 2013-09-05 Pedro Alves <palves@redhat.com>
11842 * server.h (current_process, get_thread_process, all_processes)
11843 (add_inferior_to_list, for_each_inferior, current_inferior)
11844 (remove_inferior, add_process, remove_process, find_process_pid)
11845 (have_started_inferiors_p, have_attached_inferiors_p)
11846 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11847 (clear_inferiors, find_inferior, find_inferior_id)
11848 (inferior_target_data, set_inferior_target_data)
11849 (inferior_regcache_data, set_inferior_regcache_data): Move to
11850 inferiors.h, and include it.
11851 * inferiors.h: New file.
11853 2013-09-05 Pedro Alves <palves@redhat.com>
11855 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11859 2013-09-05 Pedro Alves <palves@redhat.com>
11861 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11863 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11864 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11865 (handle_tracepoint_general_set, handle_tracepoint_query)
11866 (tracepoint_finished_step, tracepoint_was_hit)
11867 (release_while_stepping_state_list, current_traceframe)
11868 (in_readonly_region, traceframe_read_mem)
11869 (fetch_traceframe_registers, traceframe_read_sdata)
11870 (traceframe_read_info, struct fast_tpoint_collect_status)
11871 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11872 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11873 (supply_fast_tracepoint_registers)
11874 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11875 (ipa_tdesc, claim_trampoline_space)
11876 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11877 (agent_mem_read, agent_get_trace_state_variable_value)
11878 (agent_set_trace_state_variable_value, agent_tsv_read)
11879 (agent_mem_read_string, get_raw_reg_func_addr)
11880 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11881 * tracepoint.h: ... this new file.
11883 2013-09-05 Pedro Alves <palves@redhat.com>
11885 * server.h (perror_with_name, error, fatal, warning, paddress)
11886 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11888 * utils.h: New file.
11890 2013-09-05 Pedro Alves <palves@redhat.com>
11892 * server.h (remote_debug, noack_mode, transport_is_reliable)
11893 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11894 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11895 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11896 (write_enn, initialize_async_io, enable_async_io)
11897 (disable_async_io, check_remote_input_interrupt_request)
11898 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11899 (dead_thread_notify, prepare_resume_reply)
11900 (decode_address_to_semicolon, decode_address, decode_m_packet)
11901 (decode_M_packet, decode_X_packet, decode_xfer_write)
11902 (decode_search_memory_packet, unhexify, hexify)
11903 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11904 (look_up_one_symbol, relocate_instruction)
11905 (monitor_output): Move to remote-utils.h, and include it.
11906 * remote-utils.h: New file.
11908 2013-09-05 Pedro Alves <palves@redhat.com>
11910 * server.h (_): Delete.
11912 2013-09-02 Pedro Alves <palves@redhat.com>
11914 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11915 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11917 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11919 2013-09-02 Pierre Muller <muller@sourceware.org>
11921 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11922 or WriteProcessMemory complete successfully and handle
11923 ERROR_PARTIAL_COPY error.
11925 2013-09-02 Pedro Alves <palves@redhat.com>
11927 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11928 error instead of EIO.
11930 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11933 * linux-low.c: Include filestuff.h.
11934 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11935 * lynx-low.c: Include filestuff.h.
11936 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11937 * server.c: Include filestuff.h.
11938 (main): Call notice_open_fds.
11939 * spu-low.c: Include filestuff.h.
11940 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11942 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11944 * Makefile.in: Explain why ../target and ../nat are not
11945 listed as include file search paths.
11946 (linux-waitpid.o): New object file rule.
11947 * configure.srv (srv_native_linux_obj): New variable.
11948 Replace all occurrences of linux native object files with
11949 $srv_native_linux_obj.
11950 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11951 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11952 (linux_enable_event_reporting): Remove declaration.
11953 (my_waitpid): Moved to common/linux-waitpid.c.
11954 (linux_wait_for_event): Pass ptid when calling
11955 linux_enable_event_reporting.
11956 (linux_supports_tracefork_flag): Remove.
11957 (linux_enable_event_reporting): Likewise.
11958 (linux_tracefork_grandchild): Remove.
11959 (STACK_SIZE): Moved to common/linux-ptrace.c.
11960 (linux_tracefork_child): Remove.
11961 (linux_test_for_tracefork): Remove.
11962 (linux_look_up_symbols): Call linux_supports_traceclone.
11963 (initialize_low): Remove call to linux_test_for_tracefork.
11964 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11965 common/linux-ptrace.h.
11966 (PTRACE_TYPE_ARG4): Likewise.
11967 Include linux-ptrace.h.
11969 2013-08-21 Pedro Alves <palves@redhat.com>
11971 * config.in: Renegerate.
11973 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11975 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11976 (SFILES): Remove $(srcdir)/common/target-common.c and
11977 add $(srcdir)/target/waitstatus.c.
11978 (OBS): Remove target-common.o and add waitstatus.o.
11979 (server_h): Remove $(srcdir)/../common/target-common.h and
11980 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11981 and $(srcdir)/../target/waitstatus.h.
11982 (target-common.o): Remove.
11983 (waitstatus.o): New target object file.
11984 * target.h: Do not include target-common.h and
11985 include target/resume.h, target/wait.h and
11986 target/waitstatus.h.
11988 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11990 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11991 to PTRACE_TYPE_ARG3.
11992 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11993 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11995 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11996 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11998 2013-07-27 Jie Zhang <jie@codesourcery.com>
11999 Daniel Jacobowitz <dan@codesourcery.com>
12000 Yao Qi <yao@codesourcery.com>
12002 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12003 (mips-linux-watch.o): New rule.
12004 (mips_linux_watch_h): New variable.
12005 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12007 * linux-mips-low.c: Include mips-linux-watch.h.
12008 (struct arch_process_info, struct arch_lwp_info): New.
12009 (update_watch_registers_callback): New function.
12010 (mips_linux_new_process, mips_linux_new_thread) New functions.
12011 (mips_linux_prepare_to_resume, mips_insert_point): New
12013 (mips_remove_point, mips_stopped_by_watchpoint): New
12015 (rsp_bp_type_to_target_hw_bp_type): New function.
12016 (mips_stopped_data_address): New function.
12017 (the_low_target): Add watchpoint support functions.
12019 2013-07-27 Yao Qi <yao@codesourcery.com>
12021 * i386-low.c: Include break-common.h.
12022 (enum target_hw_bp_type): Remove.
12024 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
12026 * Makefile.in (SFILES): /common/target-common.c.
12027 (OBS): Add target-common.o.
12028 (server_h): Add $(srcdir)/../common/target-common.h.
12029 (target-common.o): New target.
12030 * server.c (queue_stop_reply_callback): Free
12031 status string after use.
12032 * target.c (target_waitstatus_to_string): Remove.
12033 * target.h: Include target-common.h.
12034 (resume_kind): Likewise.
12035 (target_waitkind): Likewise.
12036 (target_waitstatus): Likewise.
12037 (TARGET_WNOHANG): Likewise.
12039 2013-07-04 Yao Qi <yao@codesourcery.com>
12041 * Makefile.in (host_alias): Use @host_noncanonical@.
12042 (target_alias): Use @target_noncanonical@.
12043 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12044 ACX_NONCANONICAL_HOST.
12045 * configure: Regenerated.
12048 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12050 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12051 * configure: Rebuild.
12052 * Makefile.in (version_host, version_target): Get from configure.
12053 (version.c): Use $(version_host) and $(version_target).
12055 2013-07-03 Pedro Alves <palves@redhat.com>
12057 * Makefile.in (config.status): Depend on development.sh.
12058 * acinclude.m4: Include libmcheck.m4.
12059 * configure: Regenerate.
12061 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12063 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12064 attribute inside the parentheses.
12065 (winapi_DebugSetProcessKillOnExit): Ditto.
12066 (winapi_DebugBreakProcess): Ditto.
12067 (winapi_GenerateConsoleCtrlEvent): Ditto.
12069 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12071 * notif.h (notif_event): Add a dummy member to avoid compiler
12074 2013-07-01 Pedro Alves <palves@redhat.com>
12076 * hostio.c (HOSTIO_PATH_MAX): Define.
12077 (require_filename, handle_open, handle_unlink, handle_readlink):
12080 2013-07-01 Pedro Alves <palves@redhat.com>
12082 * server.h: Include "pathmax.h".
12083 * linux-low.c: Don't include sys/param.h.
12084 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12086 * win32-low.c: Don't include sys/param.h.
12087 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12089 2013-07-01 Pedro Alves <palves@redhat.com>
12091 * event-loop.c: Don't check HAVE_UNISTD_H before including
12093 * gdbreplay.c: Likewise.
12094 * remote-utils.c: Likewise.
12095 * server.c: Likewise.
12096 * configure.ac: Don't check for unistd.h.
12097 * configure: Regenerate.
12099 2013-06-28 Tom Tromey <tromey@redhat.com>
12101 * Makefile.in (version.c): Use version.in, not
12104 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12106 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12107 * configure: Rebuild.
12108 * Makefile.in (version_host, version_target): Get from configure.
12109 (version.c): Use $(version_host) and $(version_target).
12111 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12113 Fix trace-status to output user name without trailing colon.
12114 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12116 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12118 Fix trace-status to output proper start-time and stop-time.
12119 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12120 output start time and stop time in hex as gdb expects.
12122 2013-06-26 Pedro Alves <pedro@codesourcery.com>
12124 * tracepoint.c (build_traceframe_info_xml): Output trace state
12125 variables present in the trace buffer.
12127 2013-06-24 Tom Tromey <tromey@redhat.com>
12129 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12131 (version.o): Remove.
12132 * gdbreplay.c: Include version.h.
12133 (version, host_name): Don't declare.
12134 * server.h: Include version.h.
12135 (version, host_name): Don't declare.
12137 2013-06-12 Pedro Alves <palves@redhat.com>
12139 * linux-x86-low.c (linux_is_elf64): Delete global.
12140 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12141 with local linux_pid_exe_is_elf_64_file use.
12143 2013-06-11 Pedro Alves <palves@redhat.com>
12145 * linux-low.c (regset_disabled, disable_regset): New functions.
12146 (regsets_fetch_inferior_registers)
12147 (regsets_store_inferior_registers): Use them.
12148 (initialize_regsets_info); Don't allocate the disabled_regsets
12150 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12153 2013-06-11 Pedro Alves <palves@redhat.com>
12155 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12158 2013-06-11 Pedro Alves <palves@redhat.com>
12160 * linux-x86-low.c (initialize_low_arch): Call
12161 init_registers_x32_avx_linux.
12163 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12165 Fix compatibility with Android Bionic.
12166 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12169 2013-06-07 Pedro Alves <palves@redhat.com>
12172 * Makefile.in (OBS): Add tdesc.o.
12173 (IPA_OBJS): Add tdesc-ipa.o.
12174 (tdesc-ipa.o): New rule.
12175 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12177 * linux-low.c (new_inferior): Delete.
12178 (disabled_regsets, num_regsets): Delete.
12179 (linux_add_process): Adjust to set the new per-process
12181 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12182 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12183 was a stop. When calling arch_setup, switch the current inferior
12184 to the thread that got an event.
12185 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12186 (regsets_fetch_inferior_registers)
12187 (regsets_store_inferior_registers): New regsets_info parameter.
12189 (linux_register_in_regsets): New regs_info parameter. Adjust to
12191 (register_addr, fetch_register, store_register): New usrregs_info
12192 parameter. Adjust to use it.
12193 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12194 parameter regs_info. Adjust to use it.
12195 (linux_fetch_registers): Get the current inferior's regs_info, and
12197 (linux_store_registers): Ditto.
12198 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12199 (initialize_low): Don't initialize the target_regsets here. Call
12200 initialize_low_arch.
12201 * linux-low.h (target_regsets): Delete declaration.
12202 (struct regsets_info): New.
12203 (struct usrregs_info): New.
12204 (struct regs_info): New.
12205 (struct process_info_private) <new_inferior>: New field.
12206 (struct linux_target_ops): Delete the num_regs, regmap, and
12207 regset_bitmap fields. New field regs_info.
12208 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12209 * i387-fp.c (num_xmm_registers): Delete.
12210 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12211 calls to new interface.
12212 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12213 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12214 Infer the number of xmm registers from the regcache's target
12216 * i387-fp.h (num_xmm_registers): Delete.
12217 * inferiors.c (add_thread): Don't install the thread's regcache
12219 * proc-service.c (gregset_info): Fetch the current inferior's
12220 regs_info. Adjust to use it.
12221 * regcache.c: Include tdesc.h.
12222 (register_bytes, reg_defs, num_registers)
12223 (gdbserver_expedite_regs): Delete.
12224 (get_thread_regcache): If the thread doesn't have a regcache yet,
12225 create one, instead of aborting gdbserver.
12226 (regcache_invalidate_one): Rename to ...
12227 (regcache_invalidate_thread): ... this.
12228 (regcache_invalidate_one): New.
12229 (regcache_invalidate): Only invalidate registers of the current
12231 (init_register_cache): Add target_desc parameter, and use it.
12232 (new_register_cache): Ditto. Assert the target description has a
12233 non zero registers_size.
12234 (regcache_cpy): Add assertions. Adjust.
12235 (realloc_register_cache, set_register_cache): Delete.
12236 (registers_to_string, registers_from_string): Adjust.
12237 (find_register_by_name, find_regno, find_register_by_number)
12238 (register_cache_size): Add target_desc parameter, and use it.
12239 (free_register_cache_thread, free_register_cache_thread_one)
12240 (regcache_release, register_cache_size): New.
12241 (register_size): Add target_desc parameter, and use it.
12242 (register_data, supply_register, supply_register_zeroed)
12243 (supply_regblock, supply_register_by_name, collect_register)
12244 (collect_register_as_string, collect_register_by_name): Adjust.
12245 * regcache.h (struct target_desc): Forward declare.
12246 (struct regcache) <tdesc>: New field.
12247 (init_register_cache, new_register_cache): Add target_desc
12249 (regcache_invalidate_thread): Declare.
12250 (regcache_invalidate_one): Delete declaration.
12251 (regcache_release): Declare.
12252 (find_register_by_number, register_cache_size, register_size)
12253 (find_regno): Add target_desc parameter.
12254 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12256 * remote-utils.c: Include tdesc.h.
12257 (outreg, prepare_resume_reply): Adjust.
12258 * server.c: Include tdesc.h.
12259 (gdbserver_xmltarget): Delete declaration.
12260 (get_features_xml, process_serial_event): Adjust.
12261 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12263 (struct process_info) <tdesc>: New field.
12264 (ipa_tdesc): Declare.
12265 * tdesc.c: New file.
12266 * tdesc.h: New file.
12267 * tracepoint.c: Include tdesc.h.
12268 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12269 (get_context_regcache): Adjust to pass ipa_tdesc down.
12270 (do_action_at_tracepoint): Adjust to get the register cache size
12271 from the context regcache's description.
12272 (traceframe_walk_blocks): Adjust to get the register cache size
12273 from the current trace frame's description.
12274 (traceframe_get_pc): Adjust to get current trace frame's
12275 description and pass it down.
12276 (gdb_collect): Adjust to get the register cache size from the
12278 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12279 (gdbserver_xmltarget): Delete.
12280 (initialize_low_tracepoint): Set the ipa's target description.
12281 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12282 (initialize_low_tracepoint): Set the ipa's target description.
12283 * linux-x86-low.c: Include tdesc.h.
12284 [__x86_64__] (is_64bit_tdesc): New.
12285 (ps_get_thread_area, x86_get_thread_area): Use it.
12286 (i386_cannot_store_register): Rename to ...
12287 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12288 (i386_cannot_fetch_register): Rename to ...
12289 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12290 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12292 (target_regsets): Rename to ...
12293 (x86_regsets): ... this.
12294 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12296 (x86_siginfo_fixup): Use is_64bit_tdesc.
12297 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12298 (tdesc_x32_avx_linux, tdesc_x32_linux)
12299 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12301 (x86_linux_update_xmltarget): Delete.
12302 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12303 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12304 (AMD64_LINUX_USER64_CS): New.
12305 (x86_linux_read_description): New, based on
12306 x86_linux_update_xmltarget.
12307 (same_process_callback): New.
12308 (x86_arch_setup_process_callback): New.
12309 (x86_linux_update_xmltarget): New.
12310 (x86_regsets_info): New.
12311 (amd64_linux_regs_info): New.
12312 (i386_linux_usrregs_info): New.
12313 (i386_linux_regs_info): New.
12314 (x86_linux_regs_info): New.
12315 (x86_arch_setup): Reimplement.
12316 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12317 (x86_emit_ops): Ditto.
12318 (the_low_target): Adjust. Install x86_linux_regs_info,
12319 x86_cannot_fetch_register, and x86_cannot_store_register.
12320 (initialize_low_arch): New.
12321 * linux-ia64-low.c (tdesc_ia64): Declare.
12322 (ia64_fetch_register): Adjust.
12323 (ia64_usrregs_info, regs_info): New globals.
12324 (ia64_regs_info): New function.
12325 (the_low_target): Adjust.
12326 (initialize_low_arch): New function.
12327 * linux-sparc-low.c (tdesc_sparc64): Declare.
12328 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12330 (sparc_arch_setup): New function.
12331 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12332 (the_low_target): Adjust.
12333 (initialize_low_arch): New function.
12334 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12335 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12336 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12337 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12338 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12339 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12340 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12341 (tdesc_powerpc_isa205_vsx64l): Declare.
12342 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12343 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
12344 (ppc_set_pc, ppc_get_hwcap): Adjust.
12345 (ppc_usrregs_info): Forward declare.
12346 (!__powerpc64__) ppc_regmap_adjusted: New global.
12347 (ppc_arch_setup): Adjust to the current process'es target
12349 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
12350 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
12351 (ppc_store_evrregset): Adjust.
12352 (target_regsets): Rename to ...
12353 (ppc_regsets): ... this, and make static.
12354 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
12355 (ppc_regs_info): New function.
12356 (the_low_target): Adjust.
12357 (initialize_low_arch): New function.
12358 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
12359 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
12360 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
12361 (tdesc_s390x_linux64v2): Declare.
12362 (s390_collect_ptrace_register, s390_supply_ptrace_register)
12363 (s390_fill_gregset, s390_store_last_break): Adjust.
12364 (target_regsets): Rename to ...
12365 (s390_regsets): ... this, and make static.
12366 (s390_get_pc, s390_set_pc): Adjust.
12367 (s390_get_hwcap): New target_desc parameter, and use it.
12368 [__s390x__] (have_hwcap_s390_high_gprs): New global.
12369 (s390_arch_setup): Adjust to set the current process'es target
12370 description. Don't adjust the regmap.
12371 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
12372 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
12373 (regs_info_3264): New globals.
12374 (s390_regs_info): New function.
12375 (the_low_target): Adjust.
12376 (initialize_low_arch): New function.
12377 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
12378 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
12379 [__mips64] (init_registers_mips_linux)
12380 (init_registers_mips_dsp_linux): Delete defines.
12381 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
12382 (have_dsp): New global.
12383 (mips_read_description): New, based on mips_arch_setup.
12384 (mips_arch_setup): Reimplement.
12385 (get_usrregs_info): New function.
12386 (mips_cannot_fetch_register, mips_cannot_store_register)
12387 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
12388 (mips_fill_fpregset, mips_store_fpregset): Adjust.
12389 (target_regsets): Rename to ...
12390 (mips_regsets): ... this, and make static.
12391 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
12392 (dsp_regs_info, regs_info): New globals.
12393 (mips_regs_info): New function.
12394 (the_low_target): Adjust.
12395 (initialize_low_arch): New function.
12396 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
12397 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
12399 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
12400 (arm_read_description): New, with bits factored from
12402 (arm_arch_setup): Reimplement.
12403 (target_regsets): Rename to ...
12404 (arm_regsets): ... this, and make static.
12405 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
12406 (arm_regs_info): New function.
12407 (the_low_target): Adjust.
12408 (initialize_low_arch): New function.
12409 * linux-m68k-low.c (tdesc_m68k): Declare.
12410 (target_regsets): Rename to ...
12411 (m68k_regsets): ... this, and make static.
12412 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
12413 (m68k_regs_info): New function.
12414 (m68k_arch_setup): New function.
12415 (the_low_target): Adjust.
12416 (initialize_low_arch): New function.
12417 * linux-sh-low.c (tdesc_sharch): Declare.
12418 (target_regsets): Rename to ...
12419 (sh_regsets): ... this, and make static.
12420 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
12421 (sh_regs_info, sh_arch_setup): New functions.
12422 (the_low_target): Adjust.
12423 (initialize_low_arch): New function.
12424 * linux-bfin-low.c (tdesc_bfin): Declare.
12425 (bfin_arch_setup): New function.
12426 (bfin_usrregs_info, regs_info): New globals.
12427 (bfin_regs_info): New function.
12428 (the_low_target): Adjust.
12429 (initialize_low_arch): New function.
12430 * linux-cris-low.c (tdesc_cris): Declare.
12431 (cris_arch_setup): New function.
12432 (cris_usrregs_info, regs_info): New globals.
12433 (cris_regs_info): New function.
12434 (the_low_target): Adjust.
12435 (initialize_low_arch): New function.
12436 * linux-cris-low.c (tdesc_crisv32): Declare.
12437 (cris_arch_setup): New function.
12438 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
12439 (cris_regs_info): New function.
12440 (the_low_target): Adjust.
12441 (initialize_low_arch): New function.
12442 * linux-m32r-low.c (tdesc_m32r): Declare.
12443 (m32r_arch_setup): New function.
12444 (m32r_usrregs_info, regs_info): New globals.
12445 (m32r_regs_info): Adjust.
12446 (initialize_low_arch): New function.
12447 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
12448 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
12449 (tic6x_usrregs_info): Forward declare.
12450 (tic6x_read_description): New function, based on ...
12451 (tic6x_arch_setup): ... this. Reimplement.
12452 (target_regsets): Rename to ...
12453 (tic6x_regsets): ... this, and make static.
12454 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
12455 (tic6x_regs_info): New function.
12456 (the_low_target): Adjust.
12457 (initialize_low_arch): New function.
12458 * linux-xtensa-low.c (tdesc_xtensa): Declare.
12459 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
12460 (target_regsets): Rename to ...
12461 (xtensa_regsets): ... this, and make static.
12462 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
12464 (xtensa_arch_setup, xtensa_regs_info): New functions.
12465 (the_low_target): Adjust.
12466 (initialize_low_arch): New function.
12467 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
12468 (nios2_arch_setup): Set the current process'es tdesc.
12469 (target_regsets): Rename to ...
12470 (nios2_regsets): ... this.
12471 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
12472 (nios2_regs_info): New function.
12473 (the_low_target): Adjust.
12474 (initialize_low_arch): New function.
12475 * linux-aarch64-low.c (tdesc_aarch64): Declare.
12476 (aarch64_arch_setup): Set the current process'es tdesc.
12477 (target_regsets): Rename to ...
12478 (aarch64_regsets): ... this.
12479 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
12480 (aarch64_regs_info): New function.
12481 (the_low_target): Adjust.
12482 (initialize_low_arch): New function.
12483 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
12485 (target_regsets): Rename to ...
12486 (tile_regsets): ... this.
12487 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
12488 (tile_regs_info): New function.
12489 (tile_arch_setup): Set the current process'es tdesc.
12490 (the_low_target): Adjust.
12491 (initialize_low_arch): New function.
12492 * spu-low.c (tdesc_spu): Declare.
12493 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
12494 * win32-arm-low.c (tdesc_arm): Declare.
12495 (arm_arch_setup): New function.
12496 (the_low_target): Install arm_arch_setup instead of
12497 init_registers_arm.
12498 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
12499 (init_windows_x86): Rename to ...
12500 (i386_arch_setup): ... this. Set `win32_tdesc'.
12501 (the_low_target): Adjust.
12502 * win32-low.c (win32_tdesc): New global.
12503 (child_add_thread): Don't create the thread cache here.
12504 (do_initial_child_stuff): Set the new process'es tdesc.
12505 * win32-low.h (struct target_desc): Forward declare.
12506 (win32_tdesc): Declare.
12507 * lynx-i386-low.c (tdesc_i386): Declare global.
12508 (lynx_i386_arch_setup): Set `lynx_tdesc'.
12509 * lynx-low.c (lynx_tdesc): New global.
12510 (lynx_add_process): Set the new process'es tdesc.
12511 * lynx-low.h (struct target_desc): Forward declare.
12512 (lynx_tdesc): Declare global.
12513 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
12514 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
12515 * nto-low.c (nto_tdesc): New global.
12516 (do_attach): Set the new process'es tdesc.
12517 * nto-low.h (struct target_desc): Forward declare.
12518 (nto_tdesc): Declare.
12519 * nto-x86-low.c (tdesc_i386): Declare.
12520 (nto_x86_arch_setup): Set `nto_tdesc'.
12522 2013-06-04 Gary Benson <gbenson@redhat.com>
12524 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
12525 to qSupported response when appropriate.
12526 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
12527 with nonzero-length annex.
12528 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
12529 arguments supplied in annex.
12531 2013-05-31 Doug Evans <dje@google.com>
12534 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12535 64 bits in 64-cross-32 environment.
12537 2013-05-28 Pedro Alves <palves@redhat.com>
12539 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
12540 (aarch64-without-fpu.c): Delete rule.
12541 * configure.srv (aarch64*-*-linux*): Remove references to
12542 aarch64-without-fpu.o and aarch64-without-fpu.xml.
12543 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12546 2013-05-24 Pedro Alves <palves@redhat.com>
12548 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12549 instead of strchr/decode_address. Error if the range isn't split
12550 with a ','. Don't assume there's be a ':' in the action.
12552 2013-05-23 Yao Qi <yao@codesourcery.com>
12553 Pedro Alves <palves@redhat.com>
12555 * linux-low.c (lwp_in_step_range): New function.
12556 (linux_wait_1): If the thread was range stepping and stopped
12557 outside the stepping range, report the stop to GDB. Otherwise,
12558 continue stepping. Add range stepping debug output.
12559 (linux_set_resume_request): Copy the step range from the resume
12560 request to the lwp.
12561 (linux_supports_range_stepping): New.
12562 (linux_target_ops) <supports_range_stepping>: Set to
12563 linux_supports_range_stepping.
12564 * linux-low.h (struct linux_target_ops)
12565 <supports_range_stepping>: New field.
12566 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12567 * linux-x86-low.c (x86_supports_range_stepping): New.
12568 (the_low_target) <supports_range_stepping>: Set to
12569 x86_supports_range_stepping.
12570 * server.c (handle_v_cont): Handle 'r' action.
12571 (handle_v_requests): Append ";r" if the target supports range
12573 * target.h (struct thread_resume) <step_range_start,
12574 step_range_end>: New fields.
12575 (struct target_ops) <supports_range_stepping>:
12577 (target_supports_range_stepping): New macro.
12579 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12581 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12582 confusion in comment.
12584 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12586 * lynx-low.c (struct process_info_private): New type.
12587 (lynx_add_process): New function.
12588 (lynx_create_inferior, lynx_attach): Replace calls to
12589 add_process by calls to lynx_add_process.
12590 (lynx_resume): If PTID is null, then try using
12591 current_process()->private->last_wait_event_ptid.
12593 (lynx_clear_inferiors): Delete. The contents of that function
12594 has been inlined in lynx_mourn;
12595 (lynx_wait_1): Save the ptid in the process's private data.
12596 (lynx_mourn): Free the process' private data. Replace call
12597 to lynx_clear_inferiors by call to clear_inferiors.
12599 2013-05-17 Yao Qi <yao@codesourcery.com>
12601 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12604 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12606 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12607 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12608 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12609 PT_TEXT_END_ADDR guards. Update comments.
12610 (linux_target_op) <read_offsets>: Conditionally define to
12611 linux_read_offsets if the target is UCLIBC and if it defines
12612 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12614 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12615 Andrew Jenner <andrew@codesourcery.com>
12617 * Makefile.in (SFILES): Add linux-nios2-low.c.
12618 (clean): Add action to delete nios2-linux.c.
12619 (nios2-linux.c): New rule.
12620 * configure.srv: Add nios2*-*-linux*.
12621 * linux-nios2-low.c: New.
12623 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12625 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12627 2013-04-25 Hui Zhu <hui@codesourcery.com>
12630 * ax.c (ax_printf): Add fflush.
12632 2013-04-22 Tom Tromey <tromey@redhat.com>
12634 * Makefile.in (SFILES): Add filestuff.c.
12635 (OBS): Add filestuff.o.
12636 (filestuff.o): New target.
12637 * config.in, configure: Rebuild.
12638 * configure.ac: Check for fdwalk, pipe2.
12640 2013-04-17 Pedro Alves <palves@redhat.com>
12642 * configure.ac (USE_THREAD_DB): Delete variable.
12643 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12644 Don't AC_SUBST USE_THREAD_DB.
12645 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12646 * config.in, configure: Regenerate.
12648 2013-04-16 Pedro Alves <palves@redhat.com>
12650 * linux-low.h (struct lwp_info) <thread_known>: Move under
12651 the USE_THREAD_DB #ifdef.
12653 2013-04-16 Pedro Alves <palves@redhat.com>
12655 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12656 (linux-low.o): Delete rule.
12657 * linux-low.h: Always include "gdb_thread_db.h" instead of
12658 conditionally including thread_db.h.
12659 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12662 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12664 * Makefile.in (install-only): Fix make install regression.
12666 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12668 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12669 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12671 * gdbserver.1: Remove.
12673 2013-03-22 Pedro Alves <palves@redhat.com>
12675 * linux-low.c (handle_extended_wait): Don't call
12676 linux_enable_event_reporting.
12678 2013-03-15 Tony Theodore <tonyt@logyst.com>
12681 * Makefile.in (SHELL): Use @SHELL@.
12683 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12685 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12688 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12690 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12691 Remove extraneous NULL element.
12693 2013-03-13 Yao Qi <yao@codesourcery.com>
12695 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12696 'V' block in trace frame.
12698 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12700 * target.h (struct target_ops): Add btrace ops.
12701 (target_supports_btrace): New macro.
12702 (target_enable_btrace): New macro.
12703 (target_disable_btrace): New macro.
12704 (target_read_btrace): New macro.
12705 * gdbthread.h (struct thread_info): Add btrace field.
12706 * server.c: Include btrace-common.h.
12707 (handle_btrace_general_set): New function.
12708 (handle_btrace_enable): New function.
12709 (handle_btrace_disable): New function.
12710 (handle_general_set): Call handle_btrace_general_set.
12711 (handle_qxfer_btrace): New function.
12712 (struct qxfer qxfer_packets[]): Add btrace entry.
12713 * inferiors.c (remove_thread): Disable btrace.
12714 * linux-low: Include linux-btrace.h.
12715 (linux_low_enable_btrace): New function.
12716 (linux_low_read_btrace): New function.
12717 (linux_target_ops): Add btrace ops.
12718 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12719 Add srv_linux_btrace=yes.
12720 (x86_64-*-linux*): Add linux-btrace.o.
12721 Add srv_linux_btrace=yes.
12722 * configure.ac: Define HAVE_LINUX_BTRACE.
12723 * config.in: Regenerated.
12724 * configure: Regenerated.
12726 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12728 * server.c (handle_qxfer): Preserve error message if -3 is
12730 (qxfer): Document the -3 return value.
12732 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12734 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12735 (linux_btrace_h): New variable.
12736 (linux-btrace.o): New rule.
12738 2013-03-08 Stan Shebs <stan@codesourcery.com>
12739 Hafiz Abid Qadeer <abidh@codesourcery.com>
12741 * tracepoint.c (trace_buffer_size): New global.
12742 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12743 (init_trace_buffer): Change to one-argument function. Allocate
12744 trace buffer memory.
12745 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12746 handle QTBuffer:size packet.
12747 (cmd_bigqtbuffer_size): New function.
12748 (initialize_tracepoint): Call init_trace_buffer with
12749 DEFAULT_TRACE_BUFFER_SIZE.
12750 * server.c (handle_query): Add QTBuffer:size in the
12753 2013-03-07 Yao Qi <yao@codesourcery.com>
12755 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12756 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12758 (cmd_qtsp): Adjust condition. Do post increment.
12759 Set cur_action and cur_step_action back to 0.
12761 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12764 * linux-low.c (linux_write_memory): Return early success if LEN is
12767 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12769 * configure.srv: Add x86_64-*-cygwin* as target.
12771 2013-02-28 Tom Tromey <tromey@redhat.com>
12773 * configure.ac: Invoke AC_SYS_LARGEFILE.
12774 * configure, config.in: Rebuild.
12776 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12778 * win32-low.c: Throughout, fix format strings and casts of
12779 printf-like functions to avoid type related warnings on all
12781 (get_child_debug_event): Print dwDebugEventCode as hex since
12782 that's how it's usually documented.
12784 2013-02-28 Yao Qi <yao@codesourcery.com>
12786 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12789 2013-02-27 Jiong Wang <jiwang@tilera.com>
12791 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12792 (reg-tilegx32.c): New rule.
12793 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12794 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12795 different register info initializer according to elf class.
12796 (init_registers_tilgx32): New function. The tilegx32 register info
12798 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12799 (tile_store_gregset): Likewise.
12801 2013-02-27 Yao Qi <yao@codesourcery.com>
12803 * server.c (process_point_options): Print debug message when
12804 debug_threads is true.
12806 2013-02-26 Yao Qi <yao@codesourcery.com>
12808 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12810 2013-02-19 Pedro Alves <palves@redhat.com>
12811 Kai Tietz <ktietz@redhat.com>
12815 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12816 instead of strtoul to extract address from packet.
12817 (process_serial_event) <'z'>: Likewise.
12819 2013-02-18 Yao Qi <yao@codesourcery.com>
12821 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12823 2013-02-14 Pedro Alves <palves@redhat.com>
12827 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12828 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12830 2013-02-14 Pedro Alves <palves@redhat.com>
12832 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12834 2013-02-14 Pedro Alves <palves@redhat.com>
12836 * tracepoint.c (save_string): Delete.
12837 (add_tracepoint_action): Use savestring instead of save_string.
12839 2013-02-12 Pedro Alves <palves@redhat.com>
12841 * linux-xtensa-low.c: Ditto.
12842 * xtensa-xtregs.c: Ditto.
12844 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12846 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12849 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12851 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12852 aarch64_num_wp_regs and aarch64_num_bp_regs to
12853 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12855 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12857 * linux-aarch64-low.c (ps_get_thread_area): Replace
12858 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12860 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12861 Marcus Shawcroft <marcus.shawcroft@arm.com>
12862 Nigel Stephens <nigel.stephens@arm.com>
12863 Yufeng Zhang <yufeng.zhang@arm.com>
12865 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12866 (aarch64.c, aarch64-without-fpu.c): New targets.
12867 * configure.srv (aarch64*-*-linux*): New.
12868 * linux-aarch64-low.c: New file.
12870 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12872 * linux-low.c (handle_extended_wait, linux_create_inferior)
12873 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12874 (dequeue_one_deferred_signal, linux_resume_one_thread)
12875 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12876 (linux_tracefork_grandchild, linux_test_for_tracefork)
12877 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12878 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12879 where the argument is 0.
12881 2013-01-25 Yao Qi <yao@codesourcery.com>
12883 * event-loop.c: Include "queue.h".
12884 (gdb_event_p): New typedef.
12885 (struct gdb_event) <next_event>: Remove.
12886 (event_queue): Change to QUEUE(gdb_event_p).
12887 (async_queue_event): Remove.
12888 (gdb_event_xfree): New.
12889 (initialize_event_loop): New.
12890 (process_event): Use API from QUEUE.
12891 (wait_for_event): Likewise.
12892 * server.c (main): Call initialize_event_loop.
12893 * server.h (initialize_event_loop): Declare.
12895 2013-01-18 Yao Qi <yao@codesourcery.com>
12897 * ax.h (struct eval_agent_expr_context): New.
12898 (gdb_eval_agent_expr): Update declaration.
12899 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12900 TFRAME. Add new argument CTX.
12901 * server.h (struct eval_agent_expr_context): Declare.
12902 (agent_mem_read, agent_tsv_read): Update declaration.
12903 (agent_mem_read_string): Likewise.
12904 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12905 (add_traceframe_block): Add new argument TPOINT.
12906 Increase TPOINT->traceframe_usage.
12907 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12908 eval_tracepoint_agent_expr.
12909 (condition_true_at_tracepoint): Likewise.
12910 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12911 (agent_mem_read_string, agent_tsv_read): Likewise.
12913 2013-01-16 Yao Qi <yao@codesourcery.com>
12915 * linux-low.c (linux_resume_one_lwp): Don't check
12916 'lwp->bp_reinsert != 0'.
12918 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12919 Pedro Alves <palves@redhat.com>
12921 * lynx-low.c (ptrace_request_to_str): Define a temporary
12922 macro and use it to simplify this function's implementation.
12924 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12926 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12929 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12931 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12933 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12935 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12937 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12939 * lynx-low.c (lynx_resume): Use the resume_info parameter
12940 to determine the ptid for the lynx_ptrace call, unless
12941 it is equal to minus_one_ptid, in which case we use the
12942 ptid of the current_inferior.
12943 (lynx_wait_1): After having received a thread create/exit
12944 event, resume the inferior's execution using the signaling
12945 thread's ptid, rather than the old ptid.
12947 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12949 * lynx-low.c (lynx_resume): Delete variable ret.
12951 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12953 * gdbreplay.c (gdbreplay_version): Update copyright year.
12954 * server.c (gdbserver_version): Likewise.
12956 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12958 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12961 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12963 * lynx-low.c (ptrace_request_to_str): Add handling for
12964 PTRACE_GETTRACESIG.
12966 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12968 * lynx-low.c (lynx_attach): Delete variable new_process.
12970 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12972 * lynx-low.c (lynx_create_inferior): Delete variable
12975 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12977 * lynx-low.c (ptrace_request_to_str): Do not handle
12978 PTRACE_GETTHREADLIST if this macro does not exist.
12980 2012-12-15 Yao Qi <yao@codesourcery.com>
12982 * Makefile.in (OBS): Add notif.o.
12983 * notif.c, notif.h: New.
12984 * server.c: Include "notif.h".
12985 (struct vstop_notif) <next>: Remove.
12987 (queue_stop_reply): Update.
12988 (push_event, send_next_stop_reply): Remove.
12989 (discard_queued_stop_replies): Update.
12990 (notif_stop): New variable.
12991 (handle_v_stopped): Remove.
12992 (handle_v_requests): Don't call handle_v_stopped. Call
12993 handle_ack_notif instead.
12994 (queue_stop_reply_callback): Call notif_event_enque instead
12995 of queue_stop_reply.
12996 (handle_status): Don't call send_next_stop_reply, call
12997 notif_write_event instead.
12998 (kill_inferior_callback): Likewise.
12999 (detach_or_kill_inferior_callback): Likewise.
13000 (main): Call initialize_notif.
13001 (process_serial_event): Call QUEUE_is_empty.
13002 (handle_target_event): Call notif_push instead of push event.
13003 * server.h (push_event): Remove declaration.
13005 2012-12-10 Tom Tromey <tromey@redhat.com>
13007 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13008 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13011 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13012 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13013 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13014 (amd64-linux-ipa.o, ax.o): Rewrite.
13015 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13016 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13017 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13018 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13019 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13020 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13021 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13022 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13023 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13024 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13025 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13026 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13027 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13028 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13029 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13030 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13031 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13032 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13033 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13034 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13035 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13036 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13037 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13038 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13039 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13040 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13041 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13042 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13043 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13044 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13045 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13046 (reg-tilegx.o): Remove.
13047 (all_object_files): New macro.
13048 Include .deps files.
13049 * aclocal.m4, configure: Rebuild.
13050 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13051 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13052 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13054 2012-12-05 Tom Tromey <tromey@redhat.com>
13057 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13059 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
13061 * configure.ac: Check for linux/perf_event.h.
13062 * config.in: Regenerated.
13063 * configure: Regenerated.
13065 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13067 * hostio.c (handle_readlink): Decrease buffer size
13068 parameter passed to readlink by one byte.
13070 2012-11-26 Yao Qi <yao@codesourcery.com>
13072 * configure.ac (build_warnings): Append '-Wempty-body'.
13073 * configure: Regenerated.
13074 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13077 2012-11-15 Pierre Muller <muller@sourceware.org>
13079 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13080 * config.in: Regenerate.
13081 * configure: Regenerate.
13082 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13083 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13084 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13085 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13087 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13088 instead of <sys/wait.h> header.
13089 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13091 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
13093 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13094 (various make rules): Remove -DGDBSERVER
13096 2012-11-09 Yao Qi <yao@codesourcery.com>
13098 * spu-low.c (current_ptid): Move it to ..
13099 * gdbthread.h: ... here. New.
13100 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13101 * server.c (myresume, process_serial_event): Likewise.
13102 * thread-db.c (thread_db_find_new_threads): Likewise.
13103 * tracepoint.c (run_inferior_command): Likewise.
13105 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
13107 * server.c (handle_search_memory_1): Include access length in
13110 2012-09-05 Michael Brandt <michael.brandt@axis.com>
13112 * linux-crisv32-low.c: Fix compile errors.
13114 2012-09-04 Yao Qi <yao@codesourcery.com>
13116 * tracepoint.c (cmd_qtsv): Adjust debug message.
13117 Don't check CUR_TPOINT.
13119 2012-08-28 Yao Qi <yao@codesourcery.com>
13121 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13122 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13123 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13124 Remove declarations of xmalloc, xreallloc, xstrdup and
13126 * Makefile.in (libiberty_h): New.
13127 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13128 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13130 2012-08-23 Yao Qi <yao@codesourcery.com>
13132 * server.h: Remove declaration of 'xsnprintf'.
13134 2012-08-22 Keith Seitz <keiths@redhat.com>
13136 * server.h: Include build-gnulib-gbserver/config.h.
13137 * gdbreplay.c: Likewise.
13139 2012-08-08 Doug Evans <dje@google.com>
13141 * Makefile.in (SFILES): Add gdb_vecs.c.
13142 (OBS): Add gdb_vecs.o.
13143 (gdb_vecs_h, host_defs_h): New variables.
13144 (thread-db.o): Add $(gdb_vecs_h) dependency.
13145 (gdb_vecs.o): New rule.
13146 * thread-db.c: #include "gdb_vecs.h".
13147 (thread_db_load_search): Use a vector to iterate over path elements.
13148 Handle text appearing after "$pdir".
13150 * configure.ac: Add check for strstr.
13151 * config.in: Regenerate.
13152 * configure: Regenerate.
13154 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13156 * hostio.c (handle_pread): If pread fails, fall back to attempting
13158 (handle_pwrite): Likewise for pwrite.
13160 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13162 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13163 between unsupported TYPE and unimplementable ADDR/LEN combination.
13164 (arm_insert_point): Act on new return value.
13166 2012-07-31 Pedro Alves <palves@redhat.com>
13168 * server.c (process_point_options): Only skip tokens if we find
13169 one that is unrecognized. Don't treat 'X' specially while
13170 skipping unrecognized tokens.
13172 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13174 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13175 to 4-byte-align HW breakpoint addresses for Thumb.
13177 2012-07-27 Yao Qi <yao@codesourcery.com>
13181 * server.h: Declare gdb_agent_about_to_close.
13182 * target.c (kill_inferior): Include "agent.h".
13183 New. Send command 'kill'.
13184 * target.h (kill_inferior): Removed macro.
13185 * tracepoint.c (gdb_agent_about_to_close): New.
13186 (gdb_agent_helper_thread): Handle command 'close'.
13187 Wait endlessly until the inferior stops.
13188 Install gdb_agent_remove_socket to atexit hook.
13189 (agent_socket_name): New static variable.
13190 (gdb_agent_socket_init): Replace local variable 'name' with
13191 'agent_socket_name'.
13192 (gdb_agent_remove_socket): New.
13194 2012-07-27 Yao Qi <yao@codesourcery.com>
13196 * server.c (process_point_options): Stop at 'X' when parsing.
13198 2012-07-19 Michael Eager <eager@eagercon.com>
13200 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
13202 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13203 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13204 hardware breakpoint.
13206 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13208 * gdbserver/linux-low.c (initialize_low): Call
13209 linux_ptrace_init_warnings.
13211 2012-07-02 Doug Evans <dje@google.com>
13213 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13216 2012-07-02 Stan Shebs <stan@codesourcery.com>
13218 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13219 (ax.o): Add it to build rule.
13221 (OBS): Add format.o.
13222 (IPA_OBS): Add format.o.
13223 * server.c (handle_query): Claim support for breakpoint commands.
13224 (process_point_options): Add command case.
13225 (process_serial_event): Leave running if there are printfs in
13227 * mem-break.h (any_persistent_commands): Declare.
13228 (add_breakpoint_commands): Declare.
13229 (gdb_no_commands_at_breakpoint): Declare.
13230 (run_breakpoint_commands): Declare.
13231 * mem-break.c (struct point_command_list): New struct.
13232 (struct breakpoint): New field command_list.
13233 (any_persistent_commands): New function.
13234 (add_commands_to_breakpoint): New function.
13235 (add_breakpoint_commands): New function.
13236 (gdb_no_commands_at_breakpoint): New function.
13237 (run_breakpoint_commands): New function.
13238 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13240 * ax.c: Include format.h.
13241 (ax_printf): New function.
13242 (gdb_eval_agent_expr): Add printf opcode.
13244 2012-06-13 Yao Qi <yao@codesourcery.com>
13246 * server.c (start_inferior): Remove duplicated writes to fields
13247 'last_resume_kind' and 'last_status' of 'current_inferior'.
13249 2012-06-12 Yao Qi <yao@codesourcery.com>
13250 Pedro Alves <palves@redhat.com>
13252 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13254 * server.c (handle_v_cont): Extend comment.
13256 2012-06-11 Yao Qi <yao@codesourcery.com>
13258 * linux-low.c (linux_attach): Add 'static'.
13260 2012-06-06 Yao Qi <yao@codesourcery.com>
13262 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13264 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13266 Fix gcc -flto compilation warning.
13267 * server.c (main): Make variable multi_mode and attach volatile.
13269 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13271 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13272 if the platform doesn't know about it.
13274 2012-05-30 Jeff Kenton <jkenton@tilera.com>
13276 * Makefile.in (SFILES): Add linux-tile-low.c.
13277 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13278 * configure.srv: Handle tilegx-*-linux*.
13279 * linux-tile-low.c: New file.
13281 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13283 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13285 2012-05-24 Pedro Alves <palves@redhat.com>
13289 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
13291 2012-05-24 Pedro Alves <palves@redhat.com>
13295 Replace target_signal with gdb_signal throughout.
13297 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13299 * linux-low.c (linux_store_registers): Avoid the copying sequence
13300 when no data has been retrieved by ptrace.
13302 2012-05-22 Will Deacon <will.deacon@arm.com>
13304 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13305 Include asm/ptrace.h.
13306 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13309 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13311 * linux-low.c (linux_store_registers): Don't re-retrieve data
13312 with ptrace that has already been obtained from /proc. Always
13313 copy any data retrieved with ptrace to the buffer supplied.
13315 2012-05-11 Yao Qi <yao@codesourcery.com>
13316 Pedro Alves <palves@redhat.com>
13318 * linux-low.c (enum stopping_threads_kind): New.
13319 (stopping_threads): Change type to `enum stopping_threads_kind'.
13320 (handle_extended_wait): If stopping and suspending threads, leave
13321 the new_lwp suspended too.
13322 (linux_wait_for_event): Adjust.
13323 (stop_all_lwps): Set `stopping_threads' to
13324 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13325 whether we're suspending threads or just stopping them. Assert no
13328 2012-04-29 Yao Qi <yao@codesourcery.com>
13330 * server.h: Move some code to ...
13331 * gdbthread.h: ... here. New.
13332 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13333 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13334 (nto-low.o, win32-low.o): Likewise.
13335 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13336 * regcache.c, remote-utils.c, server.c: Likewise.
13337 * target.c, tracepoint.c, win32-low.c: Likewise.
13339 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13341 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13342 (PTRACE_ARG4_TYPE): Likewise.
13343 (PTRACE_XFER_TYPE): Likewise.
13344 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
13345 ptrace to PTRACE_ARG3_TYPE.
13346 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
13347 (PTRACE_ARG4_TYPE): Likewise.
13348 (PTRACE_XFER_TYPE): Likewise.
13349 (linux_detach_one_lwp): Cast fourth argument of
13350 ptrace to long then PTRACE_ARG4_TYPE.
13351 (regsets_fetch_inferior_registers): Cast third argument of
13352 ptrace to long then PTRACE_ARG3_TYPE.
13353 (regsets_store_inferior_registers): Likewise.
13355 2012-04-20 Pedro Alves <palves@redhat.com>
13357 * configure: Regenerate.
13359 2012-04-19 Pedro Alves <palves@redhat.com>
13361 * Makefile.in (GNULIB_BUILDDIR): New.
13362 (LIBGNU, INCGNU, GNULIB_H): Adjust.
13363 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
13364 (all, install-only, uninstall, clean-info, all-lib, clean): No
13365 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
13366 (maintainer-clean realclean distclean): Use subdir_do.
13368 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
13369 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
13370 * acinclude.m4: Include acx_configure_dir.m4.
13371 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
13372 calls. Call AC_PROG_RANLIB. Configure gnulib using
13375 (GNULIB_STDINT_H): Adjust.
13376 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
13377 * gdbreplay.c: Include build-gnulib/config.h.
13378 * server.h: Likewise.
13379 * aclocal.m4: Regenerate.
13380 * config.in: Regenerate.
13381 * configure: Regenerate.
13383 2012-04-19 Pedro Alves <palves@redhat.com>
13385 * Makefile.in (LIBGNU, INCGNU): Adjust.
13386 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
13387 (all, install-only, uninstall, clean-info, all-lib, clean)
13388 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
13389 * configure.ac: Adjust AC_OUTPUT output.
13390 * aclocal.m4: Regenerate.
13391 * configure: Regenerate.
13393 2012-04-19 Pedro Alves <palves@redhat.com>
13395 * Makefile.in (generated_files): New.
13396 (server_h): Remove the explicit dependency on config.h, and depend
13397 on $generated_files.
13399 2012-04-19 Pedro Alves <palves@redhat.com>
13401 * Makefile.in (INCGNU): Add -Ignulib.
13403 2012-04-19 Pedro Alves <palves@redhat.com>
13405 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
13406 (INCGNU): ... this, and spell out -I here.
13407 (GNULIB_LIB): Rename to ...
13408 (LIBGNU): ... this.
13409 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
13411 2012-04-19 Pedro Alves <palves@redhat.com>
13413 * config.in: Regenerate.
13415 2012-04-19 Pedro Alves <palves@redhat.com>
13417 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
13418 * server.h (memmem): Remove declaration.
13419 * config.in: Regenerate.
13420 * configure: Regenerate.
13422 2012-04-19 Yao Qi <yao@codesourcery.com>
13424 * Makefile.in (SFILES): Add common/vec.c.
13428 2012-04-19 Yao Qi <yao@codesourcery.com>
13430 * remote-utils.c (prepare_resume_reply): Replace with macro
13431 target_core_of_thread.
13432 * server.c (handle_qxfer_threads_proper): Likewise.
13433 * target.h (traget_core_of_thread): New macro.
13435 2012-04-18 Pedro Alves <palves@redhat.com>
13437 * aclocal.m4: Regenerate.
13438 * configure: Regenerate.
13440 2012-04-16 Yao Qi <yao@codesourcery.com>
13442 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
13443 duplicated on address.
13445 2012-04-16 Yao Qi <yao@codesourcery.com>
13447 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
13448 (struct tracepoint_action_ops) <send>: New field.
13449 (m_tracepoint_action_send, r_tracepoint_action_send): New.
13450 (agent_expr_send, x_tracepoint_action_send): New.
13451 (l_tracepoint_action_send): New.
13452 (cmd_qtdp): Download and install tracepoint
13453 according to `use_agent'.
13454 (run_inferior_command): Add one more parameter `len'.
13456 (tracepoint_send_agent): New.
13457 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
13459 2012-04-16 Yao Qi <yao@codesourcery.com>
13461 * tracepoint.c (download_tracepoints): Moved to ...
13462 (cmd_qtstart): ... here.
13464 2012-04-14 Yao Qi <yao@codesourcery.com>
13466 * tracepoint.c: Include inttypes.h.
13467 (struct collect_memory_action): Use sized types.
13468 (struct tracepoint): Likewise.
13469 (cmd_qtdp, stop_tracing): Update print specifiers.
13470 (cmd_qtp, response_tracepoint): Likewise.
13471 (collect_data_at_tracepoint): Likewise.
13472 (collect_data_at_step): Likewise.
13474 2012-04-14 Yao Qi <yao@codesourcery.com>
13476 Import gnulib module inttypes.
13477 * aclocal.m4, config.in, configure: Regenerated.
13479 2012-04-14 Yao Qi <yao@codesourcery.com>
13481 * Makefile.in (maintainer-clean, realclean, distclean): Remove
13482 Makefile and config.status at last.
13484 2012-04-13 Yao Qi <yao@codesourcery.com>
13486 * tracepoint.c: Include stdint.h unconditionally.
13488 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13490 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
13491 on BFD_HAVE_SYS_PROCFS_TYPE.
13492 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
13493 * configure: Regenerate.
13494 * config.in: Likewise.
13496 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13498 * Makefile.in (clean): Also remove x32.c x32-linux.c
13499 x32-avx.c x32-avx-linux.c.
13500 (x32.o): New target.
13502 (x32-linux.o): Likewise.
13503 (x32-linux.c): Likewise.
13504 (x32-avx.o): Likewise.
13505 (x32-avx.c): Likewise.
13506 (x32-avx-linux.o): Likewise.
13507 (x32-avx-linux.c): Likewise.
13509 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
13510 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
13511 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
13512 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
13513 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
13514 i386/x32-avx-linux.xml.
13516 * linux-x86-low.c (init_registers_x32_linux): New prototype.
13517 (init_registers_x32_avx_linux): Likwise.
13518 (x86_linux_update_xmltarget): Call init_registers_x32_linux
13519 or init_registers_x32_avx_linux if linux_is_elf64 is false.
13521 2012-04-13 Pedro Alves <palves@redhat.com>
13523 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
13524 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
13525 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
13526 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
13529 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13531 * linux-x86-low.c (compat_x32_clock_t): New.
13532 (compat_x32_siginfo_t): Likewise.
13533 (compat_x32_siginfo_from_siginfo): Likewise.
13534 (siginfo_from_compat_x32_siginfo): Likewise.
13535 (linux_is_elf64): Likewise.
13536 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
13537 and siginfo_from_compat_x32_siginfo for x32.
13538 (x86_arch_setup): Set linux_is_elf64.
13540 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13543 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13545 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13546 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13547 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13548 compatible with process.
13550 2012-04-12 Yao Qi <yao@codesourcery.com>
13552 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
13553 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
13554 (install-only, install-info, clean): Handle sub dir gnulib.
13555 (all-lib, am--refresh): New targets.
13556 (memmem.o): Remove target.
13557 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
13558 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
13559 (AC_REPLACE_FUNCS): Remove memmem.
13560 Invoke gl_INIT and AM_INIT_AUTOMAKE.
13561 (AC_OUTPUT): Generate Makefile in gnulib/.
13562 * aclocal.m4, config.in, configure: Regenerated.
13564 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13566 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13568 2012-04-05 Pedro Alves <palves@redhat.com>
13570 -Werror=strict-aliasing
13572 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13575 2012-04-04 Pedro Alves <palves@redhat.com>
13577 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13578 (sparc_store_gregset_from_stack, sparc_store_gregset)
13579 (sparc_breakpoint_at): Fix formatting.
13581 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13583 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13585 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13586 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13587 * config.in: Regenerate.
13588 * configure: Likewise.
13590 2012-03-29 Pedro Alves <palves@redhat.com>
13592 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13593 Correct ptrace arguments.
13595 2012-03-28 Pedro Alves <palves@redhat.com>
13597 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13598 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13599 (IA64_FR1_REGNUM): New defines.
13600 (ia64_fetch_register): New.
13601 (the_low_target): Install it.
13602 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13604 * linux-low.c (linux_fetch_registers): Try the
13605 the_low_target.fetch_register hook first.
13607 * linux-arm-low.c (the_low_target): Adjust.
13608 * linux-bfin-low.c (the_low_target): Adjust.
13609 * linux-cris-low.c (the_low_target): Adjust.
13610 * linux-crisv32-low.c (the_low_target): Adjust.
13611 * linux-m32r-low.c (the_low_target): Adjust.
13612 * linux-m68k-low.c (the_low_target): Adjust.
13613 * linux-mips-low.c (the_low_target): Adjust.
13614 * linux-ppc-low.c (the_low_target): Adjust.
13615 * linux-s390-low.c (the_low_target): Adjust.
13616 * linux-sh-low.c (the_low_target): Adjust.
13617 * linux-sparc-low.c (the_low_target): Adjust.
13618 * linux-tic6x-low.c (the_low_target): Adjust.
13619 * linux-x86-low.c (the_low_target): Adjust.
13620 * linux-xtensa-low.c (the_low_target): Adjust.
13622 2012-03-26 Pedro Alves <palves@redhat.com>
13624 * server.c (handle_qxfer_libraries): Don't bail early if
13625 the_target->qxfer_libraries_svr4 is not NULL.
13627 2012-03-26 Pedro Alves <palves@redhat.com>
13629 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13631 2012-03-23 Pedro Alves <palves@redhat.com>
13633 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13634 "library-list-svr4" element's start tag when the the DSO list is
13637 2012-03-23 Pedro Alves <palves@redhat.com>
13639 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13640 a variable whose type size is the same as the inferior's pointer
13643 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13645 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13647 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13648 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13649 * linux-low.h: Include <signal.h>.
13650 (struct siginfo): Remove forward declaration.
13651 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13654 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13656 * .gitignore: Ignore more files.
13658 2012-03-19 Pedro Alves <palves@redhat.com>
13659 Jan Kratochvil <jan.kratochvil@redhat.com>
13661 * server.c (cont_thread, general_thread): Add describing comments.
13662 (start_inferior): Clear `cont_thread'.
13663 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13666 2012-03-15 Yao Qi <yao@codesourcery.com>
13668 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13670 (cmd_qtdp): ... here.
13672 2012-03-15 Yao Qi <yao@codesourcery.com>
13674 * tracepoint.c (struct tracepoint_action_ops): New.
13675 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13676 (m_tracepoint_action_download): New.
13677 (r_tracepoint_action_download): New.
13678 (x_tracepoint_action_download): New.
13679 (l_tracepoint_action_download): New.
13680 (add_tracepoint_action): Install `action->ops' according type.
13681 (download_tracepoint_1): Move code `download' function pointer
13682 of various tracepoint_action_ops.
13684 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13686 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13687 linux_ptrace_attach_warnings.
13689 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13691 * Makefile.in (linux-ptrace.o): New.
13692 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13693 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13694 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13695 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13696 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13698 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13700 2012-03-08 Yao Qi <yao@codesourcery.com>
13701 Pedro Alves <palves@redhat.com>
13703 Fix PR server/13392.
13704 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13705 offset of JMP insn.
13706 * tracepoint.c (remove_tracepoint): New.
13707 (cmd_qtdp): Call remove_tracepoint when failed to install.
13709 2012-03-07 Pedro Alves <palves@redhat.com>
13711 * linux-low.c (get_detach_signal): New.
13712 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13713 Pass on pending signals to PTRACE_DETACH. Check the result of the
13715 * server.c (program_signals, program_signals_p): New.
13716 (handle_general_set): Handle QProgramSignals.
13717 * server.h (program_signals, program_signals_p): Declare.
13719 2012-03-05 Pedro Alves <palves@redhat.com>
13720 Jan Kratochvil <jan.kratochvil@redhat.com>
13722 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13725 2012-03-03 Yao Qi <yao@codesourcery.com>
13727 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13728 agent_look_up_symbols.
13730 2012-03-03 Yao Qi <yao@codesourcery.com>
13732 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13733 (linux-x86-low.o): Likewise.
13734 * server.h: Remove in_process_agent_loaded.
13735 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13739 2012-03-03 Yao Qi <yao@codesourcery.com>
13741 * tracepoint.c (gdb_agent_capability): New global.
13742 (in_process_agent_loaded_ust): Renamed to
13743 `in_process_agent_supports_ust'.
13745 (in_process_agent_supports_ust): Call agent_capability_check.
13746 (clear_installed_tracepoints): Assert that agent supports
13749 2012-03-03 Yao Qi <yao@codesourcery.com>
13751 * linux-low.c (linux_supports_agent): New.
13752 (linux_target_ops): Initialize field `supports_agent' with
13753 linux_supports_agent.
13754 * target.h (struct target_ops) <supports_agent>: New.
13755 (target_supports_agent): New macro.
13756 * server.c (handle_general_set): Handle packet 'QAgent'.
13757 (handle_query): Send `QAgent+'.
13758 * Makefile.in (server.o): Depends on agent.h.
13760 2012-03-03 Yao Qi <yao@codesourcery.com>
13762 * Makefile.in (OBS): Add agent.o.
13763 Add new rule for agent.o.
13764 Track dependence of tracepoint.c on agent.h.
13765 * tracepoint.c (run_inferior_command_1):
13766 (run_inferior_command): Call agent_run_command.
13767 (gdb_ust_connect_sync_socket): Deleted. Move it to
13769 (resume_thread, stop_thread): Likewise.
13770 (gdb_ust_socket_init): Renamed to ...
13771 (gdb_agent_socket_init): ... New.
13772 (gdb_ust_thread): Renamed to ...
13773 (gdb_agent_helper_thread): ... New.
13774 (gdb_ust_init): Move some code to ...
13775 (gdb_agent_init): ... here. New.
13776 [HAVE_UST]: Call gdb_ust_init.
13777 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13778 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13779 * config.in, configure: Regenerated.
13781 2012-03-02 Pedro Alves <palves@redhat.com>
13783 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13784 * linux-low.c (struct simple_pid_list): New.
13785 (stopped_pids): New a struct simple_pid_list pointer.
13786 (add_to_pid_list, pull_pid_from_list): New.
13787 (handle_extended_wait): Don't assume the first signal new children
13788 report is SIGSTOP. Adjust call to pull_pid_from_list.
13789 (linux_wait_for_lwp): Adjust.
13791 2012-03-02 Yao Qi <yao@codesourcery.com>
13793 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13796 2012-03-02 Yao Qi <yao@codesourcery.com>
13798 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13799 `stop_pc' and `tpoint'. Update caller.
13801 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13803 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13804 * linux-low.c (use_linux_regsets): New macro.
13805 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13806 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13807 (linux_register_in_regsets): New function.
13808 (usr_fetch_inferior_registers): Skip registers covered by
13810 (usr_store_inferior_registers): Likewise.
13811 (usr_fetch_inferior_registers): New macro.
13812 (usr_store_inferior_registers): Likewise.
13813 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13814 (linux_store_registers): Likewise.
13815 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13817 (init_registers_mips64_dsp_linux): Likewise.
13818 (init_registers_mips_linux): New macro.
13819 (init_registers_mips_dsp_linux): Likewise.
13820 (mips_dsp_num_regs): Likewise.
13821 (DSP_BASE, DSP_CONTROL): New fallback macros.
13822 (mips_base_regs): New macro.
13823 (mips_regmap): Use it. Fix the size.
13824 (mips_dsp_regmap): New variable.
13825 (mips_dsp_regset_bitmap): Likewise.
13826 (mips_arch_setup): New function.
13827 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13829 (mips_cannot_store_register): Likewise.
13830 (the_low_target): Update .arch_setup, .num_regs and .regmap
13831 initializers. Add .regset_bitmap initializer.
13832 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13834 * linux-bfin-low.c (the_low_target): Likewise.
13835 * linux-cris-low.c (the_low_target): Likewise.
13836 * linux-crisv32-low.c (the_low_target): Likewise.
13837 * linux-ia64-low.c (the_low_target): Likewise.
13838 * linux-m32r-low.c (the_low_target): Likewise.
13839 * linux-m68k-low.c (the_low_target): Likewise.
13840 * linux-ppc-low.c (the_low_target): Likewise.
13841 * linux-s390-low.c (the_low_target): Likewise.
13842 * linux-sh-low.c (the_low_target): Likewise.
13843 * linux-sparc-low.c (the_low_target): Likewise.
13844 * linux-tic6x-low.c (the_low_target): Likewise.
13845 * linux-x86-low.c (the_low_target): Likewise.
13846 * linux-xtensa-low.c (the_low_target): Likewise.
13847 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13848 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13849 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13851 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13852 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13854 2012-02-29 Yao Qi <yao@codesourcery.com>
13855 Pedro Alves <palves@redhat.com>
13857 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13858 `step_over_finished' is true.
13860 2012-02-27 Pedro Alves <palves@redhat.com>
13862 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13863 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13865 2012-02-27 Pedro Alves <palves@redhat.com>
13868 * linux-low.c (pid_is_stopped): New.
13869 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13871 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13873 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13876 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13878 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13880 2012-02-24 Luis Machado <lgustavo@codesourcery>
13882 * server.c (handle_query): Advertise support for target-side
13883 breakpoint condition evaluation.
13884 (process_point_options): New function.
13885 (process_serial_event): When inserting a breakpoint, check for
13886 a target-side condition that should be evaluated.
13888 * mem-break.c: Include regcache.h and ax.h.
13889 (point_cond_list_t): New data structure.
13890 (breakpoint) <cond_list>: New field.
13891 (find_gdb_breakpoint_at): Make non-static.
13892 (delete_gdb_breakpoint_at): Clear any target-side
13894 (clear_gdb_breakpoint_conditions): New function.
13895 (add_condition_to_breakpoint): Likewise.
13896 (add_breakpoint_condition): Likewise.
13897 (gdb_condition_true_at_breakpoint): Likewise.
13898 (gdb_breakpoint_here): Return result directly instead
13899 of going through a local variable.
13901 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13902 (clear_gdb_breakpoint_conditions): Likewise.
13903 (add_breakpoint_condition): Likewise.
13904 (gdb_condition_true_at_breakpoint): Likewise.
13906 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13907 (need_step_over_p): Take target-side breakpoint condition into
13910 2012-02-24 Luis Machado <lgustavo@codesourcery>
13912 * server.h: Include tracepoint.h.
13913 (agent_mem_read, agent_get_trace_state_variable_value,
13914 agent_set_trace_state_variable_value,
13915 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13916 get_set_tsv_func_addr): New prototypes.
13918 * ax.h: New include file.
13919 * ax.c: New source file.
13921 * tracepoint.c: Include ax.h.
13922 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13923 agent_expr, eval_result_type): Move to ax.h.
13924 (parse_agent_expr): Rename to ...
13925 (gdb_parse_agent_expr): ... this, make it non-static and move
13927 (unparse_agent_expr) Rename to ...
13928 (gdb_unparse_agent_expr): ... this, make it non-static and move
13930 (eval_agent_expr): Rename to ...
13931 (eval_tracepoint_agent_expr): ... this.
13932 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13933 forward declarations.
13934 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13935 (agent_get_trace_state_variable_value): New function.
13936 (agent_set_trace_state_variable_value): New function.
13937 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13938 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13939 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13940 (condition_true_at_tracepoint): Likewise.
13941 (parse_agent_expr): Rename to ...
13942 (gdb_parse_agent_expr): ... this and move to ax.c.
13943 (unparse_agent_expr): Rename to ...
13944 (gdb_unparse_agent_expr): ... this and move to ax.c.
13945 (gdb_agent_op_name): Move to ax.c.
13946 (eval_agent_expr): Rename to ...
13947 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13949 (eval_tracepoint_agent_expr): New function.
13950 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13952 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13954 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13955 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13956 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13957 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13958 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13959 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13960 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13961 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13962 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13963 (compile_bytecodes): Remove forward declaration.
13964 (is_goto_target): Move to ax.c.
13965 (compile_bytecodes): Move to ax.c and call
13966 agent_get_trace_state_variable_value (...) and
13967 agent_set_trace_state_variable_value (...).
13969 * Makefile.in: Update ax.c and IPA dependencies.
13971 2012-02-24 Pedro Alves <palves@redhat.com>
13973 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13974 (cmd_bigqtbuffer_circular): ... this. Only handle
13975 'QTBuffer:circular:'.
13976 (handle_tracepoint_general_set): Adjust.
13978 2012-02-16 Yao Qi <yao@codesourcery.com>
13980 * inferiors.c: Move code to ...
13981 * dll.c: .... here. New.
13982 * server.h: Declare clear_dlls.
13983 * Makefile.in (SFILES): Add dll.c.
13987 2012-02-11 Yao Qi <yao@codesourcery.com>
13989 * server.c: (handle_monitor_command): Add a new parameter
13991 (handle_query): Update caller.
13993 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13995 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13996 * configure, config.in: Regenerate.
13997 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14000 2012-02-02 Pedro Alves <palves@redhat.com>
14002 Try SIGKILL first, then PTRACE_KILL.
14003 * linux-low.c (linux_kill_one_lwp): New.
14004 (linux_kill_one_lwp): Rename to ...
14005 (kill_one_lwp_callback): ... this. Use the new
14006 linux_kill_one_lwp.
14008 2012-02-02 Pedro Alves <palves@redhat.com>
14010 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14013 2012-01-27 Pedro Alves <palves@redhat.com>
14015 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14016 (elf_64_file_p): Make static.
14017 (linux_pid_exe_is_elf_64_file): New.
14018 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14019 Delete declarations.
14020 (linux_pid_exe_is_elf_64_file): Declare.
14021 * linux-x86-low.c (x86_arch_setup): Use
14022 linux_pid_exe_is_elf_64_file.
14024 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14026 * linux-low.c (linux_wait_for_event_1): Rename to ...
14027 (linux_wait_for_event): ... here and merge it with former
14028 linux_wait_for_event - new variable wait_ptid, use it.
14029 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14031 2012-01-23 Pedro Alves <palves@redhat.com>
14033 * server.c (main): Avoid yet another case of infinite loop while
14034 detaching/killing after a longjmp.
14036 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14039 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14041 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14043 * hostio.c (handle_readlink): New function.
14044 (handle_vFile): Call it to handle "vFile:readlink" packets.
14046 2012-01-20 Pedro Alves <palves@redhat.com>
14047 Ulrich Weigand <ulrich.weigand@linaro.org>
14049 * server.c (handle_v_requests): Only support vAttach and vRun to
14050 start multiple processes when in extended protocol mode.
14052 2012-01-17 Pedro Alves <palves@redhat.com>
14054 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14055 memalign plus mprotect to allocate the scratch buffer.
14057 2012-01-13 Pedro Alves <palves@redhat.com>
14059 * server.c (attach_inferior): Clear `cont_thread'.
14061 2012-01-13 Pedro Alves <palves@redhat.com>
14063 * server.c (main): Avoid infinite loop while detaching/killing
14066 2012-01-09 Doug Evans <dje@google.com>
14068 * server.c (start_inferior): Set last_ptid in --wrapper case.
14070 2012-01-06 Yao Qi <yao@codesourcery.com>
14072 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14074 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14076 2012-01-04 Yao Qi <yao@codesourcery.com>
14078 * tracepoint.c (cmd_qtdp): Print debug message
14079 for static tracepoint.
14081 2012-01-04 Yao Qi <yao@codesourcery.com>
14083 * tracepoint.c (trace_vdebug): Differentiate debug message
14084 between gdbserver and IPA.
14086 2012-01-03 Yao Qi <yao@codesourcery.com>
14088 * tracepoint.c (tracepoint_was_hit): Don't collect for
14091 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14093 * terminal.h: Reformat copyright header.
14095 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14097 * server.c (gdbserver_version): Update copyright year.
14098 * gdbreplay.c (gdbreplay_version): Likewise.
14100 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14102 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14105 2011-12-18 Hui Zhu <teawater@gmail.com>
14106 * linux-low.c (linux_create_inferior): Save return value to ret.
14108 2011-12-18 Hui Zhu <teawater@gmail.com>
14110 * linux-low.c (linux_create_inferior): Save return value to ret.
14112 2011-12-16 Doug Evans <dje@google.com>
14114 * linux-low.c (linux_create_inferior): If stdio connection,
14115 redirect stdin from /dev/null, stdout to stderr.
14116 * remote-utils.c (remote_is_stdio): New static global.
14117 (remote_connection_is_stdio): New function.
14118 (remote_prepare): Handle stdio connection.
14119 (remote_open): Ditto.
14120 (remote_close): Don't close stdin for stdio connections.
14121 (read_prim,write_prim): New functions. Replace all calls to
14122 read/write to these.
14123 * server.c (main): Watch for "-" argument. Move call to
14124 remote_prepare before start_inferior.
14125 * server.h (STDIO_CONNECTION_NAME): New macro.
14126 (remote_connection_is_stdio): Declare.
14128 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14129 in debugging output.
14131 2011-12-15 Yao Qi <yao@codesourcery.com>
14133 * tracepoint.c: Include sys/syscall.h.
14134 (gdb_ust_thread): Remove preprocessor conditional.
14136 2011-12-14 Pedro Alves <pedro@codesourcery.com>
14138 * linux-low.c (linux_detach_one_lwp): Call
14139 the_low_target.prepare_to_resume before detaching.
14141 2011-12-14 Yao Qi <yao@codesourcery.com>
14143 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14146 2011-12-14 Yao Qi <yao@codesourcery.com>
14148 * i386-low.c (i386_low_stopped_data_address): Initialize local
14149 variable `control'.
14151 2011-12-13 Pedro Alves <pedro@codesourcery.com>
14155 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14156 DR_CONTROL unless necessary. Extend comments.
14157 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14158 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14160 2011-12-13 Yao Qi <yao@codesourcery.com>
14162 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14164 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14166 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14168 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14169 Print new debug message for such case.
14171 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14173 Fix overlapping memcpy.
14174 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14175 the read_inferior_memory transfer.
14176 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14177 write_inferior_memory transfer.
14178 (set_fast_tracepoint_jump): New variable buf. Use it for the
14179 read_inferior_memory and write_inferior_memory transfers.
14180 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14181 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14182 Use it for the write_inferior_memory transfer.
14183 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14186 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14188 * linux-low.c (fetch_register, store_register): Make code
14189 consistent, fix formatting.
14191 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14193 * linux-low.c (usr_store_inferior_registers): Factor out code
14194 to handle individual registers into...
14195 (store_register): ... this new function.
14197 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14199 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14200 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14201 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14202 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14203 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14204 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14205 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14206 (srv_xmlfiles): Add new XML files.
14208 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14210 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14211 (init_registers_s390_linux32v1): Add prototype.
14212 (init_registers_s390_linux32v2): Likewise.
14213 (init_registers_s390_linux64v1): Likewise.
14214 (init_registers_s390_linux64v2): Likewise.
14215 (init_registers_s390x_linux64v1): Likewise.
14216 (init_registers_s390x_linux64v2): Likewise.
14217 (s390_num_regs): Increment to 52.
14218 (s390_regmap): Add orig_r2 register.
14219 (s390_num_regs_3264): Increment to 68.
14220 (s390_regmap_3264): Add orig_r2 register.
14221 (s390_collect_ptrace_register): Handle orig_r2 register.
14222 (s390_supply_ptrace_register): Likewise.
14223 (s390_fill_last_break): New function.
14224 (s390_store_last_break): Likewise.
14225 (s390_fill_system_call): New function.
14226 (s390_store_system_call): Likewise.
14227 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14229 (s390_check_regset): New function.
14230 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14231 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14232 Update target_regsets for available register sets.
14234 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14235 Jan Kratochvil <jan.kratochvil@redhat.com>
14237 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14238 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14240 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14241 * linux-low.h (struct process_info_private): New member r_debug.
14242 * server.c (handle_qxfer_libraries): Call
14243 the_target->qxfer_libraries_svr4.
14244 (handle_qxfer_libraries_svr4): New function.
14245 (qxfer_packets): New entry "libraries-svr4".
14246 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14247 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14248 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14249 PACKET_qXfer_libraries_svr4.
14251 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14253 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14254 PSW address/mask between 8-byte and 16-byte formats.
14255 (s390_supply_ptrace_register): Likewise.
14256 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14257 basic addressing mode bit.
14259 2011-11-24 Stan Shebs <stan@codesourcery.com>
14261 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14263 2011-11-17 Stan Shebs <stan@codesourcery.com>
14265 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14266 (tracing_start_time): New global.
14267 (tracing_stop_time): New global.
14268 (tracing_user_name): New global.
14269 (tracing_notes): New global.
14270 (tracing_stop_note): New global.
14271 (cmd_qtstart): Set traceframe_usage, start_time.
14272 (stop_tracing): Set stop_time.
14273 (cmd_qtstatus): Report additional status.
14274 (cmd_qtp): New function.
14275 (handle_tracepoint_query): Call it.
14276 (cmd_qtnotes): New function.
14277 (handle_tracepoint_general_set): Call it.
14278 (get_timestamp): Rename from tsv_get_timestamp.
14280 2011-11-14 Stan Shebs <stan@codesourcery.com>
14281 Kwok Cheung Yeung <kcy@codesourcery.com>
14283 * linux-x86-low.c (small_jump_insn): New.
14284 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14285 trampoline and error message, build a trampoline and issue a small
14286 jump instruction to it.
14287 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14288 trampoline and error message.
14289 (x86_get_min_fast_tracepoint_insn_len): New.
14290 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14291 * linux-low.h (struct linux_target_ops): Add arguments to
14292 install_fast_tracepoint_jump_pad operation, add new operation.
14293 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14295 (linux_get_min_fast_tracepoint_insn_len): New function.
14296 (linux_target_op): Add new operation.
14297 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14298 (gdb_trampoline_buffer_end): Ditto.
14299 (gdb_trampoline_buffer_error): Ditto.
14300 (struct ipa_sym_addresses): Add fields for new IPA variables.
14301 (symbol_list): Add entries for new IPA variables.
14302 (struct tracepoint): Add fields to hold the address range of the
14303 trampoline used by the tracepoint.
14304 (trampoline_buffer_head): New static variable.
14305 (trampoline_buffer_tail): Ditto.
14306 (claim_trampoline_space): New function.
14307 (have_fast_tracepoint_trampoline_buffer): New function.
14308 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14310 (install_fast_tracepoint): Ditto, also add error buffer argument.
14311 (cmd_qtminftpilen): New function.
14312 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14313 (fast_tracepoint_from_trampoline_address): New function.
14314 (fast_tracepoint_collecting): Handle trampoline as part of jump
14316 (set_trampoline_buffer_space): New function.
14317 (initialize_tracepoint): Initialize new IPA variables.
14318 * target.h (struct target_ops): Add arguments to
14319 install_fast_tracepoint_jump_pad operation, add new
14320 get_min_fast_tracepoint_insn_len operation.
14321 (target_get_min_fast_tracepoint_insn_len): New.
14322 (install_fast_tracepoint_jump_pad): Add arguments.
14323 * server.h (IPA_BUFSIZ): Define.
14324 * linux-i386-ipa.c: Include extra header files.
14325 (initialize_fast_tracepoint_trampoline_buffer): New function.
14326 (initialize_low_tracepoint): Call it.
14327 * server.h (set_trampoline_buffer_space): Declare.
14328 (claim_trampoline_space): Ditto.
14329 (have_fast_tracepoint_trampoline_buffer): Ditto.
14331 2011-11-14 Yao Qi <yao@codesourcery.com>
14333 * server.c (handle_query): Handle InstallInTrace for qSupported.
14334 * tracepoint.c (add_tracepoint): Sort list.
14335 (install_tracepoint, download_tracepoint): New.
14336 (cmd_qtdp): Call them to install and download tracepoints.
14337 (sort_tracepoints): Removed.
14338 (cmd_qtstart): Update.
14340 2011-11-14 Yao Qi <yao@codesourcery.com>
14342 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14343 * mem-break.h: Declare.
14344 * tracepoint.c (cmd_qtstart): Move some code to ...
14345 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
14347 (download_tracepoints): Move some code to ...
14348 (download_tracepoint_1): ... here. New.
14350 2011-11-08 Yao Qi <yao@codesourcery.com>
14352 * remote-utils.c (relocate_instruction): A comment fix.
14354 2011-11-07 Joel Brobecker <brobecker@adacore.com>
14356 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
14357 (i386_dr_low_get_control, i386_dr_low_get_status): Use
14358 dr_status_mirror and dr_control_mirror from debug_reg_state.
14359 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
14360 (i386_initial_stuff): Remove use of deleted globals.
14361 (i386_get_thread_context, i386_set_thread_context,
14362 i386_thread_added): Use dr_status_mirror and dr_control_mirror
14363 from debug_reg_state.
14365 2011-11-05 Yao Qi <yao@codesourcery.com>
14367 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14368 address as TPOINT's.
14370 2011-11-02 Stan Shebs <stan@codesourcery.com>
14372 * tracepoint.c (agent_mem_read_string): New function.
14373 (eval_agent_expr): Call it for tracenz.
14374 * server.c (handle_query): Report support for tracenz.
14376 2011-11-02 Yao Qi <yao@codesourcery.com>
14378 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14380 2011-11-02 Yao Qi <yao@codesourcery.com>
14382 * target.h: Fix a typo in comment.
14384 2011-10-31 Pedro Alves <pedro@codesourcery.com>
14386 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
14387 clobber the breakpoints' shadows with fast tracepoint jumps.
14388 * mem-break.h (check_mem_write): Add `myaddr' parameter.
14389 * target.c (write_inferior_memory): Also pass MYADDR down to
14392 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14394 * configure.ac: Check support for personality routine.
14395 * configure: Regenerate.
14396 * config.in: Likewise.
14397 * linux-low.c: Include <sys/personality.h>.
14398 Define ADDR_NO_RANDOMIZE if necessary.
14399 (linux_create_inferior): Disable address space randomization when
14400 forking inferior, if requested.
14401 (linux_supports_disable_randomization): New function.
14402 (linux_target_ops): Install it.
14403 * server.h (disable_randomization): Declare.
14404 * server.c (disable_randomization): New global variable.
14405 (handle_general_set): Handle QDisableRandomization.
14406 (handle_query): Likewise for qSupported.
14407 (main): Support --disable-randomization and --no-disable-randomization
14408 command line arguments.
14409 * target.h (struct target_ops): Add supports_disable_randomization.
14410 (target_supports_disable_randomization): New macro.
14412 2011-09-29 Mike Frysinger <vapier@gentoo.org>
14414 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
14416 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
14417 [!PT_GETDSBT] (target_loadmap): New definition.
14418 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
14419 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
14420 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
14421 and PT_GETDSBT to LINUX_LOADMAP.
14422 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
14423 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
14425 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14427 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
14428 (arm_linux_hwbp_cap): New static variable.
14429 (arm_linux_get_hwbp_cap): Replace by ...
14430 (arm_linux_init_hwbp_cap): ... this new function.
14431 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
14432 (arm_linux_get_hw_watchpoint_count): Likewise.
14433 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14434 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
14435 (arm_prepare_to_resume): Use perror_with_name instead of error.
14437 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14439 * linux-arm-low.c: Include <signal.h>.
14440 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
14441 (struct arm_linux_hwbp_cap): New data type.
14442 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
14443 (struct arm_linux_hw_breakpoint): New data type.
14444 (MAX_BPTS, MAX_WPTS): Define.
14445 (struct arch_process_info, struct arch_lwp_info): New data types.
14446 (arm_linux_get_hwbp_cap): New function.
14447 (arm_linux_get_hw_breakpoint_count): Likewise.
14448 (arm_linux_get_hw_watchpoint_count): Likewise.
14449 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14450 (arm_hwbp_control_initialize): Likewise.
14451 (arm_hwbp_control_is_enabled): Likewise.
14452 (arm_hwbp_control_is_initialized): Likewise.
14453 (arm_hwbp_control_disable): Likewise.
14454 (arm_linux_hw_breakpoint_equal): Likewise.
14455 (arm_linux_hw_point_initialize): Likewise.
14456 (struct update_registers_data): New data structure.
14457 (update_registers_callback: New function.
14458 (arm_insert_point): Likewise.
14459 (arm_remove_point): Likewise.
14460 (arm_stopped_by_watchpoint): Likewise.
14461 (arm_stopped_data_address): Likewise.
14462 (arm_new_process): Likewise.
14463 (arm_new_thread): Likewise.
14464 (arm_prepare_to_resume): Likewise.
14465 (the_low_target): Register arm_insert_point, arm_remove_point,
14466 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
14467 arm_new_thread, and arm_prepare_to_resume.
14469 2011-09-15 Stan Shebs <stan@codesourcery.com>
14471 * server.h (struct emit_ops): Add compare-goto fields.
14472 * tracepoint.c (gdb_agent_op_sizes): New table.
14473 (emit_eq_goto): New function.
14474 (emit_ne_goto): New function.
14475 (emit_lt_goto): New function.
14476 (emit_le_goto): New function.
14477 (emit_gt_goto): New function.
14478 (emit_ge_goto): New function.
14479 (is_goto_target): New function.
14480 (compile_bytecodes): Recognize special cases of compare-goto
14481 combinations and call specialized emitters for them.
14482 * linux-x86-low.c (amd64_emit_eq_goto): New function.
14483 (amd64_emit_ne_goto): New function.
14484 (amd64_emit_lt_goto): New function.
14485 (amd64_emit_le_goto): New function.
14486 (amd64_emit_gt_goto): New function.
14487 (amd64_emit_ge_goto): New function.
14488 (amd64_emit_ops): Add the new functions.
14489 (i386_emit_eq_goto): New function.
14490 (i386_emit_ne_goto): New function.
14491 (i386_emit_lt_goto): New function.
14492 (i386_emit_le_goto): New function.
14493 (i386_emit_gt_goto): New function.
14494 (i386_emit_ge_goto): New function.
14495 (i386_emit_ops): Add the new functions.
14497 2011-09-08 Stan Shebs <stan@codesourcery.com>
14499 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14500 (i386_emit_epilogue): Restore %ebx.
14502 2011-08-31 Jie Zhang <jzhang918@gmail.com>
14504 * server.c (step_thread): Remove definition.
14505 (process_serial_event): Don't handle Hs.
14506 * server.h (step_thread): Remove declaration.
14507 * target.c (set_desired_inferior): Remove use of step_thread.
14509 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14511 * linux-low.c: Include linux-procfs.h.
14512 (linux_attach_lwp_1): Update comments.
14513 (linux_attach): Scan for existing threads when attaching to a
14514 process that is the tgid.
14515 * Makefile.in: Update dependencies.
14517 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14519 * configure.srv: Add linux-procfs.o dependencies.
14521 2011-08-14 Yao Qi <yao@codesourcery.com>
14523 * target.h (struct target_ops): Fix indent.
14524 * win32-low.c (win32_target_ops): Fix comment.
14526 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
14527 Yao Qi <yao@codesourcery.com>
14529 * Makefile.in (clean): Remove tic6x-*.c files.
14530 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
14531 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
14532 (tic6x-c64xp-linux.c): Likewise.
14533 * configure.srv: Add support for tic6x-*-uclinux.
14534 * linux-tic6x-low.c: New.
14535 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
14537 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
14538 Yao Qi <yao@codesourcery.com>
14540 * target.h (struct target_ops): Add read_loadmap.
14541 * linux-low.c (struct target_loadseg): New type.
14542 (struct target_loadmap): New type.
14543 (linux_read_loadmap): New function.
14544 (linux_target_ops): Add linux_read_loadmap.
14545 * server.c (handle_query): Support qXfer:fdpic:read packet.
14546 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14549 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14551 * win32-low.c: Include <stdint.h>.
14553 2011-07-22 Pedro Alves <pedro@codesourcery.com>
14555 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
14556 to the inferior here.
14557 (i386_remove_aligned_watchpoint): Ditto.
14558 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
14559 fit part of the watchpoint in the debug registers.
14560 (i386_update_inferior_debug_regs): New.
14561 (i386_low_insert_watchpoint): Work on a local mirror of the debug
14562 registers, and only update the inferior on success.
14563 (i386_low_remove_watchpoint): Ditto.
14565 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14567 * linux-low.c (compare_ints, unique, list_threads, show_process,
14568 linux_core_of_thread): Delete.
14569 (linux_target_ops): Change linux_core_of_thread to
14570 linux_common_core_of_thread.
14571 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14572 * utils.c (malloc_failure): Change type of argument.
14573 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14574 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14575 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14576 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14577 (IPA_OBJS): Add common-utils-ipa.o.
14578 (ptid_h, linux_osdata_h): New macros.
14579 (server_h): Add common/common-utils.h, common/xml-utils.h,
14580 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14582 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14583 ptid.o, buffer.o): New rules.
14584 (linux-low.o): Add common/linux-osdata.h as a dependency.
14585 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14586 * configure.ac: Add AC_HEADER_DIRENT check.
14587 * config.in: Regenerate.
14588 * configure: Regenerate.
14589 * remote-utils.c (xml_escape_text): Delete.
14590 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14591 buffer_xml_printf): Move to common/buffer.c.
14592 * server.c (main): Remove call to initialize_inferiors.
14593 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14594 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14595 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14596 internal_error, gdb_assert, gdb_assert_fail): Delete.
14597 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14598 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14600 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14601 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14602 initialize_inferiors): Delete.
14604 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14606 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14609 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14611 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14613 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14615 2011-05-26 Yao Qi <yao@codesourcery.com>
14617 * Makefile.in (thread-db.o): Track dependence to
14618 common/gdb_thread_db.h.
14619 * thread-db.c: include gdb_thread_db.h from right place.
14621 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14623 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14624 __FILE__ and __LINE__ to internal_error.
14626 2011-05-13 Doug Evans <dje@google.com>
14628 * thread-db.c (try_thread_db_load_from_sdir): New function.
14629 (try_thread_db_load_from_dir): New function.
14630 (thread_db_load_search): Handle $sdir, ignore $pdir.
14631 Remove trying of system directories if search of
14632 libthread-db-search-path fails, that is now done via $sdir.
14634 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14636 * server.c (handle_query): Add EnableDisableTracepoints to the list
14637 of supported features.
14638 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14640 (cmd_qtenable_disable): New.
14641 (cmd_qtstart): Install tracepoints even if disabled.
14642 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14643 receiving a QTEnable or QTDisable packet.
14644 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14645 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14647 (gdb_probe): Skip data collection if static tracepoint is disabled.
14649 2011-05-10 Doug Evans <dje@google.com>
14651 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14653 2011-05-04 Doug Evans <dje@google.com>
14655 * linux-low.c (linux_join): Skip process lookup.
14656 * spu-low.c (spu_join): Ditto.
14657 * server.c (join_inferiors_callback): Delete.
14658 (process_serial_event): For 'D' packet (detach) call join_inferior
14661 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14663 * README: Don't mention xscale*-*-linux*.
14664 * configure.srv (xscale*-*-linux*): Don't handle target.
14666 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14668 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14670 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14671 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14672 (i386_emit_void_call_2): Likewise.
14674 2011-04-26 Yao Qi <yao@codesourcery.com>
14676 * linux-low.c: Move common macros to linux-ptrace.h.
14677 Include linux-ptrace.h.
14678 * Makefile.in (linux_ptrace_h): New.
14679 (linux-low.o): Depends on linux-ptrace.h.
14681 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14683 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14684 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14685 (remote_prepare): New function with most of the TCP code from ...
14686 (remote_open): ... here. Detect PORT here unconditionally. Move also
14687 setting transport_is_reliable.
14688 * server.c (run_once): New variable.
14689 (gdbserver_usage): Document it.
14690 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14691 the first run if RUN_ONCE.
14692 * server.h (run_once, remote_prepare): New declarations.
14694 2011-04-19 Tom Tromey <tromey@redhat.com>
14696 * win32-low.c (handle_load_dll): Remove duplicate "the".
14698 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14700 Remove support for old Cygwin 1.5 versions.
14701 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14702 function to avoid warning.
14703 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14706 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14708 * gdbserver/server.h (Macro _): Define it if not available.
14710 2011-03-14 Michael Snyder <msnyder@vmware.com>
14712 * hostio.c (handle_close): Remove unnecessary null test.
14714 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14716 * Makefile.in (maintainer-clean realclean distclean): Remove
14717 "make ... subdir_do" command.
14719 2011-03-10 Michael Snyder <msnyder@vmware.com>
14721 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14723 * server.c (handle_v_run): Free alloced buffer on early return.
14725 2011-03-09 Yao Qi <yao@codesourcery.com>
14728 2011-03-04 Yao Qi <yao@codesourcery.com>
14730 * Makefile.in: Remove GNU make feature --directory.
14732 2011-03-05 Yao Qi <yao@codesourcery.com>
14734 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14735 (subdir_do): New make target. Copied from gdb/Makefile.
14736 (maintainer-clean, realclean, distclean, clean): Call corresponding
14737 make targets in common/Makefile.
14739 2011-02-11 Yao Qi <yao@codesourcery.com>
14741 * configure.ac: Call AC_PROG_RANLIB.
14742 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14743 * configure: Regenerate.
14745 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14747 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14749 2011-03-06 Yao Qi <yao@codesourcery.com>
14751 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14753 2011-03-05 Yao Qi <yao@codesourcery.com>
14755 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14756 (subdir_do): New make target. Copied from gdb/Makefile.
14757 (maintainer-clean, realclean, distclean, clean): Call corresponding
14758 make targets in common/Makefile.
14760 2011-03-04 Yao Qi <yao@codesourcery.com>
14762 * Makefile.in: Remove GNU make feature --directory.
14764 2011-03-04 Michael Snyder <msnyder@vmware.com>
14766 * server.c (queue_stop_reply): Call xmalloc not malloc.
14768 2011-03-02 Michael Snyder <msnyder@vmware.com>
14770 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14772 2011-02-28 Michael Snyder <msnyder@vmware.com>
14774 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14775 (cmd_qtframe): Ditto.
14776 (cmd_qtbuffer): Ditto.
14777 (cmd_bigqtbuffer): Ditto.
14779 * utils.c (decimal2str): Initialize 'width' to nine, then
14780 don't mess with it.
14782 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14784 * hostio.c (require_data): Free *data, not data.
14786 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14788 * hostio.c (require_data): Use free, not xfree.
14790 2011-02-27 Michael Snyder <msnyder@vmware.com>
14792 * server.c (handle_query): Discard unused value.
14794 * hostio.c (require_data): Free malloc memory before returning
14797 2011-02-26 Michael Snyder <msnyder@vmware.com>
14799 * linux-low.c (list_threads): Call closedir for dirent.
14801 2011-02-27 Michael Snyder <msnyder@vmware.com>
14803 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14804 a case statement falls through.
14806 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14808 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14811 2011-02-26 Michael Snyder <msnyder@vmware.com>
14813 * utils.c (decimal2str): Eliminate dead code and dead param.
14814 (pulongest): Drop dead param from call to decimal2str.
14817 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14819 Revert the following patch (not approved yet):
14820 2011-02-21 Hui Zhu <teawater@gmail.com>
14821 * tracepoint.c (tp_printf): New function.
14822 (eval_agent_expr): Handle gdb_agent_op_printf.
14824 2011-02-21 Hui Zhu <teawater@gmail.com>
14826 * tracepoint.c (tp_printf): New function.
14827 (eval_agent_expr): Handle gdb_agent_op_printf.
14829 2011-02-18 Tom Tromey <tromey@redhat.com>
14831 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14832 (tracepoint.o): Likewise.
14833 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14834 (gdb_agent_op_names): Likewise.
14836 2011-02-18 Tom Tromey <tromey@redhat.com>
14838 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14839 gdb_agent_op_rot>: New constants.
14840 (gdb_agent_op_names): Add pick and roll.
14841 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14844 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14846 * aclocal.m4: Regenerated with aclocal-1.11.1.
14848 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14850 * server.c (handle_qxfer_traceframe_info): New.
14851 (qxfer_packets): Register "traceframe-info".
14852 (handle_query): Report support for qXfer:traceframe-info:read+.
14853 * tracepoint.c (match_blocktype): New.
14854 (traceframe_find_block_type): Rename to ...
14855 (traceframe_walk_blocks): ... this. Add callback filter argument,
14857 (traceframe_find_block_type): New, reimplemented on top of
14858 traceframe_walk_blocks.
14859 (build_traceframe_info_xml): New.
14860 (traceframe_read_info): New.
14861 * server.h (traceframe_read_info): Declare.
14863 2011-02-11 Yao Qi <yao@codesourcery.com>
14865 * configure.ac: Call AC_PROG_RANLIB.
14866 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14867 * configure: Regenerate.
14869 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14871 * server.c (gdb_read_memory): Change return semantics to allow
14873 (handle_search_memory_1): Adjust.
14874 (process_serial_event) <'m' packet>: Handle partial transfers.
14875 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14877 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14879 * regcache.c (init_register_cache): Initialize
14880 regcache->register_status.
14881 (free_register_cache): Release regcache->register_status.
14882 (regcache_cpy): Copy register_status.
14883 (registers_to_string): Print 'x's for unavailable registers.
14884 (supply_register): Mark the register's status valid or
14885 unavailable, depending on whether a buffer was passed in or not.
14886 (supply_register_zeroed): New.
14887 (supply_regblock): Mark the registers' status valid or
14888 unavailable, depending on whether a buffer was passed in or not.
14889 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14890 (struct regcache): New `register_status' field.
14891 (supply_register_zeroed): Declare.
14892 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14893 supply_register_zeroed, rather than passing a NULL buffer to
14895 * tracepoint.c (fetch_traceframe_registers): Update comment.
14897 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14899 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14902 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14904 * server.h (decode_xfer_write): Change prototype.
14905 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14906 and don't extract the annex here.
14907 * server.c (decode_xfer_read): Remove `annex' parameter,
14908 and don't extract the annex here.
14909 (decode_xfer): New.
14910 (struct qxfer): New.
14911 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14912 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14913 (handle_qxfer_statictrace): New functions, abstracted out from
14914 handle_query, and made to use the struct qxfer interface.
14915 (handle_threads_qxfer_proper): Rename to ...
14916 (handle_qxfer_threads_proper): ... this.
14917 (handle_threads_qxfer): Rename to ...
14918 (handle_qxfer_threads): ... this. Adjust.
14919 (qxfer_packets): New array.
14920 (handle_qxfer): New function.
14921 (handle_query): Use handle_qxfer.
14923 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14925 * gdbreplay.c: Shorten lines of >= 80 columns.
14926 * linux-low.c: Ditto.
14927 * linux-ppc-low.c: Ditto.
14928 * linux-s390-low.c: Ditto.
14929 * linux-sparc-low.c: Ditto.
14930 * linux-x86-low.c: Ditto.
14931 * linux-xtensa-low.c: Ditto.
14932 * mem-break.c: Ditto.
14933 * nto-low.c: Ditto.
14934 * regcache.h: Ditto.
14935 * remote-utils.c: Ditto.
14938 * thread-db.c: Ditto.
14939 * tracepoint.c: Ditto.
14941 * win32-low.h: Ditto.
14943 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14945 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14948 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14950 * server.c (gdbserver_version): Update copyright year in version
14952 * gdbreplay.c (gdbreplay_version): Ditto.
14954 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14956 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14957 * linux-bfin-low.c: New file.
14958 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14959 PT_DATA_ADDR for BFIN targets.
14960 * Makefile.in (SFILES): Add linux-bfin-low.c.
14961 (clean): Remove reg-bfin.c.
14962 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14963 * README: Mention supported Blackfin targets.
14965 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14967 * .gitignore: New file.
14969 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14971 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14973 2010-10-22 Jie Zhang <jie@codesourcery.com>
14975 * Makefile.in: Add FLAGS_TO_PASS variable.
14976 (install): Remove dependency of install-only and recursively
14977 invoke make for install-only.
14979 2010-10-04 Doug Evans <dje@google.com>
14981 * Makefile.in (uninstall): Use $(DESTDIR).
14983 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14987 * linux-x86-low.c (compat_siginfo_from_siginfo)
14988 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14989 si_code is < 0. Check for si_code == SI_TIMER before checking for
14992 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14994 * lynx-i386-low.c: New file.
14995 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14997 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14999 * lynx-low.c (ptrace_request_to_str): Remove handling for
15000 request values that have been removed in LynxOS 5.x.
15002 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15004 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15007 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15009 * configure.ac: Add --enable-inprocess-agent option.
15010 * configure: Rebuilt.
15012 2010-09-06 Yao Qi <yao@codesourcery.com>
15014 * linux-low.c (linux_kill): Remove unused variable.
15015 (linux_stabilize_threads): Likewise.
15016 * server.c (start_inferior): Likewise.
15017 (queue_stop_reply_callback): Likewise.
15018 * tracepoint.c (do_action_at_tracepoint): Likewise.
15020 2010-09-06 Yao Qi <yao@codesourcery.com>
15022 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15025 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15027 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15029 2010-09-06 Pedro Alves <pedro@codesourcery.com>
15031 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15034 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15036 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15037 gdbserver/lynx-ppc-low.c: New files.
15038 * Makefile.in (lynx_low_h): New variable.
15039 (lynx-low.o, lynx-ppc-low.o): New rules.
15040 * configure.ac: On LynxOS, link with -lnetinet.
15041 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15042 * configure: regenerate.
15044 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15046 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15047 * configure.ac: Add check for vasprintf and vsnprintf.
15048 * configure, config.in: Regenerate.
15049 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15051 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15053 * gdbreplay.c: Move include of alloca.h up, next to include of
15055 * server.h: Add include of malloc.h.
15056 * mem-break.c: Remove include of malloc.h.
15057 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15059 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15061 * Makefile.in (memmem.o): Build with -Wno-error.
15063 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15065 * utils.c (xsnprintf): Make non-static.
15066 * server.h: Add xsnprintf declaration.
15067 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15068 replace calls to snprintf by calls to xsnprintf throughout.
15070 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15072 * configure.ac: Add configure check for alloca.
15073 * configure, config.in: Regenerate.
15074 * server.h: Include alloca.h if it exists.
15075 * gdbreplay.c: Include alloca.h if it exists.
15077 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15079 * linux-low.c (__SIGRTMIN): Define if not already defined.
15080 (linux_create_inferior): Check for __ANDROID__ rather than
15082 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15083 are already deferred.
15084 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15085 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15086 stopped and already has a pending signal to report.
15087 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15088 a pending signal to report or is moving out of a jump pad.
15089 (linux_init_signals): Check for __ANDROID__ rather than
15092 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15094 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15095 debug_threads check. Avoid a linear search when not doing debug
15098 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15100 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15101 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15102 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15103 (process_event): Change local fd's type to gdb_fildes_t.
15104 (create_file_handler): Adjust prototype.
15105 (delete_file_handler): Adjust prototype.
15106 (handle_file_event): Adjust prototype. Use pfildes.
15107 (create_file_event): Adjsut prototype.
15108 * remote-utils.c (remote_desc, listen_desc): Change type to
15110 * server.h: New gdb_fildes_t typedef.
15111 [USE_WIN32API]: Include winsock2.h.
15112 (delete_file_handler, add_file_handler): Adjust prototypes.
15113 (pfildes): Declare.
15114 * utils.c (pfildes): New.
15116 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15118 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15119 * configure: Regenerate.
15121 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15123 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15124 (linux_done_accessing_memory): ... this.
15125 (linux_target_ops): Adjust.
15126 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15127 * nto-low.c (nto_target_ops): Adjust comment.
15128 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15129 * spu-low.c (spu_target_ops): Adjust comment.
15130 * target.h (target_ops): Rename unprepare_to_access_memory field
15131 to done_accessing_memory.
15132 (unprepare_to_access_memory): Rename to ...
15133 (done_accessing_memory): ... this.
15135 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15137 * linux-low.c (linux_prepare_to_access_memory): New.
15138 (linux_unprepare_to_access_memory): New.
15139 (linux_target_ops): Install them.
15140 * server.c (read_memory): Rename to ...
15141 (gdb_read_memory): ... this. Use
15142 prepare_to_access_memory/prepare_to_access_memory.
15143 (write_memory): Rename to ...
15144 (gdb_write_memory): ... this. Use
15145 prepare_to_access_memory/prepare_to_access_memory.
15146 (handle_search_memory_1): Adjust.
15147 (process_serial_event): Adjust.
15148 * target.h (struct target_ops): New fields
15149 prepare_to_access_memory and unprepare_to_access_memory.
15150 (prepare_to_access_memory, unprepare_to_access_memory): New.
15151 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15152 prepare_to_access_memory/prepare_to_access_memory.
15153 * nto-low.c (nto_target_ops): Adjust.
15154 * spu-low.c (spu_target_ops): Adjust.
15155 * win32-low.c (win32_target_ops): Adjust.
15157 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15159 * Makefile.in (WARN_CFLAGS): Get it from configure.
15160 (WERROR_CFLAGS): New.
15161 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15162 * configure.ac: Introduce --enable-werror, which adds -Werror to
15163 the compiler command line. Enabled by default. Disable with
15164 --disable-werror. Add -Wdeclaration-after-statement
15165 Wpointer-arith and -Wformat-nonliteral to warning flags.
15166 * configure: Regenerate.
15168 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15170 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15172 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15174 * gdbreplay.c (remote_error): New.
15176 (expect): Use gdbchar. Check for error reading from GDB.
15177 Clarify sync error output.
15178 (play): Check for errors writing to GDB.
15179 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15180 * remote-utils.c (getpkt): Check for errors writing to the remote
15183 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15185 * linux-low.c (linux_wait_1): Move non-debugging code out of
15186 `debug_threads' control.
15188 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15190 * linux-low.c (linux_wait_1): Don't set last_status here.
15191 * server.c (push_event, queue_stop_reply_callback): Assert we're
15192 not pushing a TARGET_WAITKIND_IGNORE event.
15193 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15194 (myresume, handle_target_event): Set the thread's last_resume_kind
15195 and last_status from the target returned status.
15197 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15201 * linux-x86-low.c (update_debug_registers_callback): New.
15202 (i386_dr_low_set_addr): Use it.
15203 (i386_dr_low_get_addr): New.
15204 (i386_dr_low_set_control): Use update_debug_registers_callback.
15205 (i386_dr_low_get_control): New.
15206 (i386_dr_low_get_status): Adjust.
15207 * linux-low.c (linux_stop_lwp): New.
15208 * linux-low.h (linux_stop_lwp): Declare.
15210 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15211 argument instead of a i386_debug_reg_state.
15212 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15213 a i386_debug_reg_state.
15214 (i386_insert_aligned_watchpoint): Adjust.
15215 (i386_remove_aligned_watchpoint): Adjust.
15216 (i386_low_stopped_data_address): Read the debug registers from the
15217 inferior instead of from the mirrors.
15218 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15219 (i386_dr_low_get_addr): Declare.
15220 (i386_dr_low_get_control): Declare.
15221 (i386_dr_low_get_status): Change prototype.
15223 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15224 (i386_dr_low_get_addr): New.
15225 (i386_dr_low_get_control): New.
15226 (i386_dr_low_get_status): Adjust prototype. Return
15228 (i386_initial_stuff): Clear dr_status_mirror and
15230 (i386_get_thread_context): Adjust.
15231 (i386_set_thread_context): Adjust.
15232 (i386_thread_added): Adjust.
15234 2010-08-24 Pedro Alves <pedro@codesourcery.com>
15236 * linux-low.h (linux_thread_area): Delete declaration.
15238 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15240 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15241 after its termination.
15243 2010-08-09 Pedro Alves <pedro@codesourcery.com>
15245 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15246 (gdb_wants_all_stopped): Delete.
15247 (linux_wait_1): Don't call them.
15248 * server.c (handle_v_cont): Tag all threads as want-stopped.
15249 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15250 stopped as "client-wants-stopped".
15252 2010-07-31 Pedro Alves <pedro@codesourcery.com>
15254 * Makefile.in (signals_h): New.
15255 (server_h): Depend on it.
15256 (server.o): Don't depend on $(signals_def).
15257 (signals.o): Depend on $(signals_def).
15259 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15261 * Makefile.in (signals_def): New.
15262 (server_h): Append include/gdb/signals.h and signals_def.
15263 (server.o): Append signals_def.
15265 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15267 * server.c (handle_target_event): Use target_signal_to_host for
15268 resume_info.sig initialization.
15269 * target.h (struct thread_resume) <sig>: New comment.
15271 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15273 * server.c (handle_query): strcpy() the returned string from paddress()
15274 instead of sprintf().
15275 * utils.c (paddress): Return phex_nz().
15277 2010-07-07 Joel Brobecker <brobecker@adacore.com>
15279 * server.c (handle_v_cont): Call mourn_inferior if process
15281 (myresume): Likewise.
15283 2010-07-01 Pedro Alves <pedro@codesourcery.com>
15285 Static tracepoints, and integration with UST.
15287 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15288 * mem-break.c (uninsert_all_breakpoints)
15289 (reinsert_all_breakpoints): New.
15290 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15291 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15292 (gdb_agent_ust_loaded, helper_thread_id)
15293 (gdb_agent_helper_thread_id): New macros.
15294 (struct ipa_sym_addresses): Add addr_ust_loaded,
15295 addr_helper_thread_id, addr_cmd_buf.
15296 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15297 (in_process_agent_loaded_ust): New.
15298 (write_e_ust_not_loaded): New.
15299 (maybe_write_ipa_ust_not_loaded): New.
15300 (struct collect_static_trace_data_action): New.
15301 (enum tracepoint_type) <static_tracepoint>: New.
15302 (struct tracepoint) <handle>: Mention static tracepoints.
15303 (struct static_tracepoint_ctx): New.
15304 (CMD_BUF_SIZE): New.
15305 (add_tracepoint_action): Handle static tracepoint actions.
15306 (unprobe_marker_at): New.
15307 (clear_installed_tracepoints): Handle static tracepoints.
15308 (cmd_qtdp): Handle static tracepoints.
15309 (probe_marker_at): New.
15310 (cmd_qtstart): Handle static tracepoints.
15311 (response_tracepoint): Handle static tracepoints.
15312 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15313 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15314 (get_context_regcache): Handle static tracepoints.
15315 (do_action_at_tracepoint): Handle static tracepoint actions.
15316 (traceframe_find_block_type): Handle static trace data blocks.
15317 (traceframe_read_sdata): New.
15318 (download_tracepoints): Download static tracepoint actions.
15319 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15320 (GDB_PROBE_NAME): New.
15322 (GET_UST_SYM): New.
15325 (ust_marker_to_static_tracepoint): New.
15327 (collect_ust_data_at_tracepoint): New.
15328 (gdb_ust_probe): New.
15329 (UNIX_PATH_MAX, SOCK_DIR): New.
15330 (gdb_ust_connect_sync_socket): New.
15331 (resume_thread, stop_thread): New.
15332 (run_inferior_command): New.
15333 (init_named_socket): New.
15334 (gdb_ust_socket_init): New.
15335 (cstr_to_hexstr): New.
15337 (first_marker, next_marker): New.
15338 (response_ust_marker): New.
15339 (cmd_qtfstm, cmd_qtsstm): New.
15340 (unprobe_marker_at, probe_marker_at): New.
15341 (cmd_qtstmat, gdb_ust_thread): New.
15342 (gdb_ust_init): New.
15343 (initialize_tracepoint_ftlib): Call gdb_ust_init.
15344 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
15345 (ST_REGENTRY): New.
15346 (x86_64_st_collect_regmap): New.
15347 (X86_64_NUM_ST_COLLECT_GREGS): New.
15348 (AMD64_RIP_REGNUM): New.
15349 (supply_static_tracepoint_registers): New.
15350 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
15351 (ST_REGENTRY): New.
15352 (i386_st_collect_regmap): New.
15353 (i386_NUM_ST_COLLECT_GREGS): New.
15354 (supply_static_tracepoint_registers): New.
15355 * server.c (handle_query): Handle qXfer:statictrace:read.
15356 <qSupported>: Report support for StaticTracepoints, and
15357 qXfer:statictrace:read features.
15358 * server.h (traceframe_read_sdata)
15359 (supply_static_tracepoint_registers): Declare.
15360 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
15361 (unpack_varlen_hex): Include in IPA build.
15362 * Makefile.in (ustlibs, ustinc): New.
15363 (IPA_OBJS): Add remote-utils-ipa.o.
15364 ($(IPA_LIB)): Link -ldl and -lpthread.
15366 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15367 * config.in, configure: Regenerate.
15369 2010-06-20 Ian Lance Taylor <iant@google.com>
15370 Pedro Alves <pedro@codesourcery.com>
15372 * linux-x86-low.c (always_true): Delete.
15373 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
15374 trying to fool the compiler with always_true.
15376 2010-06-20 Pedro Alves <pedro@codesourcery.com>
15378 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15379 conditions in gdbserver.
15381 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15383 * spu-low.c (spu_read_memory): Wrap around local store limit.
15384 (spu_write_memory): Likewise.
15386 2010-06-15 Pedro Alves <pedro@codesourcery.com>
15388 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
15389 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
15391 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15393 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15394 uses with LONGEST uses.
15396 2010-06-14 Stan Shebs <stan@codesourcery.com>
15397 Pedro Alves <pedro@codesourcery.com>
15401 * linux-x86-low.c: Include limits.h.
15403 (always_true): New.
15406 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
15407 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
15408 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
15409 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
15410 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
15411 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
15412 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
15413 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
15414 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
15415 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
15416 (amd64_emit_void_call_2): New.
15417 (amd64_emit_ops): New.
15418 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
15419 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
15420 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
15421 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
15422 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
15423 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
15424 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
15425 (i386_emit_call, i386_emit_reg, i386_emit_pop)
15426 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
15427 (i386_emit_stack_adjust, i386_emit_int_call_1)
15428 (i386_emit_void_call_2): New.
15429 (i386_emit_ops): New.
15430 (x86_emit_ops): New.
15431 (the_low_target): Install x86_emit_ops.
15432 * server.h (struct emit_ops): New.
15433 (get_raw_reg_func_addr): Declare.
15434 (current_insn_ptr, emit_error): Declare.
15435 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
15436 (set_trace_state_variable_value): New defines.
15437 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
15438 addr_get_trace_state_variable_value and
15439 addr_set_trace_state_variable_value.
15440 (symbol_list): New fields for get_raw_reg,
15441 get_trace_state_variable_value and set_trace_state_variable_value.
15442 (condfn): New typedef.
15443 (struct tracepoint): New field `compiled_cond'.
15444 (do_action_at_tracepoint): Clear compiled_cond.
15445 (get_trace_state_variable_value, set_trace_state_variable_value):
15447 (condition_true_at_tracepoint): If there's a compiled condition,
15449 (current_insn_ptr, emit_error): New globals.
15450 (struct bytecode_address): New.
15451 (get_raw_reg_func_addr): New.
15452 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
15453 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
15454 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
15455 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
15456 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
15457 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
15458 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
15459 (compile_tracepoint_condition, compile_bytecodes): New.
15460 * target.h (emit_ops): Forward declare.
15461 (struct target_ops): New field emit_ops.
15462 (target_emit_ops): New.
15463 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
15464 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
15465 * linux-low.c (linux_emit_ops): New.
15466 (linux_target_ops): Install it.
15467 * linux-low.h (struct linux_target_ops): New field emit_ops.
15469 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
15471 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
15472 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
15474 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15475 Stan Shebs <stan@codesourcery.com>
15477 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
15478 (all): Depend on $(extra_libraries).
15479 (install-only): Install the IPA.
15480 (IPA_OBJS, IPA_LIB): New.
15481 (clean): Remove the IPA lib.
15482 (IPAGENT_CFLAGS): New.
15483 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
15484 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
15485 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
15486 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
15487 * configure.ac: Check for atomic builtins support in the compiler.
15488 (IPA_DEPFILES, extra_libraries): Define.
15489 * configure.srv (ipa_obj): Add description.
15490 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
15491 (i[34567]86-*-linux*): Set ipa_obj.
15492 (x86_64-*-linux*): Set ipa_obj.
15493 * linux-low.c (stabilizing_threads): New.
15494 (supports_fast_tracepoints): New.
15495 (linux_detach): Stabilize threads before detaching.
15496 (handle_tracepoints): Handle internal tracing breakpoints. Assert
15497 the lwp is either not stabilizing, or is moving out of a jump pad.
15498 (linux_fast_tracepoint_collecting): New.
15499 (maybe_move_out_of_jump_pad): New.
15500 (enqueue_one_deferred_signal): New.
15501 (dequeue_one_deferred_signal): New.
15502 (linux_wait_for_event_1): If moving out of a jump pad, defer
15503 pending signals to later.
15504 (linux_stabilize_threads): New.
15505 (linux_wait_1): Check if threads need moving out of jump pads, and
15507 (stuck_in_jump_pad_callback): New.
15508 (move_out_of_jump_pad_callback): New.
15509 (lwp_running): New.
15510 (linux_resume_one_lwp): Handle moving out of jump pads.
15511 (linux_set_resume_request): Dequeue deferred signals.
15512 (need_step_over_p): Also step over fast tracepoint jumps.
15513 (start_step_over): Also uninsert fast tracepoint jumps.
15514 (finish_step_over): Also reinsert fast tracepoint jumps.
15515 (linux_install_fast_tracepoint_jump): New.
15516 (linux_target_ops): Install linux_stabilize_threads and
15517 linux_install_fast_tracepoint_jump_pad.
15518 * linux-low.h (linux_target_ops) <get_thread_area,
15519 install_fast_tracepoint_jump_pad>: New fields.
15520 (struct lwp_info) <collecting_fast_tracepoint,
15521 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
15522 (linux_get_thread_area): Declare.
15523 * linux-x86-low.c (jump_insn): New.
15524 (x86_get_thread_area): New.
15525 (append_insns): New.
15526 (push_opcode): New.
15527 (amd64_install_fast_tracepoint_jump_pad): New.
15528 (i386_install_fast_tracepoint_jump_pad): New.
15529 (x86_install_fast_tracepoint_jump_pad): New.
15530 (the_low_target): Install x86_get_thread_area and
15531 x86_install_fast_tracepoint_jump_pad.
15532 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
15533 (struct fast_tracepoint_jump): New.
15534 (fast_tracepoint_jump_insn): New.
15535 (fast_tracepoint_jump_shadow): New.
15536 (find_fast_tracepoint_jump_at): New.
15537 (fast_tracepoint_jump_here): New.
15538 (delete_fast_tracepoint_jump): New.
15539 (set_fast_tracepoint_jump): New.
15540 (uninsert_fast_tracepoint_jumps_at): New.
15541 (reinsert_fast_tracepoint_jumps_at): New.
15542 (set_breakpoint_at): Use write_inferior_memory.
15543 (uninsert_raw_breakpoint): Use write_inferior_memory.
15544 (check_mem_read): Mask out fast tracepoint jumps.
15545 (check_mem_write): Mask out fast tracepoint jumps.
15546 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15547 (set_fast_tracepoint_jump): Declare.
15548 (delete_fast_tracepoint_jump)
15549 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15550 (reinsert_fast_tracepoint_jumps_at): Declare.
15551 * regcache.c: Don't compile many functions when building the
15552 in-process agent library.
15553 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
15554 the register buffer in the heap.
15555 (free_register_cache): If the register buffer isn't owned by the
15556 regcache, don't free it.
15557 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
15558 pre-existing register caches.
15559 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
15561 (convert_ascii_to_int): : Constify `from' parameter type.
15562 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
15563 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15564 the needed buffer in-place.
15565 (relocate_instruction): New.
15566 * server.c (handle_query) <qSymbols>: If the target supports
15567 tracepoints, give it a chance of looking up symbols. Report
15568 support for fast tracepoints.
15569 (handle_status): Stabilize threads.
15570 (process_serial_event): Adjust.
15571 * server.h (struct fast_tracepoint_jump): Forward declare.
15572 (struct process_info) <fast_tracepoint_jumps>: New field.
15573 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15574 (decode_X_packet, decode_M_packet): Adjust.
15575 (relocate_instruction): Declare.
15576 (in_process_agent_loaded): Declare.
15577 (tracepoint_look_up_symbols): Declare.
15578 (struct fast_tpoint_collect_status): Declare.
15579 (fast_tracepoint_collecting): Declare.
15580 (force_unlock_trace_buffer): Declare.
15581 (handle_tracepoint_bkpts): Declare.
15582 (initialize_low_tracepoint)
15583 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15584 * target.h (struct target_ops) <stabilize_threads,
15585 install_fast_tracepoint_jump_pad>: New fields.
15586 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15587 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15588 [HAVE_STDINT_H]: Include stdint.h.
15589 (trace_debug_1): Rename to ...
15590 (trace_vdebug): ... this.
15591 (trace_debug): Rename to ...
15592 (trace_debug_1): ... this. Add `level' parameter.
15593 (trace_debug): New.
15594 (ATTR_USED, ATTR_NOINLINE): New.
15595 (IP_AGENT_EXPORT): New.
15596 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15597 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15598 (about_to_request_buffer_space, trace_buffer_is_full)
15599 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15600 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15601 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15602 (traceframe_write_count, traceframes_created)
15603 (trace_state_variables)
15604 New renaming defines.
15605 (struct ipa_sym_addresses): New.
15606 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15607 (symbol_list): New.
15608 (ipa_sym_addrs): New.
15609 (all_tracepoint_symbols_looked_up): New.
15610 (in_process_agent_loaded): New.
15611 (write_e_ipa_not_loaded): New.
15612 (maybe_write_ipa_not_loaded): New.
15613 (tracepoint_look_up_symbols): New.
15614 (debug_threads) [IN_PROCESS_AGENT]: New.
15615 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15616 (UNKNOWN_SIDE_EFFECTS): New.
15617 (stop_tracing): New.
15618 (flush_trace_buffer): New.
15619 (stop_tracing_bkpt): New.
15620 (flush_trace_buffer_bkpt): New.
15621 (read_inferior_integer): New.
15622 (read_inferior_uinteger): New.
15623 (read_inferior_data_pointer): New.
15624 (write_inferior_data_pointer): New.
15625 (write_inferior_integer): New.
15626 (write_inferior_uinteger): New.
15627 (struct collect_static_trace_data_action): Delete.
15628 (enum tracepoint_type): New.
15629 (struct tracepoint) <type>: New field `type'.
15630 <actions_str, step_actions, step_actions_str>: Only include in
15632 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15633 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15634 (tracepoints): Use IP_AGENT_EXPORT.
15635 (last_tracepoint): Don't include in the IPA.
15636 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15637 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15638 (alloced_trace_state_variables): New.
15639 (trace_state_variables): Use IP_AGENT_EXPORT.
15640 (traceframe_t): Delete unused variable.
15641 (circular_trace_buffer): Don't include in the IPA.
15642 (trace_buffer_start): Delete.
15643 (struct trace_buffer_control): New.
15644 (trace_buffer_free): Delete.
15645 (struct ipa_trace_buffer_control): New.
15646 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15647 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15649 (trace_buffer_ctrl): New.
15650 (TRACE_BUFFER_CTRL_CURR): New.
15651 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15652 Reimplement as macros.
15653 (trace_buffer_wrap): Delete.
15654 (traceframe_write_count, traceframe_read_count)
15655 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15656 (struct tracepoint_hit_ctx) <type>: New field.
15657 (struct fast_tracepoint_ctx): New.
15658 (memory_barrier): New.
15660 (record_tracepoint_error): Update atomically in the IPA.
15661 (clear_inferior_trace_buffer): New.
15662 (about_to_request_buffer_space): New.
15663 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15664 updating the same buffer.
15665 (add_tracepoint): Default the tracepoint's type to trap
15666 tracepoint, and orig_size to -1.
15667 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15668 internal variables.
15669 (create_trace_state_variable): New parameter `gdb'. Handle it.
15670 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15671 (cmd_qtdp): Handle fast tracepoints.
15672 (cmd_qtdv): Adjust.
15673 (max_jump_pad_size): New.
15674 (gdb_jump_pad_head): New.
15675 (get_jump_space_head): New.
15676 (claim_jump_space): New.
15677 (sort_tracepoints): New.
15678 (MAX_JUMP_SIZE): New.
15679 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15681 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15682 support. Upload fast traceframes, and delete internal IPA
15684 (stop_tracing_handler): New.
15685 (flush_trace_buffer_handler): New.
15686 (cmd_qtstop): Upload fast tracepoints.
15687 (response_tracepoint): Handle fast tracepoints.
15688 (tracepoint_finished_step): Upload fast traceframes. Set the
15689 tracepoint hit context's tracepoint type.
15690 (handle_tracepoint_bkpts): New.
15691 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15692 type. Add comment about fast tracepoints.
15693 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15694 non-existing action_str field.
15695 (get_context_regcache): Handle fast tracepoints.
15696 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15698 (fast_tracepoint_from_jump_pad_address): New.
15699 (fast_tracepoint_from_ipa_tpoint_address): New.
15700 (collecting_t): New.
15701 (force_unlock_trace_buffer): New.
15702 (fast_tracepoint_collecting): New.
15704 (gdb_collect): New.
15705 (write_inferior_data_ptr): New.
15706 (target_tp_heap): New.
15707 (target_malloc): New.
15708 (download_agent_expr): New.
15710 (download_tracepoints): New.
15711 (download_trace_state_variables): New.
15712 (upload_fast_traceframes): New.
15713 (IPA_FIRST_TRACEFRAME): New.
15714 (IPA_NEXT_TRACEFRAME_1): New.
15715 (IPA_NEXT_TRACEFRAME): New.
15716 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15717 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15718 (gdb_jump_pad_buffer_end): New.
15719 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15720 (initialize_tracepoint): Adjust.
15721 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15722 buffer. Initialize the low module.
15723 * utils.c (PREFIX, TOOLNAME): New.
15724 (malloc_failure): Use PREFIX.
15725 (error): In the IPA, an error causes an exit.
15726 (fatal, warning): Use PREFIX.
15727 (internal_error): Use TOOLNAME.
15728 (NUMCELLS): Increase to 10.
15729 * configure, config.in: Regenerate.
15731 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15733 * server.c (handle_query) <qSupported>: Do two passes over the
15734 qSupported string to avoid nesting strtok.
15736 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15738 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15740 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15741 -Wl,--dynamic-list.
15742 * configure: Regenerate.
15743 * proc-service.list: New.
15745 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15747 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15750 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15752 * gdbreplay.c (remote_open): Check error return from socket() call by
15753 its equality to -1 not by it being negative.
15754 * remote-utils.c (remote_open): Likewise.
15756 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15758 * config.h: Regenerate.
15760 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15762 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15763 doesn't provide PTRACE_GET_THREAD_AREA.
15765 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15767 * linux-m68k-low.c: Include <asm/ptrace.h>
15768 (ps_get_thread_area): Implement.
15770 2010-05-03 Doug Evans <dje@google.com>
15772 * event-loop.c (struct callback_event): New struct.
15773 (callback_list): New global.
15774 (append_callback_event, delete_callback_event): New functions.
15775 (process_callback): New function.
15776 (start_event_loop): Call it.
15777 * remote-utils.c (NOT_SCHEDULED): Define.
15778 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15779 moved out of readchar.
15780 (readchar): Rewrite. Call reschedule before returning.
15781 (reset_readchar): New function.
15782 (remote_close): Call it.
15783 (process_remaining, reschedule): New functions.
15784 * server.h (callback_handler_func): New typedef.
15785 (append_callback_event, delete_callback_event): Declare.
15787 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15789 * proc-service.c (ps_pglobal_lookup): Use
15790 thread_db_look_up_one_symbol.
15791 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15792 parameter. Use it instead of all_symbols_looked_up.
15793 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15795 (all_symbols_looked_up): Don't declare.
15796 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15797 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15799 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15800 Set all_symbols_looked_up here.
15801 (thread_db_look_up_one_symbol): New.
15802 (thread_db_get_tls_address): Adjust.
15803 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15804 thread_db object on the heap, and tentatively set it in the
15806 (thread_db_init): Don't set all_symbols_looked_up here.
15807 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15809 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15811 * linux-low.c (linux_kill, linux_detach): Adjust.
15812 (status_pending_p_callback): Remove redundant statement. Check
15813 for !TARGET_WAITIKIND_IGNORE, instead of
15814 TARGET_WAITKIND_STOPPED.
15815 (handle_tracepoints): Make sure LWP is locked. Adjust.
15816 (linux_wait_for_event_1): Adjust.
15817 (linux_cancel_breakpoints): New.
15818 (unsuspend_one_lwp): New.
15819 (unsuspend_all_lwps): New.
15820 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15821 (send_sigstop_callback): Change return type to int, add new
15822 `except' parameter and handle it.
15823 (suspend_and_send_sigstop_callback): New.
15824 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15825 pass them down. If SUSPEND, also increment the lwp's suspend
15827 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15828 (need_step_over_p): Don't consider suspended LWPs.
15829 (start_step_over): Adjust.
15830 (proceed_one_lwp): Change return type to int, add new `except'
15831 parameter and handle it.
15832 (unsuspend_and_proceed_one_lwp): New.
15833 (proceed_all_lwps): Use find_inferior instead of
15835 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15836 also decrement the suspend count of LWPs. Pass `except' down,
15837 instead of hacking its suspend count.
15838 (linux_pause_all): Add `freeze' parameter. Adjust.
15839 (linux_unpause_all): New.
15840 (linux_target_ops): Install linux_unpause_all.
15841 * server.c (handle_status): Adjust.
15842 * target.h (struct target_ops): New fields `unpause_all' and
15843 `cancel_breakpoints'. Add new parameter to `pause_all'.
15844 (pause_all): Add new `freeze' parameter.
15845 (unpause_all): New.
15846 (cancel_breakpoints): New.
15847 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15848 cancel breakpoints.
15849 (cmd_qtstart): Pause threads.
15850 (stop_tracing): Pause threads, and cancel breakpoints.
15851 * win32-low.c (win32_target_ops): Adjust.
15853 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15855 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15856 the inferior right away from here...
15857 (linux_wait_1): ... to here, and adjust to check the thread's
15858 last_resume_kind instead of the lwp's step or stop_expected flags.
15860 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15862 * README: Use consistent `GDB' and `GDBserver' spellings.
15864 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15866 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15867 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15868 (linux_detach_one_lwp): Assume the lwp is stopped.
15869 (any_thread_of): Delete.
15870 (linux_detach): Stop all lwps here. Don't blindly delete all
15872 (delete_lwp_callback): New.
15873 (linux_mourn): Delete all lwps of the process that is gone.
15874 (linux_wait_1): Don't delete the last lwp of the process here.
15875 * mem-break.h (mark_breakpoints_out): Declare.
15876 * mem-break.c (mark_breakpoints_out): New.
15877 (free_all_breakpoints): Use it.
15878 * server.c (handle_target_event): If the process is gone, mark
15880 * thread-db.c (struct thread_db) <create_bp>: New field.
15881 (thread_db_enable_reporting): Fix prototype. Store a thread event
15882 breakpoint reference in the thread_db struct.
15883 (thread_db_load_search): Clear the thread_db object.
15884 (try_thread_db_load_1): Ditto.
15885 (switch_to_process): New.
15886 (disable_thread_event_reporting): Use it.
15887 (remove_thread_event_breakpoints): New.
15888 (thread_db_detach, thread_db_mourn): Use it.
15890 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15892 * linux-low.c (linux_enable_event_reporting): New.
15893 (linux_wait_for_event_1, handle_extended_wait): Use it.
15895 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15897 * linux-low.c (linux_kill_one_lwp, linux_kill)
15898 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15899 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15900 SIGSTOP even if the LWP is stopped.
15901 (send_sigstop_callback): New.
15902 (stop_all_lwps): Use send_sigstop_callback instead.
15903 (linux_resume_one_thread): Adjust.
15904 (proceed_one_lwp): Still proceed an LWP that the client has
15905 requested to stop, if we haven't reported it as stopped yet. Make
15906 sure that LWPs the client want stopped, have a pending SIGSTOP.
15908 2010-04-26 Doug Evans <dje@google.com>
15910 * server.c (handle_general_set): Make static.
15912 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15913 Print received char after testing for error/eof instead of before.
15914 (input_interrupt): Tweak comment.
15916 2010-04-23 Doug Evans <dje@google.com>
15918 * server.c (start_inferior): Print inferior argv if --debug.
15920 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15922 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15923 * nto-x86-low.c: Include server.h
15925 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15927 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15928 be consistent with other sources of this directory.
15929 (init_registers_amd64): Correct name of source file of this function
15932 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15934 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15935 64-bit executables.
15937 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15939 * win32-i386-low.c: Add 64-bit support.
15940 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15941 (init_registers_amd64): Declare.
15942 (mappings): Add 64-bit version of array.
15943 (init_windows_x86): New function.
15944 (the_low_target): Change init_arch field to init_windows_x86.
15946 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15948 * win32-low.c: Adapt to support also 64-bit architecture.
15949 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15950 (get_image_name): Use SIZE_T type for local variable `done'.
15951 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15952 (toolhelp_get_dll_name): Idem.
15953 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15954 Use uintptr_t typecast to avoid warning.
15955 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15956 (handle_exception): Use phex_nz to avoid warning.
15957 (win32_wait): Remove unused local variable `process'.
15959 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15961 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15964 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15966 * configure.ac: Use `ws2_32' library for srv_mingw.
15967 * configure: Regenerate.
15968 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15969 * remote-utils.c: Likewise.
15971 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15973 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15974 if __x86_64__ is defined.
15976 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15978 * configure: Regenerate.
15980 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15982 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15983 * target.h (target_ops): New get_tib_address field.
15984 * win32-low.h (win32_thread_info): Add thread_local_base field.
15985 * win32-low.c (child_add_thread): Add tlb argument.
15986 Set thread_local_base field to TLB.
15987 (get_child_debug_event): Adapt to child_add_thread change.
15988 (win32_get_tib_address): New function.
15989 (win32_target_ops): Set get_tib_address field to
15990 win32_get_tib_address.
15991 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15993 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15995 * linux-low.c (linux_mourn): Also remove the process.
15996 * server.c (handle_target_event): Don't remove the process here.
15997 * nto-low.c (nto_mourn): New.
15998 (nto_target_ops): Install it.
15999 * spu-low.c (spu_mourn): New.
16000 (spu_target_ops): Install it.
16001 * win32-low.c (win32_mourn): New.
16002 (win32_target_ops): Install it.
16004 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16006 * server.h (buffer_xml_printf): Remove redundant `;'.
16008 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16010 * regcache.c (set_register_cache): Invalidate regcaches before
16011 changing the register cache layout.
16012 (regcache_invalidate_one): Allow a NULL regcache.
16013 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16014 regcaches before changing the register cache layout or the target
16017 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16019 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16020 variable warning on Linux/x86-64.
16022 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16024 GDBserver disconnected tracing support.
16026 * linux-low.c (linux_remove_process): Delete.
16027 (add_lwp): Don't set last_resume_kind here.
16028 (linux_kill): Use `mourn'.
16029 (linux_detach): Use `thread_db_detach', and `mourn'.
16030 (linux_mourn): New.
16031 (linux_attach_lwp_1): Adjust comment.
16032 (linux_attach): last_resume_kind moved the thread_info; adjust.
16033 (status_pending_p_callback): Adjust.
16034 (linux_wait_for_event_1): Adjust.
16035 (count_events_callback, select_singlestep_lwp_callback)
16036 (select_event_lwp_callback, cancel_breakpoints_callback)
16037 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16038 (proceed_one_lwp): Adjust.
16039 (linux_async): Add debug output.
16040 (linux_thread_stopped): New.
16041 (linux_pause_all): New.
16042 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16044 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16045 (thread_db_free): Delete declaration.
16046 (thread_db_detach, thread_db_mourn): Declare.
16047 * thread-db.c (thread_db_init): Use thread_db_mourn.
16048 (thread_db_free): Delete, split in two.
16049 (disable_thread_event_reporting): New.
16050 (thread_db_detach): New.
16051 (thread_db_mourn): New.
16053 * server.h (struct thread_info) <last_resume_kind>: New field.
16054 <attached>: Add comment.
16055 <gdb_detached>: New field.
16056 (handler_func): Change return type to int.
16057 (handle_serial_event, handle_target_event): Ditto.
16058 (gdb_connected): Declare.
16060 (disconnected_tracing): Declare.
16061 (stop_tracing): Declare.
16063 * server.c (handle_query) <qSupported>: Report support for
16064 disconnected tracing.
16065 (queue_stop_reply_callback): Account for running threads.
16066 (gdb_wants_thread_stopped): New.
16067 (gdb_wants_all_threads_stopped): New.
16068 (gdb_reattached_process): New.
16069 (handle_status): Clear the `gdb_detached' flag of all processes.
16070 In all-stop, stop all threads.
16071 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16072 (process_serial_event): If the remote connection breaks, or if an
16073 exit was forced with "monitor exit", force an event loop exit.
16074 Handle disconnected tracing on detach.
16075 (handle_serial_event): Adjust.
16076 (handle_target_event): If GDB isn't connected, forward events back
16077 to the inferior, unless the last process exited, in which case,
16078 exit gdbserver. Adjust interface.
16080 * remote-utils.c (remote_open): Don't block in accept. Instead
16081 register an event loop source on the listen socket file
16082 descriptor. Refactor bits into ...
16083 (listen_desc): ... this new global.
16084 (gdb_connected): ... this new function.
16085 (enable_async_notification): ... this new function.
16086 (handle_accept_event): ... this new function.
16087 (remote_close): Clear remote_desc.
16089 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16091 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16093 (mourn_inferior): Define.
16094 (target_process_qsupported): Avoid the dangling else problem.
16095 (thread_stopped): Define.
16096 (pause_all): Define.
16097 (target_waitstatus_to_string): Declare.
16098 * target.c (target_waitstatus_to_string): New.
16100 * tracepoint.c (tracing): Make extern.
16101 (disconnected_tracing): New.
16102 (stop_tracing): Make extern. Handle tracing stops due to GDB
16104 (cmd_qtdisconnected): New.
16105 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16106 (handle_tracepoint_general_set): Handle QTDisconnected.
16108 * event-loop.c (event_handler_func): Change return type to int.
16109 (process_event): Bail out if the event handler wants the event
16111 (handle_file_event): Ditto.
16112 (start_event_loop): Bail out if the event handler wants the event
16115 * nto-low.c (nto_target_ops): Adjust.
16116 * spu-low.c (spu_wait): Don't remove the process here.
16117 (spu_target_ops): Adjust.
16118 * win32-low.c (win32_wait): Don't remove the process here.
16119 (win32_target_ops): Adjust.
16121 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16123 * regcache.c (realloc_register_cache): Invalidate inferior's
16124 regcache before recreating it.
16126 2010-04-09 Pedro Alves <pedro@codesourcery.com>
16128 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16130 2010-04-09 Stan Shebs <stan@codesourcery.com>
16131 Pedro Alves <pedro@codesourcery.com>
16133 * server.h (LONGEST): New.
16134 (struct thread_info) <while_stepping>: New field.
16135 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16137 (initialize_tracepoint, handle_tracepoint_general_set)
16138 (handle_tracepoint_query, tracepoint_finished_step)
16139 (tracepoint_was_hit, release_while_stepping_state_list):
16140 (current_traceframe): Declare.
16141 * server.c (handle_general_set): Handle tracepoint packets.
16142 (read_memory): New.
16143 (write_memory): New.
16144 (handle_search_memory_1): Use read_memory.
16145 (handle_query): Report support for conditional tracepoints, trace
16146 state variables, and tracepoint sources. Handle tracepoint
16148 (main): Initialize the tracepoints module.
16149 (process_serial_event): Handle traceframe reads/writes.
16151 * linux-low.c (handle_tracepoints): New.
16152 (linux_wait_1): Call it.
16153 (linux_resume_one_lwp): Handle while-stepping.
16154 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16155 (linux_target_ops): Install them.
16156 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16158 * linux-x86-low.c (x86_supports_tracepoints): New.
16159 (the_low_target). Install it.
16161 * mem-break.h (delete_breakpoint): Declare.
16162 * mem-break.c (delete_breakpoint): Make external.
16164 * target.h (struct target_ops): Add `supports_tracepoints',
16165 `read_pc', and `write_pc' fields.
16166 (target_supports_tracepoints): Define.
16167 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16170 * regcache.h (struct regcache) <registers_owned>: New field.
16171 (init_register_cache, regcache_cpy): Declare.
16172 (regcache_read_pc, regcache_write_pc): Declare.
16173 (register_cache_size): Declare.
16174 (supply_regblock): Declare.
16175 * regcache.c (init_register_cache): New.
16176 (new_register_cache): Use it.
16177 (regcache_cpy): New.
16178 (register_cache_size): New.
16179 (supply_regblock): New.
16180 (regcache_read_pc, regcache_write_pc): New.
16182 * tracepoint.c: New.
16184 * Makefile.in (OBS): Add tracepoint.o.
16185 (tracepoint.o): New rule.
16187 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16189 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16191 (i386-mmx.c): Likewise.
16192 (i386-mmx-linux.o): Likewise.
16193 (i386-mmx-linux.c): Likewise.
16195 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16196 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16197 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16198 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16200 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16201 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16202 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16204 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16206 * Makefile.in (clean): Updated.
16208 (i386-avx.c): Likewise.
16209 (i386-avx-linux.o): Likewise.
16210 (i386-avx-linux.c): Likewise.
16211 (amd64-avx.o): Likewise.
16212 (amd64-avx.c): Likewise.
16213 (amd64-avx-linux.o): Likewise.
16214 (amd64-avx-linux.c): Likewise.
16216 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16217 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16218 (srv_amd64_regobj): Add amd64-avx.o.
16219 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16220 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16221 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16222 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16223 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16224 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16225 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16227 * i387-fp.c: Include "i386-xstate.h".
16229 (i387_cache_to_xsave): Likewise.
16230 (i387_xsave_to_cache): Likewise.
16231 (x86_xcr0): Likewise.
16233 * i387-fp.h (i387_cache_to_xsave): Likewise.
16234 (i387_xsave_to_cache): Likewise.
16235 (x86_xcr0): Likewise.
16237 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16238 * linux-crisv32-low.c (target_regsets): Likewise.
16239 * linux-m68k-low.c (target_regsets): Likewise.
16240 * linux-mips-low.c (target_regsets): Likewise.
16241 * linux-ppc-low.c (target_regsets): Likewise.
16242 * linux-s390-low.c (target_regsets): Likewise.
16243 * linux-sh-low.c (target_regsets): Likewise.
16244 * linux-sparc-low.c (target_regsets): Likewise.
16245 * linux-xtensa-low.c (target_regsets): Likewise.
16247 * linux-low.c: Include <sys/uio.h>.
16248 (regsets_fetch_inferior_registers): Support nt_type.
16249 (regsets_store_inferior_registers): Likewise.
16250 (linux_process_qsupported): New.
16251 (linux_target_ops): Add linux_process_qsupported.
16253 * linux-low.h (regset_info): Add nt_type.
16254 (linux_target_ops): Add process_qsupported.
16256 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16258 (init_registers_i386_avx_linux): New.
16259 (init_registers_amd64_avx_linux): Likewise.
16260 (xmltarget_i386_linux_no_xml): Likewise.
16261 (xmltarget_amd64_linux_no_xml): Likewise.
16262 (PTRACE_GETREGSET): Likewise.
16263 (PTRACE_SETREGSET): Likewise.
16264 (x86_fill_xstateregset): Likewise.
16265 (x86_store_xstateregset): Likewise.
16266 (use_xml): Likewise.
16267 (x86_linux_update_xmltarget): Likewise.
16268 (x86_linux_process_qsupported): Likewise.
16269 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16270 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16271 init_registers_i386_linux here. Call
16272 x86_linux_update_xmltarget.
16273 (the_low_target): Add x86_linux_process_qsupported.
16275 * server.c (handle_query): Call target_process_qsupported.
16277 * target.h (target_ops): Add process_qsupported.
16278 (target_process_qsupported): New.
16280 2010-04-03 Pedro Alves <pedro@codesourcery.com>
16282 * inferiors.c (add_thread): Set last_status kind to
16283 TARGET_WAITKIND_IGNORE.
16284 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16285 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16286 (linux_wait_1): Move `thread' local definition to block that uses
16287 it. Don't NULL initialize `event_child'.
16288 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16289 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16290 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16292 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16294 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16295 an extended waitstatus, or by a watchpoint.
16296 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16297 thread was stepping or has been stopped by a watchpoint.
16299 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16301 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16302 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16303 of another, then delete the previous, and validate all
16305 (validate_inserted_breakpoint): New.
16306 (delete_disabled_breakpoints): New.
16307 (validate_breakpoints): New.
16308 (check_mem_read): Validate breakpoints before trusting their
16309 shadow. Delete disabled breakpoints.
16310 (check_mem_write): Validate breakpoints before trusting they
16311 should be inserted. Delete disabled breakpoints.
16312 * mem-break.h (validate_breakpoints):
16313 * server.c (handle_query): Validate breakpoints when we see a
16316 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16318 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16319 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16320 if we could tell there's a GDB breakpoint at stop_pc.
16321 (need_step_over_p): Don't do a step over if we find a GDB
16322 breakpoint at the resume PC.
16324 * mem-break.c (struct raw_breakpoint): New.
16325 (enum bkpt_type): New type `gdb_breakpoint'.
16326 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16327 fields. New field `raw'.
16328 (find_raw_breakpoint_at): New.
16329 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16330 breakpoint instead.
16331 (set_breakpoint_at): Adjust.
16332 (delete_raw_breakpoint): New.
16333 (release_breakpoint): New.
16334 (delete_breakpoint): Rename to...
16335 (delete_breakpoint_1): ... this. Add proc parameter. Use
16336 release_breakpoint. Return ENOENT.
16337 (delete_breakpoint): Reimplement.
16338 (find_breakpoint_at): Delete.
16339 (find_gdb_breakpoint_at): New.
16340 (delete_breakpoint_at): Delete.
16341 (set_gdb_breakpoint_at): New.
16342 (delete_gdb_breakpoint_at): New.
16343 (gdb_breakpoint_here): New.
16344 (set_reinsert_breakpoint): Use release_breakpoint.
16345 (uninsert_breakpoint): Rename to ...
16346 (uninsert_raw_breakpoint): ... this.
16347 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
16348 (reinsert_raw_breakpoint): Change parameter type to
16350 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16352 (check_breakpoints): Adjust. Use release_breakpoint.
16353 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
16354 (breakpoint_inserted_here): Ditto.
16355 (check_mem_read): Adjust to iterate over raw breakpoints instead.
16356 Don't trust the breakpoint's shadow if it is not inserted.
16357 (check_mem_write): Adjust to iterate over raw breakpoints instead.
16358 (delete_all_breakpoints): Adjust.
16359 (free_all_breakpoints): Mark all breakpoints as uninserted, and
16360 use delete_breakpoint_1.
16362 * mem-break.h (breakpoints_supported): Delete declaration.
16363 (set_gdb_breakpoint_at): Declare.
16364 (gdb_breakpoint_here): Declare.
16365 (delete_breakpoint_at): Delete.
16366 (delete_gdb_breakpoint_at): Declare.
16368 * server.h (struct raw_breakpoint): Forward declare.
16369 (struct process_info): New field `raw_breakpoints'.
16371 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16374 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16376 * linux-low.c (status_pending_p_callback): Fix comment.
16377 (linux_wait_for_event_1): Move most of the internal breakpoint
16378 handling from here...
16379 (linux_wait_1): ... to here.
16380 (count_events_callback): New.
16381 (select_singlestep_lwp_callback): New.
16382 (select_event_lwp_callback): New.
16383 (cancel_breakpoints_callback): New.
16384 (select_event_lwp): New.
16385 (linux_wait_1): Simplify internal breakpoint handling. Give equal
16386 priority to all LWPs that have had events that should be reported
16387 to the client. Cancel breakpoints when about to reporting the
16388 event to the client, not while stopping lwps. No longer cancel
16389 finished single-steps here.
16390 (cancel_finished_single_step): Delete.
16391 (cancel_finished_single_steps): Delete.
16393 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16395 * mem-break.c (enum bkpt_type): New.
16396 (struct breakpoint): New field `type'.
16397 (set_breakpoint_at): Change return type to struct breakpoint
16398 pointer. Set type to `other_breakpoint' by default.
16399 (delete_breakpoint): Rewrite, supporting more than one breakpoint
16400 in the breakpoint list.
16401 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
16402 (reinsert_breakpoint): Rename to ...
16403 (reinsert_raw_breakpoint): ... this.
16404 (reinsert_breakpoints_at): Adjust.
16405 * mem-break.h (struct breakpoint): Declare.
16406 (set_breakpoint_at): Change return type to struct breakpoint
16409 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16411 * server.c (handle_query): Assign, not compare.
16413 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16415 Teach linux gdbserver to step-over-breakpoints.
16417 * linux-low.c (can_hardware_single_step): New.
16418 (supports_breakpoints): New.
16419 (handle_extended_wait): If stopping threads, read the stop pc of
16420 the new cloned LWP.
16422 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
16423 low target doesn't support retrieving the PC.
16424 (add_lwp): Set last_resume_kind to resume_continue.
16425 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
16426 (linux_attach): Don't clear stop_expected. Set the lwp's
16427 last_resume_kind to resume_stop.
16428 (linux_detach_one_lwp): Don't check for removed breakpoints.
16429 (check_removed_breakpoint): Delete.
16430 (status_pending_p): Rename to ...
16431 (status_pending_p_callback): ... this. Don't check for removed
16432 breakpoints. Don't consider threads that are stopped from GDB's
16434 (linux_wait_for_lwp): Always read the stop_pc here.
16435 (cancel_breakpoint): New.
16436 (step_over_bkpt): New global.
16437 (linux_wait_for_event_1): Implement stepping over breakpoints.
16438 (gdb_wants_lwp_stopped): New.
16439 (gdb_wants_all_stopped): New.
16440 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
16441 single-step traps here. Store the thread's last reported target
16443 (send_sigstop): Don't clear stop_expected. Always set it,
16445 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
16446 (cancel_finished_single_step): New.
16447 (cancel_finished_single_steps): New.
16448 (wait_for_sigstop): Don't cancel finished single-step traps here.
16449 (linux_resume_one_lwp): Don't check for removed breakpoints.
16450 Don't set `step' on non-hardware step archs.
16451 (linux_set_resume_request): Ignore resume_stop requests if already
16452 stopping or stopped. Set the lwp's last_resume_kind.
16453 (resume_status_pending_p): Don't check for removed breakpoints.
16454 (need_step_over_p): New.
16455 (start_step_over): New.
16456 (finish_step_over): New.
16457 (linux_resume_one_thread): Always queue a sigstop for resume_stop
16458 requests. Clear the thread's last reported target waitstatus.
16459 Don't use the `suspended' flag. Don't consider pending breakpoints.
16460 (linux_resume): Start a step-over if necessary.
16461 (proceed_one_lwp): New.
16462 (proceed_all_lwps): New.
16463 (unstop_all_lwps): New.
16464 * linux-low.h (struct lwp_info): Rewrite comment for the
16465 `suspended' flag. Add the `stop_pc' field. Delete the
16466 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
16467 Add `'last_resume_kind' and `need_step_over' fields.
16468 * inferiors.c (struct thread_info): Delete, moved elsewhere.
16469 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
16470 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
16471 (set_raw_breakpoint_at): New.
16472 (set_breakpoint_at): Rewrite to use it.
16473 (reinsert_breakpoint_handler): Delete.
16474 (set_reinsert_breakpoint): New.
16475 (reinsert_breakpoint_by_bp): Delete.
16476 (delete_reinsert_breakpoints): New.
16477 (uninsert_breakpoint): Rewrite.
16478 (uninsert_breakpoints_at): New.
16479 (reinsert_breakpoint): Rewrite.
16480 (reinsert_breakpoints_at): New.
16481 (check_breakpoints): Rewrite.
16482 (breakpoint_here): New.
16483 (breakpoint_inserted_here): New.
16484 (check_mem_read): Adjust.
16485 * mem-break.h (breakpoints_supported, breakpoint_here)
16486 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
16487 (reinsert_breakpoint_by_bp): Delete declaration.
16488 (delete_reinsert_breakpoints): Declare.
16489 (reinsert_breakpoint): Delete declaration.
16490 (reinsert_breakpoints_at): Declare.
16491 (uninsert_breakpoint): Delete declaration.
16492 (uninsert_breakpoints_at): Declare.
16493 (check_breakpoints): Adjust prototype.
16494 * server.h: Adjust include order.
16495 (struct thread_info): Declare here. Add a `last_status' field.
16497 2010-03-23 Michael Snyder <msnyder@vmware.com>
16499 * server.c (crc32): New function.
16500 (handle_query): Add handling for 'qCRC:' request.
16502 2010-03-23 Pedro Alves <pedro@codesourcery.com>
16504 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16505 lwp had been stopped by a watchpoint.
16507 2010-03-16 Pedro Alves <pedro@codesourcery.com>
16509 * server.h (internal_error): Declare.
16510 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16511 * utils.c (internal_error): New function.
16513 2010-03-15 Andreas Schwab <schwab@redhat.com>
16515 * configure.srv: Fix typo setting srv_regobj.
16517 2010-03-15 Pedro Alves <pedro@codesourcery.com>
16519 * linux-low.c (fetch_register): Avoid passing a non string literal
16521 (usr_store_inferior_registers): Ditto.
16523 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16525 * linux-low.c (linux_write_memory): Bail out early if peeking
16528 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16530 * linux-low.h (struct lwp_info): New fields
16531 `stopped_by_watchpoint' and `stopped_data_address'.
16532 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
16533 here, and cache them in the lwp object.
16534 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
16536 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16538 (linux_stopped_by_watchpoint): Rewrite.
16539 (linux_stopped_data_address): Rewrite.
16541 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
16543 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16544 switching the current inferior, not before.
16546 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16548 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16549 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16550 i386-linux.c and amd64-linux.c.
16551 (reg-i386.o): Removed.
16552 (reg-i386.c): Likewise.
16553 (reg-i386-linux.o): Likewise.
16554 (reg-i386-linux.c): Likewise.
16555 (reg-x86-64.o): Likewise.
16556 (reg-x86-64.c): Likewise.
16557 (reg-x86-64-linux.o): Likewise.
16558 (reg-x86-64-linux.c): Likewise.
16560 (i386.c): Likewise.
16561 (i386-linux.o): Likewise.
16562 (i386-linux.c): Likewise.
16563 (amd64.o): Likewise.
16564 (amd64.c): Likewise.
16565 (amd64-linux.o): Likewise.
16566 (amd64-linux.c): Likewise.
16568 * configure.srv (srv_i386_regobj): New.
16569 (srv_i386_linux_regobj): Likewise.
16570 (srv_amd64_regobj): Likewise.
16571 (srv_amd64_linux_regobj): Likewise.
16572 (srv_i386_32bit_xmlfiles): Likewise.
16573 (srv_i386_64bit_xmlfiles): Likewise.
16574 (srv_i386_xmlfiles): Likewise.
16575 (srv_amd64_xmlfiles): Likewise.
16576 (srv_i386_linux_xmlfiles): Likewise.
16577 (srv_amd64_linux_xmlfiles): Likewise.
16578 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16579 srv_xmlfiles to $srv_i386_xmlfiles.
16580 (i[34567]86-*-mingw32ce*): Likewise.
16581 (i[34567]86-*-mingw*): Likewise.
16582 (i[34567]86-*-nto*): Likewise.
16583 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16584 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16585 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16586 (x86_64-*-linux*): Likewise.
16588 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16589 (init_registers_amd64_linux): New.
16590 (x86_arch_setup): Replace init_registers_x86_64_linux with
16591 init_registers_amd64_linux.
16593 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16595 * configure.ac: Check for libdl. If it is not available link against
16596 static libthread_db.
16597 * configure: Regenerate.
16599 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16603 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16604 handing a read watchpoint.
16605 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16607 2010-02-12 Doug Evans <dje@google.com>
16609 * linux-low.c (linux_supports_tracefork_flag): Document.
16610 (linux_look_up_symbols): Add comment.
16612 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16614 * regcache.c (supply_register): Clear regcache if buf is NULL.
16616 2010-02-02 Nicolas Roche <roche@sourceware.org>
16617 Joel Brobecker <brobecker@adacore.com>
16619 * inferiors.c (find_inferior): Add function documentation.
16620 (unloaded_dll): Handle the case where the unloaded dll has not
16621 been previously registered in the dll list.
16623 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16625 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16626 (thumb2_breakpoint): New.
16627 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16629 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16631 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16632 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16635 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16637 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16639 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16641 * linux-s390-low.c (s390_collect_ptrace_register)
16642 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16644 2010-01-21 Doug Evans <dje@google.com>
16646 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16647 (PTRACE_ARG4_TYPE): New macro.
16648 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16649 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16650 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16651 (usr_store_inferior_registers): Ditto.
16652 (linux_read_memory, linux_write_memory): Ditto.
16653 (linux_test_for_tracefork): Ditto.
16655 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16656 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16658 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16660 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16663 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16665 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16666 prototype to take a regcache. Adjust.
16668 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16670 * regcache.h (struct thread_info): Forward declare.
16671 (struct regcache): New.
16672 (new_register_cache): Adjust prototype.
16673 (get_thread_regcache): Declare.
16674 (free_register_cache): Adjust prototype.
16675 (registers_to_string, registers_from_string): Ditto.
16676 (supply_register, supply_register_by_name, collect_register)
16677 (collect_register_as_string, collect_register_by_name): Ditto.
16678 * regcache.c (struct inferior_regcache_data): Delete.
16679 (get_regcache): Rename to ...
16680 (get_thread_regcache): ... this. Adjust. Switch inferior before
16681 fetching registers.
16682 (regcache_invalidate_one): Adjust.
16683 (regcache_invalidate): Fix prototype.
16684 (new_register_cache): Return the new register cache.
16685 (free_register_cache): Change prototype.
16686 (realloc_register_cache): Adjust.
16687 (registers_to_string): Change prototype to take a regcache. Adjust.
16688 (registers_from_string): Ditto.
16689 (register_data): Ditto.
16690 (supply_register): Ditto.
16691 (supply_register_by_name): Ditto.
16692 (collect_register): Ditto.
16693 (collect_register_as_string): Ditto.
16694 (collect_register_by_name): Ditto.
16695 * server.c (process_serial_event): Adjust.
16696 * linux-low.h (regset_fill_func, regset_store_func): Change
16698 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16700 * linux-low.c (get_stop_pc): Adjust.
16701 (check_removed_breakpoint): Adjust.
16702 (linux_wait_for_event): Adjust.
16703 (linux_resume_one_lwp): Adjust.
16704 (fetch_register): Add regcache parameter. Adjust.
16705 (usr_store_inferior_registers): Ditto.
16706 (regsets_fetch_inferior_registers): Ditto.
16707 (regsets_store_inferior_registers): Ditto.
16708 (linux_fetch_registers, linux_store_registers): Ditto.
16709 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16711 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16713 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16714 prototype to take a regcache.
16715 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16716 * remote-utils.c (convert_ascii_to_int, outreg)
16717 (prepare_resume_reply): Change prototype to take a regcache.
16719 * target.h (struct target_ops) <fetch_registers, store_registers>:
16720 Change prototype to take a regcache.
16721 (fetch_inferior_registers, store_inferior_registers): Change
16722 prototype to take a regcache. Adjust.
16723 * proc-service.c (ps_lgetregs): Adjust.
16724 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16725 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16726 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16727 take a regcache. Adjust.
16728 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16729 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16730 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16731 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16732 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16733 (cris_cannot_fetch_register):
16734 (cris_breakpoint_at): Change prototype to take a regcache.
16736 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16737 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16738 to take a regcache. Adjust.
16739 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16741 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16742 take a regcache. Adjust.
16743 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16744 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16745 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16746 * linux-mips-low.c (mips_get_pc):
16747 (mips_set_pc): Change prototype to take a regcache. Adjust.
16748 (mips_reinsert_addr): Adjust.
16749 (mips_collect_register): Change prototype to take a regcache.
16751 (mips_supply_register):
16752 (mips_collect_register_32bit, mips_supply_register_32bit)
16753 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16754 (mips_store_fpregset): Ditto.
16755 * linux-ppc-low.c (ppc_supply_ptrace_register)
16756 (ppc_supply_ptrace_register): Ditto.
16757 (parse_spufs_run): Adjust.
16758 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16759 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16760 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16761 take a regcache. Adjust.
16762 * linux-s390-low.c (s390_collect_ptrace_register)
16763 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16764 (s390_set_pc): Change prototype to take a regcache. Adjust.
16765 (s390_arch_setup): Adjust.
16766 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16767 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16768 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16769 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16770 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16772 (sparc_breakpoint_at): Adjust.
16773 * linux-xtensa-low.c (xtensa_fill_gregset):
16774 (xtensa_store_gregset):
16775 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16776 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16777 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16778 prototype to take a regcache. Adjust.
16779 * win32-arm-low.c (arm_fetch_inferior_register)
16780 (arm_store_inferior_register): Change prototype to take a
16782 * win32-i386-low.c (i386_fetch_inferior_register)
16783 (i386_store_inferior_register): Change prototype to take a
16785 * win32-low.c (child_fetch_inferior_registers)
16786 (child_store_inferior_registers): Change prototype to take a
16788 (win32_wait): Adjust.
16789 (win32_fetch_inferior_registers): Change prototype to take a
16791 (win32_store_inferior_registers): Adjust.
16792 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16793 store_inferior_register>: Change prototype to take a regcache.
16795 2010-01-20 Doug Evans <dje@google.com>
16797 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16799 (linux_wait_for_event1, linux_init_signals): Ditto.
16800 (W_STOPCODE): Provide definition if missing.
16802 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16804 * linux-low.c (linux_core_of_thread): New.
16805 (compare_ints, show_process, list_threads): New.
16806 (linux_qxfer_osdata): Report threads and cores.
16807 (linux_target_op): Register linux_core_of_thread.
16808 * remote-utils.c (prepare_resume_reply): Report the core.
16809 (buffer_xml_printf): Support %d specifier.
16810 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16812 (handle_query): Handle qXfer:threads. Announce availability
16814 * target.h (struct target_ops): New field core_of_thread.
16816 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16818 * Makefile.in (clean): Remove new generated files.
16819 (reg-s390.o, reg-s390.c): Remove rules.
16820 (reg-s390x.o, reg-s390x.c): Likewise.
16821 (s390-linux32.o, s390-linux32.c): Add rules.
16822 (s390-linux64.o, s390-linux64.c): Likewise.
16823 (s390x-linux64.o, s390x-linux64.c): Likewise.
16824 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16825 * linux-s390-low.c: Include <elf.h>.
16826 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16827 (init_registers_s390): Remove prototype.
16828 (init_registers_s390x): Likewise.
16829 (init_registers_s390_linux32): Add prototype.
16830 (init_registers_s390_linux64): Likewise.
16831 (init_registers_s390x_linux64): Likewise.
16832 (s390_num_regs_3264): New define.
16833 (s390_regmap_3264): New global variable.
16834 (s390_cannot_fetch_register): Remove obsolete check.
16835 (s390_cannot_store_register): Likewise.
16836 (s390_collect_ptrace_register): Handle upper/lower register halves.
16837 (s390_supply_ptrace_register): Likewise.
16838 (s390_fill_gregset): Update to register number changes.
16839 (s390_get_hwcap): New routine.
16840 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16841 Install appropriate regmap and register set.
16843 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16845 * server.c (gdbserver_version): Update copyright year to 2010.
16846 * gdbreplay.c (gdbreplay_version): Likewise.
16848 2009-12-28 Doug Evans <dje@google.com>
16850 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16851 elf/external.h. Include <elf.h> instead but only if necessary.
16853 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16855 * linux-low.c (linux_remove_process): Remove `detaching'
16856 parameter. Don't release/detach from thread_db here.
16857 (linux_kill): Release/detach from thread_db here, ...
16858 (linux_detach): ... and here, before actually detaching.
16859 (linux_wait_1): ... and here, when a process exits.
16860 * thread-db.c (any_thread_of): New.
16861 (thread_db_free): Switch the current inferior to a thread of the
16864 2009-12-21 Doug Evans <dje@google.com>
16866 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16868 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16869 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16870 warning ifndef __NR_tkill. Move setting of errno there too.
16871 Delete unnecessary resetting of errno after syscall.
16872 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16874 * configure.ac: Check for dladdr.
16875 * config.in: Regenerate.
16876 * configure: Regenerate.
16877 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16878 (try_thread_db_load): Update.
16880 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16882 2009-12-18 Doug Evans <dje@google.com>
16884 * event-loop.c: Include unistd.h if it exists.
16886 * linux-low.c (my_waitpid): Move definition away from being in
16887 between linux_tracefork_child/linux_test_for_tracefork.
16889 * gdb_proc_service.h (psaddr_t): Fix type.
16890 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16891 signature to match glibc.
16893 2009-12-16 Doug Evans <dje@google.com>
16895 * linux-low.c (linux_read_memory): Fix argument to read.
16897 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16899 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16900 events, don't leave current_inferior pointing at null.
16902 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16904 * win32-low.c (LOG): Delete.
16905 (OUTMSG): Output to stderr.
16906 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16907 on compile time LOG macro.
16908 (win32_wait): Fix debug output.
16910 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16912 * win32-low.c (win32_add_one_solib): If the dll name is
16913 "ntdll.dll", prepend the system directory to the dll path.
16915 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16917 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16919 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16920 Vladimir Prus <vladimir@codesourcery.com>
16922 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16923 * configure.ac: Check for __mcoldfire__ and set
16924 gdb_cv_m68k_is_coldfire.
16925 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16926 reg-cf.o and reg-m68k.o.
16927 * configure: Regenerated.
16929 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16931 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16932 Pass it to thread_db_free.
16933 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16934 proper `detaching' argument to linux_remove_process.
16935 * linux-low.h (thread_db_free): Add `detaching' parameter.
16936 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16938 (thread_db_free): Add `detaching' parameter. Only
16939 call td_ta_clear_event if detaching from process.
16941 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16943 * thread-db.c (thread_db_free): Fix typo.
16945 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16948 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16950 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16952 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16953 with an i686 compiler.
16954 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16956 * configure: Rebuilt.
16958 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16962 * server.c (handle_search_memory_1): Correct read_addr initialization
16963 in loop for searching subsequent chunks.
16965 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16967 * configure.ac: New --with-libthread-db option.
16968 * thread-db.c: Allow direct dependence on libthread_db.
16969 (thread_db_free): Adjust.
16970 * config.in: Regenerate.
16971 * configure: Likewise.
16973 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16976 * thread-db.c (attach_thread): New function.
16977 (maybe_attach_thread): Return success/failure.
16978 (find_new_threads_callback): Adjust.
16979 (thread_db_find_new_threads): Loop until no new threads.
16981 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16983 * proc-service.c (ps_lgetregs): Formatting.
16985 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16987 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16988 * configure.ac: Adjust.
16989 * linux-low.h (struct process_info_private): Move members to struct
16991 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16992 * linux-low.c (linux_remove_process): Adjust.
16993 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16994 * server.c (handle_query): Move code ...
16995 (handle_monitor_command): ... here. New function.
16996 * target.h (struct target_ops): New member.
16997 * thread-db.c (struct thread_db): New.
16998 (libthread_db_search_path): New variable.
16999 (thread_db_create_event, thread_db_enable_reporting)
17000 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17001 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17002 (try_thread_db_load_1, dladdr_to_soname): New functions.
17003 (try_thread_db_load, thread_db_load_search): New functions.
17004 (thread_db_init): Search for libthread_db.
17005 (thread_db_free): New function.
17006 (thread_db_handle_monitor_command): Likewise.
17007 * config.in: Regenerate.
17008 * configure: Regenerate.
17010 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17012 * spu-low.c (spu_kill): Wait for inferior to terminate.
17013 Call clear_inferiors.
17014 (spu_detach): Call clear_inferiors.
17016 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17018 * aclocal.m4: Regenerate.
17019 * config.in: Likewise.
17020 * configure: Likewise.
17022 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17024 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17025 (parse_spufs_run): New function.
17026 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17027 (ppc_breakpoint_at): Handle SPU breakpoints.
17029 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17031 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17032 (SPUFS_MAGIC): Define.
17033 (spu_enumerate_spu_ids): New function.
17034 (linux_qxfer_spu): New function.
17035 (linux_target_ops): Install linux_qxfer_spu.
17037 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17039 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17040 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17041 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17042 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17043 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17044 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17045 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17046 (init_registers_powerpc_cell32l): Add prototype.
17047 (init_registers_powerpc_cell64l): Likewise.
17048 (ppc_arch_setup): Detect Cell/B.E. architecture.
17050 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17052 * Makefile.in (datarootdir): New variable.
17054 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17056 * linux-low.c (linux_write_memory): Update debugging output.
17057 * Makefile.in (clean): Add new descriptions.
17058 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17059 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17060 * configure.srv: Add new files for arm*-*-linux*.
17061 * linux-arm-low.c: Add new declarations.
17062 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17063 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17064 (HWCAP_VFPv3D16): New.
17065 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17066 instead of __IWMMXT__.
17067 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17068 (arm_arch_setup): New.
17069 (target_regsets): Remove #ifdef. Add VFP regset.
17070 (the_low_target): Use arm_arch_setup.
17072 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17074 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17075 the main thread again.
17077 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17079 Adding Neutrino gdbserver.
17080 * configure: Regenerated.
17081 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17082 * configure.srv (i[34567]86-*-nto*): New target.
17083 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17084 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17085 (nto_comctrl) [__QNX__]: New function.
17086 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17088 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
17090 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17093 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17094 Pedro Alves <pedro@codesourcery.com>
17096 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17097 don't support CONTEXT_EXTENDED_REGISTERS.
17098 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17099 (the_low_target): Install them.
17100 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17101 failing with ERROR_PIPE_NOT_CONNECTED.
17103 2009-06-30 Doug Evans <dje@google.com>
17104 Pierre Muller <muller@ics.u-strasbg.fr>
17106 Add h/w watchpoint support to x86-linux, win32-i386.
17107 * Makefile.in (SFILES): Add i386-low.c
17108 (i386_low_h): Define.
17109 (i386-low.o): Add dependencies.
17110 (linux-x86-low.o): Add i386-low.h dependency.
17111 (win32-i386-low.o): Ditto.
17112 * i386-low.c: New file.
17113 * i386-low.h: New file.
17114 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17115 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17116 * linux-low.c (linux_add_process): Initialize arch_private.
17117 (linux_remove_process): Free arch_private.
17118 (add_lwp): Initialize arch_private.
17119 (delete_lwp): Free arch_private.
17120 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17122 * linux-low.h (process_info_private): New member arch_private.
17123 (lwp_info): New member arch_private.
17124 (linux_target_ops): New members new_process, new_thread,
17126 (ptid_of): New macro.
17127 * linux-x86-low.c: Include stddef.h, i386-low.h.
17128 (arch_process_info): New struct.
17129 (arch_lwp_info): New struct.
17130 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17131 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17132 (i386_dr_low_get_status): New function.
17133 (x86_insert_point, x86_remove_point): New functions.
17134 (x86_stopped_by_watchpoint): New function.
17135 (x86_stopped_data_address): New function.
17136 (x86_linux_new_process, x86_linux_new_thread): New functions.
17137 (x86_linux_prepare_to_resume): New function.
17138 (the_low_target): Add entries for insert_point, remove_point,
17139 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17141 * server.c (debug_hw_points): New global.
17142 (monitor_show_help): Document set debug-hw-points.
17143 (handle_query): Process "set debug-hw-points".
17144 * server.h (debug_hw_points): Declare.
17145 (paddress): Declare.
17146 * utils.c (NUMCELLS, CELLSIZE): New macros.
17147 (get_sell, xsnprintf, paddress): New functions.
17148 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17149 remove_point, stopped_by_watchpoint, stopped_data_address.
17150 * win32-i386-low.c: Include i386-low.h.
17151 (debug_reg_state): Replaces dr.
17152 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17153 (i386_dr_low_get_status): New function.
17154 (i386_insert_point, i386_remove_point): New functions.
17155 (i386_stopped_by_watchpoint): New function.
17156 (i386_stopped_data_address): New function.
17157 (i386_initial_stuff): Update.
17158 (get_thread_context,set_thread_context,i386_thread_added): Update.
17159 (the_low_target): Add entries for insert_point,
17160 remove_point, stopped_by_watchpoint, stopped_data_address.
17161 * win32-low.c (win32_insert_watchpoint): New function.
17162 (win32_remove_watchpoint): New function.
17163 (win32_stopped_by_watchpoint): New function.
17164 (win32_stopped_data_address): New function.
17165 (win32_target_ops): Add entries for insert_watchpoint,
17166 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17167 * win32-low.h (win32_target_ops): New members insert_point,
17168 remove_point, stopped_by_watchpoint, stopped_data_address.
17170 2009-06-25 Pedro Alves <pedro@codesourcery.com>
17172 * server.c (process_serial_event): Re-return unsupported, not
17173 error, if the type isn't recognized. Re-allow supporting only
17174 insert or remove packets. Also call require_running for
17175 breakpoints. Add missing break statement to default case. Tidy.
17176 * target.h (struct target_ops): Rename insert_watchpoint to
17177 insert_point, and remove_watchpoint to remove_point.
17179 * linux-low.h (struct linux_target_ops): Likewise.
17180 * linux-low.c (linux_insert_watchpoint): Rename to ...
17181 (linux_insert_point): ... this. Adjust.
17182 (linux_remove_watchpoint): Rename to ...
17183 (linux_remove_point): ... this. Adjust.
17184 (linux_target_ops): Adjust.
17185 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17186 (cris_insert_point): ... this.
17187 (cris_remove_watchpoint): Rename to ...
17188 (cris_remove_point): ... this.
17189 (the_low_target): Adjust.
17191 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17193 * server.c (handle_v_kill): Pass signal_pid to
17194 kill_inferior if multi_process is zero.
17196 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17198 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17199 * target.h (target_ops): Comment for *_watchpoint to make it clear
17200 the functions can get types '0' and '1'.
17202 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17204 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17205 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17206 * regcache.c (get_regcache): Likewise.
17207 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17208 * win32-low.c (child_fetch_inferior_registers): Remove check for
17211 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17212 Pedro Alves <pedro@codesourcery.com>
17214 * target.h (struct target_ops) <supports_multi_process>: New
17216 (target_supports_multi_process): New.
17217 * server.c (handle_query): Even if GDB reports support, only
17218 enable multi-process if the target also supports it. Report
17219 multi-process support only if the target backend supports it.
17220 * linux-low.c (linux_supports_multi_process): New function.
17221 (linux_target_ops): Install it as target_supports_multi_process
17224 2009-05-24 Doug Evans <dje@google.com>
17226 Global renaming of find_thread_pid to find_thread_ptid.
17227 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17228 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17229 All callers updated.
17231 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17232 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17235 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17236 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17237 (linux_resume_one_lwp): Ditto.
17239 2009-05-23 Doug Evans <dje@google.com>
17241 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17242 from struct inferior_list_entry * to struct lwp_info *.
17243 All callers updated.
17245 2009-05-13 Doug Evans <dje@google.com>
17247 * linux-x86-low.c: Don't include assert.h.
17248 (x86_siginfo_fixup): Use fatal, not assert.
17249 (x86_arch_setup): Fix comment.
17251 2009-05-12 Doug Evans <dje@google.com>
17253 Biarch support for i386/amd64 gdbserver.
17254 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17255 Add linux-x86-low.c.
17256 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17257 (linux-x86-low.o): Add.
17258 * linux-x86-64-low.c: Delete.
17259 * linux-i386-low.c: Delete.
17260 * linux-x86-low.c: New file.
17261 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17263 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17265 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17266 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17267 (linux_child_pid_to_exec_file): New function.
17268 (elf_64_header_p, elf_64_file_p): New functions.
17269 (siginfo_fixup): New function.
17270 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17271 give target a chance to convert layout.
17272 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17273 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17275 2009-05-07 Doug Evans <dje@google.com>
17277 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17278 (regsets_store_inferior_registers): Ditto.
17280 2009-05-06 Pedro Alves <pedro@codesourcery.com>
17284 * linux-low.c (must_set_ptrace_flags): Delete.
17285 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17287 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17288 `lwp->must_set_ptrace_flags' instead.
17289 (linux_wait_for_event_1): Set ptrace options here.
17290 (linux_wait_1): ... not here.
17292 2009-04-30 Doug Evans <dje@google.com>
17294 * inferiors.c (started_inferior_callback): New function.
17295 (attached_inferior_callback): New function.
17296 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17297 * server.c (print_started_pid, print_attached_pid): New functions.
17298 (detach_or_kill_for_exit): New function.
17299 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17300 * server.h (have_started_inferiors_p): Declare.
17301 (have_attached_inferiors_p): Declare.
17303 * inferiors.c (remove_process): Fix memory leak, free process.
17304 * linux-low.c (linux_remove_process): New function.
17305 (linux_kill): Call it instead of remove_process.
17306 (linux_detach, linux_wait_1): Ditto.
17308 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17310 * configure.srv: Add x86 Windows CE target.
17312 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17314 * inferiors.c (get_thread_process): Make global.
17315 * server.h (get_thread_process): Add prototype.
17316 * thread-db.c (find_one_thread): Use get_thread_process
17317 instead of current_process.
17318 (thread_db_get_tls_address): Do not crash if called when
17319 thread layer is not yet initialized.
17321 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17323 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17324 * spu-low.c (current_tid): Rename to ...
17325 (current_ptid): ... this.
17326 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17327 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17328 ptid_get_lwp (current_ptid) instead of current_tid.
17329 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17330 instead of current_tid. Use find_process_pid to verify pid
17331 argument is valid. Pass proper argument to remove_process.
17332 (spu_thread_alive): Compare current_ptid instead of current_tid.
17333 (spu_resume): Likewise.
17335 2009-04-02 Pedro Alves <pedro@codesourcery.com>
17337 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17340 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17342 Implement the multiprocess extensions, and add linux multiprocess
17345 * server.h (ULONGEST): Declare.
17346 (struct ptid, ptid_t): New.
17347 (minus_one_ptid, null_ptid): Declare.
17348 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17349 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
17350 (struct inferior_list_entry): Change `id' type from unsigned from
17352 (struct sym_cache, struct breakpoint, struct
17353 process_info_private): Forward declare.
17354 (struct process_info): Declare.
17355 (current_process): Declare.
17356 (all_processes): Declare.
17357 (initialize_inferiors): Declare.
17358 (add_thread): Adjust to use ptid_t.
17359 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
17360 (add_process, remove_process, find_thread_pid): Declare.
17361 (find_inferior_id): Adjust to use ptid_t.
17362 (cont_thread, general_thread, step_thread): Change type to ptid_t.
17363 (multi_process): Declare.
17364 (push_event): Adjust to use ptid_t.
17365 (read_ptid, write_ptid): Declare.
17366 (prepare_resume_reply): Adjust to use ptid_t.
17367 (clear_symbol_cache): Declare.
17368 * inferiors.c (all_processes): New.
17369 (null_ptid, minus_one_ptid): New.
17370 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17371 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
17372 (add_thread): Change unsigned long to ptid. Remove gdb_id
17374 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
17375 (gdb_id_to_thread): Rename to ...
17376 (find_thread_pid): ... this. Change unsigned long to ptid.
17377 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
17378 (loaded_dll, pull_pid_from_list): Adjust.
17379 (add_process, remove_process, find_process_pid)
17380 (get_thread_process, current_process, initialize_inferiors): New.
17381 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
17382 (struct target_waitstatus) <related_pid>: Ditto.
17383 (struct target_ops) <kill, detach>: Add `pid' argument. Change
17384 return type to int.
17385 (struct target_ops) <join>: Add `pid' argument.
17386 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
17387 (struct target_ops) <wait>: Add `ptid' field. Change return type
17389 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
17390 (mywait): Add `ptid' argument. Change return type to ptid_t.
17391 (target_pid_to_str): Declare.
17392 * target.c (set_desired_inferior): Adjust to use ptids.
17393 (mywait): Add new `ptid' argument. Adjust.
17394 (target_pid_to_str): New.
17395 * mem-break.h (free_all_breakpoints): Declare.
17396 * mem-break.c (breakpoints): Delelete.
17397 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
17398 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
17399 to use per-process breakpoint list.
17400 (free_all_breakpoints): New.
17401 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
17402 (symbol_cache, all_symbols_looked_up): Delete.
17404 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
17406 (prepare_resume_reply): Change ptid argument's type from unsigned
17407 long to ptid_t. Adjust. Implement W;process and X;process.
17408 (free_sym_cache, clear_symbol_cache): New.
17409 (look_up_one_symbol): Adjust to per-process symbol cache. *
17410 * server.c (cont_thread, general_thread, step_thread): Change type
17412 (attached): Delete.
17413 (multi_process): New.
17414 (last_ptid): Change type to ptid_t.
17415 (struct vstop_notif) <ptid>: Change type to ptid_t.
17416 (queue_stop_reply, push_event): Change `ptid' argument's type to
17418 (discard_queued_stop_replies): Add `pid' argument.
17419 (start_inferior): Adjust to use ptids. Adjust to mywait interface
17420 changes. Don't reference the `attached' global.
17421 (attach_inferior): Adjust to mywait interface changes.
17422 (handle_query): Adjust to use ptids. Parse GDB's qSupported
17423 features. Handle and report "multiprocess+". Handle
17425 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
17427 (handle_v_kill): New.
17428 (handle_v_stopped): Adjust to use target_pid_to_str.
17429 (handle_v_requests): Allow multiple attaches and runs when
17430 multiprocess extensions are in effect. Handle "vKill".
17431 (myresume): Adjust to use ptids.
17432 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
17433 (handle_status): Adjust to discard_queued_stop_replies interface
17435 (first_thread_of, kill_inferior_callback)
17436 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
17437 (main): Call initialize_inferiors. Adjust to use ptids, killing
17438 and detaching from all inferiors. Handle multiprocess packet
17440 * linux-low.h: Include gdb_proc_service.h.
17441 (struct process_info_private): New.
17442 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
17443 <lwpid_of>: Use ptid_get_lwp.
17444 (get_lwp_thread): Adjust.
17445 (struct lwp_info): Add `dead' member.
17446 (find_lwp_pid): Declare.
17447 * linux-low.c (thread_db_active): Delete.
17448 (new_inferior): Adjust comment.
17449 (inferior_pid): Delete.
17450 (linux_add_process): New.
17451 (handle_extended_wait): Adjust.
17452 (add_lwp): Change unsigned long to ptid.
17453 (linux_create_inferior): Add process to processes table. Adjust
17454 to use ptids. Don't set new_inferior here.
17455 (linux_attach_lwp): Rename to ...
17456 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
17457 it. Adjust to use ptids.
17458 (linux_attach_lwp): New.
17459 (linux_attach): Add process to processes table. Don't set
17461 (struct counter): New.
17462 (second_thread_of_pid_p, last_thread_of_process_p): New.
17463 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
17464 multiple processes.
17465 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
17466 processes. Remove process from process table.
17467 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
17468 to multiple processes.
17469 (any_thread_of): New.
17470 (linux_detach): Add `pid' argument, and handle it. Remove process
17471 from processes table.
17472 (linux_join): Add `pid' argument. Handle it.
17473 (linux_thread_alive): Change unsighed long argument to ptid_t.
17474 Consider dead lwps as not being alive.
17475 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
17476 threads we're not interested in.
17477 (same_lwp, find_lwp_pid): New.
17478 (linux_wait_for_lwp): Change `pid' argument's type from int to
17480 (linux_wait_for_event): Rename to ...
17481 (linux_wait_for_event_1): ... this. Change `pid' argument's type
17482 from int to ptid_t. Adjust.
17483 (linux_wait_for_event): New.
17484 (linux_wait_1): Add `ptid' argument. Change return type to
17485 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
17486 that exit from the process table.
17487 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
17489 (mark_lwp_dead): New.
17490 (wait_for_sigstop): Adjust to use ptids. If a process exits while
17491 stopping all threads, mark its main lwp as dead.
17492 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
17494 (fetch_register, usr_store_inferior_registers)
17495 (regsets_fetch_inferior_registers)
17496 (regsets_store_inferior_registers, linux_read_memory)
17497 (linux_write_memory): Inline `inferior_pid'.
17498 (linux_look_up_symbols): Adjust to use per-process
17499 `thread_db_active'.
17500 (linux_request_interrupt): Adjust to use ptids.
17501 (linux_read_auxv): Inline `inferior_pid'.
17502 (initialize_low): Don't reference thread_db_active.
17503 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
17504 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
17505 (ps_getpid): Return the pid of the current inferior.
17506 * thread-db.c (proc_handle, thread_agent): Delete.
17507 (thread_db_create_event, thread_db_enable_reporting): Adjust to
17509 (find_one_thread): Change argument type to ptid_t. Adjust to
17511 (maybe_attach_thread): Adjust to per-process data and ptids.
17512 (thread_db_find_new_threads): Ditto.
17513 (thread_db_init): Ditto.
17514 * spu-low.c (spu_create_inferior, spu_attach): Add process to
17515 processes table. Adjust to use ptids.
17516 (spu_kill, spu_detach): Adjust interface. Remove process from
17518 (spu_join, spu_thread_alive): Adjust interface.
17519 (spu_wait): Adjust interface. Remove process from processes
17520 table. Adjust to use ptids.
17521 * win32-low.c (current_inferior_tid): Delete.
17522 (current_inferior_ptid): New.
17523 (debug_event_ptid): New.
17524 (thread_rec): Take a ptid. Adjust.
17525 (child_add_thread): Add `pid' argument. Adjust to use ptids.
17526 (child_delete_thread): Ditto.
17527 (do_initial_child_stuff): Add `attached' argument. Add process to
17529 (child_fetch_inferior_registers, child_store_inferior_registers):
17531 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
17532 (win32_attach): Pass 1 to do_initial_child_stuff.
17533 (win32_kill): Adjust interface. Remove process from processes
17535 (win32_detach): Ditto.
17536 (win32_join): Adjust interface.
17537 (win32_thread_alive): Take a ptid.
17538 (win32_resume): Adjust to use ptids.
17539 (get_child_debug_event): Ditto.
17540 (win32_wait): Adjust interface. Remove exiting process from
17543 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17545 Non-stop mode support.
17547 * server.h (non_stop): Declare.
17548 (gdb_client_data, handler_func): Declare.
17549 (delete_file_handler, add_file_handler, start_event_loop):
17551 (handle_serial_event, handle_target_event, push_event)
17552 (putpkt_notif): Declare.
17553 * target.h (enum resume_kind): New.
17554 (struct thread_resume): Replace `step' field by `kind' field.
17555 (TARGET_WNOHANG): Define.
17556 (struct target_ops) <wait>: Add `options' argument.
17557 <supports_non_stop, async, start_non_stop>: New fields.
17558 (target_supports_non_stop, target_async): New.
17559 (start_non_stop): Declare.
17560 (mywait): Add `options' argument.
17561 * target.c (mywait): Add `options' argument. Print child exit
17562 notifications here.
17563 (start_non_stop): New.
17564 * server.c (non_stop, own_buf, mem_buf): New globals.
17565 (struct vstop_notif): New.
17566 (notif_queue): New global.
17567 (queue_stop_reply, push_event, discard_queued_stop_replies)
17568 (send_next_stop_reply): New.
17569 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17571 (attach_inferior): In non-stop mode, don't wait for the target
17573 (handle_general_set): Handle QNonStop.
17574 (handle_query): When handling qC, return the current general
17575 thread, instead of the first thread of the list.
17576 (handle_query): If the backend supports non-stop mode, include
17577 QNonStop+ in the qSupported query response.
17578 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17580 (handle_v_attach, handle_v_run): Handle non-stop mode.
17581 (handle_v_stopped): New.
17582 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17583 (myresume): Adjust to use resume_kind. Handle non-stop.
17584 (queue_stop_reply_callback): New.
17585 (handle_status): Handle non-stop mode.
17586 (main): Clear non_stop flag on reconnection. Use the event-loop.
17587 Refactor serial protocol handling from here ...
17588 (process_serial_event): ... to this new function. When GDB
17589 selects any thread, select one here. In non-stop mode, wait until
17590 GDB acks all pending events before exiting.
17591 (handle_serial_event, handle_target_event): New.
17592 * remote-utils.c (remote_open): Install remote_desc in the event
17594 (remote_close): Remove remote_desc from the event loop.
17595 (putpkt_binary): Rename to...
17596 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17597 (putpkt_binary): New as wrapper around putpkt_binary_1.
17598 (putpkt_notif): New.
17599 (prepare_resume_reply): In non-stop mode, don't change the
17601 * event-loop.c: New.
17602 * Makefile.in (OBJ): Add event-loop.o.
17603 (event-loop.o): New rule.
17605 * linux-low.h (pid_of): Moved here.
17607 (get_lwp_thread): Use lwpid_of.
17608 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17609 * linux-low.c (pid_of): Delete.
17610 (inferior_pid): Use lwpid_of.
17611 (linux_event_pipe): New.
17612 (target_is_async_p): New.
17614 (handle_extended_wait): Use lwpid_of.
17615 (add_lwp): Don't set lwpid field.
17616 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17617 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17618 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17619 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17620 first. Adjust to linux_wait_for_event interface changes. Use
17622 (linux_detach): Don't delete the main lwp here.
17623 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17624 (status_pending_p): Don't consider explicitly suspended lwps.
17625 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17626 pointer. Add OPTIONS argument. Change return type to int. Use
17627 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17628 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17629 pointer. Add status pointer argument. Return a pid instead of a
17630 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17631 changes. In non-stop mode, don't switch to a random thread.
17632 (linux_wait): Rename to...
17633 (linux_wait_1): ... this. Add target_options argument, and handle
17634 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17635 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17636 clean exit and signal exit code. Don't stop all threads in
17637 non-stop mode. In all-stop mode, only stop all threads when
17638 reporting a stop to GDB. Handle explicit thread stop requests.
17639 (async_file_flush, async_file_mark): New.
17641 (send_sigstop): Use lwpid_of.
17642 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17643 interface changes. In non-stop mode, don't switch to a random
17645 (linux_resume_one_lwp): Use lwpid_of.
17646 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17647 (linux_resume_one_thread): ... this. Handle resume_stop. In
17648 non-stop mode, don't look for pending flag in all threads.
17649 (resume_status_pending_p): Don't consider explicitly suspended
17651 (my_waitpid): Reimplement. Emulate __WALL.
17652 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17654 (sigchld_handler, linux_supports_non_stop, linux_async)
17655 (linux_start_non_stop): New.
17656 (linux_target_ops): Register linux_supports_non_stop, linux_async
17657 and linux_start_non_stop.
17658 (initialize_low): Install SIGCHLD handler.
17659 * thread-db.c (thread_db_create_event, find_one_thread)
17660 (thread_db_get_tls_address): Use lwpid_of.
17661 * win32-low.c (win32_detach): Adjust to use resume_kind.
17662 (win32_wait): Add `options' argument.
17663 * spu-low.c (spu_resume): Adjust to use resume_kind.
17664 (spu_wait): Add `options' argument.
17666 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17668 Decouple target code from remote protocol.
17670 * target.h (enum target_waitkind): New.
17671 (struct target_waitstatus): New.
17672 (struct target_ops) <wait>: Return an unsigned long. Take a
17673 target_waitstatus pointer instead of a char pointer.
17674 (mywait): Likewise.
17675 * target.c (mywait): Change prototype to return an unsigned long.
17676 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17677 * server.h (thread_from_wait, old_thread_from_wait): Delete
17679 (prepare_resume_reply): Change prototype to take a
17681 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17682 (last_status, last_ptid): New.
17683 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17684 pid instead of a signal.
17685 (attach_inferior): Remove "status" and "signal" parameters.
17687 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17689 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17690 (handle_v_requests, myresume): Remove "status" and "signal"
17691 parameters. Adjust.
17692 (handle_status): New.
17693 (main): Delete local `status'. Adjust.
17694 * remote-utils.c: Include target.h.
17695 (prepare_resume_reply): Change prototype to take a
17696 target_waitstatus. Adjust.
17698 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17700 * spu-low.c (spu_wait): Adjust.
17701 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17703 (win32_wait): Adjust.
17705 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17707 * target.h (struct thread_resume): Delete leave_stopped member.
17708 (struct target_ops): Add a `n' argument to the `resume' callback.
17709 * server.c (start_inferior): Adjust.
17710 (handle_v_cont, myresume): Adjust.
17711 * linux-low.c (check_removed_breakpoint): Adjust to resume
17712 interface change, and to removed leave_stopped field.
17713 (resume_ptr): Delete.
17714 (struct thread_resume_array): New.
17715 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17716 resume interface change.
17717 (linux_continue_one_thread, linux_queue_one_thread)
17718 (resume_status_pending_p): Check if the resume field is NULL
17719 instead of checking the leave_stopped member.
17720 (linux_resume): Adjust to the target resume interface change.
17721 * spu-low.c (spu_resume): Adjust to the target resume interface
17723 * win32-low.c (win32_detach, win32_resume): Ditto.
17725 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17727 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17729 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17731 (linux_continue_one_thread): Only preserve the stepping flag if
17732 there's a pending breakpoint.
17734 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17736 * server.c (main): After the inferior having exited, call
17737 remote_close before exiting gdbserver.
17739 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17741 Fix size of FPSCR in Power 7 processors.
17742 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17743 (PPC_FEATURE_HAS_DFP): New #define.
17744 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17747 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17749 * server.c (handle_query) Whitespace and formatting.
17751 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17753 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17754 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17755 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17756 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17757 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17758 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17759 Makefile.in, configure.ac: Fix whitespace throughout.
17760 * configure: Regenerate.
17762 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17764 * inferiors.c (find_inferior): Make it safe for the callback
17765 function to delete the currently iterated inferior.
17767 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17769 * Makefile.in (linuw_low_h): Move higher.
17770 (thread-db.o): Depend on $(linux_low_h).
17772 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17774 Rename "process" to "lwp" throughout.
17776 * linux-low.c (all_processes): Rename to...
17777 (all_lwps): ... this.
17778 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17779 (add_process): Rename to ...
17780 (add_lwp): ... this. Adjust.
17781 (linux_create_inferior): Adjust.
17782 (linux_attach_lwp): Adjust.
17783 (linux_attach): Adjust.
17784 (linux_kill_one_process): Rename to ...
17785 (linux_kill_one_lwp): ... this. Adjust.
17786 (linux_kill): Adjust.
17787 (linux_detach_one_process): Rename to ...
17788 (linux_detach_one_lwp): ... this. Adjust.
17789 (linux_detach): Adjust.
17790 (check_removed_breakpoint): Adjust.
17791 (status_pending_p): Adjust.
17792 (linux_wait_for_process): Rename to ...
17793 (linux_wait_for_lwp): ... this. Adjust.
17794 (linux_wait_for_event): Adjust.
17795 (send_sigstop): Adjust.
17796 (wait_for_sigstop): Adjust.
17797 (stop_all_processes): Rename to ...
17798 (stop_all_lwps): ... this.
17799 (linux_resume_one_process): Rename to ...
17800 (linux_resume_one_lwp): ... this. Adjust.
17801 (linux_set_resume_request, linux_continue_one_thread)
17802 (linux_queue_one_thread, resume_status_pending_p)
17803 (usr_store_inferior_registers, regsets_store_inferior_registers)
17804 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17806 * linux-low.h (get_process): Rename to ...
17807 (get_lwp): ... this. Adjust.
17808 (get_thread_process): Rename to ...
17809 (get_thread_lwp): ... this. Adjust.
17810 (get_process_thread): Rename to ...
17811 (get_lwp_thread): ... this. Adjust.
17812 (struct process_info): Rename to ...
17813 (struct lwp_info): ... this.
17814 (all_processes): Rename to ...
17815 (all_lwps): ... this.
17816 * proc-service.c (ps_lgetregs): Adjust.
17817 * thread-db.c (thread_db_create_event, find_one_thread)
17818 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17820 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17822 * server.c (handle_query): Handle "qAttached".
17824 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17826 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17827 GPLv3, update license URL.
17829 2009-03-01 Doug Evans <dje@google.com>
17831 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17832 (server_h): Add gdb_signals.h.
17833 (signals.o): Update.
17834 * server.h (target_signal_from_host,target_signal_to_host_p)
17835 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17837 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17839 * remote-utils.c (getpkt): Also generate remote-debug
17840 information if noack_mode is set.
17842 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17844 * server.c (handle_query): Report qXfer:siginfo:read and
17845 qXfer:siginfo:write as supported and handle them.
17846 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17847 * linux-low.c (linux_xfer_siginfo): New.
17848 (linux_target_ops): Set it.
17850 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17852 * server.c (gdbserver_usage): Mention --remote-debug.
17853 (main): Accept '--remote-debug' switch.
17855 2009-01-18 Doug Evans <dje@google.com>
17857 * regcache.c (new_register_cache): No need to check result of xcalloc.
17858 * server.c (handle_search_memory): Back out calls to xmalloc,
17859 result is checked and error is returned to user upon failure.
17860 (handle_query): Ditto. Add more checks for result of malloc.
17861 (handle_v_cont): Check result of malloc, report error back to
17863 (handle_v_run): Ditto. Call freeargv.
17864 * server.h (freeargv): Declare.
17865 * utils.c (freeargv): New fn.
17867 2009-01-15 Doug Evans <dje@google.com>
17869 * gdbreplay.c (perror_with_name): Make arg const char *.
17870 * server.h (target_signal_to_name): Make return type const char *.
17871 * thread-db.c (thread_db_err_str): Make return type const char *.
17872 * utils.c (perror_with_name): Make arg const char *.
17874 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17876 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17877 when handling a EXIT_PROCESS_DEBUG_EVENT.
17879 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17881 * gdbreplay.c (gdbreplay_version): Update copyright year.
17882 * server.c (gdbserver_version): Likewise.
17884 2009-01-05 Doug Evans <dje@google.com>
17886 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17887 (handle_extended_wait): Improve comment.
17889 2008-12-13 Doug Evans <dje@google.com>
17891 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17892 * server.h (ATTR_MALLOC): New macro.
17893 (xmalloc,xcalloc,xstrdup): Declare.
17894 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17895 * inferiors.c: Ditto.
17896 * linux-low.c: Ditto.
17897 * mem-break.c: Ditto.
17898 * regcache.c: Ditto.
17899 * remote-utils.c: Ditto.
17902 * win32-low.c: Ditto.
17904 2008-12-12 Doug Evans <dje@google.com>
17906 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17907 in debugging printf.
17909 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17911 2008-12-09 Doug Evans <dje@google.com>
17913 * linux-low.h (struct process_info): Delete member tid, unused.
17914 * thread-db.c (find_one_thread): Update.
17915 (maybe_attach_thread): Update.
17917 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17919 * target.h (struct target_ops): Add qxfer_osdata member.
17920 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17922 (linux_qxfer_osdata): New functions.
17923 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17925 * server.c (handle_query): Handle "qXfer:osdata:read:".
17926 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17927 (buffer_xml_printf): New functions.
17928 * server.h (struct buffer): New.
17929 (buffer_grow_str, buffer_grow_str0): New macros.
17930 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17931 (buffer_xml_printf): Declare.
17933 2008-11-24 Doug Evans <dje@google.com>
17935 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17937 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17939 * server.c (handle_v_run): Always use the supplied argument list.
17941 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17943 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17944 (xtensa_regmap_table): Add entry for scompare1.
17946 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17948 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17949 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17950 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17951 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17952 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17953 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17954 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17955 XML target descriptions.
17956 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17957 when inferior is running on an ISA 2.05 or later processor. Add
17958 special case to return offset for full 64-bit slot of FPSCR when
17961 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17963 * Makefile.in (SFILES, clean): Added sparc64 files.
17964 (reg-sparc64.o, reg-sparc64.c): New.
17965 * configure.srv (sparc*-*-linux*): New configuration.
17966 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17967 syscall arguments for SPARC.
17968 (regsets_store_inferior_registers): Likewise.
17969 * linux-sparc-low.c: New file.
17971 2008-10-21 Doug Evans <dje@google.com>
17973 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17974 (READLINE_DIR,READLINE_DEP): Delete.
17975 (INTERNAL_CFLAGS): Update.
17976 (LINTFLAGS): Update.
17978 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17980 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17981 whole argv from the last run, not just argv[0].
17983 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17985 * regcache.c (new_register_cache): Return NULL if the register
17986 cache size isn't known yet.
17987 (free_register_cache): Avoid dereferencing a NULL regcache.
17989 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17991 * configure.srv: Merge MIPS and MIPS64.
17993 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17995 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17997 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17999 * Makefile.in: Add required vsx dependencies.
18001 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18002 Declare init_registers_powerpc_vsx32l.
18003 Declare init_registers_powerpc_vsx64l.
18004 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18005 (ppc_arch_setup): Check for VSX in hwcap.
18006 (ppc_fill_vsxregset): New function.
18007 (ppc_store_vsxregset): New function.
18008 Add new VSX entry in regset_info target_regsets.
18010 * configure.srv: Add new VSX dependencies.
18012 2008-08-12 Pedro Alves <pedro@codesourcery.com>
18014 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18015 (remote_open): Set or clear transport_is_reliable.
18016 (putpkt_binary): Don't expect acks in noack mode.
18017 (getpkt): Don't send ack/nac in noack mode.
18018 * server.c (handle_general_set): Handle QStartNoAckMode.
18019 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18021 (main): Reset noack_mode on every connection.
18022 * server.h (noack_mode): Declare.
18024 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18026 * Makefile.in (GDBREPLAY_OBS): New variable.
18027 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18029 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18030 Daniel Jacobowitz <dan@codesourcery.com>
18032 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18033 (usr_store_inferior_registers): Likewise.
18034 (regsets_store_inferior_registers): Likewise.
18036 2008-07-31 Rolf Jansen <rj@surtec.com>
18037 Pedro Alves <pedro@codesourcery.com>
18039 * configure.ac: Check for memmem declaration.
18040 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18041 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18042 (disable_packet_qfThreadInfo): Unconditionally compile.
18043 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18044 * configure, config.in: Regenerate.
18046 2008-07-28 Doug Kwan <dougkwan@google.com>
18048 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18049 (linux_write_memory): Remove declaration of errno.
18051 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18053 * linux-low.c (handle_extended_wait): Do not use "status"
18054 variable uninitialized.
18056 2008-07-07 Pedro Alves <pedro@codesourcery.com>
18058 * server.c (handle_v_attach): Inhibit reporting dll changes.
18060 2008-06-27 Pedro Alves <pedro@codesourcery.com>
18062 * remote-utils.c (prepare_resume_reply): If requested, don't
18063 output "thread:TID" in the T stop reply.
18065 * server.c (disable_packet_vCont, disable_packet_Tthread)
18066 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18067 (handle_query): If requested, disable support for qC, qfThreadInfo
18069 (handle_v_requests): If requested, disable support for vCont.
18070 (gdbserver_show_disableable): New.
18071 (main): Handle --disable-packet and --disable-packet=LIST.
18073 * server.h (disable_packet_vCont, disable_packet_Tthread)
18074 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18076 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18078 * server.c (gdbserver_usage): Mention --version.
18080 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18082 * Makefile.in (gdbreplay.o): New rule.
18084 2008-06-06 Joseph Myers <joseph@codesourcery.com>
18086 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18087 message, not gdbserver.
18089 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
18090 Nathan Sidwell <nathan@codesourcery.com>
18091 Joseph Myers <joseph@codesourcery.com>
18093 * acinclude.m4: Include ../../config/acx.m4.
18094 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18095 * configure, config.in: Regenerate.
18096 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18097 * server.c (gdbserver_version): Print PKGVERSION.
18098 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18099 (main): Adjust gdbserver_usage calls.
18100 * gdbreplay.c (version, host_name): Add declarations.
18101 (gdbreplay_version, gdbreplay_usage): New.
18102 (main): Accept --version and --help options.
18104 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18106 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18107 (arm_breakpoint_at): Handle Thumb.
18108 (the_low_target): Add comment.
18110 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18112 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18114 2008-05-09 Doug Evans <dje@google.com>
18116 * server.h (decode_search_memory_packet): Declare.
18117 * remote-utils.c (decode_search_memory_packet): New fn.
18118 * server.c (handle_search_memory_1): New fn.
18119 (handle_search_memory): New fn.
18120 (handle_query): Process qSearch:memory packets.
18122 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18124 * regcache.c (registers_length): Remove.
18125 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18126 full register packet.
18127 * regcache.h (registers_length): Remove prototype.
18128 * server.h (PBUFSIZ): Define to 16384.
18130 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18132 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18133 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18134 powerpc-64l.o, and powerpc-altivec64l.o.
18135 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18136 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18137 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18138 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18139 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18142 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18143 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18144 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18145 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18146 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18147 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18148 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18149 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18150 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18151 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18154 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18155 (init_registers_powerpc_32l): ... this new prototype.
18156 (init_registers_powerpc_32): Remove, replace by ...
18157 (init_registers_powerpc_altivec32l): ... this new prototype.
18158 (init_registers_powerpc_e500): Remove, replace by ...
18159 (init_registers_powerpc_e500l): ... this new prototype.
18160 (init_registers_ppc64): Remove, replace by ...
18161 (init_registers_powerpc_64l): ... this new prototype.
18162 (init_registers_powerpc_64): Remove, replace by ...
18163 (init_registers_powerpc_altivec64l): ... this new prototype.
18164 (ppc_num_regs): Set to 73.
18165 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18166 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18167 (ppc_cannot_store_register): Handle orig_r3 and trap.
18168 (ppc_arch_setup): Update init_registers_... calls.
18169 (ppc_fill_gregset): Handle orig_r3 and trap.
18171 * inferiors.c (clear_inferiors): Reset current_inferior.
18173 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
18175 * acinclude.m4: Add override.m4.
18176 * configure: Regenerate.
18178 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18180 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18181 initial call to init_register_ppc64.
18183 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18185 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18186 single powerpc*-*-linux* case.
18187 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18189 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18191 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
18192 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
18194 * linux-ppc-low.c: Include <elf.h>.
18195 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18196 (ppc_hwcap): New global variable.
18197 (ppc_regmap): Remove __SPE__ #ifdef sections.
18198 (ppc_regmap_e500): New global variable.
18199 (ppc_cannot_store_register): Update __SPE__ special case.
18200 (ppc_get_hwcap): New function.
18201 (ppc_arch_setup): Use it to determine whether inferior supports
18202 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18203 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18204 Do not access registers if target does not support AltiVec.
18205 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18206 Do not access registers if target does not support SPE.
18207 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18209 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18211 * linux-low.c (disabled_regsets, num_regsets): New.
18212 (use_regsets_p): Delete.
18213 (linux_wait_for_process): Clear disabled_regsets.
18214 (regsets_fetch_inferior_registers): Check and set it.
18215 (regsets_store_inferior_registers): Likewise.
18216 (linux_fetch_registers, linux_store_registers): Do not use
18218 (initialize_low): Allocate disabled_regsets.
18220 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18222 * Makefile.in (LIBOBJS): New.
18223 (OBS): Use LIBOBJS.
18224 (memmem.o): New rule.
18225 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18226 * configure: Regenerated.
18228 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18230 * server.c (handle_query): Never return "unsupported" for
18231 qXfer:features:read queries.
18233 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18235 * server.c (get_features_xml): Fix inverted condition.
18236 (handle_query): Always support qXfer:feature:read.
18238 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18240 * server.c (wrapper_argv): New.
18241 (start_inferior): Handle wrapper_argv. If set, expect an extra
18243 (gdbserver_usage): Document --wrapper.
18244 (main): Parse --wrapper.
18246 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18248 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18249 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18250 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18251 (ppc_set_pc): Likewise.
18252 (ppc_arch_setup): New function.
18253 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18254 of collect_register.
18255 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
18257 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18259 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18260 instead of linux-ppc64-low.o.
18261 * linux-ppc64-low.c: Remove file.
18262 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18263 (linux-ppc64-low.o): Remove rule.
18265 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18266 (init_registers_powerpc_64): Likewise.
18267 (ppc_regmap): Conditionally define depending on __powerpc64__.
18268 (ppc_cannot_store_register): Do not special-case "fpscr" when
18269 compiled on __powerpc64__.
18270 (ppc_collect_ptrace_register): New function.
18271 (ppc_supply_ptrace_register): New function.
18272 (ppc_breakpoint): Change type to "unsigned int".
18273 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18274 (the_low_target): Conditionally provide initializers for the
18275 arch_setup member depending on __powerpc64__. Install
18276 collect_ptrace_register and supply_ptrace_register members.
18278 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18280 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18281 * server.c (gdbserver_xmltarget): Define.
18282 (get_features_xml): Use it to replace "target.xml" and arch_string.
18284 * configure.srv: Remove srv_xmltarget. Add XML files that were
18285 mentioned there to srv_xmlfiles instead. Remove conditional tests
18286 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18287 srv_xmlfiles and srv_regobj to include all possible choices.
18288 * configure.ac (srv_xmltarget): Remove.
18289 (srv_xmlfiles): Do not add "target.xml".
18290 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18291 checks for supplementary target information.
18292 * configure: Regenerate.
18293 * Makefile.in (XML_TARGET): Remove.
18294 (target.xml): Remove rule.
18295 (clean): Do not clean up target.xml.
18296 (.PRECIOUS): Do not mention target.xml.
18298 * target.h (struct target_ops): Remove arch_string member.
18299 * linux-low.c (linux_arch_string): Remove.
18300 (linux_target_ops): Remove arch_string initializer.
18301 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18302 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18303 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18304 * spu-low.c (spu_arch_string): Remove.
18305 (spu_target_ops): Remove arch_string initializer.
18306 * win32-low.c (win32_arch_string): Remove.
18307 (win32_target_ops): Remove arch_string initializer.
18308 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18309 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18310 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18312 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18314 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18315 by collect_ptrace_register and supply_ptrace_register hooks.
18316 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18317 instead of checking for the_low_target.left_pad_xfer.
18318 (usr_store_inferior_registers): Use collect_ptrace_register callback
18319 instead of checking for the_low_target.left_pad_xfer.
18321 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18322 (s390_supply_ptrace_register): Likewise.
18323 (s390_fill_gregset): Call s390_collect_ptrace_register.
18324 (the_low_target): Update.
18326 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18327 (ppc_supply_ptrace_register): Likewise.
18328 (the_low_target): Update.
18330 * linux-i386-low.c (the_low_target): Update.
18331 * linux-x86-64-low.c (the_low_target): Update.
18333 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18335 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18336 reg-s390.o and reg-s390x.o.
18338 * linux-low.c (new_inferior): New global variable.
18339 (linux_create_inferior, linux_attach): Set it.
18340 (linux_wait_for_process): Call the_low_target.arch_setup after the
18341 target has stopped for the first time.
18342 (initialize_low): Do not call the_low_target.arch_setup.
18344 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
18345 (s390_set_pc): Likewise.
18346 (s390_arch_setup): New function.
18347 (the_low_target): Use s390_arch_setup as arch_setup routine.
18349 * regcache.c (realloc_register_cache): New function.
18350 (set_register_cache): Call it for each existing regcache.
18352 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18354 * server.h (init_registers): Remove prototype.
18356 * linux-low.h (struct linux_target_ops): Add arch_setup field.
18357 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
18358 instead of init_registers ().
18359 * linux-arm-low.c (init_registers_arm): Add prototype.
18360 (init_registers_arm_with_iwmmxt): Likewise.
18361 (the_low_target): Add initializer for arch_setup field.
18362 * linux-cris-low.c (init_registers_cris): Add prototype.
18363 (the_low_target): Add initializer for arch_setup field.
18364 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
18365 (the_low_target): Add initializer for arch_setup field.
18366 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
18367 (the_low_target): Add initializer for arch_setup field.
18368 * linux-ia64-low.c (init_registers_ia64): Add prototype.
18369 (the_low_target): Add initializer for arch_setup field.
18370 * linux-m32r-low.c (init_registers_m32r): Add prototype.
18371 (the_low_target): Add initializer for arch_setup field.
18372 * linux-m68k-low.c (init_registers_m68k): Add prototype.
18373 (the_low_target): Add initializer for arch_setup field.
18374 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
18375 (init_registers_mips64_linux): Likewise.
18376 (the_low_target): Add initializer for arch_setup field.
18377 * linux-ppc-low.c (init_registers_ppc): Add prototype.
18378 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
18379 (the_low_target): Add initializer for arch_setup field.
18380 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
18381 (init_registers_powerpc_64): Likewise.
18382 (the_low_target): Add initializer for arch_setup field.
18383 * linux-s390-low.c (init_registers_s390): Add prototype.
18384 (init_registers_s390x): Likewise.
18385 (the_low_target): Add initializer for arch_setup field.
18386 * linux-sh-low.c (init_registers_sh): Add prototype.
18387 (the_low_target): Add initializer for arch_setup field.
18388 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
18389 (the_low_target): Add initializer for arch_setup field.
18390 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
18391 (the_low_target): Add initializer for arch_setup field.
18393 * win32-low.h (struct win32_target_ops): Add arch_setup field.
18394 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
18395 instead of init_registers ().
18396 * win32-arm-low.c (init_registers_arm): Add prototype.
18397 (the_low_target): Add initializer for arch_setup field.
18398 * win32-i386-low.c (init_registers_i386): Add prototype.
18399 (the_low_target): Add initializer for arch_setup field.
18401 * spu-low.c (init_registers_spu): Add prototype.
18402 (initialize_low): Call initialie_registers_spu () instead of
18403 initialize_registers ().
18405 2008-02-19 Pedro Alves <pedro@codesourcery.com>
18407 * server.c (handle_v_requests): When handling the vRun and vAttach
18408 packets, if already debugging a process, don't kill it. Return an
18411 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
18413 * server.c (handle_query): Correct length check.
18415 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
18417 * win32-low.c (do_initial_child_stuff): Add process handle
18418 parameter. Set current_process_handle and current_process_id from the
18419 parameters. Clear globals.
18420 (win32_create_inferior): Don't set current_process_handle and
18421 current_process_id here. Instead pass them on the call to
18422 do_initial_child_stuff.
18423 (win32_attach): Likewise.
18424 (win32_clear_inferiors): New.
18425 (win32_kill): Don't close the current process handle or the
18426 current thread handle here. Instead call win32_clear_inferiors.
18427 (win32_detach): Don't open a new handle to the process. Call
18428 win32_clear_inferiors.
18429 (win32_join): Don't rely on current_process_handle; open a new
18430 handle using the process id.
18431 (win32_wait): Call win32_clear_inferiors when the inferior process
18434 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
18436 * server.c (monitor_show_help): Add "exit".
18438 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
18440 * Makefile.in (SFILES): Add linux-xtensa-low.c.
18441 (clean): Add reg-xtensa.c.
18442 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
18443 * configure.srv (xtensa*-*-linux*) New target.
18444 * linux-xtensa-low.c: New.
18445 * xtensa-xtregs.c: New.
18447 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
18449 * hostio.c: Don't include errno.h.
18450 (errno_to_fileio_errno): Move to hostio-errno.
18451 * hostio.c: (hostio_error): Remove the error parameter. Defer the
18452 error number outputting to the target->hostio_last_error callback.
18453 (hostio_packet_error): Use FILEIO_EINVAL directly.
18454 (handle_open, handle_pread, hostio_error, handle_unlink): Update
18455 calls to hostio_error.
18456 * hostio-errno.c: New.
18457 * server.h (hostio_last_error_from_errno): Declare.
18458 * target.h (target_ops): Add hostio_last_error member.
18459 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
18460 as hostio_last_error handler.
18461 * spu-low.c (spu_target_ops): Likewise.
18462 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
18463 (wince_hostio_last_error): New functions.
18464 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
18465 as hostio_last_error handler.
18466 (win32_target_ops) [!_WIN32_WCE]: Register
18467 hostio_last_error_from_errno as hostio_last_error handler.
18468 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
18469 (hostio-errno.o): New rule.
18470 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
18471 * configure.srv (srv_hostio_err_objs): New variable. Default to
18473 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
18474 * configure: Regenerate.
18476 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18478 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
18479 (linux_kill, linux_detach): Clean up the process list.
18480 * remote-utils.c (remote_open): Improve port number parsing.
18481 (putpkt_binary, input_interrupt): Only send interrupts if the target
18483 * server.c (extended_protocol): Make static.
18484 (attached): Define earlier.
18485 (exit_requested, response_needed, program_argv): New variables.
18486 (target_running): New.
18487 (start_inferior): Clear attached here.
18488 (attach_inferior): Set attached here.
18489 (require_running): Define.
18490 (handle_query): Use require_running and target_running. Implement
18492 (handle_v_attach, handle_v_run): New.
18493 (handle_v_requests): Use require_running. Handle vAttach and vRun.
18494 (gdbserver_usage): Update.
18495 (main): Redo argument parsing. Handle --debug and --multi. Handle
18496 --attach along with other options or after the port. Save
18497 program_argv. Support no initial program. Resynchronize
18498 communication with GDB after an error. Handle "monitor exit".
18499 Use require_running and target_running. Always allow the extended
18500 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
18501 restart in extended mode.
18502 * README: Refer to the GDB manual. Update --attach usage.
18504 2007-12-20 Andreas Schwab <schwab@suse.de>
18506 * linux-low.c (STACK_SIZE): Define.
18507 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18508 (linux_test_for_tracefork): Likewise.
18510 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18512 * linux-low.c (linux_wait_for_event): Update messages. Do not
18513 reinsert auto-delete breakpoints.
18514 * mem-break.c (struct breakpoint): Change return type of handler to
18516 (set_breakpoint_at): Update handler type.
18517 (reinsert_breakpoint_handler): Return 1 instead of calling
18519 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18521 (check_breakpoints): Delete auto-delete breakpoints and return 2.
18522 * mem-break.h (set_breakpoint_at): Update handler type.
18523 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
18524 * win32-low.c (auto_delete_breakpoint): New.
18525 (get_child_debug_event): Use it.
18527 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18529 * configure.ac: Check for pread and pwrite.
18530 * hostio.c (handle_pread): Fall back to lseek and read.
18531 (handle_pwrite): Fall back to lseek and write.
18532 * config.in, configure: Regenerated.
18534 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18536 * server.c (myresume): Add own_buf argument.
18537 (main): Update calls.
18539 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18541 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
18542 * remote-utils.c (remote_open): Do not call disable_async_io.
18543 (block_async_io): Delete.
18544 (unblock_async_io): Make static.
18545 (initialize_async_io): New.
18546 * server.c (handle_v_cont): Handle async I/O here.
18547 (myresume): Likewise. Move other common resume tasks here...
18548 (main): ... from here. Call initialize_async_io. Disable async
18549 I/O before the main loop.
18550 * server.h (initialize_async_io): Declare.
18551 (block_async_io, unblock_async_io): Delete prototypes.
18552 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
18554 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18556 * remote-utils.c (readchar): Allow binary data in received messages.
18558 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18560 * win32-low.c (attaching): New global.
18561 (win32_create_inferior): Clear the `attaching' global.
18562 (win32_attach): Set the `attaching' global.
18563 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18564 attaching. Only set a breakpoint at the entry point if not
18567 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18569 * server.c (main): Don't report dll events on the initial
18570 connection on attaches.
18572 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18574 * server.c (main): Relax numerical bases supported for the pid of
18575 the --attach command line argument.
18577 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18579 * win32-low.c (win32_attach): Call OpenProcess before
18580 DebugActiveProcess, not after. Add last error output to error
18583 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18585 * win32-low.c (win32_get_thread_context)
18586 (win32_set_thread_context): New functions.
18587 (thread_rec): Use win32_get_thread_context.
18588 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18589 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18592 2007-12-03 Leo Zayas
18593 Pedro Alves <pedro_alves@portugalmail.pt>
18595 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18597 (child_add_thread): Minor cleanup.
18598 (child_continue): Resume artificially suspended threads before
18599 calling ContinueDebugEvent.
18600 (suspend_one_thread): New.
18601 (fake_breakpoint_event): New.
18602 (get_child_debug_event): Change return type to int. Check here if
18603 gdb sent an interrupt request. If a soft interrupt was requested,
18604 fake a breakpoint event. Return 0 if there is no event to handle,
18606 (win32_wait): Don't check here if gdb sent an interrupt request.
18607 Ensure there is a valid event to handle.
18608 (win32_request_interrupt): Add soft interruption method as last
18611 2007-12-03 Leo Zayas
18612 Pedro Alves <pedro_alves@portugalmail.pt>
18614 * win32-low.h (win32_thread_info): Add descriptions to the
18615 structure members. Replace `suspend_count' counter by a
18617 * win32-low.c (thread_rec): Update condition of when to get the
18618 context from the inferior. Rely on ContextFlags being set if it
18619 has already been retrieved. Only suspend the inferior thread if
18620 we haven't already. Warn if that fails.
18621 (continue_one_thread): s/suspend_count/suspended/. Only call
18622 ResumeThread once. Warn if that fails.
18624 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18626 * win32-low.c (win32_wait): Don't read from the inferior when it
18627 has already exited.
18629 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18631 * Makefile.in (win32_low_h): New variable.
18632 (win32-low.o): Add dependency on $(win32_low_h).
18633 (win32-arm-low.o, win32-i386-low.o): New rules.
18635 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18637 * hostio.c: Correct copyright year.
18639 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18641 * Makefile.in (OBS): Add hostio.o.
18642 (hostio.o): New rule.
18643 * server.h (handle_vFile): Declare.
18644 * hostio.c: New file.
18645 * server.c (handle_v_requests): Take packet_len and new_packet_len
18646 for binary packets. Call handle_vFile.
18647 (main): Update call to handle_v_requests.
18649 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18651 * linux-low.c: Include <sched.h>.
18653 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18655 * linux-low.c (linux_tracefork_grandchild): New.
18656 (linux_tracefork_child): Use clone.
18657 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18659 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18661 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18663 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18665 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18667 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18669 * inferiors.c (change_inferior_id): Delete.
18670 (add_pid_to_list, pull_pid_from_list): New.
18671 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18672 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18673 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18674 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18675 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18676 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18677 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18678 (using_threads): Always set to 1.
18679 (handle_extended_wait): New.
18680 (add_process): Do not set TID.
18681 (linux_create_inferior): Set must_set_ptrace_flags.
18682 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18683 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18684 (linux_thread_alive): Rename TID argument to LWPID.
18685 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18686 (linux_wait_for_event): Do not use TID or check using_threads. Update
18687 call to dead_thread_notify. Call handle_extended_wait.
18688 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18689 (send_sigstop): Delete sigstop_sent.
18690 (wait_for_sigstop): Avoid TID.
18691 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18692 (linux_test_for_tracefork): New.
18693 (linux_lookup_signals): Use thread_db_active and
18694 linux_supports_tracefork_flag.
18695 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18696 * linux-low.h (get_process_thread): Avoid TID.
18697 (struct process_ifo): Move thread_known and tid to the end. Remove
18699 (linux_attach_lwp, thread_db_init): Update prototypes.
18700 * server.h (change_inferior_id): Delete prototype.
18701 (add_pid_to_list, pull_pid_from_list): New prototypes.
18702 * thread-db.c (thread_db_use_events): New.
18703 (find_first_thread): Rename to...
18704 (find_one_thread): ...this. Update callers and messages. Do not
18705 call fatal. Check thread_db_use_events. Do not call
18706 change_inferior_id or new_thread_notify.
18707 (maybe_attach_thread): Update. Do not call new_thread_notify.
18708 (thread_db_init): Set thread_db_use_events. Check use_events.
18709 * utils.c (fatal, warning): Correct message prefix.
18711 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18713 * Makefile.in (clean): Remove new files.
18714 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18715 (powerpc-64.o, powerpc-64.c): New rules.
18716 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18717 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18719 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18721 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18722 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18723 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18724 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18725 (target_regsets): Add AltiVec and SPE register sets.
18726 * configure.ac: Check for AltiVec and SPE.
18727 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18728 (ppc_fill_vrregset, ppc_store_vrregset): New.
18729 (target_regsets): Add AltiVec register set.
18730 * configure: Regenerated.
18732 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18734 * linux-low.c (O_LARGEFILE): Define.
18735 (linux_read_memory): Use /proc/PID/mem.
18736 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18737 * configure, config.in: Regenerated.
18739 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18741 * linux-low.c (linux_wait_for_event): Do not pass signals while
18744 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18746 * win32-low.c (create_process): New.
18747 (win32_create_inferior): Use create_process instead of
18748 CreateProcess. If create_process failed retry appending an ".exe"
18749 suffix. Store the GetLastError result immediatelly after
18750 create_process calls and use it on the call to error.
18752 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18754 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18756 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18758 * configure.ac: Switch license to GPLv3.
18760 2007-08-01 Michael Snyder <msnyder@access-company.com>
18762 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18764 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18766 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18768 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18769 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18770 CloseToolhelp32Snapshot.
18771 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18772 CloseToolhelp32Snapshot.
18774 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18776 * server.c (main): Check for inferior exit before main loop.
18778 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18780 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18781 instead of on tmp_desc.
18783 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18784 Daniel Jacobowitz <dan@codesourcery.com>
18786 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18787 (add_thread): Minor cleanups.
18788 (clear_inferiors): Move lower in the file. Clear the DLL
18790 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18791 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18792 (xml_escape_text): New.
18793 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18795 (handle_v_cont): Report errors.
18796 (gdbserver_version): Update.
18797 (main): Correct size of own_buf. Do not report initial DLL events.
18798 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18799 (unloaded_dll, xml_escape_text): New.
18800 * win32-low.c (enum target_waitkind): Update comments.
18801 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18802 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18803 (win32_EnumProcessModules, win32_GetModuleInformation)
18804 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18805 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18806 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18807 (win32_Module32First, win32_Module32Next, load_toolhelp)
18808 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18809 (get_child_debug_event): Handle DLL events.
18810 (win32_wait): Likewise.
18812 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18814 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18815 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18817 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18819 * win32-low.c (handle_output_debug_string): Ignore event if not
18822 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18824 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18826 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18828 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18830 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18832 * inferiors.c (change_inferior_id): Add comment.
18833 * linux-low.c (check_removed_breakpoint): Add an early
18834 prototype. Improve debug output.
18835 (linux_attach): Doc update.
18836 (linux_detach_one_process, linux_detach): Clean up before releasing
18838 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18839 * linux-low.h (struct process_info): Doc improvement.
18840 * mem-break.c (delete_all_breakpoints): New.
18841 * mem-break.h (delete_all_breakpoints): New prototype.
18842 * thread-db.c (find_first_thread): New.
18843 (thread_db_create_event): Call it instead of
18844 thread_db_find_new_threads. Clean up unused variables.
18845 (maybe_attach_thread): Remove first thread handling.
18846 (thread_db_find_new_threads): Use find_first_thread.
18847 (thread_db_get_tls_address): Likewise.
18849 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18851 * thread-db.c (thread_db_find_new_threads): Add prototype.
18852 (thread_db_create_event): Check for the main thread before adding
18854 (maybe_attach_thread): Only enable event reporting if TID == 0.
18855 (thread_db_get_tls_address): Check for new threads.
18857 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18859 * linux-low.c (linux_create_inferior): Try execv before execvp.
18860 * spu-low.c (spu_create_inferior): Likewise.
18862 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18864 * linux-low.c (linux_create_inferior): Change execv to execvp.
18865 * spu-low.c (spu_create_inferior): Likewies.
18867 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18869 * Makefile.in (clean): Clean new files instead of deleted ones.
18870 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18871 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18873 * configure.srv: Specify XML files and new regformats for MIPS and
18875 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18876 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18877 an entry for the restart register.
18878 (mips_cannot_fetch_register, mips_cannot_store_register)
18879 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18880 register names to match the XML descriptions.
18881 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18882 restart register instead of $0.
18884 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18885 Markus Deuling <deuling@de.ibm.com>
18887 * remote-utils.c (decode_xfer_write): New function.
18888 * server.h (decode_xfer_write): Add prototype.
18889 * server.c (handle_query): Add PACKET_LEN argument. Support
18890 qXfer:spu:read and qXfer:spu:write packets.
18891 (main): Pass packet_len to handle_query.
18892 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18893 * target.h (target_ops): Add qxfer_spu.
18895 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18897 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18898 accessing non-seekable spufs files.
18900 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18902 * server.c (handle_query): Add reply for qC packet.
18904 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18905 Leo Zayas <lerele@champenstudios@com>
18907 * server.h (check_remote_input_interrupt_request): New function.
18908 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18909 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18910 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18911 (check_remote_input_interrupt_request): New function.
18912 * server.h (check_remote_input_interrupt_request): Declare.
18913 * win32-low.c (winapi_DebugBreakProcess,
18914 winapi_GenerateConsoleCtrlEvent): New typedefs.
18915 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18917 (win32_wait): Check for remote interrupt request
18918 with check_remote_input_interrupt_request.
18919 (win32_request_interrupt): New function.
18920 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18922 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18924 * win32-low.c (debug_registers_changed,
18925 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18926 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18927 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18928 (thread_rec): Get context using the low target.
18929 (child_add_thread): Call thread_added on the low target,
18930 which does the same thing.
18932 (do_initial_child_stuff): Remove debug registers references.
18933 Set context using the low target. Resume threads after
18934 setting the contexts.
18935 (child_continue): Remove dead variable. Remove debug
18936 registers references.
18937 (child_fetch_inferior_registers): Go through the low target.
18938 (do_child_store_inferior_registers): Remove.
18939 (child_store_inferior_registers): Go through the low target.
18940 (win32_resume): Remove debug registers references.
18941 Set context using the low target.
18942 (handle_exception): Change return type to void. Don't record
18943 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18944 first chance exception.
18945 (get_child_debug_event): Change return type to void. Remove
18946 goto loop. Always return after waiting for debug event.
18947 (win32_wait): Convert to switch statement. Handle spurious
18950 * win32-i386-low.c (debug_registers_changed,
18951 debug_registers_used): New.
18952 (initial_stuff): Rename to ...
18953 (i386_initial_stuff): ... this. Clear debug registers
18955 (store_debug_registers): Delete.
18956 (i386_get_thread_context): New.
18957 (load_debug_registers): Delete.
18958 (i386_set_thread_context): New.
18959 (i386_thread_added): New.
18960 (single_step): Rename to ...
18961 (i386_single_step): ... this.
18962 (do_fetch_inferior_registers): Rename to ...
18963 (i386_fetch_inferior_register): ... this.
18964 (i386_store_inferior_register): New.
18965 (the_low_target): Adapt to new interface.
18967 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18968 (arm_get_thread_context): New.
18969 (arm_set_thread_context): New.
18971 (do_fetch_inferior_registers): Rename to ...
18972 (arm_fetch_inferior_register): ... this.
18973 (arm_store_inferior_register): New.
18974 (arm_wince_breakpoint): Reimplement as unsigned long.
18975 (arm_wince_breakpoint_len): Define.
18976 (the_low_target): Adapt to new interface.
18978 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18979 load_debug_registers. Add get_thread_context, set_thread_context,
18980 thread_added and store_inferior_register. Rename
18981 fetch_inferior_registers to fetch_inferior_register.
18982 (regptr): Remove declaration.
18984 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18986 * linux-low.c (linux_detach): Change return type to int. Return 0.
18987 * spu-low.c (spu_detach): Likewise.
18989 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18991 * target.h (target_ops): Change return type of detach to int.
18993 (join_inferior): New.
18994 * server.c (main): Don't skip detach support on mingw32.
18995 If the inferior doesn't support detaching return error.
18996 Call join_inferior instead of using waitpid.
18997 * linux-low.c (linux_join): New.
18998 (linux_target_op): Add linux_join.
18999 * spu-low.c (spu_join): New.
19000 (spu_target_ops): Add spu_join.
19001 * win32-low.c (win32_detach): Adapt to new interface.
19002 Reopen current_process_handle before detaching. Issue a child
19003 resume before detaching.
19005 (win32_target_op): Add win32_join.
19007 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19009 * win32-low.c (win32-attach): Fix return value.
19010 * target.h (target_ops): Describe ATTACH return values.
19012 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19014 * win32-low.c (GETPROCADDRESS): Define.
19015 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19016 (winapi_DebugSetProcessKillOnExit): Likewise.
19017 (win32_create_inferior): Force usage of ansi CreateProcessA.
19018 (win32_attach): Use GETPROCADDRESS.
19019 (win32_detach): Likewise.
19021 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19023 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19025 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19027 * win32-low.c: Commit leftover changes from 2007-03-29.
19029 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19031 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19032 fields short instead of int. Add explicit padding.
19033 (i387_cache_to_fsave): Remove unnecessary casts.
19034 (i387_fsave_to_cache): Doc fix.
19035 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19037 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19039 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19040 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19042 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19044 * configure.srv (arm*-*-mingw32ce*): Move near the other
19047 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19049 * configure.ac: Add errno checking.
19050 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19051 sys/file.h and malloc.h.
19052 (AC_CHECK_DECLS): Add perror.
19053 (srv_mingwce): Handle.
19054 * configure.srv (i[34567]86-*-cygwin*): Add
19055 win32-i386-low.o to srv_tgtobj.
19056 (i[34567]86-*-mingw*): Likewise.
19057 (arm*-*-mingw32ce*): Add case.
19058 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19059 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19060 [__MINGW32CE__] (strerror): New function.
19061 [__MINGW32CE__] (errno): Define to GetLastError.
19062 [__MINGW32CE__] (COUNTOF): New macro.
19063 (remote_open): Remove extra close call.
19064 * mem-break.c (delete_breakpoint_at): New function.
19065 * mem-break.h (delete_breakpoint_at): Declare.
19066 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19067 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19068 [USE_WIN32API] (read, write): Add char* casts.
19069 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19070 * server.h: Include wincecompat.h on Windows CE.
19071 [HAVE_ERRNO_H]: Check.
19072 (perror): Declare if not declared.
19073 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19074 (perror_with_name): Remove errno declaration.
19075 * wincecompat.h: New.
19076 * wincecompat.c: New.
19077 * win32-low.h: New.
19078 * win32-arm-low.c: New.
19079 * win32-i386-low.c: New.
19080 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19081 (OUTMSG2): Make it safe.
19083 (COUNTOF): New macro.
19084 (NUM_REGS): Get it from the low target.
19085 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19086 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19087 (thread_rec): Let low target handle debug registers.
19088 (child_add_thread): Likewise.
19089 (child_init_thread_list): Likewise.
19090 (continue_one_thread): Likewise.
19092 (do_child_fetch_inferior_registers): Move to ...
19093 * win32-i386-low.c: ... here, and rename to ...
19094 (do_fetch_inferior_registers): ... this.
19095 * win32-low.c (child_fetch_inferior_registers):
19096 Go through the low target.
19097 (do_child_store_inferior_registers): Use regptr.
19098 (strwinerror): New function.
19099 (win32_create_inferior): Handle Windows CE.
19100 Use strwinerror instead of strerror on Windows error
19101 codes. Add program to the error output.
19102 Don't close the main thread handle on Windows CE.
19103 (win32_attach): Use coredll.dll on Windows CE.
19104 (win32_kill): Close current process and current
19106 (win32_detach): Use coredll.dll on Windows CE.
19107 (win32_resume): Let low target handle debug registers, and
19109 (handle_exception): Add/Remove initial breakpoint. Avoid
19110 non-existant WSTOPSIG on Windows CE.
19111 (win32_read_inferior_memory): Cast to remove warning.
19112 (win32_arch_string): Go through the low target.
19113 (initialize_low): Call set_breakpoint_data with the low
19114 target's breakpoint.
19115 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19116 FOP_REGNUM, mappings): Move to ...
19117 * win32-i386-low.c: ... here.
19118 * win32-low.c (win32_thread_info): Move to ...
19119 * win32-low.h: ... here.
19120 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19121 win32-arm-low.c and wincecompat.c.
19122 (all:): Add $EXEEXT.
19123 (install-only:): Likewise.
19124 (gdbserver:): Likewise.
19125 (gdbreplay:): Likewise.
19126 * config.in: Regenerate.
19127 * configure: Regenerate.
19129 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19131 * win32-low.c: Rename typedef thread_info to
19132 win32_thread_info throughout.
19134 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19136 * win32-i386-low.c: Rename to ...
19137 * win32-low.c: ... this.
19138 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19139 * Makefile.in: Likewise.
19141 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19143 * remote-utils.c (monitor_output): Constify msg parameter.
19144 * server.h (monitor_output): Likewise.
19145 * win32-i386-low.c (handle_output_debug_string): New.
19146 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19147 handle_output_debug_string.
19148 (get_child_debug_event): Likewise.
19150 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19152 * server.c (main): Correct strtoul check.
19154 2007-03-27 Jon Ringle <jon@ringle.org>
19156 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19158 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19160 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19162 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19164 * terminal.h: Check HAVE_SGTTY_H.
19166 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
19168 * remote-utils.c (remote_open): Print out the assigned port number.
19170 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19172 * remote-utils.c (monitor_output): New function.
19173 * server.c (debug_threads): Define here.
19174 (monitor_show_help): New function.
19175 (handle_query): Handle qRcmd.
19176 (main): Do not handle 'd' packet.
19177 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19178 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19181 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19183 * Makefile.in (EXEEXT): New.
19184 (clean): Use $(EXEEXT).
19186 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19188 * target.h (target_ops): Rename send_signal to request_interrupt,
19189 and remove enum target_signal parameter.
19190 * linux-low.c (linux_request_interrupt): Rename from
19191 linux_send_signal, and always send SIGINT.
19192 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19193 and always send SIGINT.
19194 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19196 (input_interrupt): Likewise.
19198 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19200 * server.c (get_features_xml): Check if target implemented
19202 * win32-i386-low.c (win32_arch_string): New.
19203 (win32_target_ops): Add win32_arch_string as arch_string member.
19205 2007-02-22 Markus Deuling <deuling@de.ibm.com>
19207 * spu-low.c (spu_arch_string): New.
19208 (spu_target_ops): Add spu_arch_string.
19210 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19212 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19213 * configure.ac: Do not check for terminal.h.
19214 * configure, config.in: Regenerated.
19216 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19218 * Makefile.in (OBS): Add $(XML_BUILTIN).
19219 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19221 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19222 (arm-with-iwmmxt.c): New.
19223 * config.in, configure: Regenerate.
19224 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19225 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19226 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19227 (arm*-*-linux*): Add iWMMXt and regset support.
19228 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19229 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19230 (arm_store_wmmxregset, target_regsets): New.
19231 * server.c (get_features_xml): Take annex argument. Check builtin
19233 (handle_query): Handle multiple annexes.
19235 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19237 * remote-utils.c [USE_WIN32API] (read, write): Define.
19238 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19241 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19243 * linux-i386-low.c (the_low_target): Set arch_string.
19244 * linux-x86-64-low.c (the_low_target): Likewise.
19245 * linux-low.c (linux_arch_string): New.
19246 (linux_target_ops): Add it.
19247 * linux-low.h (struct linux_target_ops): Add arch_string.
19248 * server.c (write_qxfer_response): Use const void * for DATA.
19249 (get_features_xml): New.
19250 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19251 * target.h (struct target_ops): Add arch_string method.
19253 2007-01-03 Denis Pilat <denis.pilat@st.com>
19254 Daniel Jacobowitz <dan@codesourcery.com>
19256 * linux-low.c (linux_kill): Handle being called with no threads.
19257 * win32-i386-low.c (win32_kill): Likewise.
19258 (get_child_debug_event): Clear current_process_handle.
19260 2006-12-30 Denis PILAT <denis.pilat@st.com>
19261 Daniel Jacobowitz <dan@codesourcery.com>
19263 * remote-utils.c (remote_open): Check the type of specified
19264 serial port devices before opening them.
19265 * server.c (main): Kill the inferior if an error occurs during
19266 the first remote_open.
19268 2006-12-05 Markus Deuling <deuling@de.ibm.com>
19270 * README: Update supported targets.
19272 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19274 * Makefile.in (clean): Remove reg-mips64.c.
19275 (reg-mips64.c, reg-mips64.o): New rules.
19276 * configure.srv: Handle mips64. Include regset support for mips.
19277 * linux-mips-low.c (union mips_register): New.
19278 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19279 (mips_breakpoint, mips_breakpoint_at): Use int.
19280 (mips_collect_register, mips_supply_register)
19281 (mips_collect_register_32bit, mips_supply_register_32bit)
19282 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19283 (mips_store_fpregset, target_regsets): New.
19284 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19286 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19288 * configure.srv: Add target "spu*-*-*".
19289 * Makefile.in (clean): Remove reg-spu.c.
19290 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19291 * spu-low.c: New file.
19293 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19295 * configure.ac: Correct td_thr_tls_get_addr test.
19296 * configure: Regenerated.
19298 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19300 * linux-low.c (linux_wait_for_event): Reformat. Use the
19301 pass_signals array.
19302 * remote-utils.c (decode_address_to_semicolon): New.
19303 * server.c (pass_signals, handle_general_set): New.
19304 (handle_query): Mention QPassSignals for qSupported.
19305 (main): Call handle_general_set.
19306 * server.h (pass_signals, decode_address_to_semicolon): New.
19308 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19310 * server.c (handle_query): Correct error handling for read_auxv.
19312 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19314 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19315 and srv_linux_thread_db to yes.
19316 * linux-s390-low.c (s390_fill_gregset): New function.
19317 (target_regsets): Define data structure.
19319 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19321 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19322 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19323 * config.in, configure: Regenerated.
19324 * inferiors.c (gdb_id_to_thread): New function.
19325 (gdb_id_to_thread_id): Use it.
19326 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19327 * linux-low.h (struct process_info): Add th member.
19328 (thread_db_get_tls_address): New prototype.
19329 * remote-utils.c (decode_address): Make non-static.
19330 * server.c (handle_query): Handle qGetTLSAddr.
19331 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19332 * target.h (struct target_ops): Add get_tls_address.
19333 * thread-db.c (maybe_attach_thread): Save the thread handle.
19334 (thread_db_get_tls_address): New.
19336 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19338 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19339 (linux_resume_one_process): Take a siginfo_t *. Update all
19340 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19341 (struct pending_signals): Add a siginfo_t.
19342 (linux_wait_for_process): Always set last_status.
19343 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
19344 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
19345 * linux-low.h (struct process_info): Add last_status.
19347 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19349 * remote-utils.c (try_rle): New function.
19350 (putpkt_binary): Use it.
19352 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19354 * Makefile.in (clean): Clean reg-x86-64-linux.c.
19355 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
19356 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
19357 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
19358 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
19361 2006-08-08 Richard Sandiford <richard@codesourcery.com>
19363 * server.c (terminal_fd): New variable.
19364 (old_foreground_pgrp): Likewise.
19365 (restore_old_foreground_pgrp): New function.
19366 (start_inferior): Record the terminal file descriptor in terminal_fd
19367 and its original foreground group in old_foreground_pgrp. Register
19368 restore_old_foreground_pgrp with atexit().
19370 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19372 * server.c (handle_query): Correct qPart to qXfer.
19374 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19376 * configure.ac: Check for more headers which are missing on
19377 Windows. Automatically supply -lwsock32 and USE_WIN32API.
19378 * configure.srv: Add Cygwin and mingw32.
19379 * remote-utils.c: Don't include headers unconditionally which
19380 are missing on mingw32. Include <winsock.h> for mingw32.
19381 (remote_open): Adjust for mingw32 support. Flush
19382 standard error after writing to it.
19383 (remote_close, putpkt_binary, input_interrupt, block_async_io)
19384 (unblock_async_io, enable_async_io, disable_async_io)
19385 (readchar, getpkt): Update for Winsock support.
19386 (prepare_resume_reply): Expect a protocol signal number.
19387 * server.c: Disable <sys/wait.h> on mingw32.
19388 (start_inferior): Adjust for mingw32 support. Flush
19389 standard error after writing to it.
19390 (attach_inferior): Likewise. Use protocol signal
19392 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19394 * win32-i386-low.c: New file.
19395 * Makefile.in (XM_CLIBS): Set.
19396 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
19397 (win32-i386-low.o): New dependency rule.
19398 * linux-low.c (linux_wait): Use target signal numbers.
19399 * target.h (struct target_ops): Doc fix.
19400 * server.h (target_signal_to_name): New prototype.
19401 * gdbreplay.c: Don't include headers unconditionally which
19402 are missing on mingw32. Include <winsock.h> for mingw32.
19403 (remote_close, remote_open): Adjust for Winsock support.
19404 * configure, config.in: Regenerated.
19406 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19408 * server.c (decode_xfer_read, write_qxfer_response): New.
19409 (handle_query): Take a packet length argument. Handle
19410 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
19411 the qSupported response.
19412 (main): Update call to handle_query.
19414 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
19416 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
19417 (putpkt_binary): Renamed from putpkt and adjusted for binary
19419 (putpkt): New wrapper for putpkt_binary.
19420 (readchar): Don't mask off the high bit.
19421 (decode_X_packet): New function.
19422 * server.c (main): Call putpkt_binary if a handler sets the packet
19423 length. Save the length of the incoming packet. Handle 'X'.
19424 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
19426 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
19428 * server.c (handle_query): Handle qSupported.
19430 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19432 * remote-utils.c (all_symbols_looked_up): New variable.
19433 (look_up_one_symbol): Check it.
19434 * server.h (look_up_one_symbol): New declaration.
19435 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
19437 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19439 * Makefile.in (linux-arm-low.o): Update dependencies.
19440 * linux-arm-low.c: Include "gdb_proc_service.h".
19441 (PTRACE_GET_THREAD_AREA): Define.
19442 (ps_get_thread_area): New function.
19444 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
19446 * configure.srv (m68k*-*-uclinux*): New target.
19447 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
19448 (linux_resume_one_process): Remove extraneous cast.
19449 (linux_read_offsets): New.
19450 (linux_target_op): Add linux_read_offsets on mmuless systems.
19451 * server.c (handle_query): Add qOffsets logic.
19452 * target.h (struct target_ops): Add read_offsets.
19454 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19456 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
19457 (PTRACE_GET_THREAD_AREA): Define.
19458 (ps_get_thread_area): New function.
19459 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
19460 (linux-x86-64-low.o): Update.
19462 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19464 * configure.ac: Remove checks for prfpregset_t.
19465 * gdb_proc_service.h: New file.
19466 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
19467 new "gdb_proc_service.h".
19468 * proc-service.c: Likewise.
19469 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
19470 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
19471 * Makefile.in (gdb_proc_service_h): Updated.
19472 * configure, config.in: Regenerated.
19474 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19476 * remote-utils.c (prepare_resume_reply): Move declaration
19477 of gdb_id_from_wait to the top of the block.
19479 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
19481 * linux-low.c (regsets_store_inferior_registers): Read the regset
19482 from the target before filling it.
19484 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19486 * server.c (attach_inferior): Return SIGTRAP for a successful
19489 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19491 * Makefile.in (OBS): Add version.o.
19492 (STAGESTUFF): Delete.
19493 (version.o): Add dependencies.
19494 (version.c): Replace rule.
19495 (clean): Remove version.c.
19496 * server.c (gdbserver_version): New.
19497 (gdbserver_usage): Use printf.
19498 (main): Handle --version and --help.
19499 * server.h (version, host_name): Add declarations.
19501 2005-12-23 Eli Zaretskii <eliz@gnu.org>
19513 * linux-x86-64-low.c:
19515 * linux-s390-low.c:
19516 * linux-ppc64-low.c:
19518 * linux-mips-low.c:
19519 * linux-m68k-low.c:
19520 * linux-m32r-low.c:
19523 * linux-ia64-low.c:
19524 * linux-i386-low.c:
19525 * linux-crisv32-low.c:
19537 * gdbserver.1: Add (C) after Copyright. Update the FSF
19540 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19542 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
19543 (arm_breakpoint_at): Recognize both breakpoints.
19544 (the_low_target): Use the correct breakpoint instruction.
19546 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19548 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19549 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19550 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19551 (the_low_target): Update.
19553 2005-10-25 Andreas Schwab <schwab@suse.de>
19555 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19557 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19558 (ia64_num_regs): Reduce to 462.
19560 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19562 * acinclude.m4: Correct quoting.
19563 * aclocal.m4: Regenerated.
19565 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19566 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19567 (thread_db_init): Call thread_db_err_str.
19568 * configure.ac: Check for TD_VERSION.
19569 * config.in, configure: Regenerated.
19571 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19573 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19575 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19577 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19578 is not available. Define HAVE_PTRACE_GETREGS if it is.
19579 * config.in, configure: Regenerated.
19580 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19581 * linux-i386-low.c, linux-m68k-low.c: Update to use
19582 HAVE_PTRACE_GETREGS.
19583 * linux-low.c (regsets_fetch_inferior_registers)
19584 (regsets_store_inferior_registers): Only return 0 if we processed
19586 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19587 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19589 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19591 * inferiors.c (struct thread_info): Add gdb_id.
19592 (add_thread): Add gdb_id argument.
19593 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19594 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19595 calls to add_thread.
19596 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19597 * server.c (handle_query): Use thread_to_gdb_id.
19598 (handle_v_cont, main): Use gdb_id_to_thread_id.
19599 * server.h (add_thread): Update prototype.
19600 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19603 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19605 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19606 left-padded registers.
19607 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19608 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19610 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19612 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19613 * configure: Regenerate.
19614 * config.in: Regenerate.
19615 * server.h (NEED_DECLARATION_STRERROR):
19616 Replace with !HAVE_DECL_STRERROR.
19618 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19620 * linux-low.c (linux_wait, linux_send_signal): Don't test
19621 an unsigned long variable for > 0 if it could be MAX_ULONG.
19622 * server.c (myresume): Likewise.
19623 * target.c (set_desired_inferior): Likewise.
19625 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19627 * configure.ac: Simplify and improve check for socklen_t.
19628 * configure, config.in: Regenerate.
19630 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19632 * acconfig.h: Remove.
19633 * configure.ac: Add a test for socklen_t. Use three-argument
19634 AC_DEFINE throughout.
19635 * config.in: Regenerated using autoheader 2.59.
19636 * configure: Regenerated.
19638 * gdbreplay.c (socklen_t): Provide a default.
19639 (remote_open): Use socklen_t.
19640 * remote-utils.c (socklen_t): Provide a default.
19641 (remote_open): Use socklen_t.
19642 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19645 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19647 * linux-low.c (linux_read_memory, linux_write_memory)
19648 (linux_read_auxv): Likewise.
19649 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19650 (check_mem_write): Likewise.
19651 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19653 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19654 (registers_from_string, register_data): Likewise.
19655 * server.c (handle_query, main): Likewise.
19656 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19657 (decode_M_packet): Likewise.
19658 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19659 * target.h (struct target_ops): Update read_memory, write_memory,
19661 (read_inferior_memory, write_inferior_memory): Update.
19662 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19663 to unsigned char *.
19664 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19665 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19666 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19667 linux-s390-low.c, linux-sh-low.c: Update for changes in
19668 read_inferior_memory and the_low_target->breakpoint.
19670 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19672 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19673 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19674 * configure.srv: Add powerpc64-*-linux*.
19675 * linux-ppc64-low.c: New file.
19677 2005-05-23 Orjan Friberg <orjanf@axis.com>
19679 * linux-cris-low.c: New file with support for CRIS.
19680 * linux-crisv32-low.c: Ditto for CRISv32.
19681 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19682 (clean): Add reg-cris.c and reg-crisv32.c.
19683 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19684 reg-crisv32.o, and reg-crisv32.c to make rules.
19685 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19686 recognized targets.
19688 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19690 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19691 of sizeof (PTRACE_XFER_TYPE).
19692 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19694 2005-05-12 Orjan Friberg <orjanf@axis.com>
19696 * target.h (struct target_ops): Add insert_watchpoint,
19697 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19698 pointers for hardware watchpoint support.
19699 * linux-low.h (struct linux_target_ops): Ditto.
19700 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19701 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19702 to linux_target_ops.
19703 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19705 * server.c (main): Recognize 'Z' and 'z' packets.
19707 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19709 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19710 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19711 (the_low_target): Add new members.
19713 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19715 * proc-service.c (ps_lgetregs): Search all_processes instead of
19718 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19720 * server.c (start_inferior): Change return type to int.
19721 (attach_inferior): Change sigptr to int *.
19722 (handle_v_cont, handle_v_requests): Change signal to int *.
19723 (main): Change signal to int.
19725 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19727 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19728 * configure.srv: Add m32r*-*-linux*.
19729 * linux-m32r-low.c: New file.
19731 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19733 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19735 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19737 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19738 Take unsigned long arguments for PIDs.
19739 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19740 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19741 (wait_for_sigstop, linux_resume_one_process)
19742 (regsets_fetch_inferior_registers, linux_send_signal)
19743 (linux_read_auxv): Likewise. Update the types of variables holding
19744 PIDs. Update format string specifiers.
19745 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19746 * remote-utils.c (prepare_resume_reply): Likewise.
19747 * server.c (cont_thread, general_thread, step_thread)
19748 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19750 (handle_query): Update format specifiers.
19751 (handle_v_cont, main): Use strtoul for thread IDs.
19752 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19753 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19754 (general_thread, step_thread, thread_from_wait)
19755 (old_thread_from_wait): Update.
19756 * target.h (struct thread_resume): Use unsigned long for THREAD.
19757 (struct target_ops): Use unsigned long for arguments to attach and
19760 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19762 * acinclude.m4: Include bfd/bfd.m4 directly.
19763 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19764 <agriffis@toolchain.org>.
19765 * aclocal.m4, configure: Regenerated.
19767 2005-01-07 Andrew Cagney <cagney@gnu.org>
19769 * configure.ac: Rename configure.in, require autoconf 2.59.
19770 * configure: Re-generate.
19772 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19774 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19775 LIBS when finished.
19776 * aclocal.m4: Regenerated.
19777 * configure: Regenerated.
19779 2004-11-21 Andreas Schwab <schwab@suse.de>
19781 * linux-m68k-low.c (m68k_num_gregs): Define.
19782 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19783 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19784 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19785 (m68k_breakpoint_at): New. Add to the_low_target.
19787 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19788 srv_linux_thread_db to yes.
19790 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19792 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19793 (ARCH_SET_FS): Likewise.
19794 (ARCH_GET_FS): Likewise.
19795 (ARCH_GET_GS): Likewise.
19797 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19799 * linux-i386-low.c (ps_get_thread_area): New.
19800 * linux-x86-64-low.c (ps_get_thread_area): New.
19801 * linux-low.c: Include <sys/syscall.h>.
19802 (linux_kill_one_process): Don't kill the first thread here.
19803 (linux_kill): Kill the first thread here.
19804 (kill_lwp): New function.
19805 (send_sigstop, linux_send_signal): Use it.
19806 * proc-service.c: Clean up #ifdefs.
19807 (fpregset_info): Delete.
19808 (ps_lgetregs): Update and enable implementation.
19809 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19811 * remote-utils.c (struct sym_cache, symbol_cache): New.
19812 (input_interrupt): Print a clearer message.
19813 (async_io_enabled): New variable.
19814 (enable_async_io, disable_async_io): Use it. Update comments.
19815 (look_up_one_symbol): Use the symbol cache.
19816 * thread-db.c (thread_db_look_up_symbols): New function.
19817 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19819 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19821 * configure.in: Test for -rdynamic.
19822 * configure: Regenerated.
19823 * Makefile (INTERNAL_LDFLAGS): New.
19824 (gdbserver, gdbreplay): Use it.
19826 2004-09-02 Andrew Cagney <cagney@gnu.org>
19828 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19830 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19832 * linux-low.c (linux_wait): Clear all_processes list also.
19834 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19836 * linux-low.c: Include <errno.h>. Remove extern declaration of
19839 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19841 * gdbreplay.c, server.h, utils.c: Update copyright years.
19843 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19845 * server.c (main): Print child status or termination signal from
19846 variable 'signal', not 'sig'.
19848 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19850 * linux-low.c (linux_read_memory): Change return type to
19851 int. Check for and return error from ptrace().
19852 * target.c (read_inferior_memory): Change return type to int. Pass
19853 back return status from the_target->read_memory().
19854 * target.h (struct target_ops): Adapt *read_memory() prototype.
19856 (read_inferior_memory): Adapt prototype.
19857 * server.c (main): Return an error packet if
19858 read_inferior_memory() returns an error.
19860 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19862 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19863 Unify with other clean targets.
19865 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19867 * server.c (handle_v_cont): Call set_desired_inferior.
19869 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19871 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19873 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19875 * linux-low.c (linux_wait): Unblock async I/O.
19876 (linux_resume): Block and enable async I/O.
19877 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19878 * server.h (block_async_io, unblock_async_io): Add prototypes.
19880 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19882 * remote-utils.c (remote_open): Print a status notice after
19883 opening a TCP port.
19884 * server.c (attach_inferior): Print a status notice after
19887 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19889 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19891 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19893 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19895 * server.c, target.h: Update copyright years.
19897 2004-02-25 Roland McGrath <roland@redhat.com>
19899 * target.h (struct target_ops): New member `read_auxv'.
19900 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19901 * linux-low.c (linux_read_auxv): New function.
19902 (linux_target_ops): Initialize `read_auxv' member to that.
19904 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19906 Committed by Jim Blandy <jimb@redhat.com>.
19908 * linux-s390-low.c (s390_num_regs): Update.
19909 (s390_regmap): Remove control registers. Use __s390x__ predefine
19910 instead of GPR_SIZE to distiguish s390 and s390x targets.
19912 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19914 * linux-low.c: Update copyright year.
19915 (check_removed_breakpoint): Clear pending_is_breakpoint.
19916 (linux_set_resume_request, linux_queue_one_thread)
19917 (resume_status_pending_p): New functions.
19918 (linux_continue_one_thread): Use process->resume.
19919 (linux_resume): Only resume threads if there are no pending events.
19920 * linux-low.h (struct process_info): Add resume request
19923 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19925 * regcache.c (new_register_cache): Clear the allocated register
19926 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19928 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19930 * linux-low.c (linux_resume): Take a struct thread_resume *
19932 (linux_wait): Update call.
19933 (resume_ptr): New static variable.
19934 (linux_continue_one_thread): Renamed from
19935 linux_continue_one_process. Use resume_ptr.
19936 (linux_resume): Use linux_continue_one_thread.
19937 * server.c (handle_v_cont, handle_v_requests): New functions.
19938 (myresume): New function.
19939 (main): Handle 'v' case.
19940 * target.h (struct thread_resume): New type.
19941 (struct target_ops): Change argument of "resume" to struct
19943 (myresume): Delete macro.
19945 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19947 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19948 (uninstall): Support DESTDIR.
19950 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19952 * configure.srv: Add xscale*linux copy of arm*linux entry.
19954 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19956 * linux-arm-low.c (arm_reinsert_addr): New function.
19957 (the_low_target): Add arm_reinsert_addr.
19959 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19961 * mem-break.c: Remove whitespace at end of file.
19963 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19965 * configure.in: Check whether we need to prototype strerror.
19966 * server.h: Optionally prototype strerror.
19967 * gdbreplay.c (perror_with_name): Use strerror.
19968 * linux-low.c (linux_attach_lwp): Use strerror.
19969 * utils.c (perror_with_name): Use strerror.
19970 * config.in, configure: Regenerated.
19972 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19974 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19975 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19977 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19979 * Makefile.in (SFILES): Update.
19980 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19981 low-sun3.c: Remove files.
19983 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19985 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19986 (linux_detach_one_process, linux_detach): New functions.
19987 (linux_target_ops): Add linux_detach.
19988 * server.c (main): Handle 'D' packet.
19989 * target.h (struct target_ops): Add "detach" member.
19990 (detach_inferior): Define.
19992 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19994 From Kelley Cook <kelleycook@wideopenwest.com>:
19995 * configure.srv: Accept i[34567]86 variants.
19997 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19999 * linux-low.c (linux_wait_for_event): Correct comment typos.
20000 (linux_resume_one_process): Call check_removed_breakpoint.
20001 (linux_send_signal): New function.
20002 (linux_target_ops): Add linux_send_signal.
20003 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20005 * target.h (struct target_ops): Add send_signal.
20007 2003-05-29 Jim Blandy <jimb@redhat.com>
20009 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20010 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20011 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20012 away part of the register's value.
20014 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
20016 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20017 (linux_wait_for_event, linux_init_signals): Likewise.
20019 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
20021 * configure.in: Check for stdlib.h.
20022 * configure: Regenerated.
20023 * config.in: Regenerated.
20025 2003-01-04 Andreas Schwab <schwab@suse.de>
20027 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20029 2003-01-02 Andrew Cagney <ac131313@redhat.com>
20031 * Makefile.in: Remove obsolete code.
20033 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
20035 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20036 defined(PT_FPR0_HI).
20038 2002-11-17 Stuart Hughes <seh@zee2.com>
20040 * linux-arm-low.c (arm_num_regs): Increase.
20041 (arm_regmap): Include status register.
20043 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
20045 * linux-low.c (register_addr): Remove incorrect -1 check.
20047 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
20049 * linux-low.c (linux_create_inferior): Call setpgid. Return
20051 (unstopped_p, linux_signal_pid): Remove.
20052 (linux_target_ops): Remove linux_signal_pid.
20053 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20054 global instead of target method.
20055 * target.h (struct target_ops): Remove signal_pid. Update comment
20056 for create_inferior.
20057 * server.c (signal_pid): New variable.
20058 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
20059 gdbserver. Set the child to be the foreground process group.
20060 (attach_inferior): Set signal_pid.
20062 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
20064 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20066 2002-08-20 Jim Blandy <jimb@redhat.com>
20068 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20071 2002-08-01 Andrew Cagney <cagney@redhat.com>
20073 * Makefile.in: Make chill references obsolete.
20075 2002-07-24 Kevin Buettner <kevinb@redhat.com>
20077 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20078 * configure: Regenerate.
20079 * config.in: Regenerate.
20081 2002-07-09 David O'Brien <obrien@FreeBSD.org>
20083 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20084 (perror_with_name, remote_close, remote_open, expect, play): Static.
20086 2002-07-04 Michal Ludvig <mludvig@suse.cz>
20088 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
20089 byte offsets instead of an array of indexes.
20090 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20092 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
20094 * regcache.c: Add comment.
20096 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
20098 * thread-db.c: New file.
20099 * proc-service.c: New file.
20100 * acinclude.m4: New file.
20101 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20102 proc-service.o, and thread-db.o.
20103 (linux-low.o): Add USE_THREAD_DB.
20104 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20105 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20106 * aclocal.m4: Regenerated.
20107 * config.in: Regenerated.
20108 * configure: Regenerated.
20109 * configure.in: Check for proc_service.h, sys/procfs.h,
20110 thread_db.h, and linux/elf.h headrs.
20111 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20112 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20113 Check for -lthread_db and thread support.
20114 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20115 PowerPC, and SuperH.
20116 * i387-fp.c: Constify arguments.
20117 * i387-fp.h: Likewise.
20118 * inferiors.c: (struct thread_info): Renamed from
20119 `struct inferior_info'. Remove PID member. Use generic inferior
20120 list header. All uses updated.
20121 (inferiors, signal_pid): Removed.
20122 (all_threads): New variable.
20123 (get_thread): Define.
20124 (add_inferior_to_list): New function.
20125 (for_each_inferior): New function.
20126 (change_inferior_id): New function.
20127 (add_inferior): Removed.
20128 (remove_inferior): New function.
20129 (add_thread): New function.
20130 (free_one_thread): New function.
20131 (remove_thread): New function.
20132 (clear_inferiors): Use for_each_inferior and free_one_thread.
20133 (find_inferior): New function.
20134 (find_inferior_id): New function.
20135 (inferior_target_data): Update argument type.
20136 (set_inferior_target_data): Likewise.
20137 (inferior_regcache_data): Likewise.
20138 (set_inferior_regcache_data): Likewise.
20139 * linux-low.c (linux_bp_reinsert): Remove.
20140 (all_processes, stopping_threads, using_thrads)
20141 (struct pending_signals, debug_threads, pid_of): New.
20142 (inferior_pid): Replace with macro.
20143 (struct inferior_linux_data): Remove.
20144 (get_stop_pc, add_process): New functions.
20145 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20146 Use add_process and add_thread.
20147 (linux_attach_lwp): New function, based on old linux_attach. Use
20148 add_process and add_thread. Set stop_expected for new threads.
20149 (linux_attach): New function.
20150 (linux_kill_one_process): New function.
20151 (linux_kill): Kill all LWPs.
20152 (linux_thread_alive): Use find_inferior_id.
20153 (check_removed_breakpoints, status_pending_p): New functions.
20154 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20155 Update. Use WNOHANG. Wait for cloned processes also. Update process
20156 struct for the found process.
20157 (linux_wait_for_event): New function.
20158 (linux_wait): Use it. Support LWPs.
20159 (send_sigstop, wait_for_sigstop, stop_all_processes)
20160 (linux_resume_one_process, linux_continue_one_process): New functions.
20161 (linux_resume): Support LWPs.
20162 (REGISTER_RAW_SIZE): Remove.
20163 (fetch_register): Use register_size instead. Call supply_register.
20164 (usr_store_inferior_registers): Likewise. Call collect_register.
20165 Fix recursive case.
20166 (regsets_fetch_inferior_registers): Improve error message.
20167 (regsets_store_inferior_registers): Add debugging.
20168 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20169 (unstopped_p, linux_signal_pid): New functions.
20170 (linux_target_ops): Add linux_signal_pid.
20171 (linux_init_signals): New function.
20172 (initialize_low): Call it. Initialize using_threads.
20173 * regcache.c (inferior_regcache_data): Add valid
20175 (get_regcache): Fetch registers lazily. Add fetch argument
20176 and update all callers.
20177 (regcache_invalidate_one, regcache_invalidate): New
20179 (new_register_cache): Renamed from create_register_cache.
20180 Return the new regcache.
20181 (free_register_cache): Change argument to a void *.
20182 (registers_to_string, registers_from_string): Call get_regcache
20183 with fetch flag set.
20184 (register_data): Make static. Pass fetch flag to get_regcache.
20185 (supply_register): Call get_regcache with fetch flag clear.
20186 (collect_register): Call get_regcache with fetch flag set.
20187 (collect_register_as_string): New function.
20188 * regcache.h: Update.
20189 * remote-utils.c (putpkt): Flush after debug output and use
20191 Handle input interrupts while waiting for an ACK.
20192 (input_interrupt): Use signal_pid method.
20193 (getpkt): Flush after debug output and use stderr.
20194 (outreg): Use collect_register_as_string.
20195 (new_thread_notify, dead_thread_notify): New functions.
20196 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20197 and general_thread.
20198 (look_up_one_symbol): Flush after debug output.
20199 * server.c (step_thread, server_waiting): New variables.
20200 (start_inferior): Don't use signal_pid. Update call to mywait.
20201 (attach_inferior): Update call to mywait.
20202 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20203 (main): Don't fetch/store registers explicitly. Use
20204 set_desired_inferior. Support proposed ``Hs'' packet. Update
20206 * server.h: Update.
20207 (struct inferior_list, struct_inferior_list_entry): New.
20208 * target.c (set_desired_inferior): New.
20209 (write_inferior_memory): Constify.
20210 (mywait): New function.
20211 * target.h: Update.
20212 (struct target_ops): New signal_pid method.
20213 (mywait): Removed macro, added prototype.
20215 * linux-low.h (regset_func): Removed.
20216 (regset_fill_func, regset_store_func): New.
20217 (enum regset_type): New.
20218 (struct regset_info): Add type field. Use new operation types.
20219 (struct linux_target_ops): stop_pc renamed to get_pc.
20220 Add decr_pc_after_break and breakpoint_at.
20221 (get_process, get_thread_proess, get_process_thread)
20222 (strut process_info, all_processes, linux_attach_lwp)
20223 (thread_db_init): New.
20225 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20226 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20227 (the_low_target): Add new members.
20228 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20229 (i386_store_fpxregset): Constify.
20230 (target_regsets): Add new kind identifier.
20231 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20232 (i386_set_pc): Add debugging.
20233 (i386_breakpoint_at): New function.
20234 (the_low_target): Add new members.
20235 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20236 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20237 (mips_breakpoint_at): New.
20238 (the_low_target): Add new members.
20239 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20240 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20241 (the_low_target): Add new members.
20242 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20243 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20244 (the_low_target): Add new members.
20245 * linux-x86-64-low.c (target_regsets): Add new kind
20248 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
20250 From Martin Pool <mbp@samba.org>:
20251 * server.c (gdbserver_usage): New function.
20254 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
20256 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20257 stop_at -> stop_pc.
20259 2002-05-04 Andrew Cagney <ac131313@redhat.com>
20261 * Makefile.in: Remove obsolete code.
20263 2002-04-24 Michal Ludvig <mludvig@suse.cz>
20265 * linux-low.c (regsets_fetch_inferior_registers),
20266 (regsets_store_inferior_registers): Removed cast to int from
20268 * regcache.h: Added declaration of struct inferior_info.
20270 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20272 * inferiors.c (struct inferior_info): Add regcache_data.
20273 (add_inferior): Call create_register_cache.
20274 (clear_inferiors): Call free_register_cache.
20275 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20276 * regcache.c (struct inferior_regcache_data): New.
20277 (registers): Remove.
20278 (get_regcache): New function.
20279 (create_register_cache, free_register_cache): New functions.
20280 (set_register_cache): Don't initialize the register cache here.
20281 (registers_to_string, registers_from_string, register_data): Call
20283 * regcache.h: Add prototypes.
20284 * server.h: Likewise.
20286 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20288 * mem-break.c: New file.
20289 * mem-break.h: New file.
20290 * Makefile.in: Add mem-break.o rule; update server.h
20292 * inferiors.c (struct inferior_info): Add target_data
20294 (clear_inferiors): Free target_data member if set.
20295 (inferior_target_data, set_inferior_target_data): New functions.
20296 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20297 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20298 * linux-low.c (linux_bp_reinsert): New variable.
20299 (struct inferior_linux_data): New.
20300 (linux_create_inferior): Use set_inferior_target_data.
20301 (linux_attach): Likewise. Call add_inferior.
20302 (linux_wait_for_one_inferior): New function.
20303 (linux_wait): Call it.
20304 (linux_write_memory): Add const.
20305 (initialize_low): Call set_breakpoint_data.
20306 * linux-low.h (struct linux_target_ops): Add breakpoint
20308 * server.c (attach_inferior): Remove extra add_inferior
20310 * server.h: Include mem-break.h. Update inferior.c
20312 * target.c (read_inferior_memory)
20313 (write_inferior_memory): New functions.
20314 * target.h (read_inferior_memory)
20315 (write_inferior_memory): Change macros to prototypes.
20316 (struct target_ops): Update comments. Add const to write_memory
20319 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
20321 * linux-low.c (usr_store_inferior_registers): Support
20322 registers which are allowed to fail to store.
20323 * linux-low.h (linux_target_ops): Likewise.
20324 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20325 (ppc_cannot_store_register): FPSCR may not be storable.
20327 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20329 * server.h: Include <string.h> if HAVE_STRING_H.
20330 * ChangeLog: Correct paths in last ChangeLog entry.
20332 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20334 * linux-low.h: Remove obsolete prototypes.
20335 (struct linux_target_ops): New.
20336 (extern the_low_target): New.
20337 * linux-low.c (num_regs, regmap): Remove declarations.
20338 (register_addr): Use the_low_target explicitly.
20339 (fetch_register): Likewise.
20340 (usr_fetch_inferior_registers): Likewise.
20341 (usr_store_inferior_registers): Likewise.
20342 * linux-arm-low.c (num_regs): Remove.
20343 (arm_num_regs): Define.
20344 (arm_regmap): Renamed from regmap, made static.
20345 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
20347 (arm_cannot_store_register): Renamed from cannot_store_register,
20349 (the_low_target): New.
20350 * linux-i386-low.c (num_regs): Remove.
20351 (i386_num_regs): Define.
20352 (i386_regmap): Renamed from regmap, made static.
20353 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
20355 (i386_cannot_store_register): Renamed from cannot_store_register,
20357 (the_low_target): New.
20358 * linux-ia64-low.c (num_regs): Remove.
20359 (ia64_num_regs): Define.
20360 (ia64_regmap): Renamed from regmap, made static.
20361 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
20363 (ia64_cannot_store_register): Renamed from cannot_store_register,
20365 (the_low_target): New.
20366 * linux-m68k-low.c (num_regs): Remove.
20367 (m68k_num_regs): Define.
20368 (m68k_regmap): Renamed from regmap, made static.
20369 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
20371 (m68k_cannot_store_register): Renamed from cannot_store_register,
20373 (the_low_target): New.
20374 * linux-mips-low.c (num_regs): Remove.
20375 (mips_num_regs): Define.
20376 (mips_regmap): Renamed from regmap, made static.
20377 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
20379 (mips_cannot_store_register): Renamed from cannot_store_register,
20381 (the_low_target): New.
20382 * linux-ppc-low.c (num_regs): Remove.
20383 (ppc_num_regs): Define.
20384 (ppc_regmap): Renamed from regmap, made static.
20385 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
20387 (ppc_cannot_store_register): Renamed from cannot_store_register,
20389 (the_low_target): New.
20390 * linux-s390-low.c (num_regs): Remove.
20391 (s390_num_regs): Define.
20392 (s390_regmap): Renamed from regmap, made static.
20393 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
20395 (s390_cannot_store_register): Renamed from cannot_store_register,
20397 (the_low_target): New.
20398 * linux-sh-low.c (num_regs): Remove.
20399 (sh_num_regs): Define.
20400 (sh_regmap): Renamed from regmap, made static.
20401 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
20403 (sh_cannot_store_register): Renamed from cannot_store_register,
20405 (the_low_target): New.
20406 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
20407 (the_low_target): New.
20409 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20411 * Makefile.in: Add stamp-h target.
20412 * configure.in: Create stamp-h.
20413 * configure: Regenerated.
20415 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20417 * inferiors.c: New file.
20418 * target.c: New file.
20419 * target.h: New file.
20420 * Makefile.in: Add target.o and inferiors.o. Update
20422 * linux-low.c (inferior_pid): New static variable,
20423 moved from server.c.
20424 (linux_create_inferior): Renamed from create_inferior.
20425 Call add_inferior. Return 0 on success instead of a PID.
20426 (linux_attach): Renamed from myattach.
20427 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
20428 (linux_thread_alive): Renamed from mythread_alive.
20429 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
20431 (linux_resume): Renamed from myresume. Add missing ``return 0''.
20432 (regsets_store_inferior_registers): Correct error message.
20433 Add missing ``return 0''.
20434 (linux_fetch_registers): Renamed from fetch_inferior_registers.
20435 (linux_store_registers): Renamed from store_inferior_registers.
20436 (linux_read_memory): Renamed from read_inferior_memory.
20437 (linux_write_memory): Renamed from write_inferior_memory.
20438 (linux_target_ops): New structure.
20439 (initialize_low): Call set_target_ops ().
20440 * remote-utils.c (unhexify): New function.
20441 (hexify): New function.
20442 (input_interrupt): Send signals to ``signal_pid''.
20443 * server.c (inferior_pid): Remove.
20444 (start_inferior): Update create_inferior call.
20445 (attach_inferior): Call add_inferior.
20446 (handle_query): New function.
20447 (main): Call handle_query for `q' packets.
20448 * server.h: Include "target.h". Remove obsolete prototypes.
20449 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
20451 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20453 * Makefile.in: Add WARN_CFLAGS. Update configury
20455 * configure.in: Check for <string.h>
20456 * configure: Regenerate.
20457 * config.in: Regenerate.
20458 * gdbreplay.c: Include needed system headers.
20459 (remote_open): Remove strchr prototype.
20460 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
20461 * regcache.c (supply_register): Change buf argument to const void *.
20462 (supply_register_by_name): Likewise.
20463 (collect_register): Change buf argument to void *.
20464 (collect_register_by_name): Likewise.
20465 * regcache.h: Add missing prototypes.
20466 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
20467 * server.c (handle_query): New function.
20468 (attached): New static variable, moved out of main.
20469 (main): Quiet longjmp clobber warnings.
20470 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
20471 * utils.c (error): Remove NORETURN.