gdbserver/linux-low: turn 'fetch_register' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
bd70b1f2
TBA
12020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn the 'fetch_register' linux target op into a method of
4 linux_process_target.
5
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>:
25 Declare.
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>:
30 Declare.
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>:
35 Declare.
36 (riscv_fetch_register): Turn into...
37 (riscv_target::low_fetch_register): ...this.
38 (the_low_target): Remove the op field.
39
40 Update the callers below.
41
42 * linux-low.cc (linux_process_target::fetch_registers)
43 (linux_process_target::low_fetch_register)
44
daca57a7
TBA
452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
46
47 Turn the 'cannot_fetch_register' and 'cannot_store_register'
48 linux target ops into methods of linux_process_target.
49
50 * linux-low.h (struct linux_target_ops): Remove the low target ops.
51 (class linux_process_target) <fetch_register>
52 <store_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,
142 and remove.
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.
212
aa8d21c9
TBA
2132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
214
215 Turn the 'regs_info' linux target op into a method of
216 linux_process_target.
217
218 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
219 (class linux_process_target) <get_regs_info>: Define.
220
221 Update the callers below.
222
223 * linux-low.cc (linux_process_target::fetch_registers)
224 (linux_process_target::store_registers)
225 * proc-service.cc (gregset_info)
226
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>:
232 Declare.
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>:
249 Declare.
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>:
306 Declare.
307 (xtensa_regs_info): Turn into ...
308 (xtensa_target::get_regs_info): ...this.
309 (the_low_target): Remove the op field.
310
797bcff5
TBA
3112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
312
313 Turn the 'arch_setup' linux target op into a method of
314 linux_process_target.
315
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.
322
323 Update the callers below.
324
325 (linux_process_target::handle_extended_wait)
326 (linux_process_target::post_create_inferior)
327 (linux_process_target::filter_event)
328
329 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
330 declaration.
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
339 declaration.
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
344 declaration.
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
349 declaration.
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
354 declaration.
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
359 declaration.
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
364 declaration.
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
369 declaration.
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
374 declaration.
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
379 declaration.
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
384 declaration.
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
389 declaration.
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
394 declaration.
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
399 declaration.
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
404 declaration.
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
409 declaration.
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
414 declaration.
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
419 declaration.
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
424 declaration.
425 (xtensa_arch_setup): Turn into ...
426 (xtensa_target::low_arch_setup): ...this.
427 (the_low_target): Remove the op field.
428
ef0478f6
TBA
4292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430
431 * linux-low.h (the_linux_target): New extern declaration.
432 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
433 'the_target'.
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.
492
d16f3f6c
TBA
4932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
494
495 Turn some static functions in linux-low.cc into private methods of
496 linux_process_target.
497
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.
525
526 * linux-low.h (class linux_process_target)
527 <handle_extended_wait>
528 <maybe_move_out_of_jump_pad>
529 filter_event>
530 <wait_for_event_filtered>
531 <wait_for_event>
532 <wait_1>
533 <wait_for_sigstop>
534 <move_out_of_jump_pad>
535 <stop_all_lwps>
536 <start_step_over>
537 <complete_ongoing_step_over>
538 <proceed_all_lwps>
539 <unstop_all_lwps>: Declare.
540
541 Update the callers below.
542
543 * linux-low.cc (linux_process_target::attach): Update.
544 (linux_process_target::stabilize_threads): Ditto.
545 (linux_process_target::wait): Ditto.
546
a5863204
TBA
5472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548
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
552 of 2.
553
c884cc46
SM
5542020-03-20 Simon Marchi <simon.marchi@efficios.com>
555
556 * config.in: Re-generate.
557 * configure: Re-generate.
558
5a82b8a1
KR
5592020-03-17 Kamil Rytarowski <n54@gmx.com>
560
561 * regcache.cc (find_register_by_number): Update.
562 * tdesc.cc (init_target_desc): Likewise.
563 * tdesc.h (target_desc::reg_defs): Likewise.
564
4635ff97
TT
5652020-03-12 Tom Tromey <tom@tromey.com>
566
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
571 gdbsupport files.
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.
578
9a665d62
TT
5792020-03-12 Tom Tromey <tom@tromey.com>
580
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
585 variables.
586 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
587 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
588
272cd5a3
SM
5892020-03-12 Simon Marchi <simon.marchi@efficios.com>
590
591 * acinclude.m4: Update path to selftest.m4.
592
db6878ac
SM
5932020-03-12 Simon Marchi <simon.marchi@efficios.com>
594
595 * configure.ac: Don't source bfd/development.sh, move
596 GDB_AC_COMMON higher.
597 * configure: Re-generate.
598
4d696a5c
SM
5992020-03-12 Simon Marchi <simon.marchi@efficios.com>
600
601 * configure: Re-generate.
602
a0761e34
SM
6032020-03-11 Simon Marchi <simon.marchi@efficios.com>
604
605 * configure: Re-generate.
606
20ea4a60
AB
6072020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * .dir-locals.el: New file.
610
842806cb
TBA
6112020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612
613 * .gitattributes: New file.
614
442131c1
AB
6152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
616
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.
622
dda42c0b
TT
6232020-02-21 Tom Tromey <tom@tromey.com>
624
625 * Makefile.in (mostlyclean): New target.
626
52405d85
TBA
6272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
628
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
641 lynx_process_target.
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
646 nto_process_target.
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.
652
653 Replace 'the_target->pt' with 'the_target' in the uses below.
654
655 * hostio.cc (hostio_error)
656 (handle_setfs)
657 (handle_open)
658 (handle_unlink)
659 (handle_readlink)
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)
663 (arm_get_hwcap)
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)
668 (linux_wait_1)
669 (linux_read_memory)
670 (linux_process_target::breakpoint_kind_from_pc)
671 (linux_get_auxv)
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)
686 (bp_opcode)
687 (insert_memory_breakpoint)
688 (set_raw_breakpoint_at)
689 (delete_raw_breakpoint)
690 (z_type_supported)
691 (uninsert_raw_breakpoint)
692 (reinsert_raw_breakpoint)
693 (validate_inserted_breakpoint)
694 * regcache.cc (regcache_read_pc)
695 (regcache_write_pc)
696 * remote-utils.cc (putpkt_binary_1)
697 (input_interrupt)
698 (getpkt)
699 (prepare_resume_reply)
700 * server.cc (handle_general_set)
701 (handle_detach)
702 (handle_qxfer_auxv)
703 (handle_qxfer_exec_file)
704 (handle_qxfer_libraries_svr4)
705 (handle_qxfer_osdata)
706 (handle_qxfer_siginfo)
707 (handle_qxfer_fdpic)
708 (handle_query)
709 (resume)
710 (handle_v_requests)
711 (queue_stop_reply_callback)
712 (captured_main)
713 * target.cc (prepare_to_access_memory)
714 (done_accessing_memory)
715 (read_inferior_memory)
716 (target_write_memory)
717 (target_stop_and_wait)
718 (target_wait)
719 (target_mourn_inferior)
720 (target_continue_no_signal)
721 (target_continue)
722 (target_supports_multi_process)
723 (kill_inferior)
724 * target.h
725 (target_create_inferior)
726 (target_post_create_inferior)
727 (myattach)
728 (target_supports_fork_events)
729 (target_supports_vfork_events)
730 (target_supports_exec_events)
731 (target_handle_new_gdb_connection)
732 (detach_inferior)
733 (mythread_alive)
734 (fetch_inferior_registers)
735 (store_inferior_registers)
736 (join_inferior)
737 (target_supports_non_stop)
738 (target_async)
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)
746 (target_pause_all)
747 (target_unpause_all)
748 (target_stabilize_threads)
749 (target_install_fast_tracepoint_jump_pad)
750 (target_emit_ops)
751 (target_supports_disable_randomization)
752 (target_supports_agent)
753 (target_enable_btrace)
754 (target_disable_btrace)
755 (target_read_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)
767 (target_thread_name)
768 (target_thread_handle)
769 * win32-low.cc (do_initial_child_stuff)
770
771 Rename target op default definitions listed below.
772
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.
919
478f9adf
PA
9202020-02-20 Pedro Alves <palves@redhat.com>
921
922 * target.cc (set_target_ops): Simply copy the given target pointer
923 instead of creating a copy of the pointed object.
924
d633e831
TBA
9252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
926
927 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
928 of process_target.
929
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.
934
935 Update the derived classes and callers below.
936
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.
944
bc8d3ae4
TBA
9452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
946
947 Turn process_stratum_target's supports_catch_syscall op into a
948 method of process_target.
949
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.
954
955 Update the derived classes and callers below.
956
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.
964
5303a34f
TBA
9652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
966
967 Turn process_stratum_target's supports_software_single_step op
968 into a method of process_target.
969
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.
974
975 Update the derived classes and callers below.
976
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.
984
7f63b89b
TBA
9852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
986
987 Turn process_stratum_target's thread_name and thread_handle ops
988 into methods of process_target.
989
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.
996
997 Update the derived classes and callers below.
998
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.
1006
d367006f
TBA
10072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1008
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.
1012
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.
1021
1022 Update the derived classes and callers below.
1023
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.
1046
c9b7b804
TBA
10472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1048
1049 Turn process_stratum_target's multifs_open, multifs_readlink,
1050 multifs_unlink ops into methods of process_target.
1051
1052 * target.h (struct process_stratum_target): Remove the target ops.
1053 (class process_target): Add the target ops. Also add
1054 'supports_multifs'.
1055 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1056 "sys/stat.h".
1057 (process_target::supports_multifs): Define.
1058 (process_target::multifs_open): Define.
1059 (process_target::multifs_readlink): Define.
1060 (process_target::multifs_unlink): Define.
1061
1062 Update the derived classes and callers below.
1063
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.
1077
8247b823
TBA
10782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1079
1080 Turn process_stratum_target's pid_to_exec_file op into a method
1081 of process_target.
1082
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.
1088
1089 Update the derived classes and callers below.
1090
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.
1100
2526e0cd
TBA
11012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1102
1103 Turn process_stratum_target's supports_range_stepping op into a
1104 method of process_target.
1105
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.
1110
1111 Update the derived classes and callers below.
1112
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.
1120
79597bdd
TBA
11212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122
1123 Turn process_stratum_target's btrace-related ops (enable_btrace,
1124 disable_btrace, read_btrace, read_btrace_conf) into methods of
1125 process_target.
1126
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.
1137
1138 Update the derived classes and callers below.
1139
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.
1153
c0245cb9
TBA
11542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1155
1156 Turn process_stratum_target's supports_agent op into a method of
1157 process_target.
1158
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.
1163
1164 Update the derived classes and callers below.
1165
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.
1173
974387bb
TBA
11742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1175
1176 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1177 method of process_target.
1178
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.
1184
1185 Update the derived classes and callers below.
1186
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.
1197
c756403b
TBA
11982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1199
1200 Turn process_stratum_target's supports_disable_randomization op
1201 into a method of process_target.
1202
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.
1207
1208 Update the derived classes and callers below.
1209
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.
1217
345dafad
TBA
12182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1219
1220 Turn process_stratum_target's emit_ops op into a method of
1221 process_target.
1222
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.
1227
1228 Update the derived classes and callers below.
1229
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.
1237
c23c9391
TBA
12382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1239
1240 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1241 and get_min_fast_tracepoint_insn_len ops into methods of
1242 process_target.
1243
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
1250 to ...
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.
1255
1256 Update the derived classes and callers below.
1257
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.
1269
5c9eb2f2
TBA
12702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1271
1272 Turn process_stratum_target's stabilize_threads op into a
1273 method of process_target.
1274
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.
1279
1280 Update the derived classes and callers below.
1281
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.
1293
29e8dc09
TBA
12942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1295
1296 Turn process_stratum_target's pause_all and unpause_all ops
1297 into methods of process_target.
1298
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.
1307
1308 Update the derived classes and callers below.
1309
1310 * server.cc (handle_status): Update.
1311 * tracepoint.cc (clear_installed_tracepoints): Update.
1312 (cmd_qtdp): 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.
1329
4e2e869c
TBA
13302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1331
1332 Turn process_stratum_target's get_tib_address op into a method of
1333 process_target.
1334
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.
1340
1341 Update the derived classes and callers below.
1342
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.
1352
68119632
TBA
13532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1354
1355 Turn process_stratum_target's thread_stopped op into a method of
1356 process_target.
1357
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.
1365
1366 Update the derived classes and callers below.
1367
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.
1377
770d8f6a
TBA
13782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1379
1380 Turn process_stratum_target's read_pc and write_pc ops into
1381 methods of process_target.
1382
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.
1387
1388 Update the derived classes and callers below.
1389
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.
1401
290732bf
TBA
14022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1403
1404 Turn process_stratum_target's supports_tracepoints op into a
1405 method of process_target.
1406
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.
1411
1412 Update the derived classes and callers below.
1413
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.
1421
0df28b1b
TBA
14222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1423
1424 Turn process_stratum_target's process_qsupported op into a method
1425 of process_target.
1426
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.
1431
1432 Update the derived classes and callers below.
1433
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.
1441
9da41fda
TBA
14422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1443
1444 Turn process_stratum_target's read_loadmap op into a method of
1445 process_target.
1446
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.
1452
1453 Update the derived classes and callers below.
1454
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.
1465
95a45fc1
TBA
14662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1467
1468 Turn process_stratum_target's core_of_thread op into a method of
1469 process_target.
1470
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.
1475
1476 Update the derived classes and callers below.
1477
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.
1484
55cf3021
TBA
14852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1486
1487 Turn process_stratum_target's handle_monitor_command op into a
1488 method of process_target.
1489
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.
1494
1495 Update the derived classes and callers below.
1496
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.
1504
fb00dfce
TBA
15052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1506
1507 Turn process_stratum_target's handle_new_gdb_connection op into a
1508 method of process_target.
1509
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.
1514
1515 Update the derived classes and callers below.
1516
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.
1524
9690a72a
TBA
15252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1526
1527 Turn process_stratum_target's supports_fork_events,
1528 supports_vfork_events, and supports_exec_events ops into methods
1529 of process_target.
1530
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.
1539
1540 Update the derived classes and callers below.
1541
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.
1553
652aef77
TBA
15542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1555
1556 Turn process_stratum_target's supports_multi_process op into a
1557 method of process_target.
1558
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.
1563
1564 Update the derived classes and callers below.
1565
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.
1573
0dc587d4
TBA
15742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1575
1576 Turn process_stratum_target's supports_non_stop, async, and
1577 start_non_stop ops into methods of process_target.
1578
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.
1588
1589 Update the derived classes and callers below.
1590
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
1604 instead.
1605 * win32-low.cc (win32_target_ops): Update.
1606
d7abedf7
TBA
16072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1608
1609 Turn process_stratum_target's qxfer_siginfo op into a method of
1610 process_target.
1611
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.
1617
1618 Update the derived classes and callers below.
1619
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.
1630
2d0795ee
TBA
16312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1632
1633 Turn process_stratum_target's qxfer_osdata op into a method of
1634 process_target.
1635
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.
1641
1642 Update the derived classes and callers below.
1643
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.
1654
ea06bbaa
TBA
16552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1656
1657 Turn process_stratum_target's hostio_last_error op into a
1658 method of process_target.
1659
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.
1664
1665 Update the derived classes and callers below.
1666
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.
1676
6e3fd7e9
TBA
16772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1678
1679 Turn process_stratum_target's get_tls_address op into a method of
1680 process_target.
1681
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.
1687
1688 Update the derived classes and callers below.
1689
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.
1698
5203ae1e
TBA
16992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1700
1701 Turn process_stratum_target's read_offsets op into a method of
1702 process_target.
1703
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.
1709
1710 Update the derived classes and callers below.
1711
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.
1722
6eeb5c55
TBA
17232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1724
1725 Turn process_stratum_target's stopped_by_watchpoint and
1726 stopped_data_address ops into methods of process_target.
1727
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.
1732
1733 Update the derived classes and callers below.
1734
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.
1755
22aa6223
TBA
17562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757
1758 Turn process_stratum_target's supports_hardware_single_step op into
1759 a method of process_target.
1760
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.
1767
1768 Update the derived classes and callers below.
1769
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.
1783
93fe88b2
TBA
17842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1785
1786 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1787 ops into methods of process_target.
1788
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.
1795
1796 Update the derived classes and callers below.
1797
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.
1807
84320c4e
TBA
18082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1809
1810 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1811 ops into methods of process_target.
1812
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.
1819
1820 Update the derived classes and callers below.
1821
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.
1831
7e0bde70
TBA
18322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1833
1834 Turn process_stratum_target's insert_point and remove_point ops
1835 into methods of process_target.
1836
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.
1841
1842 Update the derived classes and callers below.
1843
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.
1867
a2b2297a
TBA
18682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1869
1870 Turn process_stratum_target's supports_z_point_type op into a
1871 method of process_target.
1872
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.
1876
1877 Update the derived classes and callers below.
1878
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.
1893
eac215cc
TBA
18942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1895
1896 Turn process_stratum_target's read_auxv op into a method of
1897 process_target.
1898
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.
1904
1905 Update the derived classes and callers below.
1906
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.
1921
eb497a2a
TBA
19222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1923
1924 Turn process_stratum_target's request_interrupt op into a method of
1925 process_target.
1926
1927 * target.h (struct process_stratum_target): Remove the target op.
1928 (class process_target): Add the target op.
1929
1930 Update the derived classes and callers below.
1931
1932 * remote-utils.cc (putpkt_binary_1): Update.
1933 (input_interrupt): Update.
1934 (getpkt): 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.
1952
2a31c7aa
TBA
19532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1954
1955 Turn process_stratum_target's look_up_symbols op into a method of
1956 process_target.
1957
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.
1961
1962 Update the derived classes and callers below.
1963
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.
1972
e2558df3
TBA
19732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1974
1975 Turn process_stratum_target's read_memory and write_memory
1976 ops into methods of process_target.
1977
1978 * target.h (struct process_stratum_target): Remove the target ops.
1979 (class process_target): Add the target ops.
1980
1981 Update the derived classes and callers below.
1982
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
2007 op call.
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.
2030
79b44087
TBA
20312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2032
2033 Turn process_stratum_target's prepare_to_access_memory and
2034 done_accessing_memory ops into methods of process_target.
2035
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.
2042
2043 Update the derived classes and callers below.
2044
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.
2054
a5a4d4cd
TBA
20552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2056
2057 Turn process_stratum_target's fetch_registers and store_registers
2058 ops into methods of process_target.
2059
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.
2064
2065 Update the derived classes and callers below.
2066
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.
2091
6532e7e3
TBA
20922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2093
2094 Turn process_stratum_target's wait op into a method of
2095 process_target.
2096
2097 * target.h (struct process_stratum_target): Remove the target op.
2098 (class process_target): Add the target op.
2099
2100 Update the derived classes and callers below.
2101
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.
2120
0e4d7e35
TBA
21212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2122
2123 Turn process_stratum_target's resume op into a method of
2124 process_target.
2125
2126 * target.h (struct process_stratum_target): Remove the target op.
2127 (class process_target): Add the target op.
2128
2129 Update the derived classes and callers below.
2130
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.
2153
13d3d99b
TBA
21542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2155
2156 Turn process_stratum_target's thread_alive op into a method of
2157 process_target.
2158
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.
2162
2163 Update the derived classes and callers below.
2164
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.
2182
95a49a39
TBA
21832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2184
2185 Turn process_stratum_target's join op into a method of
2186 process_target.
2187
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.
2191
2192 Update the derived classes and callers below.
2193
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.
2209
8adb37b9
TBA
22102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2211
2212 Turn process_stratum_target's mourn op into a method of
2213 process_target.
2214
2215 * target.h (struct process_stratum_target): Remove the target op.
2216 (class process_target): Add the target op.
2217
2218 Update the derived classes and callers below.
2219
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.
2240
9061c9cf
TBA
22412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2242
2243 Turn process_stratum_target's detach op into a method of
2244 process_target.
2245
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.
2249
2250 Update the derived classes and callers below.
2251
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.
2268
c6885a57
TBA
22692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2270
2271 Turn process_stratum_target's kill op into a method of
2272 process_target.
2273
2274 * target.h (struct process_stratum_target): Remove the target op.
2275 (class process_target): Add the target op.
2276
2277 Update the derived classes and callers below.
2278
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.
2296
ef03dad8
TBA
22972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2298
2299 Turn process_stratum_target's attach op into a method of
2300 process_target.
2301
2302 * target.h (struct process_stratum_target): Remove the target op.
2303 (class process_target): Add the target op.
2304 (myattach): Update the macro.
2305
2306 Update the derived classes and callers below.
2307
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.
2324
6dee9afb
TBA
23252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2326
2327 Turn process_stratum_target's post_create_inferior op into a method
2328 of process_target.
2329
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.
2334
2335 Update the derived classes and callers below.
2336
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.
2344
15295543
TBA
23452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2346
2347 Turn process_stratum_target's create_inferior op into a method of
2348 process_target.
2349
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.
2354
2355 Update the derived classes and callers below.
2356
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.
2376
5ef9273d
TBA
23772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2378
2379 * target.h (class process_target): New class definition.
2380 (struct process_stratum_target) <pt>: New field with type
2381 'process_target*'.
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*
2385 as the 'pt' field.
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*
2389 as the 'pt' field.
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*
2393 as the 'pt' field.
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*
2397 as the 'pt' field.
2398
9f1528a1
AB
23992020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * configure: Regenerate.
2402
bf84f706
MR
24032020-02-19 Maciej W. Rozycki <macro@wdc.com>
2404 Andrew Burgess <andrew.burgess@embecosm.com>
2405
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):
2411 Define.
2412
1a627e7e
TT
24132020-02-14 Tom Tromey <tom@tromey.com>
2414
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.
2422 (GNULIB_H): Remove.
2423 (generated_files): Update.
2424 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
2425 * configure: Rebuild.
2426 * configure.ac: Don't configure gnulib or libiberty.
2427 (GNULIB): Update.
2428
a9b34532
EZ
24292020-02-14 Eli Zaretskii <eliz@gnu.org>
2430
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.
2435
feacfcac
SM
24362020-02-13 Simon Marchi <simon.marchi@efficios.com>
2437
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.
2442
06b3c5bd
SM
24432020-02-13 Simon Marchi <simon.marchi@efficios.com>
2444
2445 * Makefile.in: Rename gdbsupport source files from .c to .cc.
2446
052793ad
HD
24472020-02-12 Hannes Domani <ssbssa@yahoo.de>
2448
2449 * win32-low.c (win32_create_inferior): Set signal_pid.
2450
f20e3e82
MR
24512020-02-12 Maciej W. Rozycki <macro@wdc.com>
2452 Pedro Alves <palves@redhat.com>
2453
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.
2457
8ddd8e0e
SM
24582020-02-11 Simon Marchi <simon.marchi@efficios.com>
2459
2460 * configure: Re-generate.
2461
898e7f60
SM
24622020-02-11 Simon Marchi <simon.marchi@efficios.com>
2463
2464 * configure: Re-generate.
2465
58df732b
SM
24662020-02-11 Simon Marchi <simon.marchi@efficios.com>
2467
2468 * acinclude.m4: Update warning.m4 path.
2469
7928d571
HD
24702020-02-09 Hannes Domani <ssbssa@yahoo.de>
2471
2472 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
2473 (handle_exception): Set siginfo_er.
2474 (win32_xfer_siginfo): New function.
2475
919adfe8
TT
24762020-02-07 Tom Tromey <tom@tromey.com>
2477 Pedro Alves <palves@redhat.com>
2478
2479 * README: Update build documentation.
2480 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
2481 host, not target.
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.
2492
287c844a
MR
24932020-01-29 Maciej W. Rozycki <macro@wdc.com>
2494
2495 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2496
548a204f
PFC
24972020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2498
2499 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2500 assignment instead of srv_linux_obj.
2501
a2236a08
HD
25022020-01-28 Hannes Domani <ssbssa@yahoo.de>
2503
2504 * server.c (handle_qxfer_libraries): Write segment-address with
2505 paddress.
2506
bdaed379
HD
25072020-01-24 Hannes Domani <ssbssa@yahoo.de>
2508
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.
2514
42cd72aa
MR
25152020-01-24 Maciej W. Rozycki <macro@wdc.com>
2516
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.
2520 (%.o): Rename to...
2521 (nat/%.o): ... this pattern rule.
2522 (%.o): Rename to...
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.
2528
42ba50ec
MR
25292020-01-24 Maciej W. Rozycki <macro@wdc.com>
2530
2531 * Makefile.in (TAGS): Remove config files from the recipe.
2532
05ea2a05
TT
25332020-01-14 Tom Tromey <tom@tromey.com>
2534
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
2538 lib-link.m4.
2539
01027315
TT
25402020-01-14 Tom Tromey <tom@tromey.com>
2541
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.
2552
b2ceabe8
TT
25532020-01-14 Tom Tromey <tom@tromey.com>
2554
2555 * configure.ac (LIBS): Use WIN32APILIBS.
2556 (USE_WIN32API): Don't define.
2557 * configure: Rebuild.
2558
25c51f71
TT
25592020-01-14 Tom Tromey <tom@tromey.com>
2560
2561 * configure: Rebuild.
2562
c0bd321d
SM
25632020-01-13 Simon Marchi <simon.marchi@efficios.com>
2564
2565 * Makefile.in (%-generated.c): Remove rule for files from
2566 regformats/i386.
2567
bb564c58
SM
25682020-01-13 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * configure: Re-generate.
2571
6e37c371
SM
25722020-01-13 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2575 Define to static.
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.
2579
df4a0200
SM
25802020-01-13 Simon Marchi <simon.marchi@efficios.com>
2581
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
2587 static.
2588
89e94ec9
SM
25892020-01-13 Simon Marchi <simon.marchi@efficios.com>
2590
2591 * inferiors.c: Include gdbsupport/common-inferior.h.
2592
2552728a
SM
25932020-01-13 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * hostio-errno.c: Include hostio.h.
2596
4025fa09
SM
25972020-01-13 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2600 prerequisite.
2601
c0b0a142
SM
26022020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2603
2604 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2605 * linux-arm-tdesc.h: Include arch/arm.h.
2606
bb1183e2
SM
26072020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2610
f5df0b5f
SM
26112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2614 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2615
5b6d1e4f
PA
26162020-01-10 Pedro Alves <palves@redhat.com>
2617
2618 * fork-child.c (post_fork_inferior): Pass target down to
2619 startup_inferior.
2620 * inferiors.c (switch_to_thread): Add process_stratum_target
2621 parameter.
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
2626 switch_to_thread.
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.
2637
559e7e50
EZ
26382020-01-06 Eli Zaretskii <eliz@gnu.org>
2639 Pedro Alves <palves@redhat.com>
2640
2641 * win32-low.c (get_child_debug_event): Extract the fatal exception
2642 from the exit status and convert to the equivalent Posix signal
2643 number.
2644 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2645 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2646
48189bec
HD
26472020-01-01 Hannes Domani <ssbssa@yahoo.de>
2648
2649 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2650
5dd8bf88
JB
26512020-01-01 Joel Brobecker <brobecker@adacore.com>
2652
2653 * server.c (gdbserver_version): Change copyright year to 2020.
2654 * gdbreplay.c (gdbreplay_version): Likewise.
2655
0ad6b8ee
CB
26562019-12-19 Christian Biesinger <cbiesinger@google.com>
2657
2658 * configure: Regenerate.
2659 * configure.ac: Quote variable arguments of test.
2660
1ee7b812
BE
26612019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2662
2663 * Makefile.in: Fix build with GNU Make 3.81
2664
d9fa87f4
TT
26652019-12-16 Tom Tromey <tromey@adacore.com>
2666
2667 * server.c (get_exec_file): Constify result.
2668
ab7d13f0
CB
26692019-12-10 Christian Biesinger <cbiesinger@google.com>
2670
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
2680 strerror.
2681 (gdb_agent_helper_thread): Likewise.
2682 * utils.c (perror_with_name): Likewise.
2683
4da8c3a8
TT
26842019-11-26 Tom Tromey <tom@tromey.com>
2685
2686 * configure, config.in: Rebuild.
2687
21987b9c
TT
26882019-11-26 Tom Tromey <tom@tromey.com>
2689
2690 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2691 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2692 gdb_sigmask.
2693 * configure, config.in: Rebuild.
2694
5e030278
TT
26952019-11-26 Tom Tromey <tom@tromey.com>
2696
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.
2702
6d91ce9a
CB
27032019-11-26 Christian Biesinger <cbiesinger@google.com>
2704
2705 * debug.c (debug_set_output): Call safe_strerror instead of
2706 strerror.
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.
2721
6cdd651f
LM
27222019-11-20 Luis Machado <luis.machado@linaro.org>
2723
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.
2728
cd850b40
CB
27292019-11-15 Christian Biesinger <cbiesinger@google.com>
2730
2731 * Makefile.in: Add safe-strerror.c.
2732 * configure: Regenerate.
2733 * configure.ac: Don't source common.host.
2734
5abebf3c
CB
27352019-11-15 Christian Biesinger <cbiesinger@google.com>
2736
2737 * config.in: Regenerate.
2738 * configure: Regenerate.
2739
e06f3d6e
AB
27402019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * ax.c (ax_printf): Handle size_t_arg.
2743
ca3a04f6
CB
27442019-11-06 Christian Biesinger <cbiesinger@google.com>
2745
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.
2753
e48f6033
CB
27542019-11-01 Christian Biesinger <cbiesinger@google.com>
2755
2756 * configure: Regenerate.
2757 * configure.ac: Remove check for strerror_r.
2758
e7e97a2e
CB
27592019-10-31 Christian Biesinger <cbiesinger@google.com>
2760
2761 * config.in: Regenerate.
2762 * configure: Regenerate.
2763 * configure.ac: Also check for strerror_r.
2764
75cafaa6
CB
27652019-10-31 Christian Biesinger <cbiesinger@google.com>
2766
2767 * ax.h (debug_agent): Remove duplicate declaration.
2768
30baf67b
TV
27692019-10-26 Tom de Vries <tdevries@suse.de>
2770
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.
2776 * regcache.h: Same.
2777 * server.c: Same.
2778 * tracepoint.c: Same.
2779 * win32-low.c: Same.
2780
52c64cf7
TT
27812019-10-25 Tom Tromey <tromey@adacore.com>
2782
2783 * utils.c (xstrdup): Remove.
2784
c12d372d
TT
27852019-10-23 Tom Tromey <tom@tromey.com>
2786
2787 * configure, config.in: Rebuild.
2788
4d0b984b
TT
27892019-10-23 Tom Tromey <tom@tromey.com>
2790
2791 * configure: Rebuild.
2792 * acinclude.m4: Use m4_include, not sinclude.
2793
c5adaa19
TT
27942019-10-17 Tom Tromey <tromey@adacore.com>
2795
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
2800 invocation.
2801
fec4e896
CB
28022019-10-16 Christian Biesinger <cbiesinger@google.com>
2803
2804 * server.c: Include xml-builtin.h.
2805 (get_xml_features): Don't declare xml_builtins here.
2806
00975ff6
AB
28072019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2808
2809 * Makefile.in: Remove references to vec-ipa.o.
2810
0dc32745
AB
28112019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2812
2813 * Makefile.in: Remove references to vec.c.
2814
3e6ec53a
CB
28152019-10-02 Christian Biesinger <cbiesinger@google.com>
2816
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.
2842
80fd2826
TT
28432019-10-02 Tom Tromey <tromey@adacore.com>
2844
2845 * Makefile.in (SFILES): Add common-inferior.c.
2846 (OBS): Add common-inferior.o.
2847 * server.c (startup_with_shell): Don't define.
2848
46f29a9a
AB
28492019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * linux-low.c (linux_low_read_btrace): Update for change to
2852 std::vector.
2853
f9d949fb
CB
28542019-09-20 Christian Biesinger <cbiesinger@google.com>
2855
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
2860 debug_threads.
2861 * nto-low.c: Likewise.
2862 * remote-utils.c: Likewise.
2863 * thread-db.c: Likewise.
2864
abf516c6
UW
28652019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2866
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.
2872 (spu*-*-*): Remove.
2873
2874 * spu-low.c: Remove file.
2875
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.
2892
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.
2904
2d41fa11
SDJ
29052019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2906
2907 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2908 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2909 * config.in: Regenerate.
2910 * configure: Regenerate.
2911
d59b55f0
TT
29122019-08-15 Tom Tromey <tromey@adacore.com>
2913
2914 * target.c (target_write_memory): Use gdb::byte_vector.
2915
4196ab2a
TT
29162019-08-15 Tom Tromey <tromey@adacore.com>
2917
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):
2936 Update.
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.
2945
c6778d00
TT
29462019-08-15 Tom Tromey <tromey@adacore.com>
2947
2948 * target.c (write_inferior_memory): Use std::vector.
2949
404f2902
FCE
29502019-08-06 Frank Ch. Eigler <fche@redhat.com>
2951
2952 PR build/24886
2953 * configure.ac: Drop enable-libmcheck support.
2954 * configure, config.in: Rebuild.
2955 * acinclude.m4: Don't include it.
2956
4c5aa8e0
AH
29572019-07-19 Alan Hayward <alan.hayward@arm.com>
2958
2959 * configure.srv: Remove Arm xml files.
2960
7cc17433
AH
29612019-07-19 Alan Hayward <alan.hayward@arm.com>
2962
2963 * configure.srv: Add new files. Remove xml generated files.
2964 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2965 registers.
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.
2980
166a82be
AH
29812019-07-10 Alan Hayward <alan.hayward@arm.com>
2982
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.
2987
268a13a5
TT
29882019-07-09 Tom Tromey <tom@tromey.com>
2989
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.
3006
350fab54
AH
30072019-07-04 Alan Hayward <alan.hayward@arm.com>
3008
3009 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3010 defines.
3011 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3012
2b40fda7
AH
30132019-07-04 Alan Hayward <alan.hayward@arm.com>
3014
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.
3024
7d10623d
TV
30252019-06-20 Tom de Vries <tdevries@suse.de>
3026
3027 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3028 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3029
8d6a48df
TV
30302019-06-19 Tom de Vries <tdevries@suse.de>
3031
3032 * debug.h (debug_write): Change return type to ssize_t.
3033 * debug.c (debug_write): Same.
3034
73cc7272
TT
30352019-06-14 Tom Tromey <tom@tromey.com>
3036
3037 * configure.ac: Use new path to gnulib.
3038 * configure: Rebuild.
3039 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3040 to gnulib.
3041
08f10e02
TT
30422019-06-11 Tom Tromey <tom@tromey.com>
3043
3044 * Makefile.in (SFILES): Add alloc.c.
3045 (OBS): Add alloc.o.
3046 (IPA_OBJS): Add alloc-ipa.o.
3047 (alloc-ipa.o): New target.
3048 (%.o: ../%.c): New pattern rule.
3049
422186a9
TT
30502019-06-10 Tom Tromey <tromey@adacore.com>
3051
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
3055 newline.
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
3059 newline.
3060 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3061 end warning with a newline.
3062
b02f78f9
PA
30632019-06-04 Pedro Alves <palves@redhat.com>
3064
3065 * server.c (captured_main): Use make_unique_xstrdup.
3066
88ed7edb
TT
30672019-06-02 Tom Tromey <tom@tromey.com>
3068
3069 * gdbreplay.c (fromhex): Remove.
3070 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3071
33a6bc35
TT
30722019-05-29 Tom Tromey <tromey@adacore.com>
3073
3074 * configure: Rebuild.
3075
e90a813d
KB
30762019-05-06 Kevin Buettner <kevinb@redhat.com>
3077
3078 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3079 sign extension code on 32-bit builds.
3080
353ea2d1
EZ
30812019-05-03 Eli Zaretskii <eliz@gnu.org>
3082
3083 * remote-utils.c:
3084 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3085
b494cdff
TT
30862019-04-19 Tom Tromey <tom@tromey.com>
3087
3088 * server.c (struct vstop_notif): Derive from notif_event.
3089 <base>: Remove.
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
3103 "common/queue.h".
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.
3108
a7e559cc
AH
31092019-04-17 Alan Hayward <alan.hayward@arm.com>
3110
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.
3115
aeb2e706
AH
31162019-04-17 Alan Hayward <alan.hayward@arm.com>
3117
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.
3124
c1bc0935
AH
31252019-04-17 Alan Hayward <alan.hayward@arm.com>
3126
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.
3134
3f52fdbc
KB
31352019-04-10 Kevin Buettner <kevinb@redhat.com>
3136
3137 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3138 when using a 64-bit gdbserver.
3139
b0319eaa
TT
31402019-04-09 Tom Tromey <tromey@adacore.com>
3141
3142 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3143
eedc3f4f
TT
31442019-04-08 Tom Tromey <tom@tromey.com>
3145
3146 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3147 throw.
3148 (linux_resume_one_lwp): Likewise.
3149
230d2906
TT
31502019-04-08 Tom Tromey <tom@tromey.com>
3151
3152 * gdbreplay.c: Update.
3153 * linux-low.c: Update.
3154 * server.c: Update.
3155
a70b8144
TT
31562019-04-08 Tom Tromey <tom@tromey.com>
3157
3158 * server.c: Use C++ exception handling.
3159 * linux-low.c: Use C++ exception handling.
3160 * gdbreplay.c: Use C++ exception handling.
3161
3d6e9d23
TT
31622019-04-08 Tom Tromey <tom@tromey.com>
3163
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.
3168
0570503d
PFC
31692019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3170
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.
3177
227a9e65
TT
31782019-04-05 Tom Tromey <tromey@adacore.com>
3179
3180 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3181 variables.
3182
69f4c9cc
AH
31832019-03-28 Alan Hayward <alan.hayward@arm.com>
3184
3185 * linux-low.c (AT_HWCAP2): Add define if not already included.
3186
974c89e0
AH
31872019-03-26 Alan Hayward <alan.hayward@arm.com>
3188
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.
3202
1ef53e6b
AH
32032019-03-22 Alan Hayward <alan.hayward@arm.com>
3204 Jiong Wang <jiong.wang@arm.com>
3205
3206 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3207 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3208 to fail.
3209 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3210
ee4fbcfa
AH
32112019-03-22 Alan Hayward <alan.hayward@arm.com>
3212 Jiong Wang <jiong.wang@arm.com>
3213
3214 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3215 (aarch64_get_hwcap): New function.
3216 (aarch64_arch_setup): Read APIA hwcap.
3217
6dc0ebde
AH
32182019-03-22 Alan Hayward <alan.hayward@arm.com>
3219 Jiong Wang <jiong.wang@arm.com>
3220
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.
3228
1163a4b7
JB
32292019-03-12 John Baldwin <jhb@FreeBSD.org>
3230
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.
3236
d3a70e03
TT
32372019-03-12 Tom Tromey <tromey@adacore.com>
3238
3239 * linux-low.c (iterate_over_lwps): Update.
3240
37991b4f
TT
32412019-03-06 Tom Tromey <tom@tromey.com>
3242
3243 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3244 (captured_main): Use SCOPE_EXIT.
3245
45950eb6
SDJ
32462019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3247
3248 * configure.srv: Use '$enable_unittest' instead of '$development'
3249 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3250 case.
3251
43ac54fc
TT
32522019-02-27 Tom Tromey <tromey@adacore.com>
3253
3254 * gdbreplay.c (logchar): Handle \r\n.
3255
df0da8a2
AH
32562019-02-07 Alan Hayward <alan.hayward@arm.com>
3257
3258 * linux-low.c (linux_attach): Add process before lwp.
3259 * server.c (attach_inferior): Check if already attached.
3260
1a5c2598
TT
32612019-02-07 Tom Tromey <tom@tromey.com>
3262
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.
3293
956cc47c
SN
32942018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3295
3296 PR gdb/23985
3297 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3298 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3299
a0707f3c
TT
33002019-01-25 Tom Tromey <tom@tromey.com>
3301
3302 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3303
0747795c
TT
33042019-01-25 Tom Tromey <tom@tromey.com>
3305
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.
3334 * ax.c:
3335 (enum gdb_agent_op): Fix common/ includes.
3336
be6d4f74
TT
33372019-01-21 Tom Tromey <tom@tromey.com>
3338
3339 * tracepoint.c: Fix includes.
3340 * remote-utils.c: Fix includes.
3341 * linux-x86-low.c: Fix includes.
3342
66d91b39
JB
33432019-01-01 Joel Brobecker <brobecker@adacore.com>
3344
3345 * gdbreplay.c (gdbreplay_version): Update copyright year in
3346 version message.
3347 * server.c (gdbserver_version): Likewise.
3348
754e3168
AH
33492018-12-05 Alan Hayward <alan.hayward@arm.com>
3350
3351 * linux-low.c (add_lwp): Switch ordering.
3352
d105de22
TT
33532018-11-29 Tom Tromey <tom@tromey.com>
3354
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
3360 process.
3361 * lynx-low.c (lynx_join): Take pid, not process.
3362 * linux-low.c (linux_join): Take pid, not process.
3363
50138245
AH
33642018-11-23 Alan Hayward <alan.hayward@arm.com>
3365
3366 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3367 (aarch64_cannot_fetch_register): Likewise.
3368 (struct linux_target_ops): Update references.
3369
64f57f3d
PFC
33702018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3371
3372 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3373
8d619c01
EBM
33742018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3375
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.
3408
232bfb86
EBM
34092018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3410
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.
3418
f2cf6173
EBM
34192018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3420
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.
3443
7ca18ed6
EBM
34442018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3445 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3446
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.
3476
5c849b22
PFC
34772018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3478
3479 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
3480
8ecfd7bd
SDJ
34812018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
3482 Simon Marchi <simark@simark.ca>
3483
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
3489 enabled.
3490 * server.c (captured_main): Update message informing that
3491 selftests have been disabled.
3492
96643e35
TT
34932018-10-04 Tom Tromey <tom@tromey.com>
3494
3495 * configure: Rebuild.
3496
da4ae14a
TT
34972018-10-04 Tom Tromey <tom@tromey.com>
3498
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".
3505
7c619dbd
GB
35062018-10-01 Gary Benson <gbenson@redhat.com>
3507
3508 * gdb_proc_service.h: Moved common code to
3509 common/gdb_proc_service.h.
3510
3795e814
GB
35112018-10-01 Gary Benson <gbenson@redhat.com>
3512
3513 * gdb_proc_service.h: Synchronize comments and whitespace with
3514 GDB's version of this file.
3515
49b036f1
TT
35162018-09-25 Tom Tromey <tom@tromey.com>
3517
3518 * configure: Rebuild.
3519 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3520
8ff03f0b
SM
35212018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3522
3523 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3524 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3525 ($(IPA_LIB)): Sort IPA_OBJS.
3526
a1cd91dc
SM
35272018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3528
3529 * Makefile.in: Remove references to $(ADD_DEPS).
3530
752312ba
TT
35312018-09-16 Tom Tromey <tom@tromey.com>
3532
3533 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3534 variables.
3535 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3536 variables.
3537
f1628857
TT
35382018-09-05 Tom Tromey <tom@tromey.com>
3539
3540 * configure: Rebuild.
3541
ad202fcc
SM
35422018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 PR build/23399
3545 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3546
d3d8724a
TT
35472018-08-27 Tom Tromey <tom@tromey.com>
3548
3549 PR build/23087:
3550 * configure: Rebuild.
3551
b4f183d2
TT
35522018-08-27 Tom Tromey <tom@tromey.com>
3553
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.
3559
4e2aa472
SM
35602018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3561
3562 PR gdb/23374
3563 PR gdb/23375
3564 * server.h (struct client_state) <disable_randomization>:
3565 Initialize to 1.
3566
cf4088a9
SM
35672018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3570 variable.
3571 (mips_supply_ptrace_register): Likewise.
3572
a0de763e
TT
35732018-07-22 Tom Tromey <tom@tromey.com>
3574
3575 * configure: Rebuild.
3576
b0a7723d
TT
35772018-07-22 Tom Tromey <tom@tromey.com>
3578
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.
3587
a780ef4f
PA
35882018-07-13 Pedro Alves <palves@redhat.com>
3589
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
3602 and callers.
3603 (kill_inferior): Likewise.
3604
ef2ddb33
PA
36052018-07-13 Pedro Alves <palves@redhat.com>
3606
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
3616 and callers.
3617 (detach_inferior, join_inferior): Rename 'pid' parameter to
3618 'proc'.
3619
c7ab0aef
SDJ
36202018-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>
3624
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
3630 connections.
3631 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3632 and 'wspiapi.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
3637 IPv6 sources.
3638
31445d10
PA
36392018-07-11 Pedro Alves <palves@redhat.com>
3640
3641 PR gdb/23377
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.
3651
cb197132
PA
36522018-07-11 Pedro Alves <palves@redhat.com>
3653
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.
3659
1b919490
VB
36602018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3661 Pedro Alves <palves@redhat.com>
3662
3663 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3664
d7e15655
TT
36652018-07-03 Tom Tromey <tom@tromey.com>
3666
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.
3672 * server.c: Update.
3673 * spu-low.c: Update.
3674 * target.c: Update.
3675 * win32-low.c: Update.
3676
26a57c92
TT
36772018-07-03 Tom Tromey <tom@tromey.com>
3678
3679 * server.c: Update.
3680
0e998d96
TT
36812018-07-03 Tom Tromey <tom@tromey.com>
3682
3683 * linux-low.c: Update.
3684
cc6bcb54
TT
36852018-07-03 Tom Tromey <tom@tromey.com>
3686
3687 * target.c: Update.
3688
e38504b3
TT
36892018-07-03 Tom Tromey <tom@tromey.com>
3690
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.
3696 * server.c: Update.
3697 * spu-low.c: Update.
3698 * target.c: Update.
3699 * thread-db.c: Update.
3700
e99b03dc
TT
37012018-07-03 Tom Tromey <tom@tromey.com>
3702
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.
3709 * server.c: Update.
3710 * spu-low.c: Update.
3711 * target.c: Update.
3712 * tracepoint.c: Update.
3713
f2907e49
TT
37142018-07-03 Tom Tromey <tom@tromey.com>
3715
3716 * linux-low.c: Update.
3717 * linux-ppc-low.c: Update.
3718 * linux-x86-low.c: Update.
3719 * proc-service.c: Update.
3720 * server.c: Update.
3721 * spu-low.c: Update.
3722 * thread-db.c: Update.
3723 * win32-low.c: Update.
3724
fd79271b
TT
37252018-07-03 Tom Tromey <tom@tromey.com>
3726
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.
3734
c0867626
SDJ
37352018-06-29 Joel Brobecker <brobecker@adacore.com>
3736
3737 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3738 parameter in call to 'amd64_create_target_description'.
3739
2512d7ef
JK
37402018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 * x86-tdesc.h: Remove executable permission flag.
3743
d0ac1c44
SM
37442018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3745
3746 * configure.ac: Remove AC_PREREQ, add missing quoting.
3747 * configure: Re-generate.
3748 * config.in: Re-generate.
3749 * aclocal.m4: Re-generate.
3750
c4eb05ff
SM
37512018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3752
3753 * tracepoint.h (current_traceframe): Remove declaration.
3754
02895270
AH
37552018-06-18 Alan Hayward <alan.hayward@arm.com>
3756
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.
3762
e9902bfc
AH
37632018-06-18 Alan Hayward <alan.hayward@arm.com>
3764
3765 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3766
fefa175e
AH
37672018-06-11 Alan Hayward <alan.hayward@arm.com>
3768
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
3773 param.
3774 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3775 checks.
3776 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3777
b91ad3ff
AH
37782018-06-11 Alan Hayward <alan.hayward@arm.com>
3779
3780 * server.h (PBUFSIZ): Increase size
3781
f868386e
AH
37822018-06-11 Alan Hayward <alan.hayward@arm.com>
3783
3784 * regcache.c (regcache::raw_compare): New function.
3785 * regcache.h (regcache::raw_compare): New declaration.
3786
9c861883
AH
37872018-06-11 Alan Hayward <alan.hayward@arm.com>
3788
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.
3798
40591844
TT
37992018-06-09 Tom Tromey <tom@tromey.com>
3800
3801 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3802 declare queue.
3803 (event_queue): Use std::queue.
3804 (gdb_event_xfree): Remove.
3805 (initialize_event_loop, process_event, wait_for_event): Update.
3806
6341380d
SC
38072018-06-08 Stan Cox <scox@redhat.com>
3808
3809 * win32-low.c (win32_create_inferior): last_ptid and last_status
3810 moved to client_state.
3811
03349c93
PA
38122018-06-08 Pedro Alves <palves@redhat.com>
3813
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.
3824 (main): New.
3825
8dcc53b3
TT
38262018-06-08 Tom Tromey <tom@tromey.com>
3827
3828 * linux-low.c (linux_low_read_btrace): Update.
3829
c12a5089
SC
38302018-06-04 Stan Cox <scox@redhat.com>
3831
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.
3842
3843 Update all callers.
3844 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3845 linux-low.c, remote-utils.h, target.c: Use client_state.
3846
122394f1
AH
38472018-05-31 Alan Hayward <alan.hayward@arm.com>
3848
3849 * configure.srv: Add new c/h file.
3850
95228a0d
AH
38512018-05-31 Alan Hayward <alan.hayward@arm.com>
3852
3853 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3854 null VQ.
3855
d8dab6c3
MR
38562018-05-25 Maciej W. Rozycki <macro@mips.com>
3857
3858 * gdb.arch/mips-fpregset-core.exp: New test.
3859 * gdb.arch/mips-fpregset-core.c: New test source.
3860
81e25b7c
EK
38612018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3862
3863 PR server/23198
3864 * hostio.c (require_int): Do not report overflow for integers
3865 between 0xfffffff and 0x7fffffff.
3866
7e947ad3
MR
38672018-05-22 Maciej W. Rozycki <macro@mips.com>
3868
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
3872 functions.
3873 (the_low_target): Wire them.
3874
1d75a658
PFC
38752018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3876
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
3883 vscr_offset.
3884
d078308a
PFC
38852018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3886
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.
3890
7273b5fc
PFC
38912018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3892
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
3901 needed.
3902
2e077f5e
PFC
39032018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3904
3905 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3906 wordsize of the inferior. Call ppc_linux_target_wordsize.
3907
bd64614e
PFC
39082018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3909
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
3925 linux-ppc-tdesc.h.
3926 (ppc_arch_setup): Remove target description matching code. Fill a
3927 ppc_linux_features struct and call ppc_linux_match_description
3928 with it.
3929
75d74cca
MR
39302018-05-22 Maciej W. Rozycki <macro@mips.com>
3931
3932 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3933 width of the requested register exceeds the width of the
3934 `ptrace' data type.
3935 (mips_cannot_store_register): Likewise.
3936
e4439e43
MR
39372018-05-21 Maciej W. Rozycki <macro@mips.com>
3938
3939 * linux-mips-low.c (mips_fetch_register): New function. Update
3940 preceding comment.
3941 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3942 (the_low_target): Wire `mips_fetch_register'.
3943
55271bf9
JB
39442018-05-10 Joel Brobecker <brobecker@adacore.com>
3945
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
3951 LynxOS-178.
3952
1a34f210
TT
39532018-05-10 Tom Tromey <tom@tromey.com>
3954
3955 * configure: Rebuild.
3956
190852c8
JB
39572018-05-10 Joel Brobecker <brobecker@adacore.com>
3958
3959 PR server/23158:
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.
3981
7dbac825
JB
39822018-05-10 Joel Brobecker <brobecker@adacore.com>
3983
3984 PR server/23158:
3985 * win32-low.c (win32_create_inferior): Add call to my_wait
3986 setting last_status global.
3987
906994d9
JB
39882018-05-10 Joel Brobecker <brobecker@adacore.com>
3989
3990 PR server/23158:
3991 * win32-low.c (create_process): Only call gdb_tilde_expand if
3992 inferior_cwd is not NULL.
3993
8ee22052
AB
39942018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3995
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
4002 function.
4003
aff689d3
TT
40042018-05-07 Tom Tromey <tom@tromey.com>
4005
4006 * configure: Rebuild.
4007
85e26832
TT
40082018-05-04 Tom Tromey <tom@tromey.com>
4009
4010 * configure: Rebuild.
4011
a3b60e45
JK
40122018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 Pedro Alves <palves@redhat.com>
4014
4015 * linux-aarch64-low.c (aarch64_stopped_data_address):
4016 Likewise.
4017
632e107b
TT
40182018-04-27 Tom Tromey <tom@tromey.com>
4019
4020 * configure: Rebuild.
4021
458412c3
TT
40222018-04-23 Tom Tromey <tom@tromey.com>
4023
4024 * configure: Rebuild.
4025
f31c089e
SM
40262018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4027
4028 * Makefile.in (depcomp): Add "..".
4029 (all_deps_files): New and use it.
4030
b319b098
AH
40312018-04-18 Alan Hayward <alan.hayward@arm.com>
4032
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.
4044
3b74854b
AH
40452018-04-18 Alan Hayward <alan.hayward@arm.com>
4046
4047 * tdesc.c: Remove xml parameter.
4048
e98577a9
AH
40492018-04-18 Alan Hayward <alan.hayward@arm.com>
4050
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.
4057
d278f585
AH
40582018-04-18 Alan Hayward <alan.hayward@arm.com>
4059
4060 * tdesc.c (tdesc_architecture_name): Add new function.
4061 (tdesc_osabi_name): Likewise.
4062 (tdesc_get_features_xml): Use new functions.
4063
eee8a18d
AH
40642018-04-18 Alan Hayward <alan.hayward@arm.com>
4065
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.
4075
82ec9bc7
AH
40762018-04-18 Alan Hayward <alan.hayward@arm.com>
4077
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.
4084
ea3e7d71
AH
40852018-04-18 Alan Hayward <alan.hayward@arm.com>
4086
4087 * Makefile.in: Add common/tdesc.c
4088 * tdesc.c (init_target_desc): init all reg_defs from register
4089 vector.
4090 (tdesc_create_reg): Create tdesc_reg.
4091 * tdesc.h (tdesc_feature): Add register vector.
4092
17d08cd4
SM
40932018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4094
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
4098 changes.
4099 (tdesc_get_features_xml): Likewise.
4100 (tdesc_create_feature): Likewise.
4101
5cd3e386
AH
41022018-03-26 Alan Hayward <alan.hayward@arm.com>
4103
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.
4113
dff7492c
AH
41142018-03-23 Alan Hayward <alan.hayward@arm.com>
4115
4116 * regcache.c (find_register_by_number): Make static.
4117 (find_regno): Use find_register_by_number
4118 * regcache.h (struct reg): Remove declaration.
4119
d80e5242
AH
41202018-03-23 Alan Hayward <alan.hayward@arm.com>
4121
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.
4126
f69c5afb
AA
41272018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4128
4129 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4130
ce29f843
AA
41312018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4132
4133 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4134 S390_TDESC_GS.
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.
4138
c49bd90b
AA
41392018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4140
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
4144 to NULL.
4145
7edb9bd3
AA
41462018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4147
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.
4154
39be3c7e
SM
41552018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4156
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.
4167
3ae9ce5d
TT
41682018-03-14 Tom Tromey <tom@tromey.com>
4169
4170 PR cli/14977:
4171 * ax.c (ax_printf): Special case for NULL.
4172
e6a58aa8
SM
41732018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * linux-low.c (linux_qxfer_libraries_svr4): Use
4176 xml_escape_text_append.
4177
f6e8a41e
SM
41782018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4179
4180 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4181
b9671caf
SM
41822018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4183
4184 * server.c (handle_general_set): Remove unnecessary xstrdup.
4185
e80aaf61
SM
41862018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4187
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.
4192
b1223e78
MM
41932018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4194
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.
4201
81561546
SDJ
42022018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4203
4204 * server.c (captured_main): Change order of error message printed
4205 when the current working directory cannot be found.
4206
25e3c82c
SDJ
42072018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4208
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
4213 "program_name".
4214 (handle_v_run): Likewise.
4215 (captured_main): Likewise.
4216 (process_serial_event): Likewise.
4217
b4987c95
SDJ
42182018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4219
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".
4224
f46cd62a
AH
42252018-02-26 Alan Hayward <alan.hayward@arm.com>
4226
4227 * tdesc.c: Use common/tdesc.h.
4228 * tdesc.h: Likewise.
4229
a543c5ca
AH
42302018-02-20 Alan Hayward <alan.hayward@arm.com>
4231 Simon Marchi <simon.marchi@ericsson.com>
4232
4233 * Makefile.in: Switch order of make rules.
4234
b5884fa7
AH
42352018-02-19 Alan Hayward <alan.hayward@arm.com>
4236
4237 * Makefile.in: Add common directory in build.
4238 * configure.ac: Add common reference.
4239 * configure: Regenerate.
4240
de6242d3
MM
42412018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4242
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.
4250
9ee23a85
MM
42512018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4252
4253 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4254 (handle_btrace_disable): Change return type to void. Use exceptions
4255 to report errors.
4256 (handle_btrace_general_set): Catch exception and copy message to
4257 return message.
4258
8ce47547
TT
42592018-02-08 Tom Tromey <tom@tromey.com>
4260
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
4266 declare.
4267
45dd3607
TT
42682018-02-08 Tom Tromey <tom@tromey.com>
4269
4270 * mem-break.c (set_raw_breakpoint_at): Use
4271 gdb::unique_xmalloc_ptr.
4272
e671cd59
PA
42732018-01-30 Pedro Alves <palves@redhat.com>
4274
4275 PR gdb/13211
4276 * target.c (target_terminal::terminal_state): Rename to ...
4277 (target_terminal::m_terminal_state): ... this.
4278
a0aad537
JC
42792018-01-19 James Clarke <jrtc27@jrtc27.com>
4280
4281 * linux-low.c (handle_extended_wait): Surround call to
4282 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4283
4d9b86e1
SM
42842018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4285
4286 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4287 linux_ptrace_attach_fail_reason_string now returning an
4288 std::string.
4289 (linux_attach): Likewise.
4290 * thread-db.c (attach_thread): Likewise.
4291
f517c180
EA
42922018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4293
4294 PR gdb/21559
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.
4298
9a70f35c
YQ
42992018-01-16 Yao Qi <yao.qi@linaro.org>
4300
4301 PR gdb/18749
4302 * linux-low.c (fetch_register): Call supply_register instead of
4303 error.
4304
605fd3c6
YQ
43052018-01-08 Yao Qi <yao.qi@linaro.org>
4306 Simon Marchi <simon.marchi@ericsson.com>
4307
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
4313 GDB_SELF_TEST.
4314
2cc05030
SM
43152018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4316
4317 * server.c (parse_debug_format_options): Return std::string.
4318 (handle_monitor_command, captured_main): Adjust.
4319
e379cee6
PA
43202018-01-05 Pedro Alves <palves@redhat.com>
4321
4322 PR gdb/18653
4323 * server.c (captured_main): Pass quiet=false to
4324 save_original_signals_state.
4325
82e1e79a
JB
43262018-01-01 Joel Brobecker <brobecker@adacore.com>
4327
4328 * gdbreplay.c (gdbreplay_version): Update copyright year in
4329 version message.
4330 * server.c (gdbserver_version): Likewise.
4331
8e481c3b
TT
43322017-12-08 Tom Tromey <tom@tromey.com>
4333
4334 * ax.c (ax_printf): Update.
4335
a8806230
YQ
43362017-12-07 Yao Qi <yao.qi@linaro.org>
4337
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.
4346
d4a0e8b5
SM
43472017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4348
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.
4354
798a7429
SM
43552017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4356
4357 * regcache.c (registers_to_string): Remove unused variable.
4358
c0e15c9b
SM
43592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4360
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.
4365
f0045347
SM
43662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4367
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
4372 for_each_thread.
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.
4382
9521758b
SM
43832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * inferiors.h (find_inferior): Remove.
4386 * inferiors.c (find_inferior): Remove.
4387
8f86d7aa
SM
43882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 * linux-low.c (resume_status_pending_p): Update comment.
4391 (need_step_over_p): Update comment.
4392
e2b44075
SM
43932017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4394
4395 * linux-low.c (proceed_one_lwp): Return void, change parameter
4396 type.
4397 (unsuspend_and_proceed_one_lwp): Likewise.
4398 (proceed_all_lwps): Use for_each_thread.
4399 (unstop_all_lwps): Likewise.
4400
c80825ff
SM
44012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4402
4403 * linux-low.c (linux_resume_one_thread): Return void, take
4404 parameter directly.
4405 (linux_resume): Use for_each_thread.
4406
df3e4dbe
SM
44072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4408
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
4413 type. Rename to...
4414 (suspend_and_send_sigstop): ... this.
4415 (stop_all_lwps): Use for_each_thread.
4416
5a6b0a41
SM
44172017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4418
4419 * linux-low.c (lwp_running): Return bool, remove unused
4420 argument.
4421 (linux_stabilize_threads): Use find_thread.
4422
39a64da5
SM
44232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4424
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.
4429
a1385b7b
SM
44302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * linux-low.c (not_stopped_callback): Return bool, take filter
4433 argument directly.
4434 (linux_wait_for_event_filtered): Use find_thread.
4435 (linux_wait_1): Likewise.
4436
454296a2
SM
44372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4438
4439 * linux-low.c (same_lwp): Remove.
4440 (find_lwp_pid): Use find_thread.
4441
6b2a85da
SM
44422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4443
4444 * linux-low.c (delete_lwp_callback): Remove.
4445 (linux_mourn): Use for_each_thread.
4446
798a38e8
SM
44472017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4448
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.
4452
e4eb0dec
SM
44532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4454
4455 * linux-low.c (struct counter): Remove.
4456 (second_thread_of_pid_p): Remove.
4457 (last_thread_of_process_p): Use find_thread.
4458
83e1b6c1
SM
44592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4460
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.
4467
8dc7b443
SM
44682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4469
4470 * inferiors.c (find_inferior_id): Remove.
4471 (find_thread_ptid): Move implemention from find_inferior_id to
4472 here.
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.
4482
da25033c
SM
44832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4484
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.
4488
c91bb56b
SM
44892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4490
4491 * lynx.low (lynx_delete_thread_callback): Remove.
4492 (lynx_mourn): Use for_each_thread.
4493
634a3254
SM
44942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4495
4496 * regcache.c (regcache_invalidate_one): Remove.
4497 (regcache_invalidate_pid): use for_each_thread.
4498
41272101
TT
44992017-11-26 Tom Tromey <tom@tromey.com>
4500
4501 * linux-low.c (linux_create_inferior): Update.
4502
f5291a6f
UW
45032017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4504
4505 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4506
6654d750
AH
45072017-11-24 Alan Hayward <alan.hayward@arm.com>
4508
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.
4513
45142017-11-24 Alan Hayward <alan.hayward@arm.com>
4515
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.
4520
49bdb7ee
AH
45212017-11-24 Alan Hayward <alan.hayward@arm.com>
4522
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.
4526
d6d7ce56
AH
45272017-11-24 Alan Hayward <alan.hayward@arm.com>
4528
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.
4537
506fe5f4
YQ
45382017-11-24 Yao Qi <yao.qi@linaro.org>
4539
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.
4545
29f9a567
YQ
45462017-11-22 Yao Qi <yao.qi@linaro.org>
4547
4548 * remote-utils.c (prepare_resume_reply): Use memcpy.
4549
578290ec
SM
45502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4551
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.
4555
eca55aec
SM
45562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4557
4558 * linux-low.c (need_step_over_p): Return bool, remove dummy
4559 argument.
4560 (linux_resume, proceed_all_lwps): Use find_thread.
4561
25c28b4d
SM
45622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4563
4564 * linux-low.c (resume_status_pending_p): Return bool, remove
4565 flag_p argument.
4566 (linux_resume): Use find_thread.
4567
5fdda392
SM
45682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4569
4570 * linux-low.c (struct thread_resume_array): Remove.
4571 (linux_set_resume_request): Return void, take arguments
4572 directly.
4573 (linux_resume): Use for_each_thread.
4574
fcb056a5
SM
45752017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4576
4577 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4578 return bool, remove data argument.
4579 (linux_stabilize_threads): Use find_thread.
4580
139720c5
SM
45812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4582
4583 * linux-low.c (unsuspend_one_lwp): Remove.
4584 (unsuspend_all_lwps): Use for_each_thread, inline code from
4585 unsuspend_one_lwp.
4586
6d1e5673
SM
45872017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4588
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.
4593
bbf550d5
SM
45942017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4595
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.
4599
00192f77
SM
46002017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4601
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.
4606
2bee2b6c
SM
46072017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4608
4609 * win32-low.c (continue_one_thread): Return void, take argument
4610 directly.
4611 (child_continue): Use for_each_thread.
4612
0b360f19
SM
46132017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4614
4615 * win32-i386-low.c (update_debug_registers_callback): Rename
4616 to ...
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.
4619
f27866ba
SM
46202017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4621
4622 * inferiors.h (struct process_info): Add constructor, initialize
4623 fields..
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.
4630
e849ea89
PA
46312017-11-16 Pedro Alves <palves@redhat.com>
4632
4633 * remote-utils.c (remote_close): Block SIGIO signals instead of
4634 uninstalling the SIGIO handler.
4635
1d0aa65c
AH
46362017-11-16 Alan Hayward <alan.hayward@arm.com>
4637
4638 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4639
3491a34c
YQ
46402017-11-16 Yao Qi <yao.qi@linaro.org>
4641
4642 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4643 (tic6x_store_gregset): Likewise.
4644 (tic6x_usrregs_info): Move it up.
4645
a602f924
AH
46462017-11-15 Alan Hayward <alan.hayward@arm.com>
4647
4648 * Makefile.in: Update arch rules.
4649 * configure.srv: Explicitly mark arch/ files.
4650
5616b6c3
AS
46512017-11-13 Andreas Schwab <schwab@suse.de>
4652
4653 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4654 function.
4655 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4656
d1928160
PA
46572017-11-06 Pedro Alves <palves@redhat.com>
4658
4659 * config.in, configure: Regenerate.
4660
bac608e7
SM
46612017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4662
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.
4667
eaddb425
SM
46682017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4669
4670 * server.c (struct visit_actioned_threads_data): Remove.
4671 (visit_actioned_threads): Change prototype to take arguments
4672 directly.
4673 (resume): Use find_thread instead of find_inferior.
4674
99078d34
SM
46752017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4676
4677 * server.c (queue_stop_reply_callback): Change prototype, return
4678 void.
4679 (find_status_pending_thread_callback): Remove.
4680 (handle_status): Replace find_inferior with find_thread and
4681 for_each_thread.
4682
cc628f3d
AH
46832017-10-25 Alan Hayward <alan.hayward@arm.com>
4684
4685 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4686 with REGNO.
4687 (aarch64_store_gregset): Likewise.
4688 (aarch64_fill_fpregset): Likewise.
4689 (aarch64_store_fpregset): Likewise.
4690
4d3bb80e
SM
46912017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4692
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.
4697
7a7cdfa0
YQ
46982017-10-17 Yao Qi <yao.qi@linaro.org>
4699
4700 * Makefile.in: Remove one rule.
4701 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4702
e675d170
YQ
47032017-10-17 Yao Qi <yao.qi@linaro.org>
4704
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.
4707
7eb4e0f9
YQ
47082017-10-17 Yao Qi <yao.qi@linaro.org>
4709
4710 * configure.srv: Rename arm.o with arch/arm.o.
4711
60d6cfc9
YQ
47122017-10-17 Yao Qi <yao.qi@linaro.org>
4713
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.
4724
5bfda255
YQ
47252017-10-16 Yao Qi <yao.qi@linaro.org>
4726
4727 * configure: Regenerated.
4728
9c80ecd6
SM
47292017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4730
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
4742 using find_thread.
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):
4751 Remove.
4752 (clear_inferiors, get_thread_process): Update.
4753 * gdbthread.h: Include <list>.
4754 (struct thread_info) <entry>: Remove field.
4755 <id>: New 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
4759 functions.
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):
4778 Update.
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):
4792 Update.
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.
4797
9179355e
SM
47982017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4799
4800 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4801 * inferiors.h: Include <list>.
4802 (struct process_info) <entry>: Remove field.
4803 <pid>: New 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.
4833
c9cb8905
SM
48342017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4835
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.
4852
04ec7890
SM
48532017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4854
4855 * linux-low.h (struct linux_target_ops) <delete_process>: New
4856 field.
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.
4875
466eecee
SM
48762017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4877
4878 * linux-aarch64-low.c (the_low_target): Add thread delete
4879 callback.
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
4885 set.
4886 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4887 field.
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.
4898
b79f7801
YZ
48992017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4900
4901 * win32-low.c: Include "common-inferior.h".
4902
bc3b087d
SDJ
49032017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4904
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
4909 CreateProcess.
4910
d092c5a2
SDJ
49112017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4912
4913 * inferiors.c (current_inferior_cwd): New global variable.
4914 (get_inferior_cwd): New function.
4915 * inferiors.h (struct process_info) <cwd>: New field.
4916
7da0a886
SDJ
49172017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4918
4919 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4920 (OBS): Add gdb_tilde_expand.o.
4921
289a6840
SM
49222017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4923
4924 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4925 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4926
256642e8
PA
49272017-09-29 Pedro Alves <palves@redhat.com>
4928
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):
4932 Constify.
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.
4941
5b9ca4d4
PA
49422017-09-29 Pedro Alves <palves@redhat.com>
4943
4944 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4945 fails.
4946
94c207e0
PA
49472017-09-29 Pedro Alves <palves@redhat.com>
4948
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.
4956
75352e28
SDJ
49572017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4958
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.
4965
ad339634
AA
49662017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4967
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):
4975 New functions.
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
4978 appropriate tdesc.
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
4982 enum value.
4983 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4984 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4985
cc4d742f
SM
49862017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4987
4988 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4989
f6327dcb
KB
49902017-09-21 Kevin Buettner <kevinb@redhat.com>
4991
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
4996 "handle" attribute.
4997 * target.h (struct target_ops): Add new function pointer,
4998 thread_handle.
4999 (target_thread_handle): Define.
5000 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5001 field in lwp.
5002 (thread_db_thread_handle): New function.
5003
86299109
KB
50042017-09-21 Kevin Buettner <kevinb@redhat.com>
5005
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.
5009
f557a88a
PA
50102017-09-21 Pedro Alves <palves@redhat.com>
5011
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
5016 and adjust.
5017 * target.h (set_desired_thread): Remove 'use_general' parameter.
5018
223ffa71
TT
50192017-09-20 Tom Tromey <tom@tromey.com>
5020
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.
5027
04fd3ba9
SM
50282017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5029
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.
5033
5e187554
SM
50342017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5035
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.
5039
1526853e
SM
50402017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5041
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.
5046
c4dfafab
SDJ
50472017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5048
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.
5065
124aceb4
SM
50662017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5067
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):
5073 Likewise.
5074 * nto-low.c (nto_fetch_registers, nto_store_registers,
5075 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5076
96cde54f
SM
50772017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5078
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.
5083
e8ca139e
SM
50842017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5085
5086 * server.c (handle_detach): New function.
5087 (process_serial_event): Move code out, call handle_detach.
5088
f8a4e119
SM
50892017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5090
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.
5095
0eb0a407
SM
50962017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5097
5098 * linux-low.c (linux_set_resume_request): Remove unused
5099 variables.
5100
785922a5
SM
51012017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5102
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.
5117
a059f00c
SDJ
51182017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5119
5120 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 5121 with "!VEC_empty".
a059f00c 5122
cc397f3a
SDJ
51232017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5124
5125 * linux-low.c (handle_extended_wait): Use
5126 "allocate_target_description" instead of "XNEW".
5127 * linux-x86-low.c (initialize_low_arch): Likewise.
5128
22916b07
YQ
51292017-09-05 Yao Qi <yao.qi@linaro.org>
5130
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.
5143
38602d55
YQ
51442017-09-05 Yao Qi <yao.qi@linaro.org>
5145
5146 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5147 i386/amd64-XXX-linux from it.
5148
44b886ff
YQ
51492017-09-05 Yao Qi <yao.qi@linaro.org>
5150
5151 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5152 false.
5153 (ipa_amd64_linux_regobj): Remove.
5154 (ipa_x32_linux_regobj): Remove.
5155
b4570e4b
YQ
51562017-09-05 Yao Qi <yao.qi@linaro.org>
5157
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.
5180
d1f28ea2
YQ
51812017-09-05 Yao Qi <yao.qi@linaro.org>
5182
5183 * configure.srv (srv_i386_linux_xmlfiles): Remove
5184 i386/i386-XXX-linux.xml from it.
5185
25a93583
YQ
51862017-09-05 Yao Qi <yao.qi@linaro.org>
5187
5188 * configure.srv: Set srv_i386_linux_regobj empty if $development
5189 is false.
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.
5196
5f035c07
YQ
51972017-09-05 Yao Qi <yao.qi@linaro.org>
5198
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.
5209
0abe8a89
YQ
52102017-09-05 Yao Qi <yao.qi@linaro.org>
5211
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
5215 .xmltarget.
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.
5228
0a188386
YQ
52292017-09-05 Yao Qi <yao.qi@linaro.org>
5230
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 !=.
5236
f49ff000
YQ
52372017-09-05 Yao Qi <yao.qi@linaro.org>
5238
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.
5254
2b68ef2f
YQ
52552017-09-05 Yao Qi <yao.qi@linaro.org>
5256
5257 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5258 instead of 0.
5259
f7000548
YQ
52602017-09-05 Yao Qi <yao.qi@linaro.org>
5261
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
5274 VEC_iterate.
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.
5279
50a421ac
SM
52802017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5281
5282 * Makefile.in (.SECONDARY): Define target.
5283
23fdd69e
SM
52842017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5285
5286 * linux-low.c (linux_wait_1): Adjust.
5287 * server.c (queue_stop_reply_callback): Adjust.
5288
0a2dde4a
SDJ
52892017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5290
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.
5295
6afd337d
SM
52962017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5297
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.
5321
a160cc46
SM
53222017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5323
5324 * inferiors.c (set_inferior_target_data): Remove.
5325 * inferiors.h (set_inferior_target_data): Remove.
5326
6d580b63
YQ
53272017-08-18 Yao Qi <yao.qi@linaro.org>
5328
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.
5334
f5a29eb0
YQ
53352017-08-09 Yao Qi <yao.qi@linaro.org>
5336
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.
5348
57757c2f
YQ
53492017-08-09 Yao Qi <yao.qi@linaro.org>
5350
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.
5355
229d26fc
SM
53562017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5357
5358 * tracepoint.h (enum class fast_tpoint_collect_result): New
5359 enumeration.
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.
5373
2e1e43e1
YQ
53742017-07-10 Yao Qi <yao.qi@linaro.org>
5375
5376 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5377
adc764e7
YQ
53782017-06-29 Yao Qi <yao.qi@linaro.org>
5379
5380 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5381 Remove.
5382 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5383
a206891a
SM
53842017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5387
9a6c7d9c
SDJ
53882017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5389
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.
5399
ae3e2ccf
SM
54002017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5401
5402 * linux-low.c (linux_read_memory, linux_write_memory): Remove
5403 usage of "register" keyword.
5404
3e019bdc
SM
54052017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5406
5407 * configure: Re-generate.
5408
8465943a
SM
54092017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5410
5411 * configure: Re-generate.
5412
cf0dd6f0
SM
54132017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5414
5415 * Makefile.in (COMPILE.pre): Add "-x c++".
5416
9845682b
SDJ
54172017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
5418
5419 * fork-child.c: Conditionally include <signal.h>.
5420
aefd8b33
SDJ
54212017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5422
5423 * server.c (handle_general_set): Handle new packet
5424 "QStartupWithShell".
5425 (handle_query): Add "QStartupWithShell" to the list of supported
5426 packets.
5427 (gdbserver_usage): Add help text explaining the
5428 new "--startup-with-shell" and "--no-startup-with-shell" CLI
5429 options.
5430 (captured_main): Recognize and act upon the presence of the new
5431 CLI options.
5432
2090129c
SDJ
54332017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5434 Pedro Alves <palves@redhat.com>
5435
5436 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
5437 * configure: Regenerate.
5438 * configure.srv (srv_linux_obj): Add "fork-child.o" and
5439 "fork-inferior.o".
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"
5444 and "environ.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
5448 "fork_inferior".
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
5454 "fork_inferior".
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
5480 "create_inferior".
5481 (captured_main): Likewise. Initialize environment variable. Call
5482 "have_job_control".
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".
5501
043a4934
SDJ
55022017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5503
5504 * inferiors.c (switch_to_thread): New function.
5505
15652511
SDJ
55062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5507
5508 * Makefile.in (SFILE): Add "common/job-control.c".
5509 (OBS): Add "job-control.o".
5510
21ea5acd
SDJ
55112017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5512
5513 * Makefile: Remove "@host_makefile_frag@".
5514
e13cb306
PA
55152017-05-05 Pedro Alves <palves@redhat.com>
5516
5517 * configure: Regenerate.
5518
c94fee56
SDJ
55192017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5520
5521 * configure: Regenerate.
5522
a0ff9e1a
SM
55232017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5524
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):
5529 Likewise.
5530 * linux-low.h (install_software_single_step_breakpoints):
5531 Likewise.
5532
be628ab8
SDJ
55332017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5534
5535 * remote-utils.c: Include "gdb_termios.h" instead of
5536 "terminal.h".
5537 * terminal.h: Delete file.
5538
7c5ded6a
SDJ
55392017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5540
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.
5547
436252de
SM
55482017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5549
5550 * server.c (handle_v_cont): Initialize thread_resume::thread
5551 with null_ptid.
5552
9bf2a700
PA
55532017-04-05 Pedro Alves <palves@redhat.com>
5554
5555 * configure: Regenerate.
5556
a121b7c1
PA
55572017-04-05 Pedro Alves <palves@redhat.com>
5558
5559 * gdbreplay.c (sync_error): Constify.
5560 * linux-x86-low.c (push_opcode): Constify.
5561
21c8a587
PA
55622017-04-05 Pedro Alves <palves@redhat.com>
5563
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.
5567
fb32b4f7
PA
55682017-04-05 Pedro Alves <palves@redhat.com>
5569
e79be6e5
SM
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.
fb32b4f7 5573
65dd1e59
SM
55742017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5575
5576 * Makefile.in (clean): Clear .deps.
5577
8fa5b777
SM
55782017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5579
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.
5589
a12e714b
MF
55902017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5591
5592 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5593 (xtensa_fill_gregset): Call collect_register_by_name for
5594 threadptr register.
5595 (xtensa_store_gregset): Call supply_register_by_name for
5596 threadptr register.
5597
1a09b50a
MF
55982017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5599
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.
5604
1a01e7c6
SM
56052017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5606
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.
5614
36bc18a8
SM
56152017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5616
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.
5623
a8ebe3d5
SM
56242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5625
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.
5679
50cfacb7
SM
56802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5681
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.
5687
c5a22423
SM
56882017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5689
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.
5706
6bda016b
SM
57072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5708
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.
5734
21122961
SM
57352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * Makefile.in (%.o: ../target/%.c): New rule.
5738 (waitstatus.o: ../target/waitstatus.c): Remove.
5739
c362e621
SM
57402017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5741
5742 * Makefile.in
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.
5756 (i386.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.
5773 (reg-cf.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.
5813 (reg-sh.c): Remove.
5814 (reg-sparc64.c): Remove.
5815 (reg-spu.c): Remove.
5816 (amd64.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.
5828 (x32.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.
5837
1672e0d9
SDJ
58382017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5839
5840 * Makefile.in (SFILES): Add "common/environ.c".
5841 (OBJS): Add "common/environ.h".
5842
239b6d10
WT
58432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5844
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.
5849
694b382c
AT
58502017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5851
5852 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5853 target_read_memory.
5854 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5855 (get_next_pcs_syscall_next_pc): Likewise.
5856
7dc53023
LM
58572016-12-23 Luis Machado <lgustavo@codesourcery.com>
5858
5859 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5860 * nto-x86-low.c: Likewise.
5861
ad02e4fe
SM
58622016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * Makefile.in: Include disable-implicit-rules.mk.
5865
dcb07cfa
PA
58662016-11-23 Pedro Alves <palves@redhat.com>
5867
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
5873 gettimeofday.
5874
8629c02c
SM
58752016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * Makefile.in: Fix whitespace formatting.
5878
b593ecca
SM
58792016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * Makefile.in (SFILES, OBS): Flatten list and order
5882 alphabetically.
5883
9986ba08
PA
58842016-11-23 Pedro Alves <palves@redhat.com>
5885
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):
5889 Use warning.
5890
4eefa7bc
PA
58912016-11-23 Pedro Alves <palves@redhat.com>
5892
5893 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5894 output.
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
5900 output.
5901
5443506e
SM
59022016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * Makefile.in (.c.o): Replace rule with ...
5905 (%.o: %.c): ... this one.
5906
3b165252
SM
59072016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5908
5909 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5910 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5911 make.
5912 * configure.ac: Remove checks for the make program.
5913 * configure: Re-generate.
5914
0bcda685
PA
59152016-10-28 Pedro Alves <palves@redhat.com>
5916
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.
5923
c3805894
YQ
59242016-10-27 Yao Qi <yao.qi@linaro.org>
5925
5926 * linux-low.c (linux_supports_range_stepping): Return true if
5927 can_software_single_step return true.
5928
89342618
YQ
59292016-10-27 Yao Qi <yao.qi@linaro.org>
5930
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.
5935
e3652c84
YQ
59362016-10-27 Yao Qi <yao.qi@linaro.org>
5937
5938 * linux-low.c (linux_wait_1): If single-step breakpoints are
5939 inserted, remove them.
5940
5a04c4cf
PA
59412016-10-26 Pedro Alves <palves@redhat.com>
5942
5943 * linux-low.c (handle_extended_wait): Link parent/child fork
5944 threads.
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):
5950 New functions.
5951 (handle_v_requests) <vCont>: Don't call require_running.
5952 * server.h (in_queued_stop_replies): New declaration.
5953
cb93dc7f
YQ
59542016-10-24 Yao Qi <yao.qi@linaro.org>
5955
5956 PR server/20733
5957 * linux-aarch64-low.c (append_insns): Cast the return value to
5958 'uint32_t *'.
5959
a1078bea
YQ
59602016-10-10 Yao Qi <yao.qi@linaro.org>
5961
5962 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5963
1fb77080
SDJ
59642016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5965
5966 * target.c (target_supports_multi_process): New function, moved
5967 from...
5968 * target.h (target_supports_multi_process): ... here. Remove
5969 macro.
5970
39b5a3b9
TT
59712016-10-05 Tom Tromey <tom@tromey.com>
5972
5973 PR remote/20655:
5974 * tracepoint.c (handle_tracepoint_bkpts): Check
5975 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5976
c1d0b70a
YQ
59772016-10-05 Yao Qi <yao.qi@linaro.org>
5978
5979 * configure.srv: Update the path of arm-*.xml files.
5980
0a69eedb
YQ
59812016-10-05 Terry Guo <terry.guo@arm.com>
5982 Yao Qi <yao.qi@linaro.org>
5983
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.
5990
17e16485
YQ
59912016-09-30 Yao Qi <yao.qi@linaro.org>
5992
5993 PR gdbserver/20627
5994 * target.c (target_stop_and_wait): Don't call
5995 target_continue_no_signal, use resume_stop instead.
5996
edeeb602
YQ
59972016-09-26 Yao Qi <yao.qi@linaro.org>
5998
5999 * linux-low.c (linux_wait_1): Call debug_exit.
6000
503b1c39
PA
60012016-09-23 Pedro Alves <palves@redhat.com>
6002
6003 * Makefile.in (SFILES): Add common/new-op.c.
6004 (OBS): Add common/new-op.o.
6005 (new-op.o): New rule.
6006
74172ecf
SM
60072016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * .gitinore: Ignore more files.
6010
fc6cda2e
YQ
60112016-09-21 Yao Qi <yao.qi@linaro.org>
6012
6013 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6014 23.
6015
bc1e6c81
SDJ
60162016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6017
6018 * server.c (start_inferior): Call target_mourn_inferior instead of
6019 mourn_inferior; pass ptid_t argument to it.
6020 (resume): Likewise.
6021 (handle_target_event): Likewise.
6022 * target.c (target_mourn_inferior): New function.
6023 * target.h (mourn_inferior): Delete macro.
6024
0e00e962
AA
60252016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6026
6027 * linux-low.c (lwp_is_stepping): New function.
6028
1d8cb77d
CL
60292016-09-06 Carl Love <cel@us.ibm.com>
6030
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.
6034
7313bced
CL
60352016-09-06 Carl Love <cel@us.ibm.com>
6036
6037 * server.c (start_inferior): Do not call
6038 function target_post_create_inferior () if the
6039 inferior process has already exited.
6040
cf6de44d
PA
60412016-09-05 Pedro Alves <palves@redhat.com>
6042
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.
6049
c1da6748
AT
60502016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6051
6052 PR gdb/19495
6053 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6054 call writing data to own_buf.
6055
f2b9e3df
SDJ
60562016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6057
6058 * target.c (mywait): Call target_wait instead of
6059 the_target->wait.
6060 (target_wait): New function.
6061
049a8570
SDJ
60622016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6063
6064 * server.c (start_inferior): New variable 'ptid'. Replace calls
6065 to the_target->resume by target_continue{,_no_signal}, depending
6066 on the case.
6067 * target.c (target_stop_and_wait): Call target_continue_no_signal
6068 instead of the_target->resume.
6069 (target_continue): New function.
6070
3aa5cfa0
AT
60712016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6072
6073 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6074
754653a7
AZ
60752016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6076
6077 PR server/20491
6078 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6079 ps_prochandle.
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.
6089
ed036b40
PA
60902016-08-19 Pedro Alves <palves@redhat.com>
6091
6092 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6093
c8ef42ee
PA
60942016-08-19 Pedro Alves <palves@redhat.com>
6095
6096 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6097 comment. Use memcpy instead of casting through unsigned long.
6098
9c235a72
PA
60992016-08-19 Pedro Alves <palves@redhat.com>
6100
6101 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6102 allocating around 0x80000000.
6103
201506da
PA
61042016-08-19 Pedro Alves <palves@redhat.com>
6105
6106 PR gdb/20415
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
6113 descriptions.
6114 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6115 descriptions.
6116 * configure: Regenerate.
6117
f348d89a
PA
61182016-08-09 Pedro Alves <palves@redhat.com>
6119
6120 PR gdb/18653
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.
6130
1baf5149
PA
61312016-08-05 Pedro Alves <palves@redhat.com>
6132
6133 * configure: Regenerate.
6134
fcd4a73d
YQ
61352016-08-04 Yao Qi <yao.qi@linaro.org>
6136
6137 * linux-low.c (regsets_fetch_inferior_registers): Check
6138 errno is ESRCH or not.
6139
979659d0
YQ
61402016-08-02 Yao Qi <yao.qi@linaro.org>
6141
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.
6147
6598661d
PA
61482016-07-26 Pedro Alves <palves@redhat.com>
6149
6150 PR server/20414
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.
6154
9cf12d57
PA
61552016-07-26 Pedro Alves <palves@redhat.com>
6156
6157 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6158 to 'ptrace'.
6159
305450ed
TT
61602016-07-21 Tom Tromey <tom@tromey.com>
6161
6162 * configure: Rebuild.
6163
2583da7c
YQ
61642016-07-21 Yao Qi <yao.qi@linaro.org>
6165
6166 * mem-break.c (find_gdb_breakpoint): Cast bp to
6167 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6168
21536b36
YQ
61692016-07-21 Yao Qi <yao.qi@linaro.org>
6170
6171 * server.c (handle_v_requests): Support s and S actions
6172 if target_supports_software_single_step return true.
6173
8901d193
YQ
61742016-07-21 Yao Qi <yao.qi@linaro.org>
6175
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,
6179 and unstop them.
6180 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6181 breakpoints or not.
6182 (proceed_one_lwp): If resume request is resume_step, install
6183 reinsert breakpoints and call maybe_hw_step.
6184
0e9a339e
YQ
61852016-07-21 Yao Qi <yao.qi@linaro.org>
6186
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.
6191
4281b351
YQ
61922016-07-21 Yao Qi <yao.qi@linaro.org>
6193
6194 * linux-low.c (linux_resume_one_thread): Call
6195 enqueue_pending_signal.
6196
984a2c04
YQ
61972016-07-21 Yao Qi <yao.qi@linaro.org>
6198
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
6204 thread.
6205
bec903c9
YQ
62062016-07-21 Yao Qi <yao.qi@linaro.org>
6207
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.
6212 Callers updated.
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.
6221
63c40ec7
YQ
62222016-07-21 Yao Qi <yao.qi@linaro.org>
6223
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
6228 updated.
6229 * mem-break.h (clone_all_breakpoints): Update declaration.
6230
9aa76cd0
YQ
62312016-07-21 Yao Qi <yao.qi@linaro.org>
6232
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 *'.
6261
811f8301
YQ
62622016-07-21 Yao Qi <yao.qi@linaro.org>
6263
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.
6269
b1c51e36
CLT
62702016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6271
6272 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6273 to buf parameter.
6274 (nios2_store_gregset): Likewise.
6275
ced2dffb
PA
62762016-07-01 Pedro Alves <palves@redhat.com>
6277 Antoine Tremblay <antoine.tremblay@ericsson.com>
6278
6279 * linux-low.c: Change interface to take the target lwp_info
6280 pointer directly and return void. Handle detaching from a zombie
6281 thread.
6282 (linux_detach_lwp_callback): New function.
6283 (linux_detach): Detach from the leader thread after detaching from
6284 the clone threads.
6285
2ac09a5b
YQ
62862016-06-28 Yao Qi <yao.qi@linaro.org>
6287
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.
6295
79e7fd4f
YQ
62962016-06-28 Yao Qi <yao.qi@linaro.org>
6297
6298 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6299 (the_low_target): Install arm_get_syscall_trapinfo.
6300
061fc021
YQ
63012016-06-28 Yao Qi <yao.qi@linaro.org>
6302
6303 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6304 function.
6305 (the_low_target): Install aarch64_get_syscall_trapinfo.
6306
4cc32bec
YQ
63072016-06-28 Yao Qi <yao.qi@linaro.org>
6308
6309 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6310 Callers updated.
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
6314 sysret.
6315
782c1122
AA
63162016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6317
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.
6332
2e7b624b
YQ
63332016-06-17 Yao Qi <yao.qi@linaro.org>
6334
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.
6343
8a81c5d7
YQ
63442016-06-17 Yao Qi <yao.qi@linaro.org>
6345
6346 * linux-low.c (handle_extended_wait): If the parent is doing
6347 step-over, remove the reinsert breakpoints from the forked child.
6348
f50bf8e5
YQ
63492016-06-17 Yao Qi <yao.qi@linaro.org>
6350
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.
6354
8376a3cb
YQ
63552016-06-17 Yao Qi <yao.qi@linaro.org>
6356
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.
6361
f79b145d
YQ
63622016-06-17 Yao Qi <yao.qi@linaro.org>
6363
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.
6371
0ae534d2
JT
63722016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6373
6374 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6375
fcdad592
YQ
63762016-05-17 Yao Qi <yao.qi@linaro.org>
6377
6378 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6379 instead of find_inferior.
6380
9e784964
YQ
63812016-05-05 Yao Qi <yao.qi@linaro.org>
6382
6383 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6384 Initialize res to zero.
6385
cf2ebb6e
YQ
63862016-05-05 Yao Qi <yao.qi@linaro.org>
6387
6388 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6389 to uint32_t.
6390
c1aebf87
UW
63912016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6392
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.
6396
35fd2deb 63972016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 6398 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
6399
6400 * tracepoint.c (write_inferior_int8): New function.
6401 (cmd_qtenable_disable): Write enable flag using
6402 write_inferior_int8.
6403
484b3c32
YQ
64042016-04-25 Yao Qi <yao.qi@linaro.org>
6405
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.
6409
85ba7d86
YQ
64102016-04-25 Yao Qi <yao.qi@linaro.org>
6411
6412 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
6413 return instead of error.
6414
3539aa13
YQ
64152016-04-22 Yao Qi <yao.qi@linaro.org>
6416
6417 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
6418 to 23.
6419
5b061e98
YQ
64202016-04-22 Yao Qi <yao.qi@linaro.org>
6421
6422 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
6423 signal when stepping over breakpoint with software single
6424 step.
6425
3451269c
PA
64262016-04-21 Pedro Alves <palves@redhat.com>
6427
6428 * linux-s390-low.c (s390_collect_ptrace_register)
6429 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
6430 add casts.
6431 (s390_check_regset): Use void * instead of gdb_byte *.
6432
a2358508
PA
64332016-04-20 Pedro Alves <palves@redhat.com>
6434
6435 * configure: Renegerate.
6436
6885166d
YQ
64372016-04-20 Yao Qi <yao.qi@linaro.org>
6438
6439 * linux-aarch32-low.c: Include "arch/arm-linux.h".
6440 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
6441 number 16.
6442 (arm_store_gregset): Likewise.
6443
2b863f51
WT
64442016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6445
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
6475 declarations.
6476
9b30624b
PA
64772016-04-18 Pedro Alves <palves@redhat.com>
6478
6479 * configure: Regenerate.
6480
45e3745e
AT
64812016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
6482
6483 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
6484 (aarch64_emit_sub): Likewise.
6485
2afc13ff
PA
64862016-04-12 Pedro Alves <palves@redhat.com>
6487
6488 * utils.c (prepare_to_throw_exception): Delete.
6489
6e774b13
SM
64902016-04-05 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6493
4dca19f8
MK
64942016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6495
6496 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6497
d0a9981f
MK
64982016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6499
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.
6503
252db07e
MK
65042016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6505
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
6511 char *.
6512
14e2b6d9
MK
65132016-03-31 Wei-cheng Wang <cole945@gmail.com>
6514 Marcin Kościelnicki <koriakin@0x04.net>
6515
6516 PR/17221
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.
6600
a2174ba4
MK
66012016-03-31 Wei-cheng Wang <cole945@gmail.com>
6602 Marcin Kościelnicki <koriakin@0x04.net>
6603
6604 PR/17221
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
6609 includes.
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.
6653 (GEN_B): New macro.
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
6668 tdescs.
6669 * linux-ppc-tdesc.h: New file.
6670
a13c4696
MK
66712016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6672
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.
6684
1cda1512
MK
66852016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6686
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.
6713
72fb5488
SM
67142016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6715
6716 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6717
28170b88
MK
67182016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6719
6720 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6721 packets.
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.
6727
f39e8743
MK
67282016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6729
6730 PR 18377
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.
6808
abd9baf9
MK
68092016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6810
6811 PR 18377
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.
6869
a4105d04
MK
68702016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6871
6872 * linux-s390-low.c (s390_supports_tracepoints): New function.
6873 (struct linux_target_ops): Fill supports_tracepoints hook.
6874
35ac8b3e
YQ
68752016-03-18 Yao Qi <yao.qi@linaro.org>
6876
6877 * linux-low.c (lwp_signal_can_be_delivered): New function.
6878 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6879
94610ec4
YQ
68802016-03-18 Yao Qi <yao.qi@linaro.org>
6881
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.
6886
80aea927
YQ
68872016-03-18 Yao Qi <yao.qi@linaro.org>
6888
6889 * linux-low.c (linux_low_filter_event): Remove redundant
6890 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6891
b04fd3be
MK
68922016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6893
6894 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6895 (struct linux_target_ops): Wire in the above.
6896
c40c8d4b
YQ
68972016-03-03 Yao Qi <yao.qi@linaro.org>
6898
6899 * linux-low.c: Update comments to start_step_over.
6900
0f8288ae
YQ
69012016-03-03 Yao Qi <yao.qi@linaro.org>
6902
6903 PR server/19736
6904 * linux-low.c (handle_extended_wait): Set child suspended
6905 if event_lwp->bp_reinsert isn't zero.
6906
fdbd04a8
YQ
69072016-03-02 Yao Qi <yao.qi@linaro.org>
6908
6909 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6910 enqueue_pending_signal.
6911
6896a8fa
MK
69122016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6913
6914 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6915 is actually loaded.
6916
ab503087
MK
69172016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6918
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.
6933
ae91f625
MK
69342016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6935
6936 PR gdb/13808
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.
6970 (gdb_probe): Ditto.
6971 * tracepoint.h (get_ipa_tdesc): New prototype.
6972 (ipa_tdesc): Remove.
6973
e7ad2f14
PA
69742016-02-24 Pedro Alves <palves@redhat.com>
6975
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.
6983 Update comments.
6984 (linux_wait_1): Update comments.
6985
657f9cde
WW
69862016-02-24 Wei-cheng Wang <cole945@gmail.com>
6987
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.
6992
b00b61e1
MK
69932016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6994
6995 * linux-s390-low.c (s390_supports_z_point_type): New function.
6996 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6997
553cb527
YQ
69982016-02-16 Yao Qi <yao.qi@linaro.org>
6999
7000 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7001 PC. Get pc from regcache_read_pc.
7002
a5652c21
YQ
70032016-02-12 Yao Qi <yao.qi@linaro.org>
7004
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.
7008
ed443b61
YQ
70092016-02-12 Yao Qi <yao.qi@linaro.org>
7010
7011 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7012 arm_linux_get_next_pcs_fixup.
7013
020ecd38
MK
70142016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7015
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.
7025
7cae9051
WW
70262016-02-11 Wei-cheng Wang <cole945@gmail.com>
7027 Marcin Kościelnicki <koriakin@0x04.net>
7028
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.
7040
9f6a71b4
YQ
70412016-02-10 Yao Qi <yao.qi@linaro.org>
7042
7043 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7044
1e94266c
SM
70452016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7048 to AC_OUTPUT.
7049 * configure: Regenerate.
7050
8adce034
SM
70512016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7052
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>:
7058 Likewise.
7059 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7060
93813b37
WT
70612016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7062
7063 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7064 to srv_tgtobj.
7065 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7066 to srv_tgtobj.
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.
7077
8424cc97
SM
70782016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7079
7080 * server.c (skip_to_semicolon): Remove.
7081 (process_point_options): Use strchrnul instead of
7082 skip_to_semicolon.
7083
4d18591b
YQ
70842016-01-26 Yao Qi <yao.qi@linaro.org>
7085
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
7090 argument pc.
7091
d8020970
YQ
70922016-01-26 Yao Qi <yao.qi@linaro.org>
7093
7094 * linux-low.c (install_software_single_step_breakpoints): Call
7095 regcache_read_pc instead of get_pc.
7096
8b207339
YQ
70972016-01-26 Yao Qi <yao.qi@linaro.org>
7098
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
7103 instead.
7104 (disable_async_io): Don't ignore SIGIO. Block it instead.
7105 (initialize_async_io): Install SIGIO handler. Don't call
7106 unblock_async_io.
7107
18879fef
YQ
71082016-01-26 Yao Qi <yao.qi@linaro.org>
7109
7110 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7111 first character is '\003', call *the_target->request_interrupt.
7112
a0f8e08a
YQ
71132016-01-25 Yao Qi <yao.qi@linaro.org>
7114
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.
7119
cc5fd9ab
MK
71202016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7121
7122 * gdb.trace/pending.exp: Fix expected message on continue.
7123
99e8eb11
MK
71242016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7125
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)
7128 != sizeof (void *).
7129
a994041d
PA
71302016-01-21 Pedro Alves <palves@redhat.com>
7131
7132 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7133 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7134 * configure: Regenerate.
7135
f7a6a40d
YQ
71362016-01-21 Yao Qi <yao.qi@linaro.org>
7137
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.
7142
6f69e520
YQ
71432016-01-18 Yao Qi <yao.qi@linaro.org>
7144
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):
7148 Declare.
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
7152 sparc_get_pc.
7153 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7154 (the_low_target): Use linux_get_pc_64bit and
7155 linux_set_pc_64bit.
7156
276d4552
YQ
71572016-01-18 Yao Qi <yao.qi@linaro.org>
7158
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
7162 linux_set_pc_32bit.
7163 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7164 (the_low_target): Use linux_get_pc_32bit and
7165 linux_set_pc_32bit.
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
7169 linux_set_pc_32bit.
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
7173 linux_set_pc_32bit.
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
7179 linux_set_pc_32bit.
7180 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7181 (the_low_target): Use linux_get_pc_32bit and
7182 linux_set_pc_32bit.
7183 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7184 (the_low_target): Use linux_get_pc_32bit and
7185 linux_set_pc_32bit.
7186 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7187 (the_low_target): Use linux_get_pc_32bit and
7188 linux_set_pc_32bit.
7189 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7190 (the_low_target): Use linux_get_pc_32bit and
7191 linux_set_pc_32bit.
7192
eb0edac8
GB
71932016-01-18 Gary Benson <gbenson@redhat.com>
7194
7195 * configure.ac (AC_FUNC_FORK): New check.
7196 * config.in: Regenerate.
7197 * configure: Likewise.
7198
1b451dda
YQ
71992016-01-14 Yao Qi <yao.qi@linaro.org>
7200
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.
7205
82075af2
JS
72062016-01-12 Josh Stone <jistone@redhat.com>
7207 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7208
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.
7235
8f13a3ce
MF
72362016-01-12 Mike Frysinger <vapier@gentoo.org>
7237
7238 * acinclude.m4: Include new ../warning.m4 file.
7239 * configure: Regenerated.
7240 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7241
5b3da067
MF
72422016-01-12 Mike Frysinger <vapier@gentoo.org>
7243
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.
7254
bc504a31
PA
72552016-01-12 Pedro Alves <palves@redhat.com>
7256
7257 Remove use of the registered trademark symbol throughout.
7258
5a0dd67a
YQ
72592016-01-08 Yao Qi <yao.qi@linaro.org>
7260
7261 * remote-utils.c (getpkt): If c is '\003', call target hook
7262 request_interrupt.
7263
b2ca446f
YQ
72642016-01-06 Yao Qi <yao.qi@linaro.org>
7265
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.
7277
edd88788
JB
72782016-01-01 Joel Brobecker <brobecker@adacore.com>
7279
7280 * gdbreplay.c (gdbreplay_version): Change copyright year in
7281 version message.
7282 * server.c (gdbserver_version): Likewise.
7283
65da7f14
PP
72842015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7285
7286 * server.c (crc32_table): Delete.
7287 (crc32): Use libiberty's xcrc32 function.
7288
4abd5ed2
JB
72892015-12-22 Joel Brobecker <brobecker@adacore.com>
7290
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.
7294
0e50fe5c
JB
72952015-12-22 Joel Brobecker <brobecker@adacore.com>
7296
7297 * target.c (thread_search_callback): Add check that
7298 the thread_stopped target callback is not NULL before
7299 calling it.
7300
35adc03f
YQ
73012015-12-21 Yao Qi <yao.qi@linaro.org>
7302
7303 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7304 arm breakpoint.
7305
bd2b2909
AT
73062015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7307
7308 * server.c (handle_query): Call target_supports_software_single_step.
7309
7fe5e27e
AT
73102015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7311
7312 * linux-low.c (single_step): New function.
7313 (linux_resume_one_lwp_throw): Call single_step.
7314 (start_step_over): Likewise.
7315
d9311bfa
AT
73162015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7317
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,
7323 arm-linux.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>:
7348 Initialize.
7349 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7350 * server.h: Include gdb_vecs.h.
7351
68ce2059
AT
73522015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7353
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
7358 REG_UNAVAILABLE.
7359 (regcache_raw_read_unsigned): New function.
7360 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7361 register_status enum.
7362
fa5308bd
AT
73632015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7364
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
7376 get_next_pcs.
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.
7380
4a6ed09b
PA
73812015-12-17 Pedro Alves <palves@redhat.com>
7382
7383 * linux-low.c (linux_kill_one_lwp): Remove references to
7384 LinuxThreads.
7385 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7386 to 'kill'.
7387 (linux_init_signals): Delete.
7388 (initialize_low): Adjust.
7389 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7390
7544db95
PA
73912015-12-16 Pedro Alves <palves@redhat.com>
7392
7393 * configure.ac (compiler warning flags): When testing a
7394 -Wno-foo option, check whether -Wfoo works instead.
7395 * configure: Regenerate.
7396
8020350c
DB
73972015-12-11 Don Breazeal <donb@codesourcery.com>
7398
7399 * server.c (process_serial_event): Don't exit from gdbserver
7400 in remote mode if there are still active inferiors.
7401
db91f502
YQ
74022015-12-11 Yao Qi <yao.qi@linaro.org>
7403
7404 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
7405 arm_breakpoint_at if the process is 32-bit.
7406
b37a6290
YQ
74072015-12-11 Yao Qi <yao.qi@linaro.org>
7408
7409 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
7410 arm breakpoint.
7411
17b1509a
YQ
74122015-12-07 Yao Qi <yao.qi@linaro.org>
7413
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.
7448
7449 Revert:
7450 2015-08-04 Yao Qi <yao.qi@linaro.org>
7451
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.
7456
ece66d65
JS
74572015-12-04 Josh Stone <jistone@redhat.com>
7458
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.
7474
e58c48b4
AT
74752015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
7476
7477 * linux-arm-low.c: Remove duplicate arch/arm.h include.
7478
fbec8956
AT
74792015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7480
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.
7493
9b4c5f87
AT
74942015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7495
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
7509 handling.
7510 (remove_thread_event_breakpoints): Remove function.
7511 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7512
7d00775e
AT
75132015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7514
7515 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7516 New function.
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>:
7522 Initialize.
7523 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7524 New function.
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>:
7544 Initialize.
7545 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7546 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7547 Initialize.
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):
7551 New function.
7552 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7553 * target.h (struct target_ops): <supports_software_single_step>:
7554 New field.
7555 (target_supports_software_single_step): New macro.
7556
2d97cd35
AT
75572015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7558
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.
7562
769ef81f
AT
75632015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7564
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>:
7569 Initialize.
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.
7577
1bebeeca
PA
75782015-11-30 Pedro Alves <palves@redhat.com>
7579
7580 * linux-low.c (linux_resume): Wake up the event loop before
7581 returning.
7582
a67a9fae
PA
75832015-11-30 Pedro Alves <palves@redhat.com>
7584
7585 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7586 check.
7587 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7588 to -1.
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.
7595
f2faf941
PA
75962015-11-30 Pedro Alves <palves@redhat.com>
7597
7598 PR 14618
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.
7611
a681f9c9
PA
76122015-11-30 Pedro Alves <palves@redhat.com>
7613
7614 * linux-low.c (thread_still_has_status_pending_p): Don't check
7615 vCont;t here.
7616 (lwp_resumed): New function.
7617 (status_pending_p_callback): Return early if the LWP is not
7618 supposed to be resumed.
7619
65706a29
PA
76202015-11-30 Pedro Alves <palves@redhat.com>
7621
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.
7640
56cf4bed
PA
76412015-11-30 Pedro Alves <palves@redhat.com>
7642
7643 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7644 the thread's last_resume_kind was resume_stop.
7645
500c1d85
PA
76462015-11-30 Pedro Alves <palves@redhat.com>
7647
7648 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7649 before returning.
7650
de979965
PA
76512015-11-30 Pedro Alves <palves@redhat.com>
7652
7653 * server.c (handle_v_requests): Handle vCtrlC.
7654
34c65914
PA
76552015-11-30 Pedro Alves <palves@redhat.com>
7656
7657 * gdbthread.h (find_any_thread_of_pid): Declare.
7658 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7659 functions.
7660 * server.c (handle_query): If current_thread is NULL, look for
7661 another thread of the selected process.
7662
79efa585 76632015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 7664 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
7665
7666 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7667 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7668 name in reply.
7669 * target.h (struct target_ops) <thread_name>: New field.
7670 (target_thread_name): New macro.
7671
80d82c19
JB
76722015-11-23 Joel Brobecker <brobecker@adacore.com>
7673
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.
7681
64da5dd5
JB
76822015-11-23 Joel Brobecker <brobecker@adacore.com>
7683
7684 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7685 and Elf64_auxv_t if the target is Android.
7686
37ce4055
DE
76872015-11-22 Doug Evans <xdje42@gmail.com>
7688
7689 * target.h: #include <sys/types.h>.
7690
06e03fff
PA
76912015-11-19 Pedro Alves <palves@redhat.com>
7692
7693 * linux-low.c (linux_process_qsupported): Change prototype.
7694 Adjust.
7695 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7696 Change prototype.
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
7701 features.
7702 * target.h (struct target_ops) <process_qsupported>: Change
7703 prototype.
7704 (target_process_qsupported): Adjust.
7705
9a084706
PA
77062015-11-19 Pedro Alves <palves@redhat.com>
7707
7708 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7709 mode.
7710 * configure: Regenerate.
7711
dad44a1f
PA
77122015-11-19 Pedro Alves <palves@redhat.com>
7713
7714 * configure: Regenerate.
7715
231c0592
YQ
77162015-11-19 Yao Qi <yao.qi@linaro.org>
7717
7718 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7719 type to uint32_t.
7720
6c1c9a8b
YQ
77212015-11-19 Yao Qi <yao.qi@linaro.org>
7722
7723 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7724 (struct aarch64_operand): Move enum out.
7725
9caa3311
YQ
77262015-11-19 Yao Qi <yao.qi@linaro.org>
7727
7728 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7729 struct user_fpsimd_state *.
7730 (aarch64_store_fpregset): Likewise.
7731
6a69a054
YQ
77322015-11-19 Yao Qi <yao.qi@linaro.org>
7733
7734 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7735 struct user_pt_regs *.
7736 (aarch64_store_gregset): Likewise.
7737
1798301e
PA
77382015-11-18 Pedro Alves <palves@redhat.com>
7739
7740 * Makefile.in (all_object_files): Add $IPA_OBJS.
7741
ce7715e2
PA
77422015-11-17 Pedro Alves <palves@redhat.com>
7743
7744 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7745 GDB_SIGNAL_0 and gdb_signal_to_string.
7746
c0879059
PA
77472015-11-17 Pedro Alves <palves@redhat.com>
7748
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.
7754
1996e237
SM
77552015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7756
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.
7761
cbec665b
SM
77622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7763
7764 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7765 priv.
7766
eb3e3c67
SM
77672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7768
7769 * linux-mips-low.c (mips_linux_new_thread): Change type of
7770 watch_type to enum target_hw_bp_type.
7771
171de4b8
SM
77722015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7773
7774 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7775 Change return type to arm_hwbp_type.
7776
04248ead
SM
77772015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7778
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.
7783
04b3479c
SM
77842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7785
7786 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7787
2bc84e8a
SM
77882015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7789
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.
7797
e6c5bb05
SM
77982015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7799
7800 * linux-ppc-low.c (ppc_usrregs_info): Remove
7801 forward-declaration.
7802 (ppc_arch_setup): Move lower in file.
7803
7ea45d72
SM
78042015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7805
7806 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7807 (ps_pdwrite): Likewise.
7808
69291610
HW
78092015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7810
7811 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7812 to after assert checks.
7813
b42945fd
SM
78142015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7815
7816 * proc-service.c (ps_pdread): Add/adjust casts.
7817 (ps_pdwrite): Add/adjust casts.
7818
d6f85c84
SM
78192015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7820
7821 * server.c (handle_search_memory_1): Cast return value of
7822 memmem.
7823
f98cd059
SM
78242015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7825
7826 * server.c (write_qxfer_response): Change type of data to
7827 gdb_byte *.
7828
d2412fa5
PA
78292015-10-29 Pedro Alves <palves@redhat.com>
7830
7831 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7832
c17414a2
PA
78332015-10-29 Pedro Alves <palves@redhat.com>
7834
7835 * tracepoint.c (clear_installed_tracepoints): Add casts.
7836
e053fbc4
PA
78372015-10-29 Pedro Alves <palves@redhat.com>
7838
7839 * server.c (handle_v_cont, process_serial_event): Add enum
7840 gdb_signal casts to signal parsing code.
7841
add67df8
PA
78422015-10-29 Pedro Alves <palves@redhat.com>
7843
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.
7859
50bc912a
PA
78602015-10-29 Pedro Alves <palves@redhat.com>
7861
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.
7877
682b2546
DE
78782015-10-26 Doug Evans <dje@google.com>
7879
7880 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7881
963843d4
DE
78822015-10-26 Doug Evans <dje@google.com>
7883
7884 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7885
d41401ac
DE
78862015-10-26 Doug Evans <dje@google.com>
7887
7888 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7889 for debug_printf.
7890 (attach_thread, find_new_threads_callback): Ditto.
7891
3db28855
AT
78922015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7893
7894 * mem-break.h (set_breakpoint_data): Remove.
7895
fb78e89c
AT
78962015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7897
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.
7907
2e6ee069
AT
79082015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7909
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.
7914
1652a986
AT
79152015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7916
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.
7920
abeead09
AT
79212015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7922
7923 * linux-arm-low.c (arm_supports_z_point_type): Add software
7924 breakpoint support.
7925
b0b4b501
AT
79262015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7927
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.
7931
8689682c
AT
79322015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7933
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.
7940
27165294
AT
79412015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7942
7943 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7944 removal.
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.
7973
dd373349
AT
79742015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7975
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>:
8006 New field.
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.
8064
4cd98a19
AT
80652015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8066
8067 * linux-cris-low.c (cris_get_pc): Remove void arg.
8068
774ee6d2
AR
80692015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8070
8071 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8072 variable name.
8073
833dcd29
AR
80742015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8075
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.
8080
8d689ee5
YQ
80812015-10-15 Yao Qi <yao.qi@linaro.org>
8082
8083 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8084 if it is 3.
8085 (aarch64_remove_point): Likewise.
8086 * regcache.c (regcache_register_size): New function.
8087
1c2e1515
YQ
80882015-10-12 Yao Qi <yao.qi@linaro.org>
8089
8090 * linux-aarch64-low.c: Update all callers as emit_load_store
8091 is renamed to aarch64_emit_load_store.
8092
e1c587c3
YQ
80932015-10-12 Yao Qi <yao.qi@linaro.org>
8094
8095 * linux-aarch64-low.c: Update all callers of function renaming
8096 from emit_insn to aarch64_emit_insn.
8097
b6542f81
YQ
80982015-10-12 Yao Qi <yao.qi@linaro.org>
8099
8100 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8101 arch/aarch64-insn.h.
8102 (struct aarch64_memory_operand): Likewise.
8103 (ENCODE): 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.
8109
246994ce
YQ
81102015-10-12 Yao Qi <yao.qi@linaro.org>
8111
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.
8117
0badd99f
YQ
81182015-10-12 Yao Qi <yao.qi@linaro.org>
8119
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.
8130 (visitor): New.
8131 (aarch64_relocate_instruction): Use visitor.
8132
dfaffe9d
YQ
81332015-10-12 Yao Qi <yao.qi@linaro.org>
8134
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.
8139
70b439f0
YQ
81402015-10-12 Yao Qi <yao.qi@linaro.org>
8141
8142 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8143 argument insn. Remove local variable insn. Don't call
8144 target_read_uint32.
8145 (aarch64_install_fast_tracepoint_jump_pad): Call
8146 target_read_uint32.
8147
7781c06f
YQ
81482015-09-30 Yao Qi <yao.qi@linaro.org>
8149
8150 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8151 (emit_load_store_pair): Likewise.
8152
9a3c8263
SM
81532015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8154
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.
8170
224c3ddb
SM
81712015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8172
8173 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8174 assignment.
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.
8218
afbe19f8
PL
82192015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8220
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>,
8224 <NOP>: New.
8225 (enum aarch64_condition_codes): New enum.
8226 (w0): New static global.
8227 (fp): Likewise.
8228 (lr): Likewise.
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.
8305
bb903df0
PL
83062015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8307
8308 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8309 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8310 aarch64-ipa.o.
8311 * linux-aarch64-ipa.c: New file.
8312 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8313 and endian.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.
8321 (x1): Likewise.
8322 (x2): Likewise.
8323 (x3): Likewise.
8324 (x4): Likewise.
8325 (w2): Likewise.
8326 (ip0): Likewise.
8327 (sp): Likewise.
8328 (xzr): Likewise.
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.
8372
787749ea
PL
83732015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8374
8375 * Makefile.in (aarch64-insn.o): New rule.
8376 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8377
9812b2e6
YQ
83782015-09-21 Yao Qi <yao.qi@linaro.org>
8379
8380 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8381
18fe412b
YQ
83822015-09-21 Yao Qi <yao.qi@linaro.org>
8383
8384 * tracepoint.c (max_jump_pad_size): Remove.
8385
a0cc84cd
YQ
83862015-09-18 Yao Qi <yao.qi@linaro.org>
8387
8388 * linux-aarch64-low.c: Don't include sys/uio.h.
8389 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8390
d78908cf
WW
83912015-09-16 Wei-cheng Wang <cole945@gmail.com>
8392
8393 * tracepoint.c (eval_result_type): Change prototype.
8394 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8395
d57e0d50
PA
83962015-09-15 Pedro Alves <palves@redhat.com>
8397
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.
8401
5a676acc
PA
84022015-09-15 Pedro Alves <palves@redhat.com>
8403
8404 PR remote/18965
8405 * remote-utils.c (prepare_resume_reply): Merge
8406 TARGET_WAITKIND_VFORK_DONE switch case with the
8407 TARGET_WAITKIND_FORKED case.
8408
7c5d0fad
YQ
84092015-09-15 Yao Qi <yao.qi@linaro.org>
8410
8411 * server.c (handle_query): Check string comparison using
8412 "else if" instead of "if".
8413
750ce8d1
YQ
84142015-09-15 Yao Qi <yao.qi@linaro.org>
8415
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.
8422
70b90b91
YQ
84232015-09-15 Yao Qi <yao.qi@linaro.org>
8424
8425 * linux-low.c (linux_supports_conditional_breakpoints): Rename
8426 it to ...
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.
8442
ade90bde
YQ
84432015-09-15 Yao Qi <yao.qi@linaro.org>
8444
8445 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
8446 function.
8447 (struct linux_target_ops the_low_target): Install
8448 aarch64_linux_siginfo_fixup.
8449
94585166
DB
84502015-09-11 Don Breazeal <donb@codesourcery.com>
8451 Luis Machado <lgustavo@codesourcery.com>
8452
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
8471 new member.
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
8478 member.
8479 (target_supports_exec_events): New macro.
8480 * win32-low.c (win32_target_ops) <supports_exec_events>:
8481 Initialize new member.
8482
0568462b
MM
84832015-09-09 Markus Metzger <markus.t.metzger@intel.com>
8484
8485 * linux-low.c (linux_low_enable_btrace): Remove.
8486 (linux_target_ops): Replace linux_low_enable_btrace with
8487 linux_enable_btrace.
8488
39edd165
YQ
84892015-09-03 Yao Qi <yao.qi@linaro.org>
8490
8491 * linux-aarch64-low.c (aarch64_insert_point): Call
8492 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8493 returns true.
8494
1db33b5a
UW
84952015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8496
8497 * linux-low.c (check_stopped_by_breakpoint): Use
8498 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8499
ab290430
PA
85002015-08-27 Pedro Alves <palves@redhat.com>
8501
8502 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8503
8d749320
SM
85042015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8505
6711b7f8
SM
8506 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8507 the XNEW-family equivalent.
8d749320
SM
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.
8559
ed8b7b42
YQ
85602015-08-25 Yao Qi <yao.qi@linaro.org>
8561
8562 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8563
db3cb7cb
YQ
85642015-08-25 Yao Qi <yao.qi@linaro.org>
8565
8566 * Makefile.in (aarch64-linux.o): New rule.
8567 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8568 srv_tgtobj.
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.
8572
f6011a1c
YQ
85732015-08-25 Yao Qi <yao.qi@linaro.org>
8574
8575 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8576 lwp_arch_private_info and ptid_of_lwp.
8577
88e2cf7e
YQ
85782015-08-25 Yao Qi <yao.qi@linaro.org>
8579
8580 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8581 Find proc_info by find_process_pid. All callers updated.
8582
5e35436e
YQ
85832015-08-25 Yao Qi <yao.qi@linaro.org>
8584
8585 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8586 Remove.
8587 (debug_reg_change_callback): Remove.
8588 (aarch64_notify_debug_reg_change): Remove.
8589
4a8a7965
YQ
85902015-08-25 Yao Qi <yao.qi@linaro.org>
8591
8592 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8593 Call current_lwp_ptid.
8594
32a271ee
YQ
85952015-08-25 Yao Qi <yao.qi@linaro.org>
8596
8597 * linux-aarch64-low.c (debug_reg_change_callback): Use
8598 debug_printf.
8599
0d51c8d7
YQ
86002015-08-25 Yao Qi <yao.qi@linaro.org>
8601
8602 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8603
31a43dd5
YQ
86042015-08-25 Yao Qi <yao.qi@linaro.org>
8605
8606 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8607
8ee52567
YQ
86082015-08-25 Yao Qi <yao.qi@linaro.org>
8609
8610 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8611 the code.
8612
ff3f0f45
YQ
86132015-08-25 Yao Qi <yao.qi@linaro.org>
8614
8615 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8616 Remove.
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.
8622
3d40fbb5
PA
86232015-08-24 Pedro Alves <palves@redhat.com>
8624
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.
8629
438e1e42
PA
86302015-08-24 Pedro Alves <palves@redhat.com>
8631
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.
8636
a8c6d4fc
PA
86372015-08-24 Pedro Alves <palves@redhat.com>
8638
8639 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8640 ptid_get_lwp.
8641
99b0bb12
PA
86422015-08-21 Pedro Alves <palves@redhat.com>
8643
8644 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8645 instead of literal 1.
8646
f8904751
PA
86472015-08-21 Pedro Alves <palves@redhat.com>
8648
8649 * tdesc.c (default_description): Explicitly zero-initialize.
8650
465a859e
PA
86512015-08-21 Pedro Alves <palves@redhat.com>
8652
8653 PR gdb/18749
8654 * inferiors.c (remove_thread): Discard any pending stop reply for
8655 this thread.
8656 * server.c (remove_all_on_match_pid): Rename to ...
8657 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8658 instead of a pid.
8659 (discard_queued_stop_replies): Change parameter to a ptid. Now
8660 extern.
8661 (handle_v_kill, kill_inferior_callback, captured_main)
8662 (process_serial_event): Adjust.
8663 * server.h (discard_queued_stop_replies): Declare.
8664
f0db101d
PA
86652015-08-21 Pedro Alves <palves@redhat.com>
8666
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
8672 current thread.
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
8684 continue thread.
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.
8695
40045d91
MF
86962015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8697
8698 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8699 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8700 #includes.
8701 (ps_get_thread_area): New function.
8702
45face3b
GB
87032015-08-19 Gary Benson <gbenson@redhat.com>
8704
8705 * hostio.c (handle_pread): Do not attempt to read more data
8706 than hostio_reply_with_data can fit in a packet.
8707
16d5f642
JB
87082015-08-18 Joel Brobecker <brobecker@adacore.com>
8709
8710 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8711
a738da3a
MF
87122015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8713
8714 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8715
33ebda9d
PA
87162015-08-06 Pedro Alves <palves@redhat.com>
8717
8718 * tracepoint.c (expr_eval_result): Now an int.
8719
a44892be
PA
87202015-08-06 Pedro Alves <palves@redhat.com>
8721
8722 * gdbthread.h (struct regcache): Forward declare.
8723 (struct thread_info) <regcache_data>: Now a struct regcache
8724 pointer.
8725 * inferiors.c (inferior_regcache_data)
8726 (set_inferior_regcache_data): Now work with struct regcache
8727 pointers.
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
8733 casts.
8734
608a1e46
PA
87352015-08-06 Pedro Alves <palves@redhat.com>
8736
8737 * server.c (captured_main): On error, print the exception message
8738 to stderr, and if run_once is set, throw a quit.
8739
f0ce0d3a
PA
87402015-08-06 Pedro Alves <palves@redhat.com>
8741
8742 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8743 the current thread.
8744
bf47e248
PA
87452015-08-06 Pedro Alves <palves@redhat.com>
8746
8747 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8748 reading beyond the passed in buffer length.
8749
b6b9ffcc
PL
87502015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8751
8752 * tracepoint.c (symbol_list) <required>: Remove.
8753
863d01bd
PA
87542015-08-06 Pedro Alves <palves@redhat.com>
8755
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
8762 throughout.
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
8776 it stepping.
8777
00db26fa
PA
87782015-08-06 Pedro Alves <palves@redhat.com>
8779
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
8786 as well.
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
8790 comment.
8791
ad071a30
PA
87922015-08-06 Pedro Alves <palves@redhat.com>
8793
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.
8797
524b57e6
YQ
87982015-08-04 Yao Qi <yao.qi@linaro.org>
8799
8800 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8801 if current_thread is 32 bit.
8802
6085d6f6
YQ
88032015-08-04 Yao Qi <yao.qi@linaro.org>
8804
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.
8809
8a7e4587
YQ
88102015-08-04 Yao Qi <yao.qi@linaro.org>
8811
8812 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8813 both aarch64 and aarch32.
8814 (aarch64_set_pc): Likewise.
8815
3b53ae99
YQ
88162015-08-04 Yao Qi <yao.qi@linaro.org>
8817
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.
8828
bd9e6534
YQ
88292015-08-04 Yao Qi <yao.qi@linaro.org>
8830
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.
8846
ded48a5e
YQ
88472015-08-04 Yao Qi <yao.qi@linaro.org>
8848
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.
8852
96e9210f
PA
88532015-08-04 Pedro Alves <palves@redhat.com>
8854
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
8857 CHK calls.
8858 (disable_thread_event_reporting): Cast result of dlsym to
8859 destination function pointer type.
8860 (thread_db_mourn): Use td_ta_delete_ftype.
8861
af60a1ef
SL
88622015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8863
8864 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8865 arch variant.
8866 (CDX_BREAKPOINT): Define for R2.
8867 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8868 (the_low_target): Add comments.
8869
e8b41681
YQ
88702015-07-30 Yao Qi <yao.qi@linaro.org>
8871
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.
8875
89abb039
YQ
88762015-07-30 Yao Qi <yao.qi@linaro.org>
8877
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.
8883
deca266c
YQ
88842015-07-30 Yao Qi <yao.qi@linaro.org>
8885
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.
8889
aa58a496
SM
88902015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8891
8892 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8893 ptrace's 4th parameter.
8894
50904b25
YQ
88952015-07-27 Yao Qi <yao.qi@linaro.org>
8896
8897 * configure.srv (case aarch64*-*-linux*): Don't set
8898 srv_linux_usrregs.
8899
5826e159
PA
89002015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8901
8902 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8903 sys/ptrace.h.
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.
8916
54019719
PA
89172015-07-24 Pedro Alves <palves@redhat.com>
8918
8919 * config.in: Regenerate.
8920 * configure: Regenerate.
8921
eb7aa561
PA
89222015-07-24 Pedro Alves <palves@redhat.com>
8923
8924 * acinclude.m4: Include ../ptrace.m4.
8925 * configure.ac: Call GDB_AC_PTRACE.
8926 * config.in, configure: Regenerate.
8927
55d7b841
YQ
89282015-07-24 Yao Qi <yao.qi@linaro.org>
8929
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.
8935
c06cbd92
YQ
89362015-07-24 Yao Qi <yao.qi@linaro.org>
8937
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.
8954
5ae3ebba
YQ
89552015-07-24 Yao Qi <yao.qi@linaro.org>
8956
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.
8961
eb97750b
YQ
89622015-07-24 Yao Qi <yao.qi@linaro.org>
8963
8964 * server.c (start_inferior): Code refactor.
8965
51aee833
YQ
89662015-07-24 Yao Qi <yao.qi@linaro.org>
8967
8968 * server.c (process_serial_event): Set general_thread.
8969
af1b22f3
YQ
89702015-07-21 Yao Qi <yao.qi@linaro.org>
8971
8972 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8973 aarch64_linux_get_debug_reg_capacity.
8974
554717a3
YQ
89752015-07-17 Yao Qi <yao.qi@linaro.org>
8976
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.
9004
c67ca4de
YQ
90052015-07-17 Yao Qi <yao.qi@linaro.org>
9006
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.
9014
25abf979
YQ
90152015-07-17 Yao Qi <yao.qi@linaro.org>
9016
9017 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9018 debug_printf.
9019 (aarch64_handle_unaligned_watchpoint): Likewise.
9020
db1ff28b
JK
90212015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9022
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
9027
700ca40f
JK
90282015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9029 Jan Kratochvil <jan.kratochvil@redhat.com>
9030
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.
9035 (find_phdr): 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.
9043
9904185c
JK
90442015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9045 Jan Kratochvil <jan.kratochvil@redhat.com>
9046
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.
9050
6e5b4429
JK
90512015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9052
9053 * Makefile.in (OBS): Add gdb_regex.o.
9054 (gdb_regex.o): New.
9055 * config.in: Rebuilt.
9056 * configure: Rebuilt.
9057
ddc98fbf
JK
90582015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9059 Jan Kratochvil <jan.kratochvil@redhat.com>
9060
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.
9065
e57bb7a0
PL
90662015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9067
9068 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9069 function, return 1.
9070 (the_low_target): Install it.
9071
586b02a9
PA
90722015-07-14 Pedro Alves <palves@redhat.com>
9073
9074 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9075 Instead, ignore ECHILD, and throw an error for other errnos.
9076
58c1b36c
PA
90772015-07-10 Pedro Alves <palves@redhat.com>
9078
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.
9082
421530db
PL
90832015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9084
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.
9089
c2d65f38
YQ
90902015-07-09 Yao Qi <yao.qi@linaro.org>
9091
9092 * linux-aarch64-low.c (aarch64_regmap): Remove.
9093 (aarch64_usrregs_info): Remove.
9094 (regs_info): Set field usrregs to NULL.
9095
b20a6524
MM
90962015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9097
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".
9105
96c97461
PL
91062015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9107
9108 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9109 Z_PACKET_SW_BP.
9110
37d66942
PL
91112015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9112
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
9116 memcmp.
9117
dc06243f
GB
91182015-06-24 Gary Benson <gbenson@redhat.com>
9119
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.
9127
124e13d9
SM
91282015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9129
9130 * server.c (write_qxfer_response): Update call to
9131 remote_escape_output.
9132
909c2cda
JK
91332015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9134 Jan Kratochvil <jan.kratochvil@redhat.com>
9135
9136 Merge multiple hex conversions.
9137 * gdbreplay.c (tohex): Rename to 'fromhex'.
9138 (logchar): Use fromhex.
9139
24c05f46
JK
91402015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9141
9142 * server.c (handle_qxfer_libraries): Set `version' attribute for
9143 <library-list>.
9144
14d2069a
GB
91452015-06-10 Gary Benson <gbenson@redhat.com>
9146
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
9160 appropriate.
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.
9164
4b8b5e72
GB
91652015-06-10 Gary Benson <gbenson@redhat.com>
9166
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.
9173
3ac2e371
GB
91742015-06-09 Gary Benson <gbenson@redhat.com>
9175
9176 * hostio.c (handle_open): Process mode argument with
9177 fileio_to_host_mode.
9178
ca9b78ce
YQ
91792015-06-01 Yao Qi <yao.qi@linaro.org>
9180
9181 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9182 * linux-x86-low.c: Likewise.
9183
bfacd19d
DB
91842015-05-28 Don Breazeal <donb@codesourcery.com>
9185
9186 * linux-low.c (handle_extended_wait): Initialize
9187 thread_info.last_resume_kind for new fork children.
9188
452003ef
PA
91892015-05-15 Pedro Alves <palves@redhat.com>
9190
9191 * target.h (target_handle_new_gdb_connection): Rewrite using if
9192 wrapped in do/while.
9193
1041a03c
JB
91942015-05-14 Joel Brobecker <brobecker@adacore.com>
9195
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):
9199 Declare typedef.
9200
c269dbdb
DB
92012015-05-12 Don Breazeal <donb@codesourcery.com>
9202
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
9206 events.
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
9210 global variable.
9211
3a8a0396
DB
92122015-05-12 Don Breazeal <donb@codesourcery.com>
9213
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
9219 new_fork.
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.
9228
de0d863e
DB
92292015-05-12 Don Breazeal <donb@codesourcery.com>
9230
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>:
9252 New member.
9253 (target_handle_new_gdb_connection): New macro.
9254 * win32-low.c: Initialize new structure member.
9255
ddcbc397
DB
92562015-05-12 Don Breazeal <donb@codesourcery.com>
9257
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.
9263
89245bc0
DB
92642015-05-12 Don Breazeal <donb@codesourcery.com>
9265
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
9271 members.
9272 * server.c (report_fork_events, report_vfork_events):
9273 New global flags.
9274 (handle_query): Add new features to qSupported packet and
9275 response.
9276 (captured_main): Initialize new global variables.
9277 * target.h (struct target_ops) <supports_fork_events>:
9278 New member.
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
9283 members.
9284
835205d0
GB
92852015-05-12 Gary Benson <gbenson@redhat.com>
9286
9287 * server.c (handle_qxfer_exec_file): Use current process
9288 if annex is empty.
9289
21e94bd9
SL
92902015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9291
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.
9296
45614f15
YQ
92972015-05-08 Yao Qi <yao.qi@linaro.org>
9298
9299 * linux-low.c (linux_supports_conditional_breakpoints): New
9300 function.
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>:
9310 New field.
9311 (target_supports_conditional_breakpoints): New macro.
9312
80ad801e
PA
93132015-05-06 Pedro Alves <palves@redhat.com>
9314
9315 PR server/18081
9316 * server.c (start_inferior): If the process exits, mourn it.
9317
819843c7
GB
93182015-04-21 Gary Benson <gbenson@redhat.com>
9319
9320 * hostio.c (fileio_open_flags_to_host): Factored out to
9321 fileio_to_host_openflags in common/fileio.c. Single use
9322 updated.
9323
a2d5a9d7
MF
93242015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9325
9326 * linux-xtensa-low.c (xtensa_fill_gregset)
9327 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9328 XCHAL_HAVE_LOOP.
9329
deb44829
MF
93302015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9331
9332 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9333 (regs_info): Replace usrregs pointer with NULL.
9334
e57f1de3
GB
93352015-04-17 Gary Benson <gbenson@redhat.com>
9336
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.
9342
62828379
RN
93432015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9344
9345 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9346
b88bb450
GB
93472015-04-09 Gary Benson <gbenson@redhat.com>
9348
9349 * hostio-errno.c (errno_to_fileio_error): Remove function.
9350 Update caller to use remote_fileio_to_fio_error.
9351
c8f4bfdd
YQ
93522015-04-09 Yao Qi <yao.qi@linaro.org>
9353
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
9357 raw_bkpt_type_sw.
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.
9361
41f98f02
PA
93622015-04-01 Pedro Alves <palves@redhat.com>
9363 Cleber Rosa <crosa@redhat.com>
9364
9365 * server.c (gdbserver_usage): Reorganize and extend the usage
9366 message.
9367
2bf6fb9d
PA
93682015-03-24 Pedro Alves <palves@redhat.com>
9369
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.
9374
369f6daa
GB
93752015-03-24 Gary Benson <gbenson@redhat.com>
9376
9377 * linux-x86-low.c (x86_linux_new_thread): Moved to
9378 nat/x86-linux.c.
9379 (x86_linux_prepare_to_resume): Likewise.
9380
8e5d4070
GB
93812015-03-24 Gary Benson <gbenson@redhat.com>
9382
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.
9396
2b95d440
GB
93972015-03-24 Gary Benson <gbenson@redhat.com>
9398
9399 * linux-x86-low.c (x86_linux_update_debug_registers):
9400 New function, factored out from...
9401 (x86_linux_prepare_to_resume): ...this.
9402
14b0bc68
GB
94032015-03-24 Gary Benson <gbenson@redhat.com>
9404
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.
9414
5dfe6ca8
GB
94152015-03-24 Gary Benson <gbenson@redhat.com>
9416
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.
9420
d33472ad
GB
94212015-03-24 Gary Benson <gbenson@redhat.com>
9422
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.
9434
4b134ca1
GB
94352015-03-24 Gary Benson <gbenson@redhat.com>
9436
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.
9448
34c703da
GB
94492015-03-24 Gary Benson <gbenson@redhat.com>
9450
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.
9457
cff068da
GB
94582015-03-24 Gary Benson <gbenson@redhat.com>
9459
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):
9464 Use lwp_is_stopped.
9465 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9466 lwp_stop_reason.
9467
b2f7c7e8
GB
94682015-03-24 Gary Benson <gbenson@redhat.com>
9469
9470 * linux-low.h (linux_stop_lwp): Remove declaration.
9471
6d4ee8c6
GB
94722015-03-24 Gary Benson <gbenson@redhat.com>
9473
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.
9483
70a0bb6b
GB
94842015-03-24 Gary Benson <gbenson@redhat.com>
9485
9486 * linux-x86-low.c (x86_debug_reg_state): New function.
9487 (x86_linux_prepare_to_resume): Use the above.
9488
7b669087
GB
94892015-03-24 Gary Benson <gbenson@redhat.com>
9490
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.
9496
eef49a3d
PA
94972015-03-20 Pedro Alves <palves@redhat.com>
9498
9499 * tracepoint.c (cmd_qtstatus): Make "str" const.
9500
b2333d22
PA
95012015-03-20 Pedro Alves <palves@redhat.com>
9502
9503 * server.c (handle_general_set): Make "req_str" const.
9504
23f238d3
PA
95052015-03-19 Pedro Alves <palves@redhat.com>
9506
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
9513 gone.
9514
91baf43f
PA
95152015-03-19 Pedro Alves <palves@redhat.com>
9516
9517 * linux-low.c (count_events_callback, select_event_lwp_callback):
9518 No longer check whether the thread has resume_stop as last resume
9519 kind.
9520
8bf3b159
PA
95212015-03-19 Pedro Alves <palves@redhat.com>
9522
9523 * linux-low.c (count_events_callback, select_event_lwp_callback):
9524 Use the lwp's status_pending_p field, not the thread's.
9525
b90fc188
PA
95262015-03-19 Pedro Alves <palves@redhat.com>
9527
9528 * linux-low.c (select_event_lwp_callback): Update comments to
9529 no longer mention SIGTRAP.
9530
464b0089
GB
95312015-03-18 Gary Benson <gbenson@redhat.com>
9532
9533 * server.c (handle_query): Do not report vFile:fstat as supported.
9534
aa9e327f
GB
95352015-03-11 Gary Benson <gbenson@redhat.com>
9536
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.
aa9e327f 9542
791c0056
GB
95432015-03-11 Gary Benson <gbenson@redhat.com>
9544
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.
9552
9a9df970
PA
95532015-03-09 Pedro Alves <palves@redhat.com>
9554
9555 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9556 'struct sockaddr' pointer in 'accept' call.
9557
9eb1356e
PA
95582015-03-09 Pedro Alves <palves@redhat.com>
9559
9560 Revert:
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>
9569 or <sys/un.h>.
9570 (init_named_socket, gdb_agent_helper_thread): Use union
9571 gdb_sockaddr_u.
9572
aac331e4
PA
95732015-03-07 Pedro Alves <palves@redhat.com>
9574
9575 * configure.ac (build_warnings): Move
9576 -Wdeclaration-after-statement to the C-specific set.
9577 * configure: Regenerate.
9578
366c75fc
PA
95792015-03-07 Pedro Alves <palves@redhat.com>
9580
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>
9588 or <sys/un.h>.
9589 (init_named_socket, gdb_agent_helper_thread): Use union
9590 gdb_sockaddr_u.
9591
492d29ea
PA
95922015-03-07 Pedro Alves <palves@redhat.com>
9593
9594 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9595 instead.
9596
60a191ed
YQ
95972015-03-06 Yao Qi <yao.qi@linaro.org>
9598
9599 * linux-aarch64-low.c (aarch64_insert_point): Use
9600 show_debug_regs as a boolean.
9601 (aarch64_remove_point): Likewise.
9602
f5771b1d
PA
96032015-03-05 Pedro Alves <palves@redhat.com>
9604
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.
9611
3e572f71
PA
96122015-03-04 Pedro Alves <palves@redhat.com>
9613
72f4393d 9614 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
9615 Decide whether a breakpoint triggered based on the SIGTRAP's
9616 siginfo.si_code.
72f4393d
L
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.
3e572f71
PA
9619 (linux_low_filter_event): Check for breakpoints before checking
9620 watchpoints.
9621 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9622 siginfo.si_code.
72f4393d
L
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.
3e572f71 9628
1ec68e26
PA
96292015-03-04 Pedro Alves <palves@redhat.com>
9630
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.
9643
15c66dd6
PA
96442015-03-04 Pedro Alves <palves@redhat.com>
9645
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.
9655
98fc70d6
YQ
96562015-03-04 Yao Qi <yao.qi@linaro.org>
9657
9658 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9659
dd2ac174
GB
96602015-03-03 Gary Benson <gbenson@redhat.com>
9661
9662 * hostio.c (handle_vFile): Fix prefix lengths.
9663
d68e53f4
MM
96642015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9665
9666 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9667 ptr_bits.
9668
bf2d68ab
AA
96692015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9670
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
9684 declarations.
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
9688 NT_S390_VXRS_HIGH.
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.
9694
c966a859
PA
96952015-03-01 Pedro Alves <palves@redhat.com>
9696
9697 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9698 parameter.
9699
4180215b
PA
97002015-02-27 Pedro Alves <palves@redhat.com>
9701
9702 * linux-x86-low.c (u_debugreg_offset): New function.
9703 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9704
749bab01
PA
97052015-02-27 Pedro Alves <palves@redhat.com>
9706
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.
9715
3c14e5a3
PA
97162015-02-27 Pedro Alves <palves@redhat.com>
9717
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):
9761 Define.
9762 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9763 (IP_AGENT_EXPORT_VAR_DECL): Define.
9764 (tracing): Declare.
9765 (gdb_agent_get_raw_reg): Declare.
9766
fe978cb0
PA
97672015-02-27 Tom Tromey <tromey@redhat.com>
9768 Pedro Alves <palves@redhat.com>
9769
9770 Rename symbols whose names are reserved C++ keywords throughout.
9771
3bc3d82a
PA
97722015-02-27 Pedro Alves <palves@redhat.com>
9773
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.
9788
07697489
PA
97892015-02-27 Pedro Alves <palves@redhat.com>
9790
9791 * acinclude.m4: Include libiberty.m4.
9792 * configure.ac: Call libiberty_INIT.
9793 * config.in, configure: Regenerate.
9794
9beb7c4e
PA
97952015-02-26 Pedro Alves <palves@redhat.com>
9796
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.
9801
8090aef2
PA
98022015-02-23 Pedro Alves <palves@redhat.com>
9803
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.
9809
bc9540e8
PA
98102015-02-23 Pedro Alves <palves@redhat.com>
9811
9812 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9813 modes.
9814 (x86_fill_gregset, x86_store_gregset): Use it when handling
9815 $orig_eax.
9816
2db9a427
PA
98172015-02-20 Pedro Alves <palves@redhat.com>
9818
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.
9822
afa8d396
PA
98232015-02-20 Pedro Alves <palves@redhat.com>
9824
9825 * linux-low.c (status_pending_p_callback): Use ptid_match.
9826
c9587f88
AT
98272015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9828
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.
9833
b05ec7a5
AT
98342015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9835
9836 PR breakpoints/15956
9837 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9838
d33501a5
MM
98392015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9840
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.
9845
f4abbc16
MM
98462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9847
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 &current_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.
9862
043c3577
MM
98632015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9864
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.
9872
734b0e4b
MM
98732015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9874
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.
9881
d6c146e9
PA
98822015-02-06 Pedro Alves <palves@redhat.com>
9883
9884 * thread-db.c (find_new_threads_callback): Add debug output.
9885
20ba1ce6
PA
98862015-02-04 Pedro Alves <palves@redhat.com>
9887
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.
9891
8cc73a39
SDJ
98922015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9893
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.
9902
fb23d554
SDJ
99032015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9904
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.
9910
cdf43629
YQ
99112015-01-14 Yao Qi <yao@codesourcery.com>
9912
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
9921
514c5338
YQ
99222015-01-14 Yao Qi <yao@codesourcery.com>
9923
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.
9931
3368c1e5
JB
99322015-01-10 Joel Brobecker <brobecker@adacore.com>
9933
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.
9937
582511be
PA
99382015-01-09 Pedro Alves <palves@redhat.com>
9939
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
9962 events.
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):
9973 Adjust.
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
9991 cancel_breakpoints.
9992
a33e3959
PA
99932015-01-09 Pedro Alves <palves@redhat.com>
9994
9995 * thread-db.c (find_new_threads_callback): Ignore thread if the
9996 kernel thread ID is -1.
9997
8784d563
PA
99982015-01-09 Pedro Alves <palves@redhat.com>
9999
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.
10007
76f2b779
JB
100082015-01-01 Joel Brobecker <brobecker@adacore.com>
10009
10010 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10011 * server.c (gdbserver_version): Likewise.
10012
fafcc06a
SDJ
100132014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10014
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
10018 characters.
10019
beed38b8
JB
100202014-12-16 Joel Brobecker <brobecker@adacore.com>
10021
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.
10025
bf330350
CU
100262014-12-16 Catalin Udma <catalin.udma@freescale.com>
10027
10028 PR server/17457
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.
10034
5227d625
JB
100352014-12-15 Joel Brobecker <brobecker@adacore.com>
10036
10037 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10038 Remove FIXME comment about assumption about N.
10039
f93b65a0
JB
100402014-12-13 Joel Brobecker <brobecker@adacore.com>
10041
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.
10045
e5a9158d
AA
100462014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10047
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.
10052
feea5f36
AA
100532014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10054
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.
10061
098dbe61
AA
100622014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10063
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.
10068
28eef672
AA
100692014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10070
10071 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10072 while-loop as for-loop.
10073 (regsets_store_inferior_registers): Likewise.
10074
bdca27a2
YQ
100752014-11-28 Yao Qi <yao@codesourcery.com>
10076
10077 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10078 * config.in, configure: Re-generate.
10079 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10080 is defined.
10081
9c232dda
YQ
100822014-11-21 Yao Qi <yao@codesourcery.com>
10083
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.
10091
43968415
JB
100922014-11-17 Joel Brobecker <brobecker@adacore.com>
10093
10094 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10095 corresponding ERRNO check in same block.
10096
40e91bc7
PA
100972014-11-12 Pedro Alves <palves@redhat.com>
10098
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.
10103
c2c118cf
PA
101042014-11-12 Pedro Alves <palves@redhat.com>
10105
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.
10108
78708b7c
PA
101092014-11-12 Pedro Alves <palves@redhat.com>
10110
10111 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10112 the process group instead of to a specific LWP.
10113
a2abc7de
PA
101142014-10-15 Pedro Alves <palves@redhat.com>
10115
10116 PR server/17487
10117 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10118 parameter.
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
10129 record's context.
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
10133 debug_reg_state.
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
10137 debug registers.
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
10142 directly.
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.
10154
a442d071
GB
101552014-10-08 Gary Benson <gbenson@redhat.com>
10156
10157 * server.h: Do not include common-exceptions.h.
10158
6f1947e8
GB
101592014-10-08 Gary Benson <gbenson@redhat.com>
10160
10161 * server.h: Do not include cleanups.h.
10162
63b434a4
JH
101632014-09-30 James Hogan <james.hogan@imgtec.com>
10164
10165 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10166 mips64-dsp-linux.c.
10167
c4d9ceb6
YQ
101682014-09-23 Yao Qi <yao@codesourcery.com>
10169
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.
10175
89a5711c
DB
101762014-09-19 Don Breazeal <donb@codesourcery.com>
10177
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.
10182
bffc0964
JB
101832014-09-16 Joel Brobecker <brobecker@adacore.com>
10184
10185 * Makefile.in (CPPFLAGS): Define.
10186 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10187 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10188
0bfdf32f
GB
101892014-09-16 Gary Benson <gbenson@redhat.com>
10190
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
10206 saved_thread.
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
10213 as saved_thread.
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
10217 of inferior.
10218 (handle_serial_event): Likewise.
10219 (handle_target_event): Likewise.
10220
361c8ade
GB
102212014-09-12 Tom Tromey <tromey@redhat.com>
10222 Gary Benson <gbenson@redhat.com>
10223
10224 * regcache.h: Include common-regcache.h.
10225 (regcache_read_pc): Don't declare.
10226 * regcache.c (get_thread_regcache_for_ptid): New function.
10227
bd9269f7
GB
102282014-09-11 Tom Tromey <tromey@redhat.com>
10229 Gary Benson <gbenson@redhat.com>
10230
10231 * symbol.c: New file.
10232 * Makefile.in (SFILES): Add symbol.c.
10233 (OBS): Add symbol.o.
10234
f8c1d06b
GB
102352014-09-11 Gary Benson <gbenson@redhat.com>
10236
10237 * target.c (target_stop_ptid, target_continue_ptid): New
10238 functions.
10239
721ec300
GB
102402014-09-11 Tom Tromey <tromey@redhat.com>
10241 Gary Benson <gbenson@redhat.com>
10242
10243 * target.h: Include target/target.h.
10244 * target.c (target_read_memory, target_read_uint32)
10245 (target_write_memory): New functions.
10246
c5e92cca
GB
102472014-09-11 Gary Benson <gbenson@redhat.com>
10248
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.
10254
2e4bb98a
EBM
102552014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10256
10257 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10258 endianness into account.
10259 (ppc_supply_ptrace_register): Likewise.
10260
ac740bc7
JH
102612014-09-03 James Hogan <james.hogan@imgtec.com>
10262
10263 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10264 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10265
97ea6506
GB
102662014-09-03 Gary Benson <gbenson@redhat.com>
10267
10268 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10269 ALL_DEBUG_ADDRESS_REGISTERS.
10270
df7e5265
GB
102712014-09-02 Gary Benson <gbenson@redhat.com>
10272
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.
10279
ed859da7
GB
102802014-09-02 Gary Benson <gbenson@redhat.com>
10281
10282 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10283 (x86_linux_new_thread): Likewise.
10284
860789c7
GB
102852014-08-29 Gary Benson <gbenson@redhat.com>
10286
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.
10297
ff55e1b5
GB
102982014-08-29 Gary Benson <gbenson@redhat.com>
10299
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.
10304
e9bcb658
GB
103052014-08-29 Gary Benson <gbenson@redhat.com>
10306
10307 * config.in: Regenerate.
10308 * configure: Likewise.
10309
e3180625
GB
103102014-08-29 Gary Benson <gbenson@redhat.com>
10311
10312 * Makefile.in (SFILES): Add common/cleanups.c.
10313 (OBS): cleanups.o.
10314 (cleanups.o): New rule.
10315
e3d6ba5d
GB
103162014-08-29 Gary Benson <gbenson@redhat.com>
10317
10318 * utils.c (internal_vwarning): New function.
10319
7096e886
GB
103202014-08-28 Gary Benson <gbenson@redhat.com>
10321
10322 * utils.h (fatal): Remove declaration.
10323 * utils.c (fatal): Remove function.
10324
14ce3192
GB
103252014-08-28 Gary Benson <gbenson@redhat.com>
10326
10327 * tracepoint.c (gdb_agent_init): Replace fatal with
10328 perror_with_name.
10329 (initialize_tracepoint): Likewise.
10330
50278d59
GB
103312014-08-28 Gary Benson <gbenson@redhat.com>
10332
10333 * remote-utils.c (remote_prepare): Replace fatal with error.
10334
aa96c426
GB
103352014-08-28 Gary Benson <gbenson@redhat.com>
10336
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.
10340
f7160e97
GB
103412014-08-28 Gary Benson <gbenson@redhat.com>
10342
10343 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10344 gdb_assert.
10345 (i386_dr_low_get_addr): Remove vague comment.
10346 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10347 gdb_assert.
10348
38e08fca
GB
103492014-08-28 Gary Benson <gbenson@redhat.com>
10350
10351 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10352 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10353 internal_error.
10354 (linux_resume_one_lwp): Likewise.
10355 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10356 gdb_assert.
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
10368 internal_error.
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.
10378
34abf635
GB
103792014-08-19 Tom Tromey <tromey@redhat.com>
10380 Gary Benson <gbenson@redhat.com>
10381
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.
10388
f6e94d78
GB
103892014-08-19 Gary Benson <gbenson@redhat.com>
10390
10391 * utils.h: Do not include print-utils.h.
10392
9239eeab
GB
103932014-08-19 Tom Tromey <tromey@redhat.com>
10394 Gary Benson <gbenson@redhat.com>
10395
10396 * server.h: Add static assertion.
10397 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
10398
ef87c8bb
GB
103992014-08-19 Tom Tromey <tromey@redhat.com>
10400 Gary Benson <gbenson@redhat.com>
10401
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.
10414
bb974a24
GB
104152014-08-07 Gary Benson <gbenson@redhat.com>
10416
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.
10428
6d3d12eb
GB
104292014-08-07 Gary Benson <gbenson@redhat.com>
10430
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.
10438
dccbb609
GB
104392014-08-07 Gary Benson <gbenson@redhat.com>
10440
10441 * server.h: Do not include gdb_assert.h.
10442
e76df0d0
GB
104432014-08-07 Gary Benson <gbenson@redhat.com>
10444
10445 * server.h: Do not include common-utils.h.
10446
4cb9c816
GB
104472014-08-07 Gary Benson <gbenson@redhat.com>
10448
10449 * server.h: Do not include ptid.h.
10450 * notif.h: Likewise.
10451
3995eeee
GB
104522014-08-07 Gary Benson <gbenson@redhat.com>
10453
10454 * server.h: Do not include gdb_locale.h.
10455
cb9f1a9b
GB
104562014-08-07 Gary Benson <gbenson@redhat.com>
10457
10458 * server.h: Do not include gdb/signals.h.
10459 * win32-low.c: Likewise.
10460
a5fceff8
GB
104612014-08-07 Gary Benson <gbenson@redhat.com>
10462
10463 * server.h: Do not include pathmax.h.
10464
b9391142
GB
104652014-08-07 Gary Benson <gbenson@redhat.com>
10466
10467 * server.h: Do not include libiberty.h.
10468 * linux-bfin-low.c: Likewise.
10469
0e443c87
GB
104702014-08-07 Gary Benson <gbenson@redhat.com>
10471
10472 * server.h: Do not include ansidecl.h.
10473
8ebb3f56
GB
104742014-08-07 Gary Benson <gbenson@redhat.com>
10475
10476 * linux-x86-low.c: Do not include stddef.h.
10477 * lynx-ppc-low.c: Likewise.
10478 * tracepoint.c: Likewise.
10479
8980bdf6
GB
104802014-08-07 Gary Benson <gbenson@redhat.com>
10481
10482 * server.h: Do not include stdarg.h.
10483 * nto-low.c: Likewise.
10484
d7096f71
GB
104852014-08-07 Gary Benson <gbenson@redhat.com>
10486
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.
10494
d02f550d
GB
104952014-08-07 Gary Benson <gbenson@redhat.com>
10496
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.
10503
87f6c4e3
GB
105042014-08-06 Gary Benson <gbenson@redhat.com>
10505
10506 * regcache.c (init_register_cache): Move conditionals inside if.
10507
7089dca4
GB
105082014-08-06 Gary Benson <gbenson@redhat.com>
10509
10510 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10511
462f517e
GB
105122014-07-31 Gary Benson <gbenson@redhat.com>
10513
10514 * ax.h: Do not include server.h.
10515 * gdbthread.h: Likewise.
10516 * lynx-low.h: Likewise.
10517 * notif.h: Likewise.
10518
976411d6
GB
105192014-07-30 Gary Benson <gbenson@redhat.com>
10520
10521 * server.h: Include common-defs.h.
10522 Do not include config.h or build-gnulib-gdbserver/config.h.
10523
d41f6d8e
GB
105242014-07-30 Gary Benson <gbenson@redhat.com>
10525
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.
10530
314c6a35
TT
105312014-07-24 Tom Tromey <tromey@redhat.com>
10532 Gary Benson <gbenson@redhat.com>
10533
10534 * server.h (CORE_ADDR): Now unsigned.
10535
69ff6be5
PA
105362014-07-16 Pedro Alves <palves@redhat.com>
10537
10538 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10539
ce9e3fe7
PA
105402014-07-15 Pedro Alves <palves@redhat.com>
10541
10542 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10543 copy.
10544
e76126e8
PA
105452014-07-11 Pedro Alves <palves@redhat.com>
10546
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.
10550
8e9db26e
PA
105512014-06-23 Pedro Alves <palves@redhat.com>
10552
10553 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10554 before setting DR0..DR3.
10555
698b3e08
GB
105562014-06-20 Gary Benson <gbenson@redhat.com>
10557
10558 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10559 * configure: Regenerated.
10560 * config.in: Likewise.
10561
125f8a3d
GB
105622014-06-20 Gary Benson <gbenson@redhat.com>
10563
10564 * Makefile.in (SFILES): Update locations for files moved
10565 from common to nat.
10566 (object file files): Reordered.
10567
42995dbd
GB
105682014-06-20 Gary Benson <gbenson@redhat.com>
10569
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.
10592
e1d2394b
MS
105932014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10594
10595 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10596 * Makefile.in (AR, AR_FLAGS): Define.
10597 * configure: Regenerate.
10598
3a8ee006
GB
105992014-06-19 Gary Benson <gbenson@redhat.com>
10600
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.
10641
8f26655c
GB
106422014-06-19 Gary Benson <gbenson@redhat.com>
10643
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.
10648 All uses updated.
10649 (i386_dr_insert_aligned_watchpoint): Renamed to
10650 i386_insert_aligned_watchpoint and made static.
10651 All uses updated.
10652 (i386_dr_remove_aligned_watchpoint): Renamed to
10653 i386_remove_aligned_watchpoint and made static.
10654 All uses updated.
10655 (i386_dr_update_inferior_debug_regs): Renamed to
10656 i386_update_inferior_debug_regs and made static.
10657 All uses updated.
10658
b9228891
GB
106592014-06-18 Gary Benson <gbenson@redhat.com>
10660
5171def3
GB
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.
10667
106682014-06-17 Gary Benson <gbenson@redhat.com>
10669
b9228891
GB
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.
10683
4be83cc2
GB
106842014-06-18 Gary Benson <gbenson@redhat.com>
10685
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.
10700 All uses updated.
10701 (i386_insert_aligned_watchpoint): Renamed to
10702 i386_dr_insert_aligned_watchpoint and made nonstatic.
10703 All uses updated.
10704 (i386_remove_aligned_watchpoint): Renamed to
10705 i386_dr_remove_aligned_watchpoint and made nonstatic.
10706 All uses updated.
10707 (i386_update_inferior_debug_regs): Renamed to
10708 i386_dr_update_inferior_debug_regs and made nonstatic.
10709 All uses updated.
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.
10720
131aa0d4
GB
107212014-06-18 Gary Benson <gbenson@redhat.com>
10722
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.
10726
d9305f7f
GB
107272014-06-18 Gary Benson <gbenson@redhat.com>
10728
10729 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10730 Renamed to state.
10731
e927c9fc
GB
107322014-06-18 Gary Benson <gbenson@redhat.com>
10733
10734 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10735 instead of fatal and error.
10736 (i386_handle_nonaligned_watchpoint): Likewise.
10737
1b6d4134
GB
107382014-06-18 Gary Benson <gbenson@redhat.com>
10739
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.
10744
6e62758f
GB
107452014-06-18 Gary Benson <gbenson@redhat.com>
10746
10747 * i386-low.h: Comment changes.
10748 * i386-low.c: Likewise.
10749
fc6e2f03
GB
107502014-06-18 Gary Benson <gbenson@redhat.com>
10751
10752 * i386-low.c: Whitespace changes.
10753
f9d1eeed
TT
107542014-06-12 Tom Tromey <tromey@redhat.com>
10755
10756 * utils.c (freeargv): Remove.
10757
0b04e523
TT
107582014-06-12 Tom Tromey <tromey@redhat.com>
10759
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
10767 against libiberty.
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
10772 targets.
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
10777 srv_tgtobj.
10778
270c9937
JB
107792014-06-05 Joel Brobecker <brobecker@adacore.com>
10780
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.
10785
0a261ed8
PA
107862014-06-02 Pedro Alves <palves@redhat.com>
10787
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
10791 list.
10792 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10793 static.
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.
10797
e9dae05e
RR
107982014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10799
10800 * linux-aarch64-low.c (asm/ptrace.h): Include.
10801
5876f503
JK
108022014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10803
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.
10808
802e8e6d
PA
108092014-05-20 Pedro Alves <palves@redhat.com>
10810
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
10887 breakpoint.
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
10893 z_type parameter.
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
10900 output.
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.
10962
932539e3
PA
109632014-05-20 Pedro Alves <palves@redhat.com>
10964
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
10984 function.
10985 (mips_insert_point, mips_remove_point): Use
10986 Z_packet_to_target_hw_bp_type.
10987
4ff0d3d8
PA
109882014-05-20 Pedro Alves <palves@redhat.com>
10989
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
10998 breakpoint type.
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
11004 target_point_type.
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.
11008
786dc519
JB
110092014-05-20 Joel Brobecker <brobecker@adacore.com>
11010
11011 * configure.ac: Only use -Werror by default when DEVELOPMENT
11012 is true.
11013 * configure: Regenerate.
11014
9e0aa64f
JK
110152014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11016
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.
11020
2b577b92
YQ
110212014-04-28 Yao Qi <yao@codesourcery.com>
11022
11023 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11024 name.
11025
94611da2
PA
110262014-04-25 Pedro Alves <palves@redhat.com>
11027
11028 PR server/16255
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
11037 attach to an lwp.
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.
11044
01f9f808
MS
110452014-04-24 Michael Sturm <michael.sturm@mintel.com>
11046 Walfred Tedeschi <walfred.tedeschi@intel.com>
11047
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
11064 of K registers.
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
11086 mask.
11087 (initialize_low_arch): Add code to initialize AVX512 registers.
11088
51aa91f9
PA
110892014-04-23 Pedro Alves <palves@redhat.com>
11090
11091 * mem-break.c (find_gdb_breakpoint_at): Make static.
11092 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11093
a4165e94
PA
110942014-04-23 Pedro Alves <palves@redhat.com>
11095
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
11099 packet char.
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
11103 prototypes.
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.
11112
b8acf843
PA
111132014-04-23 Pedro Alves <palves@redhat.com>
11114
11115 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11116
d708bcd1
PA
111172014-04-10 Pedro Alves <palves@redhat.com>
11118
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.
11126
2eec7d5b
PA
111272014-04-09 Pedro Alves <palves@redhat.com>
11128
11129 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11130 to lwpid_of.
11131
fa96cb38
PA
111322014-02-27 Pedro Alves <palves@redhat.com>
11133
11134 PR 12702
11135 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11136 macros.
11137 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11138 output.
11139 (last_thread_of_process_p): Take a PID argument instead of a
11140 thread pointer.
11141 (linux_wait_for_lwp): Delete.
11142 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11143 functions.
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.
11159
d763de10
JB
111602014-02-26 Joel Brobecker <brobecker@adacore.com>
11161
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):
11166 Delete.
11167 (handle_load_dll): Add function description.
11168 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11169
850a0f76
JB
111702014-02-26 Joel Brobecker <brobecker@adacore.com>
11171
11172 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11173 Add comment.
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.
11180
f25b3fc3
JB
111812014-02-26 Joel Brobecker <brobecker@adacore.com>
11182
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.
11192 Add comment.
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.
11197
d86d4aaf
DE
111982014-02-20 Doug Evans <dje@google.com>
11199
3bc32da3 11200 Remove global all_lwps.
d86d4aaf
DE
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
11208 directly.
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
11215 &all_lwps.
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,
11254 not &all_lwps.
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,
11259 not &all_lwps.
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
11272 from thread, lwp.
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
11294 directly.
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.
11305 (get_lwp): Delete.
11306 (get_thread_lwp): Update.
11307 (struct lwp_info): Delete member "entry". Simplify comment for
11308 member "thread".
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
11319 directly.
11320 (mips_stopped_data_address): Ditto.
11321 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11322 directly.
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.
11338
3b8361aa
DE
113392014-02-20 Doug Evans <dje@google.com>
11340
11341 * inferiors.c (get_first_inferior): Fix buglet.
11342
f7667f0d
DE
113432014-02-19 Doug Evans <dje@google.com>
11344
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".
11352
b3312d80
DE
113532014-02-19 Doug Evans <dje@google.com>
11354
11355 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11356 All callers updated.
11357
ecc6f45c
DE
113582014-02-19 Doug Evans <dje@google.com>
11359
11360 * inferiors.c (add_thread): Fix whitespace.
11361
649ebbca
DE
113622014-02-19 Doug Evans <dje@google.com>
11363
11364 * dll.c (clear_dlls): Replace accessing list implemention details
11365 with API function.
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
11397 with API function.
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.
11409
80894984
DE
114102014-02-19 Doug Evans <dje@google.com>
11411
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.
11419 (add_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.
11437
46917d26
TT
114382014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * target.h (struct target_ops) <supports_btrace>: Add target_ops
11441 argument.
11442 (target_supports_btrace): Update.
11443
0759a81e
YQ
114442014-02-14 Yao Qi <yao@codesourcery.com>
11445
11446 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
11447 (rsp-low-ipa.o): New target.
11448
a7191e8b
TT
114492014-02-12 Tom Tromey <tromey@redhat.com>
11450
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.
11456
ff0e980e
TT
114572014-02-12 Tom Tromey <tromey@redhat.com>
11458
11459 * server.c (handle_query, handle_v_run): Use hex2bin, not
11460 unhexify.
11461 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
11462
e9371aff
TT
114632014-02-12 Tom Tromey <tromey@redhat.com>
11464
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):
11468 Likewise.
11469 * remote-utils.c (look_up_one_symbol, relocate_instruction):
11470 Likewise.
11471 * server.c (process_serial_event): Likewise.
11472 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
11473 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
11474
971dc0b8
TT
114752014-02-12 Tom Tromey <tromey@redhat.com>
11476
11477 * remote-utils.c (look_up_one_symbol, monitor_output): Use
11478 bin2hex, not hexify.
11479 * tracepoint.c (cmd_qtstatus): Likewise.
11480
0a822afb
TT
114812014-02-12 Tom Tromey <tromey@redhat.com>
11482
11483 * remote-utils.c (monitor_output): Pass explicit length to
11484 hexify.
11485
9c3d6531
TT
114862014-02-12 Tom Tromey <tromey@redhat.com>
11487
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
11492 declare.
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
11497 common/rsp-low.c.
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.
11503
01fd3ea5
TT
115042014-02-12 Tom Tromey <tromey@redhat.com>
11505
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.
11515
e99dc820
TT
115162014-02-06 Tom Tromey <tromey@redhat.com>
11517
11518 * Makefile.in (SFILES): Fix indentation.
11519
ee1e2d4f
DE
115202014-02-05 Doug Evans <dje@google.com>
11521
11522 * linux-low.c (linux_wait_for_event): Improve comment.
11523 (linux_wait_1): Keep current_inferior in sync with event_child.
11524
f5a02773
DE
115252014-01-22 Doug Evans <dje@google.com>
11526
11527 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11528
87ce2a04
DE
115292014-01-22 Doug Evans <dje@google.com>
11530
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
11558 fprintf.
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.
11571
e671835b
BS
115722014-01-20 Baruch Siach <baruch@tkos.co.il>
11573
11574 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11575 sys/ptrace.h.
11576
b5737fa9
PA
115772014-01-17 Pedro Alves <palves@redhat.com>
11578
ea38d2a9 11579 PR build/16445
c7faa97a
PA
11580 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11581 defined after including gdb_proc_service.h.
b5737fa9 11582
40ed484e
DE
115832014-01-16 Doug Evans <dje@google.com>
11584
11585 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11586 (match_dll): Use it.
11587
969c39fb
MM
115882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11589
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
11595 errors on.
11596 (linux_low_disable_btrace): New.
11597
ab7f45ba
DE
115982014-01-15 Doug Evans <dje@google.com>
11599
11600 * inferiors.c (thread_id_to_gdb_id): Delete.
11601 * inferiors.h (thread_id_to_gdb_id): Delete.
11602
66af0f44
EZ
116032014-01-13 Eli Zaretskii <eliz@gnu.org>
11604
11605 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11606 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11607 versions.
11608
9939e131
PA
116092014-01-08 Pedro Alves <palves@redhat.com>
11610
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.
11614
b7ea362b
PA
116152014-01-08 Pedro Alves <palves@redhat.com>
11616
11617 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11618 * server.c (visit_actioned_threads, handle_pending_status): New
11619 function.
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
11623 resuming.
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.
11632
28498c42
JB
116332014-01-01 Joel Brobecker <brobecker@adacore.com>
11634
11635 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11636 * gdbreplay.c (gdbreplay_version): Likewise.
11637
f45c82da
YZ
116382013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11639
11640 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11641 iov.iov_len with the real length in use.
11642
379a5e2d
JB
116432013-12-13 Joel Brobecker <brobecker@adacore.com>
11644
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.
11650
4210d83e
PA
116512013-12-13 Pedro Alves <palves@redhat.com>
11652
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.
11665
e7f0d979
YQ
116662013-12-11 Yao Qi <yao@codesourcery.com>
11667
11668 * notif.c (handle_notif_ack): Return 0 if no notification
11669 matches.
11670
ebcf782c
DE
116712013-11-20 Doug Evans <dje@google.com>
11672
11673 * linux-low.c (linux_set_resume_request): Fix comment.
11674
20ad9378
DE
116752013-11-20 Doug Evans <dje@google.com>
11676
11677 * linux-low.c (resume_status_pending_p): Tweak comment.
11678
a196ebeb
WT
116792013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11680
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
11694 function.
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.
11701
0080a2f6
TT
117022013-11-18 Tom Tromey <tromey@redhat.com>
11703
11704 * configure: Rebuild.
11705 * configure.ac: Don't check for stdlib.h.
11706 * gdbreplay.c: Unconditionally include stdlib.h.
11707
2978b111
TT
117082013-11-18 Tom Tromey <tromey@redhat.com>
11709
11710 * config.in: Rebuild.
11711 * configure: Rebuild.
11712 * configure.ac: Don't use AC_HEADER_DIRENT.
11713
a3d08894
TT
117142013-11-18 Tom Tromey <tromey@redhat.com>
11715
11716 * server.h: Don't check HAVE_STRING_H.
11717 * gdbreplay.c: Don't check HAVE_STRING_H.
11718 * configure: Rebuild.
11719
0a5dd17d
TT
117202013-11-18 Tom Tromey <tromey@redhat.com>
11721
11722 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11723 LIBGNU.
11724
1bd2f0ba
TT
117252013-11-08 Tom Tromey <tromey@redhat.com>
11726
11727 * configure, config.in: Rebuild.
11728 * configure.ac: Remove unused configury.
11729
3266f10b
TT
117302013-11-08 Tom Tromey <tromey@redhat.com>
11731
11732 * acinclude.m4: Include common.m4, codeset.m4.
11733 * configure, config.in: Rebuild.
11734 * configure.ac: Use GDB_AC_COMMON.
11735
6682d959
AA
117362013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11737
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'.
11741
fd0a4d76
SDJ
117422013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11743
11744 PR gdb/16014
11745 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11746 call to sizeof.
11747
1a3d890b
PA
117482013-10-02 Pedro Alves <palves@redhat.com>
11749
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
11753 through stdio.
11754
97ad4581
JB
117552013-10-01 Joel Brobecker <brobecker@adacore.com>
11756
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.
11760
5b4e221c
MF
117612013-09-28 Mike Frysinger <vapier@gentoo.org>
11762
11763 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11764 * config.in, configure: Regenerated.
11765
ee47b2f8
YQ
117662013-09-18 Yao Qi <yao@codesourcery.com>
11767
11768 PR server/15959
11769 * server.c (start_inferior): Clear 'resume_info'.
11770
d6707650 117712013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11772
d6707650
JW
11773 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11774 for each register.
11775
9243dd0e 117762013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11777
9243dd0e
JW
11778 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11779 linux-tile-low.o to srv_tgtobj.
11780
c623a6ef
WN
117812013-09-16 Will Newton <will.newton@linaro.org>
11782
11783 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11784 out regs.
11785
fb71d39e
PA
117862013-09-06 Pedro Alves <palves@redhat.com>
11787
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.
11794
8e7e9910
PA
117952013-09-06 Pedro Alves <palves@redhat.com>
11796
11797 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11798 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11799
7c3a12ca
PA
118002013-09-06 Pedro Alves <palves@redhat.com>
11801
11802 * linux-amd64-ipa.c: Include tracepoint.h.
11803 * linux-i386-ipa.c: Include tracepoint.h.
11804
8eb3d7b6
RW
118052013-09-06 Ricard Wanderlof <ricardw@axis.com>
11806
11807 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11808 (ps_get_thread_area): New function.
11809
eddddb9d
RW
118102013-09-06 Ricard Wanderlof <ricardw@axis.com>
11811
11812 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11813 (initialize_low_arch): Call init_registers_crisv32 rather than
11814 init_register_crisv32.
11815
533b0600
PA
118162013-09-05 Pedro Alves <palves@redhat.com>
11817
11818 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11819 to ...
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.
11823
0ce3d3b5
PA
118242013-09-05 Pedro Alves <palves@redhat.com>
11825
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.
11831
799cdc37
PA
118322013-09-05 Pedro Alves <palves@redhat.com>
11833
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".
11839
6a6bbd9d
PA
118402013-09-05 Pedro Alves <palves@redhat.com>
11841
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.
11852
f699aaba
PA
118532013-09-05 Pedro Alves <palves@redhat.com>
11854
11855 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11856 Move ...
72f4393d 11857 * ax.h: ... here.
f699aaba 11858
c144c7a0
PA
118592013-09-05 Pedro Alves <palves@redhat.com>
11860
11861 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11862 tracepoint.h.
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.
11882
ff42e6ab
PA
118832013-09-05 Pedro Alves <palves@redhat.com>
11884
11885 * server.h (perror_with_name, error, fatal, warning, paddress)
11886 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11887 include it.
11888 * utils.h: New file.
11889
541af0f4
PA
118902013-09-05 Pedro Alves <palves@redhat.com>
11891
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.
11907
eebdf26b
PA
119082013-09-05 Pedro Alves <palves@redhat.com>
11909
11910 * server.h (_): Delete.
11911
3aafd2ff
PA
119122013-09-02 Pedro Alves <palves@redhat.com>
11913
11914 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11915 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11916 allocated.
11917 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11918
cee83bcb
PM
119192013-09-02 Pierre Muller <muller@sourceware.org>
11920
11921 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11922 or WriteProcessMemory complete successfully and handle
11923 ERROR_PARTIAL_COPY error.
11924
9a13b2fa
PA
119252013-09-02 Pedro Alves <palves@redhat.com>
11926
11927 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11928 error instead of EIO.
11929
602e3198
JK
119302013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11931
11932 PR server/15604
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.
11941
96d7229d
LM
119422013-08-22 Luis Machado <lgustavo@codesourcery.com>
11943
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.
11968
32940073
PA
119692013-08-21 Pedro Alves <palves@redhat.com>
11970
11971 * config.in: Renegerate.
11972
33b60d58 119732013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 11974
33b60d58
LM
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.
11987
b8e1b30e
LM
119882013-08-13 Luis Machado <lgustavo@codesourcery.com>
11989
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
11994 PTRACE_TYPE_ARG4.
11995 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11996 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11997
7a60ad40
YQ
119982013-07-27 Jie Zhang <jie@codesourcery.com>
11999 Daniel Jacobowitz <dan@codesourcery.com>
12000 Yao Qi <yao@codesourcery.com>
12001
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
12006 srv_tgtobj.
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
12012 functions.
12013 (mips_remove_point, mips_stopped_by_watchpoint): New
12014 functions.
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.
12018
de6f69ad
YQ
120192013-07-27 Yao Qi <yao@codesourcery.com>
12020
12021 * i386-low.c: Include break-common.h.
12022 (enum target_hw_bp_type): Remove.
12023
3360c0bf
LM
120242013-07-24 Luis Machado <lgustavo@codesourcery.com>
12025
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.
12038
bd885420
YQ
120392013-07-04 Yao Qi <yao@codesourcery.com>
12040
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.
12046
12047 Revert:
12048 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12049
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).
12054
17ef446e
PA
120552013-07-03 Pedro Alves <palves@redhat.com>
12056
12057 * Makefile.in (config.status): Depend on development.sh.
12058 * acinclude.m4: Include libmcheck.m4.
12059 * configure: Regenerate.
12060
7a9a7487
MG
120612013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12062
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.
a261b8f5 12068
49b64de6
MG
120692013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12070
12071 * notif.h (notif_event): Add a dummy member to avoid compiler
12072 errors.
12073
d5749ee7
PA
120742013-07-01 Pedro Alves <palves@redhat.com>
12075
12076 * hostio.c (HOSTIO_PATH_MAX): Define.
12077 (require_filename, handle_open, handle_unlink, handle_readlink):
12078 Use it.
12079
d8d2a3ee
PA
120802013-07-01 Pedro Alves <palves@redhat.com>
12081
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
12085 MAXPATHLEN.
12086 * win32-low.c: Don't include sys/param.h.
12087 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12088
bc7dea8d
PA
120892013-07-01 Pedro Alves <palves@redhat.com>
12090
12091 * event-loop.c: Don't check HAVE_UNISTD_H before including
12092 <unistd.h>.
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.
12098
d6c2da54
TT
120992013-06-28 Tom Tromey <tromey@redhat.com>
12100
12101 * Makefile.in (version.c): Use version.in, not
12102 common/version.in.
12103
257b6bec
MG
121042013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12105
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).
12110
86ebe149
DK
121112013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12112
12113 Fix trace-status to output user name without trailing colon.
12114 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12115
f30aa5af
DK
121162013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12117
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.
12121
28a93511
YQ
121222013-06-26 Pedro Alves <pedro@codesourcery.com>
12123
12124 * tracepoint.c (build_traceframe_info_xml): Output trace state
12125 variables present in the trace buffer.
12126
01208463
TT
121272013-06-24 Tom Tromey <tromey@redhat.com>
12128
12129 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12130 create-version.sh.
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.
12136
760256f9
PA
121372013-06-12 Pedro Alves <palves@redhat.com>
12138
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.
12142
030031ee
PA
121432013-06-11 Pedro Alves <palves@redhat.com>
12144
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
12149 array here.
12150 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12151 comment.
12152
5da6eb0a
PA
121532013-06-11 Pedro Alves <palves@redhat.com>
12154
12155 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12156 xmalloc.
12157
7e5aaa09
PA
121582013-06-11 Pedro Alves <palves@redhat.com>
12159
12160 * linux-x86-low.c (initialize_low_arch): Call
12161 init_registers_x32_avx_linux.
12162
d878444c
JK
121632013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12164
12165 Fix compatibility with Android Bionic.
12166 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12167 it is not empty.
12168
3aee8918
PA
121692013-06-07 Pedro Alves <palves@redhat.com>
12170
5f2b57b5 12171 PR server/14823
3aee8918
PA
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
12176 interface.
12177 * linux-low.c (new_inferior): Delete.
12178 (disabled_regsets, num_regsets): Delete.
12179 (linux_add_process): Adjust to set the new per-process
12180 new_inferior flag.
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.
12188 Adjust to use it.
12189 (linux_register_in_regsets): New regs_info parameter. Adjust to
12190 use it.
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
12196 adjust to use it.
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
12215 description.
12216 * i387-fp.h (num_xmm_registers): Delete.
12217 * inferiors.c (add_thread): Don't install the thread's regcache
12218 here.
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
12230 process.
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
12248 parameter.
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
12255 declarations.
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
12262 declare.
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
12277 IPA's description.
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
12291 to new interface.
12292 (target_regsets): Rename to ...
12293 (x86_regsets): ... this.
12294 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12295 interface.
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):
12300 Declare.
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):
12329 Adjust.
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
12348 description.
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):
12398 Declare.
12399 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
12400 (arm_read_description): New, with bits factored from
12401 arm_arch_setup.
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
12463 globals.
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.
a261b8f5
PA
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.
3aee8918
PA
12483 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
12484 globals.
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'.
12521
b1fbec62
GB
125222013-06-04 Gary Benson <gbenson@redhat.com>
12523
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.
12530
d1ec4ce7
DE
125312013-05-31 Doug Evans <dje@google.com>
12532
ac44adcb 12533 PR server/15594
d1ec4ce7
DE
12534 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12535 64 bits in 64-cross-32 environment.
12536
9b25f2d3
PA
125372013-05-28 Pedro Alves <palves@redhat.com>
12538
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
12544 declaration.
12545
6740dc9c
PA
125462013-05-24 Pedro Alves <palves@redhat.com>
12547
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.
12551
c2d6af84
PA
125522013-05-23 Yao Qi <yao@codesourcery.com>
12553 Pedro Alves <palves@redhat.com>
12554
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
12572 stepping.
12573 * target.h (struct thread_resume) <step_range_start,
12574 step_range_end>: New fields.
12575 (struct target_ops) <supports_range_stepping>:
12576 New field.
12577 (target_supports_range_stepping): New macro.
12578
58794e1a
JB
125792013-05-17 Joel Brobecker <brobecker@adacore.com>
12580
12581 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12582 confusion in comment.
12583
d631c5a7
JB
125842013-05-17 Joel Brobecker <brobecker@adacore.com>
12585
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.
12592 Add comments.
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.
12598
96f7a20f
YQ
125992013-05-17 Yao Qi <yao@codesourcery.com>
12600
12601 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12602 the right place.
12603
db0dfaa0
LM
126042013-05-16 Luis Machado <lgustavo@codesourcery.com>
12605
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.
12613
68f5f838
SL
126142013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12615 Andrew Jenner <andrew@codesourcery.com>
12616
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.
12622
1ebff1fd
HAQ
126232013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12624
12625 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12626
f6150862
HZ
126272013-04-25 Hui Zhu <hui@codesourcery.com>
12628
12629 PR gdb/15186
f6150862
HZ
12630 * ax.c (ax_printf): Add fflush.
12631
614c279d
TT
126322013-04-22 Tom Tromey <tromey@redhat.com>
12633
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.
12639
7d4e5717
PA
126402013-04-17 Pedro Alves <palves@redhat.com>
12641
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.
12647
d5c93e41
PA
126482013-04-16 Pedro Alves <palves@redhat.com>
12649
12650 * linux-low.h (struct lwp_info) <thread_known>: Move under
12651 the USE_THREAD_DB #ifdef.
12652
04f5fe89
PA
126532013-04-16 Pedro Alves <palves@redhat.com>
12654
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
12660 HAVE_THREAD_DB_H.
12661
480b27bf
JK
126622013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12663
12664 * Makefile.in (install-only): Fix make install regression.
12665
43662968
JK
126662013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12667
12668 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12669 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12670 installation.
12671 * gdbserver.1: Remove.
12672
3e74e146
PA
126732013-03-22 Pedro Alves <palves@redhat.com>
12674
12675 * linux-low.c (handle_extended_wait): Don't call
12676 linux_enable_event_reporting.
12677
a8347a2a
TT
126782013-03-15 Tony Theodore <tonyt@logyst.com>
12679
12680 PR build/9098:
12681 * Makefile.in (SHELL): Use @SHELL@.
12682
eeb56fa7
SDJ
126832013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12684
12685 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12686 compiler warning.
12687
4fa7e2ff
JB
126882013-03-13 Joel Brobecker <brobecker@adacore.com>
12689
12690 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12691 Remove extraneous NULL element.
12692
8ddb1965
YQ
126932013-03-13 Yao Qi <yao@codesourcery.com>
12694
12695 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12696 'V' block in trace frame.
12697
9accd112
MM
126982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12699
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.
12725
5cc22e4c
MM
127262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12727
12728 * server.c (handle_qxfer): Preserve error message if -3 is
12729 returned.
12730 (qxfer): Document the -3 return value.
12731
7c97f91e
MM
127322013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12733
12734 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12735 (linux_btrace_h): New variable.
12736 (linux-btrace.o): New rule.
12737
be9a119c 127382013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
12739 Hafiz Abid Qadeer <abidh@codesourcery.com>
12740
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
12751 supported packets.
12752
e64f7499
YQ
127532013-03-07 Yao Qi <yao@codesourcery.com>
12754
12755 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12756 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12757 of -1.
12758 (cmd_qtsp): Adjust condition. Do post increment.
12759 Set cur_action and cur_step_action back to 0.
12760
f0ae6fc3
PA
127612013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12762
12763 PR server/15236
12764 * linux-low.c (linux_write_memory): Return early success if LEN is
12765 zero.
12766
b5b0b0af
CV
127672013-03-05 Corinna Vinschen <vinschen@redhat.de>
12768
334ad4a8 12769 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 12770
589bc927
TT
127712013-02-28 Tom Tromey <tromey@redhat.com>
12772
12773 * configure.ac: Invoke AC_SYS_LARGEFILE.
12774 * configure, config.in: Rebuild.
12775
dfe07582
CV
127762013-02-28 Corinna Vinschen <vinschen@redhat.com>
12777
12778 * win32-low.c: Throughout, fix format strings and casts of
12779 printf-like functions to avoid type related warnings on all
12780 platforms.
12781 (get_child_debug_event): Print dwDebugEventCode as hex since
12782 that's how it's usually documented.
12783
736cd585
YQ
127842013-02-28 Yao Qi <yao@codesourcery.com>
12785
12786 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12787 pulongest.
12788
e1f58301
JW
127892013-02-27 Jiong Wang <jiwang@tilera.com>
12790
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
12797 initializer.
12798 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12799 (tile_store_gregset): Likewise.
12800
d171ca78
YQ
128012013-02-27 Yao Qi <yao@codesourcery.com>
12802
12803 * server.c (process_point_options): Print debug message when
12804 debug_threads is true.
12805
282bbdf3
YQ
128062013-02-26 Yao Qi <yao@codesourcery.com>
12807
12808 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12809
aca22551
PA
128102013-02-19 Pedro Alves <palves@redhat.com>
12811 Kai Tietz <ktietz@redhat.com>
12812
12813 PR gdb/15161
12814
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.
12818
4f3cee1c
YQ
128192013-02-18 Yao Qi <yao@codesourcery.com>
12820
12821 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12822
8e1d55a3
PA
128232013-02-14 Pedro Alves <palves@redhat.com>
12824
12825 Plug memory leak.
12826
12827 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12828 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12829
458820da
PA
128302013-02-14 Pedro Alves <palves@redhat.com>
12831
12832 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12833
baea0dae
PA
128342013-02-14 Pedro Alves <palves@redhat.com>
12835
12836 * tracepoint.c (save_string): Delete.
12837 (add_tracepoint_action): Use savestring instead of save_string.
12838
0b1afbb3
PA
128392013-02-12 Pedro Alves <palves@redhat.com>
12840
12841 * linux-xtensa-low.c: Ditto.
12842 * xtensa-xtregs.c: Ditto.
12843
8a4ac37e
PA
128442013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12845
12846 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12847 thread_db.
12848
148de6bb
MS
128492013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12850
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.
12854
55fac6e0
MS
128552013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12856
12857 * linux-aarch64-low.c (ps_get_thread_area): Replace
12858 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12859
176eb98c
MS
128602013-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>
12864
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.
12869
56f7af9c
MS
128702013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12871
43aaf8b6 12872 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
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.
12880
60f662b0
YQ
128812013-01-25 Yao Qi <yao@codesourcery.com>
12882
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.
12894
5ae4861a
YQ
128952013-01-18 Yao Qi <yao@codesourcery.com>
12896
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.
12912
85e00e85
YQ
129132013-01-16 Yao Qi <yao@codesourcery.com>
12914
12915 * linux-low.c (linux_resume_one_lwp): Don't check
12916 'lwp->bp_reinsert != 0'.
12917
4039cf45
JB
129182013-01-07 Joel Brobecker <brobecker@adacore.com>
12919 Pedro Alves <palves@redhat.com>
12920
12921 * lynx-low.c (ptrace_request_to_str): Define a temporary
12922 macro and use it to simplify this function's implementation.
12923
9044dee2
JB
129242013-01-07 Joel Brobecker <brobecker@adacore.com>
12925
12926 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12927 sets errno.
12928
e6352c8f
JB
129292013-01-07 Joel Brobecker <brobecker@adacore.com>
12930
12931 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12932
50681a27
JB
129332013-01-07 Joel Brobecker <brobecker@adacore.com>
12934
12935 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12936
3f6e77ef
JB
129372013-01-07 Joel Brobecker <brobecker@adacore.com>
12938
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.
12946
7fda33ae
JB
129472013-01-07 Joel Brobecker <brobecker@adacore.com>
12948
12949 * lynx-low.c (lynx_resume): Delete variable ret.
12950
b9786c74
JB
129512013-01-01 Joel Brobecker <brobecker@adacore.com>
12952
12953 * gdbreplay.c (gdbreplay_version): Update copyright year.
12954 * server.c (gdbserver_version): Likewise.
12955
8b93d60f
JB
129562012-12-17 Joel Brobecker <brobecker@adacore.com>
12957
12958 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12959 new thread.
12960
037335a7
JB
129612012-12-17 Joel Brobecker <brobecker@adacore.com>
12962
12963 * lynx-low.c (ptrace_request_to_str): Add handling for
12964 PTRACE_GETTRACESIG.
12965
52d4cbd8
JB
129662012-12-17 Joel Brobecker <brobecker@adacore.com>
12967
12968 * lynx-low.c (lynx_attach): Delete variable new_process.
12969
ab8f6ca9
JB
129702012-12-17 Joel Brobecker <brobecker@adacore.com>
12971
12972 * lynx-low.c (lynx_create_inferior): Delete variable
12973 new_process.
12974
78cbc024
JB
129752012-12-17 Joel Brobecker <brobecker@adacore.com>
12976
12977 * lynx-low.c (ptrace_request_to_str): Do not handle
12978 PTRACE_GETTHREADLIST if this macro does not exist.
12979
14a00470
YQ
129802012-12-15 Yao Qi <yao@codesourcery.com>
12981
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.
12986 <base>: New field.
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.
13004
61c125b9
TT
130052012-12-10 Tom Tromey <tromey@redhat.com>
13006
13007 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13008 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13009 macros.
13010 (.c.o): Rewrite.
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.
13053
e90e9ad9
TT
130542012-12-05 Tom Tromey <tromey@redhat.com>
13055
13056 PR gdb/14917:
13057 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13058
02d403bf 130592012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
13060
13061 * configure.ac: Check for linux/perf_event.h.
13062 * config.in: Regenerated.
13063 * configure: Regenerated.
13064
0270a750
PA
130652012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13066
13067 * hostio.c (handle_readlink): Decrease buffer size
13068 parameter passed to readlink by one byte.
13069
8c29b58e
YQ
130702012-11-26 Yao Qi <yao@codesourcery.com>
13071
13072 * configure.ac (build_warnings): Append '-Wempty-body'.
13073 * configure: Regenerated.
13074 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13075 body.
13076
8bdce1ff
PM
130772012-11-15 Pierre Muller <muller@sourceware.org>
13078
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>
13086 header.
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.
13090
02d403bf 130912012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
13092
13093 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13094 (various make rules): Remove -DGDBSERVER
13095
fbd5db48
YQ
130962012-11-09 Yao Qi <yao@codesourcery.com>
13097
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.
13104
b3dc46ff
AB
131052012-10-01 Andrew Burgess <aburgess@broadcom.com>
13106
13107 * server.c (handle_search_memory_1): Include access length in
13108 warning message.
13109
07c04788
HPN
131102012-09-05 Michael Brandt <michael.brandt@axis.com>
13111
13112 * linux-crisv32-low.c: Fix compile errors.
13113
918d227b
YQ
131142012-09-04 Yao Qi <yao@codesourcery.com>
13115
13116 * tracepoint.c (cmd_qtsv): Adjust debug message.
13117 Don't check CUR_TPOINT.
13118
18c1b81a
YQ
131192012-08-28 Yao Qi <yao@codesourcery.com>
13120
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
13125 freeargv.
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'.
13129
dc82f37b
YQ
131302012-08-23 Yao Qi <yao@codesourcery.com>
13131
13132 * server.h: Remove declaration of 'xsnprintf'.
13133
406b1477
KS
131342012-08-22 Keith Seitz <keiths@redhat.com>
13135
13136 * server.h: Include build-gnulib-gbserver/config.h.
13137 * gdbreplay.c: Likewise.
13138
e6712ff1
DE
131392012-08-08 Doug Evans <dje@google.com>
13140
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".
13149
13150 * configure.ac: Add check for strstr.
13151 * config.in: Regenerate.
13152 * configure: Regenerate.
13153
7c3270ae
UW
131542012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13155
13156 * hostio.c (handle_pread): If pread fails, fall back to attempting
13157 lseek/read.
13158 (handle_pwrite): Likewise for pwrite.
13159
b62e2b27
UW
131602012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13161
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.
13165
78a99e91
PA
131662012-07-31 Pedro Alves <palves@redhat.com>
13167
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.
13171
fcf303ab
UW
131722012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13173
13174 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13175 to 4-byte-align HW breakpoint addresses for Thumb.
13176
7255706c
YQ
131772012-07-27 Yao Qi <yao@codesourcery.com>
13178
13179 PR remote/14161.
13180
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.
13193
5a3f286f
YQ
131942012-07-27 Yao Qi <yao@codesourcery.com>
13195
13196 * server.c (process_point_options): Stop at 'X' when parsing.
13197
961bd387
ME
131982012-07-19 Michael Eager <eager@eagercon.com>
13199
a261b8f5 13200 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
13201 to hw_execute.
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.
13205
aa7c7447
JK
132062012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13207
13208 * gdbserver/linux-low.c (initialize_low): Call
13209 linux_ptrace_init_warnings.
13210
7f216e7c
DE
132112012-07-02 Doug Evans <dje@google.com>
13212
13213 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13214 pointer to int.
13215
d3ce09f5
SS
132162012-07-02 Stan Shebs <stan@codesourcery.com>
13217
13218 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13219 (ax.o): Add it to build rule.
13220 (ax-ipa.o): Ditto.
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
13226 effect.
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
13239 locally.
13240 * ax.c: Include format.h.
13241 (ax_printf): New function.
13242 (gdb_eval_agent_expr): Add printf opcode.
13243
2f8f6aed
YQ
132442012-06-13 Yao Qi <yao@codesourcery.com>
13245
13246 * server.c (start_inferior): Remove duplicated writes to fields
13247 'last_resume_kind' and 'last_status' of 'current_inferior'.
13248
0c9070b3
YQ
132492012-06-12 Yao Qi <yao@codesourcery.com>
13250 Pedro Alves <palves@redhat.com>
13251
13252 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13253 comment.
13254 * server.c (handle_v_cont): Extend comment.
13255
c52daf70
YQ
132562012-06-11 Yao Qi <yao@codesourcery.com>
13257
13258 * linux-low.c (linux_attach): Add 'static'.
13259
d38bbb0a
YQ
132602012-06-06 Yao Qi <yao@codesourcery.com>
13261
13262 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13263
89dc0afd
JK
132642012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13265
13266 Fix gcc -flto compilation warning.
13267 * server.c (main): Make variable multi_mode and attach volatile.
13268
75f62ce7
TJB
132692012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13270
13271 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13272 if the platform doesn't know about it.
13273
65f479b6
PA
132742012-05-30 Jeff Kenton <jkenton@tilera.com>
13275
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.
13280
0c5bf5a9
JK
132812012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13282
13283 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13284
a493e3e2
PA
132852012-05-24 Pedro Alves <palves@redhat.com>
13286
13287 PR gdb/7205
13288
43aaf8b6 13289 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 13290
2ea28649
PA
132912012-05-24 Pedro Alves <palves@redhat.com>
13292
13293 PR gdb/7205
13294
13295 Replace target_signal with gdb_signal throughout.
13296
8d409d16
MR
132972012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13298
13299 * linux-low.c (linux_store_registers): Avoid the copying sequence
13300 when no data has been retrieved by ptrace.
13301
23512c01
MGD
133022012-05-22 Will Deacon <will.deacon@arm.com>
13303
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
13307 already defined.
13308
4934b29e
MR
133092012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13310
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.
13314
bde24c0a
PA
133152012-05-11 Yao Qi <yao@codesourcery.com>
13316 Pedro Alves <palves@redhat.com>
13317
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
13326 recursion happens.
13327
623b6bdf
YQ
133282012-04-29 Yao Qi <yao@codesourcery.com>
13329
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.
13338
f15f9948
TJB
133392012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13340
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.
13354
38ea300a
PA
133552012-04-20 Pedro Alves <palves@redhat.com>
13356
13357 * configure: Regenerate.
13358
c971b7fa
PA
133592012-04-19 Pedro Alves <palves@redhat.com>
13360
43aaf8b6 13361 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 13362 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
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.
13367 (subdir_do): New.
13368 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 13369 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
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
13373 ACX_CONFIGURE_DIR.
13374 (GNULIB): New.
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.
c971b7fa 13382
809277f8
PA
133832012-04-19 Pedro Alves <palves@redhat.com>
13384
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.
13392
fd9bb8b8
PA
133932012-04-19 Pedro Alves <palves@redhat.com>
13394
13395 * Makefile.in (generated_files): New.
13396 (server_h): Remove the explicit dependency on config.h, and depend
13397 on $generated_files.
13398
1c298c66
PA
133992012-04-19 Pedro Alves <palves@redhat.com>
13400
13401 * Makefile.in (INCGNU): Add -Ignulib.
13402
57c4b50b
PA
134032012-04-19 Pedro Alves <palves@redhat.com>
13404
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.
13410
1030e047
PA
134112012-04-19 Pedro Alves <palves@redhat.com>
13412
13413 * config.in: Regenerate.
13414
447d4319
PA
134152012-04-19 Pedro Alves <palves@redhat.com>
13416
13417 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
13418 * server.h (memmem): Remove declaration.
13419 * config.in: Regenerate.
13420 * configure: Regenerate.
13421
aad9eab9
YQ
134222012-04-19 Yao Qi <yao@codesourcery.com>
13423
13424 * Makefile.in (SFILES): Add common/vec.c.
13425 (OBS): Add vec.o.
13426 (vec.o): New rule.
13427
3e10640f
YQ
134282012-04-19 Yao Qi <yao@codesourcery.com>
13429
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.
13434
71622373
PA
134352012-04-18 Pedro Alves <palves@redhat.com>
13436
13437 * aclocal.m4: Regenerate.
13438 * configure: Regenerate.
13439
80d26939
YQ
134402012-04-16 Yao Qi <yao@codesourcery.com>
13441
13442 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
13443 duplicated on address.
13444
42476b70
YQ
134452012-04-16 Yao Qi <yao@codesourcery.com>
13446
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'.
13455 Update callers.
13456 (tracepoint_send_agent): New.
13457 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
13458
7bc83639
YQ
134592012-04-16 Yao Qi <yao@codesourcery.com>
13460
13461 * tracepoint.c (download_tracepoints): Moved to ...
13462 (cmd_qtstart): ... here.
13463
5f18041e
YQ
134642012-04-14 Yao Qi <yao@codesourcery.com>
13465
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.
13473
55a8c076
YQ
134742012-04-14 Yao Qi <yao@codesourcery.com>
13475
13476 Import gnulib module inttypes.
13477 * aclocal.m4, config.in, configure: Regenerated.
13478
dc750257
YQ
134792012-04-14 Yao Qi <yao@codesourcery.com>
13480
13481 * Makefile.in (maintainer-clean, realclean, distclean): Remove
13482 Makefile and config.status at last.
13483
0ab5faf9
YQ
134842012-04-13 Yao Qi <yao@codesourcery.com>
13485
13486 * tracepoint.c: Include stdint.h unconditionally.
13487
18f5fd81
TJB
134882012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13489
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.
13495
4d47af5c
L
134962012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13497
13498 * Makefile.in (clean): Also remove x32.c x32-linux.c
13499 x32-avx.c x32-avx-linux.c.
13500 (x32.o): New target.
13501 (x32.c): Likewise.
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.
13508
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.
13515
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.
13520
ecedbe58
PA
135212012-04-13 Pedro Alves <palves@redhat.com>
13522
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
13527 the sub-make.
13528
c92b5177
L
135292012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13530
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.
13539
214d508e
L
135402012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13541
13542 PR gdb/13969
13543 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13544 e_machine field.
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.
13549
c9a1864a
YQ
135502012-04-12 Yao Qi <yao@codesourcery.com>
13551
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.
13563
367ba2c2
MR
135642012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13565
13566 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13567
9d236627
PA
135682012-04-05 Pedro Alves <palves@redhat.com>
13569
13570 -Werror=strict-aliasing
13571
13572 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13573 pointer.
13574
111217b3
PA
135752012-04-04 Pedro Alves <palves@redhat.com>
13576
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.
13580
8365dcf5
TJB
135812012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13582
13583 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13584 are available.
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.
13589
689cc2ae
PA
135902012-03-29 Pedro Alves <palves@redhat.com>
13591
13592 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13593 Correct ptrace arguments.
13594
c14dfd32
PA
135952012-03-28 Pedro Alves <palves@redhat.com>
13596
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
13603 field.
13604 * linux-low.c (linux_fetch_registers): Try the
13605 the_low_target.fetch_register hook first.
13606
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.
13621
63c88e13
PA
136222012-03-26 Pedro Alves <palves@redhat.com>
13623
13624 * server.c (handle_qxfer_libraries): Don't bail early if
13625 the_target->qxfer_libraries_svr4 is not NULL.
13626
fb723180
PA
136272012-03-26 Pedro Alves <palves@redhat.com>
13628
13629 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13630
0afae3cf
PA
136312012-03-23 Pedro Alves <palves@redhat.com>
13632
13633 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13634 "library-list-svr4" element's start tag when the the DSO list is
13635 empty.
13636
485f1ee4
PA
136372012-03-23 Pedro Alves <palves@redhat.com>
13638
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
13641 size.
13642
a5362b9a
TS
136432012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13644
13645 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13646 struct siginfo.
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
13652 struct siginfo.
13653
d226c142
MF
136542012-03-21 Mike Frysinger <vapier@gentoo.org>
13655
13656 * .gitignore: Ignore more files.
13657
122f36ef
PA
136582012-03-19 Pedro Alves <palves@redhat.com>
13659 Jan Kratochvil <jan.kratochvil@redhat.com>
13660
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
13664 of a process.
13665
fc3e5175
YQ
136662012-03-15 Yao Qi <yao@codesourcery.com>
13667
13668 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13669 handling to ...
13670 (cmd_qtdp): ... here.
13671
8d0d92cd
YQ
136722012-03-15 Yao Qi <yao@codesourcery.com>
13673
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.
13683
87b0bb13
JK
136842012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13685
13686 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13687 linux_ptrace_attach_warnings.
13688
5f572dec
JK
136892012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13690
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
13697 of these targets.
13698 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13699
f4647387
YQ
137002012-03-08 Yao Qi <yao@codesourcery.com>
13701 Pedro Alves <palves@redhat.com>
13702
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.
13708
9b224c5e
PA
137092012-03-07 Pedro Alves <palves@redhat.com>
13710
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
13714 ptrace call.
13715 * server.c (program_signals, program_signals_p): New.
13716 (handle_general_set): Handle QProgramSignals.
13717 * server.h (program_signals, program_signals_p): Declare.
13718
e237a7e2
JK
137192012-03-05 Pedro Alves <palves@redhat.com>
13720 Jan Kratochvil <jan.kratochvil@redhat.com>
13721
13722 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13723 New comment why.
13724
5808517f
YQ
137252012-03-03 Yao Qi <yao@codesourcery.com>
13726
13727 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13728 agent_look_up_symbols.
13729
58b4daa5
YQ
137302012-03-03 Yao Qi <yao@codesourcery.com>
13731
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
13736 common/agent.c.
13737 Update callers.
13738
8ffcbaaf
YQ
137392012-03-03 Yao Qi <yao@codesourcery.com>
13740
13741 * tracepoint.c (gdb_agent_capability): New global.
13742 (in_process_agent_loaded_ust): Renamed to
13743 `in_process_agent_supports_ust'.
13744 Update callers.
13745 (in_process_agent_supports_ust): Call agent_capability_check.
13746 (clear_installed_tracepoints): Assert that agent supports
13747 agent.
13748
d1feda86
YQ
137492012-03-03 Yao Qi <yao@codesourcery.com>
13750
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.
13759
2fa291ac
YQ
137602012-03-03 Yao Qi <yao@codesourcery.com>
13761
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
13768 common/agent.c.
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.
13780
05044653
PA
137812012-03-02 Pedro Alves <palves@redhat.com>
13782
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.
13790
8d00225b
YQ
137912012-03-02 Yao Qi <yao@codesourcery.com>
13792
13793 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13794 debug log.
13795
19560ba5
YQ
137962012-03-02 Yao Qi <yao@codesourcery.com>
13797
13798 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13799 `stop_pc' and `tpoint'. Update caller.
13800
1faeff08
MR
138012012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13802
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
13809 regsets.
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
13816 prototype.
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
13828 than mips_regmap.
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
13833 initializer.
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
13850 srv_xmlfiles.
13851 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13852 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13853
c03e6ccc
YQ
138542012-02-29 Yao Qi <yao@codesourcery.com>
13855 Pedro Alves <palves@redhat.com>
13856
13857 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13858 `step_over_finished' is true.
13859
644cebc9
PA
138602012-02-27 Pedro Alves <palves@redhat.com>
13861
13862 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13863 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13864
c14d7ab2
PA
138652012-02-27 Pedro Alves <palves@redhat.com>
13866
13867 PR server/9684
13868 * linux-low.c (pid_is_stopped): New.
13869 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13870
412c89dd
LM
138712012-02-25 Luis Machado <lgustavo@codesourcery.com>
13872
13873 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13874 of conditions.
13875
b745defe
MR
138762012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13877
13878 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13879
9f3a5c85
LM
138802012-02-24 Luis Machado <lgustavo@codesourcery>
13881
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.
13887
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
13893 conditions.
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.
13900
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.
13905
13906 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13907 (need_step_over_p): Take target-side breakpoint condition into
13908 consideration.
13909
5e1dc496
LM
139102012-02-24 Luis Machado <lgustavo@codesourcery>
13911
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.
13917
13918 * ax.h: New include file.
13919 * ax.c: New source file.
13920
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
13926 to ax.h.
13927 (unparse_agent_expr) Rename to ...
13928 (gdb_unparse_agent_expr): ... this, make it non-static and move
13929 to ax.h.
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
13948 and move to ax.c.
13949 (eval_tracepoint_agent_expr): New function.
13950 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 13951 non-static.
5e1dc496
LM
13952 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13953 ax.c.
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 (...).
13968
13969 * Makefile.in: Update ax.c and IPA dependencies.
13970
277e4e52
PA
139712012-02-24 Pedro Alves <palves@redhat.com>
13972
13973 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13974 (cmd_bigqtbuffer_circular): ... this. Only handle
13975 'QTBuffer:circular:'.
13976 (handle_tracepoint_general_set): Adjust.
13977
bf4c19f7
YQ
139782012-02-16 Yao Qi <yao@codesourcery.com>
13979
13980 * inferiors.c: Move code to ...
13981 * dll.c: .... here. New.
13982 * server.h: Declare clear_dlls.
13983 * Makefile.in (SFILES): Add dll.c.
13984 (OBS): Add dll.o
13985 (dll.o): New rule.
13986
d73f2619
YQ
139872012-02-11 Yao Qi <yao@codesourcery.com>
13988
13989 * server.c: (handle_monitor_command): Add a new parameter
13990 `own_buf'.
13991 (handle_query): Update caller.
13992
f8255c2a
JB
139932012-02-09 Joel Brobecker <brobecker@adacore.com>
13994
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
13998 is not defined.
13999
da84f473
PA
140002012-02-02 Pedro Alves <palves@redhat.com>
14001
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.
14007
e886a173
PA
140082012-02-02 Pedro Alves <palves@redhat.com>
14009
14010 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14011 inferior.
14012
be07f1a2
PA
140132012-01-27 Pedro Alves <palves@redhat.com>
14014
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.
14023
d8301ad1
JK
140242012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14025
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.
14030
01b17894
PA
140312012-01-23 Pedro Alves <palves@redhat.com>
14032
14033 * server.c (main): Avoid yet another case of infinite loop while
14034 detaching/killing after a longjmp.
14035
e825046f
JK
140362012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14037
14038 Code cleanup.
14039 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14040
b9e7b9c3
UW
140412012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14042
14043 * hostio.c (handle_readlink): New function.
14044 (handle_vFile): Call it to handle "vFile:readlink" packets.
14045
901f9912
UW
140462012-01-20 Pedro Alves <palves@redhat.com>
14047 Ulrich Weigand <ulrich.weigand@linaro.org>
14048
14049 * server.c (handle_v_requests): Only support vAttach and vRun to
14050 start multiple processes when in extended protocol mode.
14051
fc1ab1a0
PA
140522012-01-17 Pedro Alves <palves@redhat.com>
14053
14054 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14055 memalign plus mprotect to allocate the scratch buffer.
14056
7d5d4e98
PA
140572012-01-13 Pedro Alves <palves@redhat.com>
14058
14059 * server.c (attach_inferior): Clear `cont_thread'.
14060
f128d5e9
PA
140612012-01-13 Pedro Alves <palves@redhat.com>
14062
14063 * server.c (main): Avoid infinite loop while detaching/killing
14064 after a longjmp.
14065
06db92f0
DE
140662012-01-09 Doug Evans <dje@google.com>
14067
14068 * server.c (start_inferior): Set last_ptid in --wrapper case.
14069
32d92999
YQ
140702012-01-06 Yao Qi <yao@codesourcery.com>
14071
14072 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14073 defined.
14074 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14075
5e0a92a9
YQ
140762012-01-04 Yao Qi <yao@codesourcery.com>
14077
14078 * tracepoint.c (cmd_qtdp): Print debug message
14079 for static tracepoint.
14080
ae639e8c
YQ
140812012-01-04 Yao Qi <yao@codesourcery.com>
14082
14083 * tracepoint.c (trace_vdebug): Differentiate debug message
14084 between gdbserver and IPA.
14085
f72429c5
YQ
140862012-01-03 Yao Qi <yao@codesourcery.com>
14087
14088 * tracepoint.c (tracepoint_was_hit): Don't collect for
14089 static tracepoint.
14090
12c3e59c
JB
140912012-01-02 Joel Brobecker <brobecker@adacore.com>
14092
14093 * terminal.h: Reformat copyright header.
14094
67827812
JB
140952012-01-02 Joel Brobecker <brobecker@adacore.com>
14096
14097 * server.c (gdbserver_version): Update copyright year.
14098 * gdbreplay.c (gdbreplay_version): Likewise.
14099
3e52c33d
JK
141002011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14101
14102 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14103
14104 Revert:
14105 2011-12-18 Hui Zhu <teawater@gmail.com>
14106 * linux-low.c (linux_create_inferior): Save return value to ret.
14107
66f1260e
HZ
141082011-12-18 Hui Zhu <teawater@gmail.com>
14109
14110 * linux-low.c (linux_create_inferior): Save return value to ret.
14111
e77616d7
DE
141122011-12-16 Doug Evans <dje@google.com>
14113
e7b06c57
DE
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.
14127
e77616d7
DE
14128 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14129 in debugging output.
14130
82067193
YQ
141312011-12-15 Yao Qi <yao@codesourcery.com>
14132
14133 * tracepoint.c: Include sys/syscall.h.
14134 (gdb_ust_thread): Remove preprocessor conditional.
14135
82bfbe7e
PA
141362011-12-14 Pedro Alves <pedro@codesourcery.com>
14137
14138 * linux-low.c (linux_detach_one_lwp): Call
14139 the_low_target.prepare_to_resume before detaching.
14140
712c6575
YQ
141412011-12-14 Yao Qi <yao@codesourcery.com>
14142
14143 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14144 of write.
14145
d54d1edf
YQ
141462011-12-14 Yao Qi <yao@codesourcery.com>
14147
14148 * i386-low.c (i386_low_stopped_data_address): Initialize local
14149 variable `control'.
14150
6210a125
PA
141512011-12-13 Pedro Alves <pedro@codesourcery.com>
14152
14153 PR remote/13492
14154
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.
14159
2ece8244
YQ
141602011-12-13 Yao Qi <yao@codesourcery.com>
14161
14162 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14163 macros.
14164 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14165
784867a5
JK
141662011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14167
14168 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14169 Print new debug message for such case.
14170
6bf36717
JK
141712011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14172
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
14184 buffers.
14185
50275556
MR
141862011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14187
14188 * linux-low.c (fetch_register, store_register): Make code
14189 consistent, fix formatting.
14190
7325beb4
MR
141912011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14192
14193 * linux-low.c (usr_store_inferior_registers): Factor out code
14194 to handle individual registers into...
14195 (store_register): ... this new function.
14196
c642a434
UW
141972011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14198
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.
14207
14208 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14209 and <sys/uio.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
14228 register sets.
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.
14233
2268b414
JK
142342011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14235 Jan Kratochvil <jan.kratochvil@redhat.com>
14236
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):
14239 New.
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.
14250
d6db1fab
UW
142512011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14252
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.
14258
242f5f1c
SS
142592011-11-24 Stan Shebs <stan@codesourcery.com>
14260
14261 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14262
f196051f
SS
142632011-11-17 Stan Shebs <stan@codesourcery.com>
14264
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.
14279
405f8e94
SS
142802011-11-14 Stan Shebs <stan@codesourcery.com>
14281 Kwok Cheung Yeung <kcy@codesourcery.com>
14282
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
14294 arguments.
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
14309 structure.
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
14315 pad space.
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.
14330
1e4d1764
YQ
143312011-11-14 Yao Qi <yao@codesourcery.com>
14332
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.
14339
5c73ff4e
YQ
143402011-11-14 Yao Qi <yao@codesourcery.com>
14341
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.
14346 New.
14347 (download_tracepoints): Move some code to ...
14348 (download_tracepoint_1): ... here. New.
14349
86a30030
YQ
143502011-11-08 Yao Qi <yao@codesourcery.com>
14351
14352 * remote-utils.c (relocate_instruction): A comment fix.
14353
8d26e50c
JB
143542011-11-07 Joel Brobecker <brobecker@adacore.com>
14355
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.
14364
a59306a3
YQ
143652011-11-05 Yao Qi <yao@codesourcery.com>
14366
14367 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14368 address as TPOINT's.
14369
3065dfb6
SS
143702011-11-02 Stan Shebs <stan@codesourcery.com>
14371
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.
14375
fd0d8c7c
YQ
143762011-11-02 Yao Qi <yao@codesourcery.com>
14377
14378 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14379
609086b1
YQ
143802011-11-02 Yao Qi <yao@codesourcery.com>
14381
14382 * target.h: Fix a typo in comment.
14383
b9fd1791
PA
143842011-10-31 Pedro Alves <pedro@codesourcery.com>
14385
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
14390 check_mem_write.
14391
03583c20
UW
143922011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14393
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.
14411
723b724b
MF
144122011-09-29 Mike Frysinger <vapier@gentoo.org>
14413
14414 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
14415 ifdef check.
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.
14424
55329a5c 144252011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
14426
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.
14436
55329a5c 144372011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
14438
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.
14468
6b9801d4
SS
144692011-09-15 Stan Shebs <stan@codesourcery.com>
14470
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.
14496
bf15cbda
SS
144972011-09-08 Stan Shebs <stan@codesourcery.com>
14498
14499 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14500 (i386_emit_epilogue): Restore %ebx.
14501
943ca1dd
JZ
145022011-08-31 Jie Zhang <jzhang918@gmail.com>
14503
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.
14508
e3deef73
LM
145092011-08-24 Luis Machado <lgustavo@codesourcery.com>
14510
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.
14516
13da1c97
LM
145172011-08-24 Luis Machado <lgustavo@codesourcery.com>
14518
14519 * configure.srv: Add linux-procfs.o dependencies.
14520
881127c9
YQ
145212011-08-14 Yao Qi <yao@codesourcery.com>
14522
14523 * target.h (struct target_ops): Fix indent.
14524 * win32-low.c (win32_target_ops): Fix comment.
14525
58dbd541
YQ
145262011-08-14 Andrew Jenner <andrew@codesourcery.com>
14527 Yao Qi <yao@codesourcery.com>
14528
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.
14536
78d85199
YQ
145372011-08-14 Andrew Stubbs <ams@codesourcery.com>
14538 Yao Qi <yao@codesourcery.com>
14539
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.
43aaf8b6
PA
14546 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14547 to NULL.
78d85199 14548
a959a88d
EZ
145492011-08-05 Eli Zaretskii <eliz@gnu.org>
14550
14551 * win32-low.c: Include <stdint.h>.
14552
1ced966e
PA
145532011-07-22 Pedro Alves <pedro@codesourcery.com>
14554
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.
14564
d26e3629
KY
145652011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14566
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
14581 common/ptid.h.
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
14599 common/buffer.h.
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.
14603
2275a1a7
PA
146042011-07-20 Pedro Alves <pedro@codesourcery.com>
14605
14606 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14607 symbol error.
14608
0a5b1e09
PA
146092011-05-31 Pedro Alves <pedro@codesourcery.com>
14610
14611 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14612 assertion.
14613 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14614
6938fd34
YQ
146152011-05-26 Yao Qi <yao@codesourcery.com>
14616
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.
14620
b481f9e0
TT
146212011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14622
14623 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14624 __FILE__ and __LINE__ to internal_error.
14625
98a5dd13
DE
146262011-05-13 Doug Evans <dje@google.com>
14627
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.
14633
d248b706
KY
146342011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14635
14636 * server.c (handle_query): Add EnableDisableTracepoints to the list
14637 of supported features.
43aaf8b6 14638 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 14639 tracepoints.
43aaf8b6
PA
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
14646 tracepoints.
14647 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 14648
84e578fb
DE
146492011-05-10 Doug Evans <dje@google.com>
14650
14651 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14652
71f55dd8
DE
146532011-05-04 Doug Evans <dje@google.com>
14654
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
14659 directly.
14660
4d393d60
JM
146612011-05-04 Joseph Myers <joseph@codesourcery.com>
14662
14663 * README: Don't mention xscale*-*-linux*.
14664 * configure.srv (xscale*-*-linux*): Don't handle target.
14665
b00ad6ff
NF
146662011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14667
14668 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14669 casting pointers.
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.
14673
af96c192
YQ
146742011-04-26 Yao Qi <yao@codesourcery.com>
14675
43aaf8b6
PA
14676 * linux-low.c: Move common macros to linux-ptrace.h.
14677 Include linux-ptrace.h.
af96c192
YQ
14678 * Makefile.in (linux_ptrace_h): New.
14679 (linux-low.o): Depends on linux-ptrace.h.
14680
03f2bd59
JK
146812011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14682
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.
14693
7a9dd1b2
TT
146942011-04-19 Tom Tromey <tromey@redhat.com>
14695
14696 * win32-low.c (handle_load_dll): Remove duplicate "the".
14697
81239425
PM
146982011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14699
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
14704 warning.
14705
9e0627f1
PM
147062011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14707
14708 * gdbserver/server.h (Macro _): Define it if not available.
14709
588eebee
MS
147102011-03-14 Michael Snyder <msnyder@vmware.com>
14711
348af9f7 14712 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 14713
43f70d4c
JB
147142011-03-10 Joel Brobecker <brobecker@adacore.com>
14715
14716 * Makefile.in (maintainer-clean realclean distclean): Remove
14717 "make ... subdir_do" command.
14718
348af9f7
MS
147192011-03-10 Michael Snyder <msnyder@vmware.com>
14720
14721 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14722
14723 * server.c (handle_v_run): Free alloced buffer on early return.
14724
e637a4f5
YQ
147252011-03-09 Yao Qi <yao@codesourcery.com>
14726
14727 Revert:
14728 2011-03-04 Yao Qi <yao@codesourcery.com>
14729
14730 * Makefile.in: Remove GNU make feature --directory.
14731
14732 2011-03-05 Yao Qi <yao@codesourcery.com>
14733
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.
14738
14739 2011-02-11 Yao Qi <yao@codesourcery.com>
14740
14741 * configure.ac: Call AC_PROG_RANLIB.
14742 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14743 * configure: Regenerate.
14744
e6edda56
JK
147452011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14746
14747 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14748
e5141119
JB
147492011-03-06 Yao Qi <yao@codesourcery.com>
14750
14751 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14752
64794aa4
JB
147532011-03-05 Yao Qi <yao@codesourcery.com>
14754
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.
14759
7a762829
YQ
147602011-03-04 Yao Qi <yao@codesourcery.com>
14761
14762 * Makefile.in: Remove GNU make feature --directory.
14763
348af9f7
MS
147642011-03-04 Michael Snyder <msnyder@vmware.com>
14765
14766 * server.c (queue_stop_reply): Call xmalloc not malloc.
14767
147682011-03-02 Michael Snyder <msnyder@vmware.com>
14769
14770 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14771
9f72fee2
MS
147722011-02-28 Michael Snyder <msnyder@vmware.com>
14773
588eebee
MS
14774 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14775 (cmd_qtframe): Ditto.
14776 (cmd_qtbuffer): Ditto.
14777 (cmd_bigqtbuffer): Ditto.
14778
9f72fee2
MS
14779 * utils.c (decimal2str): Initialize 'width' to nine, then
14780 don't mess with it.
14781
8040bd49
UW
147822011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14783
14784 * hostio.c (require_data): Free *data, not data.
14785
7e52cbd0
JK
147862011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14787
14788 * hostio.c (require_data): Use free, not xfree.
14789
9130f83e
MS
147902011-02-27 Michael Snyder <msnyder@vmware.com>
14791
4b812f4e
MS
14792 * server.c (handle_query): Discard unused value.
14793
9130f83e
MS
14794 * hostio.c (require_data): Free malloc memory before returning
14795 error.
14796
69d37113
MS
147972011-02-26 Michael Snyder <msnyder@vmware.com>
14798
14799 * linux-low.c (list_threads): Call closedir for dirent.
14800
35f5825a
MS
148012011-02-27 Michael Snyder <msnyder@vmware.com>
14802
2a589cef
MS
14803 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14804 a case statement falls through.
14805
0adea5f7
MS
14806 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14807
35f5825a
MS
14808 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14809 in comparison.
14810
238f1c74
MS
148112011-02-26 Michael Snyder <msnyder@vmware.com>
14812
14813 * utils.c (decimal2str): Eliminate dead code and dead param.
14814 (pulongest): Drop dead param from call to decimal2str.
14815 (plongest): Ditto.
14816
633ff500
JB
148172011-02-24 Joel Brobecker <brobecker@adacore.com>
14818
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.
14823
f9c6ff72
HZ
148242011-02-21 Hui Zhu <teawater@gmail.com>
14825
14826 * tracepoint.c (tp_printf): New function.
14827 (eval_agent_expr): Handle gdb_agent_op_printf.
14828
94d5e490
TT
148292011-02-18 Tom Tromey <tromey@redhat.com>
14830
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.
14835
c7f96d2b
TT
148362011-02-18 Tom Tromey <tromey@redhat.com>
14837
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
14842 cases.
14843
0feedb2c
JK
148442011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14845
14846 * aclocal.m4: Regenerated with aclocal-1.11.1.
14847
b3b9301e
PA
148482011-02-14 Pedro Alves <pedro@codesourcery.com>
14849
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,
14856 and use it.
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.
14862
4f3e6fb7
YQ
148632011-02-11 Yao Qi <yao@codesourcery.com>
14864
14865 * configure.ac: Call AC_PROG_RANLIB.
14866 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14867 * configure: Regenerate.
14868
764880b7
PA
148692011-02-07 Pedro Alves <pedro@codesourcery.com>
14870
14871 * server.c (gdb_read_memory): Change return semantics to allow
14872 partial transfers.
14873 (handle_search_memory_1): Adjust.
14874 (process_serial_event) <'m' packet>: Handle partial transfers.
14875 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14876
1c79eb8a
PA
148772011-01-28 Pedro Alves <pedro@codesourcery.com>
14878
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
14894 supply_register.
14895 * tracepoint.c (fetch_traceframe_registers): Update comment.
14896
85724a0e
PA
148972011-01-28 Pedro Alves <pedro@codesourcery.com>
14898
14899 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14900 buffer explicit.
14901
d08aafef
PA
149022011-01-25 Pedro Alves <pedro@codesourcery.com>
14903
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.
14922
493e2a69
MS
149232011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14924
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.
14936 * server.c: Ditto.
14937 * server.h: Ditto.
14938 * thread-db.c: Ditto.
14939 * tracepoint.c: Ditto.
14940 * utils.c: Ditto.
14941 * win32-low.h: Ditto.
14942
44944448
JB
149432011-01-05 Joel Brobecker <brobecker@adacore.com>
14944
14945 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14946 update.
14947
71ce852c
JB
149482011-01-01 Joel Brobecker <brobecker@adacore.com>
14949
14950 * server.c (gdbserver_version): Update copyright year in version
14951 output.
14952 * gdbreplay.c (gdbreplay_version): Ditto.
14953
eb826dc6
MF
149542010-12-29 Jie Zhang <jie.zhang@analog.com>
14955
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.
14964
39ab222a
MF
149652010-12-23 Mike Frysinger <vapier@gentoo.org>
14966
14967 * .gitignore: New file.
14968
a1f2ce7d
MF
149692010-11-16 Mike Frysinger <vapier@gentoo.org>
14970
14971 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14972
f474844c
JZ
149732010-10-22 Jie Zhang <jie@codesourcery.com>
14974
14975 * Makefile.in: Add FLAGS_TO_PASS variable.
14976 (install): Remove dependency of install-only and recursively
14977 invoke make for install-only.
14978
f1048712
DE
149792010-10-04 Doug Evans <dje@google.com>
14980
14981 * Makefile.in (uninstall): Use $(DESTDIR).
14982
b53a1623
PA
149832010-09-24 Pedro Alves <pedro@codesourcery.com>
14984
e6ee044d
PA
14985 PR gdb/11842
14986
b53a1623
PA
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
14990 si_code < 0.
14991
fa1bd1e4
JB
149922010-09-13 Joel Brobecker <brobecker@adacore.com>
14993
14994 * lynx-i386-low.c: New file.
14995 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14996
47fac8f8
JB
149972010-09-13 Joel Brobecker <brobecker@adacore.com>
14998
14999 * lynx-low.c (ptrace_request_to_str): Remove handling for
15000 request values that have been removed in LynxOS 5.x.
15001
1adfc54d
JB
150022010-09-13 Joel Brobecker <brobecker@adacore.com>
15003
15004 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15005 <ptrace.h>
15006
c2a66c29
NS
150072010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15008
15009 * configure.ac: Add --enable-inprocess-agent option.
15010 * configure: Rebuilt.
15011
32fcada3
YQ
150122010-09-06 Yao Qi <yao@codesourcery.com>
15013
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.
15019
0cccb683
YQ
150202010-09-06 Yao Qi <yao@codesourcery.com>
15021
15022 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15023 on return.
15024
423ec54c
JK
150252010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15026
15027 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15028
12ac6819
PA
150292010-09-06 Pedro Alves <pedro@codesourcery.com>
15030
15031 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15032 "$(IPA_DEPFILES)".
15033
8ed54b31
JB
150342010-09-01 Joel Brobecker <brobecker@adacore.com>
15035
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.
15043
bb0116a4
JB
150442010-09-01 Joel Brobecker <brobecker@adacore.com>
15045
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.
15050
a778ab81 150512010-09-01 Joel Brobecker <brobecker@adacore.com>
15052
15053 * gdbreplay.c: Move include of alloca.h up, next to include of
15054 malloc.h.
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.
15058
8b034a19 150592010-09-01 Joel Brobecker <brobecker@adacore.com>
15060
15061 * Makefile.in (memmem.o): Build with -Wno-error.
15062
150632010-09-01 Joel Brobecker <brobecker@adacore.com>
15064
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.
15069
150702010-09-01 Joel Brobecker <brobecker@adacore.com>
15071
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.
15076
1a981360
PA
150772010-08-28 Pedro Alves <pedro@codesourcery.com>
15078
15079 * linux-low.c (__SIGRTMIN): Define if not already defined.
15080 (linux_create_inferior): Check for __ANDROID__ rather than
15081 __SIGRTMIN.
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
15090 __SIGRTMIN.
15091
b4d51a55
PA
150922010-08-28 Pedro Alves <pedro@codesourcery.com>
15093
15094 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15095 debug_threads check. Avoid a linear search when not doing debug
15096 output.
15097
ec48365d
PA
150982010-08-27 Pedro Alves <pedro@codesourcery.com>
15099
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
15109 gdb_fildes_t.
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.
15115
854d88f0
PA
151162010-08-27 Pedro Alves <pedro@codesourcery.com>
15117
15118 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15119 * configure: Regenerate.
15120
0146f85b
PA
151212010-08-27 Pedro Alves <pedro@codesourcery.com>
15122
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.
15134
90d74c30
PA
151352010-08-26 Pedro Alves <pedro@codesourcery.com>
15136
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.
15156
fd467969
PA
151572010-08-26 Pedro Alves <pedro@codesourcery.com>
15158
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.
15167
331e2f5f
PA
151682010-08-26 Pedro Alves <pedro@codesourcery.com>
15169
15170 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15171
e581f2b4
PA
151722010-08-26 Pedro Alves <pedro@codesourcery.com>
15173
15174 * gdbreplay.c (remote_error): New.
15175 (gdbchar): 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
15181 descriptor.
15182
3c11dd79
PA
151832010-08-25 Pedro Alves <pedro@codesourcery.com>
15184
15185 * linux-low.c (linux_wait_1): Move non-debugging code out of
15186 `debug_threads' control.
15187
d20a8ad9
PA
151882010-08-25 Pedro Alves <pedro@codesourcery.com>
15189
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.
15196
964e4306
PA
151972010-08-25 Pedro Alves <pedro@codesourcery.com>
15198
15199 PR threads/10729
15200
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.
15209
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.
15222
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
15227 dr_status_mirror.
15228 (i386_initial_stuff): Clear dr_status_mirror and
15229 dr_control_mirror.
15230 (i386_get_thread_context): Adjust.
15231 (i386_set_thread_context): Adjust.
15232 (i386_thread_added): Adjust.
15233
5f21a75b
PA
152342010-08-24 Pedro Alves <pedro@codesourcery.com>
15235
15236 * linux-low.h (linux_thread_area): Delete declaration.
15237
3e4c1235
TS
152382010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15239
15240 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15241 after its termination.
15242
1971b033
PA
152432010-08-09 Pedro Alves <pedro@codesourcery.com>
15244
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".
15251
310444ac
PA
152522010-07-31 Pedro Alves <pedro@codesourcery.com>
15253
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).
15258
a19cae16
JK
152592010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15260
15261 * Makefile.in (signals_def): New.
15262 (server_h): Append include/gdb/signals.h and signals_def.
15263 (server.o): Append signals_def.
15264
30d50328
JK
152652010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15266
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.
15270
5c3216e2
OS
152712010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15272
c6f46ca0
OS
15273 * server.c (handle_query): strcpy() the returned string from paddress()
15274 instead of sprintf().
5c3216e2
OS
15275 * utils.c (paddress): Return phex_nz().
15276
6bd31874
JB
152772010-07-07 Joel Brobecker <brobecker@adacore.com>
15278
15279 * server.c (handle_v_cont): Call mourn_inferior if process
15280 just exited.
15281 (myresume): Likewise.
15282
0fb4aa4b
PA
152832010-07-01 Pedro Alves <pedro@codesourcery.com>
15284
15285 Static tracepoints, and integration with UST.
15286
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.
15321 (ust_ops): New.
15322 (GET_UST_SYM): New.
15323 (USTF): New.
15324 (dlsym_ust): New.
15325 (ust_marker_to_static_tracepoint): New.
15326 (gdb_probe): 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.
15336 (next_st): 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.
15365 (UST_CFLAGS): New.
15366 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15367 * config.in, configure: Regenerate.
15368
9e4344e5
PA
153692010-06-20 Ian Lance Taylor <iant@google.com>
15370 Pedro Alves <pedro@codesourcery.com>
15371
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.
15375
c6beb2cb
PA
153762010-06-20 Pedro Alves <pedro@codesourcery.com>
15377
15378 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15379 conditions in gdbserver.
15380
d2ed6730
UW
153812010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15382
15383 * spu-low.c (spu_read_memory): Wrap around local store limit.
15384 (spu_write_memory): Likewise.
15385
4e29fb54
PA
153862010-06-15 Pedro Alves <pedro@codesourcery.com>
15387
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
15390 LONGEST uses.
15391 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15392 uses.
15393 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15394 uses with LONGEST uses.
15395
6a271cae
PA
153962010-06-14 Stan Shebs <stan@codesourcery.com>
15397 Pedro Alves <pedro@codesourcery.com>
15398
15399 Bytecode compiler.
15400
15401 * linux-x86-low.c: Include limits.h.
15402 (add_insns): New.
15403 (always_true): New.
15404 (EMIT_ASM): New.
15405 (EMIT_ASM32): 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):
15446 Export in the IPA.
15447 (condition_true_at_tracepoint): If there's a compiled condition,
15448 run that.
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.
15468
92b72907
UW
154692010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
15470
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.
15473
fa593d66
PA
154742010-06-01 Pedro Alves <pedro@codesourcery.com>
15475 Stan Shebs <stan@codesourcery.com>
15476
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
15506 do it if so.
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
15560 type.
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'.
43aaf8b6
PA
15630 <actions_str, step_actions, step_actions_str>: Only include in
15631 GDBserver.
fa593d66
PA
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):
15648 New.
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.
15659 (cmpxchg): 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
15680 IPA.
15681 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15682 support. Upload fast traceframes, and delete internal IPA
15683 breakpoints.
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
15697 to the regcache.
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.
15703 (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.
15709 (UALIGN): 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.
15730
d149dd1d
PA
157312010-06-01 Pedro Alves <pedro@codesourcery.com>
15732
15733 * server.c (handle_query) <qSupported>: Do two passes over the
15734 qSupported string to avoid nesting strtok.
15735
f6528abd
JK
157362010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15737
15738 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15739 (CDEPS): New.
15740 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15741 -Wl,--dynamic-list.
15742 * configure: Regenerate.
15743 * proc-service.list: New.
15744
ca2a87a0
JK
157452010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15746
15747 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15748 New comment.
15749
363a6e9f
OS
157502010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15751
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.
15755
d23b6cb1
PA
157562010-05-23 Pedro Alves <pedro@codesourcery.com>
15757
15758 * config.h: Regenerate.
15759
28d3cf85
MK
157602010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15761
15762 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15763 doesn't provide PTRACE_GET_THREAD_AREA.
15764
fea36a59
MK
157652010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15766
15767 * linux-m68k-low.c: Include <asm/ptrace.h>
15768 (ps_get_thread_area): Implement.
15769
24b066ba
DE
157702010-05-03 Doug Evans <dje@google.com>
15771
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.
15786
9836d6ea
PA
157872010-05-03 Pedro Alves <pedro@codesourcery.com>
15788
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
15794 field.
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
15798 field.
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
15805 process structure.
15806 (thread_db_init): Don't set all_symbols_looked_up here.
15807 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15808
7984d532
PA
158092010-05-03 Pedro Alves <pedro@codesourcery.com>
15810
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
15826 count.
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
15834 for_each_inferior.
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.
15852
e471f25b
PA
158532010-05-03 Pedro Alves <pedro@codesourcery.com>
15854
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.
15859
1915ef4f
PA
158602010-05-02 Pedro Alves <pedro@codesourcery.com>
15861
15862 * README: Use consistent `GDB' and `GDBserver' spellings.
15863
f9e39928
PA
158642010-05-02 Pedro Alves <pedro@codesourcery.com>
15865
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
15871 breakpoints.
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
15879 breakpoints out.
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.
15889
1e7fc18c
PA
158902010-05-01 Pedro Alves <pedro@codesourcery.com>
15891
15892 * linux-low.c (linux_enable_event_reporting): New.
15893 (linux_wait_for_event_1, handle_extended_wait): Use it.
15894
02fc4de7
PA
158952010-04-30 Pedro Alves <pedro@codesourcery.com>
15896
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.
15907
bc3b5632
DE
159082010-04-26 Doug Evans <dje@google.com>
15909
ae1ada35
DE
15910 * server.c (handle_general_set): Make static.
15911
bc3b5632
DE
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.
15915
65730243
DE
159162010-04-23 Doug Evans <dje@google.com>
15917
15918 * server.c (start_inferior): Print inferior argv if --debug.
15919
a8ae7dc0
AR
159202010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15921
15922 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15923 * nto-x86-low.c: Include server.h
15924
1c07cc19
PM
159252010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15926
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
15930 in the comment.
15931
e0a61e09
PM
159322010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15933
15934 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15935 64-bit executables.
15936
54709339
PM
159372010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15938
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.
15945
e8f0053d
PM
159462010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15947
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'.
15958
c481e77e
PM
159592010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15960
15961 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15962 `amd64-avx.o'.
15963
12ea4b69
PM
159642010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15965
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.
15970
f6d1620c
L
159712010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15972
15973 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15974 if __x86_64__ is defined.
15975
8e642873
PM
159762010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15977
15978 * configure: Regenerate.
15979
711e434b
PM
159802010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15981
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.
15992
505106cd
PA
159932010-04-12 Pedro Alves <pedro@codesourcery.com>
15994
505106cd
PA
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.
16003
e8470a06
PA
160042010-04-12 Pedro Alves <pedro@codesourcery.com>
16005
16006 * server.h (buffer_xml_printf): Remove redundant `;'.
16007
45ba0d02
PA
160082010-04-12 Pedro Alves <pedro@codesourcery.com>
16009
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
16015 regsets.
16016
59e04013
L
160172010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16018
16019 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16020 variable warning on Linux/x86-64.
16021
8336d594
PA
160222010-04-11 Pedro Alves <pedro@codesourcery.com>
16023
16024 GDBserver disconnected tracing support.
16025
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
16043 linux_pause_all.
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.
16052
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.
16059 (tracing): Delete.
16060 (disconnected_tracing): Declare.
16061 (stop_tracing): Declare.
16062
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.
16079
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.
16088
16089 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16090
16091 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16092 New fields.
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.
16099
16100 * tracepoint.c (tracing): Make extern.
16101 (disconnected_tracing): New.
16102 (stop_tracing): Make extern. Handle tracing stops due to GDB
16103 disconnecting.
16104 (cmd_qtdisconnected): New.
16105 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16106 (handle_tracepoint_general_set): Handle QTDisconnected.
16107
16108 * event-loop.c (event_handler_func): Change return type to int.
16109 (process_event): Bail out if the event handler wants the event
16110 loop to stop.
16111 (handle_file_event): Ditto.
16112 (start_event_loop): Bail out if the event handler wants the event
16113 loop to stop.
16114
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.
16120
5d267c4c
PA
161212010-04-11 Pedro Alves <pedro@codesourcery.com>
16122
16123 * regcache.c (realloc_register_cache): Invalidate inferior's
16124 regcache before recreating it.
16125
623ccd72
PA
161262010-04-09 Pedro Alves <pedro@codesourcery.com>
16127
16128 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16129
219f2f23
PA
161302010-04-09 Stan Shebs <stan@codesourcery.com>
16131 Pedro Alves <pedro@codesourcery.com>
16132
16133 * server.h (LONGEST): New.
16134 (struct thread_info) <while_stepping>: New field.
16135 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16136 Declare.
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
16147 queries.
16148 (main): Initialize the tracepoints module.
16149 (process_serial_event): Handle traceframe reads/writes.
16150
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>:
16157 New field.
16158 * linux-x86-low.c (x86_supports_tracepoints): New.
16159 (the_low_target). Install it.
16160
16161 * mem-break.h (delete_breakpoint): Declare.
16162 * mem-break.c (delete_breakpoint): Make external.
16163
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)
16168 (phex_nz): New.
16169
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.
889bf7c5 16181
219f2f23
PA
16182 * tracepoint.c: New.
16183
16184 * Makefile.in (OBS): Add tracepoint.o.
16185 (tracepoint.o): New rule.
16186
3a13a53b
L
161872010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16188
16189 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16190 (i386-mmx.o): New.
16191 (i386-mmx.c): Likewise.
16192 (i386-mmx-linux.o): Likewise.
16193 (i386-mmx-linux.c): Likewise.
16194
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.
16199
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.
16203
1570b33e
L
162042010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16205
16206 * Makefile.in (clean): Updated.
16207 (i386-avx.o): New.
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.
16215
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.
16226
16227 * i387-fp.c: Include "i386-xstate.h".
16228 (i387_xsave): New.
16229 (i387_cache_to_xsave): Likewise.
16230 (i387_xsave_to_cache): Likewise.
16231 (x86_xcr0): Likewise.
16232
16233 * i387-fp.h (i387_cache_to_xsave): Likewise.
16234 (i387_xsave_to_cache): Likewise.
16235 (x86_xcr0): Likewise.
16236
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.
16246
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.
16252
16253 * linux-low.h (regset_info): Add nt_type.
16254 (linux_target_ops): Add process_qsupported.
16255
16256 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16257 and <sys/uio.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.
16274
16275 * server.c (handle_query): Call target_process_qsupported.
16276
16277 * target.h (target_ops): Add process_qsupported.
16278 (target_process_qsupported): New.
16279
fc7238bb
PA
162802010-04-03 Pedro Alves <pedro@codesourcery.com>
16281
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.
16291
bdabb078
PA
162922010-04-01 Pedro Alves <pedro@codesourcery.com>
16293
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.
16298
d3bbe7a0
PA
162992010-04-01 Pedro Alves <pedro@codesourcery.com>
16300
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
16304 breakpoints.
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
16314 qSymbol query.
16315
8b07ae33
PA
163162010-04-01 Pedro Alves <pedro@codesourcery.com>
16317
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.
16323
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
16349 raw_breakpoint.
16350 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16351 instead.
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.
16361
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.
16367
16368 * server.h (struct raw_breakpoint): Forward declare.
16369 (struct process_info): New field `raw_breakpoints'.
16370
16371 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16372 breakpoints.
16373
6bf5e0ba
PA
163742010-03-24 Pedro Alves <pedro@codesourcery.com>
16375
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.
16392
414a389f
PA
163932010-03-24 Pedro Alves <pedro@codesourcery.com>
16394
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
16407 pointer.
16408
2280c721
PA
164092010-03-24 Pedro Alves <pedro@codesourcery.com>
16410
16411 * server.c (handle_query): Assign, not compare.
16412
d50171e4
PA
164132010-03-24 Pedro Alves <pedro@codesourcery.com>
16414
16415 Teach linux gdbserver to step-over-breakpoints.
16416
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.
16421 (get_pc): New.
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
16433 perspective.
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
16442 wait status.
16443 (send_sigstop): Don't clear stop_expected. Always set it,
16444 instead.
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.
16496
30ba68cb
MS
164972010-03-23 Michael Snyder <msnyder@vmware.com>
16498
16499 * server.c (crc32): New function.
16500 (handle_query): Add handling for 'qCRC:' request.
16501
b9a881c2
PA
165022010-03-23 Pedro Alves <pedro@codesourcery.com>
16503
16504 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16505 lwp had been stopped by a watchpoint.
16506
e92d13d5
PA
165072010-03-16 Pedro Alves <pedro@codesourcery.com>
16508
16509 * server.h (internal_error): Declare.
16510 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16511 * utils.c (internal_error): New function.
16512
64daa791
AS
165132010-03-15 Andreas Schwab <schwab@redhat.com>
16514
16515 * configure.srv: Fix typo setting srv_regobj.
16516
f52cd8cd
PA
165172010-03-15 Pedro Alves <pedro@codesourcery.com>
16518
16519 * linux-low.c (fetch_register): Avoid passing a non string literal
16520 format to `error'.
16521 (usr_store_inferior_registers): Ditto.
16522
93ae6fdc
PA
165232010-03-14 Pedro Alves <pedro@codesourcery.com>
16524
16525 * linux-low.c (linux_write_memory): Bail out early if peeking
16526 memory failed.
16527
c3adc08c
PA
165282010-03-14 Pedro Alves <pedro@codesourcery.com>
16529
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
16535 directly.
16536 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16537 field.
16538 (linux_stopped_by_watchpoint): Rewrite.
16539 (linux_stopped_data_address): Rewrite.
16540
bce522a2
PA
165412010-03-06 Simo Melenius <simo.melenius@iki.fi>
16542
16543 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16544 switching the current inferior, not before.
16545
90884b2b
L
165462010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16547
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.
16559 (i386.o): New.
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.
16567
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.
16587
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.
16592
193f13e6
MK
165932010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16594
16595 * configure.ac: Check for libdl. If it is not available link against
16596 static libthread_db.
16597 * configure: Regenerate.
16598
85d721b8
PA
165992010-02-22 Pedro Alves <pedro@codesourcery.com>
16600
16601 PR9605
16602
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.
16606
6076632b
DE
166072010-02-12 Doug Evans <dje@google.com>
16608
16609 * linux-low.c (linux_supports_tracefork_flag): Document.
16610 (linux_look_up_symbols): Add comment.
16611
3327ccf7
L
166122010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16613
16614 * regcache.c (supply_register): Clear regcache if buf is NULL.
16615
0718675c 166162010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 16617 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
16618
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.
16622
177321bd
DJ
166232010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16624
16625 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16626 (thumb2_breakpoint): New.
16627 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16628
2b009048
DJ
166292010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16630
16631 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16632 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16633 breakpoints.
16634
3be029c7
PA
166352010-01-21 Pedro Alves <pedro@codesourcery.com>
16636
16637 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16638
18f5de3b
JK
166392010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16640
16641 * linux-s390-low.c (s390_collect_ptrace_register)
16642 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16643
3743bb4f
DE
166442010-01-21 Doug Evans <dje@google.com>
16645
14ce3065
DE
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.
16654
3743bb4f
DE
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.
16657
8b315be5
PA
166582010-01-21 Pedro Alves <pedro@codesourcery.com>
16659
16660 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16661 target.
16662
85492558
PA
166632010-01-21 Pedro Alves <pedro@codesourcery.com>
16664
16665 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16666 prototype to take a regcache. Adjust.
16667
442ea881
PA
166682010-01-20 Pedro Alves <pedro@codesourcery.com>
16669
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
16697 prototype.
16698 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16699 Change prototype.
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
16710 regcache. Adjust.
43aaf8b6
PA
16711 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16712 Ditto.
442ea881
PA
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.
16718 Adjust.
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.
16735 Adjust.
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):
16740 Adjust.
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.
16750 Adjust.
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.
43aaf8b6
PA
16755 * linux-ppc-low.c (ppc_supply_ptrace_register)
16756 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
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
16771 regcache. Adjust.
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
16781 regcache. Adjust.
16782 * win32-i386-low.c (i386_fetch_inferior_register)
16783 (i386_store_inferior_register): Change prototype to take a
16784 regcache. Adjust.
16785 * win32-low.c (child_fetch_inferior_registers)
16786 (child_store_inferior_registers): Change prototype to take a
16787 regcache. Adjust.
16788 (win32_wait): Adjust.
16789 (win32_fetch_inferior_registers): Change prototype to take a
16790 regcache. Adjust.
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.
16794
60c3d7b0
DE
167952010-01-20 Doug Evans <dje@google.com>
16796
16797 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16798 #ifdef.
16799 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 16800 (W_STOPCODE): Provide definition if missing.
60c3d7b0 16801
dc146f7c
VP
168022010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16803
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):
16811 New.
16812 (handle_query): Handle qXfer:threads. Announce availability
16813 thereof.
16814 * target.h (struct target_ops): New field core_of_thread.
16815
7803799a
UW
168162010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16817
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.
16842
6e7ffa39
JB
168432010-01-01 Joel Brobecker <brobecker@adacore.com>
16844
16845 * server.c (gdbserver_version): Update copyright year to 2010.
16846 * gdbreplay.c (gdbreplay_version): Likewise.
16847
957f3f49
DE
168482009-12-28 Doug Evans <dje@google.com>
16849
16850 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16851 elf/external.h. Include <elf.h> instead but only if necessary.
16852
ca5c370d
PA
168532009-12-28 Pedro Alves <pedro@codesourcery.com>
16854
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
16862 passed in process.
16863
4ee62156
DE
168642009-12-21 Doug Evans <dje@google.com>
16865
d90e6a88
DE
16866 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16867
c5f62d5f
DE
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.
16873
10e86dd7
DE
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.
16879
4ee62156
DE
16880 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16881
00f515da
DE
168822009-12-18 Doug Evans <dje@google.com>
16883
e9464885
DE
16884 * event-loop.c: Include unistd.h if it exists.
16885
07d4f67e
DE
16886 * linux-low.c (my_waitpid): Move definition away from being in
16887 between linux_tracefork_child/linux_test_for_tracefork.
16888
00f515da
DE
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.
16892
1de1badb
DE
168932009-12-16 Doug Evans <dje@google.com>
16894
16895 * linux-low.c (linux_read_memory): Fix argument to read.
16896
aeeb81d1
PA
168972009-11-26 Pedro Alves <pedro@codesourcery.com>
16898
16899 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16900 events, don't leave current_inferior pointing at null.
16901
10357975
PA
169022009-11-26 Pedro Alves <pedro@codesourcery.com>
16903
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.
16909
cf6e3471
PA
169102009-11-26 Pedro Alves <pedro@codesourcery.com>
16911
16912 * win32-low.c (win32_add_one_solib): If the dll name is
16913 "ntdll.dll", prepend the system directory to the dll path.
16914
0c85e18e
MK
169152009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16916
16917 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16918
9ac544ce 169192009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 16920 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
16921
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.
16928
fd7dd3e6
PA
169292009-11-16 Pedro Alves <pedro@codesourcery.com>
16930
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
16937 to thread_db_free.
16938 (thread_db_free): Add `detaching' parameter. Only
16939 call td_ta_clear_event if detaching from process.
16940
75aa492e
MK
169412009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16942
16943 * thread-db.c (thread_db_free): Fix typo.
16944
21e1bee4
PP
169452009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16946
16947 PR gdb/10838
16948 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16949
8838b45e
NS
169502009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16951
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
16955 needed.
16956 * configure: Rebuilt.
16957
8a35fb51
SL
169582009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16959
16960 PR gdb/10783
16961
16962 * server.c (handle_search_memory_1): Correct read_addr initialization
16963 in loop for searching subsequent chunks.
16964
96f15937
PP
169652009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16966
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.
889bf7c5 16972
5f7d1694
PP
169732009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16974
16975 PR gdb/10757
16976 * thread-db.c (attach_thread): New function.
16977 (maybe_attach_thread): Return success/failure.
16978 (find_new_threads_callback): Adjust.
889bf7c5
PA
16979 (thread_db_find_new_threads): Loop until no new threads.
16980
88e3b899
PA
169812009-10-13 Pedro Alves <pedro@codesourcery.com>
16982
16983 * proc-service.c (ps_lgetregs): Formatting.
16984
cdbfd419
PP
169852009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16986
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
16990 thread_db.
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.
889bf7c5 17009
4168d2d6
UW
170102009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17011
17012 * spu-low.c (spu_kill): Wait for inferior to terminate.
17013 Call clear_inferiors.
17014 (spu_detach): Call clear_inferiors.
17015
81ecdfbb
RW
170162009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17017
17018 * aclocal.m4: Regenerate.
17019 * config.in: Likewise.
17020 * configure: Likewise.
17021
0b9ff2c0
UW
170222009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17023
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.
17028
efcbbd14
UW
170292009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17030
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.
17036
f4d9bade
UW
170372009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17038
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.
17049
96e946ca
RW
170502009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17051
17052 * Makefile.in (datarootdir): New variable.
17053
58d6951d
DJ
170542009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17055
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.
17071
12b42a12
DJ
170722009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17073
17074 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17075 the main thread again.
17076
ac8c974e
AR
170772009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17078
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.
17087
4424e0c3 170882009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
17089
17090 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17091 srv_tgtobj.
17092
912cf4ba
PA
170932009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17094 Pedro Alves <pedro@codesourcery.com>
17095
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.
17102
aa5ca48f
DE
171032009-06-30 Doug Evans <dje@google.com>
17104 Pierre Muller <muller@ics.u-strasbg.fr>
17105
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
17121 provided.
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,
17125 prepare_to_resume.
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,
17140 prepare_to_resume.
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.
17169
d993e290
PA
171702009-06-25 Pedro Alves <pedro@codesourcery.com>
17171
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.
17178
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.
17190
0f54c268
PM
171912009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17192
17193 * server.c (handle_v_kill): Pass signal_pid to
17194 kill_inferior if multi_process is zero.
17195
c6314022
AR
171962009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17197
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'.
17201
4463ce24
AR
172022009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17203
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
17209 regno 0.
17210
cf8fd78b
PA
172112009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17212 Pedro Alves <pedro@codesourcery.com>
17213
17214 * target.h (struct target_ops) <supports_multi_process>: New
17215 callback.
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
17222 callback.
17223
47c0c975
DE
172242009-05-24 Doug Evans <dje@google.com>
17225
e09875d4
DE
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.
17230
e27d73f6
DE
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)
17233 directly.
17234
47c0c975
DE
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.
17238
2acc282a
DE
172392009-05-23 Doug Evans <dje@google.com>
17240
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.
17244
9f1036c1
DE
172452009-05-13 Doug Evans <dje@google.com>
17246
17247 * linux-x86-low.c: Don't include assert.h.
17248 (x86_siginfo_fixup): Use fatal, not assert.
17249 (x86_arch_setup): Fix comment.
17250
d0722149
DE
172512009-05-12 Doug Evans <dje@google.com>
17252
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
17262 linux-x86-low.o.
17263 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17264 linux-x86-low.o.
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.
17274
fdeb2a12
DE
172752009-05-07 Doug Evans <dje@google.com>
17276
17277 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17278 (regsets_store_inferior_registers): Ditto.
17279
a6dbe5df
PA
172802009-05-06 Pedro Alves <pedro@codesourcery.com>
17281
17282 PR server/10048
17283
17284 * linux-low.c (must_set_ptrace_flags): Delete.
17285 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17286 of the global.
17287 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17288 `lwp->must_set_ptrace_flags' instead.
ba42693b 17289 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
17290 (linux_wait_1): ... not here.
17291
5091eb23
DE
172922009-04-30 Doug Evans <dje@google.com>
17293
9f767825
DE
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.
17302
5091eb23
DE
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.
17307
155c8968
PA
173082009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17309
17310 * configure.srv: Add x86 Windows CE target.
17311
7fe519cb
UW
173122009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17313
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.
17320
5472f405
UW
173212009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17322
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.
17334
55ac2b99
PA
173352009-04-02 Pedro Alves <pedro@codesourcery.com>
17336
17337 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17338 variable.
17339
95954743
PA
173402009-04-01 Pedro Alves <pedro@codesourcery.com>
17341
17342 Implement the multiprocess extensions, and add linux multiprocess
17343 support.
17344
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
17351 to ptid_t.
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
17373 parameter. Adjust.
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
17388 to ptid.
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.
17403 (hexchars): New.
17404 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
17405 read_ptid): New.
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
17411 to ptid_t.
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
17417 ptid_t.
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
17424 "qAttached:PID".
17425 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
17426 changes.
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
17434 change.
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
17439 variants.
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
17460 new_inferior here.
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
17479 ptid_t. Adjust.
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.
17488 Adjust.
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
17493 ptids.
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
17508 per-process data.
17509 (find_one_thread): Change argument type to ptid_t. Adjust to
17510 per-process data.
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
17517 processes table.
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
17528 processes table.
17529 (child_fetch_inferior_registers, child_store_inferior_registers):
17530 Adjust.
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
17534 table.
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
17541 processes table.
17542
bd99dc85
PA
175432009-04-01 Pedro Alves <pedro@codesourcery.com>
17544
17545 Non-stop mode support.
17546
17547 * server.h (non_stop): Declare.
17548 (gdb_client_data, handler_func): Declare.
17549 (delete_file_handler, add_file_handler, start_event_loop):
17550 Declare.
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
17570 interface changes.
17571 (attach_inferior): In non-stop mode, don't wait for the target
17572 here.
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
17579 and non-stop mode.
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
17593 loop.
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
17600 general_thread.
17601 * event-loop.c: New.
17602 * Makefile.in (OBJ): Add event-loop.o.
17603 (event-loop.o): New rule.
17604
17605 * linux-low.h (pid_of): Moved here.
17606 (lwpid_of): New.
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.
17613 (delete_lwp): 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
17621 lwpid_of.
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.
17640 (linux_wait): 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
17644 thread.
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
17650 threads.
17651 (my_waitpid): Reimplement. Emulate __WALL.
17652 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17653 Use lwpid_of.
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.
17665
5b1c542e
PA
176662009-04-01 Pedro Alves <pedro@codesourcery.com>
17667
17668 Decouple target code from remote protocol.
17669
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
17678 declarations.
17679 (prepare_resume_reply): Change prototype to take a
17680 target_waitstatus.
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.
17686 Adjust.
17687 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17688 not as an address.
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.
17697
17698 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17699 interface.
17700 * spu-low.c (spu_wait): Adjust.
17701 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17702 Delete.
17703 (win32_wait): Adjust.
17704
2bd7c093
PA
177052009-04-01 Pedro Alves <pedro@codesourcery.com>
17706
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
17722 change.
17723 * win32-low.c (win32_detach, win32_resume): Ditto.
17724
c35fafde
PA
177252009-04-01 Pedro Alves <pedro@codesourcery.com>
17726
17727 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17728 flag.
17729 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17730 pending.
17731 (linux_continue_one_thread): Only preserve the stepping flag if
17732 there's a pending breakpoint.
17733
0a59d50b
PA
177342009-03-31 Pedro Alves <pedro@codesourcery.com>
17735
17736 * server.c (main): After the inferior having exited, call
17737 remote_close before exiting gdbserver.
17738
f04c6d38
TJB
177392009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17740
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
17745 size of the FPSCR.
17746
78e5cee6
PA
177472009-03-23 Pedro Alves <pedro@codesourcery.com>
17748
17749 * server.c (handle_query) Whitespace and formatting.
17750
1b3f6016
PA
177512009-03-22 Pedro Alves <pedro@codesourcery.com>
17752
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.
17761
a07b2135
PA
177622009-03-22 Pedro Alves <pedro@codesourcery.com>
17763
17764 * inferiors.c (find_inferior): Make it safe for the callback
17765 function to delete the currently iterated inferior.
17766
67cc2626
PA
177672009-03-22 Pedro Alves <pedro@codesourcery.com>
17768
17769 * Makefile.in (linuw_low_h): Move higher.
17770 (thread-db.o): Depend on $(linux_low_h).
17771
54a0b537
PA
177722009-03-17 Pedro Alves <pedro@codesourcery.com>
17773
17774 Rename "process" to "lwp" throughout.
17775
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):
17805 Adjust.
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.
17819
0b16c5cf
PA
178202009-03-14 Pedro Alves <pedro@codesourcery.com>
17821
17822 * server.c (handle_query): Handle "qAttached".
17823
32de4b9d
NS
178242009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17825
17826 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17827 GPLv3, update license URL.
17828
2aecd87f
DE
178292009-03-01 Doug Evans <dje@google.com>
17830
93efd302 17831 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
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.
17836
86b1f9c5
PM
178372009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17838
17839 * remote-utils.c (getpkt): Also generate remote-debug
17840 information if noack_mode is set.
17841
4aa995e1
PA
178422009-02-06 Pedro Alves <pedro@codesourcery.com>
17843
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.
17849
62709adf
PA
178502009-01-26 Pedro Alves <pedro@codesourcery.com>
17851
17852 * server.c (gdbserver_usage): Mention --remote-debug.
17853 (main): Accept '--remote-debug' switch.
17854
aef93bd7
DE
178552009-01-18 Doug Evans <dje@google.com>
17856
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
17862 user upon failure.
17863 (handle_v_run): Ditto. Call freeargv.
17864 * server.h (freeargv): Declare.
17865 * utils.c (freeargv): New fn.
17866
54363045
DE
178672009-01-15 Doug Evans <dje@google.com>
17868
f626972c
DE
17869 * gdbreplay.c (perror_with_name): Make arg const char *.
17870 * server.h (target_signal_to_name): Make return type const char *.
0842e787 17871 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 17872 * utils.c (perror_with_name): Make arg const char *.
54363045 17873
18aae699
PA
178742009-01-14 Pedro Alves <pedro@codesourcery.com>
17875
17876 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17877 when handling a EXIT_PROCESS_DEBUG_EVENT.
17878
ff703abe
JB
178792009-01-06 Joel Brobecker <brobecker@adacore.com>
17880
17881 * gdbreplay.c (gdbreplay_version): Update copyright year.
17882 * server.c (gdbserver_version): Likewise.
17883
f21cc1a2 178842009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
17885
17886 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 17887 (handle_extended_wait): Improve comment.
0e21c1ec 17888
bca929d3
DE
178892008-12-13 Doug Evans <dje@google.com>
17890
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.
17900 * server.c: Ditto.
17901 * target.c: Ditto.
17902 * win32-low.c: Ditto.
17903
97438e3f
DE
179042008-12-12 Doug Evans <dje@google.com>
17905
896c7fbb
DE
17906 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17907 in debugging printf.
17908
97438e3f
DE
17909 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17910
e3b886f8
DE
179112008-12-09 Doug Evans <dje@google.com>
17912
17913 * linux-low.h (struct process_info): Delete member tid, unused.
17914 * thread-db.c (find_one_thread): Update.
17915 (maybe_attach_thread): Update.
17916
07e059b5
VP
179172008-12-02 Pedro Alves <pedro@codesourcery.com>
17918
889bf7c5
PA
17919 * target.h (struct target_ops): Add qxfer_osdata member.
17920 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17921 and dirent.h.
17922 (linux_qxfer_osdata): New functions.
17923 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17924 callback.
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.
07e059b5 17932
4cab47ab
DE
179332008-11-24 Doug Evans <dje@google.com>
17934
17935 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17936
f142445f
DJ
179372008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17938
17939 * server.c (handle_v_run): Always use the supplied argument list.
17940
d0107bb6 179412008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 17942
d0107bb6
BW
17943 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17944 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 17945
2c4ad781
TJB
179462008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17947
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
17959 in 32-bits.
17960
dfb64f85
DJ
179612008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17962
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.
17970
66b6e1dd
DE
179712008-10-21 Doug Evans <dje@google.com>
17972
17973 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17974 (READLINE_DIR,READLINE_DEP): Delete.
17975 (INTERNAL_CFLAGS): Update.
17976 (LINTFLAGS): Update.
17977
9b710a42
PA
179782008-10-10 Pedro Alves <pedro@codesourcery.com>
17979
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].
17982
5822d809
PA
179832008-09-08 Pedro Alves <pedro@codesourcery.com>
17984
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.
17988
74aac56f
DJ
179892008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17990
17991 * configure.srv: Merge MIPS and MIPS64.
17992
400b20f5
MR
179932008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17994
17995 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17996
677c5bb1
LM
179972008-08-18 Luis Machado <luisgpm@br.ibm.com>
17998
17999 * Makefile.in: Add required vsx dependencies.
18000
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.
18009
18010 * configure.srv: Add new VSX dependencies.
18011
a6f3e723
SL
180122008-08-12 Pedro Alves <pedro@codesourcery.com>
18013
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
18020 qSupported.
18021 (main): Reset noack_mode on every connection.
18022 * server.h (noack_mode): Declare.
18023
a417dc56
RW
180242008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18025
18026 * Makefile.in (GDBREPLAY_OBS): New variable.
18027 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18028
3221518c
UW
180292008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18030 Daniel Jacobowitz <dan@codesourcery.com>
18031
18032 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18033 (usr_store_inferior_registers): Likewise.
18034 (regsets_store_inferior_registers): Likewise.
18035
ec56be1b
PA
180362008-07-31 Rolf Jansen <rj@surtec.com>
18037 Pedro Alves <pedro@codesourcery.com>
18038
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.
18045
2fe5e3ff
DE
180462008-07-28 Doug Kwan <dougkwan@google.com>
18047
18048 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18049 (linux_write_memory): Remove declaration of errno.
18050
836acd6d
UW
180512008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18052
18053 * linux-low.c (handle_extended_wait): Do not use "status"
18054 variable uninitialized.
18055
aeba519e
PA
180562008-07-07 Pedro Alves <pedro@codesourcery.com>
18057
18058 * server.c (handle_v_attach): Inhibit reporting dll changes.
18059
db42f210
PA
180602008-06-27 Pedro Alves <pedro@codesourcery.com>
18061
18062 * remote-utils.c (prepare_resume_reply): If requested, don't
18063 output "thread:TID" in the T stop reply.
18064
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
18068 and qsThreadInfo.
18069 (handle_v_requests): If requested, disable support for vCont.
18070 (gdbserver_show_disableable): New.
18071 (main): Handle --disable-packet and --disable-packet=LIST.
18072
18073 * server.h (disable_packet_vCont, disable_packet_Tthread)
18074 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18075
8e4c5421
CD
180762008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18077
18078 * server.c (gdbserver_usage): Mention --version.
18079
6e23a804
DJ
180802008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18081
18082 * Makefile.in (gdbreplay.o): New rule.
18083
90aa6a40
JM
180842008-06-06 Joseph Myers <joseph@codesourcery.com>
18085
18086 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18087 message, not gdbserver.
18088
c16158bc 180892008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
18090 Nathan Sidwell <nathan@codesourcery.com>
18091 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
18092
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.
18103
aeb75bf5
DJ
181042008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18105
18106 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18107 (arm_breakpoint_at): Handle Thumb.
18108 (the_low_target): Add comment.
18109
76b233dd
UW
181102008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18111
18112 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18113
08388c79
DE
181142008-05-09 Doug Evans <dje@google.com>
18115
a3c83fae
DE
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.
08388c79
DE
18119 (handle_search_memory): New fn.
18120 (handle_query): Process qSearch:memory packets.
18121
bb9c3d36
UW
181222008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18123
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.
18129
7284e1be
UW
181302008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18131
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
18140 to srv_xmlfiles.
18141
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.
18152 (clean): Update.
18153
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.
18170
18171 * inferiors.c (clear_inferiors): Reset current_inferior.
18172
fdc59709
PB
181732008-04-23 Paolo Bonzini <bonzini@gnu.org>
18174
889bf7c5
PA
18175 * acinclude.m4: Add override.m4.
18176 * configure: Regenerate.
fdc59709 18177
c9b2f845
UW
181782008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18179
18180 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18181 initial call to init_register_ppc64.
18182
550512b8
UW
181832008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18184
43aaf8b6
PA
18185 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18186 single powerpc*-*-linux* case.
550512b8
UW
18187 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18188
b6430ec3
UW
181892008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18190
18191 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 18192 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
18193 from reg_xmlfiles.
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.
18208
52fa2412
UW
182092008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18210
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
18217 use_regsets_p.
18218 (initialize_low): Allocate disabled_regsets.
18219
e28b3332
DJ
182202008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18221
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.
18227
4536995d
UW
182282008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18229
18230 * server.c (handle_query): Never return "unsupported" for
18231 qXfer:features:read queries.
18232
221c031f
UW
182332008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18234
18235 * server.c (get_features_xml): Fix inverted condition.
18236 (handle_query): Always support qXfer:feature:read.
18237
ccd213ac
DJ
182382008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18239
18240 * server.c (wrapper_argv): New.
18241 (start_inferior): Handle wrapper_argv. If set, expect an extra
18242 trap.
18243 (gdbserver_usage): Document --wrapper.
18244 (main): Parse --wrapper.
18245
6fe305f7
UW
182462008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18247
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.
889bf7c5 18255 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 18256
5b0a002e
UW
182572008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18258
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.
18264
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
889bf7c5 18275 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
18276 collect_ptrace_register and supply_ptrace_register members.
18277
9b4b61c8
UW
182782008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18279
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.
18283
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.
18297
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.
18311
ee1a7ae4
UW
183122008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18313
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.
18320
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.
18325
18326 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18327 (ppc_supply_ptrace_register): Likewise.
18328 (the_low_target): Update.
18329
18330 * linux-i386-low.c (the_low_target): Update.
18331 * linux-x86-64-low.c (the_low_target): Update.
18332
d61ddec4
UW
183332008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18334
18335 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18336 reg-s390.o and reg-s390x.o.
18337
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.
18343
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.
18348
18349 * regcache.c (realloc_register_cache): New function.
18350 (set_register_cache): Call it for each existing regcache.
18351
d05b4ac3
UW
183522008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18353
18354 * server.h (init_registers): Remove prototype.
18355
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.
18392
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.
18400
18401 * spu-low.c (init_registers_spu): Add prototype.
18402 (initialize_low): Call initialie_registers_spu () instead of
18403 initialize_registers ().
18404
fd96d250
PA
184052008-02-19 Pedro Alves <pedro@codesourcery.com>
18406
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
18409 error instead.
18410
d41b6bb4
DJ
184112008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
18412
18413 * server.c (handle_query): Correct length check.
18414
5ac588cf
PA
184152008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
18416
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
18432 has exited.
18433
ecd7ecbc
DJ
184342008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
18435
18436 * server.c (monitor_show_help): Add "exit".
18437
1525d545
MG
184382008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
18439
ecd7ecbc 18440 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
18441 (clean): Add reg-xtensa.c.
18442 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
18443 * configure.srv (xtensa*-*-linux*) New target.
18444 * linux-xtensa-low.c: New.
18445 * xtensa-xtregs.c: New.
1525d545 18446
59a016f0
PA
184472008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
18448
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.
889bf7c5 18461 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
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
18472 hostio-errno.o.
18473 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
18474 * configure: Regenerate.
18475
2d717e4f
DJ
184762008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18477
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
18482 is running.
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
18491 "monitor exit".
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.
18503
7407e2de
AS
185042007-12-20 Andreas Schwab <schwab@suse.de>
18505
18506 * linux-low.c (STACK_SIZE): Define.
18507 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18508 (linux_test_for_tracefork): Likewise.
18509
b65d95c5
DJ
185102007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18511
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
18515 int.
18516 (set_breakpoint_at): Update handler type.
18517 (reinsert_breakpoint_handler): Return 1 instead of calling
18518 delete_breakpoint.
18519 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18520 setting a new one.
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.
18526
4e799345
DJ
185272007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18528
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.
18533
27524b67
DJ
185342007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18535
18536 * server.c (myresume): Add own_buf argument.
18537 (main): Update calls.
18538
a20d5e98
DJ
185392007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18540
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.
18553
b79d787e
DJ
185542007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18555
18556 * remote-utils.c (readchar): Allow binary data in received messages.
18557
d97903b2
PA
185582007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18559
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
18565 attaching.
18566
311de423
PA
185672007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18568
18569 * server.c (main): Don't report dll events on the initial
18570 connection on attaches.
18571
6c2d16d2
PA
185722007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18573
18574 * server.c (main): Relax numerical bases supported for the pid of
18575 the --attach command line argument.
18576
5ca906e6
PA
185772007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18578
18579 * win32-low.c (win32_attach): Call OpenProcess before
18580 DebugActiveProcess, not after. Add last error output to error
18581 call.
18582
9c6c8194
PA
185832007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18584
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'
18590 field.
18591
4d5d1aaa
PA
185922007-12-03 Leo Zayas
18593 Pedro Alves <pedro_alves@portugalmail.pt>
18594
18595 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18596 global variables.
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,
18605 and 1 otherwise.
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
18609 resort.
18610
c436e841
PA
186112007-12-03 Leo Zayas
18612 Pedro Alves <pedro_alves@portugalmail.pt>
18613
18614 * win32-low.h (win32_thread_info): Add descriptions to the
18615 structure members. Replace `suspend_count' counter by a
18616 `suspended' flag.
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.
18623
e7b5fa67
PA
186242007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18625
18626 * win32-low.c (win32_wait): Don't read from the inferior when it
18627 has already exited.
18628
a385171d
PA
186292007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18630
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.
18634
f80c84b3
DJ
186352007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18636
18637 * hostio.c: Correct copyright year.
18638
a6b151f1
DJ
186392007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18640
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.
18648
f9387fc3
DJ
186492007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18650
18651 * linux-low.c: Include <sched.h>.
18652
51c2684e
DJ
186532007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18654
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.
18658
75f83163
JB
186592007-10-31 Joel Brobecker <brobecker@adacore.com>
18660
18661 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18662
da5898ce
DJ
186632007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18664
18665 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18666
24a09b5f
DJ
186672007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18668
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
18698 sigstop_sent.
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.
18710
30ed0a8f
DJ
187112007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18712
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*
18718 with SPE.
18719 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18720 SPE targets.
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.
18731
fd462a61
DJ
187322007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18733
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.
18738
69f223ed
DJ
187392007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18740
18741 * linux-low.c (linux_wait_for_event): Do not pass signals while
18742 single-stepping.
18743
aec18585
PA
187442007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18745
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.
18751
34d86ddd
PA
187522007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18753
18754 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18755
5a0e3bd0
JB
187562007-08-23 Joel Brobecker <brobecker@adacore.com>
18757
18758 * configure.ac: Switch license to GPLv3.
18759
f88c79e6
MS
187602007-08-01 Michael Snyder <msnyder@access-company.com>
18761
18762 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18763
6b3d9b83
PA
187642007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18765
18766 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18767 typedef.
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.
18773
c588c53c
MS
187742007-07-27 Michael Snyder <michael.snyder@access-company.com>
18775
18776 * server.c (main): Check for inferior exit before main loop.
18777
aa0403d9
PA
187782007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18779
18780 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18781 instead of on tmp_desc.
18782
255e7678
DJ
187832007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18784 Daniel Jacobowitz <dan@codesourcery.com>
18785
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
18789 list.
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
18794 for qSupported.
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.
18811
0d37add9
DJ
188122007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18813
18814 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18815 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18816
45e2715e
PA
188172007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18818
18819 * win32-low.c (handle_output_debug_string): Ignore event if not
18820 waiting.
18821
c5674cf1
PA
188222007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18823
18824 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18825
2bbe3cc1
DJ
188262007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18827
18828 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18829
ae13219e
DJ
188302007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18831
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
18837 each process.
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.
18848
4105de34
DJ
188492007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18850
18851 * thread-db.c (thread_db_find_new_threads): Add prototype.
18852 (thread_db_create_event): Check for the main thread before adding
18853 a new thread.
18854 (maybe_attach_thread): Only enable event reporting if TID == 0.
18855 (thread_db_get_tls_address): Check for new threads.
18856
2b876972
DJ
188572007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18858
18859 * linux-low.c (linux_create_inferior): Try execv before execvp.
18860 * spu-low.c (spu_create_inferior): Likewise.
18861
7a245884
DJ
188622007-06-13 Mike Frysinger <vapier@gentoo.org>
18863
18864 * linux-low.c (linux_create_inferior): Change execv to execvp.
18865 * spu-low.c (spu_create_inferior): Likewies.
18866
117ce543
DJ
188672007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18868
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
18872 rules.
18873 * configure.srv: Specify XML files and new regformats for MIPS and
18874 MIPS64 GNU/Linux.
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.
18883
0e7f50da
UW
188842007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18885 Markus Deuling <deuling@de.ibm.com>
18886
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.
18894
374c1d38
UW
188952007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18896
18897 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18898 accessing non-seekable spufs files.
18899
bb63802a
UW
189002007-05-16 Markus Deuling <deuling@de.ibm.com>
18901
889bf7c5 18902 * server.c (handle_query): Add reply for qC packet.
bb63802a 18903
7390519e
PA
189042007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18905 Leo Zayas <lerele@champenstudios@com>
18906
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.
3ecf0694 18913 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
18914 winapi_GenerateConsoleCtrlEvent): New typedefs.
18915 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18916 to 250 ms.
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.
18921
34b34921
PA
189222007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18923
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.
18931 (regptr): Delete.
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.
889bf7c5 18945 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
18946 goto loop. Always return after waiting for debug event.
18947 (win32_wait): Convert to switch statement. Handle spurious
18948 events.
18949
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
18954 state variables.
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.
18966
18967 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18968 (arm_get_thread_context): New.
18969 (arm_set_thread_context): New.
18970 (regptr): 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.
18977
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.
18983
dd6953e1
PA
189842007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18985
18986 * linux-low.c (linux_detach): Change return type to int. Return 0.
18987 * spu-low.c (spu_detach): Likewise.
18988
444d6139
PA
189892007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18990
18991 * target.h (target_ops): Change return type of detach to int.
18992 Add join.
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.
19004 (win32_join): New.
19005 (win32_target_op): Add win32_join.
19006
1d5315fe
PA
190072007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19008
19009 * win32-low.c (win32-attach): Fix return value.
19010 * target.h (target_ops): Describe ATTACH return values.
19011
bf914831
PA
190122007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19013
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.
19020
f72f3e60
PA
190212007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19022
19023 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19024
ed50f18f
PA
190252007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19026
19027 * win32-low.c: Commit leftover changes from 2007-03-29.
19028
0c2ead7e
DJ
190292007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19030
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.
19036
73725ff3
DJ
190372007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19038
19039 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19040 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19041
d99f33d8
PA
190422007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19043
19044 * configure.srv (arm*-*-mingw32ce*): Move near the other
19045 arm targets.
19046
68070c10
PA
190472007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19048
2482afc6 19049 * configure.ac: Add errno checking.
68070c10
PA
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.
2482afc6 19054 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
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.
19082 (_T): New macro.
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.
19091 (regptr): New.
19092 (do_child_fetch_inferior_registers): Move to ...
19093 * win32-i386-low.c: ... here, and rename to ...
19094 (do_fetch_inferior_registers): ... this.
889bf7c5 19095 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
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
19105 thread handles.
19106 (win32_detach): Use coredll.dll on Windows CE.
19107 (win32_resume): Let low target handle debug registers, and
19108 step request.
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.
19128
41093d81
PA
191292007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19130
19131 * win32-low.c: Rename typedef thread_info to
19132 win32_thread_info throughout.
19133
544afa54
PA
191342007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19135
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.
19140
bce7165d
PA
191412007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19142
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.
19149
506c7aa0
DJ
191502007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19151
19152 * server.c (main): Correct strtoul check.
19153
42c81e2a
DJ
191542007-03-27 Jon Ringle <jon@ringle.org>
19155
19156 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19157
9453113a
DJ
191582007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19159
19160 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19161
64a69107
DJ
191622007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19163
19164 * terminal.h: Check HAVE_SGTTY_H.
19165
191662007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
19167
19168 * remote-utils.c (remote_open): Print out the assigned port number.
19169
c74d0ad8
DJ
191702007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19171
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
19179 of debug_threads.
19180
de7c3b4a
PA
191812007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19182
19183 * Makefile.in (EXEEXT): New.
19184 (clean): Use $(EXEEXT).
19185
ef57601b
PA
191862007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19187
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
19195 of send_signal.
19196 (input_interrupt): Likewise.
19197
820f2bda
PA
191982007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19199
19200 * server.c (get_features_xml): Check if target implemented
19201 arch_string.
19202 * win32-i386-low.c (win32_arch_string): New.
19203 (win32_target_ops): Add win32_arch_string as arch_string member.
19204
ab39bf24
UW
192052007-02-22 Markus Deuling <deuling@de.ibm.com>
19206
19207 * spu-low.c (spu_arch_string): New.
19208 (spu_target_ops): Add spu_arch_string.
19209
61ff6e04
DJ
192102007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19211
19212 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19213 * configure.ac: Do not check for terminal.h.
19214 * configure, config.in: Regenerated.
19215
fb1e4ffc
DJ
192162007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19217
19218 * Makefile.in (OBS): Add $(XML_BUILTIN).
19219 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19220 (clean): Update.
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
19232 XML documents.
19233 (handle_query): Handle multiple annexes.
19234
0f48aa01
DJ
192352007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19236
19237 * remote-utils.c [USE_WIN32API] (read, write): Define.
19238 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19239 write.
19240
23181151
DJ
192412007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19242
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.
19252
9d606399
DJ
192532007-01-03 Denis Pilat <denis.pilat@st.com>
19254 Daniel Jacobowitz <dan@codesourcery.com>
19255
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.
19259
192602006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
19261 Daniel Jacobowitz <dan@codesourcery.com>
19262
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.
19267
a5e13d24
DJ
192682006-12-05 Markus Deuling <deuling@de.ibm.com>
19269
19270 * README: Update supported targets.
19271
186947f7
DJ
192722006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19273
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.
19285
a13e2c95
UW
192862006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19287
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.
19292
cb7283db
DJ
192932006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19294
19295 * configure.ac: Correct td_thr_tls_get_addr test.
19296 * configure: Regenerated.
19297
89be2091
DJ
192982006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19299
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.
19307
000ef4f0
DJ
193082006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19309
19310 * server.c (handle_query): Correct error handling for read_auxv.
19311
b7149293
UW
193122005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19313
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.
19318
dae5f5cf
DJ
193192006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19320
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.
19335
32ca6d61
DJ
193362006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19337
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.
19346
5ffff7c1
DJ
193472006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19348
19349 * remote-utils.c (try_rle): New function.
19350 (putpkt_binary): Use it.
19351
8695c747
DJ
193522006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19353
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
19359 point registers.
19360
290fadea
RS
193612006-08-08 Richard Sandiford <richard@codesourcery.com>
19362
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().
19369
9f2e1e63
DJ
193702006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19371
19372 * server.c (handle_query): Correct qPart to qXfer.
19373
b80864fb
DJ
193742006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19375
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
19391 numbers.
19392 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19393 and names.
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.
19405
0876f84a
DJ
194062006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19407
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.
19413
01f9e8fa
DJ
194142006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
19415
19416 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
19417 (putpkt_binary): Renamed from putpkt and adjusted for binary
19418 data.
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.
19425
be2a5f71
DJ
194262006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
19427
19428 * server.c (handle_query): Handle qSupported.
19429
ea025f5f
DJ
194302006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19431
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.
19436
9308fc88
DJ
194372006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19438
19439 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 19440 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
19441 (PTRACE_GET_THREAD_AREA): Define.
19442 (ps_get_thread_area): New function.
19443
52fb6437
NS
194442006-05-09 Nathan Sidwell <nathan@codesourcery.com>
19445
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.
19453
21b0f40c
DJ
194542006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19455
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.
19461
0050a760
DJ
194622006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19463
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.
19473
b92a518e
DJ
194742006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19475
19476 * remote-utils.c (prepare_resume_reply): Move declaration
19477 of gdb_id_from_wait to the top of the block.
19478
545587ee
DJ
194792006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
19480
19481 * linux-low.c (regsets_store_inferior_registers): Read the regset
19482 from the target before filling it.
19483
9db87ebd
DJ
194842006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19485
19486 * server.c (attach_inferior): Return SIGTRAP for a successful
19487 attach.
19488
dd24457d
DJ
194892006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19490
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.
19500
6f0f660e
EZ
195012005-12-23 Eli Zaretskii <eliz@gnu.org>
19502
889bf7c5
PA
19503 * linux-arm-low.c:
19504 * linux-arm-low.c:
19505 * inferiors.c:
19506 * i387-fp.h:
19507 * i387-fp.c:
19508 * gdbreplay.c:
19509 * regcache.c:
19510 * proc-service.c:
19511 * mem-break.h:
19512 * mem-break.c:
19513 * linux-x86-64-low.c:
19514 * linux-sh-low.c:
19515 * linux-s390-low.c:
19516 * linux-ppc64-low.c:
19517 * linux-ppc-low.c:
19518 * linux-mips-low.c:
19519 * linux-m68k-low.c:
19520 * linux-m32r-low.c:
19521 * linux-low.h:
19522 * linux-low.c:
19523 * linux-ia64-low.c:
19524 * linux-i386-low.c:
19525 * linux-crisv32-low.c:
19526 * thread-db.c:
19527 * terminal.h:
19528 * target.h:
19529 * target.c:
19530 * server.h:
19531 * server.c:
19532 * remote-utils.c:
19533 * regcache.h:
19534 * utils.c:
19535 * Makefile.in:
19536 * configure.ac:
6f0f660e
EZ
19537 * gdbserver.1: Add (C) after Copyright. Update the FSF
19538 address.
19539
9d1fb177
DJ
195402005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19541
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.
19545
011a70c2
DJ
195462005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19547
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.
19552
7fb85e41
AS
195532005-10-25 Andreas Schwab <schwab@suse.de>
19554
19555 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19556
19557 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19558 (ia64_num_regs): Reduce to 462.
19559
3db0444b
DJ
195602005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19561
19562 * acinclude.m4: Correct quoting.
19563 * aclocal.m4: Regenerated.
19564
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.
19570
bee0189a
DJ
195712005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19572
19573 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19574
e9d25b98
DJ
195752005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19576
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
19585 GENERAL_REGS.
19586 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19587 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19588
a06660f7
DJ
195892005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19590
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
19601 prototypes.
19602
5a1f5858
DJ
196032005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19604
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.
19609
e122f1f5
SE
196102005-07-01 Steve Ellcey <sje@cup.hp.com>
19611
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.
19617
d592fa2f
DJ
196182005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19619
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.
19624
ccbd4912
MK
196252005-06-13 Mark Kettenis <kettenis@gnu.org>
19626
19627 * configure.ac: Simplify and improve check for socklen_t.
19628 * configure, config.in: Regenerate.
19629
f450004a
DJ
196302005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19631
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.
19637
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
19643 unsigned char.
19644
19645 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19646 char for buffers.
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):
19652 Likewise.
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,
19660 and read_auxv.
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.
19669
eee84df1
DJ
196702005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19671
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.
19676
45b134e5
OF
196772005-05-23 Orjan Friberg <orjanf@axis.com>
19678
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.
889bf7c5 19683 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
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.
19687
48d93c75
UW
196882005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19689
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.
19693
e013ee27
OF
196942005-05-12 Orjan Friberg <orjanf@axis.com>
19695
889bf7c5 19696 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
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
19704 reply packet.
19705 * server.c (main): Recognize 'Z' and 'z' packets.
19706
b0ded00b
UW
197072005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19708
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.
19712
8643e2ad
DJ
197132005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19714
19715 * proc-service.c (ps_lgetregs): Search all_processes instead of
19716 all_threads.
19717
fc620387
DJ
197182005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19719
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.
19724
197252005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
19726
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.
19730
e0e76420
DJ
197312005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19732
19733 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19734
a1928bad
DJ
197352005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19736
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
19749 unsigned long.
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
19758 thread_alive.
19759
dcdb98d2
DJ
197602005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19761
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.
19766
bec39cab
AC
197672005-01-07 Andrew Cagney <cagney@gnu.org>
19768
19769 * configure.ac: Rename configure.in, require autoconf 2.59.
19770 * configure: Re-generate.
19771
434c4c77
DJ
197722004-12-08 Daniel Jacobowitz <dan@debian.org>
19773
19774 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19775 LIBS when finished.
19776 * aclocal.m4: Regenerated.
19777 * configure: Regenerated.
19778
db1d3e1b
AS
197792004-11-21 Andreas Schwab <schwab@suse.de>
19780
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.
19786
19787 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19788 srv_linux_thread_db to yes.
19789
43360365
JB
197902004-10-20 Joel Brobecker <brobecker@gnat.com>
19791
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.
19796
fd500816
DJ
197972004-10-16 Daniel Jacobowitz <dan@debian.org>
19798
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
19810 implementations.
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.
19818
f6de3c42
DJ
198192004-10-16 Daniel Jacobowitz <dan@debian.org>
19820
19821 * configure.in: Test for -rdynamic.
19822 * configure: Regenerated.
19823 * Makefile (INTERNAL_LDFLAGS): New.
19824 (gdbserver, gdbreplay): Use it.
19825
2c0fc042
AC
198262004-09-02 Andrew Cagney <cagney@gnu.org>
19827
19828 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19829
075b3282
DJ
198302004-03-23 Daniel Jacobowitz <drow@mvista.com>
19831
19832 * linux-low.c (linux_wait): Clear all_processes list also.
19833
fa6a77dc
DJ
198342004-03-12 Daniel Jacobowitz <drow@mvista.com>
19835
19836 * linux-low.c: Include <errno.h>. Remove extern declaration of
19837 errno.
19838
6d782a97
DJ
198392004-03-12 Daniel Jacobowitz <drow@mvista.com>
19840
19841 * gdbreplay.c, server.h, utils.c: Update copyright years.
19842
3a7fb99b
DJ
198432004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19844
19845 * server.c (main): Print child status or termination signal from
19846 variable 'signal', not 'sig'.
19847
c3e735a6
DJ
198482004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19849
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.
19855 Update comment.
19856 (read_inferior_memory): Adapt prototype.
19857 * server.c (main): Return an error packet if
19858 read_inferior_memory() returns an error.
19859
a59d1c82
DJ
198602004-03-04 Daniel Jacobowitz <drow@mvista.com>
19861
19862 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19863 Unify with other clean targets.
19864
dc3f8883
DJ
198652004-02-29 Daniel Jacobowitz <drow@mvista.com>
19866
19867 * server.c (handle_v_cont): Call set_desired_inferior.
19868
89a208da
DJ
198692004-02-29 Daniel Jacobowitz <drow@mvista.com>
19870
19871 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19872
62ea82f5
DJ
198732004-02-29 Daniel Jacobowitz <drow@mvista.com>
19874
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.
19879
6910d122
DJ
198802004-02-29 Daniel Jacobowitz <drow@mvista.com>
19881
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
19885 attaching.
19886
198872004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
19888
19889 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19890
c89dc5d4
DJ
198912004-02-26 Daniel Jacobowitz <drow@mvista.com>
19892
19893 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19894 error packet.
19895 * server.c, target.h: Update copyright years.
19896
4b8dad4a
RM
198972004-02-25 Roland McGrath <roland@redhat.com>
19898
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.
19903
d7446758
JB
199042004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19905
19906 Committed by Jim Blandy <jimb@redhat.com>.
19907
19908 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 19909 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
19910 instead of GPR_SIZE to distiguish s390 and s390x targets.
19911
5544ad89
DJ
199122004-01-31 Daniel Jacobowitz <drow@mvista.com>
19913
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
19921 pointer.
19922
2a68b70e
DJ
199232004-01-30 Daniel Jacobowitz <drow@mvista.com>
19924
19925 * regcache.c (new_register_cache): Clear the allocated register
19926 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19927
64386c31
DJ
199282003-10-13 Daniel Jacobowitz <drow@mvista.com>
19929
19930 * linux-low.c (linux_resume): Take a struct thread_resume *
19931 argument.
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
19942 thread_resume *.
19943 (myresume): Delete macro.
19944
c938e9b0
L
199452003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19946
19947 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19948 (uninstall): Support DESTDIR.
19949
7f313d07
BC
19950Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19951
19952 * configure.srv: Add xscale*linux copy of arm*linux entry.
19953
3b2fc2ea
DJ
199542003-07-24 Daniel Jacobowitz <drow@mvista.com>
19955
19956 * linux-arm-low.c (arm_reinsert_addr): New function.
19957 (the_low_target): Add arm_reinsert_addr.
19958
1c0a559e
MK
199592003-07-08 Mark Kettenis <kettenis@gnu.org>
19960
19961 * mem-break.c: Remove whitespace at end of file.
19962
43d5792c
DJ
199632003-06-28 Daniel Jacobowitz <drow@mvista.com>
19964
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.
19971
c8a86edf
DJ
199722003-06-28 Daniel Jacobowitz <drow@mvista.com>
19973
19974 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19975 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19976
73d37363
DJ
199772003-06-20 Daniel Jacobowitz <drow@mvista.com>
19978
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.
19982
6ad8ae5c
DJ
199832003-06-17 Daniel Jacobowitz <drow@mvista.com>
19984
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.
19991
1581182a
MK
199922003-06-13 Mark Kettenis <kettenis@gnu.org>
19993
19994 From Kelley Cook <kelleycook@wideopenwest.com>:
19995 * configure.srv: Accept i[34567]86 variants.
19996
e5379b03
DJ
199972003-06-05 Daniel Jacobowitz <drow@mvista.com>
19998
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
20004 of kill.
20005 * target.h (struct target_ops): Add send_signal.
20006
2ff29de4
JB
200072003-05-29 Jim Blandy <jimb@redhat.com>
20008
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.
20013
254787d4
DJ
200142003-03-26 Daniel Jacobowitz <drow@mvista.com>
20015
20016 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20017 (linux_wait_for_event, linux_init_signals): Likewise.
20018
94e10508
DJ
200192003-03-17 Daniel Jacobowitz <drow@mvista.com>
20020
20021 * configure.in: Check for stdlib.h.
20022 * configure: Regenerated.
20023 * config.in: Regenerated.
20024
4c0711e0
DJ
200252003-01-04 Andreas Schwab <schwab@suse.de>
20026
20027 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20028
ef66e766
AC
200292003-01-02 Andrew Cagney <ac131313@redhat.com>
20030
20031 * Makefile.in: Remove obsolete code.
20032
a1358604
DJ
200332002-11-20 Daniel Jacobowitz <drow@mvista.com>
20034
20035 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20036 defined(PT_FPR0_HI).
20037
23ce3b1c
DJ
200382002-11-17 Stuart Hughes <seh@zee2.com>
20039
20040 * linux-arm-low.c (arm_num_regs): Increase.
20041 (arm_regmap): Include status register.
20042
200432002-11-17 Daniel Jacobowitz <drow@mvista.com>
20044
20045 * linux-low.c (register_addr): Remove incorrect -1 check.
20046
a9fa9f7d
DJ
200472002-08-29 Daniel Jacobowitz <drow@mvista.com>
20048
20049 * linux-low.c (linux_create_inferior): Call setpgid. Return
20050 the new PID.
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
4b8dad4a 20059 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
20060 (attach_inferior): Set signal_pid.
20061
17574093
DJ
200622002-08-23 Daniel Jacobowitz <drow@mvista.com>
20063
20064 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20065
200662002-08-20 Jim Blandy <jimb@redhat.com>
20067
20068 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20069 default for this.
20070
200712002-08-01 Andrew Cagney <cagney@redhat.com>
20072
20073 * Makefile.in: Make chill references obsolete.
20074
200752002-07-24 Kevin Buettner <kevinb@redhat.com>
20076
20077 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20078 * configure: Regenerate.
20079 * config.in: Regenerate.
20080
200812002-07-09 David O'Brien <obrien@FreeBSD.org>
20082
20083 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20084 (perror_with_name, remote_close, remote_open, expect, play): Static.
20085
200862002-07-04 Michal Ludvig <mludvig@suse.cz>
20087
4b8dad4a 20088 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
20089 byte offsets instead of an array of indexes.
20090 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20091
200922002-06-13 Daniel Jacobowitz <drow@mvista.com>
20093
20094 * regcache.c: Add comment.
20095
200962002-06-11 Daniel Jacobowitz <drow@mvista.com>
20097
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
20174 flag.
20175 (get_regcache): Fetch registers lazily. Add fetch argument
20176 and update all callers.
20177 (regcache_invalidate_one, regcache_invalidate): New
20178 functions.
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
20190 stderr.
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
20205 calls to mywait.
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.
20214
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.
20224
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
20246 identifier.
20247
202482002-05-15 Daniel Jacobowitz <drow@mvista.com>
20249
20250 From Martin Pool <mbp@samba.org>:
20251 * server.c (gdbserver_usage): New function.
20252 (main): Call it.
20253
202542002-05-14 Daniel Jacobowitz <drow@mvista.com>
20255
20256 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20257 stop_at -> stop_pc.
20258
202592002-05-04 Andrew Cagney <ac131313@redhat.com>
20260
20261 * Makefile.in: Remove obsolete code.
20262
202632002-04-24 Michal Ludvig <mludvig@suse.cz>
20264
20265 * linux-low.c (regsets_fetch_inferior_registers),
20266 (regsets_store_inferior_registers): Removed cast to int from
20267 ptrace() calls.
20268 * regcache.h: Added declaration of struct inferior_info.
20269
202702002-04-20 Daniel Jacobowitz <drow@mvista.com>
20271
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
20282 get_regcache.
20283 * regcache.h: Add prototypes.
20284 * server.h: Likewise.
20285
202862002-04-20 Daniel Jacobowitz <drow@mvista.com>
20287
20288 * mem-break.c: New file.
20289 * mem-break.h: New file.
20290 * Makefile.in: Add mem-break.o rule; update server.h
20291 dependencies.
20292 * inferiors.c (struct inferior_info): Add target_data
20293 member.
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
20307 handling members.
20308 * server.c (attach_inferior): Remove extra add_inferior
20309 call.
20310 * server.h: Include mem-break.h. Update inferior.c
20311 prototypes.
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
20317 definition.
20318
203192002-04-11 Daniel Jacobowitz <drow@mvista.com>
20320
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.
20326
203272002-04-09 Daniel Jacobowitz <drow@mvista.com>
20328
20329 * server.h: Include <string.h> if HAVE_STRING_H.
20330 * ChangeLog: Correct paths in last ChangeLog entry.
20331
203322002-04-09 Daniel Jacobowitz <drow@mvista.com>
20333
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,
20346 made static.
20347 (arm_cannot_store_register): Renamed from cannot_store_register,
20348 made static.
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,
20354 made static.
20355 (i386_cannot_store_register): Renamed from cannot_store_register,
20356 made static.
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,
20362 made static.
20363 (ia64_cannot_store_register): Renamed from cannot_store_register,
20364 made static.
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,
20370 made static.
20371 (m68k_cannot_store_register): Renamed from cannot_store_register,
20372 made static.
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,
20378 made static.
20379 (mips_cannot_store_register): Renamed from cannot_store_register,
20380 made static.
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,
20386 made static.
20387 (ppc_cannot_store_register): Renamed from cannot_store_register,
20388 made static.
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,
20394 made static.
20395 (s390_cannot_store_register): Renamed from cannot_store_register,
20396 made static.
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,
20402 made static.
20403 (sh_cannot_store_register): Renamed from cannot_store_register,
20404 made static.
20405 (the_low_target): New.
20406 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
20407 (the_low_target): New.
20408
204092002-04-09 Daniel Jacobowitz <drow@mvista.com>
20410
20411 * Makefile.in: Add stamp-h target.
20412 * configure.in: Create stamp-h.
20413 * configure: Regenerated.
20414
204152002-04-09 Daniel Jacobowitz <drow@mvista.com>
20416
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
20421 dependencies.
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
20430 child dies.
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.
20450
204512002-04-09 Daniel Jacobowitz <drow@mvista.com>
20452
20453 * Makefile.in: Add WARN_CFLAGS. Update configury
20454 dependencies.
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.
20472 (fatal): Likewise.
This page took 2.767949 seconds and 4 git commands to generate.