8aaca90c061c24230f1ab55e7144368cb1d4bb55
[binutils-gdb.git] / gdbserver / ChangeLog
1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn the 'cannot_fetch_register' and 'cannot_store_register'
4 linux target ops into methods of linux_process_target.
5
6 * linux-low.h (struct linux_target_ops): Remove the low target ops.
7 (class linux_process_target) <fetch_register>
8 <store_register>
9 <usr_fetch_inferior_registers>
10 <usr_store_inferior_registers>
11 <low_cannot_fetch_register>
12 <low_cannot_fetch_register> Declare.
13 * linux-low.cc (fetch_register): Turn into...
14 (linux_process_target::fetch_register): ...this.
15 (store_register): Turn into ...
16 (linux_process_target::store_register): ...this.
17 (usr_fetch_inferior_registers): Turn into...
18 (linux_process_target::usr_fetch_inferior_registers): ...this.
19 (usr_store_inferior_registers): Turn into...
20 (linux_process_target::usr_store_inferior_registers): ...this.
21 * linux-x86-low.cc (class x86_target)
22 <low_cannot_fetch_register>
23 <low_cannot_store_register>: Declare.
24 (x86_cannot_store_register): Turn into...
25 (x86_target::low_cannot_store_register): ...this.
26 (x86_cannot_fetch_register): Turn into...
27 (x86_target::low_cannot_fetch_register): ...this.
28 (the_low_target): Remove the target op fields.
29 * linux-aarch64-low.cc (class aarch64_target)
30 <low_cannot_fetch_register>
31 <low_cannot_store_register>: Declare.
32 (aarch64_target::low_cannot_fetch_register)
33 (aarch64_target::low_cannot_store_register): Define.
34 (the_low_target): Remove the op fields.
35 * linux-arm-low.cc (class arm_target)
36 <low_cannot_fetch_register>
37 <low_cannot_store_register>: Declare.
38 (arm_cannot_fetch_register): Turn into...
39 (arm_target::low_cannot_fetch_register): ...this.
40 (arm_cannot_store_register): Turn into...
41 (arm_target::low_cannot_store_register): ...this.
42 (the_low_target): Remove the op fields.
43 * linux-bfin-low.cc (class bfin_target)
44 <low_cannot_fetch_register>
45 <low_cannot_store_register>: Declare.
46 (bfin_cannot_fetch_register): Turn into...
47 (bfin_target::low_cannot_fetch_register): ...this.
48 (bfin_cannot_store_register): Turn into...
49 (bfin_target::low_cannot_store_register): ...this.
50 (the_low_target): Remove the op fields.
51 * linux-cris-low.cc (class cris_target)
52 <low_cannot_fetch_register>
53 <low_cannot_store_register>: Declare.
54 (cris_cannot_fetch_register): Turn into...
55 (cris_target::low_cannot_fetch_register): ...this.
56 (cris_cannot_store_register): Turn into...
57 (cris_target::low_cannot_store_register): ...this.
58 (the_low_target): Remove the op fields.
59 * linux-crisv32-low.cc (class crisv32_target)
60 <low_cannot_fetch_register>
61 <low_cannot_store_register>: Declare.
62 (crisv32_target::low_cannot_fetch_register)
63 (crisv32_target::low_cannot_store_register): Define.
64 (the_low_target): Remove the op fields.
65 * linux-ia64-low.cc (class ia64_target)
66 <low_cannot_fetch_register>
67 <low_cannot_store_register>: Declare.
68 (ia64_cannot_fetch_register): Turn into...
69 (ia64_target::low_cannot_fetch_register): ...this.
70 (ia64_cannot_store_register): Turn into...
71 (ia64_target::low_cannot_store_register): ...this.
72 (the_low_target): Remove the op fields.
73 * linux-m32r-low.cc (class m32r_target)
74 <low_cannot_fetch_register>
75 <low_cannot_store_register>: Declare.
76 (m32r_cannot_fetch_register): Turn into...
77 (m32r_target::low_cannot_fetch_register): ...this.
78 (m32r_cannot_store_register): Turn into...
79 (m32r_target::low_cannot_store_register): ...this.
80 (the_low_target): Remove the op fields.
81 * linux-m68k-low.cc (class m68k_target)
82 <low_cannot_fetch_register>
83 <low_cannot_store_register>: Declare.
84 (m68k_cannot_fetch_register): Turn into...
85 (m68k_target::low_cannot_fetch_register): ...this.
86 (m68k_cannot_store_register): Turn into...
87 (m68k_target::low_cannot_store_register): ...this.
88 (the_low_target): Remove the op fields.
89 * linux-mips-low.cc (class mips_target)
90 <low_cannot_fetch_register>
91 <low_cannot_store_register>: Declare.
92 (mips_cannot_fetch_register): Turn into...
93 (mips_target::low_cannot_fetch_register): ...this.
94 (mips_cannot_store_register): Turn into...
95 (mips_target::low_cannot_store_register): ...this.
96 (get_usrregs_info): Inline at the call sites in
97 low_cannot_fetch_register and low_cannot_store_register,
98 and remove.
99 (the_low_target): Remove the op fields.
100 * linux-nios2-low.cc (class nios2_target)
101 <low_cannot_fetch_register>
102 <low_cannot_store_register>: Declare.
103 (nios2_cannot_fetch_register): Turn into...
104 (nios2_target::low_cannot_fetch_register): ...this.
105 (nios2_cannot_store_register): Turn into...
106 (nios2_target::low_cannot_store_register): ...this.
107 (the_low_target): Remove the op fields.
108 * linux-ppc-low.cc (class ppc_target)
109 <low_cannot_fetch_register>
110 <low_cannot_store_register>: Declare.
111 (ppc_cannot_fetch_register): Turn into...
112 (ppc_target::low_cannot_fetch_register): ...this.
113 (ppc_cannot_store_register): Turn into...
114 (ppc_target::low_cannot_store_register): ...this.
115 (the_low_target): Remove the op fields.
116 * linux-riscv-low.cc (class riscv_target)
117 <low_cannot_fetch_register>
118 <low_cannot_store_register>: Declare.
119 (riscv_target::low_cannot_fetch_register)
120 (riscv_target::low_cannot_store_register): Define.
121 (the_low_target): Remove the op fields.
122 * linux-s390-low.cc (class s390_target)
123 <low_cannot_fetch_register>
124 <low_cannot_store_register>: Declare.
125 (s390_cannot_fetch_register): Turn into...
126 (s390_target::low_cannot_fetch_register): ...this.
127 (s390_cannot_store_register): Turn into...
128 (s390_target::low_cannot_store_register): ...this.
129 (the_low_target): Remove the op fields.
130 * linux-sh-low.cc (class sh_target)
131 <low_cannot_fetch_register>
132 <low_cannot_store_register>: Declare.
133 (sh_cannot_fetch_register): Turn into...
134 (sh_target::low_cannot_fetch_register): ...this.
135 (sh_cannot_store_register): Turn into...
136 (sh_target::low_cannot_store_register): ...this.
137 (the_low_target): Remove the op fields.
138 * linux-sparc-low.cc (class sparc_target)
139 <low_cannot_fetch_register>
140 <low_cannot_store_register>: Declare.
141 (sparc_cannot_fetch_register): Turn into...
142 (sparc_target::low_cannot_fetch_register): ...this.
143 (sparc_cannot_store_register): Turn into...
144 (sparc_target::low_cannot_store_register): ...this.
145 (the_low_target): Remove the op fields.
146 * linux-tic6x-low.cc (class tic6x_target)
147 <low_cannot_fetch_register>
148 <low_cannot_store_register>: Declare.
149 (tic6x_cannot_fetch_register): Turn into...
150 (tic6x_target::low_cannot_fetch_register): ...this.
151 (tic6x_cannot_store_register): Turn into...
152 (tic6x_target::low_cannot_store_register): ...this.
153 (the_low_target): Remove the op fields.
154 * linux-tile-low.cc (class tile_target)
155 <low_cannot_fetch_register>
156 <low_cannot_store_register>: Declare.
157 (tile_cannot_fetch_register): Turn into...
158 (tile_target::low_cannot_fetch_register): ...this.
159 (tile_cannot_store_register): Turn into...
160 (tile_target::low_cannot_store_register): ...this.
161 (the_low_target): Remove the op fields.
162 * linux-xtensa-low.cc (class xtensa_target)
163 <low_cannot_fetch_register>
164 <low_cannot_store_register>: Declare.
165 (xtensa_target::low_cannot_fetch_register)
166 (xtensa_target::low_cannot_store_register): Define.
167 (the_low_target): Remove the op fields.
168
169 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
170
171 Turn the 'regs_info' linux target op into a method of
172 linux_process_target.
173
174 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
175 (class linux_process_target) <get_regs_info>: Define.
176
177 Update the callers below.
178
179 * linux-low.cc (linux_process_target::fetch_registers)
180 (linux_process_target::store_registers)
181 * proc-service.cc (gregset_info)
182
183 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
184 (x86_linux_regs_info): Turn into ...
185 (x86_target::get_regs_info): ...this.
186 (the_low_target): Remove the op field.
187 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
188 Declare.
189 (aarch64_regs_info): Turn into ...
190 (aarch64_target::get_regs_info): ...this.
191 (the_low_target): Remove the op field.
192 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
193 (arm_regs_info): Turn into ...
194 (arm_target::get_regs_info): ...this.
195 (the_low_target): Remove the op field.
196 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
197 (bfin_regs_info): Turn into ...
198 (bfin_target::get_regs_info): ...this.
199 (the_low_target): Remove the op field.
200 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
201 (cris_regs_info): Turn into ...
202 (cris_target::get_regs_info): ...this.
203 (the_low_target): Remove the op field.
204 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
205 Declare.
206 (crisv32_regs_info): Turn into ...
207 (crisv32_target::get_regs_info): ...this.
208 (the_low_target): Remove the op field.
209 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
210 (ia64_regs_info): Turn into ...
211 (ia64_target::get_regs_info): ...this.
212 (the_low_target): Remove the op field.
213 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
214 (m32r_regs_info): Turn into ...
215 (m32r_target::get_regs_info): ...this.
216 (the_low_target): Remove the op field.
217 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
218 (m68k_regs_info): Turn into ...
219 (m68k_target::get_regs_info): ...this.
220 (the_low_target): Remove the op field.
221 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
222 (mips_regs_info): Turn into ...
223 (mips_target::get_regs_info): ...this.
224 (the_low_target): Remove the op field.
225 (get_usrregs_info): Update the call to the op.
226 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
227 (nios2_regs_info): Turn into ...
228 (nios2_target::get_regs_info): ...this.
229 (the_low_target): Remove the op field.
230 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
231 (ppc_regs_info): Turn into ...
232 (ppc_target::get_regs_info): ...this.
233 (the_low_target): Remove the op field.
234 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
235 (riscv_regs_info): Turn into ...
236 (riscv_target::get_regs_info): ...this.
237 (the_low_target): Remove the op field.
238 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
239 (s390_regs_info): Turn into ...
240 (s390_target::get_regs_info): ...this.
241 (the_low_target): Remove the op field.
242 (s390_collect_ptrace_register)
243 (s390_supply_ptrace_register)
244 (s390_fill_gregset): Update the call to the op.
245 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
246 (sh_regs_info): Turn into ...
247 (sh_target::get_regs_info): ...this.
248 (the_low_target): Remove the op field.
249 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
250 (sparc_regs_info): Turn into ...
251 (sparc_target::get_regs_info): ...this.
252 (the_low_target): Remove the op field.
253 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
254 (tic6x_regs_info): Turn into ...
255 (tic6x_target::get_regs_info): ...this.
256 (the_low_target): Remove the op field.
257 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
258 (tile_regs_info): Turn into ...
259 (tile_target::get_regs_info): ...this.
260 (the_low_target): Remove the op field.
261 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
262 Declare.
263 (xtensa_regs_info): Turn into ...
264 (xtensa_target::get_regs_info): ...this.
265 (the_low_target): Remove the op field.
266
267 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
268
269 Turn the 'arch_setup' linux target op into a method of
270 linux_process_target.
271
272 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
273 (class linux_process_target) <arch_setup_thread>
274 <low_arch_setup>: New declarations.
275 * linux-low.cc (linux_arch_setup): Delete.
276 (linux_arch_setup_thread): Turn into...
277 (linux_process_target::arch_setup_thread): ... this.
278
279 Update the callers below.
280
281 (linux_process_target::handle_extended_wait)
282 (linux_process_target::post_create_inferior)
283 (linux_process_target::filter_event)
284
285 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
286 declaration.
287 (x86_linux_update_xmltarget): Turn into...
288 (x86_target::update_xmltarget): ...this.
289 (x86_linux_process_qsupported): Update the call to
290 x86_linux_update_xmltarget.
291 (x86_arch_setup): Turn into ...
292 (x86_target::low_arch_setup): ...this.
293 (the_low_target): Remove the op field.
294 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
295 declaration.
296 (aarch64_arch_setup): Turn into ...
297 (aarch64_target::low_arch_setup): ...this.
298 (the_low_target): Remove the op field.
299 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
300 declaration.
301 (arm_arch_setup): Turn into ...
302 (arm_target::low_arch_setup): ...this.
303 (the_low_target): Remove the op field.
304 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
305 declaration.
306 (bfin_arch_setup): Turn into ...
307 (bfin_target::low_arch_setup): ...this.
308 (the_low_target): Remove the op field.
309 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
310 declaration.
311 (cris_arch_setup): Turn into ...
312 (cris_target::low_arch_setup): ...this.
313 (the_low_target): Remove the op field.
314 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
315 declaration.
316 (crisv32_arch_setup): Turn into ...
317 (crisv32_target::low_arch_setup): ...this.
318 (the_low_target): Remove the op field.
319 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
320 declaration.
321 (ia64_arch_setup): Turn into ...
322 (ia64_target::low_arch_setup): ...this.
323 (the_low_target): Remove the op field.
324 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
325 declaration.
326 (m32r_arch_setup): Turn into ...
327 (m32r_target::low_arch_setup): ...this.
328 (the_low_target): Remove the op field.
329 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
330 declaration.
331 (m68k_arch_setup): Turn into ...
332 (m68k_target::low_arch_setup): ...this.
333 (the_low_target): Remove the op field.
334 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
335 declaration.
336 (mips_arch_setup): Turn into ...
337 (mips_target::low_arch_setup): ...this.
338 (the_low_target): Remove the op field.
339 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
340 declaration.
341 (nios2_arch_setup): Turn into ...
342 (nios2_target::low_arch_setup): ...this.
343 (the_low_target): Remove the op field.
344 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
345 declaration.
346 (ppc_arch_setup): Turn into ...
347 (ppc_target::low_arch_setup): ...this.
348 (the_low_target): Remove the op field.
349 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
350 declaration.
351 (riscv_arch_setup): Turn into ...
352 (riscv_target::low_arch_setup): ...this.
353 (the_low_target): Remove the op field.
354 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
355 declaration.
356 (s390_arch_setup): Turn into ...
357 (s390_target::low_arch_setup): ...this.
358 (the_low_target): Remove the op field.
359 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
360 declaration.
361 (sh_arch_setup): Turn into ...
362 (sh_target::low_arch_setup): ...this.
363 (the_low_target): Remove the op field.
364 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
365 declaration.
366 (sparc_arch_setup): Turn into ...
367 (sparc_target::low_arch_setup): ...this.
368 (the_low_target): Remove the op field.
369 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
370 declaration.
371 (tic6x_arch_setup): Turn into ...
372 (tic6x_target::low_arch_setup): ...this.
373 (the_low_target): Remove the op field.
374 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
375 declaration.
376 (tile_arch_setup): Turn into ...
377 (tile_target::low_arch_setup): ...this.
378 (the_low_target): Remove the op field.
379 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
380 declaration.
381 (xtensa_arch_setup): Turn into ...
382 (xtensa_target::low_arch_setup): ...this.
383 (the_low_target): Remove the op field.
384
385 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
386
387 * linux-low.h (the_linux_target): New extern declaration.
388 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
389 'the_target'.
390 (the_linux_target): Remove.
391 * linux-x86-low.cc (class x86_target): New class.
392 (the_x86_target): New static object.
393 (the_linux_target): Define as pointer to the_x86_target.
394 * linux-aarch64-low.cc (class aarch64_target): New class.
395 (the_aarch64_target): New static object.
396 (the_linux_target): Define as pointer to the_aarch64_target.
397 * linux-arm-low.cc (class arm_target): New class.
398 (the_arm_target): New static object.
399 (the_linux_target): Define as pointer to the_arm_target.
400 * linux-bfin-low.cc (class bfin_target): New class.
401 (the_bfin_target): New static object.
402 (the_linux_target): Define as pointer to the_bfin_target.
403 * linux-cris-low.cc (class cris_target): New class.
404 (the_cris_target): New static object.
405 (the_linux_target): Define as pointer to the_cris_target.
406 * linux-crisv32-low.cc (class crisv32_target): New class.
407 (the_crisv32_target): New static object.
408 (the_linux_target): Define as pointer to the_crisv32_target.
409 * linux-ia64-low.cc (class ia64_target): New class.
410 (the_ia64_target): New static object.
411 (the_linux_target): Define as pointer to the_ia64_target.
412 * linux-m32r-low.cc (class m32r_target): New class.
413 (the_m32r_target): New static object.
414 (the_linux_target): Define as pointer to the_m32r_target.
415 * linux-m68k-low.cc (class m68k_target): New class.
416 (the_m68k_target): New static object.
417 (the_linux_target): Define as pointer to the_m68k_target.
418 * linux-mips-low.cc (class mips_target): New class.
419 (the_mips_target): New static object.
420 (the_linux_target): Define as pointer to the_mips_target.
421 * linux-nios2-low.cc (class nios2_target): New class.
422 (the_nios2_target): New static object.
423 (the_linux_target): Define as pointer to the_nios2_target.
424 * linux-ppc-low.cc (class ppc_target): New class.
425 (the_ppc_target): New static object.
426 (the_linux_target): Define as pointer to the_ppc_target.
427 * linux-riscv-low.cc (class riscv_target): New class.
428 (the_riscv_target): New static object.
429 (the_linux_target): Define as pointer to the_riscv_target.
430 * linux-s390-low.cc (class s390_target): New class.
431 (the_s390_target): New static object.
432 (the_linux_target): Define as pointer to the_s390_target.
433 * linux-sh-low.cc (class sh_target): New class.
434 (the_sh_target): New static object.
435 (the_linux_target): Define as pointer to the_sh_target.
436 * linux-sparc-low.cc (class sparc_target): New class.
437 (the_sparc_target): New static object.
438 (the_linux_target): Define as pointer to the_sparc_target.
439 * linux-tic6x-low.cc (class tic6x_target): New class.
440 (the_tic6x_target): New static object.
441 (the_linux_target): Define as pointer to the_tic6x_target.
442 * linux-tile-low.cc (class tile_target): New class.
443 (the_tile_target): New static object.
444 (the_linux_target): Define as pointer to the_tile_target.
445 * linux-xtensa-low.cc (class xtensa_target): New class.
446 (the_xtensa_target): New static object.
447 (the_linux_target): Define as pointer to the_xtensa_target.
448
449 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 Turn some static functions in linux-low.cc into private methods of
452 linux_process_target.
453
454 * linux-low.cc (handle_extended_wait): Turn into ...
455 (linux_process_target::handle_extended_wait): ...this. Call
456 'mourn' on 'this' object instead of 'the_target'.
457 (maybe_move_out_of_jump_pad): Turn into...
458 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
459 (linux_low_filter_event): Turn into...
460 (linux_process_target::filter_event): ...this.
461 (linux_wait_for_event_filtered): Turn into...
462 (linux_process_target::wait_for_event_filtered): ...this.
463 (linux_wait_for_event): Turn into...
464 (linux_process_target::wait_for_event): ...this.
465 (linux_wait_1): Turn into...
466 (linux_process_target::wait_1): ...this.
467 (wait_for_sigstop): Turn into...
468 (linux_process_target::wait_for_sigstop): ...this.
469 (move_out_of_jump_pad_callback): Turn into...
470 (linux_process_target::move_out_of_jump_pad): ...this.
471 (stop_all_lwps): Turn into...
472 (linux_process_target::stop_all_lwps): ...this.
473 (start_step_over): Turn into...
474 (linux_process_target::start_step_over): ...this.
475 (complete_ongoing_step_over): Turn into...
476 (linux_process_target::complete_ongoing_step_over): ...this.
477 (proceed_all_lwps): Turn into...
478 (linux_process_target::proceed_all_lwps): ...this.
479 (unstop_all_lwps): Turn into...
480 (linux_process_target::unstop_all_lwps): ...this.
481
482 * linux-low.h (class linux_process_target)
483 <handle_extended_wait>
484 <maybe_move_out_of_jump_pad>
485 filter_event>
486 <wait_for_event_filtered>
487 <wait_for_event>
488 <wait_1>
489 <wait_for_sigstop>
490 <move_out_of_jump_pad>
491 <stop_all_lwps>
492 <start_step_over>
493 <complete_ongoing_step_over>
494 <proceed_all_lwps>
495 <unstop_all_lwps>: Declare.
496
497 Update the callers below.
498
499 * linux-low.cc (linux_process_target::attach): Update.
500 (linux_process_target::stabilize_threads): Ditto.
501 (linux_process_target::wait): Ditto.
502
503 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504
505 * linux-low.h (struct linux_target_ops): Update the comment for
506 'cannot_store_register' to return 0 or 1.
507 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
508 of 2.
509
510 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
511
512 * config.in: Re-generate.
513 * configure: Re-generate.
514
515 2020-03-17 Kamil Rytarowski <n54@gmx.com>
516
517 * regcache.cc (find_register_by_number): Update.
518 * tdesc.cc (init_target_desc): Likewise.
519 * tdesc.h (target_desc::reg_defs): Likewise.
520
521 2020-03-12 Tom Tromey <tom@tromey.com>
522
523 * configure: Rebuild.
524 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
525 (WIN32APILIBS): New subst.
526 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
527 gdbsupport files.
528 (gdbsupport/%.o): Remove target.
529 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
530 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
531 (WIN32APILIBS): New variable.
532 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
533 (gdbreplay$(EXEEXT)): Likewise.
534
535 2020-03-12 Tom Tromey <tom@tromey.com>
536
537 * config.in, configure: Rebuild.
538 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
539 * acinclude.m4: Include gettext-sister.m4.
540 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
541 variables.
542 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
543 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
544
545 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
546
547 * acinclude.m4: Update path to selftest.m4.
548
549 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
550
551 * configure.ac: Don't source bfd/development.sh, move
552 GDB_AC_COMMON higher.
553 * configure: Re-generate.
554
555 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
556
557 * configure: Re-generate.
558
559 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
560
561 * configure: Re-generate.
562
563 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
564
565 * .dir-locals.el: New file.
566
567 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
568
569 * .gitattributes: New file.
570
571 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
572
573 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
574 reply into an S reply.
575 * server.cc (disable_packet_T): New global.
576 (captured_main): Set new global when appropriate.
577 * server.h (disable_packet_T): Declare.
578
579 2020-02-21 Tom Tromey <tom@tromey.com>
580
581 * Makefile.in (mostlyclean): New target.
582
583 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
584
585 * target.h (struct process_stratum_target): Remove.
586 (class process_target): Rename to ...
587 (class process_stratum_target): ... this.
588 * linux-low.h (class linux_process_target): Derive from
589 'process_stratum_target'.
590 * linux-low.cc (linux_target_ops): Remove.
591 (initialize_low): Set the_target to the singleton instance of
592 linux_process_target.
593 * lynx-low.h (class lynx_process_target): Derive from
594 'process_stratum_target'.
595 * lynx-low.cc (lynx_target_ops): Remove.
596 (initialize_low): Set the_target to the singleton instance of
597 lynx_process_target.
598 * nto-low.h (class nto_process_target): Derive from
599 'process_stratum_target'.
600 * nto-low.cc (nto_target_ops): Remove.
601 (initialize_low): Set the_target to the singleton instance of
602 nto_process_target.
603 * win32-low.h (class win32_process_target): Derive from
604 'process_stratum_target'.
605 * win32-low.cc (win32_target_ops): Remove.
606 (initialize_low): Set the_target to the singleton instance of
607 win32_process_target.
608
609 Replace 'the_target->pt' with 'the_target' in the uses below.
610
611 * hostio.cc (hostio_error)
612 (handle_setfs)
613 (handle_open)
614 (handle_unlink)
615 (handle_readlink)
616 * linux-aarch32-low.cc (arm_breakpoint_at)
617 * linux-aarch64-low.cc (aarch64_breakpoint_at)
618 * linux-arm-low.cc (arm_sigreturn_next_pc)
619 (arm_get_hwcap)
620 (arm_get_syscall_trapinfo)
621 * linux-cris-low.cc (cris_breakpoint_at)
622 * linux-crisv32-low.cc (cris_breakpoint_at)
623 * linux-low.cc (handle_extended_wait)
624 (linux_wait_1)
625 (linux_read_memory)
626 (linux_process_target::breakpoint_kind_from_pc)
627 (linux_get_auxv)
628 * linux-m32r-low.cc (m32r_breakpoint_at)
629 * linux-mips-low.cc (mips_breakpoint_at)
630 * linux-nios2-low.cc (nios2_breakpoint_at)
631 * linux-ppc-low.cc (ppc_breakpoint_at)
632 * linux-s390-low.cc (s390_get_hwcap)
633 * linux-sh-low.cc (sh_breakpoint_at)
634 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
635 (sparc_store_gregset_from_stack)
636 (sparc_breakpoint_at)
637 * linux-tic6x-low.cc (tic6x_breakpoint_at)
638 * linux-tile-low.cc (tile_breakpoint_at)
639 * linux-x86-low.cc (x86_breakpoint_at)
640 * linux-xtensa-low.cc (xtensa_breakpoint_at)
641 * mem-break.cc (bp_size)
642 (bp_opcode)
643 (insert_memory_breakpoint)
644 (set_raw_breakpoint_at)
645 (delete_raw_breakpoint)
646 (z_type_supported)
647 (uninsert_raw_breakpoint)
648 (reinsert_raw_breakpoint)
649 (validate_inserted_breakpoint)
650 * regcache.cc (regcache_read_pc)
651 (regcache_write_pc)
652 * remote-utils.cc (putpkt_binary_1)
653 (input_interrupt)
654 (getpkt)
655 (prepare_resume_reply)
656 * server.cc (handle_general_set)
657 (handle_detach)
658 (handle_qxfer_auxv)
659 (handle_qxfer_exec_file)
660 (handle_qxfer_libraries_svr4)
661 (handle_qxfer_osdata)
662 (handle_qxfer_siginfo)
663 (handle_qxfer_fdpic)
664 (handle_query)
665 (resume)
666 (handle_v_requests)
667 (queue_stop_reply_callback)
668 (captured_main)
669 * target.cc (prepare_to_access_memory)
670 (done_accessing_memory)
671 (read_inferior_memory)
672 (target_write_memory)
673 (target_stop_and_wait)
674 (target_wait)
675 (target_mourn_inferior)
676 (target_continue_no_signal)
677 (target_continue)
678 (target_supports_multi_process)
679 (kill_inferior)
680 * target.h
681 (target_create_inferior)
682 (target_post_create_inferior)
683 (myattach)
684 (target_supports_fork_events)
685 (target_supports_vfork_events)
686 (target_supports_exec_events)
687 (target_handle_new_gdb_connection)
688 (detach_inferior)
689 (mythread_alive)
690 (fetch_inferior_registers)
691 (store_inferior_registers)
692 (join_inferior)
693 (target_supports_non_stop)
694 (target_async)
695 (target_process_qsupported)
696 (target_supports_catch_syscall)
697 (target_get_ipa_tdesc_idx)
698 (target_supports_tracepoints)
699 (target_supports_fast_tracepoints)
700 (target_get_min_fast_tracepoint_insn_len)
701 (target_thread_stopped)
702 (target_pause_all)
703 (target_unpause_all)
704 (target_stabilize_threads)
705 (target_install_fast_tracepoint_jump_pad)
706 (target_emit_ops)
707 (target_supports_disable_randomization)
708 (target_supports_agent)
709 (target_enable_btrace)
710 (target_disable_btrace)
711 (target_read_btrace)
712 (target_read_btrace_conf)
713 (target_supports_range_stepping)
714 (target_supports_stopped_by_sw_breakpoint)
715 (target_stopped_by_sw_breakpoint)
716 (target_supports_stopped_by_hw_breakpoint)
717 (target_supports_hardware_single_step)
718 (target_stopped_by_hw_breakpoint)
719 (target_breakpoint_kind_from_pc)
720 (target_breakpoint_kind_from_current_state)
721 (target_supports_software_single_step)
722 (target_core_of_thread)
723 (target_thread_name)
724 (target_thread_handle)
725 * win32-low.cc (do_initial_child_stuff)
726
727 Rename target op default definitions listed below.
728
729 * target.cc (process_target::post_create_inferior): Rename as ...
730 (process_stratum_target::post_create_inferior): ... this.
731 (process_target::prepare_to_access_memory): Rename as ...
732 (process_stratum_target::prepare_to_access_memory): ... this.
733 (process_target::done_accessing_memory): Rename as ...
734 (process_stratum_target::done_accessing_memory): ... this.
735 (process_target::look_up_symbols): Rename as ...
736 (process_stratum_target::look_up_symbols): ... this.
737 (process_target::supports_read_auxv): Rename as ...
738 (process_stratum_target::supports_read_auxv): ... this.
739 (process_target::read_auxv): Rename as ...
740 (process_stratum_target::read_auxv): ... this.
741 (process_target::supports_z_point_type): Rename as ...
742 (process_stratum_target::supports_z_point_type): ... this.
743 (process_target::insert_point): Rename as ...
744 (process_stratum_target::insert_point): ... this.
745 (process_target::remove_point): Rename as ...
746 (process_stratum_target::remove_point): ... this.
747 (process_target::stopped_by_sw_breakpoint): Rename as ...
748 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
749 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
750 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
751 (process_target::stopped_by_hw_breakpoint): Rename as ...
752 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
753 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
754 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
755 (process_target::supports_hardware_single_step): Rename as ...
756 (process_stratum_target::supports_hardware_single_step): ... this.
757 (process_target::stopped_by_watchpoint): Rename as ...
758 (process_stratum_target::stopped_by_watchpoint): ... this.
759 (process_target::stopped_data_address): Rename as ...
760 (process_stratum_target::stopped_data_address): ... this.
761 (process_target::supports_read_offsets): Rename as ...
762 (process_stratum_target::supports_read_offsets): ... this.
763 (process_target::read_offsets): Rename as ...
764 (process_stratum_target::read_offsets): ... this.
765 (process_target::supports_get_tls_address): Rename as ...
766 (process_stratum_target::supports_get_tls_address): ... this.
767 (process_target::get_tls_address): Rename as ...
768 (process_stratum_target::get_tls_address): ... this.
769 (process_target::hostio_last_error): Rename as ...
770 (process_stratum_target::hostio_last_error): ... this.
771 (process_target::supports_qxfer_osdata): Rename as ...
772 (process_stratum_target::supports_qxfer_osdata): ... this.
773 (process_target::qxfer_osdata): Rename as ...
774 (process_stratum_target::qxfer_osdata): ... this.
775 (process_target::supports_qxfer_siginfo): Rename as ...
776 (process_stratum_target::supports_qxfer_siginfo): ... this.
777 (process_target::qxfer_siginfo): Rename as ...
778 (process_stratum_target::qxfer_siginfo): ... this.
779 (process_target::supports_non_stop): Rename as ...
780 (process_stratum_target::supports_non_stop): ... this.
781 (process_target::async): Rename as ...
782 (process_stratum_target::async): ... this.
783 (process_target::start_non_stop): Rename as ...
784 (process_stratum_target::start_non_stop): ... this.
785 (process_target::supports_multi_process): Rename as ...
786 (process_stratum_target::supports_multi_process): ... this.
787 (process_target::supports_fork_events): Rename as ...
788 (process_stratum_target::supports_fork_events): ... this.
789 (process_target::supports_vfork_events): Rename as ...
790 (process_stratum_target::supports_vfork_events): ... this.
791 (process_target::supports_exec_events): Rename as ...
792 (process_stratum_target::supports_exec_events): ... this.
793 (process_target::handle_new_gdb_connection): Rename as ...
794 (process_stratum_target::handle_new_gdb_connection): ... this.
795 (process_target::handle_monitor_command): Rename as ...
796 (process_stratum_target::handle_monitor_command): ... this.
797 (process_target::core_of_thread): Rename as ...
798 (process_stratum_target::core_of_thread): ... this.
799 (process_target::supports_read_loadmap): Rename as ...
800 (process_stratum_target::supports_read_loadmap): ... this.
801 (process_target::read_loadmap): Rename as ...
802 (process_stratum_target::read_loadmap): ... this.
803 (process_target::process_qsupported): Rename as ...
804 (process_stratum_target::process_qsupported): ... this.
805 (process_target::supports_tracepoints): Rename as ...
806 (process_stratum_target::supports_tracepoints): ... this.
807 (process_target::read_pc): Rename as ...
808 (process_stratum_target::read_pc): ... this.
809 (process_target::write_pc): Rename as ...
810 (process_stratum_target::write_pc): ... this.
811 (process_target::supports_thread_stopped): Rename as ...
812 (process_stratum_target::supports_thread_stopped): ... this.
813 (process_target::thread_stopped): Rename as ...
814 (process_stratum_target::thread_stopped): ... this.
815 (process_target::supports_get_tib_address): Rename as ...
816 (process_stratum_target::supports_get_tib_address): ... this.
817 (process_target::get_tib_address): Rename as ...
818 (process_stratum_target::get_tib_address): ... this.
819 (process_target::pause_all): Rename as ...
820 (process_stratum_target::pause_all): ... this.
821 (process_target::unpause_all): Rename as ...
822 (process_stratum_target::unpause_all): ... this.
823 (process_target::stabilize_threads): Rename as ...
824 (process_stratum_target::stabilize_threads): ... this.
825 (process_target::supports_fast_tracepoints): Rename as ...
826 (process_stratum_target::supports_fast_tracepoints): ... this.
827 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
828 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
829 (process_target::emit_ops): Rename as ...
830 (process_stratum_target::emit_ops): ... this.
831 (process_target::supports_disable_randomization): Rename as ...
832 (process_stratum_target::supports_disable_randomization): ... this.
833 (process_target::supports_qxfer_libraries_svr4): Rename as ...
834 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
835 (process_target::qxfer_libraries_svr4): Rename as ...
836 (process_stratum_target::qxfer_libraries_svr4): ... this.
837 (process_target::supports_agent): Rename as ...
838 (process_stratum_target::supports_agent): ... this.
839 (process_target::enable_btrace): Rename as ...
840 (process_stratum_target::enable_btrace): ... this.
841 (process_target::disable_btrace): Rename as ...
842 (process_stratum_target::disable_btrace): ... this.
843 (process_target::read_btrace): Rename as ...
844 (process_stratum_target::read_btrace): ... this.
845 (process_target::read_btrace_conf): Rename as ...
846 (process_stratum_target::read_btrace_conf): ... this.
847 (process_target::supports_range_stepping): Rename as ...
848 (process_stratum_target::supports_range_stepping): ... this.
849 (process_target::supports_pid_to_exec_file): Rename as ...
850 (process_stratum_target::supports_pid_to_exec_file): ... this.
851 (process_target::pid_to_exec_file): Rename as ...
852 (process_stratum_target::pid_to_exec_file): ... this.
853 (process_target::supports_multifs): Rename as ...
854 (process_stratum_target::supports_multifs): ... this.
855 (process_target::multifs_open): Rename as ...
856 (process_stratum_target::multifs_open): ... this.
857 (process_target::multifs_unlink): Rename as ...
858 (process_stratum_target::multifs_unlink): ... this.
859 (process_target::multifs_readlink): Rename as ...
860 (process_stratum_target::multifs_readlink): ... this.
861 (process_target::breakpoint_kind_from_pc): Rename as ...
862 (process_stratum_target::breakpoint_kind_from_pc): ... this.
863 (process_target::breakpoint_kind_from_current_state): Rename as ...
864 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
865 (process_target::thread_name): Rename as ...
866 (process_stratum_target::thread_name): ... this.
867 (process_target::thread_handle): Rename as ...
868 (process_stratum_target::thread_handle): ... this.
869 (process_target::supports_software_single_step): Rename as ...
870 (process_stratum_target::supports_software_single_step): ... this.
871 (process_target::supports_catch_syscall): Rename as ...
872 (process_stratum_target::supports_catch_syscall): ... this.
873 (process_target::get_ipa_tdesc_idx): Rename as ...
874 (process_stratum_target::get_ipa_tdesc_idx): ... this.
875
876 2020-02-20 Pedro Alves <palves@redhat.com>
877
878 * target.cc (set_target_ops): Simply copy the given target pointer
879 instead of creating a copy of the pointed object.
880
881 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
882
883 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
884 of process_target.
885
886 * target.h (struct process_stratum_target): Remove the target op.
887 (class process_target): Add the target op.
888 (target_get_ipa_tdesc_idx): Update the macro.
889 * target.cc (process_target::get_ipa_tdesc_idx): Define.
890
891 Update the derived classes and callers below.
892
893 * linux-low.cc (linux_target_ops): Update.
894 (linux_get_ipa_tdesc_idx): Turn into ...
895 (linux_process_target::get_ipa_tdesc_idx): ... this.
896 * linux-low.h (class linux_process_target): Update.
897 * lynx-low.cc (lynx_target_ops): Update.
898 * nto-low.cc (nto_target_ops): Update.
899 * win32-low.cc (win32_target_ops): Update.
900
901 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
902
903 Turn process_stratum_target's supports_catch_syscall op into a
904 method of process_target.
905
906 * target.h (struct process_stratum_target): Remove the target op.
907 (class process_target): Add the target op.
908 (target_supports_catch_syscall): Update the macro.
909 * target.cc (process_target::supports_catch_syscall): Define.
910
911 Update the derived classes and callers below.
912
913 * linux-low.cc (linux_target_ops): Update.
914 (linux_supports_catch_syscall): Turn into ...
915 (linux_process_target::supports_catch_syscall): ... this.
916 * linux-low.h (class linux_process_target): Update.
917 * lynx-low.cc (lynx_target_ops): Update.
918 * nto-low.cc (nto_target_ops): Update.
919 * win32-low.cc (win32_target_ops): Update.
920
921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
922
923 Turn process_stratum_target's supports_software_single_step op
924 into a method of process_target.
925
926 * target.h (struct process_stratum_target): Remove the target op.
927 (class process_target): Add the target op.
928 (target_supports_software_single_step): Update the macro.
929 * target.cc (process_target::supports_software_single_step): Define.
930
931 Update the derived classes and callers below.
932
933 * linux-low.cc (linux_target_ops): Update.
934 (linux_supports_software_single_step): Turn into ...
935 (linux_process_target::supports_software_single_step): ... this.
936 * linux-low.h (class linux_process_target): Update.
937 * lynx-low.cc (lynx_target_ops): Update.
938 * nto-low.cc (nto_target_ops): Update.
939 * win32-low.cc (win32_target_ops): Update.
940
941 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 Turn process_stratum_target's thread_name and thread_handle ops
944 into methods of process_target.
945
946 * target.h (struct process_stratum_target): Remove the target ops.
947 (class process_target): Add the target ops.
948 (target_thread_name): Update the macro.
949 (target_thread_handle): Update the macro.
950 * target.cc (process_target::thread_name): Define.
951 (process_target::thread_handle): Define.
952
953 Update the derived classes and callers below.
954
955 * linux-low.cc (linux_target_ops): Update.
956 (linux_process_target::thread_name): Define.
957 (linux_process_target::thread_handle): Define.
958 * linux-low.h (class linux_process_target): Update.
959 * lynx-low.cc (lynx_target_ops): Update.
960 * nto-low.cc (nto_target_ops): Update.
961 * win32-low.cc (win32_target_ops): Update.
962
963 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
964
965 Turn process_stratum_target's breakpoint_kind_from_pc,
966 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
967 ops into methods of process_target.
968
969 * target.h (struct process_stratum_target): Remove the target op.
970 (class process_target): Add the target op.
971 (target_breakpoint_kind_from_pc): Update the macro.
972 (target_breakpoint_kind_from_current_state): Update the macro.
973 (default_breakpoint_kind_from_pc): Remove declaration.
974 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
975 (process_target::breakpoint_kind_from_pc): ... this.
976 (process_target::breakpoint_kind_from_current_state): Define.
977
978 Update the derived classes and callers below.
979
980 * mem-break.cc (bp_size): Update.
981 (bp_opcode): Update.
982 * linux-low.cc (linux_target_ops): Update.
983 (linux_wait_1): Update.
984 (linux_breakpoint_kind_from_pc): Turn into ...
985 (linux_process_target::breakpoint_kind_from_pc): ... this.
986 (linux_sw_breakpoint_from_kind): Turn into ...
987 (linux_process_target::sw_breakpoint_from_kind): ... this.
988 (linux_breakpoint_kind_from_current_state): Turn into ...
989 (linux_process_target::breakpoint_kind_from_current_state): ... this.
990 * linux-low.h (class linux_process_target): Update.
991 * lynx-low.cc (lynx_target_ops): Update.
992 (lynx_process_target::sw_breakpoint_from_kind): Define.
993 * lynx-low.h (class lynx_process_target): Update.
994 * nto-low.cc (nto_target_ops): Update.
995 (nto_sw_breakpoint_from_kind): Turn into ...
996 (nto_process_target::sw_breakpoint_from_kind): ... this.
997 * nto-low.h (class nto_process_target): Update.
998 * win32-low.cc (win32_target_ops): Update.
999 (win32_sw_breakpoint_from_kind): Turn into ...
1000 (win32_process_target::sw_breakpoint_from_kind): ... this.
1001 * win32-low.h (class win32_process_target): Update.
1002
1003 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004
1005 Turn process_stratum_target's multifs_open, multifs_readlink,
1006 multifs_unlink ops into methods of process_target.
1007
1008 * target.h (struct process_stratum_target): Remove the target ops.
1009 (class process_target): Add the target ops. Also add
1010 'supports_multifs'.
1011 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1012 "sys/stat.h".
1013 (process_target::supports_multifs): Define.
1014 (process_target::multifs_open): Define.
1015 (process_target::multifs_readlink): Define.
1016 (process_target::multifs_unlink): Define.
1017
1018 Update the derived classes and callers below.
1019
1020 * hostio.cc (handle_setfs): Update.
1021 (handle_open): Update.
1022 (handle_unlink): Update.
1023 (handle_readlink): Update.
1024 * linux-low.cc (linux_target_ops): Update.
1025 (linux_process_target::supports_multifs): Define.
1026 (linux_process_target::multifs_open): Define.
1027 (linux_process_target::multifs_readlink): Define.
1028 (linux_process_target::multifs_unlink): Define.
1029 * linux-low.h (class linux_process_target): Update.
1030 * lynx-low.cc (lynx_target_ops): Update.
1031 * nto-low.cc (nto_target_ops): Update.
1032 * win32-low.cc (win32_target_ops): Update.
1033
1034 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1035
1036 Turn process_stratum_target's pid_to_exec_file op into a method
1037 of process_target.
1038
1039 * target.h (struct process_stratum_target): Remove the target op.
1040 (class process_target): Add the target op. Also add
1041 'supports_pid_to_exec_file'.
1042 * target.cc (process_target::pid_to_exec_file): Define.
1043 (process_target::supports_pid_to_exec_file): Define.
1044
1045 Update the derived classes and callers below.
1046
1047 * server.cc (handle_qxfer_exec_file): Update.
1048 (handle_query): Update.
1049 * linux-low.cc (linux_target_ops): Update.
1050 (linux_process_target::supports_pid_to_exec_file): Define.
1051 (linux_process_target::pid_to_exec_file): Define.
1052 * linux-low.h (class linux_process_target): Update.
1053 * lynx-low.cc (lynx_target_ops): Update.
1054 * nto-low.cc (nto_target_ops): Update.
1055 * win32-low.cc (win32_target_ops): Update.
1056
1057 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1058
1059 Turn process_stratum_target's supports_range_stepping op into a
1060 method of process_target.
1061
1062 * target.h (struct process_stratum_target): Remove the target op.
1063 (class process_target): Add the target op.
1064 (target_supports_range_stepping): Update the macro.
1065 * target.cc (process_target::supports_range_stepping): Define.
1066
1067 Update the derived classes and callers below.
1068
1069 * linux-low.cc (linux_target_ops): Update.
1070 (linux_supports_range_stepping): Turn into ...
1071 (linux_process_target::supports_range_stepping): ... this.
1072 * linux-low.h (class linux_process_target): Update.
1073 * lynx-low.cc (lynx_target_ops): Update.
1074 * nto-low.cc (nto_target_ops): Update.
1075 * win32-low.cc (win32_target_ops): Update.
1076
1077 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1078
1079 Turn process_stratum_target's btrace-related ops (enable_btrace,
1080 disable_btrace, read_btrace, read_btrace_conf) into methods of
1081 process_target.
1082
1083 * target.h (struct process_stratum_target): Remove the target ops.
1084 (class process_target): Add the target ops.
1085 (target_enable_btrace): Update.
1086 (target_disable_btrace): Update.
1087 (target_read_btrace): Update.
1088 (target_read_btrace_conf): Update.
1089 * target.cc (process_target::enable_btrace): Define.
1090 (process_target::disable_btrace): Define.
1091 (process_target::read_btrace): Define.
1092 (process_target::read_btrace_conf): Define.
1093
1094 Update the derived classes and callers below.
1095
1096 * linux-low.cc (linux_target_ops): Update.
1097 (linux_process_target:enable_btrace): Define as a wrapper around
1098 linux_enable_btrace.
1099 (linux_low_disable_btrace): Turn into ...
1100 (linux_process_target::disable_btrace): ... this.
1101 (linux_low_read_btrace): Turn into ...
1102 (linux_process_target::read_btrace): ... this.
1103 (linux_low_btrace_conf): Turn into ...
1104 (linux_process_target::read_btrace_conf): ... this.
1105 * linux-low.h (class linux_process_target): Update.
1106 * lynx-low.cc (lynx_target_ops): Update.
1107 * nto-low.cc (nto_target_ops): Update.
1108 * win32-low.cc (win32_target_ops): Update.
1109
1110 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1111
1112 Turn process_stratum_target's supports_agent op into a method of
1113 process_target.
1114
1115 * target.h (struct process_stratum_target): Remove the target op.
1116 (class process_target): Add the target op.
1117 (target_supports_agent): Update the macro.
1118 * target.cc (process_target::supports_agent): Define.
1119
1120 Update the derived classes and callers below.
1121
1122 * linux-low.cc (linux_target_ops): Update.
1123 (linux_supports_agent): Turn into ...
1124 (linux_process_target::supports_agent): ... this.
1125 * linux-low.h (class linux_process_target): Update.
1126 * lynx-low.cc (lynx_target_ops): Update.
1127 * nto-low.cc (nto_target_ops): Update.
1128 * win32-low.cc (win32_target_ops): Update.
1129
1130 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1131
1132 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1133 method of process_target.
1134
1135 * target.h (struct process_stratum_target): Remove the target op.
1136 (class process_target): Add the target op. Also add
1137 'supports_qxfer_libraries_svr4'.
1138 * target.cc (process_target::qxfer_libraries_svr4): Define.
1139 (process_target::supports_qxfer_libraries_svr4): Define.
1140
1141 Update the derived classes and callers below.
1142
1143 * server.cc (handle_qxfer_libraries_svr4): Update.
1144 (handle_query): Update.
1145 * linux-low.cc (linux_target_ops): Update.
1146 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1147 (linux_qxfer_libraries_svr4): Turn into ...
1148 (linux_process_target::qxfer_libraries_svr4): ... 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
1154 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1155
1156 Turn process_stratum_target's supports_disable_randomization op
1157 into a method of 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_disable_randomization): Update the macro.
1162 * target.cc (process_target::supports_disable_randomization): Define.
1163
1164 Update the derived classes and callers below.
1165
1166 * linux-low.cc (linux_target_ops): Update.
1167 (linux_supports_disable_randomization): Turn into ...
1168 (linux_process_target::supports_disable_randomization): ... 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
1174 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1175
1176 Turn process_stratum_target's emit_ops op into a method of
1177 process_target.
1178
1179 * target.h (struct process_stratum_target): Remove the target op.
1180 (class process_target): Add the target op.
1181 (target_emit_ops): Update the macro.
1182 * target.cc (process_target::emit_ops): Define.
1183
1184 Update the derived classes and callers below.
1185
1186 * linux-low.cc (linux_target_ops): Update.
1187 (linux_emit_ops): Turn into ...
1188 (linux_process_target::emit_ops): ... this.
1189 * linux-low.h (class linux_process_target): Update.
1190 * lynx-low.cc (lynx_target_ops): Update.
1191 * nto-low.cc (nto_target_ops): Update.
1192 * win32-low.cc (win32_target_ops): Update.
1193
1194 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1195
1196 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1197 and get_min_fast_tracepoint_insn_len ops into methods of
1198 process_target.
1199
1200 * target.h (struct process_stratum_target): Remove the target ops.
1201 (class process_target): Add the target ops. Also add
1202 'supports_fast_tracepoints'.
1203 (target_supports_fast_tracepoints): Update the macro.
1204 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1205 (install_fast_tracepoint_jump_pad): Update and rename the macro
1206 to ...
1207 (target_install_fast_tracepoint_jump_pad): ... this.
1208 * target.cc (process_target::supports_fast_tracepoints): Define.
1209 (process_target::install_fast_tracepoint_jump_pad): Define.
1210 (process_target::get_min_fast_tracepoint_insn_len): Define.
1211
1212 Update the derived classes and callers below.
1213
1214 * tracepoint.cc (install_fast_tracepoint): Update.
1215 * linux-low.cc (linux_target_ops): Update.
1216 (linux_process_target::supports_fast_tracepoints): Define.
1217 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1218 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1219 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1220 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
1221 * linux-low.h (class linux_process_target): Update.
1222 * lynx-low.cc (lynx_target_ops): Update.
1223 * nto-low.cc (nto_target_ops): Update.
1224 * win32-low.cc (win32_target_ops): Update.
1225
1226 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1227
1228 Turn process_stratum_target's stabilize_threads op into a
1229 method of process_target.
1230
1231 * target.h (struct process_stratum_target): Remove the target op.
1232 (class process_target): Add the target op.
1233 (target_stabilize_threads): Update the macro.
1234 * target.cc (process_target::stabilize_threads): Define.
1235
1236 Update the derived classes and callers below.
1237
1238 * server.cc (handle_status): Update.
1239 * tracepoint.cc (cmd_qtdp): Update.
1240 (cmd_qtstart): Update.
1241 * linux-low.cc (linux_target_ops): Update.
1242 (linux_stabilize_threads): Turn into ...
1243 (linux_process_target::stabilize_threads): ... this.
1244 (linux_wait_1): Update.
1245 * linux-low.h (class linux_process_target): Update.
1246 * lynx-low.cc (lynx_target_ops): Update.
1247 * nto-low.cc (nto_target_ops): Update.
1248 * win32-low.cc (win32_target_ops): Update.
1249
1250 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251
1252 Turn process_stratum_target's pause_all and unpause_all ops
1253 into methods of process_target.
1254
1255 * target.h (struct process_stratum_target): Remove the target ops.
1256 (class process_target): Add the target ops.
1257 (pause_all): Update the macro and rename to...
1258 (target_pause_all): ... this.
1259 (unpause_all): Update the macro and rename to...
1260 (target_unpause_all): ... this.
1261 * target.cc (process_target::pause_all): Define.
1262 (process_target::unpause_all): Define.
1263
1264 Update the derived classes and callers below.
1265
1266 * server.cc (handle_status): Update.
1267 * tracepoint.cc (clear_installed_tracepoints): Update.
1268 (cmd_qtdp): Update.
1269 (cmd_qtstart): Update.
1270 (stop_tracing): Update.
1271 (cmd_qtstatus): Update.
1272 (upload_fast_traceframes): Update.
1273 (run_inferior_command): Update.
1274 * linux-low.cc (linux_target_ops): Update.
1275 (linux_pause_all): Turn into ...
1276 (linux_process_target::pause_all): ... this.
1277 (linux_unpause_all): Turn into ...
1278 (linux_process_target::unpause_all): ... this.
1279 (linux_process_target::prepare_to_access_memory): Update.
1280 (linux_process_target::done_accessing_memory): Update.
1281 * linux-low.h (class linux_process_target): Update.
1282 * lynx-low.cc (lynx_target_ops): Update.
1283 * nto-low.cc (nto_target_ops): Update.
1284 * win32-low.cc (win32_target_ops): Update.
1285
1286 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1287
1288 Turn process_stratum_target's get_tib_address op into a method of
1289 process_target.
1290
1291 * target.h (struct process_stratum_target): Remove the target op.
1292 (class process_target): Add the target op. Also add
1293 'supports_get_tib_address'.
1294 * target.cc (process_target::get_tib_address): Define.
1295 (process_target::supports_get_tib_address): Define.
1296
1297 Update the derived classes and callers below.
1298
1299 * server.cc (handle_query): Update.
1300 * linux-low.cc (win32_target_ops): Update.
1301 * lynx-low.cc (lynx_target_ops): Update.
1302 * nto-low.cc (nto_target_ops): Update.
1303 * win32-low.cc (win32_target_ops): Update.
1304 (win32_process_target::supports_get_tib_address): Define.
1305 (win32_get_tib_address): Turn into ...
1306 (win32_process_target::get_tib_address): ... this.
1307 * win32-low.h (class win32_process_target): Update.
1308
1309 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1310
1311 Turn process_stratum_target's thread_stopped op into a method of
1312 process_target.
1313
1314 * target.h (struct process_stratum_target): Remove the target op.
1315 (class process_target): Add the target op. Also add
1316 'supports_thread_stopped'.
1317 (target_thread_stopped): Update the macro.
1318 * target.cc (process_target::thread_stopped): Define.
1319 (process_target::supports_thread_stopped): Define.
1320 (prepare_to_access_memory): Update.
1321
1322 Update the derived classes and callers below.
1323
1324 * server.cc (queue_stop_reply_callback): Update.
1325 * linux-low.cc (linux_target_ops): Update.
1326 (linux_process_target::supports_thread_stopped): Define.
1327 (linux_thread_stopped): Turn into ...
1328 (linux_process_target::thread_stopped): ... this.
1329 * linux-low.h (class linux_process_target): Update.
1330 * lynx-low.cc (lynx_target_ops): Update.
1331 * nto-low.cc (nto_target_ops): Update.
1332 * win32-low.cc (win32_target_ops): Update.
1333
1334 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1335
1336 Turn process_stratum_target's read_pc and write_pc ops into
1337 methods of process_target.
1338
1339 * target.h (struct process_stratum_target): Remove the target ops.
1340 (class process_target): Add the target ops.
1341 * target.cc (process_target::read_pc): Define.
1342 (process_target::write_pc): Define.
1343
1344 Update the derived classes and callers below.
1345
1346 * regcache.cc (regcache_read_pc): Update.
1347 (regcache_write_pc): Update.
1348 * linux-low.cc (linux_target_ops): Update.
1349 (linux_read_pc): Turn into ...
1350 (linux_process_target::read_pc): ... this.
1351 (linux_write_pc): Turn into ...
1352 (linux_process_target::write_pc): ... this.
1353 * linux-low.h (class linux_process_target): Update.
1354 * lynx-low.cc (lynx_target_ops): Update.
1355 * nto-low.cc (nto_target_ops): Update.
1356 * win32-low.cc (win32_target_ops): Update.
1357
1358 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1359
1360 Turn process_stratum_target's supports_tracepoints op into a
1361 method of process_target.
1362
1363 * target.h (struct process_stratum_target): Remove the target op.
1364 (class process_target): Add the target op.
1365 (target_supports_tracepoints): Update the macro.
1366 * target.cc (process_target::supports_tracepoints): Define.
1367
1368 Update the derived classes and callers below.
1369
1370 * linux-low.cc (linux_target_ops): Update.
1371 (linux_supports_tracepoints): Turn into ...
1372 (linux_process_target::supports_tracepoints): ... 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
1378 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1379
1380 Turn process_stratum_target's process_qsupported op into a method
1381 of process_target.
1382
1383 * target.h (struct process_stratum_target): Remove the target op.
1384 (class process_target): Add the target op.
1385 (target_process_qsupported): Update the macro.
1386 * target.cc (process_target::process_qsupported): Define.
1387
1388 Update the derived classes and callers below.
1389
1390 * linux-low.cc (linux_target_ops): Update.
1391 (linux_process_qsupported): Turn into ...
1392 (linux_process_target::process_qsupported): ... this.
1393 * linux-low.h (class linux_process_target): Update.
1394 * lynx-low.cc (lynx_target_ops): Update.
1395 * nto-low.cc (nto_target_ops): Update.
1396 * win32-low.cc (win32_target_ops): Update.
1397
1398 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1399
1400 Turn process_stratum_target's read_loadmap op into a method of
1401 process_target.
1402
1403 * target.h (struct process_stratum_target): Remove the target op.
1404 (class process_target): Add the target op. Also add
1405 'supports_read_loadmap'.
1406 * target.cc (process_target::read_loadmap): Define.
1407 (process_target::supports_read_loadmap): Define.
1408
1409 Update the derived classes and callers below.
1410
1411 * server.cc (handle_qxfer_fdpic): Update.
1412 (handle_query): Update.
1413 * linux-low.cc (linux_target_ops): Update.
1414 (linux_process_target::supports_read_loadmap): Define.
1415 (linux_read_loadmap): Turn into ...
1416 (linux_process_target::read_loadmap): ... 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
1422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1423
1424 Turn process_stratum_target's core_of_thread op into a method of
1425 process_target.
1426
1427 * target.h (struct process_stratum_target): Remove the target op.
1428 (class process_target): Add the target op.
1429 (target_core_of_thread): Update the macro.
1430 * target.cc (process_target::core_of_thread): Define.
1431
1432 Update the derived classes and callers below.
1433
1434 * linux-low.cc (linux_target_ops): Update.
1435 (linux_process_target::core_of_thread): Define.
1436 * linux-low.h (class linux_process_target): Update.
1437 * lynx-low.cc (lynx_target_ops): Update.
1438 * nto-low.cc (nto_target_ops): Update.
1439 * win32-low.cc (win32_target_ops): Update.
1440
1441 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1442
1443 Turn process_stratum_target's handle_monitor_command op into a
1444 method of process_target.
1445
1446 * target.h (struct process_stratum_target): Remove the target op.
1447 (class process_target): Add the target op.
1448 (target_handle_monitor_command): Update the macro.
1449 * target.cc (process_target::handle_monitor_command): Define.
1450
1451 Update the derived classes and callers below.
1452
1453 * server.cc (handle_query): Update.
1454 * linux-low.cc (linux_target_ops): Update.
1455 (linux_process_target::handle_monitor_command): Define.
1456 * linux-low.h (class linux_process_target): Update.
1457 * lynx-low.cc (lynx_target_ops): Update.
1458 * nto-low.cc (nto_target_ops): Update.
1459 * win32-low.cc (win32_target_ops): Update.
1460
1461 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1462
1463 Turn process_stratum_target's handle_new_gdb_connection op into a
1464 method of process_target.
1465
1466 * target.h (struct process_stratum_target): Remove the target op.
1467 (class process_target): Add the target op.
1468 (target_handle_new_gdb_connection): Update the macro.
1469 * target.cc (process_target::handle_new_gdb_connection): Define.
1470
1471 Update the derived classes and callers below.
1472
1473 * linux-low.cc (linux_target_ops): Update.
1474 (linux_handle_new_gdb_connection): Turn into ...
1475 (linux_process_target::handle_new_gdb_connection): ... this.
1476 * linux-low.h (class linux_process_target): Update.
1477 * lynx-low.cc (lynx_target_ops): Update.
1478 * nto-low.cc (nto_target_ops): Update.
1479 * win32-low.cc (win32_target_ops): Update.
1480
1481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1482
1483 Turn process_stratum_target's supports_fork_events,
1484 supports_vfork_events, and supports_exec_events ops into methods
1485 of process_target.
1486
1487 * target.h (struct process_stratum_target): Remove the target ops.
1488 (class process_target): Add the target ops.
1489 (target_supports_fork_events): Update the macro.
1490 (target_supports_vfork_events): Update the macro.
1491 (target_supports_exec_events): Update the macro.
1492 * target.cc (process_target::supports_fork_events): Define.
1493 (process_target::supports_vfork_events): Define.
1494 (process_target::supports_exec_events): Define.
1495
1496 Update the derived classes and callers below.
1497
1498 * linux-low.cc (linux_target_ops): Update.
1499 (linux_supports_fork_events): Turn into ...
1500 (linux_process_target::supports_fork_events): ... this.
1501 (linux_supports_vfork_events): Turn into ...
1502 (linux_process_target::supports_vfork_events): ... this.
1503 (linux_supports_exec_events): Turn into ...
1504 (linux_process_target::supports_exec_events): ... this.
1505 * linux-low.h (class linux_process_target): Update.
1506 * lynx-low.cc (lynx_target_ops): Update.
1507 * nto-low.cc (nto_target_ops): Update.
1508 * win32-low.cc (win32_target_ops): Update.
1509
1510 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1511
1512 Turn process_stratum_target's supports_multi_process op into a
1513 method of process_target.
1514
1515 * target.h (struct process_stratum_target): Remove the target op.
1516 (class process_target): Add the target op.
1517 * target.cc (process_target::supports_multi_process): Define.
1518 (target_supports_multi_process): Update.
1519
1520 Update the derived classes and callers below.
1521
1522 * linux-low.cc (linux_target_ops): Update.
1523 (linux_supports_multi_process): Turn into ...
1524 (linux_process_target::supports_multi_process): ... this.
1525 * linux-low.h (class linux_process_target): Update.
1526 * lynx-low.cc (lynx_target_ops): Update.
1527 * nto-low.cc (nto_target_ops): Update.
1528 * win32-low.cc (win32_target_ops): Update.
1529
1530 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1531
1532 Turn process_stratum_target's supports_non_stop, async, and
1533 start_non_stop ops into methods of process_target.
1534
1535 * target.h (struct process_stratum_target): Remove the target ops.
1536 (class process_target): Add the target ops.
1537 (target_supports_non_stop): Update the macro.
1538 (target_async): Update the macro.
1539 (start_non_stop): Remove declaration.
1540 * target.cc (process_target::supports_non_stop): Define.
1541 (process_target::async): Define.
1542 (process_target::start_non_stop): Define.
1543 (start_non_stop): Remove.
1544
1545 Update the derived classes and callers below.
1546
1547 * server.cc (handle_qxfer_siginfo): Update.
1548 (handle_query): Update.
1549 * linux-low.cc (linux_target_ops): Update.
1550 (linux_supports_non_stop): Turn into ...
1551 (linux_process_target::supports_non_stop): ... this.
1552 (linux_async): Turn into ...
1553 (linux_process_target::async): ... this.
1554 (linux_start_non_stop): Turn into ...
1555 (linux_process_target::start_non_stop): ... this.
1556 * linux-low.h (class linux_process_target): Update.
1557 * lynx-low.cc (lynx_target_ops): Update.
1558 * nto-low.cc (nto_target_ops): Update.
1559 (nto_supports_non_stop): Remove; rely on the default behavior
1560 instead.
1561 * win32-low.cc (win32_target_ops): Update.
1562
1563 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1564
1565 Turn process_stratum_target's qxfer_siginfo op into a method of
1566 process_target.
1567
1568 * target.h (struct process_stratum_target): Remove the target op.
1569 (class process_target): Add the target op. Also add
1570 'supports_qxfer_siginfo'.
1571 * target.cc (process_target::qxfer_siginfo): Define.
1572 (process_target::supports_qxfer_siginfo): Define.
1573
1574 Update the derived classes and callers below.
1575
1576 * server.cc (handle_qxfer_siginfo): Update.
1577 (handle_query): Update.
1578 * linux-low.cc (linux_target_ops): Update.
1579 (linux_process_target::supports_qxfer_siginfo): Define.
1580 (linux_xfer_siginfo): Turn into ...
1581 (linux_process_target::qxfer_siginfo): ... this.
1582 * linux-low.h (class linux_process_target): Update.
1583 * lynx-low.cc (lynx_target_ops): Update.
1584 * nto-low.cc (nto_target_ops): Update.
1585 * win32-low.cc (win32_target_ops): Update.
1586
1587 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1588
1589 Turn process_stratum_target's qxfer_osdata op into a method of
1590 process_target.
1591
1592 * target.h (struct process_stratum_target): Remove the target op.
1593 (class process_target): Add the target op. Also add
1594 'supports_qxfer_osdata'.
1595 * target.cc (process_target::qxfer_osdata): Define.
1596 (process_target::supports_qxfer_osdata): Define.
1597
1598 Update the derived classes and callers below.
1599
1600 * server.cc (handle_qxfer_osdata): Update.
1601 (handle_query): Update.
1602 * linux-low.cc (linux_target_ops): Update.
1603 (linux_process_target::supports_qxfer_osdata): Define.
1604 (linux_qxfer_osdata): Turn into ...
1605 (linux_process_target::qxfer_osdata): ... this.
1606 * linux-low.h (class linux_process_target): Update.
1607 * lynx-low.cc (lynx_target_ops): Update.
1608 * nto-low.cc (nto_target_ops): Update.
1609 * win32-low.cc (win32_target_ops): Update.
1610
1611 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1612
1613 Turn process_stratum_target's hostio_last_error op into a
1614 method of process_target.
1615
1616 * target.h (struct process_stratum_target): Remove the target op.
1617 (class process_target): Add the target op.
1618 * target.cc: Add "hostio.h" to includes.
1619 (process_target::hostio_last_error): Define.
1620
1621 Update the derived classes and callers below.
1622
1623 * hostio.cc (hostio_error): Update.
1624 * linux-low.cc: Remove "hostio.h" from includes.
1625 (linux_target_ops): Update.
1626 * lynx-low.cc (lynx_target_ops): Update.
1627 * nto-low.cc (nto_target_ops): Update.
1628 * win32-low.h (class win32_process_target): Update.
1629 * win32-low.cc (win32_target_ops): Update.
1630 (wince_hostio_last_error): Turn into ...
1631 (win32_process_target::hostio_last_error): ... this.
1632
1633 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1634
1635 Turn process_stratum_target's get_tls_address op into a method of
1636 process_target.
1637
1638 * target.h (struct process_stratum_target): Remove the target op.
1639 (class process_target): Add the target op. Also add
1640 'supports_get_tls_address'.
1641 * target.cc (process_target::get_tls_address): Define.
1642 (process_target::supports_get_tls_address): Define.
1643
1644 Update the derived classes and callers below.
1645
1646 * server.cc (handle_query): Update.
1647 * linux-low.cc (linux_target_ops): Update.
1648 (linux_process_target::supports_get_tls_address): Define.
1649 (linux_process_target::get_tls_address): Define.
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
1655 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1656
1657 Turn process_stratum_target's read_offsets op into a method of
1658 process_target.
1659
1660 * target.h (struct process_stratum_target): Remove the target op.
1661 (class process_target): Add the target op. Also add
1662 'supports_read_offsets'.
1663 * target.cc (process_target::read_offsets): Define.
1664 (process_target::supports_read_offsets): Define.
1665
1666 Update the derived classes and callers below.
1667
1668 * server.cc (handle_query): Update.
1669 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1670 (linux_target_ops): Update.
1671 (linux_process_target::supports_read_offsets): Define.
1672 (linux_read_offsets): Turn into ...
1673 (linux_process_target::read_offsets): ... this.
1674 * linux-low.h (class linux_process_target): Update.
1675 * lynx-low.cc (lynx_target_ops): Update.
1676 * nto-low.cc (nto_target_ops): Update.
1677 * win32-low.cc (win32_target_ops): Update.
1678
1679 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1680
1681 Turn process_stratum_target's stopped_by_watchpoint and
1682 stopped_data_address ops into methods of process_target.
1683
1684 * target.h (struct process_stratum_target): Remove the target ops.
1685 (class process_target): Add the target ops.
1686 * target.cc (process_target::stopped_by_watchpoint): Define.
1687 (process_target::stopped_data_address): Define.
1688
1689 Update the derived classes and callers below.
1690
1691 * remote-utils.cc (prepare_resume_reply): Update.
1692 * linux-low.cc (linux_target_ops): Update.
1693 (linux_stopped_by_watchpoint): Turn into ...
1694 (linux_process_target::stopped_by_watchpoint): ... this.
1695 (linux_stopped_data_address): Turn into ...
1696 (linux_process_target::stopped_data_address): ... this.
1697 * linux-low.h (class linux_process_target): Update.
1698 * lynx-low.cc (lynx_target_ops): Update.
1699 * nto-low.cc (nto_target_ops): Update.
1700 (nto_stopped_by_watchpoint): Turn into ...
1701 (nto_process_target::stopped_by_watchpoint): ... this.
1702 (nto_stopped_data_address): Turn into ...
1703 (nto_process_target::stopped_data_address): ... this.
1704 * nto-low.h (class nto_process_target): Update.
1705 * win32-low.cc (win32_target_ops): Update.
1706 (win32_stopped_by_watchpoint): Turn into ...
1707 (win32_process_target::stopped_by_watchpoint): ... this.
1708 (win32_stopped_data_address): Turn into ...
1709 (win32_process_target::stopped_data_address): ... this.
1710 * win32-low.h (class win32_process_target): Update.
1711
1712 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1713
1714 Turn process_stratum_target's supports_hardware_single_step op into
1715 a method of process_target.
1716
1717 * target.h (struct process_stratum_target): Remove the target op.
1718 (class process_target): Add the target op.
1719 (target_supports_hardware_single_step): Update the macro.
1720 (target_can_do_hardware_single_step): Remove declaration.
1721 * target.cc (process_target::supports_hardware_single_step): Define.
1722 (target_can_do_hardware_single_step): Remove.
1723
1724 Update the derived classes and callers below.
1725
1726 * linux-low.h (class linux_process_target): Update.
1727 * linux-low.cc (linux_target_ops): Update.
1728 (linux_supports_hardware_single_step): Turn into ...
1729 (linux_process_target::supports_hardware_single_step): ... this.
1730 * lynx-low.h (class lynx_process_target): Update.
1731 * lynx-low.cc (lynx_target_ops): Update.
1732 (lynx_process_target::supports_hardware_single_step): Define.
1733 * nto-low.h (class nto_process_target): Update.
1734 * nto-low.cc (nto_target_ops): Update.
1735 (nto_process_target::supports_hardware_single_step): Define.
1736 * win32-low.h (class win32_process_target): Update.
1737 * win32-low.cc (win32_target_ops): Update.
1738 (win32_process_target::supports_hardware_single_step): Define.
1739
1740 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1741
1742 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1743 ops into methods of process_target.
1744
1745 * target.h (struct process_stratum_target): Remove the target ops.
1746 (class process_target): Add the target ops.
1747 (target_stopped_by_hw_breakpoint): Update the macro.
1748 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1749 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1750 (process_target::supports_stopped_by_hw_breakpoint): Define.
1751
1752 Update the derived classes and callers below.
1753
1754 * linux-low.cc (linux_target_ops): Update.
1755 (linux_stopped_by_hw_breakpoint): Turn into ...
1756 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1757 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1758 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1759 * linux-low.h (class linux_process_target): Update.
1760 * lynx-low.cc (lynx_target_ops): Update.
1761 * nto-low.cc (nto_target_ops): Update.
1762 * win32-low.cc (win32_target_ops): Update.
1763
1764 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1765
1766 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1767 ops into methods of process_target.
1768
1769 * target.h (struct process_stratum_target): Remove the target ops.
1770 (class process_target): Add the target ops.
1771 (target_stopped_by_sw_breakpoint): Update the macro.
1772 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1773 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1774 (process_target::supports_stopped_by_sw_breakpoint): Define.
1775
1776 Update the derived classes and callers below.
1777
1778 * linux-low.cc (linux_target_ops): Update.
1779 (linux_stopped_by_sw_breakpoint): Turn into ...
1780 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1781 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1782 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1783 * linux-low.h (class linux_process_target): Update.
1784 * lynx-low.cc (lynx_target_ops): Update.
1785 * nto-low.cc (nto_target_ops): Update.
1786 * win32-low.cc (win32_target_ops): Update.
1787
1788 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1789
1790 Turn process_stratum_target's insert_point and remove_point ops
1791 into methods of process_target.
1792
1793 * target.h (struct process_stratum_target): Remove the target ops.
1794 (class process_target): Add the target ops.
1795 * target.cc (process_target::insert_point): Define.
1796 (process_target::remove_point): Define.
1797
1798 Update the derived classes and callers below.
1799
1800 * mem-break.cc (set_raw_breakpoint_at): Update.
1801 (delete_raw_breakpoint): Update.
1802 (uninsert_raw_breakpoint): Update.
1803 (reinsert_raw_breakpoint): Update.
1804 * linux-low.cc (linux_target_ops): Update.
1805 (linux_insert_point): Turn into ...
1806 (linux_process_target::insert_point): ... this.
1807 (linux_remove_point): Turn into ...
1808 (linux_process_target::remove_point): ... this.
1809 * linux-low.h (class linux_process_target): Update.
1810 * lynx-low.cc (lynx_target_ops): Update.
1811 * nto-low.cc (nto_target_ops): Update.
1812 (nto_insert_point): Turn into ...
1813 (nto_process_target::insert_point): ... this.
1814 (nto_remove_point): Turn into ...
1815 (nto_process_target::remove_point): ... this.
1816 * nto-low.h (class nto_process_target): Update.
1817 * win32-low.cc (win32_target_ops): Update.
1818 (win32_insert_point): Turn into ...
1819 (win32_process_target::insert_point): ... this.
1820 (win32_remove_point): Turn into ...
1821 (win32_process_target::remove_point): ... this.
1822 * win32-low.h (class win32_process_target): Update.
1823
1824 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1825
1826 Turn process_stratum_target's supports_z_point_type op into a
1827 method of process_target.
1828
1829 * target.h (struct process_stratum_target): Remove the target op.
1830 (class process_target): Add the target op.
1831 * target.cc (process_target::supports_z_point_type): Define.
1832
1833 Update the derived classes and callers below.
1834
1835 * mem-break.cc (z_type_supported): Update.
1836 * linux-low.cc (linux_target_ops): Update.
1837 (linux_supports_z_point_type): Turn into ...
1838 (linux_process_target::supports_z_point_type): ... this.
1839 * linux-low.h (class linux_process_target): Update.
1840 * lynx-low.cc (lynx_target_ops): Update.
1841 * nto-low.cc (nto_target_ops): Update.
1842 (nto_supports_z_point_type): Turn into ...
1843 (nto_process_target::supports_z_point_type): ... this.
1844 * nto-low.h (class nto_process_target): Update.
1845 * win32-low.cc (win32_target_ops): Update.
1846 (win32_supports_z_point_type): Turn into ...
1847 (win32_process_target::supports_z_point_type): ... this.
1848 * win32-low.h (class win32_process_target): Update.
1849
1850 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1851
1852 Turn process_stratum_target's read_auxv op into a method of
1853 process_target.
1854
1855 * target.h (class process_stratum_target): Remove the target op.
1856 (struct process_target): Add the target op. Also add
1857 'supports_read_auxv'.
1858 * target.cc (process_target::read_auxv): Define.
1859 (process_target::supports_read_auxv): Define.
1860
1861 Update the derived classes and callers below.
1862
1863 * server.cc (handle_qxfer_auxv): Update.
1864 (handle_query): Update.
1865 * linux-low.cc (linux_target_ops): Update.
1866 (linux_process_target::supports_read_auxv): Define.
1867 (linux_read_auxv): Turn into ...
1868 (linux_process_target::read_auxv): ... this.
1869 * linux-low.h (class linux_process_target): Update.
1870 * lynx-low.cc (lynx_target_ops): Update.
1871 * nto-low.cc (nto_target_ops): Update.
1872 (nto_process_target::supports_read_auxv): Define.
1873 (nto_read_auxv): Turn into ...
1874 (nto_process_target::read_auxv): ... this.
1875 * nto-low.h (class nto_process_target): Update.
1876 * win32-low.cc (win32_target_ops): Update.
1877
1878 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1879
1880 Turn process_stratum_target's request_interrupt op into a method of
1881 process_target.
1882
1883 * target.h (struct process_stratum_target): Remove the target op.
1884 (class process_target): Add the target op.
1885
1886 Update the derived classes and callers below.
1887
1888 * remote-utils.cc (putpkt_binary_1): Update.
1889 (input_interrupt): Update.
1890 (getpkt): Update.
1891 * server.cc (handle_v_requests): Update.
1892 * linux-low.cc (linux_target_ops): Update.
1893 (linux_request_interrupt): Turn into ...
1894 (linux_process_target::request_interrupt): ... this.
1895 * linux-low.h (class linux_process_target): Update.
1896 * lynx-low.cc (lynx_target_ops): Update.
1897 (lynx_request_interrupt): Turn into ...
1898 (lynx_process_target::request_interrupt): ... this.
1899 * lynx-low.h (class lynx_process_target): Update.
1900 * nto-low.cc (nto_target_ops): Update.
1901 (nto_request_interrupt): Turn into ...
1902 (nto_process_target::request_interrupt): ... this.
1903 * nto-low.h (class nto_process_target): Update.
1904 * win32-low.cc (win32_target_ops): Update.
1905 (win32_request_interrupt): Turn into ...
1906 (win32_process_target::request_interrupt): ... this.
1907 * win32-low.h (class win32_process_target): Update.
1908
1909 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1910
1911 Turn process_stratum_target's look_up_symbols op into a method of
1912 process_target.
1913
1914 * target.h (struct process_stratum_target): Remove the target op.
1915 (class process_target): Add the target op.
1916 * target.cc (process_target::look_up_symbols): Define.
1917
1918 Update the derived classes and callers below.
1919
1920 * server.cc (handle_query): Update.
1921 * linux-low.cc (linux_target_ops): Update.
1922 (linux_look_up_symbols): Turn into ...
1923 (linux_process_target::look_up_symbols): ... this.
1924 * linux-low.h (class linux_process_target): Update.
1925 * lynx-low.cc (lynx_target_ops): Update.
1926 * nto-low.cc (nto_target_ops): Update.
1927 * win32-low.cc (win32_target_ops): Update.
1928
1929 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1930
1931 Turn process_stratum_target's read_memory and write_memory
1932 ops into methods of process_target.
1933
1934 * target.h (struct process_stratum_target): Remove the target ops.
1935 (class process_target): Add the target ops.
1936
1937 Update the derived classes and callers below.
1938
1939 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1940 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1941 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1942 (arm_get_syscall_trapinfo): Update.
1943 * linux-cris-low.cc (cris_breakpoint_at): Update.
1944 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1945 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1946 * linux-mips-low.cc (mips_breakpoint_at): Update.
1947 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1948 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1949 * linux-sh-low.cc (sh_breakpoint_at): Update.
1950 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1951 (sparc_store_gregset_from_stack): Update.
1952 (sparc_breakpoint_at): Update.
1953 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1954 * linux-tile-low.cc (tile_breakpoint_at): Update.
1955 * linux-x86-low.cc (x86_breakpoint_at): Update.
1956 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1957 * mem-brea.cc (insert_memory_breakpoint): Update.
1958 (validate_inserted_breakpoint): Update.
1959 * target.cc (read_inferior_memory): Update.
1960 (target_write_memory): Update.
1961 * linux-low.cc (linux_target_ops): Update.
1962 (linux_read_memory): Make a wrapper around the read_memory target
1963 op call.
1964 (linux_process_target::read_memory): Rename from linux_read_memory.
1965 (linux_write_memory): Turn into ...
1966 (linux_process_target::write_memory): ... this.
1967 * linux-low.h (class linux_process_target): Update.
1968 * lynx-low.cc (lynx_target_ops): Update.
1969 (lynx_read_memory): Turn into ...
1970 (lynx_process_target::read_memory): ... this.
1971 (lynx_write_memory): Turn into ...
1972 (lynx_process_target::write_memory): ... this.
1973 * lynx-low.h (class lynx_process_target): Update.
1974 * nto-low.cc (nto_target_ops): Update.
1975 (nto_read_memory): Turn into ...
1976 (nto_process_target::read_memory): ... this.
1977 (nto_write_memory): Turn into ...
1978 (nto_process_target::write_memory): ... this.
1979 * nto-low.h (class nto_process_target): Update.
1980 * win32-low.cc (win32_target_ops): Update.
1981 (win32_read_inferior_memory): Turn into ...
1982 (win32_process_target::read_memory): ... this.
1983 (win32_write_inferior_memory): Turn into ...
1984 (win32_process_target::write_memory): ... this.
1985 * win32-low.h (class win32_process_target): Update.
1986
1987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1988
1989 Turn process_stratum_target's prepare_to_access_memory and
1990 done_accessing_memory ops into methods of process_target.
1991
1992 * target.h (struct process_stratum_target): Remove the target ops.
1993 (class process_target): Add the target ops.
1994 * target.cc (process_target::prepare_to_access_memory): Define.
1995 (process_target::done_accessing_memory): Define.
1996 (prepare_to_access_memory): Update.
1997 (done_accessing_memory): Update.
1998
1999 Update the derived classes and callers below.
2000
2001 * linux-low.cc (linux_target_ops): Update.
2002 (linux_prepare_to_access_memory): Turn into ...
2003 (linux_process_target::prepare_to_access_memory): ... this.
2004 (linux_done_accessing_memory): Turn into ...
2005 (linux_process_target::done_accessing_memory): ... this.
2006 * linux-low.h (class linux_process_target): Update.
2007 * lynx-low.cc (lynx_target_ops): Update.
2008 * nto-low.cc (nto_target_ops): Update.
2009 * win32-low.cc (win32_target_ops): Update.
2010
2011 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2012
2013 Turn process_stratum_target's fetch_registers and store_registers
2014 ops into methods of process_target.
2015
2016 * target.h (struct process_stratum_target): Remove the target ops.
2017 (class process_target): Add the target ops.
2018 (fetch_inferior_registers): Update the macro.
2019 (store_inferior_registers): Update the macro.
2020
2021 Update the derived classes and callers below.
2022
2023 * linux-low.cc (linux_target_ops): Update.
2024 (linux_fetch_registers): Turn into ...
2025 (linux_process_target::fetch_registers): ... this.
2026 (linux_store_registers): Turn into ...
2027 (linux_process_target::store_registers): ... this.
2028 * linux-low.h (class linux_process_target): Update.
2029 * lynx-low.cc (lynx_target_ops): Update.
2030 (lynx_fetch_registers): Turn into ...
2031 (lynx_process_target::fetch_registers): ... this.
2032 (lynx_store_registers): Turn into ...
2033 (lynx_process_target::store_registers): ... this.
2034 * lynx-low.h (class lynx_process_target): Update.
2035 * nto-low.cc (nto_target_ops): Update.
2036 (nto_fetch_registers): Turn into ...
2037 (nto_process_target::fetch_registers): ... this.
2038 (nto_store_registers): Turn into ...
2039 (nto_process_target::store_registers): ... this.
2040 * nto-low.h (class nto_process_target): Update.
2041 * win32-low.cc (win32_target_ops): Update.
2042 (win32_fetch_inferior_registers): Turn into ...
2043 (win32_process_target::fetch_registers): ... this.
2044 (win32_store_inferior_registers): Turn into ...
2045 (win32_process_target::store_registers): ... this.
2046 * win32-low.h (class win32_process_target): Update.
2047
2048 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2049
2050 Turn process_stratum_target's wait op into a method of
2051 process_target.
2052
2053 * target.h (struct process_stratum_target): Remove the target op.
2054 (class process_target): Add the target op.
2055
2056 Update the derived classes and callers below.
2057
2058 * target.cc (target_wait): Update.
2059 * linux-low.cc (linux_target_ops): Update.
2060 (linux_wait): Turn into ...
2061 (linux_process_target::wait): ... this.
2062 * linux-low.h (class linux_process_target): Update.
2063 * lynx-low.cc (lynx_target_ops): Update.
2064 (lynx_wait): Turn into ...
2065 (lynx_process_target::wait): ... this.
2066 * lynx-low.h (class lynx_process_target): Update.
2067 * nto-low.cc (nto_target_ops): Update.
2068 (nto_wait): Turn into ...
2069 (nto_process_target::wait): ... this.
2070 * nto-low.h (class nto_process_target): Update.
2071 * win32-low.cc (win32_target_ops): Update.
2072 (win32_wait): Turn into ...
2073 (win32_process_target::wait): ... this.
2074 (do_initial_child_stuff): Update.
2075 * win32-low.h (class win32_process_target): Update.
2076
2077 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2078
2079 Turn process_stratum_target's resume op into a method of
2080 process_target.
2081
2082 * target.h (struct process_stratum_target): Remove the target op.
2083 (class process_target): Add the target op.
2084
2085 Update the derived classes and callers below.
2086
2087 * server.cc (resume): Update.
2088 * target.cc (target_stop_and_wait): Update.
2089 (target_continue_no_signal): Update.
2090 (target_continue): Update.
2091 * linux-low.cc (linux_target_ops): Update.
2092 (linux_resume): Turn into ...
2093 (linux_process_target::resume): ... this.
2094 * linux-low.h (class linux_process_target): Update.
2095 * lynx-low.cc (lynx_target_ops): Update.
2096 (lynx_resume): Turn into ...
2097 (lynx_process_target::resume): ... this.
2098 * lynx-low.h (class lynx_process_target): Update.
2099 * nto-low.cc (nto_target_ops): Update.
2100 (nto_resume): Turn into ...
2101 (nto_process_target::resume): ... this.
2102 * nto-low.h (class nto_process_target): Update.
2103 * win32-low.cc (win32_target_ops): Update.
2104 (win32_resume): Turn into ...
2105 (win32_process_target::resume): ... this.
2106 (win32_process_target::detach): Update.
2107 (do_initial_child_stuff): Update.
2108 * win32-low.h (class win32_process_target): Update.
2109
2110 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2111
2112 Turn process_stratum_target's thread_alive op into a method of
2113 process_target.
2114
2115 * target.h (struct process_stratum_target): Remove the target op.
2116 (class process_target): Add the target op.
2117 (mythread_alive): Update the macro.
2118
2119 Update the derived classes and callers below.
2120
2121 * linux-low.cc (linux_target_ops): Update.
2122 (linux_thread_alive): Turn into ...
2123 (linux_process_target::thread_alive): ... this.
2124 (wait_for_sigstop): Update.
2125 * linux-low.h (class linux_process_target): Update.
2126 * lynx-low.cc (lynx_target_ops): Update.
2127 (lynx_thread_alive): Turn into ...
2128 (lynx_process_target::thread_alive): ... this.
2129 * lynx-low.h (class lynx_process_target): Update.
2130 * nto-low.cc (nto_target_ops): Update.
2131 (nto_thread_alive): Turn into ...
2132 (nto_process_target::thread_alive): ... this.
2133 * nto-low.h (class nto_process_target): Update.
2134 * win32-low.cc (win32_target_ops): Update.
2135 (win32_thread_alive): Turn into ...
2136 (win32_process_target::thread_alive): ... this.
2137 * win32-low.h (class win32_process_target): Update.
2138
2139 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2140
2141 Turn process_stratum_target's join op into a method of
2142 process_target.
2143
2144 * target.h (struct process_stratum_target): Remove the target op.
2145 (class process_target): Add the target op.
2146 (join_inferior): Update the macro.
2147
2148 Update the derived classes and callers below.
2149
2150 * linux-low.cc (linux_target_ops): Update.
2151 (linux_join): Turn into ...
2152 (linux_process_target::join): ... this.
2153 * linux-low.h (class linux_process_target): Update.
2154 * lynx-low.cc (lynx_target_ops): Update.
2155 (lynx_join): Turn into ...
2156 (lynx_process_target::join): ... this.
2157 * lynx-low.h (class lynx_process_target): Update.
2158 * nto-low.cc (nto_target_ops): Update.
2159 (nto_process_target::join): Define.
2160 * nto-low.h (class nto_process_target): Update.
2161 * win32-low.cc (win32_target_ops): Update.
2162 (win32_join): Turn into ...
2163 (win32_process_target::join): ... this.
2164 * win32-low.h (class win32_process_target): Update.
2165
2166 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2167
2168 Turn process_stratum_target's mourn op into a method of
2169 process_target.
2170
2171 * target.h (struct process_stratum_target): Remove the target op.
2172 (class process_target): Add the target op.
2173
2174 Update the derived classes and callers below.
2175
2176 * target.cc (target_mourn_inferior): Update.
2177 * linux-low.cc (linux_target_ops): Update.
2178 (linux_mourn): Turn into ...
2179 (linux_process_target::mourn): ... this.
2180 (handle_extended_wait): Update.
2181 (linux_process_target::kill): Update.
2182 (linux_process_target::detach): Update.
2183 * linux-low.h (class linux_process_target): Update.
2184 * lynx-low.cc (lynx_target_ops): Update.
2185 (lynx_mourn): Turn into ...
2186 (lynx_process_target::mourn): ... this.
2187 * lynx-low.h (class lynx_process_target): Update.
2188 * nto-low.cc (nto_target_ops): Update.
2189 (nto_mourn): Turn into ...
2190 (nto_process_target::mourn): ... this.
2191 * nto-low.h (class nto_process_target): Update.
2192 * win32-low.cc (win32_target_ops): Update.
2193 (win32_mourn): Turn into ...
2194 (win32_process_target::mourn): ... this.
2195 * win32-low.h (class win32_process_target): Update.
2196
2197 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2198
2199 Turn process_stratum_target's detach op into a method of
2200 process_target.
2201
2202 * target.h (struct process_stratum_target): Remove the target op.
2203 (class process_target): Add the target op.
2204 (detach_inferior): Update the macro.
2205
2206 Update the derived classes and callers below.
2207
2208 * linux-low.cc (linux_target_ops): Update.
2209 (linux_detach): Turn into ...
2210 (linux_process_target::detach): ... this.
2211 * linux-low.h (class linux_process_target): Update.
2212 * lynx-low.cc (lynx_target_ops): Update.
2213 (lynx_detach): Turn into ...
2214 (lynx_process_target::detach): ... this.
2215 * lynx-low.h (class lynx_process_target): Update.
2216 * nto-low.cc (nto_target_ops): Update.
2217 (nto_detach): Turn into ...
2218 (nto_process_target::detach): ... this.
2219 * nto-low.h (class nto_process_target): Update.
2220 * win32-low.cc (win32_target_ops): Update.
2221 (win32_detach): Turn into ...
2222 (win32_process_target::detach): ... this.
2223 * win32-low.h (class win32_process_target): Update.
2224
2225 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 Turn process_stratum_target's kill op into a method of
2228 process_target.
2229
2230 * target.h (struct process_stratum_target): Remove the target op.
2231 (class process_target): Add the target op.
2232
2233 Update the derived classes and callers below.
2234
2235 * target.cc (kill_inferior): Update.
2236 * linux-low.cc (linux_target_ops): Update.
2237 (linux_kill): Turn into ...
2238 (linux_process_target::kill): ... this.
2239 * linux-low.h (class linux_process_target): Update.
2240 * lynx-low.cc (lynx_target_ops): Update.
2241 (lynx_kill): Turn into ...
2242 (lynx_process_target::kill): ... this.
2243 * lynx-low.h (class lynx_process_target): Update.
2244 * nto-low.cc (nto_target_ops): Update.
2245 (nto_kill): Turn into ...
2246 (nto_process_target::kill): ... this.
2247 * nto-low.h (class nto_process_target): Update.
2248 * win32-low.cc (win32_target_ops): Update.
2249 (win32_kill): Turn into ...
2250 (win32_process_target::kill): ... this.
2251 * win32-low.h (class win32_process_target): Update.
2252
2253 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2254
2255 Turn process_stratum_target's attach op into a method of
2256 process_target.
2257
2258 * target.h (struct process_stratum_target): Remove the target op.
2259 (class process_target): Add the target op.
2260 (myattach): Update the macro.
2261
2262 Update the derived classes and callers below.
2263
2264 * linux-low.cc (linux_target_ops): Update.
2265 (linux_attach): Turn into ...
2266 (linux_process_target::attach): ... this.
2267 * linux-low.h (class linux_process_target): Update.
2268 * lynx-low.cc (lynx_target_ops): Update.
2269 (lynx_attach): Turn into ...
2270 (lynx_process_target::attach): ... this.
2271 * lynx-low.h (class lynx_process_target): Update.
2272 * nto-low.cc (nto_target_ops): Update.
2273 (nto_attach): Turn into ...
2274 (nto_process_target::attach): ... this.
2275 * nto-low.h (class nto_process_target): Update.
2276 * win32-low.cc (win32_target_ops): Update.
2277 (win32_attach): Turn into ...
2278 (win32_process_target::attach): ... this.
2279 * win32-low.h (class win32_process_target): Update.
2280
2281 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2282
2283 Turn process_stratum_target's post_create_inferior op into a method
2284 of process_target.
2285
2286 * target.h (struct process_stratum_target): Remove the target op.
2287 (class process_target): Add the target op.
2288 (target_post_create_inferior): Update the macro.
2289 * target.cc (process_target::post_create_inferior): Define.
2290
2291 Update the derived classes and callers below.
2292
2293 * linux-low.cc (linux_target_ops): Update.
2294 (linux_post_create_inferior): Turn into ...
2295 (linux_process_target::post_create_inferior): ... this.
2296 * linux-low.h (class linux_process_target): Update.
2297 * lynx-low.cc (lynx_target_ops): Update.
2298 * nto-low.cc (nto_target_ops): Update.
2299 * win32-low.cc (win32_target_ops): Update.
2300
2301 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2302
2303 Turn process_stratum_target's create_inferior op into a method of
2304 process_target.
2305
2306 * target.h (struct process_stratum_target): Remove the target op.
2307 (class process_target): Add the target op.
2308 (create_inferior): Rename the macro to ...
2309 (target_create_inferior): ... this.
2310
2311 Update the derived classes and callers below.
2312
2313 * server.cc (handle_v_run): Update.
2314 (captured_main): Update.
2315 (process_serial_event): Update.
2316 * linux-low.cc (linux_target_ops): Update.
2317 (linux_create_inferior): Turn into ...
2318 (linux_process_target::create_inferior): ... this.
2319 * linux-low.h (class linux_process_target): Update.
2320 * lynx-low.cc (lynx_target_ops): Update.
2321 (lynx_create_inferior): Turn into ...
2322 (lynx_process_target::create_inferior): ... this.
2323 * lynx-low.h (class lynx_process_target): Update.
2324 * nto-low.cc (nto_target_ops): Update.
2325 (nto_create_inferior): Turn into ...
2326 (nto_process_target::create_inferior): ... this.
2327 * nto-low.h (class nto_process_target): Update.
2328 * win32-low.cc (win32_target_ops): Update.
2329 (win32_create_inferior): Turn into ...
2330 (win32_process_target::create_inferior): ... this.
2331 * win32-low.h (class win32_process_target): Update.
2332
2333 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2334
2335 * target.h (class process_target): New class definition.
2336 (struct process_stratum_target) <pt>: New field with type
2337 'process_target*'.
2338 * linux-low.h (class linux_process_target): Define as a derived
2339 class of 'process_target'.
2340 * linux-low.cc (linux_target_ops): Add a linux_process_target*
2341 as the 'pt' field.
2342 * lynx-low.h (class lynx_process_target): Define as a derived
2343 class of 'process_target'.
2344 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
2345 as the 'pt' field.
2346 * nto-low.h (class nto_process_target): Define as a derived
2347 class of 'process_target'.
2348 * nto-low.cc (nto_target_ops): Add an nto_process_target*
2349 as the 'pt' field.
2350 * win32-low.h (class win32_process_target): Define as a derived
2351 class of 'process_target'.
2352 * win32-low.cc (win32_target_ops): Add a win32_process_target*
2353 as the 'pt' field.
2354
2355 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * configure: Regenerate.
2358
2359 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
2360 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * linux-riscv-low.cc: New file.
2363 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
2364 and nat/riscv-linux-tdesc.c.
2365 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
2366 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
2367 Define.
2368
2369 2020-02-14 Tom Tromey <tom@tromey.com>
2370
2371 * acinclude.m4: Don't include acx_configure_dir.m4.
2372 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
2373 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
2374 (all, install-only, uninstall, clean-info, clean)
2375 (maintainer-clean): Don't recurse.
2376 (subdir_do, all-lib): Remove.
2377 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
2378 (GNULIB_H): Remove.
2379 (generated_files): Update.
2380 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
2381 * configure: Rebuild.
2382 * configure.ac: Don't configure gnulib or libiberty.
2383 (GNULIB): Update.
2384
2385 2020-02-14 Eli Zaretskii <eliz@gnu.org>
2386
2387 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
2388 preparing the command line for CreateProcess.
2389 (win32_create_inferior): Reflect the program name in debugging
2390 output that shows the process and its command line.
2391
2392 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * Makefile.in: Rename source files from .c to .cc.
2395 * %.c: Rename to %.cc.
2396 * configure.ac: Rename server.c to server.cc.
2397 * configure: Re-generate.
2398
2399 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * Makefile.in: Rename gdbsupport source files from .c to .cc.
2402
2403 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
2404
2405 * win32-low.c (win32_create_inferior): Set signal_pid.
2406
2407 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
2408 Pedro Alves <palves@redhat.com>
2409
2410 Skip building gdbserver in a cross-configuration.
2411 * configure.srv: Set $gdbserver_host depending on whether $target
2412 is $host. Use $gdbserver_host instead of $host.
2413
2414 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * configure: Re-generate.
2417
2418 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2419
2420 * configure: Re-generate.
2421
2422 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * acinclude.m4: Update warning.m4 path.
2425
2426 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2427
2428 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
2429 (handle_exception): Set siginfo_er.
2430 (win32_xfer_siginfo): New function.
2431
2432 2020-02-07 Tom Tromey <tom@tromey.com>
2433 Pedro Alves <palves@redhat.com>
2434
2435 * README: Update build documentation.
2436 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
2437 host, not target.
2438 * configure.ac: Update paths.
2439 * configure: Rebuild.
2440 * acinclude.m4: Update paths.
2441 * Makefile.in: Update include paths.
2442 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
2443 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
2444 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
2445 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
2446 (%-generated.c): Update paths.
2447 * Move entire directory from ../gdb/gdbserver.
2448
2449 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
2450
2451 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2452
2453 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2454
2455 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2456 assignment instead of srv_linux_obj.
2457
2458 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
2459
2460 * server.c (handle_qxfer_libraries): Write segment-address with
2461 paddress.
2462
2463 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
2464
2465 * Makefile.in (install-strip): New target.
2466 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
2467 * aclocal.m4: Regenerate.
2468 * configure: Regenerate.
2469 * configure.ac: Add AM_PROG_INSTALL_STRIP.
2470
2471 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2472
2473 * Makefile.in (SFILES): Adjust paths to point to real files.
2474 (OBS): Move waitstatus.o to target/waitstatus.o.
2475 (TAGS): Transform paths appropriately.
2476 (%.o): Rename to...
2477 (nat/%.o): ... this pattern rule.
2478 (%.o): Rename to...
2479 (target/%.o): ... this pattern rule.
2480 * configure.srv: Adjust paths throughout to include nat/ prefix
2481 with the revant files.
2482 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
2483 * configure: Regenerate.
2484
2485 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2486
2487 * Makefile.in (TAGS): Remove config files from the recipe.
2488
2489 2020-01-14 Tom Tromey <tom@tromey.com>
2490
2491 * configure: Rebuild.
2492 * configure.ac: Remove any checks that were added to common.m4.
2493 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
2494 lib-link.m4.
2495
2496 2020-01-14 Tom Tromey <tom@tromey.com>
2497
2498 * server.h: Include config.h.
2499 * gdbreplay.c: Include config.h.
2500 * configure: Rebuild.
2501 * configure.ac: Don't source common.host.
2502 * acinclude.m4: Update path.
2503 * Makefile.in (INCSUPPORT): New variable.
2504 (INCLUDE_CFLAGS): Add INCSUPPORT.
2505 (SFILES): Update paths.
2506 (version-generated.c): Update path to create-version.sh.
2507 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
2508
2509 2020-01-14 Tom Tromey <tom@tromey.com>
2510
2511 * configure.ac (LIBS): Use WIN32APILIBS.
2512 (USE_WIN32API): Don't define.
2513 * configure: Rebuild.
2514
2515 2020-01-14 Tom Tromey <tom@tromey.com>
2516
2517 * configure: Rebuild.
2518
2519 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2520
2521 * Makefile.in (%-generated.c): Remove rule for files from
2522 regformats/i386.
2523
2524 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2525
2526 * configure: Re-generate.
2527
2528 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2531 Define to static.
2532 * tracepoint.c (stop_tracing, flush_trace_buffer,
2533 about_to_request_buffer_space, get_trace_state_variable_value,
2534 set_trace_state_variable_value, gdb_collect): Add declaration.
2535
2536 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2537
2538 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2539 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2540 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2541 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2542 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2543 static.
2544
2545 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2546
2547 * inferiors.c: Include gdbsupport/common-inferior.h.
2548
2549 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2550
2551 * hostio-errno.c: Include hostio.h.
2552
2553 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2556 prerequisite.
2557
2558 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2559
2560 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2561 * linux-arm-tdesc.h: Include arch/arm.h.
2562
2563 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2566
2567 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2570 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2571
2572 2020-01-10 Pedro Alves <palves@redhat.com>
2573
2574 * fork-child.c (post_fork_inferior): Pass target down to
2575 startup_inferior.
2576 * inferiors.c (switch_to_thread): Add process_stratum_target
2577 parameter.
2578 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2579 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2580 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2581 * remote-utils.c (prepare_resume_reply): Pass the target to
2582 switch_to_thread.
2583 * target.c (the_target): Now a process_stratum_target.
2584 (done_accessing_memory): Pass the target to switch_to_thread.
2585 (set_target_ops): Ajust to use process_stratum_target.
2586 * target.h (struct target_ops): Rename to ...
2587 (struct process_stratum_target): ... this.
2588 (the_target, set_target_ops): Adjust.
2589 (prepare_to_access_memory): Adjust comment.
2590 * win32-low.c (child_xfer_memory): Adjust to use
2591 process_stratum_target.
2592 (win32_target_ops): Now a process_stratum_target.
2593
2594 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2595 Pedro Alves <palves@redhat.com>
2596
2597 * win32-low.c (get_child_debug_event): Extract the fatal exception
2598 from the exit status and convert to the equivalent Posix signal
2599 number.
2600 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2601 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2602
2603 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2604
2605 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2606
2607 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2608
2609 * server.c (gdbserver_version): Change copyright year to 2020.
2610 * gdbreplay.c (gdbreplay_version): Likewise.
2611
2612 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2613
2614 * configure: Regenerate.
2615 * configure.ac: Quote variable arguments of test.
2616
2617 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2618
2619 * Makefile.in: Fix build with GNU Make 3.81
2620
2621 2019-12-16 Tom Tromey <tromey@adacore.com>
2622
2623 * server.c (get_exec_file): Constify result.
2624
2625 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2626
2627 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2628 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2629 * config.in: Regenerate.
2630 * configure: Regenerate.
2631 * configure.ac: Don't check for strerror.
2632 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2633 Call safe_strerror instead of strerror.
2634 * server.h (strerror): Remove this now-unnecessary declaration.
2635 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2636 strerror.
2637 (gdb_agent_helper_thread): Likewise.
2638 * utils.c (perror_with_name): Likewise.
2639
2640 2019-11-26 Tom Tromey <tom@tromey.com>
2641
2642 * configure, config.in: Rebuild.
2643
2644 2019-11-26 Tom Tromey <tom@tromey.com>
2645
2646 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2647 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2648 gdb_sigmask.
2649 * configure, config.in: Rebuild.
2650
2651 2019-11-26 Tom Tromey <tom@tromey.com>
2652
2653 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2654 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2655 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2656 * acinclude.m4: Include ax_pthread.m4.
2657 * config.in, configure: Rebuild.
2658
2659 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2660
2661 * debug.c (debug_set_output): Call safe_strerror instead of
2662 strerror.
2663 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2664 (linux_kill_one_lwp): Likewise.
2665 (linux_detach_one_lwp): Likewise.
2666 (linux_wait_for_event_filtered): Likewise.
2667 (store_register): Likewise.
2668 * lynx-low.c (lynx_attach): Likewise.
2669 * mem-break.c (insert_memory_breakpoint): Likewise.
2670 (remove_memory_breakpoint): Likewise.
2671 (delete_fast_tracepoint_jump): Likewise.
2672 (set_fast_tracepoint_jump): Likewise.
2673 (uninsert_fast_tracepoint_jumps_at): Likewise.
2674 (reinsert_fast_tracepoint_jumps_at): Likewise.
2675 * nto-low.c (nto_xfer_memory): Likewise.
2676 (nto_resume): Likewise.
2677
2678 2019-11-20 Luis Machado <luis.machado@linaro.org>
2679
2680 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2681 instead of register count.
2682 * tdesc.c (tdesc_contains_feature): New function.
2683 * tdesc.h (tdesc_contains_feature): New prototype.
2684
2685 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2686
2687 * Makefile.in: Add safe-strerror.c.
2688 * configure: Regenerate.
2689 * configure.ac: Don't source common.host.
2690
2691 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2692
2693 * config.in: Regenerate.
2694 * configure: Regenerate.
2695
2696 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * ax.c (ax_printf): Handle size_t_arg.
2699
2700 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2701
2702 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2703 * mi/mi-main.c (output_cores): Likewise.
2704 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2705 (linux_xfer_osdata_modules): Likewise.
2706 * remote.c (register_remote_support_xml): Likewise.
2707 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2708 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2709
2710 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2711
2712 * configure: Regenerate.
2713 * configure.ac: Remove check for strerror_r.
2714
2715 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2716
2717 * config.in: Regenerate.
2718 * configure: Regenerate.
2719 * configure.ac: Also check for strerror_r.
2720
2721 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2722
2723 * ax.h (debug_agent): Remove duplicate declaration.
2724
2725 2019-10-26 Tom de Vries <tdevries@suse.de>
2726
2727 * linux-aarch64-low.c: Fix typos in comments.
2728 * linux-arm-low.c: Same.
2729 * linux-low.c: Same.
2730 * linux-ppc-low.c: Same.
2731 * proc-service.c: Same.
2732 * regcache.h: Same.
2733 * server.c: Same.
2734 * tracepoint.c: Same.
2735 * win32-low.c: Same.
2736
2737 2019-10-25 Tom Tromey <tromey@adacore.com>
2738
2739 * utils.c (xstrdup): Remove.
2740
2741 2019-10-23 Tom Tromey <tom@tromey.com>
2742
2743 * configure, config.in: Rebuild.
2744
2745 2019-10-23 Tom Tromey <tom@tromey.com>
2746
2747 * configure: Rebuild.
2748 * acinclude.m4: Use m4_include, not sinclude.
2749
2750 2019-10-17 Tom Tromey <tromey@adacore.com>
2751
2752 * configure: Rebuild.
2753 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2754 in AC_CONFIG_FILES invocation.
2755 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2756 invocation.
2757
2758 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2759
2760 * server.c: Include xml-builtin.h.
2761 (get_xml_features): Don't declare xml_builtins here.
2762
2763 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * Makefile.in: Remove references to vec-ipa.o.
2766
2767 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2768
2769 * Makefile.in: Remove references to vec.c.
2770
2771 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2772
2773 * server.c (server_waiting): Change to bool.
2774 (extended_protocol): Likewise.
2775 (response_needed): Likewise.
2776 (exit_requested): Likewise.
2777 (run_once): Likewise.
2778 (report_no_resumed): Likewise.
2779 (non_stop): Likewise.
2780 (disable_packet_vCont): Likewise.
2781 (disable_packet_Tthread): Likewise.
2782 (disable_packet_qC): Likewise.
2783 (disable_packet_qfThreadInfo): Likewise.
2784 (handle_general_set): Update.
2785 (handle_detach): Update.
2786 (handle_monitor_command): Update.
2787 (handle_query): Update.
2788 (captured_main): Update.
2789 (process_serial_event): Update.
2790 * server.h (server_waiting): Change to bool.
2791 (disable_packet_vCont): Likewise.
2792 (disable_packet_Tthread): Likewise.
2793 (disable_packet_qC): Likewise.
2794 (disable_packet_qfThreadInfo): Likewise.
2795 (run_once): Likewise.
2796 (non_stop): Likewise.
2797 * target.c (target_stop_and_wait): Update.
2798
2799 2019-10-02 Tom Tromey <tromey@adacore.com>
2800
2801 * Makefile.in (SFILES): Add common-inferior.c.
2802 (OBS): Add common-inferior.o.
2803 * server.c (startup_with_shell): Don't define.
2804
2805 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2806
2807 * linux-low.c (linux_low_read_btrace): Update for change to
2808 std::vector.
2809
2810 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2811
2812 * debug.c (debug_threads): Remove comment in favor of the header.
2813 * debug.h (using_threads): Add declaration.
2814 (debug_threads): Add comment.
2815 * linux-aarch64-low.c: Include debug.h and remove declaration of
2816 debug_threads.
2817 * nto-low.c: Likewise.
2818 * remote-utils.c: Likewise.
2819 * thread-db.c: Likewise.
2820
2821 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2822
2823 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2824 and powerpc-cell64l-ipa.o.
2825 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2826 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2827 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2828 (spu*-*-*): Remove.
2829
2830 * spu-low.c: Remove file.
2831
2832 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2833 (parse_spufs_run): Remove.
2834 (ppc_get_pc): Remove Cell/B.E. support.
2835 (ppc_set_pc): Likewise.
2836 (ppc_breakpoint_at): Likewise.
2837 (ppc_arch_setup): Likewise.
2838 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2839 tdesc_powerpc_cell32l.
2840 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2841 or init_registers_powerpc_cell32l.
2842 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2843 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2844 or init_registers_powerpc_cell32l.
2845 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2846 (init_registers_powerpc_cell32l): Remove prototype.
2847 (init_registers_powerpc_cell64l): Likewise.
2848
2849 * target.h (struct target_ops): Remove qxfer_spu member.
2850 * server.c (handle_qxfer_spu): Remove.
2851 (qxfer_packets): Remove entry for "spu".
2852 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2853 * linux-low.c (SPUFS_MAGIC): Remove.
2854 (spu_enumerate_spu_ids): Remove.
2855 (linux_qxfer_spu): Remove.
2856 (linux_target_ops): Remove qxfer_spu member.
2857 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2858 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2859 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2860
2861 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2862
2863 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2864 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2865 * config.in: Regenerate.
2866 * configure: Regenerate.
2867
2868 2019-08-15 Tom Tromey <tromey@adacore.com>
2869
2870 * target.c (target_write_memory): Use gdb::byte_vector.
2871
2872 2019-08-15 Tom Tromey <tromey@adacore.com>
2873
2874 * tracepoint.c (write_inferior_data_pointer)
2875 (write_inferior_integer, write_inferior_int8)
2876 (write_inferior_uinteger, m_tracepoint_action_download)
2877 (r_tracepoint_action_download, x_tracepoint_action_download)
2878 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2879 (download_agent_expr, download_tracepoint_1)
2880 (download_trace_state_variables, upload_fast_traceframes): Update.
2881 * server.c (gdb_write_memory): Update.
2882 * remote-utils.c (relocate_instruction): Update.
2883 * proc-service.c (ps_pdwrite): Update.
2884 * mem-break.c (remove_memory_breakpoint)
2885 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2886 (uninsert_fast_tracepoint_jumps_at)
2887 (reinsert_fast_tracepoint_jumps_at): Update.
2888 * linux-x86-low.c (append_insns)
2889 (i386_install_fast_tracepoint_jump_pad)
2890 (amd64_write_goto_address, i386_write_goto_address): Update.
2891 * linux-s390-low.c (append_insns, s390_write_goto_address):
2892 Update.
2893 * linux-ppc-low.c (ppc_relocate_instruction)
2894 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2895 (ppc_write_goto_address): Update.
2896 * linux-aarch64-low.c (append_insns): Update.
2897 * target.h (struct target_ops): Update.
2898 (write_inferior_memory): Don't declare.
2899 * target.c (target_write_memory): Rename from
2900 write_inferior_memory. Remove old target_write_memory.
2901
2902 2019-08-15 Tom Tromey <tromey@adacore.com>
2903
2904 * target.c (write_inferior_memory): Use std::vector.
2905
2906 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2907
2908 PR build/24886
2909 * configure.ac: Drop enable-libmcheck support.
2910 * configure, config.in: Rebuild.
2911 * acinclude.m4: Don't include it.
2912
2913 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2914
2915 * configure.srv: Remove Arm xml files.
2916
2917 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2918
2919 * configure.srv: Add new files. Remove xml generated files.
2920 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2921 registers.
2922 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2923 * linux-aarch32-tdesc.c: New file.
2924 * linux-aarch32-tdesc.h: New file.
2925 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2926 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2927 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2928 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2929 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2930 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2931 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2932 (arm_read_description): Call arm_linux_read_description.
2933 (initialize_low_arch): Don't init registers.
2934 * linux-arm-tdesc.c: New file.
2935 * linux-arm-tdesc.h: New file.
2936
2937 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2938
2939 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2940 Move counter inside for.
2941 (arm_read_description): Check ptrace earlier.
2942 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2943
2944 2019-07-09 Tom Tromey <tom@tromey.com>
2945
2946 * configure: Rebuild.
2947 * configure.ac: Change common to gdbsupport.
2948 * acinclude.m4: Change common to gdbsupport.
2949 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2950 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2951 common to gdbsupport.
2952 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2953 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2954 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2955 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2956 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2957 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2958 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2959 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2960 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2961 common to gdbsupport.
2962
2963 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2964
2965 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2966 defines.
2967 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2968
2969 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2970
2971 * configure.srv: Remove legacy xml.
2972 * linux-aarch64-low.c (initialize_low_arch): Remove
2973 initialize_low_tdesc call.
2974 * linux-aarch64-tdesc-selftest.c: Remove file.
2975 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2976 * linux-x86-low.c (initialize_low_arch): Remove
2977 initialize_low_tdesc call.
2978 * linux-x86-tdesc-selftest.c: Remove file.
2979 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2980
2981 2019-06-20 Tom de Vries <tdevries@suse.de>
2982
2983 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2984 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2985
2986 2019-06-19 Tom de Vries <tdevries@suse.de>
2987
2988 * debug.h (debug_write): Change return type to ssize_t.
2989 * debug.c (debug_write): Same.
2990
2991 2019-06-14 Tom Tromey <tom@tromey.com>
2992
2993 * configure.ac: Use new path to gnulib.
2994 * configure: Rebuild.
2995 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2996 to gnulib.
2997
2998 2019-06-11 Tom Tromey <tom@tromey.com>
2999
3000 * Makefile.in (SFILES): Add alloc.c.
3001 (OBS): Add alloc.o.
3002 (IPA_OBJS): Add alloc-ipa.o.
3003 (alloc-ipa.o): New target.
3004 (%.o: ../%.c): New pattern rule.
3005
3006 2019-06-10 Tom Tromey <tromey@adacore.com>
3007
3008 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3009 end warning with a newline.
3010 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3011 newline.
3012 * thread-db.c (attach_thread): Don't end warning with a newline.
3013 (thread_db_notice_clone): Likewise.
3014 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3015 newline.
3016 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3017 end warning with a newline.
3018
3019 2019-06-04 Pedro Alves <palves@redhat.com>
3020
3021 * server.c (captured_main): Use make_unique_xstrdup.
3022
3023 2019-06-02 Tom Tromey <tom@tromey.com>
3024
3025 * gdbreplay.c (fromhex): Remove.
3026 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3027
3028 2019-05-29 Tom Tromey <tromey@adacore.com>
3029
3030 * configure: Rebuild.
3031
3032 2019-05-06 Kevin Buettner <kevinb@redhat.com>
3033
3034 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3035 sign extension code on 32-bit builds.
3036
3037 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3038
3039 * remote-utils.c:
3040 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3041
3042 2019-04-19 Tom Tromey <tom@tromey.com>
3043
3044 * server.c (struct vstop_notif): Derive from notif_event.
3045 <base>: Remove.
3046 (queue_stop_reply): Update.
3047 (remove_all_on_match_ptid): Change type. Rewrite.
3048 (discard_queued_stop_replies): Rewrite.
3049 (in_queued_stop_replies_ptid): Change type.
3050 (in_queued_stop_replies): Rewrite.
3051 (notif_stop): Update.
3052 (queue_stop_reply_callback): Update.
3053 (captured_main): Don't call initialize_notif.
3054 (push_stop_notification): Update.
3055 * notif.c (notif_write_event, handle_notif_ack)
3056 (notif_event_enque, notif_push): Update.
3057 (notif_event_xfree, initialize_notif): Remove.
3058 * notif.h (struct notif_event): Include <list>, not
3059 "common/queue.h".
3060 (struct notif_server) <queue>: Now a std::list.
3061 (notif_event_p): Remove typedef.
3062 (initialize_notif): Don't declare.
3063 (struct notif_event): Add virtual destructor.
3064
3065 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3066
3067 * ax.c (ax_vdebug): Call debug_printf.
3068 * debug.c (debug_write): New function.
3069 * debug.h (debug_write): New declaration.
3070 * linux-low.c (sigchld_handler): Call debug_write.
3071
3072 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3073
3074 * debug.c (debug_set_output): New function.
3075 (debug_vprintf): Send output to debug_file.
3076 (debug_flush): Likewise.
3077 * debug.h (debug_set_output): New declaration.
3078 * server.c (handle_monitor_command): Add debug-file option.
3079 (captured_main): Likewise.
3080
3081 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3082
3083 * debug.c (remote_debug): Add definition.
3084 * debug.h (remote_debug): Add declaration.
3085 * hostio.c (remote_debug): Remove declaration.
3086 * remote-utils.c (struct ui_file): Likewise.
3087 (remote_debug): Likewise.
3088 * remote-utils.h (remote_debug): Likewise,
3089 * server.c (remote_debug): Remove definition.
3090
3091 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3092
3093 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3094 when using a 64-bit gdbserver.
3095
3096 2019-04-09 Tom Tromey <tromey@adacore.com>
3097
3098 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3099
3100 2019-04-08 Tom Tromey <tom@tromey.com>
3101
3102 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3103 throw.
3104 (linux_resume_one_lwp): Likewise.
3105
3106 2019-04-08 Tom Tromey <tom@tromey.com>
3107
3108 * gdbreplay.c: Update.
3109 * linux-low.c: Update.
3110 * server.c: Update.
3111
3112 2019-04-08 Tom Tromey <tom@tromey.com>
3113
3114 * server.c: Use C++ exception handling.
3115 * linux-low.c: Use C++ exception handling.
3116 * gdbreplay.c: Use C++ exception handling.
3117
3118 2019-04-08 Tom Tromey <tom@tromey.com>
3119
3120 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3121 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3122 (captured_main, main): Update.
3123 * gdbreplay.c (main): Update.
3124
3125 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3126
3127 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3128 value in argument pointer, return 1 if the entry is found and 0
3129 otherwise. Move comment.
3130 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3131 * linux-low.h (linux_get_auxv): Declare.
3132 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3133
3134 2019-04-05 Tom Tromey <tromey@adacore.com>
3135
3136 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3137 variables.
3138
3139 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3140
3141 * linux-low.c (AT_HWCAP2): Add define if not already included.
3142
3143 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3144
3145 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3146 (aarch64_arch_setup): Call linux_get_hwcap.
3147 * linux-arm-low.c (arm_get_hwcap): Remove function.
3148 (arm_read_description): Call linux_get_hwcap.
3149 * linux-low.c (linux_get_auxv): New function.
3150 (linux_get_hwcap): Likewise.
3151 (linux_get_hwcap2): Likewise.
3152 * linux-low.h (linux_get_hwcap): New declaration.
3153 (linux_get_hwcap2): Likewise.
3154 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3155 (ppc_arch_setup): Call linux_get_hwcap.
3156 * linux-s390-low.c (s390_get_hwcap): Remove function.
3157 (s390_arch_setup): Call linux_get_hwcap.
3158
3159 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3160 Jiong Wang <jiong.wang@arm.com>
3161
3162 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3163 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3164 to fail.
3165 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3166
3167 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3168 Jiong Wang <jiong.wang@arm.com>
3169
3170 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3171 (aarch64_get_hwcap): New function.
3172 (aarch64_arch_setup): Read APIA hwcap.
3173
3174 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3175 Jiong Wang <jiong.wang@arm.com>
3176
3177 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3178 (initialize_low_tracepoint): Likewise.
3179 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3180 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3181 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3182 (aarch64_linux_read_description): Likewise.
3183 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3184
3185 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3186
3187 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3188 i386_create_target_description for 'segments' parameter.
3189 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3190 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3191 * win32-i386-low.c (i386_arch_setup): Likewise.
3192
3193 2019-03-12 Tom Tromey <tromey@adacore.com>
3194
3195 * linux-low.c (iterate_over_lwps): Update.
3196
3197 2019-03-06 Tom Tromey <tom@tromey.com>
3198
3199 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3200 (captured_main): Use SCOPE_EXIT.
3201
3202 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3203
3204 * configure.srv: Use '$enable_unittest' instead of '$development'
3205 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3206 case.
3207
3208 2019-02-27 Tom Tromey <tromey@adacore.com>
3209
3210 * gdbreplay.c (logchar): Handle \r\n.
3211
3212 2019-02-07 Alan Hayward <alan.hayward@arm.com>
3213
3214 * linux-low.c (linux_attach): Add process before lwp.
3215 * server.c (attach_inferior): Check if already attached.
3216
3217 2019-02-07 Tom Tromey <tom@tromey.com>
3218
3219 * x86-tdesc.h: Rename include guard.
3220 * x86-low.h: Add include guard.
3221 * wincecompat.h: Rename include guard.
3222 * win32-low.h: Add include guard.
3223 * utils.h: Rename include guard.
3224 * tracepoint.h: Rename include guard.
3225 * tdesc.h: Rename include guard.
3226 * target.h: Rename include guard.
3227 * server.h: Rename include guard.
3228 * remote-utils.h: Rename include guard.
3229 * regcache.h: Rename include guard.
3230 * nto-low.h: Rename include guard.
3231 * notif.h: Add include guard.
3232 * mem-break.h: Rename include guard.
3233 * lynx-low.h: Add include guard.
3234 * linux-x86-tdesc.h: Add include guard.
3235 * linux-s390-tdesc.h: Add include guard.
3236 * linux-ppc-tdesc-init.h: Add include guard.
3237 * linux-low.h: Add include guard.
3238 * linux-aarch64-tdesc.h: Add include guard.
3239 * linux-aarch32-low.h: Add include guard.
3240 * inferiors.h: Rename include guard.
3241 * i387-fp.h: Rename include guard.
3242 * hostio.h: Rename include guard.
3243 * gdbthread.h: Rename include guard.
3244 * gdb_proc_service.h: Rename include guard.
3245 * event-loop.h: Rename include guard.
3246 * dll.h: Rename include guard.
3247 * debug.h: Rename include guard.
3248 * ax.h: Rename include guard.
3249
3250 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3251
3252 PR gdb/23985
3253 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3254 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3255
3256 2019-01-25 Tom Tromey <tom@tromey.com>
3257
3258 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3259
3260 2019-01-25 Tom Tromey <tom@tromey.com>
3261
3262 * win32-low.c: Fix common/ includes.
3263 * win32-i386-low.c: Fix common/ includes.
3264 * tracepoint.c: Fix common/ includes.
3265 * thread-db.c: Fix common/ includes.
3266 * target.h: Fix common/ includes.
3267 * symbol.c: Fix common/ includes.
3268 * spu-low.c: Fix common/ includes.
3269 * server.h: Fix common/ includes.
3270 * server.c: Fix common/ includes.
3271 * remote-utils.c: Fix common/ includes.
3272 * regcache.h: Fix common/ includes.
3273 * regcache.c: Fix common/ includes.
3274 * nto-x86-low.c: Fix common/ includes.
3275 * notif.h: Fix common/ includes.
3276 * mem-break.h: Fix common/ includes.
3277 * lynx-low.c: Fix common/ includes.
3278 * lynx-i386-low.c: Fix common/ includes.
3279 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3280 * linux-x86-low.c: Fix common/ includes.
3281 * linux-low.c: Fix common/ includes.
3282 * inferiors.h: Fix common/ includes.
3283 * i387-fp.c: Fix common/ includes.
3284 * hostio.c: Fix common/ includes.
3285 * hostio-errno.c: Fix common/ includes.
3286 * gdbthread.h: Fix common/ includes.
3287 * gdbreplay.c: Fix common/ includes.
3288 * fork-child.c: Fix common/ includes.
3289 * event-loop.c: Fix common/ includes.
3290 * ax.c:
3291 (enum gdb_agent_op): Fix common/ includes.
3292
3293 2019-01-21 Tom Tromey <tom@tromey.com>
3294
3295 * tracepoint.c: Fix includes.
3296 * remote-utils.c: Fix includes.
3297 * linux-x86-low.c: Fix includes.
3298
3299 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3300
3301 * gdbreplay.c (gdbreplay_version): Update copyright year in
3302 version message.
3303 * server.c (gdbserver_version): Likewise.
3304
3305 2018-12-05 Alan Hayward <alan.hayward@arm.com>
3306
3307 * linux-low.c (add_lwp): Switch ordering.
3308
3309 2018-11-29 Tom Tromey <tom@tromey.com>
3310
3311 * win32-low.c (win32_join): Take pid, not process.
3312 * target.h (struct target_ops) <join>: Change argument type.
3313 (join_inferior): Change argument name.
3314 * spu-low.c (spu_join): Take pid, not process.
3315 * server.c (handle_detach): Preserve pid before destroying
3316 process.
3317 * lynx-low.c (lynx_join): Take pid, not process.
3318 * linux-low.c (linux_join): Take pid, not process.
3319
3320 2018-11-23 Alan Hayward <alan.hayward@arm.com>
3321
3322 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3323 (aarch64_cannot_fetch_register): Likewise.
3324 (struct linux_target_ops): Update references.
3325
3326 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3327
3328 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3329
3330 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3331
3332 * configure.srv (ipa_ppc_linux_regobj): Add
3333 powerpc-isa207-htm-vsx32l-ipa.o and
3334 powerpc-isa207-htm-vsx64l-ipa.o.
3335 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
3336 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
3337 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
3338 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
3339 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
3340 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
3341 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
3342 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
3343 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3344 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
3345 (init_registers_powerpc_isa207_htm_vsx32l)
3346 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
3347 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
3348 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
3349 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
3350 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
3351 (ppc_store_tm_ctarregset): New functions.
3352 (ppc_regsets): Add entries for HTM regsets.
3353 (ppc_arch_setup): Set htm in features struct when needed. Set
3354 sizes for the HTM regsets.
3355 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
3356 (initialize_low_arch): Call
3357 init_registers_powerpc_isa207_htm_vsx32l and
3358 init_registers_powerpc_isa207_htm_vsx64l.
3359 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3360 PPC_TDESC_ISA207_HTM_VSX.
3361 (initialize_low_tracepoint): Call
3362 init_registers_powerpc_isa207_htm_vsx32l and
3363 init_registers_powerpc_isa207_htm_vsx64l.
3364
3365 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3366
3367 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
3368 rs6000/power-linux-pmu.xml to srv_xmlfiles.
3369 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
3370 (ppc_store_pmuregset): New functions.
3371 (ppc_regsets): Add entries for ebb and pmu regsets.
3372 (ppc_arch_setup): Set isa207 in features struct if the ebb and
3373 pmu regsets are available. Set sizes for these regsets.
3374
3375 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3376
3377 * configure.srv (ipa_ppc_linux_regobj): Add
3378 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
3379 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
3380 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
3381 rs6000/powerpc-isa207-vsx32l.xml, and
3382 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
3383 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3384 <PPC_TDESC_ISA207_VSX>: New enum value.
3385 (init_registers_powerpc_isa207_vsx32l): Declare.
3386 (init_registers_powerpc_isa207_vsx64l): Declare.
3387 * linux-ppc-low.c (ppc_fill_tarregset): New function.
3388 (ppc_store_tarregset): New function.
3389 (ppc_regsets): Add entry for the TAR regset.
3390 (ppc_arch_setup): Set isa207 in features struct when needed. Set
3391 size for the TAR regsets.
3392 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
3393 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
3394 and init_registers_powerpc_isa207_vsx64l.
3395 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
3396 (initialize_low_tracepoint): Call
3397 init_registers_powerpc_isa207_vsx32l and
3398 init_registers_powerpc_isa207_vsx64l.
3399
3400 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3401 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3402
3403 * configure.srv (ipa_ppc_linux_regobj): Add
3404 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
3405 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
3406 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
3407 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
3408 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
3409 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
3410 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
3411 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3412 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
3413 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
3414 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
3415 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
3416 (ppc_hwcap): Add comment.
3417 (ppc_hwcap2): New global.
3418 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
3419 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
3420 (ppc_regsets): Add entries for the DSCR and PPR regsets.
3421 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
3422 when needed. Set sizes for the the DSCR and PPR regsets.
3423 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
3424 (initialize_low_arch): Call
3425 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3426 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3427 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3428 PPC_TDESC_ISA205_PPR_DSCR_VSX.
3429 (initialize_low_tracepoint): Call
3430 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3431 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3432
3433 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3434
3435 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
3436
3437 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
3438 Simon Marchi <simark@simark.ca>
3439
3440 * acinclude.m4: Include "../selftest.m4".
3441 * configure: Regenerate.
3442 * configure.ac: Use "GDB_AC_SELFTEST".
3443 * configure.srv: Use "$enable_unittests" instead of
3444 "$development" when checking whether unit tests have been
3445 enabled.
3446 * server.c (captured_main): Update message informing that
3447 selftests have been disabled.
3448
3449 2018-10-04 Tom Tromey <tom@tromey.com>
3450
3451 * configure: Rebuild.
3452
3453 2018-10-04 Tom Tromey <tom@tromey.com>
3454
3455 * server.c (handle_status): Rename inner "thread".
3456 (process_serial_event): Declare "res" in 'm' case.
3457 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
3458 (iterate_over_lwps): Rename inner "thread".
3459 (linux_qxfer_libraries_svr4): Rename inner "len".
3460 * gdbthread.h (find_thread_in_random): Rename inner "thread".
3461
3462 2018-10-01 Gary Benson <gbenson@redhat.com>
3463
3464 * gdb_proc_service.h: Moved common code to
3465 common/gdb_proc_service.h.
3466
3467 2018-10-01 Gary Benson <gbenson@redhat.com>
3468
3469 * gdb_proc_service.h: Synchronize comments and whitespace with
3470 GDB's version of this file.
3471
3472 2018-09-25 Tom Tromey <tom@tromey.com>
3473
3474 * configure: Rebuild.
3475 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3476
3477 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3478
3479 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3480 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3481 ($(IPA_LIB)): Sort IPA_OBJS.
3482
3483 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3484
3485 * Makefile.in: Remove references to $(ADD_DEPS).
3486
3487 2018-09-16 Tom Tromey <tom@tromey.com>
3488
3489 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3490 variables.
3491 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3492 variables.
3493
3494 2018-09-05 Tom Tromey <tom@tromey.com>
3495
3496 * configure: Rebuild.
3497
3498 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 PR build/23399
3501 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3502
3503 2018-08-27 Tom Tromey <tom@tromey.com>
3504
3505 PR build/23087:
3506 * configure: Rebuild.
3507
3508 2018-08-27 Tom Tromey <tom@tromey.com>
3509
3510 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
3511 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
3512 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
3513 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
3514 (s390x_emit_stack_adjust): Add casts to unsigned char.
3515
3516 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3517
3518 PR gdb/23374
3519 PR gdb/23375
3520 * server.h (struct client_state) <disable_randomization>:
3521 Initialize to 1.
3522
3523 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3524
3525 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3526 variable.
3527 (mips_supply_ptrace_register): Likewise.
3528
3529 2018-07-22 Tom Tromey <tom@tromey.com>
3530
3531 * configure: Rebuild.
3532
3533 2018-07-22 Tom Tromey <tom@tromey.com>
3534
3535 * win32-low.c (win32_create_inferior): Remove unused variables.
3536 * gdbreplay.c (remote_open): Remove unused variable.
3537 * remote-utils.c (remote_prepare): Remove unused variable.
3538 * x86-tdesc.h (X86_TDESC_H): Define.
3539 (amd64_expedite_regs): Define conditionally.
3540 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3541 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3542 * remote-utils.c (readchar): Remove unused variable.
3543
3544 2018-07-13 Pedro Alves <palves@redhat.com>
3545
3546 * linux-low.c (linux_kill): Change parameter to process_info
3547 pointer instead of pid. Adjust.
3548 * lynx-low.c (lynx_kill): Likewise.
3549 * nto-low.c (nto_kill): Likewise.
3550 * spu-low.c (spu_kill): Likewise.
3551 * win32-low.c (win32_kill): Likewise.
3552 * server.c (handle_v_kill, kill_inferior_callback)
3553 (detach_or_kill_for_exit): Adjust.
3554 * target.c (kill_inferior): Change parameter to process_info
3555 pointer instead of pid. Adjust.
3556 * target.h (struct target_ops) <kill>: Change parameter to
3557 process_info pointer instead of pid. Adjust all implementations
3558 and callers.
3559 (kill_inferior): Likewise.
3560
3561 2018-07-13 Pedro Alves <palves@redhat.com>
3562
3563 * linux-low.c (linux_detach, linux_join): Change parameter to
3564 process_info pointer instead of pid. Adjust.
3565 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3566 * nto-low.c (nto_detach): Likewise.
3567 * spu-low.c (spu_detach, spu_join): Likewise.
3568 * win32-low.c (win32_detach, win32_join): Likewise.
3569 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3570 * target.h (struct target_ops) <detach, join>: Change parameter to
3571 process_info pointer instead of pid. Adjust all implementations
3572 and callers.
3573 (detach_inferior, join_inferior): Rename 'pid' parameter to
3574 'proc'.
3575
3576 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3577 Jan Kratochvil <jan.kratochvil@redhat.com>
3578 Paul Fertser <fercerpav@gmail.com>
3579 Tsutomu Seki <sekiriki@gmail.com>
3580
3581 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3582 (OBS): Add 'common/netstuff.o'.
3583 (GDBREPLAY_OBS): Likewise.
3584 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3585 (remote_open): Implement support for IPv6
3586 connections.
3587 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3588 and 'wspiapi.h'.
3589 (handle_accept_event): Accept connections from IPv6 sources.
3590 (remote_prepare): Handle IPv6-style hostnames; implement
3591 support for IPv6 connections.
3592 (remote_open): Implement support for printing connections from
3593 IPv6 sources.
3594
3595 2018-07-11 Pedro Alves <palves@redhat.com>
3596
3597 PR gdb/23377
3598 * mem-break.c (any_persistent_commands): Add process_info
3599 parameter and use it instead of relying on the current process.
3600 Change return type to bool.
3601 * mem-break.h (any_persistent_commands): Add process_info
3602 parameter and change return type to bool.
3603 * server.c (handle_detach): Remove require_running_or_return call.
3604 Look up the process_info for the process we're about to detach.
3605 If not found, return back error to GDB. Adjust
3606 any_persistent_commands call to pass down a process pointer.
3607
3608 2018-07-11 Pedro Alves <palves@redhat.com>
3609
3610 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3611 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3612 instead of collect_register_by_name.
3613 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3614 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3615
3616 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3617 Pedro Alves <palves@redhat.com>
3618
3619 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3620
3621 2018-07-03 Tom Tromey <tom@tromey.com>
3622
3623 * linux-low.c: Update.
3624 * lynx-low.c: Update.
3625 * mem-break.c: Update.
3626 * nto-low.c: Update.
3627 * remote-utils.c: Update.
3628 * server.c: Update.
3629 * spu-low.c: Update.
3630 * target.c: Update.
3631 * win32-low.c: Update.
3632
3633 2018-07-03 Tom Tromey <tom@tromey.com>
3634
3635 * server.c: Update.
3636
3637 2018-07-03 Tom Tromey <tom@tromey.com>
3638
3639 * linux-low.c: Update.
3640
3641 2018-07-03 Tom Tromey <tom@tromey.com>
3642
3643 * target.c: Update.
3644
3645 2018-07-03 Tom Tromey <tom@tromey.com>
3646
3647 * linux-low.c: Update.
3648 * linux-mips-low.c: Update.
3649 * lynx-low.c: Update.
3650 * nto-low.c: Update.
3651 * remote-utils.c: Update.
3652 * server.c: Update.
3653 * spu-low.c: Update.
3654 * target.c: Update.
3655 * thread-db.c: Update.
3656
3657 2018-07-03 Tom Tromey <tom@tromey.com>
3658
3659 * linux-low.c: Update.
3660 * linux-mips-low.c: Update.
3661 * lynx-low.c: Update.
3662 * mem-break.c: Update.
3663 * nto-low.c: Update.
3664 * remote-utils.c: Update.
3665 * server.c: Update.
3666 * spu-low.c: Update.
3667 * target.c: Update.
3668 * tracepoint.c: Update.
3669
3670 2018-07-03 Tom Tromey <tom@tromey.com>
3671
3672 * linux-low.c: Update.
3673 * linux-ppc-low.c: Update.
3674 * linux-x86-low.c: Update.
3675 * proc-service.c: Update.
3676 * server.c: Update.
3677 * spu-low.c: Update.
3678 * thread-db.c: Update.
3679 * win32-low.c: Update.
3680
3681 2018-07-03 Tom Tromey <tom@tromey.com>
3682
3683 * linux-low.c: Update.
3684 * lynx-low.c: Update.
3685 * nto-low.c: Update.
3686 * remote-utils.c: Update.
3687 * spu-low.c: Update.
3688 * thread-db.c: Update.
3689 * win32-low.c: Update.
3690
3691 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3692
3693 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3694 parameter in call to 'amd64_create_target_description'.
3695
3696 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3697
3698 * x86-tdesc.h: Remove executable permission flag.
3699
3700 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3701
3702 * configure.ac: Remove AC_PREREQ, add missing quoting.
3703 * configure: Re-generate.
3704 * config.in: Re-generate.
3705 * aclocal.m4: Re-generate.
3706
3707 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3708
3709 * tracepoint.h (current_traceframe): Remove declaration.
3710
3711 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3712
3713 * linux-aarch64-low.c (is_sve_tdesc): New function.
3714 (aarch64_sve_regs_copy_to_regcache): Likewise.
3715 (aarch64_sve_regs_copy_from_regcache): Likewise.
3716 (aarch64_regs_info): Add SVE checks.
3717 (initialize_low_arch): Initialize SVE.
3718
3719 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3720
3721 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3722
3723 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3724
3725 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3726 (initialize_low_tracepoint): Likewise
3727 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3728 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3729 param.
3730 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3731 checks.
3732 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3733
3734 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3735
3736 * server.h (PBUFSIZ): Increase size
3737
3738 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3739
3740 * regcache.c (regcache::raw_compare): New function.
3741 * regcache.h (regcache::raw_compare): New declaration.
3742
3743 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3744
3745 * regcache.c (new_register_cache): Use new.
3746 (free_register_cache): Use delete.
3747 (register_data): Use const.
3748 (supply_register): Move body inside regcache.
3749 (regcache::raw_supply): New override function.
3750 (collect_register): Move body inside regcache.
3751 (regcache::raw_collect): New override function.
3752 (regcache::get_register_status): New override function.
3753 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3754
3755 2018-06-09 Tom Tromey <tom@tromey.com>
3756
3757 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3758 declare queue.
3759 (event_queue): Use std::queue.
3760 (gdb_event_xfree): Remove.
3761 (initialize_event_loop, process_event, wait_for_event): Update.
3762
3763 2018-06-08 Stan Cox <scox@redhat.com>
3764
3765 * win32-low.c (win32_create_inferior): last_ptid and last_status
3766 moved to client_state.
3767
3768 2018-06-08 Pedro Alves <palves@redhat.com>
3769
3770 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3771 common/common-exceptions.o, common/common-utils.o,
3772 common/errors.o, common/print-utils.o and utils.o.
3773 * gdbreplay.c: Include "common-defs.h" instead of the two
3774 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3775 string.h or alloca.h.
3776 (perror_with_name): Delete.
3777 (remote_open): Use xstrdup instead of strdup.
3778 (main): Rename to ...
3779 (captured_main): ... this.
3780 (main): New.
3781
3782 2018-06-08 Tom Tromey <tom@tromey.com>
3783
3784 * linux-low.c (linux_low_read_btrace): Update.
3785
3786 2018-06-04 Stan Cox <scox@redhat.com>
3787
3788 * server.h (struct client_state): New.
3789 * server.c (cont_thread, general_thread, multi_process)
3790 (report_fork_events, report_vfork_events, report_exec_events)
3791 (report_thread_events, swbreak_feature, hwbreak_feature)
3792 (vCont_supported, disable_randomization, pass_signals)
3793 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3794 Moved to client_state.
3795 * remote-utils.c (remote_debug, noack_mode)
3796 (transport_is_reliable): Moved to client_state.
3797 * tracepoint.c (current_traceframe): Moved to client_state.
3798
3799 Update all callers.
3800 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3801 linux-low.c, remote-utils.h, target.c: Use client_state.
3802
3803 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3804
3805 * configure.srv: Add new c/h file.
3806
3807 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3808
3809 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3810 null VQ.
3811
3812 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3813
3814 * gdb.arch/mips-fpregset-core.exp: New test.
3815 * gdb.arch/mips-fpregset-core.c: New test source.
3816
3817 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3818
3819 PR server/23198
3820 * hostio.c (require_int): Do not report overflow for integers
3821 between 0xfffffff and 0x7fffffff.
3822
3823 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3824
3825 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3826 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3827 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3828 functions.
3829 (the_low_target): Wire them.
3830
3831 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3832
3833 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3834 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3835 mode. Call collect_register_by_name with vscr using
3836 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3837 (ppc_store_vrregset): Add and set vscr_offset variable as in
3838 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3839 vscr_offset.
3840
3841 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3842
3843 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3844 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3845 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3846
3847 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3848
3849 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3850 (ppc_store_vsxregset): Likewise.
3851 (ppc_fill_vrregset): Likewise.
3852 (ppc_store_vrregset): Likewise.
3853 (ppc_fill_evrregset): Likewise.
3854 (ppc_store_evrregset): Likewise.
3855 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3856 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3857 needed.
3858
3859 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3860
3861 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3862 wordsize of the inferior. Call ppc_linux_target_wordsize.
3863
3864 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3865
3866 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3867 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3868 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3869 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3870 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3871 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3872 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3873 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3874 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3875 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3876 (tdesc_powerpc_e500l): Remove.
3877 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3878 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3879 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3880 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3881 linux-ppc-tdesc.h.
3882 (ppc_arch_setup): Remove target description matching code. Fill a
3883 ppc_linux_features struct and call ppc_linux_match_description
3884 with it.
3885
3886 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3887
3888 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3889 width of the requested register exceeds the width of the
3890 `ptrace' data type.
3891 (mips_cannot_store_register): Likewise.
3892
3893 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3894
3895 * linux-mips-low.c (mips_fetch_register): New function. Update
3896 preceding comment.
3897 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3898 (the_low_target): Wire `mips_fetch_register'.
3899
3900 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3901
3902 * lynx-i386-low.c (LYNXOS_178): New macro.
3903 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3904 the layout on LynxOS-178.
3905 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3906 handle floating point registers that are not supported by
3907 LynxOS-178.
3908
3909 2018-05-10 Tom Tromey <tom@tromey.com>
3910
3911 * configure: Rebuild.
3912
3913 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3914
3915 PR server/23158:
3916 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3917 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3918 Use it to set the expedite_regs field in the given tdesc.
3919 * x86-tdesc.h: New file.
3920 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3921 Adjust following the addition of the new expedite_regs parameter
3922 to init_target_desc.
3923 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3924 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3925 (i386_linux_read_description, amd64_linux_read_description):
3926 Adjust following the addition of the new expedite_regs parameter
3927 to init_target_desc.
3928 * lynx-i386-low.c: #include "x86-tdesc.h".
3929 (lynx_i386_arch_setup): Adjust following the addition of the new
3930 expedite_regs parameter to init_target_desc.
3931 * nto-x86-low.c: #include "x86-tdesc.h".
3932 (nto_x86_arch_setup): Adjust following the addition of the new
3933 expedite_regs parameter to init_target_desc.
3934 * win32-i386-low.c: #include "x86-tdesc.h".
3935 (i386_arch_setup): Adjust following the addition of the new
3936 expedite_regs parameter to init_target_desc.
3937
3938 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3939
3940 PR server/23158:
3941 * win32-low.c (win32_create_inferior): Add call to my_wait
3942 setting last_status global.
3943
3944 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3945
3946 PR server/23158:
3947 * win32-low.c (create_process): Only call gdb_tilde_expand if
3948 inferior_cwd is not NULL.
3949
3950 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3953 registers to the cache if their values have changed.
3954 (i387_xsave_to_cache): Provide default values for x87 control
3955 registers when these features are available, but disabled.
3956 * regcache.c (supply_register_by_name_zeroed): New function.
3957 * regcache.h (supply_register_by_name_zeroed): Declare new
3958 function.
3959
3960 2018-05-07 Tom Tromey <tom@tromey.com>
3961
3962 * configure: Rebuild.
3963
3964 2018-05-04 Tom Tromey <tom@tromey.com>
3965
3966 * configure: Rebuild.
3967
3968 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3969 Pedro Alves <palves@redhat.com>
3970
3971 * linux-aarch64-low.c (aarch64_stopped_data_address):
3972 Likewise.
3973
3974 2018-04-27 Tom Tromey <tom@tromey.com>
3975
3976 * configure: Rebuild.
3977
3978 2018-04-23 Tom Tromey <tom@tromey.com>
3979
3980 * configure: Rebuild.
3981
3982 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3983
3984 * Makefile.in (depcomp): Add "..".
3985 (all_deps_files): New and use it.
3986
3987 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3988
3989 * configure.srv (aarch64*-*-linux*): Don't include xml.
3990 (i[34567]86-*-cygwin*): Likewise.
3991 (i[34567]86-*-linux*): Likewise.
3992 (i[34567]86-*-lynxos*): Likewise.
3993 (i[34567]86-*-mingw32ce*): Likewise.
3994 (i[34567]86-*-mingw*): Likewise.
3995 (i[34567]86-*-nto*): Likewise.
3996 (tic6x-*-uclinux): Likewise.
3997 (x86_64-*-linux*): Likewise.
3998 (x86_64-*-mingw*): Likewise.
3999 (x86_64-*-cygwin*): Likewise.
4000
4001 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4002
4003 * tdesc.c: Remove xml parameter.
4004
4005 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4006
4007 * server.c (get_features_xml): Remove cast.
4008 * tdesc.c (void target_desc::accept): Fill in function.
4009 (tdesc_get_features_xml): Remove old xml creation.
4010 (print_xml_feature::visit_pre): Add xml vistor.
4011 * tdesc.h (struct target_desc): Make xmltarget mutable.
4012 (tdesc_get_features_xml): Remove declaration.
4013
4014 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4015
4016 * tdesc.c (tdesc_architecture_name): Add new function.
4017 (tdesc_osabi_name): Likewise.
4018 (tdesc_get_features_xml): Use new functions.
4019
4020 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4021
4022 * tdesc.c (tdesc_create_flags): Remove.
4023 (tdesc_add_flag): Likewise.
4024 (tdesc_named_type): Likewise.
4025 (tdesc_create_union): Likewise.
4026 (tdesc_create_struct): Likewise.
4027 (tdesc_create_vector): Likewise.
4028 (tdesc_add_bitfield): Likewise.
4029 (tdesc_add_field): Likewise.
4030 (tdesc_set_struct_size): Likewise.
4031
4032 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4033
4034 * tdesc.c (~target_desc): Remove implictly deleted items.
4035 (init_target_desc): Iterate all features.
4036 (tdesc_get_features_xml): Use vector.
4037 (tdesc_create_feature): Create feature.
4038 * tdesc.h (tdesc_feature) Remove
4039 (target_desc): Add features.
4040
4041 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4042
4043 * Makefile.in: Add common/tdesc.c
4044 * tdesc.c (init_target_desc): init all reg_defs from register
4045 vector.
4046 (tdesc_create_reg): Create tdesc_reg.
4047 * tdesc.h (tdesc_feature): Add register vector.
4048
4049 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4050
4051 * tdesc.h (struct target_desc) <features>: Change type to
4052 std::vector<std::string>.
4053 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4054 changes.
4055 (tdesc_get_features_xml): Likewise.
4056 (tdesc_create_feature): Likewise.
4057
4058 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4059
4060 * regcache.c (find_register_by_number): Return a ref.
4061 (find_regno): Use references.
4062 (register_size): Likewise.
4063 (register_data): Likewise.
4064 * tdesc.c (target_desc::~target_desc): Remove free calls.
4065 (target_desc::operator==): Use std::vector compare.
4066 (init_target_desc): Use reference.
4067 (tdesc_create_reg): Use reg constructors.
4068 * tdesc.h (struct target_desc): Replace pointer with object.
4069
4070 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4071
4072 * regcache.c (find_register_by_number): Make static.
4073 (find_regno): Use find_register_by_number
4074 * regcache.h (struct reg): Remove declaration.
4075
4076 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4077
4078 * tdesc.c (target_desc::~target_desc): Move to here.
4079 (target_desc::operator==): Likewise.
4080 * tdesc.h (target_desc::~target_desc): Move from here.
4081 (target_desc::operator==): Likewise.
4082
4083 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4084
4085 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4086
4087 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4088
4089 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4090 S390_TDESC_GS.
4091 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4092 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4093 and init_registers_s390_gs_linux64.
4094
4095 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4096
4097 * linux-s390-low.c (s390_fill_gs): Remove function.
4098 (s390_fill_gsbc): Remove function.
4099 (s390_regsets): Set fill functions for the guarded storage regsets
4100 to NULL.
4101
4102 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4103
4104 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4105 the word size. Add comment.
4106 (s390_get_wordsize): New function.
4107 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4108 pswm with it. Instead, use s390_get_wordsize to determine the
4109 word size first and derive the correct tdesc from that directly.
4110
4111 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * Makefile.in: Include silent-rules.mk.
4114 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4115 (COMPILE): Add ECHO_CXX.
4116 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4117 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4118 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4119 (version-generated.c): Add ECHO_GEN.
4120 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4121 (IPAGENT_COMPILE): Add ECHO_CXX.
4122 (%-generated.c): Add ECHO_REGDAT.
4123
4124 2018-03-14 Tom Tromey <tom@tromey.com>
4125
4126 PR cli/14977:
4127 * ax.c (ax_printf): Special case for NULL.
4128
4129 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4130
4131 * linux-low.c (linux_qxfer_libraries_svr4): Use
4132 xml_escape_text_append.
4133
4134 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4135
4136 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4137
4138 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4139
4140 * server.c (handle_general_set): Remove unnecessary xstrdup.
4141
4142 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4143
4144 * server.c (parse_debug_format_options): Adjust to
4145 delim_string_to_char_ptr_vec changes.
4146 * thread-db.c (thread_db_load_search): Adjust to
4147 dirnames_to_char_ptr_vec changes.
4148
4149 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4150
4151 * target.h (target_enable_btrace, target_disable_btrace)
4152 (target_read_btrace, target_read_btrace_conf): Turn macro into
4153 inline function. Throw error if target method is not defined.
4154 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4155 check for btrace target method. Be prepared to handle exceptions
4156 from btrace target methods.
4157
4158 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4159
4160 * server.c (captured_main): Change order of error message printed
4161 when the current working directory cannot be found.
4162
4163 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4164
4165 * server.c: Include "filenames.h" and "pathstuff.h".
4166 (program_name): Delete variable.
4167 (program_path): New anonymous class.
4168 (get_exec_wrapper): Use "program_path" instead of
4169 "program_name".
4170 (handle_v_run): Likewise.
4171 (captured_main): Likewise.
4172 (process_serial_event): Likewise.
4173
4174 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4175
4176 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4177 (OBJS): Add "pathstuff.o".
4178 * server.c (current_directory): New global variable.
4179 (captured_main): Initialize "current_directory".
4180
4181 2018-02-26 Alan Hayward <alan.hayward@arm.com>
4182
4183 * tdesc.c: Use common/tdesc.h.
4184 * tdesc.h: Likewise.
4185
4186 2018-02-20 Alan Hayward <alan.hayward@arm.com>
4187 Simon Marchi <simon.marchi@ericsson.com>
4188
4189 * Makefile.in: Switch order of make rules.
4190
4191 2018-02-19 Alan Hayward <alan.hayward@arm.com>
4192
4193 * Makefile.in: Add common directory in build.
4194 * configure.ac: Add common reference.
4195 * configure: Regenerate.
4196
4197 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4198
4199 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4200 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4201 * spu-low.c (spu_target_ops): Likewise.
4202 * win32-low.c (win32_target_ops): Likewise.
4203 * server.c (supported_btrace_packets): Report packets unconditionally.
4204 * target.h (target_ops) <supports_btrace>: Remove.
4205 (target_supports_btrace): Remove.
4206
4207 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4208
4209 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4210 (handle_btrace_disable): Change return type to void. Use exceptions
4211 to report errors.
4212 (handle_btrace_general_set): Catch exception and copy message to
4213 return message.
4214
4215 2018-02-08 Tom Tromey <tom@tromey.com>
4216
4217 * linux-low.c (install_software_single_step_breakpoints): Use
4218 make_scoped_restore.
4219 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4220 (do_restore_current_thread_cleanup): Remove.
4221 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4222 declare.
4223
4224 2018-02-08 Tom Tromey <tom@tromey.com>
4225
4226 * mem-break.c (set_raw_breakpoint_at): Use
4227 gdb::unique_xmalloc_ptr.
4228
4229 2018-01-30 Pedro Alves <palves@redhat.com>
4230
4231 PR gdb/13211
4232 * target.c (target_terminal::terminal_state): Rename to ...
4233 (target_terminal::m_terminal_state): ... this.
4234
4235 2018-01-19 James Clarke <jrtc27@jrtc27.com>
4236
4237 * linux-low.c (handle_extended_wait): Surround call to
4238 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4239
4240 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4241
4242 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4243 linux_ptrace_attach_fail_reason_string now returning an
4244 std::string.
4245 (linux_attach): Likewise.
4246 * thread-db.c (attach_thread): Likewise.
4247
4248 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4249
4250 PR gdb/21559
4251 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4252 checking for fs_base/gs_base fields in struct user_regs_struct.
4253 * configure: Regenerate.
4254
4255 2018-01-16 Yao Qi <yao.qi@linaro.org>
4256
4257 PR gdb/18749
4258 * linux-low.c (fetch_register): Call supply_register instead of
4259 error.
4260
4261 2018-01-08 Yao Qi <yao.qi@linaro.org>
4262 Simon Marchi <simon.marchi@ericsson.com>
4263
4264 * Makefile.in (OBS): Remove selftest.o.
4265 * configure.ac: Set srv_selftest_objs if $development is true.
4266 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4267 * configure: Re-generated.
4268 * server.c (captured_main): Wrap variable selftest_filter with
4269 GDB_SELF_TEST.
4270
4271 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4272
4273 * server.c (parse_debug_format_options): Return std::string.
4274 (handle_monitor_command, captured_main): Adjust.
4275
4276 2018-01-05 Pedro Alves <palves@redhat.com>
4277
4278 PR gdb/18653
4279 * server.c (captured_main): Pass quiet=false to
4280 save_original_signals_state.
4281
4282 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4283
4284 * gdbreplay.c (gdbreplay_version): Update copyright year in
4285 version message.
4286 * server.c (gdbserver_version): Likewise.
4287
4288 2017-12-08 Tom Tromey <tom@tromey.com>
4289
4290 * ax.c (ax_printf): Update.
4291
4292 2017-12-07 Yao Qi <yao.qi@linaro.org>
4293
4294 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4295 aarch64_linux_read_description.
4296 * linux-amd64-ipa.c (idx2mask): New array.
4297 (get_ipa_tdesc): Move idx2mask out.
4298 (initialize_low_tracepoint): Initialize target descriptions.
4299 * linux-i386-ipa.c (idx2mask): New array.
4300 (get_ipa_tdesc): Move idx2mask out.
4301 (initialize_low_tracepoint): Initialize target descriptions.
4302
4303 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4304
4305 * tdesc.c (struct tdesc_type): Change return type.
4306 (tdesc_add_flag): Change parameter type.
4307 (tdesc_add_bitfield): Likewise.
4308 (tdesc_add_field): Likewise.
4309 (tdesc_set_struct_size): Likewise.
4310
4311 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4312
4313 * regcache.c (registers_to_string): Remove unused variable.
4314
4315 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4316
4317 * inferiors.c (for_each_inferior_with_data): Remove.
4318 * inferiors.h (for_each_inferior_with_data): Remove.
4319 * server.c (handle_qxfer_threads_worker): Change parameter type.
4320 (handle_qxfer_threads_proper): Use for_each_thread.
4321
4322 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 * inferiors.c (for_each_inferior): Remove.
4325 (clear_inferiors): Use for_each_thread.
4326 * inferiors.h (for_each_inferior): Remove.
4327 * linux-low.c (linux_wait_for_event_filtered): Use
4328 for_each_thread.
4329 (linux_stabilize_threads): Likewise.
4330 * regcache.c (regcache_release): Likewise.
4331 * server.c (gdb_wants_all_threads_stopped): Likewise.
4332 (clear_pending_status_callback): Remove.
4333 (handle_status): Use for_each_thread.
4334 (captured_main): Likewise.
4335 * win32-low.c (child_init_thread_list): Likewise.
4336 (win32_clear_inferiors): Likewise.
4337 (fake_breakpoint_event): Likewise.
4338
4339 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4340
4341 * inferiors.h (find_inferior): Remove.
4342 * inferiors.c (find_inferior): Remove.
4343
4344 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4345
4346 * linux-low.c (resume_status_pending_p): Update comment.
4347 (need_step_over_p): Update comment.
4348
4349 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4350
4351 * linux-low.c (proceed_one_lwp): Return void, change parameter
4352 type.
4353 (unsuspend_and_proceed_one_lwp): Likewise.
4354 (proceed_all_lwps): Use for_each_thread.
4355 (unstop_all_lwps): Likewise.
4356
4357 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4358
4359 * linux-low.c (linux_resume_one_thread): Return void, take
4360 parameter directly.
4361 (linux_resume): Use for_each_thread.
4362
4363 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4364
4365 * linux-low.c (send_sigstop_callback): Return void, change
4366 parameter type. Rename to...
4367 (send_sigstop): ... this.
4368 (suspend_and_send_sigstop_callback): Return void, change parameter
4369 type. Rename to...
4370 (suspend_and_send_sigstop): ... this.
4371 (stop_all_lwps): Use for_each_thread.
4372
4373 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * linux-low.c (lwp_running): Return bool, remove unused
4376 argument.
4377 (linux_stabilize_threads): Use find_thread.
4378
4379 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4380
4381 * linux-low.c (select_singlestep_lwp_callback): Remove.
4382 (count_events_callback): Remove.
4383 (select_event_lwp_callback): Remove.
4384 (select_event_lwp): Use find_thread/for_each_thread.
4385
4386 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4387
4388 * linux-low.c (not_stopped_callback): Return bool, take filter
4389 argument directly.
4390 (linux_wait_for_event_filtered): Use find_thread.
4391 (linux_wait_1): Likewise.
4392
4393 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4394
4395 * linux-low.c (same_lwp): Remove.
4396 (find_lwp_pid): Use find_thread.
4397
4398 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4399
4400 * linux-low.c (delete_lwp_callback): Remove.
4401 (linux_mourn): Use for_each_thread.
4402
4403 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4404
4405 * linux-low.c (linux_detach_lwp_callback): Return void, remove
4406 args parameter, don't check for pid.
4407 (linux_detach): Use for_each_thread.
4408
4409 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4410
4411 * linux-low.c (struct counter): Remove.
4412 (second_thread_of_pid_p): Remove.
4413 (last_thread_of_process_p): Use find_thread.
4414
4415 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * inferiors.c (find_inferior_in_random): Remove.
4418 * inferiors.h (find_inferior_in_random): Remove.
4419 * linux-low.c (status_pending_p_callback): Return bool, accept
4420 parameter ptid directly.
4421 (linux_wait_for_event_filtered): Use find_thread_in_random.
4422 (linux_wait_1): Likewise.
4423
4424 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4425
4426 * inferiors.c (find_inferior_id): Remove.
4427 (find_thread_ptid): Move implemention from find_inferior_id to
4428 here.
4429 * inferiors.h (find_inferior_id): Remove.
4430 * server.c (handle_status): Use find_thread_ptid.
4431 (process_serial_event): Likewise.
4432 * thread-db.c (find_one_thread): Likewise.
4433 (thread_db_thread_handle): Likewise.
4434 * win32-low.c (thread_rec): Likewise.
4435 (child_delete_thread): Likewise.
4436 (win32_thread_alive): Likewise.
4437 (get_child_debug_event): Likewise.
4438
4439 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4440
4441 * linux-mips-low.c (update_watch_registers_callback): Return
4442 void, remove pid_p parameter, don't check for pid.
4443 (mips_insert_point, mips_remove_point): Use for_each_thread.
4444
4445 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4446
4447 * lynx.low (lynx_delete_thread_callback): Remove.
4448 (lynx_mourn): Use for_each_thread.
4449
4450 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4451
4452 * regcache.c (regcache_invalidate_one): Remove.
4453 (regcache_invalidate_pid): use for_each_thread.
4454
4455 2017-11-26 Tom Tromey <tom@tromey.com>
4456
4457 * linux-low.c (linux_create_inferior): Update.
4458
4459 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4460
4461 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4462
4463 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4464
4465 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
4466 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4467 * linux-aarch64-tdesc-selftest.c: New file.
4468 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4469
4470 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4471
4472 * configure.srv: Add new file.
4473 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4474 * linux-aarch64-tdesc-selftest.c: New file.
4475 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4476
4477 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4478
4479 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
4480 * linux-aarch64-low.c (initialize_low_arch): Remove init.
4481 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
4482
4483 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4484
4485 * configure.srv: Add new files.
4486 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
4487 aarch64_linux_read_description.
4488 * linux-aarch64-low.c (aarch64_linux_read_description):
4489 Merge with aarch64_arch_setup.
4490 (aarch64_arch_setup): Call aarch64_linux_read_description.
4491 * linux-aarch64-tdesc.c: New file.
4492 * linux-aarch64-tdesc.h: New file.
4493
4494 2017-11-24 Yao Qi <yao.qi@linaro.org>
4495
4496 * configure.srv: Set $srv_regobj for tic6x-linux.
4497 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
4498 (tic6x_read_description): Move some code to tic6x_arch_setup.
4499 (tic6x_tdesc_test): New function.
4500 (initialize_low_arch): Call selftests::register_test.
4501
4502 2017-11-22 Yao Qi <yao.qi@linaro.org>
4503
4504 * remote-utils.c (prepare_resume_reply): Use memcpy.
4505
4506 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4507
4508 * linux-low.c (kill_one_lwp_callback): Return void, take
4509 argument directly, don't filter on pid.
4510 (linux_kill): Use for_each_thread.
4511
4512 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4513
4514 * linux-low.c (need_step_over_p): Return bool, remove dummy
4515 argument.
4516 (linux_resume, proceed_all_lwps): Use find_thread.
4517
4518 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4519
4520 * linux-low.c (resume_status_pending_p): Return bool, remove
4521 flag_p argument.
4522 (linux_resume): Use find_thread.
4523
4524 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4525
4526 * linux-low.c (struct thread_resume_array): Remove.
4527 (linux_set_resume_request): Return void, take arguments
4528 directly.
4529 (linux_resume): Use for_each_thread.
4530
4531 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4532
4533 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4534 return bool, remove data argument.
4535 (linux_stabilize_threads): Use find_thread.
4536
4537 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4538
4539 * linux-low.c (unsuspend_one_lwp): Remove.
4540 (unsuspend_all_lwps): Use for_each_thread, inline code from
4541 unsuspend_one_lwp.
4542
4543 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4544
4545 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4546 * linux-low.c (struct iterate_over_lwps_args): Remove.
4547 (iterate_over_lwps_filter): Remove.
4548 (iterate_over_lwps): Use find_thread.
4549
4550 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4551
4552 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4553 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4554 code from reset_lwp_ptrace_options_callback.
4555
4556 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4557
4558 * linux-arm-low.c (struct update_registers_data): Remove.
4559 (update_registers_callback): Return void, take arguments
4560 directly, don't check thread's pid.
4561 (arm_insert_point, arm_remove_point): Use for_each_thread.
4562
4563 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4564
4565 * win32-low.c (continue_one_thread): Return void, take argument
4566 directly.
4567 (child_continue): Use for_each_thread.
4568
4569 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4570
4571 * win32-i386-low.c (update_debug_registers_callback): Rename
4572 to ...
4573 (update_debug_registers): ... this, return void, remove pid_p arg.
4574 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4575
4576 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4577
4578 * inferiors.h (struct process_info): Add constructor, initialize
4579 fields..
4580 <syscalls_to_catch>: Change type to std::vector<int>.
4581 * inferiors.c (add_process): Allocate process_info with new.
4582 (remove_process): Free process_info with delete.
4583 * linux-low.c (handle_extended_wait): Adjust.
4584 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4585 * server.c (handle_general_set): Adjust.
4586
4587 2017-11-16 Pedro Alves <palves@redhat.com>
4588
4589 * remote-utils.c (remote_close): Block SIGIO signals instead of
4590 uninstalling the SIGIO handler.
4591
4592 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4593
4594 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4595
4596 2017-11-16 Yao Qi <yao.qi@linaro.org>
4597
4598 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4599 (tic6x_store_gregset): Likewise.
4600 (tic6x_usrregs_info): Move it up.
4601
4602 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4603
4604 * Makefile.in: Update arch rules.
4605 * configure.srv: Explicitly mark arch/ files.
4606
4607 2017-11-13 Andreas Schwab <schwab@suse.de>
4608
4609 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4610 function.
4611 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4612
4613 2017-11-06 Pedro Alves <palves@redhat.com>
4614
4615 * config.in, configure: Regenerate.
4616
4617 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4618
4619 * target.c (struct thread_search): Remove.
4620 (thread_search_callback): Remove.
4621 (prepare_to_access_memory): Use for_each_thread instead of
4622 find_inferior. Inline code from thread_search_callback.
4623
4624 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4625
4626 * server.c (struct visit_actioned_threads_data): Remove.
4627 (visit_actioned_threads): Change prototype to take arguments
4628 directly.
4629 (resume): Use find_thread instead of find_inferior.
4630
4631 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4632
4633 * server.c (queue_stop_reply_callback): Change prototype, return
4634 void.
4635 (find_status_pending_thread_callback): Remove.
4636 (handle_status): Replace find_inferior with find_thread and
4637 for_each_thread.
4638
4639 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4640
4641 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4642 with REGNO.
4643 (aarch64_store_gregset): Likewise.
4644 (aarch64_fill_fpregset): Likewise.
4645 (aarch64_store_fpregset): Likewise.
4646
4647 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4648
4649 * gdbthread.h (find_thread, for_each_thread): New functions.
4650 * inferiors.c (thread_of_pid): Remove.
4651 (find_any_thread_of_pid): Use find_thread.
4652 * linux-low.c (num_lwps): Use for_each_thread.
4653
4654 2017-10-17 Yao Qi <yao.qi@linaro.org>
4655
4656 * Makefile.in: Remove one rule.
4657 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4658
4659 2017-10-17 Yao Qi <yao.qi@linaro.org>
4660
4661 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4662 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4663
4664 2017-10-17 Yao Qi <yao.qi@linaro.org>
4665
4666 * configure.srv: Rename arm.o with arch/arm.o.
4667
4668 2017-10-17 Yao Qi <yao.qi@linaro.org>
4669
4670 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4671 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4672 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4673 (arch-i386.o, arch-amd64.o): Remove rules.
4674 (arch/%.o): New rule.
4675 Update POSTCOMPILE and COMPILE.pre.
4676 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4677 * configure: Re-generated.
4678 * configure.srv: Replace arch-i386.o with arch/i386.o.
4679 Replace arch-amd64.o with arch/amd64.o.
4680
4681 2017-10-16 Yao Qi <yao.qi@linaro.org>
4682
4683 * configure: Regenerated.
4684
4685 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4686
4687 * inferiors.h: (struct inferior_list): Remove.
4688 (struct inferior_list_entry); Remove.
4689 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4690 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4691 get_first_inferior): Remove.
4692 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4693 find_inferior_id, find_inferior_in_random): Change signature.
4694 * inferiors.c (all_threads): Change type to
4695 std::list<thread_info *>.
4696 (get_thread): Remove macro.
4697 (find_inferior, find_inferior_id): Change signature, implement
4698 using find_thread.
4699 (find_inferior_in_random): Change signature, implement using
4700 find_thread_in_random.
4701 (for_each_inferior, for_each_inferior_with_data): Change
4702 signature, implement using for_each_thread.
4703 (add_inferior_to_list, remove_inferior): Remove.
4704 (add_thread, get_first_thread, thread_of_pid,
4705 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4706 (get_first_inferior, one_inferior_p, clear_inferior_list):
4707 Remove.
4708 (clear_inferiors, get_thread_process): Update.
4709 * gdbthread.h: Include <list>.
4710 (struct thread_info) <entry>: Remove field.
4711 <id>: New field.
4712 (all_threads): Change type to std::list<thread_info *>.
4713 (get_first_inferior): Add doc.
4714 (find_thread, for_each_thread, find_thread_in_random): New
4715 functions.
4716 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4717 * linux-arm-low.c (update_registers_callback): Update.
4718 * linux-low.c (second_thread_of_pid_p): Update.
4719 (kill_one_lwp_callback, linux_detach_lwp_callback,
4720 delete_lwp_callback, status_pending_p_callback, same_lwp,
4721 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4722 iterate_over_lwps, not_stopped_callback,
4723 resume_stopped_resumed_lwps, count_events_callback,
4724 select_singlestep_lwp_callback, select_event_lwp_callback,
4725 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4726 suspend_and_send_sigstop_callback, wait_for_sigstop,
4727 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4728 lwp_running, linux_set_resume_request, resume_status_pending_p,
4729 need_step_over_p, start_step_over, linux_resume_one_thread,
4730 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4731 reset_lwp_ptrace_options_callback): Update.
4732 * linux-mips-low.c (update_watch_registers_callback): Update.
4733 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4734 Update.
4735 (free_register_cache_thread_one): Remove.
4736 (regcache_release): Update.
4737 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4738 handle_qxfer_threads_worker): Update.
4739 (handle_query): Update, use list iterator.
4740 (visit_actioned_threads, handle_pending_status,
4741 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4742 clear_pending_status_callback, set_pending_status_callback,
4743 find_status_pending_thread_callback, handle_status,
4744 process_serial_event): Update.
4745 * target.c (thread_search_callback): Update.
4746 * thread-db.c (thread_db_get_tls_address): Update.
4747 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4748 Update.
4749 * win32-i386-low.c (update_debug_registers_callback): Update.
4750 * win32-low.c (delete_thread_info, child_delete_thread,
4751 continue_one_thread, suspend_one_thread,
4752 get_child_debug_event): Adjust.
4753
4754 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4755
4756 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4757 * inferiors.h: Include <list>.
4758 (struct process_info) <entry>: Remove field.
4759 <pid>: New field.
4760 (pid_of): Change macro to function.
4761 (ptid_of, lwpid_of): Remove macro.
4762 (all_processes): Change type to std::list<process_info *>.
4763 (ALL_PROCESSES): Remove macro.
4764 (for_each_process, find_process): New function.
4765 * inferiors.c (all_processes): Change type to
4766 std::list<process_info *>.
4767 (find_thread_process): Adjust.
4768 (add_process): Likewise.
4769 (remove_process): Likewise.
4770 (find_process_pid): Likewise.
4771 (get_first_process): Likewise.
4772 (started_inferior_callback): Remove.
4773 (have_started_inferiors_p): Adjust.
4774 (attached_inferior_callback): Remove.
4775 (have_attached_inferiors_p): Adjust.
4776 * linux-low.c (check_zombie_leaders): Likewise.
4777 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4778 (x86_linux_update_xmltarget): Adjust.
4779 * server.c (handle_query): Likewise.
4780 (gdb_reattached_process): Remove.
4781 (handle_status): Adjust.
4782 (kill_inferior_callback): Likewise.
4783 (detach_or_kill_inferior): Remove.
4784 (print_started_pid): Likewise.
4785 (print_attached_pid): Likewise.
4786 (detach_or_kill_for_exit): Update.
4787 (process_serial_event): Likewise.
4788 * linux-arm-low.c (arm_new_fork): Likewise.
4789
4790 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4791
4792 * dll.h: Include <list>.
4793 (struct dll_info): Add constructor.
4794 <entry>: Remove field.
4795 (all_dlls): Change type to std::list<dll_info>.
4796 * dll.c: Include <algorithm>.
4797 (get_dll): Remove macro.
4798 (all_dlls): Change type to std::list<dll_info *>.
4799 (free_one_dll): Remove.
4800 (match_dll): Likewise.
4801 (loaded_dll): Adjust.
4802 (unloaded_dll): Adjust to all_dlls type change, use
4803 std::find_if. Inline code from match_dll.
4804 (clear_dlls): Adjust to all_dlls type change.
4805 * server.c (emit_dll_description): Remove.
4806 (handle_qxfer_libraries): Adjust to all_dlls type change,
4807 integrate emit_dll_description's functionality.
4808
4809 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4810
4811 * linux-low.h (struct linux_target_ops) <delete_process>: New
4812 field.
4813 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4814 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4815 (struct linux_target_ops): Add delete_process callback.
4816 * linux-arm-low.c (arm_delete_process): New.
4817 (struct linux_target_ops): Add delete_process callback.
4818 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4819 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4820 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4821 * linux-mips-low.c (mips_linux_delete_process): New.
4822 (struct linux_target_ops): Add delete_process callback.
4823 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4824 * linux-s390-low.c (struct linux_target_ops): Likewise.
4825 * linux-sh-low.c (struct linux_target_ops): Likewise.
4826 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4827 * linux-tile-low.c (struct linux_target_ops): Likewise.
4828 * linux-x86-low.c (x86_linux_delete_process): New.
4829 (struct linux_target_ops): Add delete_process callback.
4830 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4831
4832 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4833
4834 * linux-aarch64-low.c (the_low_target): Add thread delete
4835 callback.
4836 * linux-arm-low.c (arm_delete_thread): New function.
4837 (the_low_target): Add thread delete callback.
4838 * linux-bfin-low.c (the_low_target): Likewise.
4839 * linux-crisv32-low.c (the_low_target): Likewise.
4840 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4841 set.
4842 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4843 field.
4844 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4845 * linux-mips-low.c (mips_linux_delete_thread): New function.
4846 (the_low_target): Add thread delete callback.
4847 * linux-ppc-low.c (the_low_target): Likewise.
4848 * linux-s390-low.c (the_low_target): Likewise.
4849 * linux-sh-low.c (the_low_target): Likewise.
4850 * linux-tic6x-low.c (the_low_target): Likewise.
4851 * linux-tile-low.c (the_low_target): Likewise.
4852 * linux-x86-low.c (the_low_target): Likewise.
4853 * linux-xtensa-low.c (the_low_target): Likewise.
4854
4855 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4856
4857 * win32-low.c: Include "common-inferior.h".
4858
4859 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4860
4861 * inferiors.c (set_inferior_cwd): New function.
4862 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4863 (handle_query): Inform that QSetWorkingDir is supported.
4864 * win32-low.c (create_process): Pass the inferior's cwd to
4865 CreateProcess.
4866
4867 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4868
4869 * inferiors.c (current_inferior_cwd): New global variable.
4870 (get_inferior_cwd): New function.
4871 * inferiors.h (struct process_info) <cwd>: New field.
4872
4873 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4874
4875 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4876 (OBS): Add gdb_tilde_expand.o.
4877
4878 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4879
4880 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4881 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4882
4883 2017-09-29 Pedro Alves <palves@redhat.com>
4884
4885 * ax.c (gdb_parse_agent_expr): Constify.
4886 * ax.h (gdb_parse_agent_expr): Constify.
4887 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4888 Constify.
4889 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4890 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4891 * remote-utils.h (read_ptid): Constify.
4892 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4893 (process_point_options, process_serial_event): Constify.
4894 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4895 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4896 (cmd_qtbuffer): Constify.
4897
4898 2017-09-29 Pedro Alves <palves@redhat.com>
4899
4900 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4901 fails.
4902
4903 2017-09-29 Pedro Alves <palves@redhat.com>
4904
4905 * linux-low.c (handle_extended_wait): Pass parent thread instead
4906 of process to thread_db_notice_clone.
4907 * linux-low.h (thread_db_notice_clone): Replace parent process
4908 parameter with parent thread parameter.
4909 * thread-db.c (find_one_thread): Add comment.
4910 (thread_db_notice_clone): Replace parent process parameter with
4911 parent thread parameter. Temporarily switch to the parent thread.
4912
4913 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4914
4915 * gdbthread.h: Include "common-gdbthread.h".
4916 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4917 "if" when validating the ptid.
4918 * remote-utils.c: Include "gdbthread.h".
4919 (prepare_resume_reply): Use "switch_to_thread".
4920 * target.c (done_accessing_memory): Likewise.
4921
4922 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4923
4924 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4925 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4926 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4927 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4928 s390x-gs-linux64-ipa.o to ipa_obj.
4929 * linux-s390-low.c (HWCAP_S390_GS): New define.
4930 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4931 New functions.
4932 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4933 (s390_arch_setup): Check for guarded-storage support and choose
4934 appropriate tdesc.
4935 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4936 init_registers_s390x_gs_linux64.
4937 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4938 enum value.
4939 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4940 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4941
4942 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4943
4944 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4945
4946 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4947
4948 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4949 (thread_db_thread_handle): Declare.
4950 * linux-low.c (linux_target_ops): Initialize thread_handle.
4951 * server.c (handle_qxfer_threads_worker): Add support for
4952 "handle" attribute.
4953 * target.h (struct target_ops): Add new function pointer,
4954 thread_handle.
4955 (target_thread_handle): Define.
4956 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4957 field in lwp.
4958 (thread_db_thread_handle): New function.
4959
4960 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4961
4962 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4963 * linux-low.h (thread_db_notice_clone): Declare.
4964 * thread-db.c (thread_db_notice_clone): New function.
4965
4966 2017-09-21 Pedro Alves <palves@redhat.com>
4967
4968 * server.c (gdb_read_memory, handle_status, process_serial_event)
4969 (handle_serial_event, handle_target_event): Adjust to
4970 set_desired_thread prototype change.
4971 * target.c (set_desired_thread): Remove 'use_general' parameter
4972 and adjust.
4973 * target.h (set_desired_thread): Remove 'use_general' parameter.
4974
4975 2017-09-20 Tom Tromey <tom@tromey.com>
4976
4977 * target.c (target_terminal::terminal_state): Define.
4978 (target_terminal::init): Rename from target_terminal_init.
4979 (target_terminal::inferior): Rename from
4980 target_terminal_inferior.
4981 (target_terminal::ours): Rename from target_terminal_ours.
4982 (target_terminal::ours_for_output, target_terminal::info): New.
4983
4984 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4985
4986 * server.c (accumulate_file_name_length): Remove.
4987 (emit_dll_description): Adjust to std::string change.
4988 (handle_qxfer_libraries): Use std::string to hold document.
4989
4990 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4991
4992 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4993 return type of xml_escape_text.
4994 * server.c (emit_dll_description): Likewise.
4995
4996 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4997
4998 * server.c (captured_main): Accept argument for --selftest.
4999 Update run_tests call.
5000 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5001 when registering selftests.
5002
5003 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5004
5005 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5006 instead of "VEC" for "target_desc.reg_defs".
5007 (regcache_cpy): Likewise.
5008 (registers_to_string): Likewise.
5009 (registers_from_string): Likewise.
5010 (find_regno): Likewise.
5011 (supply_regblock): Likewise.
5012 (regcache_raw_read_unsigned): Likewise.
5013 * tdesc.c (init_target_desc): Likewise.
5014 (tdesc_create_reg): Likewise.
5015 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5016 (struct target_desc) <reg_defs>: Convert to "std::vector".
5017 (target_desc): Do not initialize "reg_defs".
5018 (~target_desc): Update code to use "std::vector" instead of "VEC"
5019 for "target_desc.reg_defs".
5020 (operator==): Likewise.
5021
5022 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5023
5024 * inferiors.h (thread_to_gdb_id): Remove.
5025 * inferiors.c (thread_to_gdb_id): Remove.
5026 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5027 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5028 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5029 Likewise.
5030 * nto-low.c (nto_fetch_registers, nto_store_registers,
5031 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5032
5033 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5034
5035 * inferiors.h (gdb_id_to_thread_id): Remove.
5036 * inferiors.c (gdb_id_to_thread_id): Remove.
5037 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5038 removal. Move pid declaration closer to where it's used.
5039
5040 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5041
5042 * server.c (handle_detach): New function.
5043 (process_serial_event): Move code out, call handle_detach.
5044
5045 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5046
5047 * server.c (require_running): Rename to ...
5048 (require_running_or_return): ... this ...
5049 (require_running_or_break): ... and this.
5050 (handle_query, process_serial_event): Adjust.
5051
5052 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5053
5054 * linux-low.c (linux_set_resume_request): Remove unused
5055 variables.
5056
5057 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * server.c (first_thread_of): Remove.
5060 (process_serial_event): Replace usage of first_thread_of with
5061 find_any_thread_of_pid.
5062 * tracepoint.c (same_process_p): Remove.
5063 (gdb_agent_about_to_close): Replace usage of same_process_p with
5064 find_any_thread_of_pid.
5065 * linux-x86-low.c (same_process_callback): Remove.
5066 (x86_arch_setup_process_callback): Replace usage of
5067 same_process_callback with find_any_thread_of_pid.
5068 * thread-db.c (any_thread_of): Remove.
5069 (switch_to_process): Replace usage of any_thread_of with
5070 find_any_thread_of_pid.
5071 * inferiors.c (thread_pid_matches_callback): Remove.
5072 (find_thread_process): Adjust to use find_any_thread_of_pid.
5073
5074 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5075
5076 * regcache.c (get_thread_regcache): Guard calls to "memset"
5077 with "!VEC_empty".
5078
5079 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5080
5081 * linux-low.c (handle_extended_wait): Use
5082 "allocate_target_description" instead of "XNEW".
5083 * linux-x86-low.c (initialize_low_arch): Likewise.
5084
5085 2017-09-05 Yao Qi <yao.qi@linaro.org>
5086
5087 * configure.srv (srv_i386_regobj): Remove.
5088 (srv_amd64_regobj): Remove.
5089 (srv_regobj): Set it to "" for x86 non-linux targets.
5090 * linux-x86-tdesc.c (i386_linux_read_description):
5091 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5092 (init_registers_i386): Remove the declaration.
5093 (tdesc_i386): Remove the declaration.
5094 (lynx_i386_arch_setup): Call i386_create_target_description.
5095 * nto-x86-low.c: Likewise.
5096 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5097 [!__x86_64__]: include arch/i386.h.
5098 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5099
5100 2017-09-05 Yao Qi <yao.qi@linaro.org>
5101
5102 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5103 i386/amd64-XXX-linux from it.
5104
5105 2017-09-05 Yao Qi <yao.qi@linaro.org>
5106
5107 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5108 false.
5109 (ipa_amd64_linux_regobj): Remove.
5110 (ipa_x32_linux_regobj): Remove.
5111
5112 2017-09-05 Yao Qi <yao.qi@linaro.org>
5113
5114 * Makefile.in (arch-amd64.o): New rule.
5115 * configure.srv: Append arch-amd64.o.
5116 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5117 (get_ipa_tdesc): Call amd64_linux_read_description.
5118 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5119 and init_registers_amd64_XXX.
5120 * linux-x86-low.c (x86_linux_read_description): Call
5121 amd64_linux_read_description.
5122 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5123 (initialize_low_arch): Don't call init_registers_x32_XXX and
5124 init_registers_amd64_XXX.
5125 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5126 and tdesc_amd64_XXX.
5127 [__x86_64__] (amd64_tdesc_test): New function.
5128 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5129 and init_registers_amd64_XXX.
5130 * linux-x86-tdesc.c: Include arch/amd64.h.
5131 (xcr0_to_tdesc_idx): New function.
5132 (i386_linux_read_description): New function.
5133 (amd64_get_ipa_tdesc_idx): New function.
5134 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5135 (amd64_get_ipa_tdesc): Declare.
5136
5137 2017-09-05 Yao Qi <yao.qi@linaro.org>
5138
5139 * configure.srv (srv_i386_linux_xmlfiles): Remove
5140 i386/i386-XXX-linux.xml from it.
5141
5142 2017-09-05 Yao Qi <yao.qi@linaro.org>
5143
5144 * configure.srv: Set srv_i386_linux_regobj empty if $development
5145 is false.
5146 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5147 initialize_low_tdesc.
5148 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5149 with #if initialize_low_tdesc.
5150 * linux-x86-tdesc-selftest.c: New file.
5151 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5152
5153 2017-09-05 Yao Qi <yao.qi@linaro.org>
5154
5155 * Makefile.in (arch-i386.o): New rule.
5156 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5157 (x86_64-*-linux*): Likewise.
5158 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5159 include arch/i386.h.
5160 (i386_linux_read_description): Remove code and call
5161 i386_create_target_description.
5162 * tdesc.c (allocate_target_description): New function.
5163 * tdesc.h (set_tdesc_architecture): Remove declaration.
5164 (set_tdesc_osabi): Likewise.
5165
5166 2017-09-05 Yao Qi <yao.qi@linaro.org>
5167
5168 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5169 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5170 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5171 .xmltarget.
5172 * server.c (get_features_xml): Call tdesc_get_features_xml.
5173 * tdesc.c (set_tdesc_architecture): New function.
5174 (set_tdesc_osabi): New function.
5175 (tdesc_get_features_xml): New function.
5176 (tdesc_create_feature): Add an argument.
5177 * tdesc.h (struct target_desc) <features>: New field.
5178 <arch, osabi>: New field.
5179 (~target_desc): xfree features, arch, and osabi.
5180 (target_desc::oerator==): Don't compare .xmltarget.
5181 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5182 (set_tdesc_osabi): Likewise.
5183 (tdesc_get_features_xml): Likewise.
5184
5185 2017-09-05 Yao Qi <yao.qi@linaro.org>
5186
5187 * linux-x86-tdesc.c: Include selftest.h.
5188 (i386_tdesc_test): New function.
5189 (initialize_low_tdesc): Call selftests::register_test.
5190 * tdesc.h: Include regdef.h.
5191 (target_desc): Override operator == and !=.
5192
5193 2017-09-05 Yao Qi <yao.qi@linaro.org>
5194
5195 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5196 (ipa_obj): Likewise.
5197 * linux-i386-ipa.c: Include common/x86-xstate.h
5198 (get_ipa_tdesc): Call i386_linux_read_description.
5199 (initialize_low_tracepoint): Don't call init_registers_XXX
5200 functions, call initialize_low_tdesc instead.
5201 * linux-x86-low.c (x86_linux_read_description): Call
5202 i386_linux_read_description.
5203 (initialize_low_arch): Don't call init_registers_i386_XXX
5204 functions, call initialize_low_tdesc.
5205 * linux-x86-tdesc.c: New file.
5206 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5207 (i386_get_ipa_tdesc_idx): Declare.
5208 (i386_get_ipa_tdesc): Declare.
5209 (initialize_low_tdesc): Declare.
5210
5211 2017-09-05 Yao Qi <yao.qi@linaro.org>
5212
5213 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5214 instead of 0.
5215
5216 2017-09-05 Yao Qi <yao.qi@linaro.org>
5217
5218 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5219 * regcache.c (get_thread_regcache): Use VEC_length.
5220 (init_register_cache): Likewise.
5221 (regcache_cpy): Likewise.
5222 (registers_to_string): Iterate reg_defs via VEC_iterate.
5223 (find_regno): Likewise.
5224 (find_register_by_number): Use VEC_index.
5225 (register_size): Call find_register_by_number.
5226 (register_data): Call find_register_by_number.
5227 (supply_regblock): Use VEC_length.
5228 (regcache_raw_read_unsigned): Likewise.
5229 * tdesc.c (init_target_desc): Iterate reg_defs via
5230 VEC_iterate.
5231 (default_description): Update initializer.
5232 (copy_target_description): Don't update field num_registers.
5233 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5234 <num_registers>: Remove.
5235
5236 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5237
5238 * Makefile.in (.SECONDARY): Define target.
5239
5240 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5241
5242 * linux-low.c (linux_wait_1): Adjust.
5243 * server.c (queue_stop_reply_callback): Adjust.
5244
5245 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5246
5247 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5248 QEnvironmentUnset and QEnvironmentReset packets.
5249 (handle_query): Inform remote that QEnvironmentHexEncoded,
5250 QEnvironmentUnset and QEnvironmentReset are supported.
5251
5252 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5253
5254 * inferiors.h (inferior_target_data): Rename to ...
5255 (thread_target_data): ... this.
5256 (inferior_regcache_data): Rename to ...
5257 (thread_regcache_data): ... this.
5258 (set_inferior_regcache_data): Rename to ...
5259 (set_thread_regcache_data): ... this.
5260 * inferiors.c (inferior_target_data): Rename to ...
5261 (thread_target_data): ... this.
5262 (inferior_regcache_data): Rename to ...
5263 (thread_regcache_data): ... this.
5264 (set_inferior_regcache_data): Rename to ...
5265 (set_thread_regcache_data): ... this.
5266 (free_one_thread): Update.
5267 * linux-low.h (get_thread_lwp): Update.
5268 * regcache.c (get_thread_regcache): Update.
5269 (regcache_invalidate_thread): Update.
5270 (free_register_cache_thread): Update.
5271 * win32-i386-low.c (update_debug_registers_callback): Update.
5272 (win32_get_current_dr): Update.
5273 * win32-low.c (thread_rec): Update.
5274 (delete_thread_info): Update.
5275 (continue_one_thread): Update.
5276 (suspend_one_thread): Update.
5277
5278 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5279
5280 * inferiors.c (set_inferior_target_data): Remove.
5281 * inferiors.h (set_inferior_target_data): Remove.
5282
5283 2017-08-18 Yao Qi <yao.qi@linaro.org>
5284
5285 * Makefile.in (OBS): Add selftest.o.
5286 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5287 * configure, config.in: Re-generated.
5288 * server.c: Include common/sefltest.h.
5289 (captured_main): Handle option --selftest.
5290
5291 2017-08-09 Yao Qi <yao.qi@linaro.org>
5292
5293 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5294 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5295 i386-avx-mpx.o and i386-mmx.o.
5296 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5297 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5298 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5299 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
5300 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
5301 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
5302 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
5303 i386/amd64-avx-mpx.xml.
5304
5305 2017-08-09 Yao Qi <yao.qi@linaro.org>
5306
5307 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
5308 and x32-avx-avx512.o.
5309 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
5310 i386/x32-avx-avx512.xml.
5311
5312 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5313
5314 * tracepoint.h (enum class fast_tpoint_collect_result): New
5315 enumeration.
5316 (fast_tracepoint_collecting): Change return type to
5317 fast_tpoint_collect_result.
5318 * tracepoint.c (fast_tracepoint_collecting): Likewise.
5319 * linux-low.h: Include tracepoint.h.
5320 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
5321 fast_tpoint_collect_result.
5322 * linux-low.c (handle_tracepoints): Adjust.
5323 (linux_fast_tracepoint_collecting): Change return type to
5324 fast_tpoint_collect_result.
5325 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
5326 linux_wait_1, stuck_in_jump_pad_callback,
5327 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
5328 proceed_one_lwp): Adjust to type change.
5329
5330 2017-07-10 Yao Qi <yao.qi@linaro.org>
5331
5332 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5333
5334 2017-06-29 Yao Qi <yao.qi@linaro.org>
5335
5336 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5337 Remove.
5338 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5339
5340 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5341
5342 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5343
5344 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5345
5346 * linux-low.c (linux_create_inferior): Adjust code to access the
5347 environment information via 'gdb_environ' class.
5348 * lynx-low.c (lynx_create_inferior): Likewise.
5349 * server.c (our_environ): Make it an instance of 'gdb_environ'.
5350 (get_environ): Return a pointer to 'our_environ'.
5351 (captured_main): Initialize 'our_environ'.
5352 * server.h (get_environ): Adjust prototype.
5353 * spu-low.c (spu_create_inferior): Adjust code to access the
5354 environment information via 'gdb_environ' class.
5355
5356 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5357
5358 * linux-low.c (linux_read_memory, linux_write_memory): Remove
5359 usage of "register" keyword.
5360
5361 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5362
5363 * configure: Re-generate.
5364
5365 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5366
5367 * configure: Re-generate.
5368
5369 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5370
5371 * Makefile.in (COMPILE.pre): Add "-x c++".
5372
5373 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
5374
5375 * fork-child.c: Conditionally include <signal.h>.
5376
5377 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5378
5379 * server.c (handle_general_set): Handle new packet
5380 "QStartupWithShell".
5381 (handle_query): Add "QStartupWithShell" to the list of supported
5382 packets.
5383 (gdbserver_usage): Add help text explaining the
5384 new "--startup-with-shell" and "--no-startup-with-shell" CLI
5385 options.
5386 (captured_main): Recognize and act upon the presence of the new
5387 CLI options.
5388
5389 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5390 Pedro Alves <palves@redhat.com>
5391
5392 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
5393 * configure: Regenerate.
5394 * configure.srv (srv_linux_obj): Add "fork-child.o" and
5395 "fork-inferior.o".
5396 (i[34567]86-*-lynxos*): Likewise.
5397 (spu*-*-*): Likewise.
5398 * fork-child.c: New file.
5399 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
5400 and "environ.h".
5401 (linux_ptrace_fun): New function.
5402 (linux_create_inferior): Adjust function prototype to reflect
5403 change on "target.h". Adjust function code to use
5404 "fork_inferior".
5405 (linux_request_interrupt): Delete "signal_pid".
5406 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5407 (lynx_ptrace_fun): New function.
5408 (lynx_create_inferior): Adjust function prototype to reflect
5409 change on "target.h". Adjust function code to use
5410 "fork_inferior".
5411 * nto-low.c (nto_create_inferior): Adjust function prototype and
5412 code to reflect change on "target.h". Update comments.
5413 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
5414 "common-terminal.h" and "environ.h".
5415 (terminal_fd): Moved to fork-child.c.
5416 (old_foreground_pgrp): Likewise.
5417 (restore_old_foreground_pgrp): Likewise.
5418 (last_status): Make it global.
5419 (last_ptid): Likewise.
5420 (our_environ): New variable.
5421 (startup_with_shell): Likewise.
5422 (program_name): Likewise.
5423 (program_argv): Rename to...
5424 (program_args): ...this.
5425 (wrapper_argv): New variable.
5426 (start_inferior): Delete function.
5427 (get_exec_wrapper): New function.
5428 (get_exec_file): Likewise.
5429 (get_environ): Likewise.
5430 (prefork_hook): Likewise.
5431 (post_fork_inferior): Likewise.
5432 (postfork_hook): Likewise.
5433 (postfork_child_hook): Likewise.
5434 (handle_v_run): Update code to deal with arguments coming from the
5435 remote host. Update calls from "start_inferior" to
5436 "create_inferior".
5437 (captured_main): Likewise. Initialize environment variable. Call
5438 "have_job_control".
5439 * server.h (post_fork_inferior): New prototype.
5440 (get_environ): Likewise.
5441 (last_status): Declare.
5442 (last_ptid): Likewise.
5443 (signal_pid): Likewise.
5444 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5445 (spu_ptrace_fun): New function.
5446 (spu_create_inferior): Adjust function prototype to reflect change
5447 on "target.h". Adjust function code to use "fork_inferior".
5448 * target.c (target_terminal_init): New function.
5449 (target_terminal_inferior): Likewise.
5450 (target_terminal_ours): Likewise.
5451 * target.h: Include <vector>.
5452 (struct target_ops) <create_inferior>: Update prototype.
5453 (create_inferior): Update macro.
5454 * utils.c (gdb_flush_out_err): New function.
5455 * win32-low.c (win32_create_inferior): Adjust function prototype
5456 and code to reflect change on "target.h".
5457
5458 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5459
5460 * inferiors.c (switch_to_thread): New function.
5461
5462 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5463
5464 * Makefile.in (SFILE): Add "common/job-control.c".
5465 (OBS): Add "job-control.o".
5466
5467 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5468
5469 * Makefile: Remove "@host_makefile_frag@".
5470
5471 2017-05-05 Pedro Alves <palves@redhat.com>
5472
5473 * configure: Regenerate.
5474
5475 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5476
5477 * configure: Regenerate.
5478
5479 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5480
5481 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
5482 software_single_step change of return type to
5483 std::vector<CORE_ADDR>.
5484 * linux-low.c (install_software_single_step_breakpoints):
5485 Likewise.
5486 * linux-low.h (install_software_single_step_breakpoints):
5487 Likewise.
5488
5489 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5490
5491 * remote-utils.c: Include "gdb_termios.h" instead of
5492 "terminal.h".
5493 * terminal.h: Delete file.
5494
5495 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5496
5497 * server.c: Include <vector>.
5498 <program_argv, wrapper_argv>: Convert to std::vector.
5499 (start_inferior): Rewrite function to use C++.
5500 (handle_v_run): Likewise. Update code that calculates the argv
5501 based on the vRun packet; use C++.
5502 (captured_main): Likewise.
5503
5504 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 * server.c (handle_v_cont): Initialize thread_resume::thread
5507 with null_ptid.
5508
5509 2017-04-05 Pedro Alves <palves@redhat.com>
5510
5511 * configure: Regenerate.
5512
5513 2017-04-05 Pedro Alves <palves@redhat.com>
5514
5515 * gdbreplay.c (sync_error): Constify.
5516 * linux-x86-low.c (push_opcode): Constify.
5517
5518 2017-04-05 Pedro Alves <palves@redhat.com>
5519
5520 * win32-low.c (get_child_debug_event)
5521 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5522 Report TARGET_WAITKIND_SPURIOUS instead.
5523
5524 2017-04-05 Pedro Alves <palves@redhat.com>
5525
5526 * remote-utils.c (remote_prepare, remote_open): Constify.
5527 * remote-utils.h (remote_prepare, remote_open): Constify.
5528 * server.c (captured_main): Constify 'port' handling.
5529
5530 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5531
5532 * Makefile.in (clean): Clear .deps.
5533
5534 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * .gitignore: Remove generated files, replace with wildcard.
5537 * (clean): Replace removal of generated files with wildcard.
5538 (version.c): Replace with...
5539 (version-generated.c): ...this.
5540 (xml-builtin.c): Replace with...
5541 (xml-builtin-generated.c): ...this.
5542 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5543 (%.c: *regformats*): Replace with...
5544 (%-generated.c: *regformats*): ...this.
5545
5546 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5547
5548 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5549 (xtensa_fill_gregset): Call collect_register_by_name for
5550 threadptr register.
5551 (xtensa_store_gregset): Call supply_register_by_name for
5552 threadptr register.
5553
5554 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5555
5556 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5557 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5558 (xtensa_store_gregset): Call supply_register for all registers in
5559 a0_regnum..a0_regnum + C0_NREGS range.
5560
5561 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5562
5563 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5564 (ax-ipa.o: ax.c): Remove.
5565 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5566 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5567 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5568 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5569 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5570
5571 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5572
5573 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5574 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5575 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5576 (errors-ipa.o: ../common/errors.c): Remove.
5577 (format-ipa.o: ../common/format.c): Remove.
5578 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5579
5580 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * Makefile.in (%-ipa.o: %.c): New rule.
5583 (tracepoint-ipa.o: tracepoint.c): Remove.
5584 (utils-ipa.o: utils.c): Remove.
5585 (remote-utils-ipa.o: remote-utils.c): Remove.
5586 (regcache-ipa.o: regcache.c): Remove.
5587 (i386-linux-ipa.o: i386-linux.c): Remove.
5588 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5589 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5590 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5591 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5592 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5593 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5594 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5595 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5596 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5597 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5598 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5599 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5600 (aarch64-ipa.o: aarch64.c): Remove.
5601 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5602 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5603 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5604 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5605 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5606 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5607 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5608 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5609 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5610 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5611 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5612 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5613 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5614 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5615 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5616 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5617 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5618 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5619 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5620 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5621 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5622 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5623 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5624 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5625 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5626 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5627 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5628 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5629 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5630 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5631 (tdesc-ipa.o: tdesc.c): Remove.
5632 (x32-linux-ipa.o: x32-linux.c): Remove.
5633 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5634 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5635
5636 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5637
5638 * Makefile.in (%.o: ../arch/%.c): New rule.
5639 (arm.o: ../arch/arm.c): Remove.
5640 (arm-linux.o: ../arch/arm-linux.c): Remove.
5641 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5642 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5643
5644 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * Makefile.in (%.o: ../nat/%.c): New rule.
5647 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5648 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5649 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5650 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5651 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5652 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5653 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5654 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5655 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5656 (linux-personality.o: ../nat/linux-personality.c): Remove.
5657 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5658 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5659 (x86-linux.o: ../nat/x86-linux.c): Remove.
5660 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5661 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5662
5663 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * Makefile.in (%.o: ../common/%.c): New rule.
5666 (signals.o: ../common/signals.c): Remove.
5667 (print-utils.o: ../common/print-utils.c): Remove.
5668 (rsp-low.o: ../common/rsp-low.c): Remove.
5669 (common-utils.o: ../common/common-utils.c): Remove.
5670 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5671 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5672 (vec.o: ../common/vec.c): Remove.
5673 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5674 (xml-utils.o: ../common/xml-utils.c): Remove.
5675 (ptid.o: ../common/ptid.c): Remove.
5676 (buffer.o: ../common/buffer.c): Remove.
5677 (format.o: ../common/format.c): Remove.
5678 (filestuff.o: ../common/filestuff.c): Remove.
5679 (agent.o: ../common/agent.c): Remove.
5680 (errors.o: ../common/errors.c): Remove.
5681 (environ.o: ../common/environ.c): Remove.
5682 (common-debug.o: ../common/common-debug.c): Remove.
5683 (cleanups.o: ../common/cleanups.c): Remove.
5684 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5685 (fileio.o: ../common/fileio.c): Remove.
5686 (common-regcache.o: ../common/common-regcache.c): Remove.
5687 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5688 (new-op.o: ../common/new-op.c): Remove.
5689 (btrace-common.o: ../common/btrace-common.c): Remove.
5690
5691 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * Makefile.in (%.o: ../target/%.c): New rule.
5694 (waitstatus.o: ../target/waitstatus.c): Remove.
5695
5696 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * Makefile.in
5699 (%.c: ../regformats/%.dat,
5700 (%.c: ../regformats/arm/%.dat,
5701 (%.c: ../regformats/i386/%.dat,
5702 (%.c: ../regformats/rs6000/%.dat): New rules.
5703 (aarch64.c): Remove.
5704 (reg-arm.c): Remove.
5705 (arm-with-iwmmxt.c): Remove.
5706 (arm-with-vfpv2.c): Remove.
5707 (arm-with-vfpv3.c): Remove.
5708 (arm-with-neon.c): Remove.
5709 (reg-bfin.c): Remove.
5710 (reg-cris.c): Remove.
5711 (reg-crisv32.c): Remove.
5712 (i386.c): Remove.
5713 (i386-linux.c): Remove.
5714 (i386-avx.c): Remove.
5715 (i386-avx-linux.c): Remove.
5716 (i386-avx-avx512.c): Remove.
5717 (i386-avx-avx512-linux.c): Remove.
5718 (i386-mpx.c): Remove.
5719 (i386-mpx-linux.c): Remove.
5720 (i386-avx-mpx-avx512-pku.c): Remove.
5721 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5722 (i386-avx-mpx.c): Remove.
5723 (i386-avx-mpx-linux.c): Remove.
5724 (i386-mmx.c): Remove.
5725 (i386-mmx-linux.c): Remove.
5726 (reg-ia64.c): Remove.
5727 (reg-m32r.c): Remove.
5728 (reg-m68k.c): Remove.
5729 (reg-cf.c): Remove.
5730 (mips-linux.c): Remove.
5731 (mips-dsp-linux.c): Remove.
5732 (mips64-linux.c): Remove.
5733 (mips64-dsp-linux.c): Remove.
5734 (nios2-linux.c): Remove.
5735 (powerpc-32.c): Remove.
5736 (powerpc-32l.c): Remove.
5737 (powerpc-altivec32l.c): Remove.
5738 (powerpc-cell32l.c): Remove.
5739 (powerpc-vsx32l.c): Remove.
5740 (powerpc-isa205-32l.c): Remove.
5741 (powerpc-isa205-altivec32l.c): Remove.
5742 (powerpc-isa205-vsx32l.c): Remove.
5743 (powerpc-e500l.c): Remove.
5744 (powerpc-64l.c): Remove.
5745 (powerpc-altivec64l.c): Remove.
5746 (powerpc-cell64l.c): Remove.
5747 (powerpc-vsx64l.c): Remove.
5748 (powerpc-isa205-64l.c): Remove.
5749 (powerpc-isa205-altivec64l.c): Remove.
5750 (powerpc-isa205-vsx64l.c): Remove.
5751 (s390-linux32.c): Remove.
5752 (s390-linux32v1.c): Remove.
5753 (s390-linux32v2.c): Remove.
5754 (s390-linux64.c): Remove.
5755 (s390-linux64v1.c): Remove.
5756 (s390-linux64v2.c): Remove.
5757 (s390-te-linux64.c): Remove.
5758 (s390-vx-linux64.c): Remove.
5759 (s390-tevx-linux64.c): Remove.
5760 (s390x-linux64.c): Remove.
5761 (s390x-linux64v1.c): Remove.
5762 (s390x-linux64v2.c): Remove.
5763 (s390x-te-linux64.c): Remove.
5764 (s390x-vx-linux64.c): Remove.
5765 (s390x-tevx-linux64.c): Remove.
5766 (tic6x-c64xp-linux.c): Remove.
5767 (tic6x-c64x-linux.c): Remove.
5768 (tic6x-c62x-linux.c): Remove.
5769 (reg-sh.c): Remove.
5770 (reg-sparc64.c): Remove.
5771 (reg-spu.c): Remove.
5772 (amd64.c): Remove.
5773 (amd64-linux.c): Remove.
5774 (amd64-avx.c): Remove.
5775 (amd64-avx-linux.c): Remove.
5776 (amd64-avx-avx512.c): Remove.
5777 (amd64-avx-avx512-linux.c): Remove.
5778 (amd64-mpx.c): Remove.
5779 (amd64-mpx-linux.c): Remove.
5780 (amd64-avx-mpx-avx512-pku.c): Remove.
5781 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5782 (amd64-avx-mpx.c): Remove.
5783 (amd64-avx-mpx-linux.c): Remove.
5784 (x32.c): Remove.
5785 (x32-linux.c): Remove.
5786 (x32-avx.c): Remove.
5787 (x32-avx-linux.c): Remove.
5788 (x32-avx-avx512.c): Remove.
5789 (x32-avx-avx512-linux.c): Remove.
5790 (reg-xtensa.c): Remove.
5791 (reg-tilegx.c): Remove.
5792 (reg-tilegx32.c): Remove.
5793
5794 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5795
5796 * Makefile.in (SFILES): Add "common/environ.c".
5797 (OBJS): Add "common/environ.h".
5798
5799 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5800
5801 * configure.ac: Check if the fs_base and gs_base members of
5802 `struct user_regs_struct' exist.
5803 * config.in: Regenerated.
5804 * configure: Likewise.
5805
5806 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5807
5808 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5809 target_read_memory.
5810 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5811 (get_next_pcs_syscall_next_pc): Likewise.
5812
5813 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5814
5815 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5816 * nto-x86-low.c: Likewise.
5817
5818 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * Makefile.in: Include disable-implicit-rules.mk.
5821
5822 2016-11-23 Pedro Alves <palves@redhat.com>
5823
5824 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5825 (debug_vprintf): Use std::chrono::steady_clock instead of
5826 gettimeofday. Use '.' instead of ':'.
5827 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5828 (get_timestamp): Use std::chrono::steady_clock instead of
5829 gettimeofday.
5830
5831 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * Makefile.in: Fix whitespace formatting.
5834
5835 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * Makefile.in (SFILES, OBS): Flatten list and order
5838 alphabetically.
5839
5840 2016-11-23 Pedro Alves <palves@redhat.com>
5841
5842 * event-loop.c (handle_file_event): Use warning.
5843 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5844 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5845 Use warning.
5846
5847 2016-11-23 Pedro Alves <palves@redhat.com>
5848
5849 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5850 output.
5851 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5852 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5853 debug_printf and debug_flush for debug output.
5854 * server.c (handle_general_set): Likewise.
5855 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5856 output.
5857
5858 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * Makefile.in (.c.o): Replace rule with ...
5861 (%.o: %.c): ... this one.
5862
5863 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5866 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5867 make.
5868 * configure.ac: Remove checks for the make program.
5869 * configure: Re-generate.
5870
5871 2016-10-28 Pedro Alves <palves@redhat.com>
5872
5873 * Makefile.in (CXX_DIALECT): Get from configure.
5874 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5875 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5876 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5877 * config.in: Regenerate.
5878 * configure: Regenerate.
5879
5880 2016-10-27 Yao Qi <yao.qi@linaro.org>
5881
5882 * linux-low.c (linux_supports_range_stepping): Return true if
5883 can_software_single_step return true.
5884
5885 2016-10-27 Yao Qi <yao.qi@linaro.org>
5886
5887 * inferiors.c (find_inferior_in_random): New function.
5888 * inferiors.h (find_inferior_in_random): Declare.
5889 * linux-low.c (linux_wait_for_event_filtered): Call
5890 find_inferior_in_random instead of find_inferior.
5891
5892 2016-10-27 Yao Qi <yao.qi@linaro.org>
5893
5894 * linux-low.c (linux_wait_1): If single-step breakpoints are
5895 inserted, remove them.
5896
5897 2016-10-26 Pedro Alves <palves@redhat.com>
5898
5899 * linux-low.c (handle_extended_wait): Link parent/child fork
5900 threads.
5901 (linux_wait_1): Unlink them.
5902 (linux_set_resume_request): Ignore resume requests for
5903 already-resumed and unhandled fork child threads.
5904 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5905 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5906 New functions.
5907 (handle_v_requests) <vCont>: Don't call require_running.
5908 * server.h (in_queued_stop_replies): New declaration.
5909
5910 2016-10-24 Yao Qi <yao.qi@linaro.org>
5911
5912 PR server/20733
5913 * linux-aarch64-low.c (append_insns): Cast the return value to
5914 'uint32_t *'.
5915
5916 2016-10-10 Yao Qi <yao.qi@linaro.org>
5917
5918 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5919
5920 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5921
5922 * target.c (target_supports_multi_process): New function, moved
5923 from...
5924 * target.h (target_supports_multi_process): ... here. Remove
5925 macro.
5926
5927 2016-10-05 Tom Tromey <tom@tromey.com>
5928
5929 PR remote/20655:
5930 * tracepoint.c (handle_tracepoint_bkpts): Check
5931 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5932
5933 2016-10-05 Yao Qi <yao.qi@linaro.org>
5934
5935 * configure.srv: Update the path of arm-*.xml files.
5936
5937 2016-10-05 Terry Guo <terry.guo@arm.com>
5938 Yao Qi <yao.qi@linaro.org>
5939
5940 * Makefile.in: Adjust the path of rules.
5941 * configure.srv: Update the path of xml files.
5942 * regformats/arm-with-iwmmxt.dat: Regenerated.
5943 * regformats/arm-with-neon.dat: Likewise.
5944 * regformats/arm-with-vfpv2.dat: Likewise.
5945 * regformats/arm-with-vfpv3.dat Likewise.
5946
5947 2016-09-30 Yao Qi <yao.qi@linaro.org>
5948
5949 PR gdbserver/20627
5950 * target.c (target_stop_and_wait): Don't call
5951 target_continue_no_signal, use resume_stop instead.
5952
5953 2016-09-26 Yao Qi <yao.qi@linaro.org>
5954
5955 * linux-low.c (linux_wait_1): Call debug_exit.
5956
5957 2016-09-23 Pedro Alves <palves@redhat.com>
5958
5959 * Makefile.in (SFILES): Add common/new-op.c.
5960 (OBS): Add common/new-op.o.
5961 (new-op.o): New rule.
5962
5963 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5964
5965 * .gitinore: Ignore more files.
5966
5967 2016-09-21 Yao Qi <yao.qi@linaro.org>
5968
5969 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5970 23.
5971
5972 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5973
5974 * server.c (start_inferior): Call target_mourn_inferior instead of
5975 mourn_inferior; pass ptid_t argument to it.
5976 (resume): Likewise.
5977 (handle_target_event): Likewise.
5978 * target.c (target_mourn_inferior): New function.
5979 * target.h (mourn_inferior): Delete macro.
5980
5981 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5982
5983 * linux-low.c (lwp_is_stepping): New function.
5984
5985 2016-09-06 Carl Love <cel@us.ibm.com>
5986
5987 * server.c (start_inferior): Fixed comment, requested comment change
5988 didn't get updated correctly. Removed reference to ptrace () call as
5989 it is only true on Linux systems.
5990
5991 2016-09-06 Carl Love <cel@us.ibm.com>
5992
5993 * server.c (start_inferior): Do not call
5994 function target_post_create_inferior () if the
5995 inferior process has already exited.
5996
5997 2016-09-05 Pedro Alves <palves@redhat.com>
5998
5999 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6000 (COMPILE.pre, CC_LD): Use CXX directly.
6001 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6002 * acinclude.m4: Don't include build-with-cxx.m4.
6003 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6004 * configure: Regenerate.
6005
6006 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6007
6008 PR gdb/19495
6009 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6010 call writing data to own_buf.
6011
6012 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6013
6014 * target.c (mywait): Call target_wait instead of
6015 the_target->wait.
6016 (target_wait): New function.
6017
6018 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6019
6020 * server.c (start_inferior): New variable 'ptid'. Replace calls
6021 to the_target->resume by target_continue{,_no_signal}, depending
6022 on the case.
6023 * target.c (target_stop_and_wait): Call target_continue_no_signal
6024 instead of the_target->resume.
6025 (target_continue): New function.
6026
6027 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6028
6029 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6030
6031 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6032
6033 PR server/20491
6034 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6035 ps_prochandle.
6036 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6037 * linux-arm-low.c (ps_get_thread_area): Likewise.
6038 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6039 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6040 * linux-mips-low.c (ps_get_thread_area): Likewise.
6041 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6042 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6043 * linux-x86-low.c (ps_get_thread_area): Likewise.
6044 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6045
6046 2016-08-19 Pedro Alves <palves@redhat.com>
6047
6048 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6049
6050 2016-08-19 Pedro Alves <palves@redhat.com>
6051
6052 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6053 comment. Use memcpy instead of casting through unsigned long.
6054
6055 2016-08-19 Pedro Alves <palves@redhat.com>
6056
6057 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6058 allocating around 0x80000000.
6059
6060 2016-08-19 Pedro Alves <palves@redhat.com>
6061
6062 PR gdb/20415
6063 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6064 (x32-avx512-linux-ipa.o): New rules.
6065 * configure.ac (x86_64-*-linux*): New x32 check.
6066 * configure.srv (ipa_x32_linux_regobj): New.
6067 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6068 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6069 descriptions.
6070 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6071 descriptions.
6072 * configure: Regenerate.
6073
6074 2016-08-09 Pedro Alves <palves@redhat.com>
6075
6076 PR gdb/18653
6077 * Makefile.in (OBS): Add signals-state-save-restore.o.
6078 (signals-state-save-restore.o): New rule.
6079 * config.in: Regenerate.
6080 * configure: Regenerate.
6081 * linux-low.c: Include "signals-state-save-restore.h".
6082 (linux_create_inferior): Call
6083 restore_original_signals_state.
6084 * server.c: Include "dispositions-save-restore.h".
6085 (captured_main): Call save_original_signals_state.
6086
6087 2016-08-05 Pedro Alves <palves@redhat.com>
6088
6089 * configure: Regenerate.
6090
6091 2016-08-04 Yao Qi <yao.qi@linaro.org>
6092
6093 * linux-low.c (regsets_fetch_inferior_registers): Check
6094 errno is ESRCH or not.
6095
6096 2016-08-02 Yao Qi <yao.qi@linaro.org>
6097
6098 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6099 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6100 (thread_db_load_search): Update.
6101 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6102 td_ta_set_event and td_ta_event_getmsg.
6103
6104 2016-07-26 Pedro Alves <palves@redhat.com>
6105
6106 PR server/20414
6107 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6108 of unsigned long for 64-bit registers and use uint32_t instead of
6109 unsigned int for 32-bit registers.
6110
6111 2016-07-26 Pedro Alves <palves@redhat.com>
6112
6113 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6114 to 'ptrace'.
6115
6116 2016-07-21 Tom Tromey <tom@tromey.com>
6117
6118 * configure: Rebuild.
6119
6120 2016-07-21 Yao Qi <yao.qi@linaro.org>
6121
6122 * mem-break.c (find_gdb_breakpoint): Cast bp to
6123 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6124
6125 2016-07-21 Yao Qi <yao.qi@linaro.org>
6126
6127 * server.c (handle_v_requests): Support s and S actions
6128 if target_supports_software_single_step return true.
6129
6130 2016-07-21 Yao Qi <yao.qi@linaro.org>
6131
6132 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6133 is resume_step, call maybe_hw_step.
6134 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6135 and unstop them.
6136 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6137 breakpoints or not.
6138 (proceed_one_lwp): If resume request is resume_step, install
6139 reinsert breakpoints and call maybe_hw_step.
6140
6141 2016-07-21 Yao Qi <yao.qi@linaro.org>
6142
6143 * linux-low.c (proceed_one_lwp): Declare.
6144 (linux_resume_one_thread): Remove local variable 'step'.
6145 Lift code enqueue signal. Call proceed_one_lwp instead of
6146 linux_resume_one_lwp.
6147
6148 2016-07-21 Yao Qi <yao.qi@linaro.org>
6149
6150 * linux-low.c (linux_resume_one_thread): Call
6151 enqueue_pending_signal.
6152
6153 2016-07-21 Yao Qi <yao.qi@linaro.org>
6154
6155 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6156 * inferiors.c (do_restore_current_thread_cleanup): New function.
6157 (make_cleanup_restore_current_thread): Likewise.
6158 * linux-low.c (install_software_single_step_breakpoints): Call
6159 make_cleanup_restore_current_thread. Switch current_thread to
6160 thread.
6161
6162 2016-07-21 Yao Qi <yao.qi@linaro.org>
6163
6164 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6165 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6166 (clone_one_breakpoint): Likewise.
6167 (delete_reinsert_breakpoints): Change parameter to thread.
6168 Callers updated.
6169 (has_reinsert_breakpoints): Likewise.
6170 (uninsert_reinsert_breakpoints): Likewise.
6171 (reinsert_reinsert_breakpoints): Likewise.
6172 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6173 (delete_reinsert_breakpoints): Likewise.
6174 (reinsert_reinsert_breakpoints): Likewise.
6175 (uninsert_reinsert_breakpoints): Likewise.
6176 (has_reinsert_breakpoints): Likewise.
6177
6178 2016-07-21 Yao Qi <yao.qi@linaro.org>
6179
6180 * inferiors.c (get_thread_process): Make parameter const.
6181 * inferiors.h (get_thread_process): Update declaration.
6182 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6183 Add new parameters child_thread and parent_thread. Callers
6184 updated.
6185 * mem-break.h (clone_all_breakpoints): Update declaration.
6186
6187 2016-07-21 Yao Qi <yao.qi@linaro.org>
6188
6189 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6190 <command_list, handler>: Remove.
6191 (struct gdb_breakpoint): New.
6192 (struct other_breakpoint): New.
6193 (struct reinsert_breakpoint): New.
6194 (is_gdb_breakpoint): New function.
6195 (any_persistent_commands): Update command_list if
6196 is_gdb_breakpoint returns true.
6197 (set_breakpoint): Create breakpoints according to their types.
6198 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6199 (set_gdb_breakpoint_1): Likewise.
6200 (set_gdb_breakpoint): Likewise.
6201 (clear_breakpoint_conditions): Change parameter type to
6202 'struct gdb_breakpoint *'.
6203 (clear_breakpoint_commands): Likewise.
6204 (clear_breakpoint_conditions_and_commands): Likewise.
6205 (add_condition_to_breakpoint): Likewise.
6206 (add_breakpoint_condition): Likewise.
6207 (add_commands_to_breakpoint): Likewise.
6208 (check_breakpoints): Check other_breakpoint.
6209 (clone_one_breakpoint): Clone breakpopint according to its type.
6210 * mem-break.h (struct gdb_breakpoint): Declare.
6211 (set_gdb_breakpoint): Update declaration.
6212 (clear_breakpoint_conditions_and_commands): Likewise.
6213 (add_breakpoint_condition): Likewise.
6214 (add_breakpoint_commands): Likewise.
6215 * server.c (process_point_options): Change parameter type to
6216 'struct gdb_breakpoint *'.
6217
6218 2016-07-21 Yao Qi <yao.qi@linaro.org>
6219
6220 * mem-break.c (set_breakpoint_at): Rename it to ...
6221 (set_breakpoint_type_at): ... it.
6222 (set_breakpoint_at): Call set_breakpoint_type_at.
6223 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6224 * mem-break.h (set_breakpoint_at): Update comments.
6225
6226 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6227
6228 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6229 to buf parameter.
6230 (nios2_store_gregset): Likewise.
6231
6232 2016-07-01 Pedro Alves <palves@redhat.com>
6233 Antoine Tremblay <antoine.tremblay@ericsson.com>
6234
6235 * linux-low.c: Change interface to take the target lwp_info
6236 pointer directly and return void. Handle detaching from a zombie
6237 thread.
6238 (linux_detach_lwp_callback): New function.
6239 (linux_detach): Detach from the leader thread after detaching from
6240 the clone threads.
6241
6242 2016-06-28 Yao Qi <yao.qi@linaro.org>
6243
6244 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6245 for variable new_offset.
6246 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6247 (aarch64_ftrace_insn_reloc_cb): Likewise.
6248 (aarch64_ftrace_insn_reloc_tb): Likewise.
6249 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6250 PRIx64 instead of PRIx32.
6251
6252 2016-06-28 Yao Qi <yao.qi@linaro.org>
6253
6254 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6255 (the_low_target): Install arm_get_syscall_trapinfo.
6256
6257 2016-06-28 Yao Qi <yao.qi@linaro.org>
6258
6259 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6260 function.
6261 (the_low_target): Install aarch64_get_syscall_trapinfo.
6262
6263 2016-06-28 Yao Qi <yao.qi@linaro.org>
6264
6265 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6266 Callers updated.
6267 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6268 Remove parameter sysno.
6269 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6270 sysret.
6271
6272 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6273
6274 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6275 (s390_emit_ne_goto): Likewise.
6276 (s390_emit_lt_goto): Likewise.
6277 (s390_emit_le_goto): Likewise.
6278 (s390_emit_gt_goto): Likewise.
6279 (s390_emit_ge_goto): Likewise.
6280 (s390x_emit_eq_goto): Likewise.
6281 (s390x_emit_ne_goto): Likewise.
6282 (s390x_emit_lt_goto): Likewise.
6283 (s390x_emit_le_goto): Likewise.
6284 (s390x_emit_gt_goto): Likewise.
6285 (s390x_emit_ge_goto): Likewise.
6286 (s390_emit_ops_impl): Mark variable static.
6287 (s390x_emit_ops): Likewise.
6288
6289 2016-06-17 Yao Qi <yao.qi@linaro.org>
6290
6291 * linux-low.c (handle_extended_wait): Call
6292 uninsert_reinsert_breakpoints for the parent process. Remove
6293 reinsert breakpoints from the child process. Reinsert them to
6294 the parent process when vfork is done.
6295 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6296 (reinsert_reinsert_breakpoints): New function.
6297 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6298 (reinsert_reinsert_breakpoints): Declare.
6299
6300 2016-06-17 Yao Qi <yao.qi@linaro.org>
6301
6302 * linux-low.c (handle_extended_wait): If the parent is doing
6303 step-over, remove the reinsert breakpoints from the forked child.
6304
6305 2016-06-17 Yao Qi <yao.qi@linaro.org>
6306
6307 * linux-low.c (unsuspend_all_lwps): Declare.
6308 (linux_low_filter_event): If thread exited, call finish_step_over.
6309 If step-over is finished, unsuspend other threads.
6310
6311 2016-06-17 Yao Qi <yao.qi@linaro.org>
6312
6313 * linux-low.c (linux_resume_one_lwp_throw): Assert
6314 has_reinsert_breakpoints returns false.
6315 * mem-break.c (delete_disabled_breakpoints): Assert
6316 bp type isn't reinsert_breakpoint.
6317
6318 2016-06-17 Yao Qi <yao.qi@linaro.org>
6319
6320 * linux-low.c (maybe_hw_step): New function.
6321 (linux_resume_one_lwp_throw): Call maybe_hw_step.
6322 (finish_step_over): Switch current_thread to lwp temporarily,
6323 and assert has_reinsert_breakpoints returns true.
6324 (proceed_one_lwp): Call maybe_hw_step.
6325 * mem-break.c (has_reinsert_breakpoints): New function.
6326 * mem-break.h (has_reinsert_breakpoints): Declare.
6327
6328 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6329
6330 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6331
6332 2016-05-17 Yao Qi <yao.qi@linaro.org>
6333
6334 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6335 instead of find_inferior.
6336
6337 2016-05-05 Yao Qi <yao.qi@linaro.org>
6338
6339 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6340 Initialize res to zero.
6341
6342 2016-05-05 Yao Qi <yao.qi@linaro.org>
6343
6344 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6345 to uint32_t.
6346
6347 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6348
6349 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
6350 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
6351 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6352
6353 2016-04-28 Par Olsson <par.olsson@windriver.com>
6354 Simon Marchi <simon.marchi@ericsson.com>
6355
6356 * tracepoint.c (write_inferior_int8): New function.
6357 (cmd_qtenable_disable): Write enable flag using
6358 write_inferior_int8.
6359
6360 2016-04-25 Yao Qi <yao.qi@linaro.org>
6361
6362 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
6363 (need_step_over_p): Return zero if the LWP has pending signals
6364 can be delivered on software single step target.
6365
6366 2016-04-25 Yao Qi <yao.qi@linaro.org>
6367
6368 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
6369 return instead of error.
6370
6371 2016-04-22 Yao Qi <yao.qi@linaro.org>
6372
6373 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
6374 to 23.
6375
6376 2016-04-22 Yao Qi <yao.qi@linaro.org>
6377
6378 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
6379 signal when stepping over breakpoint with software single
6380 step.
6381
6382 2016-04-21 Pedro Alves <palves@redhat.com>
6383
6384 * linux-s390-low.c (s390_collect_ptrace_register)
6385 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
6386 add casts.
6387 (s390_check_regset): Use void * instead of gdb_byte *.
6388
6389 2016-04-20 Pedro Alves <palves@redhat.com>
6390
6391 * configure: Renegerate.
6392
6393 2016-04-20 Yao Qi <yao.qi@linaro.org>
6394
6395 * linux-aarch32-low.c: Include "arch/arm-linux.h".
6396 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
6397 number 16.
6398 (arm_store_gregset): Likewise.
6399
6400 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6401
6402 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
6403 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
6404 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
6405 (amd64-avx-mpx-linux.c): New rules.
6406 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
6407 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
6408 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
6409 (srv_amd64_regobj): Add amd64-avx-mpx.o.
6410 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
6411 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
6412 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
6413 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
6414 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
6415 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
6416 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
6417 * linux-x86-low.c (x86_linux_read_description): Add case for
6418 X86_XSTATE_AVX_MPX_MASK.
6419 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
6420 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
6421 init_registers_i386_avx_mpx_linux.
6422 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6423 (initialize_low_tracepoint): Call
6424 init_registers_i386_avx_mpx_linux.
6425 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6426 (initialize_low_tracepoint): Call
6427 init_registers_amd64_avx_mpx_linux.
6428 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
6429 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
6430 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
6431 declarations.
6432
6433 2016-04-18 Pedro Alves <palves@redhat.com>
6434
6435 * configure: Regenerate.
6436
6437 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
6438
6439 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
6440 (aarch64_emit_sub): Likewise.
6441
6442 2016-04-12 Pedro Alves <palves@redhat.com>
6443
6444 * utils.c (prepare_to_throw_exception): Delete.
6445
6446 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
6447
6448 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6449
6450 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6451
6452 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6453
6454 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6455
6456 * linux-aarch64-ipa.c: Add <elf.h> include.
6457 * linux-ppc-ipa.c: Add <elf.h> include.
6458 * linux-s390-ipa.c: Add <elf.h> include.
6459
6460 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6461
6462 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
6463 (get_raw_reg_ptr): Likewise.
6464 (get_trace_state_variable_value_ptr): Likewise.
6465 (set_trace_state_variable_value_ptr): Likewise.
6466 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
6467 char *.
6468
6469 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6470 Marcin Kościelnicki <koriakin@0x04.net>
6471
6472 PR/17221
6473 * linux-ppc-low.c (emit_insns): New function.
6474 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
6475 (ppc_emit_prologue): New function.
6476 (ppc_emit_epilogue): New function.
6477 (ppc_emit_add): New function.
6478 (ppc_emit_sub): New function.
6479 (ppc_emit_mul): New function.
6480 (ppc_emit_lsh): New function.
6481 (ppc_emit_rsh_signed): New function.
6482 (ppc_emit_rsh_unsigned): New function.
6483 (ppc_emit_ext): New function.
6484 (ppc_emit_zero_ext): New function.
6485 (ppc_emit_log_not): New function.
6486 (ppc_emit_bit_and): New function.
6487 (ppc_emit_bit_or): New function.
6488 (ppc_emit_bit_xor): New function.
6489 (ppc_emit_bit_not): New function.
6490 (ppc_emit_equal): New function.
6491 (ppc_emit_less_signed): New function.
6492 (ppc_emit_less_unsigned): New function.
6493 (ppc_emit_ref): New function.
6494 (ppc_emit_const): New function.
6495 (ppc_emit_reg): New function.
6496 (ppc_emit_pop): New function.
6497 (ppc_emit_stack_flush): New function.
6498 (ppc_emit_swap): New function.
6499 (ppc_emit_stack_adjust): New function.
6500 (ppc_emit_call): New function.
6501 (ppc_emit_int_call_1): New function.
6502 (ppc_emit_void_call_2): New function.
6503 (ppc_emit_if_goto): New function.
6504 (ppc_emit_goto): New function.
6505 (ppc_emit_eq_goto): New function.
6506 (ppc_emit_ne_goto): New function.
6507 (ppc_emit_lt_goto): New function.
6508 (ppc_emit_le_goto): New function.
6509 (ppc_emit_gt_goto): New function.
6510 (ppc_emit_ge_goto): New function.
6511 (ppc_write_goto_address): New function.
6512 (ppc_emit_ops_impl): New static variable.
6513 (ppc64v1_emit_prologue): New function.
6514 (ppc64v2_emit_prologue): New function.
6515 (ppc64_emit_epilogue): New function.
6516 (ppc64_emit_add): New function.
6517 (ppc64_emit_sub): New function.
6518 (ppc64_emit_mul): New function.
6519 (ppc64_emit_lsh): New function.
6520 (ppc64_emit_rsh_signed): New function.
6521 (ppc64_emit_rsh_unsigned): New function.
6522 (ppc64_emit_ext): New function.
6523 (ppc64_emit_zero_ext): New function.
6524 (ppc64_emit_log_not): New function.
6525 (ppc64_emit_bit_and): New function.
6526 (ppc64_emit_bit_or): New function.
6527 (ppc64_emit_bit_xor): New function.
6528 (ppc64_emit_bit_not): New function.
6529 (ppc64_emit_equal): New function.
6530 (ppc64_emit_less_signed): New function.
6531 (ppc64_emit_less_unsigned): New function.
6532 (ppc64_emit_ref): New function.
6533 (ppc64_emit_const): New function.
6534 (ppc64v1_emit_reg): New function.
6535 (ppc64v2_emit_reg): New function.
6536 (ppc64_emit_pop): New function.
6537 (ppc64_emit_stack_flush): New function.
6538 (ppc64_emit_swap): New function.
6539 (ppc64v1_emit_call): New function.
6540 (ppc64v2_emit_call): New function.
6541 (ppc64v1_emit_int_call_1): New function.
6542 (ppc64v2_emit_int_call_1): New function.
6543 (ppc64v1_emit_void_call_2): New function.
6544 (ppc64v2_emit_void_call_2): New function.
6545 (ppc64_emit_if_goto): New function.
6546 (ppc64_emit_eq_goto): New function.
6547 (ppc64_emit_ne_goto): New function.
6548 (ppc64_emit_lt_goto): New function.
6549 (ppc64_emit_le_goto): New function.
6550 (ppc64_emit_gt_goto): New function.
6551 (ppc64_emit_ge_goto): New function.
6552 (ppc64v1_emit_ops_impl): New static variable.
6553 (ppc64v2_emit_ops_impl): New static variable.
6554 (ppc_emit_ops): New function.
6555 (linux_low_target): Wire in ppc_emit_ops.
6556
6557 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6558 Marcin Kościelnicki <koriakin@0x04.net>
6559
6560 PR/17221
6561 * Makefile.in: Add powerpc-*-ipa.o
6562 * configure.srv: Add ipa_obj for powerpc*-linux.
6563 * linux-ppc-ipa.c: New file.
6564 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6565 includes.
6566 (PPC_FIELD): New macro.
6567 (PPC_SEXT): New macro.
6568 (PPC_OP6): New macro.
6569 (PPC_BO): New macro.
6570 (PPC_LI): New macro.
6571 (PPC_BD): New macro.
6572 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6573 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6574 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6575 (ppc_get_thread_area): New function.
6576 (is_elfv2_inferior): New function.
6577 (gen_ds_form): New function.
6578 (GEN_STD): New macro.
6579 (GEN_STDU): New macro.
6580 (GEN_LD): New macro.
6581 (GEN_LDU): New macro.
6582 (gen_d_form): New function.
6583 (GEN_ADDI): New macro.
6584 (GEN_ADDIS): New macro.
6585 (GEN_LI): New macro.
6586 (GEN_LIS): New macro.
6587 (GEN_ORI): New macro.
6588 (GEN_ORIS): New macro.
6589 (GEN_LWZ): New macro.
6590 (GEN_STW): New macro.
6591 (GEN_STWU): New macro.
6592 (gen_xfx_form): New function.
6593 (GEN_MFSPR): New macro.
6594 (GEN_MTSPR): New macro.
6595 (GEN_MFCR): New macro.
6596 (GEN_MTCR): New macro.
6597 (GEN_SYNC): New macro.
6598 (GEN_LWSYNC): New macro.
6599 (gen_x_form): New function.
6600 (GEN_OR): New macro.
6601 (GEN_MR): New macro.
6602 (GEN_LWARX): New macro.
6603 (GEN_STWCX): New macro.
6604 (GEN_CMPW): New macro.
6605 (gen_md_form): New function.
6606 (GEN_RLDICL): New macro.
6607 (GEN_RLDICR): New macro.
6608 (gen_i_form): New function.
6609 (GEN_B): New macro.
6610 (GEN_BL): New macro.
6611 (gen_b_form): New function.
6612 (GEN_BNE): New macro.
6613 (GEN_LOAD): New macro.
6614 (GEN_STORE): New macro.
6615 (gen_limm): New function.
6616 (gen_atomic_xchg): New function.
6617 (gen_call): New function.
6618 (ppc_relocate_instruction): New function.
6619 (ppc_install_fast_tracepoint_jump_pad): New function.
6620 (ppc_get_min_fast_tracepoint_insn_len): New function.
6621 (ppc_get_ipa_tdesc_idx): New function.
6622 (the_low_target): Wire in the new functions.
6623 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6624 tdescs.
6625 * linux-ppc-tdesc.h: New file.
6626
6627 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6628
6629 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6630 (alloc_jump_pad_buffer): New function.
6631 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6632 (alloc_jump_pad_buffer): New function.
6633 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6634 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6635 (alloc_jump_pad_buffer): New function.
6636 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6637 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6638 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6639 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6640
6641 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6642
6643 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6644 * linux-amd64-ipa.c: Likewise.
6645 * linux-i386-ipa.c: Likewise.
6646 * linux-s390-ipa.c: Likewise.
6647 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6648 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6649 set_trace_state_variable_value_ptr.
6650 (struct ipa_sym_addresses): Likewise.
6651 (symbol_list): Likewise.
6652 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6653 accessing gdb_collect directly.
6654 (gdb_collect_ptr_type): New typedef.
6655 (get_raw_reg_ptr_type): New typedef.
6656 (get_trace_state_variable_value_ptr_type): New typedef.
6657 (set_trace_state_variable_value_ptr_type): New typedef.
6658 (gdb_collect_ptr): New global.
6659 (get_raw_reg_ptr): New global.
6660 (get_trace_state_variable_value_ptr): New global.
6661 (set_trace_state_variable_value_ptr): New global.
6662 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6663 accessing get_raw_reg directly.
6664 (get_get_tsv_func_addr): Likewise for
6665 get_trace_state_variable_value_ptr.
6666 (get_set_tsv_func_addr): Likewise for
6667 set_trace_state_variable_value_ptr.
6668 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6669
6670 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6671
6672 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6673
6674 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6675
6676 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6677 packets.
6678 (relocate_instruction): Remove own_buf.
6679 * server.c (own_buf): Make global.
6680 (handle_v_requests): Make global.
6681 * server.h (own_buf): New declaration.
6682 (handle_v_requests): New prototype.
6683
6684 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6685
6686 PR 18377
6687 * linux-s390-low.c (add_insns): New function.
6688 (s390_emit_prologue): New function.
6689 (s390_emit_epilogue): New function.
6690 (s390_emit_add): New function.
6691 (s390_emit_sub): New function.
6692 (s390_emit_mul): New function.
6693 (s390_emit_lsh): New function.
6694 (s390_emit_rsh_signed): New function.
6695 (s390_emit_rsh_unsigned): New function.
6696 (s390_emit_ext): New function.
6697 (s390_emit_log_not): New function.
6698 (s390_emit_bit_and): New function.
6699 (s390_emit_bit_or): New function.
6700 (s390_emit_bit_xor): New function.
6701 (s390_emit_bit_not): New function.
6702 (s390_emit_equal): New function.
6703 (s390_emit_less_signed): New function.
6704 (s390_emit_less_unsigned): New function.
6705 (s390_emit_ref): New function.
6706 (s390_emit_if_goto): New function.
6707 (s390_emit_goto): New function.
6708 (s390_write_goto_address): New function.
6709 (s390_emit_litpool): New function.
6710 (s390_emit_const): New function.
6711 (s390_emit_call): New function.
6712 (s390_emit_reg): New function.
6713 (s390_emit_pop): New function.
6714 (s390_emit_stack_flush): New function.
6715 (s390_emit_zero_ext): New function.
6716 (s390_emit_swap): New function.
6717 (s390_emit_stack_adjust): New function.
6718 (s390_emit_set_r2): New function.
6719 (s390_emit_int_call_1): New function.
6720 (s390_emit_void_call_2): New function.
6721 (s390_emit_eq_goto): New function.
6722 (s390_emit_ne_goto): New function.
6723 (s390_emit_lt_goto): New function.
6724 (s390_emit_le_goto): New function.
6725 (s390_emit_gt_goto): New function.
6726 (s390_emit_ge_goto): New function.
6727 (s390x_emit_prologue): New function.
6728 (s390x_emit_epilogue): New function.
6729 (s390x_emit_add): New function.
6730 (s390x_emit_sub): New function.
6731 (s390x_emit_mul): New function.
6732 (s390x_emit_lsh): New function.
6733 (s390x_emit_rsh_signed): New function.
6734 (s390x_emit_rsh_unsigned): New function.
6735 (s390x_emit_ext): New function.
6736 (s390x_emit_log_not): New function.
6737 (s390x_emit_bit_and): New function.
6738 (s390x_emit_bit_or): New function.
6739 (s390x_emit_bit_xor): New function.
6740 (s390x_emit_bit_not): New function.
6741 (s390x_emit_equal): New function.
6742 (s390x_emit_less_signed): New function.
6743 (s390x_emit_less_unsigned): New function.
6744 (s390x_emit_ref): New function.
6745 (s390x_emit_if_goto): New function.
6746 (s390x_emit_const): New function.
6747 (s390x_emit_call): New function.
6748 (s390x_emit_reg): New function.
6749 (s390x_emit_pop): New function.
6750 (s390x_emit_stack_flush): New function.
6751 (s390x_emit_zero_ext): New function.
6752 (s390x_emit_swap): New function.
6753 (s390x_emit_stack_adjust): New function.
6754 (s390x_emit_int_call_1): New function.
6755 (s390x_emit_void_call_2): New function.
6756 (s390x_emit_eq_goto): New function.
6757 (s390x_emit_ne_goto): New function.
6758 (s390x_emit_lt_goto): New function.
6759 (s390x_emit_le_goto): New function.
6760 (s390x_emit_gt_goto): New function.
6761 (s390x_emit_ge_goto): New function.
6762 (s390_emit_ops): New function.
6763 (struct linux_target_ops): Fill in emit_ops hook.
6764
6765 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6766
6767 PR 18377
6768 * Makefile.in: Add s390 IPA files.
6769 * configure.srv: Build IPA for s390.
6770 * linux-s390-ipa.c: New file.
6771 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6772 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6773 (tdesc_s390_linux32): Likewise.
6774 (init_registers_s390_linux32v1): Likewise.
6775 (tdesc_s390_linux32v1): Likewise.
6776 (init_registers_s390_linux32v2): Likewise.
6777 (tdesc_s390_linux32v2): Likewise.
6778 (init_registers_s390_linux64): Likewise.
6779 (tdesc_s390_linux64): Likewise.
6780 (init_registers_s390_linux64v1): Likewise.
6781 (tdesc_s390_linux64v1): Likewise.
6782 (init_registers_s390_linux64v2): Likewise.
6783 (tdesc_s390_linux64v2): Likewise.
6784 (init_registers_s390_te_linux64): Likewise.
6785 (tdesc_s390_te_linux64): Likewise.
6786 (init_registers_s390_vx_linux64): Likewise.
6787 (tdesc_s390_vx_linux64): Likewise.
6788 (init_registers_s390_tevx_linux64): Likewise.
6789 (tdesc_s390_tevx_linux64): Likewise.
6790 (init_registers_s390x_linux64): Likewise.
6791 (tdesc_s390x_linux64): Likewise.
6792 (init_registers_s390x_linux64v1): Likewise.
6793 (tdesc_s390x_linux64v1): Likewise.
6794 (init_registers_s390x_linux64v2): Likewise.
6795 (tdesc_s390x_linux64v2): Likewise.
6796 (init_registers_s390x_te_linux64): Likewise.
6797 (tdesc_s390x_te_linux64): Likewise.
6798 (init_registers_s390x_vx_linux64): Likewise.
6799 (tdesc_s390x_vx_linux64): Likewise.
6800 (init_registers_s390x_tevx_linux64): Likewise.
6801 (tdesc_s390x_tevx_linux64): Likewise.
6802 (have_hwcap_s390_vx): New static variable.
6803 (s390_arch_setup): Fill have_hwcap_s390_vx.
6804 (s390_get_thread_area): New function.
6805 (s390_ft_entry_gpr_esa): New const.
6806 (s390_ft_entry_gpr_zarch): New const.
6807 (s390_ft_entry_misc): New const.
6808 (s390_ft_entry_fr): New const.
6809 (s390_ft_entry_vr): New const.
6810 (s390_ft_main_31): New const.
6811 (s390_ft_main_64): New const.
6812 (s390_ft_exit_fr): New const.
6813 (s390_ft_exit_vr): New const.
6814 (s390_ft_exit_misc): New const.
6815 (s390_ft_exit_gpr_esa): New const.
6816 (s390_ft_exit_gpr_zarch): New const.
6817 (append_insns): New function.
6818 (s390_relocate_instruction): New function.
6819 (s390_install_fast_tracepoint_jump_pad): New function.
6820 (s390_get_min_fast_tracepoint_insn_len): New function.
6821 (s390_get_ipa_tdesc_idx): New function.
6822 (struct linux_target_ops): Wire in the above functions.
6823 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6824 * linux-s390-tdesc.h: New file.
6825
6826 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6827
6828 * linux-s390-low.c (s390_supports_tracepoints): New function.
6829 (struct linux_target_ops): Fill supports_tracepoints hook.
6830
6831 2016-03-18 Yao Qi <yao.qi@linaro.org>
6832
6833 * linux-low.c (lwp_signal_can_be_delivered): New function.
6834 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6835
6836 2016-03-18 Yao Qi <yao.qi@linaro.org>
6837
6838 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6839 0 if signal is enqueued. Remove 'signal' from one debugging
6840 message. Move one debugging message to some lines below.
6841 Remove code setting 'signal' to 0.
6842
6843 2016-03-18 Yao Qi <yao.qi@linaro.org>
6844
6845 * linux-low.c (linux_low_filter_event): Remove redundant
6846 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6847
6848 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6849
6850 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6851 (struct linux_target_ops): Wire in the above.
6852
6853 2016-03-03 Yao Qi <yao.qi@linaro.org>
6854
6855 * linux-low.c: Update comments to start_step_over.
6856
6857 2016-03-03 Yao Qi <yao.qi@linaro.org>
6858
6859 PR server/19736
6860 * linux-low.c (handle_extended_wait): Set child suspended
6861 if event_lwp->bp_reinsert isn't zero.
6862
6863 2016-03-02 Yao Qi <yao.qi@linaro.org>
6864
6865 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6866 enqueue_pending_signal.
6867
6868 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6869
6870 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6871 is actually loaded.
6872
6873 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6874
6875 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6876 (s390_regmap_3264) [!__s390x__]: New global.
6877 (s390_collect_ptrace_register): Skip map entries containing -1.
6878 (s390_supply_ptrace_register): Ditto.
6879 (s390_fill_gprs_high): New function.
6880 (s390_store_gprs_high): New function.
6881 (s390_regsets): Add NT_S390_HIGH_GPRS.
6882 (s390_get_hwcap): Enable on 31-bit.
6883 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6884 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6885 Detect NT_S390_HIGH_GPRS.
6886 (s390_usrregs_info_3264): Enable on 31-bit.
6887 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6888 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6889
6890 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6891
6892 PR gdb/13808
6893 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6894 * configure.srv: Ditto.
6895 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6896 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6897 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6898 (init_registers_amd64_linux): Remove prototype.
6899 (tdesc_amd64_linux): Remove declaration.
6900 (get_ipa_tdesc): New function.
6901 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6902 initialize remaining tdescs.
6903 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6904 (init_registers_i386_linux): Remove prototype.
6905 (tdesc_i386_linux): Remove declaration.
6906 (get_ipa_tdesc): New function.
6907 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6908 initialize remaining tdescs.
6909 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6910 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6911 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6912 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6913 (x86_get_ipa_tdesc_idx): New function.
6914 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6915 * linux-x86-tdesc.h: New file.
6916 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6917 (target_get_ipa_tdesc_idx): New macro.
6918 * tracepoint.c (ipa_tdesc_idx): New macro.
6919 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6920 (symbol_list): Add ipa_tdesc_idx.
6921 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6922 (ipa_tdesc): Remove.
6923 (ipa_tdesc_idx): New variable.
6924 (get_context_regcache): Use get_ipa_tdesc.
6925 (gdb_collect): Ditto.
6926 (gdb_probe): Ditto.
6927 * tracepoint.h (get_ipa_tdesc): New prototype.
6928 (ipa_tdesc): Remove.
6929
6930 2016-02-24 Pedro Alves <palves@redhat.com>
6931
6932 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6933 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6934 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6935 Factor out common code between the USE_SIGTRAP_SIGINFO and
6936 !USE_SIGTRAP_SIGINFO blocks.
6937 (linux_low_filter_event): Call save_stop_reason instead of
6938 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6939 Update comments.
6940 (linux_wait_1): Update comments.
6941
6942 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6943
6944 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6945 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6946 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6947 ppc_insert_point, ppc_remove_point.
6948
6949 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6950
6951 * linux-s390-low.c (s390_supports_z_point_type): New function.
6952 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6953
6954 2016-02-16 Yao Qi <yao.qi@linaro.org>
6955
6956 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6957 PC. Get pc from regcache_read_pc.
6958
6959 2016-02-12 Yao Qi <yao.qi@linaro.org>
6960
6961 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6962 or linux_get_pc_32bit.
6963 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6964
6965 2016-02-12 Yao Qi <yao.qi@linaro.org>
6966
6967 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6968 arm_linux_get_next_pcs_fixup.
6969
6970 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6971
6972 * tracepoint.c (x_tracepoint_action_download): Change
6973 write_inferior_data_ptr to write_inferior_data_pointer.
6974 (cmd_qtstart): Likewise.
6975 (write_inferior_data_ptr): Remove.
6976 (download_agent_expr): Change write_inferior_data_ptr to
6977 write_inferior_data_pointer.
6978 (download_tracepoint_1): Likewise.
6979 (download_tracepoint): Likewise.
6980 (download_trace_state_variables): Likewise.
6981
6982 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6983 Marcin Kościelnicki <koriakin@0x04.net>
6984
6985 * tracepoint.c (struct tracepoint_action_ops): Remove.
6986 (struct tracepoint_action): Remove ops.
6987 (m_tracepoint_action_download, r_tracepoint_action_download)
6988 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6989 size and offset accordingly.
6990 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6991 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6992 (tracepoint_action_send, tracepoint_action_download): New functions.
6993 Helpers for trace action handlers.
6994 (add_tracepoint_action): Remove setup actions ops.
6995 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6996
6997 2016-02-10 Yao Qi <yao.qi@linaro.org>
6998
6999 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7000
7001 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7002
7003 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7004 to AC_OUTPUT.
7005 * configure: Regenerate.
7006
7007 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7010 void * to gdb_byte *.
7011 * linux-low.c (siginfo_fixup): Likewise.
7012 (linux_xfer_siginfo): Likewise.
7013 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7014 Likewise.
7015 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7016
7017 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7018
7019 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7020 to srv_tgtobj.
7021 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7022 to srv_tgtobj.
7023 * linux-x86-low.c [__x86_64__]: Include
7024 "nat/amd64-linux-siginfo.h".
7025 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7026 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7027 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7028 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7029 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7030 (cpt_si_fd, si_timerid, si_overrun): Move from
7031 nat/amd64-linux-siginfo.c.
7032 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7033
7034 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7035
7036 * server.c (skip_to_semicolon): Remove.
7037 (process_point_options): Use strchrnul instead of
7038 skip_to_semicolon.
7039
7040 2016-01-26 Yao Qi <yao.qi@linaro.org>
7041
7042 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7043 * linux-low.c (install_software_single_step_breakpoints): Don't
7044 call regcache_read_pc.
7045 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7046 argument pc.
7047
7048 2016-01-26 Yao Qi <yao.qi@linaro.org>
7049
7050 * linux-low.c (install_software_single_step_breakpoints): Call
7051 regcache_read_pc instead of get_pc.
7052
7053 2016-01-26 Yao Qi <yao.qi@linaro.org>
7054
7055 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7056 (unblock_async_io): Rename to ...
7057 (block_unblock_async_io): ... it. New function.
7058 (enable_async_io): Don't install SIGIO handler. Unblock it
7059 instead.
7060 (disable_async_io): Don't ignore SIGIO. Block it instead.
7061 (initialize_async_io): Install SIGIO handler. Don't call
7062 unblock_async_io.
7063
7064 2016-01-26 Yao Qi <yao.qi@linaro.org>
7065
7066 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7067 first character is '\003', call *the_target->request_interrupt.
7068
7069 2016-01-25 Yao Qi <yao.qi@linaro.org>
7070
7071 * remote-utils.c (new_thread_notify): Remove.
7072 (dead_thread_notify): Likewise.
7073 * remote-utils.h (new_thread_notify): Remove declaration.
7074 (dead_thread_notify): Likewise.
7075
7076 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7077
7078 * gdb.trace/pending.exp: Fix expected message on continue.
7079
7080 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7081
7082 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7083 it works properly on big-endian machines where sizeof (CORE_ADDR)
7084 != sizeof (void *).
7085
7086 2016-01-21 Pedro Alves <palves@redhat.com>
7087
7088 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7089 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7090 * configure: Regenerate.
7091
7092 2016-01-21 Yao Qi <yao.qi@linaro.org>
7093
7094 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7095 is_thumb and set it according to CPSR saved on the stack.
7096 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7097 arm_sigreturn_next_pc.
7098
7099 2016-01-18 Yao Qi <yao.qi@linaro.org>
7100
7101 * linux-low.c (linux_set_pc_64bit): New function.
7102 (linux_get_pc_64bit): New function.
7103 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7104 Declare.
7105 * linux-sparc-low.c (debug_threads): Remove declaration.
7106 (sparc_get_pc): Remove.
7107 (the_low_target): Use linux_get_pc_64bit instead of
7108 sparc_get_pc.
7109 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7110 (the_low_target): Use linux_get_pc_64bit and
7111 linux_set_pc_64bit.
7112
7113 2016-01-18 Yao Qi <yao.qi@linaro.org>
7114
7115 * linux-arm-low.c (debug_threads): Remove declaration.
7116 (arm_get_pc, arm_set_pc): Remove.
7117 (the_low_target): Use linux_get_pc_32bit and
7118 linux_set_pc_32bit.
7119 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7120 (the_low_target): Use linux_get_pc_32bit and
7121 linux_set_pc_32bit.
7122 * linux-cris-low.c (debug_threads): Remove declaration.
7123 (cris_get_pc, cris_set_pc,): Remove.
7124 (the_low_target): Use linux_get_pc_32bit and
7125 linux_set_pc_32bit.
7126 * linux-crisv32-low.c (debug_threads): Remove declaration.
7127 (cris_get_pc, cris_set_pc): Remove.
7128 (the_low_target): Use linux_get_pc_32bit and
7129 linux_set_pc_32bit.
7130 * linux-low.c: Include inttypes.h.
7131 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7132 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7133 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7134 (the_low_target): Use linux_get_pc_32bit and
7135 linux_set_pc_32bit.
7136 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7137 (the_low_target): Use linux_get_pc_32bit and
7138 linux_set_pc_32bit.
7139 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7140 (the_low_target): Use linux_get_pc_32bit and
7141 linux_set_pc_32bit.
7142 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7143 (the_low_target): Use linux_get_pc_32bit and
7144 linux_set_pc_32bit.
7145 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7146 (the_low_target): Use linux_get_pc_32bit and
7147 linux_set_pc_32bit.
7148
7149 2016-01-18 Gary Benson <gbenson@redhat.com>
7150
7151 * configure.ac (AC_FUNC_FORK): New check.
7152 * config.in: Regenerate.
7153 * configure: Likewise.
7154
7155 2016-01-14 Yao Qi <yao.qi@linaro.org>
7156
7157 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7158 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7159 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7160 arm_get_next_pcs_ctor.
7161
7162 2016-01-12 Josh Stone <jistone@redhat.com>
7163 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7164
7165 * inferiors.h: Include "gdb_vecs.h".
7166 (struct process_info): Add syscalls_to_catch.
7167 * inferiors.c (remove_process): Free syscalls_to_catch.
7168 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7169 syscall_return stops.
7170 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7171 * server.c (handle_general_set): Handle QCatchSyscalls.
7172 (handle_query): Report support for QCatchSyscalls.
7173 * target.h (struct target_ops): Add supports_catch_syscall.
7174 (target_supports_catch_syscall): New macro.
7175 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7176 (struct lwp_info): Add syscall_state.
7177 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7178 Maintain syscall_state and syscalls_to_catch across exec.
7179 (get_syscall_trapinfo): New function, proxy to the_low_target.
7180 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7181 (linux_low_filter_event): Toggle syscall_state entry/return for
7182 syscall traps, and set it ignored for all others.
7183 (gdb_catching_syscalls_p): New function.
7184 (gdb_catch_this_syscall_p): New function.
7185 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7186 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7187 (linux_supports_catch_syscall): New function.
7188 (linux_target_ops): Install it.
7189 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7190 (the_low_target): Install it.
7191
7192 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7193
7194 * acinclude.m4: Include new ../warning.m4 file.
7195 * configure: Regenerated.
7196 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7197
7198 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7199
7200 * ax.c (is_goto_target): Mark static.
7201 * linux-low.c (register_addr): Likewise.
7202 (linux_fetch_registers, linux_store_registers): Likewise.
7203 * mem-break.c (any_persistent_commands): Fix old prototype.
7204 (add_commands_to_breakpoint): Mark static.
7205 * regcache.c (find_register_by_name): Delete unused func.
7206 * remote-utils.c (hex_or_minus_one): Mark static.
7207 * server.c (monitor_show_help): Mark static.
7208 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7209 handle_v_requests): Likewise.
7210
7211 2016-01-12 Pedro Alves <palves@redhat.com>
7212
7213 Remove use of the registered trademark symbol throughout.
7214
7215 2016-01-08 Yao Qi <yao.qi@linaro.org>
7216
7217 * remote-utils.c (getpkt): If c is '\003', call target hook
7218 request_interrupt.
7219
7220 2016-01-06 Yao Qi <yao.qi@linaro.org>
7221
7222 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7223 linux-aarch32-low.c.
7224 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7225 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7226 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7227 (thumb2_breakpoint): Declare.
7228 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7229 linux-aarch32-low.h.
7230 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7231 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7232 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7233
7234 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7235
7236 * gdbreplay.c (gdbreplay_version): Change copyright year in
7237 version message.
7238 * server.c (gdbserver_version): Likewise.
7239
7240 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7241
7242 * server.c (crc32_table): Delete.
7243 (crc32): Use libiberty's xcrc32 function.
7244
7245 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7246
7247 * lynx-low.c (lynx_delete_thread_callback): New function.
7248 (lynx_mourn): Properly delete our process and all of its
7249 threads. Remove call to clear_inferiors.
7250
7251 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7252
7253 * target.c (thread_search_callback): Add check that
7254 the thread_stopped target callback is not NULL before
7255 calling it.
7256
7257 2015-12-21 Yao Qi <yao.qi@linaro.org>
7258
7259 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7260 arm breakpoint.
7261
7262 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7263
7264 * server.c (handle_query): Call target_supports_software_single_step.
7265
7266 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7267
7268 * linux-low.c (single_step): New function.
7269 (linux_resume_one_lwp_throw): Call single_step.
7270 (start_step_over): Likewise.
7271
7272 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7273
7274 * Makefile.in (SFILES): Append arch/arm-linux.c,
7275 arch/arm-get-next-pcs.c.
7276 (arm-linux.o): New rule.
7277 (arm-get-next-pcs.o): New rule.
7278 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7279 arm-linux.o.
7280 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7281 to linux-aarch32-low.c.
7282 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7283 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7284 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7285 (thumb2_breakpoint_len): Likewise.
7286 (arm_is_thumb_mode): Make non-static.
7287 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7288 from linux-aarch32-low.c.
7289 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7290 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7291 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7292 (thumb2_breakpoint_len): Likewise.
7293 (arm_is_thumb_mode): New declaration.
7294 * linux-arm-low.c: Include arch/arm-linux.h
7295 aarch/arm-get-next-pcs.h, sys/syscall.h.
7296 (get_next_pcs_ops): New struct.
7297 (get_next_pcs_addr_bits_remove): New function.
7298 (get_next_pcs_is_thumb): New function.
7299 (get_next_pcs_read_memory_unsigned_integer): Likewise.
7300 (arm_sigreturn_next_pc): Likewise.
7301 (get_next_pcs_syscall_next_pc): Likewise.
7302 (arm_gdbserver_get_next_pcs): Likewise.
7303 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
7304 Initialize.
7305 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7306 * server.h: Include gdb_vecs.h.
7307
7308 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7309
7310 * Makefile.in (SFILES): Append common/common-regcache.c.
7311 (OBS): Append common-regcache.o.
7312 (common-regcache.o): New rule.
7313 * regcache.c (init_register_cache): Initialize cache to
7314 REG_UNAVAILABLE.
7315 (regcache_raw_read_unsigned): New function.
7316 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7317 register_status enum.
7318
7319 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7320
7321 * linux-aarch64-low.c (the_low_targets): Rename
7322 breakpoint_reinsert_addr to get_next_pcs.
7323 * linux-arm-low.c (the_low_targets): Likewise.
7324 * linux-bfin-low.c (the_low_targets): Likewise.
7325 * linux-cris-low.c (the_low_targets): Likewise.
7326 * linux-crisv32-low.c (the_low_targets): Likewise.
7327 * linux-low.c (can_software_single_step): Likewise.
7328 (install_software_single_step_breakpoints): New function.
7329 (start_step_over): Use install_software_single_step_breakpoints.
7330 * linux-low.h: New CORE_ADDR vector.
7331 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
7332 get_next_pcs.
7333 * linux-mips-low.c (the_low_targets): Likewise.
7334 * linux-nios2-low.c (the_low_targets): Likewise.
7335 * linux-sparc-low.c (the_low_targets): Likewise.
7336
7337 2015-12-17 Pedro Alves <palves@redhat.com>
7338
7339 * linux-low.c (linux_kill_one_lwp): Remove references to
7340 LinuxThreads.
7341 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7342 to 'kill'.
7343 (linux_init_signals): Delete.
7344 (initialize_low): Adjust.
7345 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7346
7347 2015-12-16 Pedro Alves <palves@redhat.com>
7348
7349 * configure.ac (compiler warning flags): When testing a
7350 -Wno-foo option, check whether -Wfoo works instead.
7351 * configure: Regenerate.
7352
7353 2015-12-11 Don Breazeal <donb@codesourcery.com>
7354
7355 * server.c (process_serial_event): Don't exit from gdbserver
7356 in remote mode if there are still active inferiors.
7357
7358 2015-12-11 Yao Qi <yao.qi@linaro.org>
7359
7360 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
7361 arm_breakpoint_at if the process is 32-bit.
7362
7363 2015-12-11 Yao Qi <yao.qi@linaro.org>
7364
7365 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
7366 arm breakpoint.
7367
7368 2015-12-07 Yao Qi <yao.qi@linaro.org>
7369
7370 * configure.srv: Append arm.o to srv_tgtobj for
7371 aarch64*-*-linux* target.
7372 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
7373 from linux-arm-low.c.
7374 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7375 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7376 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7377 (thumb2_breakpoint_len): Likewise.
7378 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
7379 (arm_breakpoint_kinds): Likewise.
7380 (arm_breakpoint_kind_from_pc): Likewise.
7381 (arm_sw_breakpoint_from_kind): Likewise.
7382 (arm_breakpoint_kind_from_current_state): Likewise.
7383 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
7384 (arm_sw_breakpoint_from_kind): Declare.
7385 (arm_breakpoint_kind_from_current_state): Declare.
7386 (arm_breakpoint_at): Declare.
7387 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
7388 arm_sw_breakpoint_from_kind if process is 32-bit.
7389 (aarch64_breakpoint_kind_from_pc): New function.
7390 (aarch64_breakpoint_kind_from_current_state): New function.
7391 (the_low_target): Initialize fields breakpoint_kind_from_pc
7392 and breakpoint_kind_from_current_state.
7393 * linux-arm-low.c (arm_breakpoint_kinds): Move to
7394 linux-aarch32-low.c.
7395 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
7396 (arm_breakpoint, arm_breakpoint_len): Likewise.
7397 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
7398 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7399 (arm_is_thumb_mode): Likewise.
7400 (arm_breakpoint_at): Likewise.
7401 (arm_breakpoint_kind_from_pc): Likewise.
7402 (arm_sw_breakpoint_from_kind): Likewise.
7403 (arm_breakpoint_kind_from_current_state): Likewise.
7404
7405 Revert:
7406 2015-08-04 Yao Qi <yao.qi@linaro.org>
7407
7408 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7409 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7410 * server.c (extended_protocol): Remove "static".
7411 * server.h (extended_protocol): Declare it.
7412
7413 2015-12-04 Josh Stone <jistone@redhat.com>
7414
7415 * target.h (struct target_ops) <arch_setup>: Rename to ...
7416 (struct target_ops) <post_create_inferior>: ... this.
7417 (target_arch_setup): Rename to ...
7418 (target_post_create_inferior): ... this, calling post_create_inferior.
7419 * server.c (start_inferior): Update target_arch_setup calls to
7420 target_post_create_inferior.
7421 * linux-low.c (linux_low_ptrace_options): Forward declare.
7422 (linux_arch_setup): Update its comment for general use.
7423 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
7424 (struct linux_target_ops): Use linux_post_create_inferior.
7425 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
7426 to post_create_inferior.
7427 * nto-low.c (struct nto_target_ops): Likewise.
7428 * spu-low.c (struct spu_target_ops): Likewise.
7429 * win32-low.c (struct win32_target_ops): Likewise.
7430
7431 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
7432
7433 * linux-arm-low.c: Remove duplicate arch/arm.h include.
7434
7435 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7436
7437 * linux-arm-low.c (arm_reinsert_addr): Remove function.
7438 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
7439 * linux-cris-low.c (cris_reinsert_addr> Remove function.
7440 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7441 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
7442 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7443 * linux-mips-low.c (mips_reinsert_addr): Remove function.
7444 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7445 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
7446 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7447 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
7448 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7449
7450 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7451
7452 * linux-low.c (linux_look_up_symbols): Don't call
7453 linux_supports_traceclone.
7454 * linux-low.h (thread_db_init): Remove use_events argument.
7455 * thread-db.c (thread_db_use_event): Remove global variable.
7456 (struct thread_db) <td_thr_event_enable_p>: Remove field.
7457 (struct thread_db) <td_create_bp>: Remove field.
7458 (thread_db_create_event): Remove function.
7459 (thread_db_enable_reporting): Likewise.
7460 (find_one_thread): Don't check for thread_db_use_events.
7461 (attach_thread): Likewise.
7462 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
7463 (try_thread_db_load_1): Don't check for thread_db_use_events.
7464 (thread_db_init): Remove use_events argument and thread events
7465 handling.
7466 (remove_thread_event_breakpoints): Remove function.
7467 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7468
7469 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7470
7471 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7472 New function.
7473 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7474 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
7475 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7476 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
7477 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
7478 Initialize.
7479 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7480 New function.
7481 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7482 * linux-low.c (can_hardware_single_step): Use
7483 supports_hardware_single_step.
7484 (can_software_single_step): New function.
7485 (start_step_over): Call can_software_single_step.
7486 (linux_supports_hardware_single_step): New function.
7487 (struct target_ops) <supports_software_single_step>: Initialize.
7488 * linux-low.h (struct linux_target_ops)
7489 <supports_hardware_single_step>: Initialize.
7490 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
7491 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7492 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
7493 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
7494 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
7495 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7496 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
7497 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7498 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
7499 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
7500 Initialize.
7501 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7502 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7503 Initialize.
7504 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7505 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7506 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7507 New function.
7508 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7509 * target.h (struct target_ops): <supports_software_single_step>:
7510 New field.
7511 (target_supports_software_single_step): New macro.
7512
7513 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7514
7515 * linux-low.c (linux_wait_1): Fix pc advance condition.
7516 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
7517 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
7518
7519 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7520
7521 * linux-arm-low.c (arm_is_thumb_mode): New function.
7522 (arm_breakpoint_at): Use arm_is_thumb_mode.
7523 (arm_breakpoint_kind_from_current_state): New function.
7524 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7525 Initialize.
7526 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7527 (linux_breakpoint_kind_from_current_state): New function.
7528 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7529 * linux-low.h (struct linux_target_ops)
7530 <breakpoint_kind_from_current_state>: New field.
7531 * target.h (struct target_ops): Likewise.
7532 (target_breakpoint_kind_from_current_state): New macro.
7533
7534 2015-11-30 Pedro Alves <palves@redhat.com>
7535
7536 * linux-low.c (linux_resume): Wake up the event loop before
7537 returning.
7538
7539 2015-11-30 Pedro Alves <palves@redhat.com>
7540
7541 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7542 check.
7543 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7544 to -1.
7545 * target.c (struct thread_search): New structure.
7546 (thread_search_callback): New function.
7547 (prev_general_thread): New global.
7548 (prepare_to_access_memory, done_accessing_memory): New functions.
7549 * target.h (prepare_to_access_memory, done_accessing_memory):
7550 Replace macros with function declarations.
7551
7552 2015-11-30 Pedro Alves <palves@redhat.com>
7553
7554 PR 14618
7555 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7556 report TARGET_WAITKIND_NO_RESUMED.
7557 * remote-utils.c (prepare_resume_reply): Handle
7558 TARGET_WAITKIND_NO_RESUMED.
7559 * server.c (report_no_resumed): New global.
7560 (handle_query) <qSupported>: Handle "no-resumed+". Report
7561 "no-resumed+" support.
7562 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7563 return error if the client doesn't support no-resumed events.
7564 (push_stop_notification): New function.
7565 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7566 events if the client supports them.
7567
7568 2015-11-30 Pedro Alves <palves@redhat.com>
7569
7570 * linux-low.c (thread_still_has_status_pending_p): Don't check
7571 vCont;t here.
7572 (lwp_resumed): New function.
7573 (status_pending_p_callback): Return early if the LWP is not
7574 supposed to be resumed.
7575
7576 2015-11-30 Pedro Alves <palves@redhat.com>
7577
7578 * linux-low.c (handle_extended_wait): Assert that the LWP's
7579 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7580 thread create events, leave the new child's status pending.
7581 (linux_low_filter_event): If GDB wants to hear about thread exit
7582 events, leave the LWP marked dead and don't delete it.
7583 (linux_wait_for_event_filtered): Don't check for thread exit.
7584 (filter_exit_event): New function.
7585 (linux_wait_1): Use it, when returning an exit event.
7586 (linux_resume_one_lwp_throw): Assert that the LWP's
7587 waitstatus is TARGET_WAITKIND_IGNORE.
7588 * remote-utils.c (prepare_resume_reply): Handle
7589 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7590 * server.c (report_thread_events): New global.
7591 (handle_general_set): Handle QThreadEvents.
7592 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7593 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7594 TARGET_WAITKIND_THREAD_EXITED.
7595 * server.h (report_thread_events): Declare.
7596
7597 2015-11-30 Pedro Alves <palves@redhat.com>
7598
7599 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7600 the thread's last_resume_kind was resume_stop.
7601
7602 2015-11-30 Pedro Alves <palves@redhat.com>
7603
7604 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7605 before returning.
7606
7607 2015-11-30 Pedro Alves <palves@redhat.com>
7608
7609 * server.c (handle_v_requests): Handle vCtrlC.
7610
7611 2015-11-30 Pedro Alves <palves@redhat.com>
7612
7613 * gdbthread.h (find_any_thread_of_pid): Declare.
7614 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7615 functions.
7616 * server.c (handle_query): If current_thread is NULL, look for
7617 another thread of the selected process.
7618
7619 2015-11-26 Daniel Colascione <dancol@dancol.org>
7620 Simon Marchi <simon.marchi@ericsson.com>
7621
7622 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7623 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7624 name in reply.
7625 * target.h (struct target_ops) <thread_name>: New field.
7626 (target_thread_name): New macro.
7627
7628 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7629
7630 * regcache.h (regcache_invalidate_pid): Add declaration.
7631 * regcache.c (regcache_invalidate_pid): New function, extracted
7632 from regcache_invalidate.
7633 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7634 Add trivial documentation comment.
7635 * lynx-low.c: Use regcache_invalidate_pid instead of
7636 regcache_invalidate.
7637
7638 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7639
7640 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7641 and Elf64_auxv_t if the target is Android.
7642
7643 2015-11-22 Doug Evans <xdje42@gmail.com>
7644
7645 * target.h: #include <sys/types.h>.
7646
7647 2015-11-19 Pedro Alves <palves@redhat.com>
7648
7649 * linux-low.c (linux_process_qsupported): Change prototype.
7650 Adjust.
7651 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7652 Change prototype.
7653 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7654 and adjust to loop over all features.
7655 * server.c (handle_query) <qSupported>: Adjust to call
7656 target_process_qsupported once, passing it a vector of unprocessed
7657 features.
7658 * target.h (struct target_ops) <process_qsupported>: Change
7659 prototype.
7660 (target_process_qsupported): Adjust.
7661
7662 2015-11-19 Pedro Alves <palves@redhat.com>
7663
7664 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7665 mode.
7666 * configure: Regenerate.
7667
7668 2015-11-19 Pedro Alves <palves@redhat.com>
7669
7670 * configure: Regenerate.
7671
7672 2015-11-19 Yao Qi <yao.qi@linaro.org>
7673
7674 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7675 type to uint32_t.
7676
7677 2015-11-19 Yao Qi <yao.qi@linaro.org>
7678
7679 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7680 (struct aarch64_operand): Move enum out.
7681
7682 2015-11-19 Yao Qi <yao.qi@linaro.org>
7683
7684 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7685 struct user_fpsimd_state *.
7686 (aarch64_store_fpregset): Likewise.
7687
7688 2015-11-19 Yao Qi <yao.qi@linaro.org>
7689
7690 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7691 struct user_pt_regs *.
7692 (aarch64_store_gregset): Likewise.
7693
7694 2015-11-18 Pedro Alves <palves@redhat.com>
7695
7696 * Makefile.in (all_object_files): Add $IPA_OBJS.
7697
7698 2015-11-17 Pedro Alves <palves@redhat.com>
7699
7700 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7701 GDB_SIGNAL_0 and gdb_signal_to_string.
7702
7703 2015-11-17 Pedro Alves <palves@redhat.com>
7704
7705 * win32-low.c (handle_output_debug_string): Remove parameter.
7706 (win32_kill): Remove our_status local and adjust call to
7707 handle_output_debug_string.
7708 (get_child_debug_event): Adjust call to
7709 handle_output_debug_string.
7710
7711 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7712
7713 * linux-mips-low.c (mips_fill_gregset): Add cast.
7714 (mips_store_gregset): Likewise.
7715 (mips_fill_fpregset): Likewise.
7716 (mips_store_fpregset): Likewise.
7717
7718 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7719
7720 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7721 priv.
7722
7723 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7724
7725 * linux-mips-low.c (mips_linux_new_thread): Change type of
7726 watch_type to enum target_hw_bp_type.
7727
7728 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7729
7730 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7731 Change return type to arm_hwbp_type.
7732
7733 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7734
7735 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7736 (arm_store_gregset): Likewise.
7737 * linux-arm-low.c (arm_get_hwcap): Likewise.
7738 (arm_read_description): Likewise.
7739
7740 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7741
7742 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7743
7744 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7745
7746 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7747 (ppc_fill_vsxregset): Likewise.
7748 (ppc_store_vsxregset): Likewise.
7749 (ppc_fill_vrregset): Likewise.
7750 (ppc_store_vrregset): Likewise.
7751 (ppc_fill_evrregset): Likewise.
7752 (ppc_store_evrregset): Likewise.
7753
7754 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7755
7756 * linux-ppc-low.c (ppc_usrregs_info): Remove
7757 forward-declaration.
7758 (ppc_arch_setup): Move lower in file.
7759
7760 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7761
7762 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7763 (ps_pdwrite): Likewise.
7764
7765 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7766
7767 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7768 to after assert checks.
7769
7770 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7771
7772 * proc-service.c (ps_pdread): Add/adjust casts.
7773 (ps_pdwrite): Add/adjust casts.
7774
7775 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7776
7777 * server.c (handle_search_memory_1): Cast return value of
7778 memmem.
7779
7780 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7781
7782 * server.c (write_qxfer_response): Change type of data to
7783 gdb_byte *.
7784
7785 2015-10-29 Pedro Alves <palves@redhat.com>
7786
7787 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7788
7789 2015-10-29 Pedro Alves <palves@redhat.com>
7790
7791 * tracepoint.c (clear_installed_tracepoints): Add casts.
7792
7793 2015-10-29 Pedro Alves <palves@redhat.com>
7794
7795 * server.c (handle_v_cont, process_serial_event): Add enum
7796 gdb_signal casts to signal parsing code.
7797
7798 2015-10-29 Pedro Alves <palves@redhat.com>
7799
7800 * linux-low.h (NULL_REGSET): Define.
7801 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7802 * linux-arm-low.c (arm_regsets): Likewise.
7803 * linux-crisv32-low.c (cris_regsets): Likewise.
7804 * linux-m68k-low.c (m68k_regsets): Likewise.
7805 * linux-mips-low.c (mips_regsets): Likewise.
7806 * linux-nios2-low.c (nios2_regsets): Likewise.
7807 * linux-ppc-low.c (ppc_regsets): Likewise.
7808 * linux-s390-low.c (s390_regsets): Likewise.
7809 * linux-sh-low.c (sh_regsets): Likewise.
7810 * linux-sparc-low.c (sparc_regsets): Likewise.
7811 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7812 * linux-tile-low.c (tile_regsets): Likewise.
7813 * linux-x86-low.c (x86_regsets): Likewise.
7814 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7815
7816 2015-10-29 Pedro Alves <palves@redhat.com>
7817
7818 * linux-low.h (NULL_REGSET): Define.
7819 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7820 * linux-arm-low.c (arm_regsets): Likewise.
7821 * linux-crisv32-low.c (cris_regsets): Likewise.
7822 * linux-m68k-low.c (m68k_regsets): Likewise.
7823 * linux-mips-low.c (mips_regsets): Likewise.
7824 * linux-nios2-low.c (nios2_regsets): Likewise.
7825 * linux-ppc-low.c (ppc_regsets): Likewise.
7826 * linux-s390-low.c (s390_regsets): Likewise.
7827 * linux-sh-low.c (sh_regsets): Likewise.
7828 * linux-sparc-low.c (sparc_regsets): Likewise.
7829 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7830 * linux-tile-low.c (tile_regsets): Likewise.
7831 * linux-x86-low.c (x86_regsets): Likewise.
7832 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7833
7834 2015-10-26 Doug Evans <dje@google.com>
7835
7836 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7837
7838 2015-10-26 Doug Evans <dje@google.com>
7839
7840 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7841
7842 2015-10-26 Doug Evans <dje@google.com>
7843
7844 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7845 for debug_printf.
7846 (attach_thread, find_new_threads_callback): Ditto.
7847
7848 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7849
7850 * mem-break.h (set_breakpoint_data): Remove.
7851
7852 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7853
7854 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7855 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7856 (initialize_low): Remove set_breakpoint_data call.
7857 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7858 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7859 (initialize_low): Remove set_breakpoint_data call.
7860 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7861 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7862 (initialize_low): Remove set_breakpoint_data call.
7863
7864 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7865
7866 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7867 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7868 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7869 * target.h (target_breakpoint_kind_from_pc): New macro.
7870
7871 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7872
7873 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7874 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7875 the default breakpoint kind.
7876
7877 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7878
7879 * linux-arm-low.c (arm_supports_z_point_type): Add software
7880 breakpoint support.
7881
7882 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7883
7884 * linux-arm-low.c: Refactor breakpoint definitions.
7885 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7886 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7887
7888 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7889
7890 * Makefile.in: Add arm.c/o.
7891 * configure.srv: Likewise.
7892 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7893 (arm_breakpoint_kind_from_pc): New function.
7894 (arm_sw_breakpoint_from_kind): Return proper kind.
7895 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7896
7897 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7898
7899 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7900 removal.
7901 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7902 (struct raw_breakpoint) <size>: Remove.
7903 (struct raw_breakpoint) <kind>: Add.
7904 (bp_size): New function.
7905 (bp_opcode): Likewise.
7906 (find_raw_breakpoint_at): Adjust for kind.
7907 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7908 (remove_memory_breakpoint): Adjust for kind call bp_size.
7909 (set_raw_breakpoint_at): Adjust for kind.
7910 (set_breakpoint): Likewise.
7911 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7912 (delete_raw_breakpoint): Adjust for kind.
7913 (delete_breakpoint): Likewise.
7914 (find_gdb_breakpoint): Likewise.
7915 (set_gdb_breakpoint_1): Likewise.
7916 (set_gdb_breakpoint): Likewise.
7917 (delete_gdb_breakpoint_1): Likewise.
7918 (delete_gdb_breakpoint): Likewise.
7919 (uninsert_raw_breakpoint): Likewise.
7920 (reinsert_raw_breakpoint): Likewise.
7921 (set_breakpoint_data): Remove.
7922 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7923 (check_mem_read): Adjust for kind call bp_size.
7924 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7925 (clone_one_breakpoint): Adjust for kind.
7926 * mem-break.h (set_gdb_breakpoint): Likewise.
7927 (delete_gdb_breakpoint): Likewise.
7928 * server.c (process_serial_event): Likewise.
7929
7930 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7931
7932 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7933 (struct linux_target_ops) <breakpoint>: Remove.
7934 (struct linux_target_ops) <breakpoint_len>: Remove.
7935 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7936 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7937 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7938 (arm_sw_breakpoint_from_kind): New function.
7939 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7940 (struct linux_target_ops) <breakpoint>: Remove.
7941 (struct linux_target_ops) <breakpoint_len>: Remove.
7942 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7943 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7944 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7945 (struct linux_target_ops) <breakpoint>: Remove.
7946 (struct linux_target_ops) <breakpoint_len>: Remove.
7947 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7948 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7949 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7950 (struct linux_target_ops) <breakpoint>: Remove.
7951 (struct linux_target_ops) <breakpoint_len>: Remove.
7952 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7953 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7954 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7955 and sw_breakpoint_from_kind to increment the pc.
7956 (linux_breakpoint_kind_from_pc): New function.
7957 (linux_sw_breakpoint_from_kind): New function.
7958 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7959 (initialize_low): Call breakpoint_kind_from_pc and
7960 sw_breakpoint_from_kind to replace breakpoint_data/len.
7961 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7962 New field.
7963 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7964 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7965 (struct linux_target_ops) <breakpoint>: Remove.
7966 (struct linux_target_ops) <breakpoint_len>: Remove.
7967 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7968 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7969 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7970 (struct linux_target_ops) <breakpoint>: Remove.
7971 (struct linux_target_ops) <breakpoint_len>: Remove.
7972 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7973 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7974 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7975 (struct linux_target_ops) <breakpoint>: Remove.
7976 (struct linux_target_ops) <breakpoint_len>: Remove.
7977 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7978 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7979 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7980 (struct linux_target_ops) <breakpoint>: Remove.
7981 (struct linux_target_ops) <breakpoint_len>: Remove.
7982 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7983 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7984 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7985 (struct linux_target_ops) <breakpoint>: Remove.
7986 (struct linux_target_ops) <breakpoint_len>: Remove.
7987 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7988 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7989 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7990 (struct linux_target_ops) <breakpoint>: Remove.
7991 (struct linux_target_ops) <breakpoint_len>: Remove.
7992 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7993 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7994 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7995 (struct linux_target_ops) <breakpoint>: Remove.
7996 (struct linux_target_ops) <breakpoint_len>: Remove.
7997 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7998 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7999 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8000 (struct linux_target_ops) <breakpoint>: Remove.
8001 (struct linux_target_ops) <breakpoint_len>: Remove.
8002 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8003 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8004 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8005 (struct linux_target_ops) <breakpoint>: Remove.
8006 (struct linux_target_ops) <breakpoint_len>: Remove.
8007 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8008 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8009 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8010 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8011 (struct linux_target_ops) <breakpoint>: Remove.
8012 (struct linux_target_ops) <breakpoint_len>: Remove.
8013 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8014 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8015 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8016 (struct linux_target_ops) <breakpoint>: Remove.
8017 (struct linux_target_ops) <breakpoint_len>: Remove.
8018 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8019 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8020
8021 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8022
8023 * linux-cris-low.c (cris_get_pc): Remove void arg.
8024
8025 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8026
8027 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8028 variable name.
8029
8030 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8031
8032 * inferiors.c (thread_pid_matches_callback): New function.
8033 (find_thread_process): New function.
8034 (remove_thread): Reset current_thread.
8035 (remove_process): Assert threads have been removed first.
8036
8037 2015-10-15 Yao Qi <yao.qi@linaro.org>
8038
8039 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8040 if it is 3.
8041 (aarch64_remove_point): Likewise.
8042 * regcache.c (regcache_register_size): New function.
8043
8044 2015-10-12 Yao Qi <yao.qi@linaro.org>
8045
8046 * linux-aarch64-low.c: Update all callers as emit_load_store
8047 is renamed to aarch64_emit_load_store.
8048
8049 2015-10-12 Yao Qi <yao.qi@linaro.org>
8050
8051 * linux-aarch64-low.c: Update all callers of function renaming
8052 from emit_insn to aarch64_emit_insn.
8053
8054 2015-10-12 Yao Qi <yao.qi@linaro.org>
8055
8056 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8057 arch/aarch64-insn.h.
8058 (struct aarch64_memory_operand): Likewise.
8059 (ENCODE): Likewise.
8060 (emit_insn): Move to arch/aarch64-insn.c.
8061 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8062 (emit_load_store): Move to arch/aarch64-insn.c.
8063 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8064 (can_encode_int32): Remove.
8065
8066 2015-10-12 Yao Qi <yao.qi@linaro.org>
8067
8068 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8069 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8070 (aarch64_relocate_instruction): Likewise.
8071 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8072 (struct aarch64_insn_visitor): Likewise.
8073
8074 2015-10-12 Yao Qi <yao.qi@linaro.org>
8075
8076 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8077 (struct aarch64_insn_visitor): New.
8078 (struct aarch64_insn_relocation_data): New.
8079 (aarch64_ftrace_insn_reloc_b): New function.
8080 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8081 (aarch64_ftrace_insn_reloc_cb): Likewise.
8082 (aarch64_ftrace_insn_reloc_tb): Likewise.
8083 (aarch64_ftrace_insn_reloc_adr): Likewise.
8084 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8085 (aarch64_ftrace_insn_reloc_others): Likewise.
8086 (visitor): New.
8087 (aarch64_relocate_instruction): Use visitor.
8088
8089 2015-10-12 Yao Qi <yao.qi@linaro.org>
8090
8091 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8092 int. Add argument buf.
8093 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8094 aarch64_relocate_instruction.
8095
8096 2015-10-12 Yao Qi <yao.qi@linaro.org>
8097
8098 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8099 argument insn. Remove local variable insn. Don't call
8100 target_read_uint32.
8101 (aarch64_install_fast_tracepoint_jump_pad): Call
8102 target_read_uint32.
8103
8104 2015-09-30 Yao Qi <yao.qi@linaro.org>
8105
8106 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8107 (emit_load_store_pair): Likewise.
8108
8109 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8110
8111 * dll.c (match_dll): Add cast(s).
8112 (unloaded_dll): Likewise.
8113 * linux-low.c (second_thread_of_pid_p): Likewise.
8114 (delete_lwp_callback): Likewise.
8115 (count_events_callback): Likewise.
8116 (select_event_lwp_callback): Likewise.
8117 (linux_set_resume_request): Likewise.
8118 * server.c (accumulate_file_name_length): Likewise.
8119 (emit_dll_description): Likewise.
8120 (handle_qxfer_threads_worker): Likewise.
8121 (visit_actioned_threads): Likewise.
8122 * thread-db.c (any_thread_of): Likewise.
8123 * tracepoint.c (same_process_p): Likewise.
8124 (match_blocktype): Likewise.
8125 (build_traceframe_info_xml): Likewise.
8126
8127 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8128
8129 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8130 assignment.
8131 (gdb_unparse_agent_expr): Likewise.
8132 * hostio.c (require_data): Likewise.
8133 (handle_pread): Likewise.
8134 * linux-low.c (disable_regset): Likewise.
8135 (fetch_register): Likewise.
8136 (store_register): Likewise.
8137 (get_dynamic): Likewise.
8138 (linux_qxfer_libraries_svr4): Likewise.
8139 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8140 (set_fast_tracepoint_jump): Likewise.
8141 (uninsert_fast_tracepoint_jumps_at): Likewise.
8142 (reinsert_fast_tracepoint_jumps_at): Likewise.
8143 (validate_inserted_breakpoint): Likewise.
8144 (clone_agent_expr): Likewise.
8145 * regcache.c (init_register_cache): Likewise.
8146 * remote-utils.c (putpkt_binary_1): Likewise.
8147 (decode_M_packet): Likewise.
8148 (decode_X_packet): Likewise.
8149 (look_up_one_symbol): Likewise.
8150 (relocate_instruction): Likewise.
8151 (monitor_output): Likewise.
8152 * server.c (handle_search_memory): Likewise.
8153 (handle_qxfer_exec_file): Likewise.
8154 (handle_qxfer_libraries): Likewise.
8155 (handle_qxfer): Likewise.
8156 (handle_query): Likewise.
8157 (handle_v_cont): Likewise.
8158 (handle_v_run): Likewise.
8159 (captured_main): Likewise.
8160 * target.c (write_inferior_memory): Likewise.
8161 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8162 * tracepoint.c (init_trace_buffer): Likewise.
8163 (add_tracepoint_action): Likewise.
8164 (add_traceframe): Likewise.
8165 (add_traceframe_block): Likewise.
8166 (cmd_qtdpsrc): Likewise.
8167 (cmd_qtdv): Likewise.
8168 (cmd_qtstatus): Likewise.
8169 (response_source): Likewise.
8170 (response_tsv): Likewise.
8171 (cmd_qtnotes): Likewise.
8172 (gdb_collect): Likewise.
8173 (initialize_tracepoint): Likewise.
8174
8175 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8176
8177 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8178 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8179 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8180 <NOP>: New.
8181 (enum aarch64_condition_codes): New enum.
8182 (w0): New static global.
8183 (fp): Likewise.
8184 (lr): Likewise.
8185 (struct aarch64_memory_operand) <type>: New
8186 MEMORY_OPERAND_POSTINDEX type.
8187 (postindex_memory_operand): New helper function.
8188 (emit_ret): New function.
8189 (emit_load_store_pair): New function, factored out of emit_stp
8190 with support for MEMORY_OPERAND_POSTINDEX.
8191 (emit_stp): Rewrite using emit_load_store_pair.
8192 (emit_ldp): New function.
8193 (emit_load_store): Likewise.
8194 (emit_ldr): Mention post-index instruction in comment.
8195 (emit_ldrh): New function.
8196 (emit_ldrb): New function.
8197 (emit_ldrsw): Mention post-index instruction in comment.
8198 (emit_str): Likewise.
8199 (emit_subs): New function.
8200 (emit_cmp): Likewise.
8201 (emit_and): Likewise.
8202 (emit_orr): Likewise.
8203 (emit_orn): Likewise.
8204 (emit_eor): Likewise.
8205 (emit_mvn): Likewise.
8206 (emit_lslv): Likewise.
8207 (emit_lsrv): Likewise.
8208 (emit_asrv): Likewise.
8209 (emit_mul): Likewise.
8210 (emit_sbfm): Likewise.
8211 (emit_sbfx): Likewise.
8212 (emit_ubfm): Likewise.
8213 (emit_ubfx): Likewise.
8214 (emit_csinc): Likewise.
8215 (emit_cset): Likewise.
8216 (emit_nop): Likewise.
8217 (emit_ops_insns): New helper function.
8218 (emit_pop): Likewise.
8219 (emit_push): Likewise.
8220 (aarch64_emit_prologue): New function.
8221 (aarch64_emit_epilogue): Likewise.
8222 (aarch64_emit_add): Likewise.
8223 (aarch64_emit_sub): Likewise.
8224 (aarch64_emit_mul): Likewise.
8225 (aarch64_emit_lsh): Likewise.
8226 (aarch64_emit_rsh_signed): Likewise.
8227 (aarch64_emit_rsh_unsigned): Likewise.
8228 (aarch64_emit_ext): Likewise.
8229 (aarch64_emit_log_not): Likewise.
8230 (aarch64_emit_bit_and): Likewise.
8231 (aarch64_emit_bit_or): Likewise.
8232 (aarch64_emit_bit_xor): Likewise.
8233 (aarch64_emit_bit_not): Likewise.
8234 (aarch64_emit_equal): Likewise.
8235 (aarch64_emit_less_signed): Likewise.
8236 (aarch64_emit_less_unsigned): Likewise.
8237 (aarch64_emit_ref): Likewise.
8238 (aarch64_emit_if_goto): Likewise.
8239 (aarch64_emit_goto): Likewise.
8240 (aarch64_write_goto_address): Likewise.
8241 (aarch64_emit_const): Likewise.
8242 (aarch64_emit_call): Likewise.
8243 (aarch64_emit_reg): Likewise.
8244 (aarch64_emit_pop): Likewise.
8245 (aarch64_emit_stack_flush): Likewise.
8246 (aarch64_emit_zero_ext): Likewise.
8247 (aarch64_emit_swap): Likewise.
8248 (aarch64_emit_stack_adjust): Likewise.
8249 (aarch64_emit_int_call_1): Likewise.
8250 (aarch64_emit_void_call_2): Likewise.
8251 (aarch64_emit_eq_goto): Likewise.
8252 (aarch64_emit_ne_goto): Likewise.
8253 (aarch64_emit_lt_goto): Likewise.
8254 (aarch64_emit_le_goto): Likewise.
8255 (aarch64_emit_gt_goto): Likewise.
8256 (aarch64_emit_ge_got): Likewise.
8257 (aarch64_emit_ops_impl): New static global variable.
8258 (aarch64_emit_ops): New target function, return
8259 &aarch64_emit_ops_impl.
8260 (struct linux_target_ops): Install it.
8261
8262 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8263
8264 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8265 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8266 aarch64-ipa.o.
8267 * linux-aarch64-ipa.c: New file.
8268 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8269 and endian.h.
8270 (aarch64_get_thread_area): New target method.
8271 (extract_signed_bitfield): New helper function.
8272 (aarch64_decode_ldr_literal): New function.
8273 (enum aarch64_opcodes): New enum.
8274 (struct aarch64_register): New struct.
8275 (struct aarch64_operand): New struct.
8276 (x0): New static global.
8277 (x1): Likewise.
8278 (x2): Likewise.
8279 (x3): Likewise.
8280 (x4): Likewise.
8281 (w2): Likewise.
8282 (ip0): Likewise.
8283 (sp): Likewise.
8284 (xzr): Likewise.
8285 (aarch64_register): New helper function.
8286 (register_operand): Likewise.
8287 (immediate_operand): Likewise.
8288 (struct aarch64_memory_operand): New struct.
8289 (offset_memory_operand): New helper function.
8290 (preindex_memory_operand): Likewise.
8291 (enum aarch64_system_control_registers): New enum.
8292 (ENCODE): New macro.
8293 (emit_insn): New helper function.
8294 (emit_b): New function.
8295 (emit_bcond): Likewise.
8296 (emit_cb): Likewise.
8297 (emit_tb): Likewise.
8298 (emit_blr): Likewise.
8299 (emit_stp): Likewise.
8300 (emit_ldp_q_offset): Likewise.
8301 (emit_stp_q_offset): Likewise.
8302 (emit_load_store): Likewise.
8303 (emit_ldr): Likewise.
8304 (emit_ldrsw): Likewise.
8305 (emit_str): Likewise.
8306 (emit_ldaxr): Likewise.
8307 (emit_stxr): Likewise.
8308 (emit_stlr): Likewise.
8309 (emit_data_processing_reg): Likewise.
8310 (emit_data_processing): Likewise.
8311 (emit_add): Likewise.
8312 (emit_sub): Likewise.
8313 (emit_mov): Likewise.
8314 (emit_movk): Likewise.
8315 (emit_mov_addr): Likewise.
8316 (emit_mrs): Likewise.
8317 (emit_msr): Likewise.
8318 (emit_sevl): Likewise.
8319 (emit_wfe): Likewise.
8320 (append_insns): Likewise.
8321 (can_encode_int32_in): New helper function.
8322 (aarch64_relocate_instruction): New function.
8323 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
8324 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
8325 (struct linux_target_ops): Install aarch64_get_thread_area,
8326 aarch64_install_fast_tracepoint_jump_pad and
8327 aarch64_get_min_fast_tracepoint_insn_len.
8328
8329 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8330
8331 * Makefile.in (aarch64-insn.o): New rule.
8332 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8333
8334 2015-09-21 Yao Qi <yao.qi@linaro.org>
8335
8336 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8337
8338 2015-09-21 Yao Qi <yao.qi@linaro.org>
8339
8340 * tracepoint.c (max_jump_pad_size): Remove.
8341
8342 2015-09-18 Yao Qi <yao.qi@linaro.org>
8343
8344 * linux-aarch64-low.c: Don't include sys/uio.h.
8345 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8346
8347 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
8348
8349 * tracepoint.c (eval_result_type): Change prototype.
8350 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8351
8352 2015-09-15 Pedro Alves <palves@redhat.com>
8353
8354 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
8355 Check whether to report exec events instead of checking whether
8356 multiprocess is enabled.
8357
8358 2015-09-15 Pedro Alves <palves@redhat.com>
8359
8360 PR remote/18965
8361 * remote-utils.c (prepare_resume_reply): Merge
8362 TARGET_WAITKIND_VFORK_DONE switch case with the
8363 TARGET_WAITKIND_FORKED case.
8364
8365 2015-09-15 Yao Qi <yao.qi@linaro.org>
8366
8367 * server.c (handle_query): Check string comparison using
8368 "else if" instead of "if".
8369
8370 2015-09-15 Yao Qi <yao.qi@linaro.org>
8371
8372 * server.c (vCont_supported): New global variable.
8373 (handle_query): Set vCont_supported to 1 if "vContSupported+"
8374 matches. Append ";vContSupported+" to own_buf.
8375 (handle_v_requests): Append ";s;S" to own_buf if target supports
8376 hardware single step or vCont_supported is false.
8377 (capture_main): Set vCont_supported to zero.
8378
8379 2015-09-15 Yao Qi <yao.qi@linaro.org>
8380
8381 * linux-low.c (linux_supports_conditional_breakpoints): Rename
8382 it to ...
8383 (linux_supports_hardware_single_step): ... New function.
8384 (linux_target_ops): Update.
8385 * lynx-low.c (lynx_target_ops): Set field
8386 supports_hardware_single_step to target_can_do_hardware_single_step.
8387 * nto-low.c (nto_target_ops): Likewise.
8388 * spu-low.c (spu_target_ops): Likewise.
8389 * win32-low.c (win32_target_ops): Likewise.
8390 * target.c (target_can_do_hardware_single_step): New function.
8391 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8392 Remove. <supports_hardware_single_step>: New field.
8393 (target_supports_conditional_breakpoints): Remove.
8394 (target_supports_hardware_single_step): New macro.
8395 (target_can_do_hardware_single_step): Declare.
8396 * server.c (handle_query): Use target_supports_hardware_single_step
8397 instead of target_supports_conditional_breakpoints.
8398
8399 2015-09-15 Yao Qi <yao.qi@linaro.org>
8400
8401 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
8402 function.
8403 (struct linux_target_ops the_low_target): Install
8404 aarch64_linux_siginfo_fixup.
8405
8406 2015-09-11 Don Breazeal <donb@codesourcery.com>
8407 Luis Machado <lgustavo@codesourcery.com>
8408
8409 * linux-low.c (linux_mourn): Static declaration.
8410 (linux_arch_setup): Move in front of
8411 handle_extended_wait.
8412 (linux_arch_setup_thread): New function.
8413 (handle_extended_wait): Handle exec events. Call
8414 linux_arch_setup_thread. Make event_lwp argument a
8415 pointer-to-a-pointer.
8416 (check_zombie_leaders): Do not check stopped threads.
8417 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
8418 (linux_low_filter_event): Add lwp and thread for exec'ing
8419 non-leader thread if leader thread has been deleted.
8420 Refactor code into linux_arch_setup_thread and call it.
8421 Pass child lwp pointer by reference to handle_extended_wait.
8422 (linux_wait_for_event_filtered): Update comment.
8423 (linux_wait_1): Prevent clobbering exec event status.
8424 (linux_supports_exec_events): New function.
8425 (linux_target_ops) <supports_exec_events>: Initialize new member.
8426 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
8427 new member.
8428 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
8429 * server.c (report_exec_events): New global variable.
8430 (handle_query): Handle qSupported query for exec-events feature.
8431 (captured_main): Initialize report_exec_events.
8432 * server.h (report_exec_events): Declare new global variable.
8433 * target.h (struct target_ops) <supports_exec_events>: New
8434 member.
8435 (target_supports_exec_events): New macro.
8436 * win32-low.c (win32_target_ops) <supports_exec_events>:
8437 Initialize new member.
8438
8439 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
8440
8441 * linux-low.c (linux_low_enable_btrace): Remove.
8442 (linux_target_ops): Replace linux_low_enable_btrace with
8443 linux_enable_btrace.
8444
8445 2015-09-03 Yao Qi <yao.qi@linaro.org>
8446
8447 * linux-aarch64-low.c (aarch64_insert_point): Call
8448 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8449 returns true.
8450
8451 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8452
8453 * linux-low.c (check_stopped_by_breakpoint): Use
8454 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8455
8456 2015-08-27 Pedro Alves <palves@redhat.com>
8457
8458 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8459
8460 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8461
8462 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8463 the XNEW-family equivalent.
8464 (compile_bytecodes): Likewise.
8465 * dll.c (loaded_dll): Likewise.
8466 * event-loop.c (append_callback_event): Likewise.
8467 (create_file_handler): Likewise.
8468 (create_file_event): Likewise.
8469 * hostio.c (handle_open): Likewise.
8470 * inferiors.c (add_thread): Likewise.
8471 (add_process): Likewise.
8472 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
8473 * linux-arm-low.c (arm_new_process): Likewise.
8474 (arm_new_thread): Likewise.
8475 * linux-low.c (add_to_pid_list): Likewise.
8476 (linux_add_process): Likewise.
8477 (handle_extended_wait): Likewise.
8478 (add_lwp): Likewise.
8479 (enqueue_one_deferred_signal): Likewise.
8480 (enqueue_pending_signal): Likewise.
8481 (linux_resume_one_lwp_throw): Likewise.
8482 (linux_resume_one_thread): Likewise.
8483 (linux_read_memory): Likewise.
8484 (linux_write_memory): Likewise.
8485 * linux-mips-low.c (mips_linux_new_process): Likewise.
8486 (mips_linux_new_thread): Likewise.
8487 (mips_add_watchpoint): Likewise.
8488 * linux-x86-low.c (initialize_low_arch): Likewise.
8489 * lynx-low.c (lynx_add_process): Likewise.
8490 * mem-break.c (set_raw_breakpoint_at): Likewise.
8491 (set_breakpoint): Likewise.
8492 (add_condition_to_breakpoint): Likewise.
8493 (add_commands_to_breakpoint): Likewise.
8494 (clone_agent_expr): Likewise.
8495 (clone_one_breakpoint): Likewise.
8496 * regcache.c (new_register_cache): Likewise.
8497 * remote-utils.c (look_up_one_symbol): Likewise.
8498 * server.c (queue_stop_reply): Likewise.
8499 (start_inferior): Likewise.
8500 (queue_stop_reply_callback): Likewise.
8501 (handle_target_event): Likewise.
8502 * spu-low.c (fetch_ppc_memory): Likewise.
8503 (store_ppc_memory): Likewise.
8504 * target.c (set_target_ops): Likewise.
8505 * thread-db.c (thread_db_load_search): Likewise.
8506 (try_thread_db_load_1): Likewise.
8507 * tracepoint.c (add_tracepoint): Likewise.
8508 (add_tracepoint_action): Likewise.
8509 (create_trace_state_variable): Likewise.
8510 (cmd_qtdpsrc): Likewise.
8511 (cmd_qtro): Likewise.
8512 (add_while_stepping_state): Likewise.
8513 * win32-low.c (child_add_thread): Likewise.
8514 (get_image_name): Likewise.
8515
8516 2015-08-25 Yao Qi <yao.qi@linaro.org>
8517
8518 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8519
8520 2015-08-25 Yao Qi <yao.qi@linaro.org>
8521
8522 * Makefile.in (aarch64-linux.o): New rule.
8523 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8524 srv_tgtobj.
8525 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8526 (aarch64_init_debug_reg_state): Make it extern.
8527 (aarch64_linux_prepare_to_resume): Remove.
8528
8529 2015-08-25 Yao Qi <yao.qi@linaro.org>
8530
8531 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8532 lwp_arch_private_info and ptid_of_lwp.
8533
8534 2015-08-25 Yao Qi <yao.qi@linaro.org>
8535
8536 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8537 Find proc_info by find_process_pid. All callers updated.
8538
8539 2015-08-25 Yao Qi <yao.qi@linaro.org>
8540
8541 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8542 Remove.
8543 (debug_reg_change_callback): Remove.
8544 (aarch64_notify_debug_reg_change): Remove.
8545
8546 2015-08-25 Yao Qi <yao.qi@linaro.org>
8547
8548 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8549 Call current_lwp_ptid.
8550
8551 2015-08-25 Yao Qi <yao.qi@linaro.org>
8552
8553 * linux-aarch64-low.c (debug_reg_change_callback): Use
8554 debug_printf.
8555
8556 2015-08-25 Yao Qi <yao.qi@linaro.org>
8557
8558 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8559
8560 2015-08-25 Yao Qi <yao.qi@linaro.org>
8561
8562 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8563
8564 2015-08-25 Yao Qi <yao.qi@linaro.org>
8565
8566 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8567 the code.
8568
8569 2015-08-25 Yao Qi <yao.qi@linaro.org>
8570
8571 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8572 Remove.
8573 (debug_reg_change_callback): Remove argument entry and add argument
8574 lwp. Remove local variable thread. Don't print thread id in the
8575 debugging output. Don't check whether pid of thread equals to pid.
8576 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8577 iterate_over_lwps instead find_inferior.
8578
8579 2015-08-24 Pedro Alves <palves@redhat.com>
8580
8581 * inferiors.c (get_first_process): New function.
8582 * inferiors.h (get_first_process): New declaration.
8583 * remote-utils.c (read_ptid): Default to the first process in the
8584 list, instead of to the current thread's process.
8585
8586 2015-08-24 Pedro Alves <palves@redhat.com>
8587
8588 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8589 * event-loop.c: Likewise.
8590 * remote-utils.c: Likewise.
8591 * tracepoint.c: Likewise.
8592
8593 2015-08-24 Pedro Alves <palves@redhat.com>
8594
8595 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8596 ptid_get_lwp.
8597
8598 2015-08-21 Pedro Alves <palves@redhat.com>
8599
8600 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8601 instead of literal 1.
8602
8603 2015-08-21 Pedro Alves <palves@redhat.com>
8604
8605 * tdesc.c (default_description): Explicitly zero-initialize.
8606
8607 2015-08-21 Pedro Alves <palves@redhat.com>
8608
8609 PR gdb/18749
8610 * inferiors.c (remove_thread): Discard any pending stop reply for
8611 this thread.
8612 * server.c (remove_all_on_match_pid): Rename to ...
8613 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8614 instead of a pid.
8615 (discard_queued_stop_replies): Change parameter to a ptid. Now
8616 extern.
8617 (handle_v_kill, kill_inferior_callback, captured_main)
8618 (process_serial_event): Adjust.
8619 * server.h (discard_queued_stop_replies): Declare.
8620
8621 2015-08-21 Pedro Alves <palves@redhat.com>
8622
8623 * linux-low.c (wait_for_sigstop): Always switch to no thread
8624 selected if the previously current thread dies.
8625 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8626 process instead of the current thread's.
8627 * remote-utils.c (input_interrupt): Don't check if there's no
8628 current thread.
8629 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8630 current thread to the general thread fails, error out.
8631 (handle_qxfer_auxv, handle_qxfer_libraries)
8632 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8633 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8634 (handle_query): Check if there's a thread selected instead of
8635 checking whether there's any thread in the thread list.
8636 (handle_qxfer_threads, handle_qxfer_btrace)
8637 (handle_qxfer_btrace_conf): Don't error out early if there's no
8638 thread in the thread list.
8639 (handle_v_cont, myresume): Don't set the current thread to the
8640 continue thread.
8641 (process_serial_event) <Hg handling>: Also set thread_id if the
8642 previous general thread is still alive.
8643 (process_serial_event) <g/G handling>: If setting the current
8644 thread to the general thread fails, error out.
8645 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8646 thread's lwp instead of the current thread's.
8647 * target.c (set_desired_thread): If the desired thread was not
8648 found, leave the current thread pointing to NULL. Return an int
8649 (boolean) indicating success.
8650 * target.h (set_desired_thread): Change return type to int.
8651
8652 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8653
8654 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8655 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8656 #includes.
8657 (ps_get_thread_area): New function.
8658
8659 2015-08-19 Gary Benson <gbenson@redhat.com>
8660
8661 * hostio.c (handle_pread): Do not attempt to read more data
8662 than hostio_reply_with_data can fit in a packet.
8663
8664 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8665
8666 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8667
8668 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8669
8670 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8671
8672 2015-08-06 Pedro Alves <palves@redhat.com>
8673
8674 * tracepoint.c (expr_eval_result): Now an int.
8675
8676 2015-08-06 Pedro Alves <palves@redhat.com>
8677
8678 * gdbthread.h (struct regcache): Forward declare.
8679 (struct thread_info) <regcache_data>: Now a struct regcache
8680 pointer.
8681 * inferiors.c (inferior_regcache_data)
8682 (set_inferior_regcache_data): Now work with struct regcache
8683 pointers.
8684 * inferiors.h (struct regcache): Forward declare.
8685 (inferior_regcache_data, set_inferior_regcache_data): Now work
8686 with struct regcache pointers.
8687 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8688 (free_register_cache_thread): Remove struct regcache pointer
8689 casts.
8690
8691 2015-08-06 Pedro Alves <palves@redhat.com>
8692
8693 * server.c (captured_main): On error, print the exception message
8694 to stderr, and if run_once is set, throw a quit.
8695
8696 2015-08-06 Pedro Alves <palves@redhat.com>
8697
8698 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8699 the current thread.
8700
8701 2015-08-06 Pedro Alves <palves@redhat.com>
8702
8703 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8704 reading beyond the passed in buffer length.
8705
8706 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8707
8708 * tracepoint.c (symbol_list) <required>: Remove.
8709
8710 2015-08-06 Pedro Alves <palves@redhat.com>
8711
8712 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8713 count if stopping and suspending threads.
8714 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8715 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8716 (linux_detach): Complete an ongoing step-over.
8717 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8718 throughout.
8719 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8720 (linux_wait_1): If passing a signal to the inferior after
8721 finishing a step-over, unsuspend and re-resume all lwps. If we
8722 see a single-step event but the thread should be continuing, don't
8723 pass the trap to gdb.
8724 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8725 internal_error instead of gdb_assert.
8726 (enqueue_pending_signal): New function.
8727 (check_ptrace_stopped_lwp_gone): Add debug output.
8728 (start_step_over): Use internal_error instead of gdb_assert.
8729 (complete_ongoing_step_over): New function.
8730 (linux_resume_one_thread): Don't resume a suspended thread.
8731 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8732 it stepping.
8733
8734 2015-08-06 Pedro Alves <palves@redhat.com>
8735
8736 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8737 (linux_thread_alive): Use lwp_is_marked_dead.
8738 (extended_event_reported): Delete.
8739 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8740 instead of extended_event_reported.
8741 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8742 as well.
8743 (lwp_is_marked_dead): New function.
8744 (lwp_running): Use lwp_is_marked_dead.
8745 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8746 comment.
8747
8748 2015-08-06 Pedro Alves <palves@redhat.com>
8749
8750 * linux-low.c (linux_wait_1): Move fork event output out of the
8751 !report_to_gdb check. Pass event_child->waitstatus to
8752 target_waitstatus_to_string instead of ourstatus.
8753
8754 2015-08-04 Yao Qi <yao.qi@linaro.org>
8755
8756 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8757 if current_thread is 32 bit.
8758
8759 2015-08-04 Yao Qi <yao.qi@linaro.org>
8760
8761 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8762 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8763 * server.c (extended_protocol): Remove "static".
8764 * server.h (extended_protocol): Declare it.
8765
8766 2015-08-04 Yao Qi <yao.qi@linaro.org>
8767
8768 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8769 both aarch64 and aarch32.
8770 (aarch64_set_pc): Likewise.
8771
8772 2015-08-04 Yao Qi <yao.qi@linaro.org>
8773
8774 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8775 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8776 arm-with-neon.xml to srv_xmlfiles.
8777 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8778 (is_64bit_tdesc): New function.
8779 (aarch64_linux_read_description): New function.
8780 (aarch64_arch_setup): Call aarch64_linux_read_description.
8781 (regs_info): Rename to regs_info_aarch64.
8782 (aarch64_regs_info): Return right regs_info.
8783 (initialize_low_arch): Call initialize_low_arch_aarch32.
8784
8785 2015-08-04 Yao Qi <yao.qi@linaro.org>
8786
8787 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8788 * linux-aarch32-low.c: New file.
8789 * linux-aarch32-low.h: New file.
8790 * linux-arm-low.c (arm_fill_gregset): Move it to
8791 linux-aarch32-low.c.
8792 (arm_store_gregset): Likewise.
8793 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8794 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8795 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8796 (regs_info): Rename to regs_info_arm.
8797 (arm_regs_info): Return regs_info_aarch32 if
8798 have_ptrace_getregset is 1 and target description is
8799 arm_with_neon or arm_with_vfpv3.
8800 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8801 Call initialize_low_arch_aarch32 instead.
8802
8803 2015-08-04 Yao Qi <yao.qi@linaro.org>
8804
8805 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8806 * linux-low.c: ... here.
8807 * linux-low.h (have_ptrace_getregset): Declare it.
8808
8809 2015-08-04 Pedro Alves <palves@redhat.com>
8810
8811 * thread-db.c (struct thread_db): Use new typedefs.
8812 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8813 CHK calls.
8814 (disable_thread_event_reporting): Cast result of dlsym to
8815 destination function pointer type.
8816 (thread_db_mourn): Use td_ta_delete_ftype.
8817
8818 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8819
8820 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8821 arch variant.
8822 (CDX_BREAKPOINT): Define for R2.
8823 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8824 (the_low_target): Add comments.
8825
8826 2015-07-30 Yao Qi <yao.qi@linaro.org>
8827
8828 * linux-arm-low.c (arm_hwcap): Remove it.
8829 (arm_read_description): New local variable arm_hwcap. Don't
8830 set arm_hwcap to zero.
8831
8832 2015-07-30 Yao Qi <yao.qi@linaro.org>
8833
8834 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8835 Use regcache->tdesc instead.
8836 (arm_store_wmmxregset): Likewise.
8837 (arm_fill_vfpregset): Likewise.
8838 (arm_store_vfpregset): Likewise.
8839
8840 2015-07-30 Yao Qi <yao.qi@linaro.org>
8841
8842 * linux-arm-low.c: Include arch/arm.h.
8843 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8844 (arm_store_gregset): Likewise.
8845
8846 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8847
8848 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8849 ptrace's 4th parameter.
8850
8851 2015-07-27 Yao Qi <yao.qi@linaro.org>
8852
8853 * configure.srv (case aarch64*-*-linux*): Don't set
8854 srv_linux_usrregs.
8855
8856 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8857
8858 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8859 sys/ptrace.h.
8860 * linux-arm-low.c: Likewise.
8861 * linux-cris-low.c: Likewise.
8862 * linux-crisv32-low.c: Likewise.
8863 * linux-low.c: Likewise.
8864 * linux-m68k-low.c: Likewise.
8865 * linux-mips-low.c: Likewise.
8866 * linux-nios2-low.c: Likewise.
8867 * linux-s390-low.c: Likewise.
8868 * linux-sparc-low.c: Likewise.
8869 * linux-tic6x-low.c: Likewise.
8870 * linux-tile-low.c: Likewise.
8871 * linux-x86-low.c: Likewise.
8872
8873 2015-07-24 Pedro Alves <palves@redhat.com>
8874
8875 * config.in: Regenerate.
8876 * configure: Regenerate.
8877
8878 2015-07-24 Pedro Alves <palves@redhat.com>
8879
8880 * acinclude.m4: Include ../ptrace.m4.
8881 * configure.ac: Call GDB_AC_PTRACE.
8882 * config.in, configure: Regenerate.
8883
8884 2015-07-24 Yao Qi <yao.qi@linaro.org>
8885
8886 * linux-low.c (linux_create_inferior): Remove setting to
8887 proc->priv->new_inferior.
8888 (linux_attach): Likewise.
8889 (linux_low_filter_event): Likewise.
8890 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8891
8892 2015-07-24 Yao Qi <yao.qi@linaro.org>
8893
8894 * linux-low.c (linux_arch_setup): New function.
8895 (linux_low_filter_event): If proc->tdesc is NULL and
8896 proc->attached is true, call the_low_target.arch_setup.
8897 Otherwise, keep status pending, and return.
8898 (linux_resume_one_lwp_throw): Don't call get_pc if
8899 thread->while_stepping isn't NULL. Don't call
8900 get_thread_regcache if proc->tdesc is NULL.
8901 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8902 (linux_target_ops): Install arch_setup.
8903 * server.c (start_inferior): Call the_target->arch_setup.
8904 * target.h (struct target_ops) <arch_setup>: New field.
8905 (target_arch_setup): New marco.
8906 * lynx-low.c (lynx_target_ops): Update.
8907 * nto-low.c (nto_target_ops): Update.
8908 * spu-low.c (spu_target_ops): Update.
8909 * win32-low.c (win32_target_ops): Update.
8910
8911 2015-07-24 Yao Qi <yao.qi@linaro.org>
8912
8913 * linux-low.c (linux_add_process): Don't set
8914 proc->priv->new_inferior.
8915 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8916 (linux_attach): Likewise.
8917
8918 2015-07-24 Yao Qi <yao.qi@linaro.org>
8919
8920 * server.c (start_inferior): Code refactor.
8921
8922 2015-07-24 Yao Qi <yao.qi@linaro.org>
8923
8924 * server.c (process_serial_event): Set general_thread.
8925
8926 2015-07-21 Yao Qi <yao.qi@linaro.org>
8927
8928 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8929 aarch64_linux_get_debug_reg_capacity.
8930
8931 2015-07-17 Yao Qi <yao.qi@linaro.org>
8932
8933 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8934 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8935 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8936 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8937 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8938 (AARCH64_HWP_ALIGNMENT): Likewise.
8939 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8940 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8941 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8942 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8943 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8944 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8945 (struct aarch64_debug_reg_state): Likewise.
8946 (struct arch_lwp_info): Likewise.
8947 (aarch64_align_watchpoint): Likewise.
8948 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8949 (aarch64_watchpoint_length): Likewise.
8950 (aarch64_point_encode_ctrl_reg): Likewise
8951 (aarch64_point_is_aligned): Likewise.
8952 (aarch64_align_watchpoint): Likewise.
8953 (aarch64_linux_set_debug_regs):
8954 (aarch64_dr_state_insert_one_point): Likewise.
8955 (aarch64_dr_state_remove_one_point): Likewise.
8956 (aarch64_handle_breakpoint): Likewise.
8957 (aarch64_handle_aligned_watchpoint): Likewise.
8958 (aarch64_handle_unaligned_watchpoint): Likewise.
8959 (aarch64_handle_watchpoint): Likewise.
8960
8961 2015-07-17 Yao Qi <yao.qi@linaro.org>
8962
8963 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8964 and don't aarch64_get_debug_reg_state. All callers update.
8965 (aarch64_handle_aligned_watchpoint): Likewise.
8966 (aarch64_handle_unaligned_watchpoint): Likewise.
8967 (aarch64_handle_watchpoint): Likewise.
8968 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8969 (aarch64_remove_point): Likewise.
8970
8971 2015-07-17 Yao Qi <yao.qi@linaro.org>
8972
8973 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8974 debug_printf.
8975 (aarch64_handle_unaligned_watchpoint): Likewise.
8976
8977 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8978
8979 Revert the previous 3 commits:
8980 Move gdb_regex* to common/
8981 Move linux_find_memory_regions_full & co.
8982 gdbserver build-id attribute generator
8983
8984 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8985 Jan Kratochvil <jan.kratochvil@redhat.com>
8986
8987 gdbserver build-id attribute generator.
8988 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8989 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8990 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8991 (find_phdr): New.
8992 (get_dynamic): Use find_pdhr to traverse program headers.
8993 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8994 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8995 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8996 (get_hex_build_id): New.
8997 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8998 to reply XML document.
8999
9000 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9001 Jan Kratochvil <jan.kratochvil@redhat.com>
9002
9003 * target.c: Include target/target-utils.h and fcntl.h.
9004 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9005 (target_fileio_read_stralloc): New functions.
9006
9007 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9008
9009 * Makefile.in (OBS): Add gdb_regex.o.
9010 (gdb_regex.o): New.
9011 * config.in: Rebuilt.
9012 * configure: Rebuilt.
9013
9014 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9015 Jan Kratochvil <jan.kratochvil@redhat.com>
9016
9017 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9018 * Makefile.in (OBS): Add target-utils.o.
9019 (linux-maps.o, target-utils.o): New.
9020 * configure.srv (srv_linux_obj): Add linux-maps.o.
9021
9022 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9023
9024 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9025 function, return 1.
9026 (the_low_target): Install it.
9027
9028 2015-07-14 Pedro Alves <palves@redhat.com>
9029
9030 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9031 Instead, ignore ECHILD, and throw an error for other errnos.
9032
9033 2015-07-10 Pedro Alves <palves@redhat.com>
9034
9035 * event-loop.c (struct callback_event) <data>: Change type to
9036 gdb_client_data instance instead of gdb_client_data pointer.
9037 (append_callback_event): Adjust.
9038
9039 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9040
9041 * linux-aarch64-low.c: Add comments for each linux_target_ops
9042 method. Remove comments already covered in target_ops and
9043 linux_target_ops definitions.
9044 (the_low_target): Add comments for each unimplemented method.
9045
9046 2015-07-09 Yao Qi <yao.qi@linaro.org>
9047
9048 * linux-aarch64-low.c (aarch64_regmap): Remove.
9049 (aarch64_usrregs_info): Remove.
9050 (regs_info): Set field usrregs to NULL.
9051
9052 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9053
9054 * linux-low.c: Include "rsp-low.h"
9055 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9056 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9057 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9058 (handle_btrace_enable_pt): New.
9059 (handle_btrace_general_set): Support "pt".
9060 (handle_btrace_conf_general_set): Support "pt:size".
9061
9062 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9063
9064 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9065 Z_PACKET_SW_BP.
9066
9067 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9068
9069 * linux-aarch64-low.c: Remove comment about endianness.
9070 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9071 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9072 memcmp.
9073
9074 2015-06-24 Gary Benson <gbenson@redhat.com>
9075
9076 * linux-i386-ipa.c (stdint.h): Do not include.
9077 * lynx-i386-low.c (stdint.h): Likewise.
9078 * lynx-ppc-low.c (stdint.h): Likewise.
9079 * mem-break.c (stdint.h): Likewise.
9080 * thread-db.c (stdint.h): Likewise.
9081 * tracepoint.c (stdint.h): Likewise.
9082 * win32-low.c (stdint.h): Likewise.
9083
9084 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9085
9086 * server.c (write_qxfer_response): Update call to
9087 remote_escape_output.
9088
9089 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9090 Jan Kratochvil <jan.kratochvil@redhat.com>
9091
9092 Merge multiple hex conversions.
9093 * gdbreplay.c (tohex): Rename to 'fromhex'.
9094 (logchar): Use fromhex.
9095
9096 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 * server.c (handle_qxfer_libraries): Set `version' attribute for
9099 <library-list>.
9100
9101 2015-06-10 Gary Benson <gbenson@redhat.com>
9102
9103 * target.h (struct target_ops) <multifs_open>: New field.
9104 <multifs_unlink>: Likewise.
9105 <multifs_readlink>: Likewise.
9106 * linux-low.c (nat/linux-namespaces.h): New include.
9107 (linux_target_ops): Initialize the_target->multifs_open,
9108 the_target->multifs_unlink and the_target->multifs_readlink.
9109 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9110 * hostio.c (hostio_fs_pid): New static variable.
9111 (hostio_handle_new_gdb_connection): New function.
9112 (handle_setfs): Likewise.
9113 (handle_open): Use the_target->multifs_open as appropriate.
9114 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9115 (handle_readlink): Use the_target->multifs_readlink as
9116 appropriate.
9117 (handle_vFile): Handle vFile:setfs packets.
9118 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9119 after target_handle_new_gdb_connection.
9120
9121 2015-06-10 Gary Benson <gbenson@redhat.com>
9122
9123 * configure.ac (AC_CHECK_FUNCS): Add setns.
9124 * config.in: Regenerate.
9125 * configure: Likewise.
9126 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9127 (linux-namespaces.o): New rule.
9128 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9129
9130 2015-06-09 Gary Benson <gbenson@redhat.com>
9131
9132 * hostio.c (handle_open): Process mode argument with
9133 fileio_to_host_mode.
9134
9135 2015-06-01 Yao Qi <yao.qi@linaro.org>
9136
9137 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9138 * linux-x86-low.c: Likewise.
9139
9140 2015-05-28 Don Breazeal <donb@codesourcery.com>
9141
9142 * linux-low.c (handle_extended_wait): Initialize
9143 thread_info.last_resume_kind for new fork children.
9144
9145 2015-05-15 Pedro Alves <palves@redhat.com>
9146
9147 * target.h (target_handle_new_gdb_connection): Rewrite using if
9148 wrapped in do/while.
9149
9150 2015-05-14 Joel Brobecker <brobecker@adacore.com>
9151
9152 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9153 * configure, config.in: Regenerate.
9154 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9155 Declare typedef.
9156
9157 2015-05-12 Don Breazeal <donb@codesourcery.com>
9158
9159 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9160 PTRACE_EVENT_VFORK_DONE.
9161 (linux_low_ptrace_options, extended_event_reported): Add vfork
9162 events.
9163 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9164 and "vforkdone" for RSP 'T' Stop Reply Packet.
9165 * server.h (report_vfork_events): Declare
9166 global variable.
9167
9168 2015-05-12 Don Breazeal <donb@codesourcery.com>
9169
9170 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9171 (the_low_target) <new_fork>: Initialize new member.
9172 * linux-arm-low.c (arm_new_fork): New function.
9173 (the_low_target) <new_fork>: Initialize new member.
9174 * linux-low.c (handle_extended_wait): Call new target function
9175 new_fork.
9176 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9177 * linux-mips-low.c (mips_add_watchpoint): New function
9178 extracted from mips_insert_point.
9179 (the_low_target) <new_fork>: Initialize new member.
9180 (mips_linux_new_fork): New function.
9181 (mips_insert_point): Call mips_add_watchpoint.
9182 * linux-x86-low.c (x86_linux_new_fork): New function.
9183 (the_low_target) <new_fork>: Initialize new member.
9184
9185 2015-05-12 Don Breazeal <donb@codesourcery.com>
9186
9187 * linux-low.c (handle_extended_wait): Implement return value,
9188 rename argument 'event_child' to 'event_lwp', handle
9189 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9190 (linux_low_ptrace_options): New function.
9191 (linux_low_filter_event): Call linux_low_ptrace_options,
9192 use different argument fo linux_enable_event_reporting,
9193 use return value from handle_extended_wait.
9194 (extended_event_reported): New function.
9195 (linux_wait_1): Call extended_event_reported and set
9196 status to report fork events.
9197 (linux_write_memory): Add pid to debug message.
9198 (reset_lwp_ptrace_options_callback): New function.
9199 (linux_handle_new_gdb_connection): New function.
9200 (linux_target_ops): Initialize new structure member.
9201 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9202 * lynx-low.c: Initialize new structure member.
9203 * remote-utils.c (prepare_resume_reply): Implement stop reason
9204 "fork" for "T" stop message.
9205 * server.c (handle_query): Call handle_new_gdb_connection.
9206 * server.h (report_fork_events): Declare global flag.
9207 * target.h (struct target_ops) <handle_new_gdb_connection>:
9208 New member.
9209 (target_handle_new_gdb_connection): New macro.
9210 * win32-low.c: Initialize new structure member.
9211
9212 2015-05-12 Don Breazeal <donb@codesourcery.com>
9213
9214 * mem-break.c (APPEND_TO_LIST): Define macro.
9215 (clone_agent_expr): New function.
9216 (clone_one_breakpoint): New function.
9217 (clone_all_breakpoints): New function.
9218 * mem-break.h: Declare new functions.
9219
9220 2015-05-12 Don Breazeal <donb@codesourcery.com>
9221
9222 * linux-low.c (linux_supports_fork_events): New function.
9223 (linux_supports_vfork_events): New function.
9224 (linux_target_ops): Initialize new structure members.
9225 (initialize_low): Call linux_check_ptrace_features.
9226 * lynx-low.c (lynx_target_ops): Initialize new structure
9227 members.
9228 * server.c (report_fork_events, report_vfork_events):
9229 New global flags.
9230 (handle_query): Add new features to qSupported packet and
9231 response.
9232 (captured_main): Initialize new global variables.
9233 * target.h (struct target_ops) <supports_fork_events>:
9234 New member.
9235 <supports_vfork_events>: New member.
9236 (target_supports_fork_events): New macro.
9237 (target_supports_vfork_events): New macro.
9238 * win32-low.c (win32_target_ops): Initialize new structure
9239 members.
9240
9241 2015-05-12 Gary Benson <gbenson@redhat.com>
9242
9243 * server.c (handle_qxfer_exec_file): Use current process
9244 if annex is empty.
9245
9246 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9247
9248 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9249 Remove HAVE_PTRACE_GETREGS conditionals.
9250 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9251 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9252
9253 2015-05-08 Yao Qi <yao.qi@linaro.org>
9254
9255 * linux-low.c (linux_supports_conditional_breakpoints): New
9256 function.
9257 (linux_target_ops): Install new target method.
9258 * lynx-low.c (lynx_target_ops): Install NULL hook for
9259 supports_conditional_breakpoints.
9260 * nto-low.c (nto_target_ops): Likewise.
9261 * spu-low.c (spu_target_ops): Likewise.
9262 * win32-low.c (win32_target_ops): Likewise.
9263 * server.c (handle_query): Check
9264 target_supports_conditional_breakpoints.
9265 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9266 New field.
9267 (target_supports_conditional_breakpoints): New macro.
9268
9269 2015-05-06 Pedro Alves <palves@redhat.com>
9270
9271 PR server/18081
9272 * server.c (start_inferior): If the process exits, mourn it.
9273
9274 2015-04-21 Gary Benson <gbenson@redhat.com>
9275
9276 * hostio.c (fileio_open_flags_to_host): Factored out to
9277 fileio_to_host_openflags in common/fileio.c. Single use
9278 updated.
9279
9280 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9281
9282 * linux-xtensa-low.c (xtensa_fill_gregset)
9283 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9284 XCHAL_HAVE_LOOP.
9285
9286 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9287
9288 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9289 (regs_info): Replace usrregs pointer with NULL.
9290
9291 2015-04-17 Gary Benson <gbenson@redhat.com>
9292
9293 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9294 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9295 * server.c (handle_qxfer_exec_file): New function.
9296 (qxfer_packets): Add exec-file entry.
9297 (handle_query): Report qXfer:exec-file:read as supported packet.
9298
9299 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9300
9301 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9302
9303 2015-04-09 Gary Benson <gbenson@redhat.com>
9304
9305 * hostio-errno.c (errno_to_fileio_error): Remove function.
9306 Update caller to use remote_fileio_to_fio_error.
9307
9308 2015-04-09 Yao Qi <yao.qi@linaro.org>
9309
9310 * linux-low.c (linux_insert_point): Call
9311 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
9312 (linux_remove_point): Call remove_memory_breakpoint if type is
9313 raw_bkpt_type_sw.
9314 * linux-x86-low.c (x86_insert_point): Don't call
9315 insert_memory_breakpoint.
9316 (x86_remove_point): Don't call remove_memory_breakpoint.
9317
9318 2015-04-01 Pedro Alves <palves@redhat.com>
9319 Cleber Rosa <crosa@redhat.com>
9320
9321 * server.c (gdbserver_usage): Reorganize and extend the usage
9322 message.
9323
9324 2015-03-24 Pedro Alves <palves@redhat.com>
9325
9326 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
9327 output. Also dump TRAP_TRACE.
9328 (linux_low_filter_event): In debug output, distinguish a
9329 resume_stop SIGSTOP from a delayed SIGSTOP.
9330
9331 2015-03-24 Gary Benson <gbenson@redhat.com>
9332
9333 * linux-x86-low.c (x86_linux_new_thread): Moved to
9334 nat/x86-linux.c.
9335 (x86_linux_prepare_to_resume): Likewise.
9336
9337 2015-03-24 Gary Benson <gbenson@redhat.com>
9338
9339 * Makefile.in (x86-linux-dregs.o): New rule.
9340 * configure.srv: Add x86-linux-dregs.o to relevant targets.
9341 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
9342 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9343 (x86_linux_dr_get): Likewise.
9344 (x86_linux_dr_set): Likewise.
9345 (update_debug_registers_callback): Likewise.
9346 (x86_linux_dr_set_addr): Likewise.
9347 (x86_linux_dr_get_addr): Likewise.
9348 (x86_linux_dr_set_control): Likewise.
9349 (x86_linux_dr_get_control): Likewise.
9350 (x86_linux_dr_get_status): Likewise.
9351 (x86_linux_update_debug_registers): Likewise.
9352
9353 2015-03-24 Gary Benson <gbenson@redhat.com>
9354
9355 * linux-x86-low.c (x86_linux_update_debug_registers):
9356 New function, factored out from...
9357 (x86_linux_prepare_to_resume): ...this.
9358
9359 2015-03-24 Gary Benson <gbenson@redhat.com>
9360
9361 * linux-x86-low.c (x86_linux_dr_get): Update comments.
9362 (x86_linux_dr_set): Likewise.
9363 (update_debug_registers_callback): Likewise.
9364 (x86_linux_dr_set_addr): Likewise.
9365 (x86_linux_dr_get_addr): Likewise.
9366 (x86_linux_dr_set_control): Likewise.
9367 (x86_linux_dr_get_control): Likewise.
9368 (x86_linux_dr_get_status): Likewise.
9369 (x86_linux_prepare_to_resume): Likewise.
9370
9371 2015-03-24 Gary Benson <gbenson@redhat.com>
9372
9373 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
9374 Use perror_with_name. Pass string through gettext.
9375 (x86_linux_dr_set): Likewise.
9376
9377 2015-03-24 Gary Benson <gbenson@redhat.com>
9378
9379 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
9380 (x86_linux_dr_set_addr): ...this.
9381 (x86_dr_low_get_addr): Rename to...
9382 (x86_linux_dr_get_addr): ...this.
9383 (x86_dr_low_set_control): Rename to...
9384 (x86_linux_dr_set_control): ...this.
9385 (x86_dr_low_get_control): Rename to...
9386 (x86_linux_dr_get_control): ...this.
9387 (x86_dr_low_get_status): Rename to...
9388 (x86_linux_dr_get_status): ...this.
9389 (x86_dr_low): Update with new function names.
9390
9391 2015-03-24 Gary Benson <gbenson@redhat.com>
9392
9393 * Makefile.in (x86-linux.o): New rule.
9394 * configure.srv: Add x86-linux.o to relevant targets.
9395 * linux-low.c (lwp_set_arch_private_info): New function.
9396 (lwp_arch_private_info): Likewise.
9397 * linux-x86-low.c: Include nat/x86-linux.h.
9398 (arch_lwp_info): Removed structure.
9399 (update_debug_registers_callback):
9400 Use lwp_set_debug_registers_changed.
9401 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9402 and lwp_set_debug_registers_changed.
9403 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9404
9405 2015-03-24 Gary Benson <gbenson@redhat.com>
9406
9407 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
9408 * linux-arm-low.c (arm_new_thread): Likewise.
9409 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
9410 * linux-mips-low.c (mips_linux_new_thread): Likewise.
9411 * linux-x86-low.c (x86_linux_new_thread): Likewise.
9412 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
9413
9414 2015-03-24 Gary Benson <gbenson@redhat.com>
9415
9416 * linux-low.c (ptid_of_lwp): New function.
9417 (lwp_is_stopped): Likewise.
9418 (lwp_stop_reason): Likewise.
9419 * linux-x86-low.c (update_debug_registers_callback):
9420 Use lwp_is_stopped.
9421 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9422 lwp_stop_reason.
9423
9424 2015-03-24 Gary Benson <gbenson@redhat.com>
9425
9426 * linux-low.h (linux_stop_lwp): Remove declaration.
9427
9428 2015-03-24 Gary Benson <gbenson@redhat.com>
9429
9430 * linux-low.h: Include nat/linux-nat.h.
9431 * linux-low.c (iterate_over_lwps_args): New structure.
9432 (iterate_over_lwps_filter): New function.
9433 (iterate_over_lwps): Likewise.
9434 * linux-x86-low.c (update_debug_registers_callback):
9435 Update signature to what iterate_over_lwps expects.
9436 Remove PID check that iterate_over_lwps now performs.
9437 (x86_dr_low_set_addr): Use iterate_over_lwps.
9438 (x86_dr_low_set_control): Likewise.
9439
9440 2015-03-24 Gary Benson <gbenson@redhat.com>
9441
9442 * linux-x86-low.c (x86_debug_reg_state): New function.
9443 (x86_linux_prepare_to_resume): Use the above.
9444
9445 2015-03-24 Gary Benson <gbenson@redhat.com>
9446
9447 * linux-low.c (current_lwp_ptid): New function.
9448 * linux-x86-low.c: Include nat/linux-nat.h.
9449 (x86_dr_low_get_addr): Use current_lwp_ptid.
9450 (x86_dr_low_get_control): Likewise.
9451 (x86_dr_low_get_status): Likewise.
9452
9453 2015-03-20 Pedro Alves <palves@redhat.com>
9454
9455 * tracepoint.c (cmd_qtstatus): Make "str" const.
9456
9457 2015-03-20 Pedro Alves <palves@redhat.com>
9458
9459 * server.c (handle_general_set): Make "req_str" const.
9460
9461 2015-03-19 Pedro Alves <palves@redhat.com>
9462
9463 * linux-low.c (linux_resume_one_lwp): Rename to ...
9464 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9465 instead call perror_with_name.
9466 (check_ptrace_stopped_lwp_gone): New function.
9467 (linux_resume_one_lwp): Reimplement as wrapper around
9468 linux_resume_one_lwp_throw that swallows errors if the LWP is
9469 gone.
9470
9471 2015-03-19 Pedro Alves <palves@redhat.com>
9472
9473 * linux-low.c (count_events_callback, select_event_lwp_callback):
9474 No longer check whether the thread has resume_stop as last resume
9475 kind.
9476
9477 2015-03-19 Pedro Alves <palves@redhat.com>
9478
9479 * linux-low.c (count_events_callback, select_event_lwp_callback):
9480 Use the lwp's status_pending_p field, not the thread's.
9481
9482 2015-03-19 Pedro Alves <palves@redhat.com>
9483
9484 * linux-low.c (select_event_lwp_callback): Update comments to
9485 no longer mention SIGTRAP.
9486
9487 2015-03-18 Gary Benson <gbenson@redhat.com>
9488
9489 * server.c (handle_query): Do not report vFile:fstat as supported.
9490
9491 2015-03-11 Gary Benson <gbenson@redhat.com>
9492
9493 * hostio.c (sys/types.h): New include.
9494 (sys/stat.h): Likewise.
9495 (common-remote-fileio.h): Likewise.
9496 (handle_fstat): New function.
9497 (handle_vFile): Handle vFile:fstat packets.
9498
9499 2015-03-11 Gary Benson <gbenson@redhat.com>
9500
9501 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9502 struct stat.st_blocks and struct stat.st_blksize.
9503 * configure: Regenerate.
9504 * config.in: Likewise.
9505 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9506 (OBS): Add common-remote-fileio.o.
9507 (common-remote-fileio.o): New rule.
9508
9509 2015-03-09 Pedro Alves <palves@redhat.com>
9510
9511 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9512 'struct sockaddr' pointer in 'accept' call.
9513
9514 2015-03-09 Pedro Alves <palves@redhat.com>
9515
9516 Revert:
9517 2015-03-07 Pedro Alves <palves@redhat.com>
9518 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9519 or <winsock2.h> here. Instead include "gdb_socket.h".
9520 (remote_open): Use union gdb_sockaddr_u.
9521 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9522 or <winsock2.h> here. Instead include "gdb_socket.h".
9523 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9524 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9525 or <sys/un.h>.
9526 (init_named_socket, gdb_agent_helper_thread): Use union
9527 gdb_sockaddr_u.
9528
9529 2015-03-07 Pedro Alves <palves@redhat.com>
9530
9531 * configure.ac (build_warnings): Move
9532 -Wdeclaration-after-statement to the C-specific set.
9533 * configure: Regenerate.
9534
9535 2015-03-07 Pedro Alves <palves@redhat.com>
9536
9537 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9538 or <winsock2.h> here. Instead include "gdb_socket.h".
9539 (remote_open): Use union gdb_sockaddr_u.
9540 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9541 or <winsock2.h> here. Instead include "gdb_socket.h".
9542 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9543 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9544 or <sys/un.h>.
9545 (init_named_socket, gdb_agent_helper_thread): Use union
9546 gdb_sockaddr_u.
9547
9548 2015-03-07 Pedro Alves <palves@redhat.com>
9549
9550 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9551 instead.
9552
9553 2015-03-06 Yao Qi <yao.qi@linaro.org>
9554
9555 * linux-aarch64-low.c (aarch64_insert_point): Use
9556 show_debug_regs as a boolean.
9557 (aarch64_remove_point): Likewise.
9558
9559 2015-03-05 Pedro Alves <palves@redhat.com>
9560
9561 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9562 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9563 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9564 * nto-low.c (nto_target_ops): Likewise.
9565 * spu-low.c (spu_target_ops): Likewise.
9566 * win32-low.c (win32_target_ops): Likewise.
9567
9568 2015-03-04 Pedro Alves <palves@redhat.com>
9569
9570 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9571 Decide whether a breakpoint triggered based on the SIGTRAP's
9572 siginfo.si_code.
9573 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9574 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9575 (linux_low_filter_event): Check for breakpoints before checking
9576 watchpoints.
9577 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9578 siginfo.si_code.
9579 (linux_stopped_by_sw_breakpoint)
9580 (linux_supports_stopped_by_sw_breakpoint)
9581 (linux_stopped_by_hw_breakpoint)
9582 (linux_supports_stopped_by_hw_breakpoint): New functions.
9583 (linux_target_ops): Install new target methods.
9584
9585 2015-03-04 Pedro Alves <palves@redhat.com>
9586
9587 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9588 * server.c (swbreak_feature, hwbreak_feature): New globals.
9589 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9590 (captured_main): Clear swbreak_feature and hwbreak_feature.
9591 * server.h (swbreak_feature, hwbreak_feature): Declare.
9592 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9593 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9594 supports_stopped_by_hw_breakpoint>: New fields.
9595 (target_supports_stopped_by_sw_breakpoint)
9596 (target_stopped_by_sw_breakpoint)
9597 (target_supports_stopped_by_hw_breakpoint)
9598 (target_stopped_by_hw_breakpoint): Declare.
9599
9600 2015-03-04 Pedro Alves <palves@redhat.com>
9601
9602 enum lwp_stop_reason -> enum target_stop_reason
9603 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9604 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9605 (linux_wait_1, stuck_in_jump_pad_callback)
9606 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9607 (linux_stopped_by_watchpoint):
9608 * linux-low.h (enum lwp_stop_reason): Delete.
9609 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9610 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9611
9612 2015-03-04 Yao Qi <yao.qi@linaro.org>
9613
9614 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9615
9616 2015-03-03 Gary Benson <gbenson@redhat.com>
9617
9618 * hostio.c (handle_vFile): Fix prefix lengths.
9619
9620 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9621
9622 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9623 ptr_bits.
9624
9625 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9626
9627 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9628 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9629 (clean): Add "rm -f" for above C files.
9630 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9631 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9632 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9633 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9634 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9635 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9636 (init_registers_s390x_vx_linux64)
9637 (init_registers_s390x_tevx_linux64)
9638 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9639 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9640 declarations.
9641 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9642 (s390_store_vxrs_high): New functions.
9643 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9644 NT_S390_VXRS_HIGH.
9645 (s390_arch_setup): Add logic for selecting one of the new target
9646 descriptions. Activate the new vector regsets if applicable.
9647 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9648 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9649 and init_registers_s390x_tevx_linux64.
9650
9651 2015-03-01 Pedro Alves <palves@redhat.com>
9652
9653 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9654 parameter.
9655
9656 2015-02-27 Pedro Alves <palves@redhat.com>
9657
9658 * linux-x86-low.c (u_debugreg_offset): New function.
9659 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9660
9661 2015-02-27 Pedro Alves <palves@redhat.com>
9662
9663 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9664 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9665 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9666 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9667 (ps_lsetfpregs, ps_getpid)
9668 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9669 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9670 (ps_lsetxregs, ps_plog): Declare.
9671
9672 2015-02-27 Pedro Alves <palves@redhat.com>
9673
9674 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9675 IP_AGENT_EXPORT_FUNC.
9676 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9677 IP_AGENT_EXPORT_FUNC.
9678 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9679 (IP_AGENT_EXPORT): Delete.
9680 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9681 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9682 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9683 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9684 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9685 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9686 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9687 (traceframe_read_count, traceframe_write_count)
9688 (traceframes_created, trace_state_variables, get_raw_reg)
9689 (get_trace_state_variable_value, set_trace_state_variable_value)
9690 (ust_loaded, helper_thread_id, cmd_buf): Use
9691 IPA_SYM_EXPORTED_NAME.
9692 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9693 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9694 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9695 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9696 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9697 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9698 EXTERN_C_PUSH/EXTERN_C_POP.
9699 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9700 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9701 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9702 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9703 (traceframe_write_count, traceframe_read_count)
9704 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9705 (about_to_request_buffer_space, get_trace_state_variable_value)
9706 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9707 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9708 EXTERN_C_PUSH/EXTERN_C_POP.
9709 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9710 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9711 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9712 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9713 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9714 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9715 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9716 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9717 Define.
9718 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9719 (IP_AGENT_EXPORT_VAR_DECL): Define.
9720 (tracing): Declare.
9721 (gdb_agent_get_raw_reg): Declare.
9722
9723 2015-02-27 Tom Tromey <tromey@redhat.com>
9724 Pedro Alves <palves@redhat.com>
9725
9726 Rename symbols whose names are reserved C++ keywords throughout.
9727
9728 2015-02-27 Pedro Alves <palves@redhat.com>
9729
9730 * Makefile.in (COMPILER): New, get it from autoconf.
9731 (CXX): Get from autoconf instead.
9732 (COMPILE.pre): Use COMPILER.
9733 (CC-LD): Rename to ...
9734 (CC_LD): ... this. Use COMPILER.
9735 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9736 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9737 * acinclude.m4: Include build-with-cxx.m4.
9738 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9739 Disable -Werror by default if building in C++ mode.
9740 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9741 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9742 the C++ compiler. Save/restore CXXFLAGS too.
9743 * configure: Regenerate.
9744
9745 2015-02-27 Pedro Alves <palves@redhat.com>
9746
9747 * acinclude.m4: Include libiberty.m4.
9748 * configure.ac: Call libiberty_INIT.
9749 * config.in, configure: Regenerate.
9750
9751 2015-02-26 Pedro Alves <palves@redhat.com>
9752
9753 * linux-low.c (linux_wait_1): When incrementing the PC past a
9754 program breakpoint always use the_low_target.breakpoint_len as
9755 increment, rather than the maximum between that and
9756 the_low_target.decr_pc_after_break.
9757
9758 2015-02-23 Pedro Alves <palves@redhat.com>
9759
9760 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9761 thread was doing a step-over; always adjust the PC if
9762 we stepped over a permanent breakpoint.
9763 (linux_wait_1): If we stepped over breakpoint that was on top of a
9764 permanent breakpoint, manually advance the PC past it.
9765
9766 2015-02-23 Pedro Alves <palves@redhat.com>
9767
9768 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9769 modes.
9770 (x86_fill_gregset, x86_store_gregset): Use it when handling
9771 $orig_eax.
9772
9773 2015-02-20 Pedro Alves <palves@redhat.com>
9774
9775 * thread-db.c: Include "nat/linux-procfs.h".
9776 (thread_db_init): Skip listing new threads if the kernel supports
9777 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9778
9779 2015-02-20 Pedro Alves <palves@redhat.com>
9780
9781 * linux-low.c (status_pending_p_callback): Use ptid_match.
9782
9783 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9784
9785 PR breakpoints/16812
9786 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9787 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9788 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9789
9790 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9791
9792 PR breakpoints/15956
9793 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9794
9795 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9796
9797 * linux-low.c (linux_low_btrace_conf): Print size.
9798 * server.c (handle_btrace_conf_general_set): New.
9799 (hanle_general_set): Call handle_btrace_conf_general_set.
9800 (handle_query): Report Qbtrace-conf:bts:size as supported.
9801
9802 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9803
9804 * linux-low.c (linux_low_enable_btrace): Update parameters.
9805 (linux_low_btrace_conf): New.
9806 (linux_target_ops)<to_btrace_conf>: Initialize.
9807 * server.c (current_btrace_conf): New.
9808 (handle_btrace_enable): Rename to ...
9809 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
9810 to target_enable_btrace. Update comment. Update users.
9811 (handle_qxfer_btrace_conf): New.
9812 (qxfer_packets): Add btrace-conf entry.
9813 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9814 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9815 (target_ops)<read_btrace_conf>: New.
9816 (target_enable_btrace): Update parameters.
9817 (target_read_btrace_conf): New.
9818
9819 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9820
9821 * server.c (handle_btrace_general_set): Remove call to
9822 target_supports_btrace.
9823 (supported_btrace_packets): New.
9824 (handle_query): Call supported_btrace_packets.
9825 * target.h: include btrace-common.h.
9826 (btrace_target_info): Removed.
9827 (supports_btrace, target_supports_btrace): Update parameters.
9828
9829 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9830
9831 * Makefile.in (SFILES): Add common/btrace-common.c.
9832 (OBS): Add common/btrace-common.o.
9833 (btrace-common.o): Add build rules.
9834 * linux-low: Include btrace-common.h.
9835 (linux_low_read_btrace): Use struct btrace_data. Call
9836 btrace_data_init and btrace_data_fini.
9837
9838 2015-02-06 Pedro Alves <palves@redhat.com>
9839
9840 * thread-db.c (find_new_threads_callback): Add debug output.
9841
9842 2015-02-04 Pedro Alves <palves@redhat.com>
9843
9844 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9845 (resume_stopped_resumed_lwps): New function.
9846 (linux_wait_for_event_filtered): Use it.
9847
9848 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9849
9850 * Makefile.in (SFILES): Add linux-personality.c.
9851 (linux-personality.o): New rule.
9852 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9853 list of objects to be built.
9854 * linux-low.c: Include nat/linux-personality.h.
9855 (linux_create_inferior): Remove code to disable address space
9856 randomization (moved to ../nat/linux-personality.c). Create
9857 cleanup to disable address space randomization.
9858
9859 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9860
9861 * Makefile.in (posix-strerror.o): New rule.
9862 (mingw-strerror.o): Likewise.
9863 * configure: Regenerated.
9864 * configure.ac: Source file ../common/common.host. Initialize new
9865 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9866
9867 2015-01-14 Yao Qi <yao@codesourcery.com>
9868
9869 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9870 (ppc-linux.o): New rule.
9871 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9872 * configure.ac: AC_CHECK_FUNCS(getauxval).
9873 * config.in: Re-generated.
9874 * configure: Re-generated.
9875 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9876 ppc64_64bit_inferior_p
9877
9878 2015-01-14 Yao Qi <yao@codesourcery.com>
9879
9880 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9881 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9882 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9883 (PT_ORIG_R3, PT_TRAP): Likewise.
9884 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9885 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9886 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9887
9888 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9889
9890 * i387-fp.c (i387_cache_to_xsave): In look over
9891 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9892 zmmh_low_space field by use of zmmh_high_space.
9893
9894 2015-01-09 Pedro Alves <palves@redhat.com>
9895
9896 * linux-low.c (step_over_bkpt): Move higher up in the file.
9897 (handle_extended_wait): Don't store the stop_pc here.
9898 (get_stop_pc): Adjust comments and rename to ...
9899 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9900 stopped for a software breakpoint or hardware breakpoint.
9901 (thread_still_has_status_pending_p): New function.
9902 (status_pending_p_callback): Use
9903 thread_still_has_status_pending_p. If the event is no longer
9904 interesting, resume the LWP.
9905 (handle_tracepoints): Add assert.
9906 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9907 (wstatus_maybe_breakpoint): New function.
9908 (cancel_breakpoint): Delete function.
9909 (check_stopped_by_watchpoint): New function, factored out from
9910 linux_low_filter_event.
9911 (lp_status_maybe_breakpoint): Delete function.
9912 (linux_low_filter_event): Remove filter_ptid argument.
9913 Leave thread group exits pending here. Store the LWP's stop PC.
9914 Always leave events pending.
9915 (linux_wait_for_event_filtered): Pull all events out of the
9916 kernel, and leave them all pending.
9917 (count_events_callback, select_event_lwp_callback): Consider all
9918 events.
9919 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9920 (select_event_lwp): Only give preference to the stepping LWP in
9921 all-stop mode. Adjust comments.
9922 (ignore_event): New function.
9923 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9924 references to cancel_breakpoints. Adjust to renames. Also give
9925 equal priority to all LWPs that have had events in non-stop mode.
9926 If reporting a software breakpoint event, unadjust the LWP's PC.
9927 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9928 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9929 Adjust.
9930 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9931 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9932 (linux_stopped_by_watchpoint): Adjust.
9933 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9934 * linux-low.h (enum lwp_stop_reason): New.
9935 (struct lwp_info) <stop_pc>: Adjust comment.
9936 <stopped_by_watchpoint>: Delete field.
9937 <stop_reason>: New field.
9938 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9939 * mem-break.c (software_breakpoint_inserted_here)
9940 (hardware_breakpoint_inserted_here): New function.
9941 * mem-break.h (software_breakpoint_inserted_here)
9942 (hardware_breakpoint_inserted_here): Declare.
9943 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9944 (cancel_breakpoints): Delete.
9945 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9946 (upload_fast_traceframes): Remove references to
9947 cancel_breakpoints.
9948
9949 2015-01-09 Pedro Alves <palves@redhat.com>
9950
9951 * thread-db.c (find_new_threads_callback): Ignore thread if the
9952 kernel thread ID is -1.
9953
9954 2015-01-09 Pedro Alves <palves@redhat.com>
9955
9956 * linux-low.c (linux_attach_fail_reason_string): Move to
9957 nat/linux-ptrace.c, and rename.
9958 (linux_attach_lwp): Update comment.
9959 (attach_proc_task_lwp_callback): New function.
9960 (linux_attach): Adjust to rename and use
9961 linux_proc_attach_tgid_threads.
9962 (linux_attach_fail_reason_string): Delete declaration.
9963
9964 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9965
9966 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9967 * server.c (gdbserver_version): Likewise.
9968
9969 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9970
9971 * remote-utils.c: Include ctype.h.
9972 (input_interrupt): Explicitly handle the case when the char
9973 received is the NUL byte. Improve the printing of non-ASCII
9974 characters.
9975
9976 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9977
9978 * linux-low.c (linux_low_filter_event): Update call to
9979 linux_enable_event_reporting following the addition of
9980 a new parameter to that function.
9981
9982 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9983
9984 PR server/17457
9985 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9986 (AARCH64_FPCR_REGNO): Likewise.
9987 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9988 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9989 (aarch64_store_fpregset): Likewise.
9990
9991 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9992
9993 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9994 Remove FIXME comment about assumption about N.
9995
9996 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9997
9998 * configure.ac: If large-file support is disabled in GDBserver,
9999 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10000 * configure: Regenerate.
10001
10002 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10003
10004 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10005 warning upon ENODATA from ptrace.
10006 * linux-s390-low.c (s390_store_tdb): New.
10007 (s390_regsets): Add regset for NT_S390_TDB.
10008
10009 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10010
10011 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10012 without a fill_function.
10013 * linux-s390-low.c (s390_fill_last_break): Remove.
10014 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10015 (s390_arch_setup): Use regset's size instead of fill_function for
10016 loop end condition.
10017
10018 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10019
10020 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10021 the regset's store function when ptrace returned an error.
10022 * regcache.c (get_thread_regcache): Invalidate register cache
10023 before fetching inferior's registers.
10024
10025 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10026
10027 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10028 while-loop as for-loop.
10029 (regsets_store_inferior_registers): Likewise.
10030
10031 2014-11-28 Yao Qi <yao@codesourcery.com>
10032
10033 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10034 * config.in, configure: Re-generate.
10035 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10036 is defined.
10037
10038 2014-11-21 Yao Qi <yao@codesourcery.com>
10039
10040 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10041 (AC_CHECK_HEADERS): Remove malloc.h.
10042 * configure: Re-generated.
10043 * config.in: Re-generated.
10044 * server.h: Don't include alloca.h and malloc.h.
10045 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10046 Don't include malloc.h.
10047
10048 2014-11-17 Joel Brobecker <brobecker@adacore.com>
10049
10050 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10051 corresponding ERRNO check in same block.
10052
10053 2014-11-12 Pedro Alves <palves@redhat.com>
10054
10055 * server.c (cont_thread): Update comment.
10056 (start_inferior, attach_inferior): No longer clear cont_thread.
10057 (handle_v_cont): No longer set cont_thread.
10058 (captured_main): Clear cont_thread each time a GDB connects.
10059
10060 2014-11-12 Pedro Alves <palves@redhat.com>
10061
10062 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10063 thread, and don't resume all threads if the Hc thread has exited.
10064
10065 2014-11-12 Pedro Alves <palves@redhat.com>
10066
10067 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10068 the process group instead of to a specific LWP.
10069
10070 2014-10-15 Pedro Alves <palves@redhat.com>
10071
10072 PR server/17487
10073 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10074 parameter.
10075 (arm_set_thread_context): Delete.
10076 (the_low_target): Adjust.
10077 * win32-i386-low.c (debug_registers_changed)
10078 (debug_registers_used): Delete.
10079 (update_debug_registers_callback): New function.
10080 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10081 needing to update their debug registers.
10082 (win32_get_current_dr): New function.
10083 (x86_dr_low_get_addr, x86_dr_low_get_control)
10084 (x86_dr_low_get_status): Fetch the debug register from the thread
10085 record's context.
10086 (i386_initial_stuff): Adjust.
10087 (i386_get_thread_context): Remove current_event parameter. Don't
10088 clear debug_registers_changed nor copy DR values to
10089 debug_reg_state.
10090 (i386_set_thread_context): Delete.
10091 (i386_prepare_to_resume): New function.
10092 (i386_thread_added): Mark the thread as needing to update irs
10093 debug registers.
10094 (the_low_target): Remove i386_set_thread_context and install
10095 i386_prepare_to_resume.
10096 * win32-low.c (win32_get_thread_context): Adjust.
10097 (win32_set_thread_context): Use SetThreadContext
10098 directly.
10099 (win32_prepare_to_resume): New function.
10100 (win32_require_context): New function, factored out from ...
10101 (thread_rec): ... this.
10102 (continue_one_thread): Call win32_prepare_to_resume on each thread
10103 we're about to continue.
10104 (win32_resume): Call win32_prepare_to_resume on the event thread.
10105 * win32-low.h (struct win32_thread_info)
10106 <debug_registers_changed>: New field.
10107 (struct win32_target_ops): Change prototype of set_thread_context,
10108 delete set_thread_context and add prepare_to_resume.
10109 (win32_require_context): New declaration.
10110
10111 2014-10-08 Gary Benson <gbenson@redhat.com>
10112
10113 * server.h: Do not include common-exceptions.h.
10114
10115 2014-10-08 Gary Benson <gbenson@redhat.com>
10116
10117 * server.h: Do not include cleanups.h.
10118
10119 2014-09-30 James Hogan <james.hogan@imgtec.com>
10120
10121 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10122 mips64-dsp-linux.c.
10123
10124 2014-09-23 Yao Qi <yao@codesourcery.com>
10125
10126 * linux-low.c (lp_status_maybe_breakpoint): New function.
10127 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10128 (count_events_callback): Likewise.
10129 (select_event_lwp_callback): Likewise.
10130 (cancel_breakpoints_callback): Likewise.
10131
10132 2014-09-19 Don Breazeal <donb@codesourcery.com>
10133
10134 * linux-low.c (handle_extended_wait): Call
10135 linux_ptrace_get_extended_event.
10136 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10137 linux_is_extended_waitstatus.
10138
10139 2014-09-16 Joel Brobecker <brobecker@adacore.com>
10140
10141 * Makefile.in (CPPFLAGS): Define.
10142 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10143 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10144
10145 2014-09-16 Gary Benson <gbenson@redhat.com>
10146
10147 * inferiors.h (current_inferior): Renamed as...
10148 (current_thread): New variable. All uses updated.
10149 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10150 (maybe_move_out_of_jump_pad): Likewise.
10151 (cancel_breakpoint): Likewise.
10152 (linux_low_filter_event): Likewise.
10153 (wait_for_sigstop): Likewise.
10154 (linux_resume_one_lwp): Likewise.
10155 (need_step_over_p): Likewise.
10156 (start_step_over): Likewise.
10157 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10158 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10159 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10160 and save_inferior as saved_thread.
10161 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10162 saved_thread.
10163 (regcache_invalidate_thread): Likewise.
10164 * remote-utils.c (prepare_resume_reply): Likewise.
10165 * thread-db.c (thread_db_get_tls_address): Likewise.
10166 (disable_thread_event_reporting): Likewise.
10167 (remove_thread_event_breakpoints): Likewise.
10168 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10169 as saved_thread.
10170 * target.h (set_desired_inferior): Renamed as...
10171 (set_desired_thread): New declaration. All uses updated.
10172 * server.c (myresume): Updated comment to reference thread instead
10173 of inferior.
10174 (handle_serial_event): Likewise.
10175 (handle_target_event): Likewise.
10176
10177 2014-09-12 Tom Tromey <tromey@redhat.com>
10178 Gary Benson <gbenson@redhat.com>
10179
10180 * regcache.h: Include common-regcache.h.
10181 (regcache_read_pc): Don't declare.
10182 * regcache.c (get_thread_regcache_for_ptid): New function.
10183
10184 2014-09-11 Tom Tromey <tromey@redhat.com>
10185 Gary Benson <gbenson@redhat.com>
10186
10187 * symbol.c: New file.
10188 * Makefile.in (SFILES): Add symbol.c.
10189 (OBS): Add symbol.o.
10190
10191 2014-09-11 Gary Benson <gbenson@redhat.com>
10192
10193 * target.c (target_stop_ptid, target_continue_ptid): New
10194 functions.
10195
10196 2014-09-11 Tom Tromey <tromey@redhat.com>
10197 Gary Benson <gbenson@redhat.com>
10198
10199 * target.h: Include target/target.h.
10200 * target.c (target_read_memory, target_read_uint32)
10201 (target_write_memory): New functions.
10202
10203 2014-09-11 Gary Benson <gbenson@redhat.com>
10204
10205 * server.h (debug_hw_points): Don't declare.
10206 * server.c (debug_hw_points): Don't define. Replace all uses
10207 with show_debug_regs.
10208 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10209 all uses with show_debug_regs.
10210
10211 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10212
10213 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10214 endianness into account.
10215 (ppc_supply_ptrace_register): Likewise.
10216
10217 2014-09-03 James Hogan <james.hogan@imgtec.com>
10218
10219 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10220 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10221
10222 2014-09-03 Gary Benson <gbenson@redhat.com>
10223
10224 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10225 ALL_DEBUG_ADDRESS_REGISTERS.
10226
10227 2014-09-02 Gary Benson <gbenson@redhat.com>
10228
10229 * i386-low.h: Renamed as...
10230 * x86-low.h: New file. All type, function and variable name
10231 prefixes changed from "i386_" to "x86_". All references updated.
10232 * i386-low.c: Renamed as...
10233 * x86-low.c: New file. All type, function and variable name
10234 prefixes changed from "i386_" to "x86_". All references updated.
10235
10236 2014-09-02 Gary Benson <gbenson@redhat.com>
10237
10238 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10239 (x86_linux_new_thread): Likewise.
10240
10241 2014-08-29 Gary Benson <gbenson@redhat.com>
10242
10243 * server.h (setjmp.h): Do not include.
10244 (toplevel): Do not declare.
10245 (common-exceptions.h): Include.
10246 (cleanups.h): Likewise.
10247 * server.c (toplevel): Do not define.
10248 (exit_code): New static global.
10249 (detach_or_kill_for_exit_cleanup): New function.
10250 (main): New function. Original main renamed to...
10251 (captured_main): New function.
10252 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10253
10254 2014-08-29 Gary Benson <gbenson@redhat.com>
10255
10256 * Makefile.in (SFILES): Add common/common-exceptions.c.
10257 (OBS): Add common-exceptions.o.
10258 (common-exceptions.o): New rule.
10259 * utils.c (prepare_to_throw_exception): New function.
10260
10261 2014-08-29 Gary Benson <gbenson@redhat.com>
10262
10263 * config.in: Regenerate.
10264 * configure: Likewise.
10265
10266 2014-08-29 Gary Benson <gbenson@redhat.com>
10267
10268 * Makefile.in (SFILES): Add common/cleanups.c.
10269 (OBS): cleanups.o.
10270 (cleanups.o): New rule.
10271
10272 2014-08-29 Gary Benson <gbenson@redhat.com>
10273
10274 * utils.c (internal_vwarning): New function.
10275
10276 2014-08-28 Gary Benson <gbenson@redhat.com>
10277
10278 * utils.h (fatal): Remove declaration.
10279 * utils.c (fatal): Remove function.
10280
10281 2014-08-28 Gary Benson <gbenson@redhat.com>
10282
10283 * tracepoint.c (gdb_agent_init): Replace fatal with
10284 perror_with_name.
10285 (initialize_tracepoint): Likewise.
10286
10287 2014-08-28 Gary Benson <gbenson@redhat.com>
10288
10289 * remote-utils.c (remote_prepare): Replace fatal with error.
10290
10291 2014-08-28 Gary Benson <gbenson@redhat.com>
10292
10293 * linux-low.c (linux_async): Replace fatal with warning.
10294 Tidy up and return.
10295 (linux_start_non_stop): Return -1 if linux_async failed.
10296
10297 2014-08-28 Gary Benson <gbenson@redhat.com>
10298
10299 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10300 gdb_assert.
10301 (i386_dr_low_get_addr): Remove vague comment.
10302 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10303 gdb_assert.
10304
10305 2014-08-28 Gary Benson <gbenson@redhat.com>
10306
10307 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10308 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10309 internal_error.
10310 (linux_resume_one_lwp): Likewise.
10311 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10312 gdb_assert.
10313 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
10314 with internal_error.
10315 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
10316 (init_register_cache): Replace fatal with gdb_assert_not_reached.
10317 (find_register_by_name): Replace fatal with internal_error.
10318 (find_regno): Likewise.
10319 * tdesc.c (init_target_desc): Replace check with gdb_assert.
10320 * thread-db.c (thread_db_create_event): Likewise.
10321 (thread_db_load_search): Likewise.
10322 (try_thread_db_load_1): Likewise.
10323 * tracepoint.c (get_jump_space_head): Replace fatal with
10324 internal_error.
10325 (claim_trampoline_space): Likewise.
10326 (have_fast_tracepoint_trampoline_buffer): Likewise.
10327 (cmd_qtstart): Likewise.
10328 (stop_tracing): Likewise.
10329 (fast_tracepoint_collecting): Likewise.
10330 (target_malloc): Likewise.
10331 (download_tracepoint): Likewise.
10332 (download_trace_state_variables): Replace check with gdb_assert.
10333 (upload_fast_traceframes): Replace fatal with internal_error.
10334
10335 2014-08-19 Tom Tromey <tromey@redhat.com>
10336 Gary Benson <gbenson@redhat.com>
10337
10338 * Makefile.in (SFILES): Add common/common-debug.c.
10339 (OBS): Add common-debug.o.
10340 (common-debug.o): New rule.
10341 * debug.h (debug_printf): Don't declare.
10342 * debug.c (debug_printf): Renamed and rewritten as...
10343 (debug_vprintf): New function.
10344
10345 2014-08-19 Gary Benson <gbenson@redhat.com>
10346
10347 * utils.h: Do not include print-utils.h.
10348
10349 2014-08-19 Tom Tromey <tromey@redhat.com>
10350 Gary Benson <gbenson@redhat.com>
10351
10352 * server.h: Add static assertion.
10353 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
10354
10355 2014-08-19 Tom Tromey <tromey@redhat.com>
10356 Gary Benson <gbenson@redhat.com>
10357
10358 * Makefile.in (SFILES): Add common/errors.c.
10359 (OBS): Add errors.o.
10360 (IPA_OBS): Add errors-ipa.o.
10361 (errors.o): New rule.
10362 (errors-ipa.o): Likewise.
10363 * utils.h (perror_with_name, error, warning): Don't declare.
10364 * utils.c (warning): Renamed and rewritten as...
10365 (vwarning): New function.
10366 (error): Renamed and rewritten as...
10367 (verror): New function.
10368 (internal_error): Renamed and rewritten as...
10369 (internal_verror): New function.
10370
10371 2014-08-07 Gary Benson <gbenson@redhat.com>
10372
10373 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
10374 * configure: Regenerate.
10375 * config.in: Likewise.
10376 * server.h: Do not include errno.h.
10377 * event-loop.c: Likewise.
10378 * hostio-errno.c: Likewise.
10379 * linux-low.c: Likewise.
10380 * remote-utils.c: Likewise.
10381 * spu-low.c: Likewise.
10382 * utils.c: Likewise.
10383 * gdbreplay.c: Unconditionally include errno.h.
10384
10385 2014-08-07 Gary Benson <gbenson@redhat.com>
10386
10387 * server.h: Do not include string.h.
10388 * event-loop.c: Likewise.
10389 * linux-low.c: Likewise.
10390 * regcache.c: Likewise.
10391 * remote-utils.c: Likewise.
10392 * spu-low.c: Likewise.
10393 * utils.c: Likewise.
10394
10395 2014-08-07 Gary Benson <gbenson@redhat.com>
10396
10397 * server.h: Do not include gdb_assert.h.
10398
10399 2014-08-07 Gary Benson <gbenson@redhat.com>
10400
10401 * server.h: Do not include common-utils.h.
10402
10403 2014-08-07 Gary Benson <gbenson@redhat.com>
10404
10405 * server.h: Do not include ptid.h.
10406 * notif.h: Likewise.
10407
10408 2014-08-07 Gary Benson <gbenson@redhat.com>
10409
10410 * server.h: Do not include gdb_locale.h.
10411
10412 2014-08-07 Gary Benson <gbenson@redhat.com>
10413
10414 * server.h: Do not include gdb/signals.h.
10415 * win32-low.c: Likewise.
10416
10417 2014-08-07 Gary Benson <gbenson@redhat.com>
10418
10419 * server.h: Do not include pathmax.h.
10420
10421 2014-08-07 Gary Benson <gbenson@redhat.com>
10422
10423 * server.h: Do not include libiberty.h.
10424 * linux-bfin-low.c: Likewise.
10425
10426 2014-08-07 Gary Benson <gbenson@redhat.com>
10427
10428 * server.h: Do not include ansidecl.h.
10429
10430 2014-08-07 Gary Benson <gbenson@redhat.com>
10431
10432 * linux-x86-low.c: Do not include stddef.h.
10433 * lynx-ppc-low.c: Likewise.
10434 * tracepoint.c: Likewise.
10435
10436 2014-08-07 Gary Benson <gbenson@redhat.com>
10437
10438 * server.h: Do not include stdarg.h.
10439 * nto-low.c: Likewise.
10440
10441 2014-08-07 Gary Benson <gbenson@redhat.com>
10442
10443 * server.h: Do not include stdlib.h.
10444 * inferiors.c: Likewise.
10445 * linux-low.c: Likewise.
10446 * regcache.c: Likewise.
10447 * spu-low.c: Likewise.
10448 * tracepoint.c: Likewise.
10449 * utils.c: Likewise.
10450
10451 2014-08-07 Gary Benson <gbenson@redhat.com>
10452
10453 * server.h: Do not include stdio.h.
10454 * linux-low.c: Likewise.
10455 * remote-utils.c: Likewise.
10456 * spu-low.c: Likewise.
10457 * utils.c: Likewise.
10458 * wincecompat.c: Likewise.
10459
10460 2014-08-06 Gary Benson <gbenson@redhat.com>
10461
10462 * regcache.c (init_register_cache): Move conditionals inside if.
10463
10464 2014-08-06 Gary Benson <gbenson@redhat.com>
10465
10466 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10467
10468 2014-07-31 Gary Benson <gbenson@redhat.com>
10469
10470 * ax.h: Do not include server.h.
10471 * gdbthread.h: Likewise.
10472 * lynx-low.h: Likewise.
10473 * notif.h: Likewise.
10474
10475 2014-07-30 Gary Benson <gbenson@redhat.com>
10476
10477 * server.h: Include common-defs.h.
10478 Do not include config.h or build-gnulib-gdbserver/config.h.
10479
10480 2014-07-30 Gary Benson <gbenson@redhat.com>
10481
10482 * hostio-errno.c: Move server.h to top of includes list.
10483 * inferiors.c: Likewise.
10484 * linux-x86-low.c: Likewise.
10485 * notif.c: Include server.h.
10486
10487 2014-07-24 Tom Tromey <tromey@redhat.com>
10488 Gary Benson <gbenson@redhat.com>
10489
10490 * server.h (CORE_ADDR): Now unsigned.
10491
10492 2014-07-16 Pedro Alves <palves@redhat.com>
10493
10494 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10495
10496 2014-07-15 Pedro Alves <palves@redhat.com>
10497
10498 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10499 copy.
10500
10501 2014-07-11 Pedro Alves <palves@redhat.com>
10502
10503 * linux-low.c (kill_wait_lwp): New function, based on
10504 kill_one_lwp_callback, but use my_waitpid directly.
10505 (kill_one_lwp_callback, linux_kill): Use it.
10506
10507 2014-06-23 Pedro Alves <palves@redhat.com>
10508
10509 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10510 before setting DR0..DR3.
10511
10512 2014-06-20 Gary Benson <gbenson@redhat.com>
10513
10514 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10515 * configure: Regenerated.
10516 * config.in: Likewise.
10517
10518 2014-06-20 Gary Benson <gbenson@redhat.com>
10519
10520 * Makefile.in (SFILES): Update locations for files moved
10521 from common to nat.
10522 (object file files): Reordered.
10523
10524 2014-06-20 Gary Benson <gbenson@redhat.com>
10525
10526 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10527 (i386_dr_low_set_addr): Likewise.
10528 (i386_dr_low_get_addr): Likewise.
10529 (i386_dr_low_can_set_control): Likewise.
10530 (i386_dr_low_set_control): Likewise.
10531 (i386_dr_low_get_control): Likewise.
10532 (i386_dr_low_get_status): Likewise.
10533 (i386_get_debug_register_length): Likewise.
10534 * linux-x86-low.c (i386_dr_low_set_addr):
10535 Changed signature. Made static.
10536 (i386_dr_low_get_addr): Likewise.
10537 (i386_dr_low_set_control): Likewise.
10538 (i386_dr_low_get_control): Likewise.
10539 (i386_dr_low_get_status): Likewise.
10540 (i386_dr_low): New global variable.
10541 * win32-i386-low.c (i386_dr_low_set_addr):
10542 Changed signature. Made static.
10543 (i386_dr_low_get_addr): Likewise.
10544 (i386_dr_low_set_control): Likewise.
10545 (i386_dr_low_get_control): Likewise.
10546 (i386_dr_low_get_status): Likewise.
10547 (i386_dr_low): New global variable.
10548
10549 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10550
10551 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10552 * Makefile.in (AR, AR_FLAGS): Define.
10553 * configure: Regenerate.
10554
10555 2014-06-19 Gary Benson <gbenson@redhat.com>
10556
10557 * Makefile.in (i386-dregs.o): New rule.
10558 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10559 * i386-low.c (target.h): Remove include.
10560 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10561 (DR_CONTROL_SHIFT): Likewise.
10562 (DR_CONTROL_SIZE): Likewise.
10563 (DR_RW_EXECUTE): Likewise.
10564 (DR_RW_WRITE): Likewise.
10565 (DR_RW_READ): Likewise.
10566 (DR_RW_IORW): Likewise.
10567 (DR_LEN_1): Likewise.
10568 (DR_LEN_2): Likewise.
10569 (DR_LEN_4): Likewise.
10570 (DR_LEN_8): Likewise.
10571 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10572 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10573 (DR_ENABLE_SIZE): Likewise.
10574 (DR_LOCAL_SLOWDOWN): Likewise.
10575 (DR_GLOBAL_SLOWDOWN): Likewise.
10576 (DR_CONTROL_RESERVED): Likewise.
10577 (I386_DR_CONTROL_MASK): Likewise.
10578 (I386_DR_VACANT): Likewise.
10579 (I386_DR_LOCAL_ENABLE): Likewise.
10580 (I386_DR_GLOBAL_ENABLE): Likewise.
10581 (I386_DR_DISABLE): Likewise.
10582 (I386_DR_SET_RW_LEN): Likewise.
10583 (I386_DR_GET_RW_LEN): Likewise.
10584 (I386_DR_WATCH_HIT): Likewise.
10585 (i386_wp_op_t): Likewise.
10586 (i386_show_dr): Likewise.
10587 (i386_length_and_rw_bits): Likewise.
10588 (i386_insert_aligned_watchpoint): Likewise.
10589 (i386_remove_aligned_watchpoint): Likewise.
10590 (i386_handle_nonaligned_watchpoint): Likewise.
10591 i386_update_inferior_debug_regs(): Likewise.
10592 (i386_dr_insert_watchpoint): Likewise.
10593 (i386_dr_remove_watchpoint): Likewise.
10594 (i386_dr_region_ok_for_watchpoint): Likewise.
10595 (i386_dr_stopped_data_address): Likewise.
10596 (i386_dr_stopped_by_watchpoint): Likewise.
10597
10598 2014-06-19 Gary Benson <gbenson@redhat.com>
10599
10600 * i386-low.c (i386_dr_show): Renamed to
10601 i386_show_dr and made static. All uses updated.
10602 (i386_dr_length_and_rw_bits): Renamed to
10603 i386_length_and_rw_bits and made static.
10604 All uses updated.
10605 (i386_dr_insert_aligned_watchpoint): Renamed to
10606 i386_insert_aligned_watchpoint and made static.
10607 All uses updated.
10608 (i386_dr_remove_aligned_watchpoint): Renamed to
10609 i386_remove_aligned_watchpoint and made static.
10610 All uses updated.
10611 (i386_dr_update_inferior_debug_regs): Renamed to
10612 i386_update_inferior_debug_regs and made static.
10613 All uses updated.
10614
10615 2014-06-18 Gary Benson <gbenson@redhat.com>
10616
10617 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10618 (i386_dr_low_can_set_control): Likewise.
10619 (i386_get_debug_register_length): Likewise.
10620 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10621 (i386_dr_low_can_set_control): Likewise.
10622 (i386_get_debug_register_length): Likewise.
10623
10624 2014-06-17 Gary Benson <gbenson@redhat.com>
10625
10626 * i386-low.h (i386-dregs.h): New include.
10627 (DR_FIRSTADDR): Now in i386-dregs.h.
10628 (DR_LASTADDR): Likewise.
10629 (DR_NADDR): Likewise.
10630 (DR_STATUS): Likewise.
10631 (DR_CONTROL): Likewise.
10632 (i386_debug_reg_state): Likewise.
10633 (i386_dr_insert_watchpoint): Likewise.
10634 (i386_dr_remove_watchpoint): Likewise.
10635 (i386_dr_region_ok_for_watchpoint): Likewise.
10636 (i386_dr_stopped_data_address): Likewise.
10637 (i386_dr_stopped_by_watchpoint): Likewise.
10638 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10639
10640 2014-06-18 Gary Benson <gbenson@redhat.com>
10641
10642 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10643 i386_dr_insert_watchpoint.
10644 (i386_low_remove_watchpoint): Renamed to
10645 i386_dr_remove_watchpoint.
10646 (i386_low_region_ok_for_watchpoint): Renamed to
10647 i386_dr_region_ok_for_watchpoint.
10648 (i386_low_stopped_data_address): Renamed to
10649 i386_dr_stopped_data_address.
10650 (i386_low_stopped_by_watchpoint): Renamed to
10651 i386_dr_stopped_by_watchpoint.
10652 * i386-low.c (i386_show_dr): Renamed to
10653 i386_dr_show and made nonstatic. All uses updated.
10654 (i386_length_and_rw_bits): Renamed to
10655 i386_dr_length_and_rw_bits and made nonstatic.
10656 All uses updated.
10657 (i386_insert_aligned_watchpoint): Renamed to
10658 i386_dr_insert_aligned_watchpoint and made nonstatic.
10659 All uses updated.
10660 (i386_remove_aligned_watchpoint): Renamed to
10661 i386_dr_remove_aligned_watchpoint and made nonstatic.
10662 All uses updated.
10663 (i386_update_inferior_debug_regs): Renamed to
10664 i386_dr_update_inferior_debug_regs and made nonstatic.
10665 All uses updated.
10666 (i386_low_insert_watchpoint): Renamed to
10667 i386_dr_insert_watchpoint. All uses updated.
10668 (i386_low_remove_watchpoint): Renamed to
10669 i386_dr_remove_watchpoint. All uses updated.
10670 (i386_low_region_ok_for_watchpoint): Renamed to
10671 i386_dr_region_ok_for_watchpoint. All uses updated.
10672 (i386_low_stopped_data_address): Renamed to
10673 i386_dr_stopped_data_address. All uses updated.
10674 (i386_low_stopped_by_watchpoint): Renamed to
10675 i386_dr_stopped_by_watchpoint. All uses updated.
10676
10677 2014-06-18 Gary Benson <gbenson@redhat.com>
10678
10679 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10680 (i386_dr_low_can_set_control): Likewise.
10681 (i386_insert_aligned_watchpoint): New check.
10682
10683 2014-06-18 Gary Benson <gbenson@redhat.com>
10684
10685 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10686 Renamed to state.
10687
10688 2014-06-18 Gary Benson <gbenson@redhat.com>
10689
10690 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10691 instead of fatal and error.
10692 (i386_handle_nonaligned_watchpoint): Likewise.
10693
10694 2014-06-18 Gary Benson <gbenson@redhat.com>
10695
10696 * i386-low.c (i386_get_debug_register_length): New macro.
10697 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10698 (i386_show_dr): Use debug_printf instead of fprintf. Use
10699 phex to format values.
10700
10701 2014-06-18 Gary Benson <gbenson@redhat.com>
10702
10703 * i386-low.h: Comment changes.
10704 * i386-low.c: Likewise.
10705
10706 2014-06-18 Gary Benson <gbenson@redhat.com>
10707
10708 * i386-low.c: Whitespace changes.
10709
10710 2014-06-12 Tom Tromey <tromey@redhat.com>
10711
10712 * utils.c (freeargv): Remove.
10713
10714 2014-06-12 Tom Tromey <tromey@redhat.com>
10715
10716 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10717 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10718 (parse_debug_format_options): Likewise.
10719 (gdbserver_usage): Likewise.
10720 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10721 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10722 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10723 against libiberty.
10724 ($(LIBGNU)): Depend on libiberty.
10725 (all-lib): Recurse into all subdirs.
10726 (install-only): Invoke "install" target in subdirs.
10727 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10728 targets.
10729 * configure: Rebuild.
10730 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10731 for vasprintf, vsnprintf, or gettimeofday.
10732 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10733 srv_tgtobj.
10734
10735 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10736
10737 * development.sh: Delete.
10738 * Makefile.in (config.status): Adjust dependency on development.sh.
10739 * configure.ac: Adjust development.sh source call.
10740 * configure: Regenerate.
10741
10742 2014-06-02 Pedro Alves <palves@redhat.com>
10743
10744 * ax.c (gdb_free_agent_expr): New function.
10745 * ax.h (gdb_free_agent_expr): New declaration.
10746 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10747 list.
10748 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10749 static.
10750 (clear_breakpoint_conditions_and_commands): New function.
10751 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10752 (clear_breakpoint_conditions_and_commands): New declaration.
10753
10754 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10755
10756 * linux-aarch64-low.c (asm/ptrace.h): Include.
10757
10758 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10759
10760 Fix TLS access for -static -pthread.
10761 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10762 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10763 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10764
10765 2014-05-20 Pedro Alves <palves@redhat.com>
10766
10767 * linux-aarch64-low.c (aarch64_insert_point)
10768 (aarch64_remove_point): No longer check whether the type is
10769 supported here. Adjust to new interface.
10770 (the_low_target): Install aarch64_supports_z_point_type as
10771 supports_z_point_type method.
10772 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10773 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10774 instead of a Z packet char. Adjust.
10775 (arm_supports_z_point_type): New function.
10776 (arm_insert_point, arm_remove_point): Adjust to new interface.
10777 (the_low_target): Install arm_supports_z_point_type.
10778 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10779 (cris_insert_point, cris_remove_point): Adjust to new interface.
10780 Don't check whether the type is supported here.
10781 (the_low_target): Install cris_supports_z_point_type.
10782 * linux-low.c (linux_supports_z_point_type): New function.
10783 (linux_insert_point, linux_remove_point): Adjust to new interface.
10784 * linux-low.h (struct linux_target_ops) <insert_point,
10785 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10786 raw_breakpoint pointer parameter.
10787 <supports_z_point_type>: New method.
10788 * linux-mips-low.c (mips_supports_z_point_type): New function.
10789 (mips_insert_point, mips_remove_point): Adjust to new interface.
10790 Use mips_supports_z_point_type.
10791 (the_low_target): Install mips_supports_z_point_type.
10792 * linux-ppc-low.c (the_low_target): Install NULL as
10793 supports_z_point_type method.
10794 * linux-s390-low.c (the_low_target): Install NULL as
10795 supports_z_point_type method.
10796 * linux-sparc-low.c (the_low_target): Install NULL as
10797 supports_z_point_type method.
10798 * linux-x86-low.c (x86_supports_z_point_type): New function.
10799 (x86_insert_point): Adjust to new insert_point interface. Use
10800 insert_memory_breakpoint. Adjust to new
10801 i386_low_insert_watchpoint interface.
10802 (x86_remove_point): Adjust to remove_point interface. Use
10803 remove_memory_breakpoint. Adjust to new
10804 i386_low_remove_watchpoint interface.
10805 (the_low_target): Install x86_supports_z_point_type.
10806 * lynx-low.c (lynx_target_ops): Install NULL as
10807 supports_z_point_type callback.
10808 * nto-low.c (nto_supports_z_point_type): New.
10809 (nto_insert_point, nto_remove_point): Adjust to new interface.
10810 (nto_target_ops): Install nto_supports_z_point_type.
10811 * mem-break.c: Adjust intro comment.
10812 (struct raw_breakpoint) <raw_type, size>: New fields.
10813 <inserted>: Update comment.
10814 <shlib_disabled>: Delete field.
10815 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10816 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10817 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10818 (raw_bkpt_type_to_target_hw_bp_type): New function.
10819 (find_enabled_raw_code_breakpoint_at): New function.
10820 (find_raw_breakpoint_at): New type and size parameters. Use them.
10821 (insert_memory_breakpoint): New function, based off
10822 set_raw_breakpoint_at.
10823 (remove_memory_breakpoint): New function.
10824 (set_raw_breakpoint_at): Reimplement.
10825 (set_breakpoint): New, based on set_breakpoint_at.
10826 (set_breakpoint_at): Reimplement.
10827 (delete_raw_breakpoint): Go through the_target->remove_point
10828 instead of assuming memory breakpoints.
10829 (find_gdb_breakpoint_at): Delete.
10830 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10831 (find_gdb_breakpoint): New function.
10832 (set_gdb_breakpoint_at): Delete.
10833 (z_type_supported): New function.
10834 (set_gdb_breakpoint_1): New function, loosely based off
10835 set_gdb_breakpoint_at.
10836 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10837 (delete_gdb_breakpoint_at): Delete.
10838 (delete_gdb_breakpoint_1): New function, loosely based off
10839 delete_gdb_breakpoint_at.
10840 (delete_gdb_breakpoint): New function.
10841 (clear_gdb_breakpoint_conditions): Rename to ...
10842 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10843 breakpoint.
10844 (add_condition_to_breakpoint): Make static.
10845 (add_breakpoint_condition): Take a struct breakpoint pointer
10846 instead of an address. Adjust.
10847 (gdb_condition_true_at_breakpoint): Rename to ...
10848 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10849 z_type parameter.
10850 (gdb_condition_true_at_breakpoint): Reimplement.
10851 (add_breakpoint_commands): Take a struct breakpoint pointer
10852 instead of an address. Adjust.
10853 (gdb_no_commands_at_breakpoint): Rename to ...
10854 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10855 parameter. Return true if no breakpoint was found. Change debug
10856 output.
10857 (gdb_no_commands_at_breakpoint): Reimplement.
10858 (run_breakpoint_commands): Rename to ...
10859 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10860 and change return type to boolean.
10861 (run_breakpoint_commands): New function.
10862 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10863 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10864 breakpoint. Go through the_target->remove_point instead of
10865 assuming memory breakpoint.
10866 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10867 software and hardware breakpoints.
10868 (reinsert_raw_breakpoint): Go through the_target->insert_point
10869 instead of assuming memory breakpoint.
10870 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10871 software and hardware breakpoints.
10872 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10873 Check both software and hardware breakpoints.
10874 (validate_inserted_breakpoint): Assert the breakpoint is a
10875 software breakpoint. Set the inserted flag to -1 instead of
10876 setting shlib_disabled.
10877 (delete_disabled_breakpoints): Adjust.
10878 (validate_breakpoints): Only validate software breakpoints.
10879 Adjust to inserted flag change.
10880 (check_mem_read, check_mem_write): Skip breakpoint types other
10881 than software breakpoints. Adjust to inserted flag change.
10882 * mem-break.h (enum raw_bkpt_type): New enum.
10883 (raw_breakpoint, struct process_info): Forward declare.
10884 (Z_packet_to_target_hw_bp_type): Delete declaration.
10885 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10886 (set_gdb_breakpoint, delete_gdb_breakpoint)
10887 (clear_breakpoint_conditions): New declarations.
10888 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10889 (breakpoint_inserted_here): Update comment.
10890 (add_breakpoint_condition, add_breakpoint_commands): Replace
10891 address parameter with a breakpoint pointer parameter.
10892 (gdb_breakpoint_here): Update comment.
10893 (delete_gdb_breakpoint_at): Delete.
10894 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10895 * server.c (process_point_options): Take a struct breakpoint
10896 pointer instead of an address. Adjust.
10897 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10898 delete_gdb_breakpoint.
10899 * spu-low.c (spu_target_ops): Install NULL as
10900 supports_z_point_type method.
10901 * target.h: Include mem-break.h.
10902 (struct target_ops) <prepare_to_access_memory>: Update comment.
10903 <supports_z_point_type>: New field.
10904 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10905 instead of a char. Also take a raw breakpoint pointer.
10906 * win32-arm-low.c (the_low_target): Install NULL as
10907 supports_z_point_type.
10908 * win32-i386-low.c (i386_supports_z_point_type): New function.
10909 (i386_insert_point, i386_remove_point): Adjust to new interface.
10910 (the_low_target): Install i386_supports_z_point_type.
10911 * win32-low.c (win32_supports_z_point_type): New function.
10912 (win32_insert_point, win32_remove_point): Adjust to new interface.
10913 (win32_target_ops): Install win32_supports_z_point_type.
10914 * win32-low.h (struct win32_target_ops):
10915 <supports_z_point_type>: New method.
10916 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10917 instead of a char. Also take a raw breakpoint pointer.
10918
10919 2014-05-20 Pedro Alves <palves@redhat.com>
10920
10921 * mem-break.h: Include break-common.h.
10922 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10923 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10924 (Z_packet_to_target_hw_bp_type): New declaration.
10925 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10926 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10927 (Z_PACKET_ACCESS_WP): Delete macros.
10928 (Z_packet_to_hw_type): Delete function.
10929 * i386-low.h: Don't include break-common.h here.
10930 (Z_packet_to_hw_type): Delete declaration.
10931 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10932 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10933 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10934 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10935 * linux-aarch64-low.c: Don't include break-common.h here.
10936 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10937 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10938 (Z_packet_to_target_hw_bp_type): Delete function.
10939 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10940 function.
10941 (mips_insert_point, mips_remove_point): Use
10942 Z_packet_to_target_hw_bp_type.
10943
10944 2014-05-20 Pedro Alves <palves@redhat.com>
10945
10946 * linux-aarch64-low.c: Include break-common.h.
10947 (enum target_point_type): Delete.
10948 (Z_packet_to_point_type): Rename to ...
10949 (Z_packet_to_target_hw_bp_type): ... this, and return a
10950 target_hw_bp_type instead.
10951 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10952 instead of an enum target_point_type.
10953 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10954 breakpoint type.
10955 (aarch64_dr_state_insert_one_point)
10956 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10957 (aarch64_handle_aligned_watchpoint)
10958 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10959 Take an enum target_hw_bp_type instead of an enum
10960 target_point_type.
10961 (aarch64_supports_z_point_type): New function.
10962 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10963 use Z_packet_to_target_hw_bp_type.
10964
10965 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10966
10967 * configure.ac: Only use -Werror by default when DEVELOPMENT
10968 is true.
10969 * configure: Regenerate.
10970
10971 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10972
10973 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10974 * linux-x86-low.c (X86_64_USER_REGS): New.
10975 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10976
10977 2014-04-28 Yao Qi <yao@codesourcery.com>
10978
10979 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10980 name.
10981
10982 2014-04-25 Pedro Alves <palves@redhat.com>
10983
10984 PR server/16255
10985 * linux-low.c (linux_attach_fail_reason_string): New function.
10986 (linux_attach_lwp): Delete.
10987 (linux_attach_lwp_1): Rename to ...
10988 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10989 argument. Remove "initial" parameter. Return int instead of
10990 void. Don't error or warn here.
10991 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10992 failure to attach to the tgid. Call warning when failing to
10993 attach to an lwp.
10994 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10995 argument. Remove "initial" parameter. Return int instead of
10996 void. Don't error or warn here.
10997 (linux_attach_fail_reason_string): New declaration.
10998 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10999 interface change. Use linux_attach_fail_reason_string.
11000
11001 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
11002 Walfred Tedeschi <walfred.tedeschi@intel.com>
11003
11004 * Makefile.in: Added rules to handle new files
11005 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11006 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11007 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11008 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11009 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11010 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11011 x32-avx512-linux.o.
11012 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11013 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11014 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11015 i386/x32-avx512.xml.
11016 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11017 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11018 i386/x32-avx512-linux.xml.
11019 * i387-fp.c (num_avx512_k_registers): New constant for number
11020 of K registers.
11021 (num_avx512_zmmh_low_registers): New constant for number of
11022 lower ZMM registers (0-15).
11023 (num_avx512_zmmh_high_registers): New constant for number of
11024 higher ZMM registers (16-31).
11025 (num_avx512_ymmh_registers): New contant for number of higher
11026 YMM registers (ymm16-31 added by avx521 on x86_64).
11027 (num_avx512_xmm_registers): New constant for number of higher
11028 XMM registers (xmm16-31 added by AVX512 on x86_64).
11029 (struct i387_xsave): Add space for AVX512 registers.
11030 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11031 Add code to handle AVX512 registers.
11032 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11033 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11034 prototypei from generated file.
11035 (tdesc_amd64_avx512_linux): Likewise.
11036 (init_registers_x32_avx512_linux): Likewise.
11037 (tdesc_x32_avx512_linux): Likewise.
11038 (init_registers_i386_avx512_linux): Likewise.
11039 (tdesc_i386_avx512_linux): Likewise.
11040 (x86_64_regmap): Add AVX512 registers.
11041 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11042 mask.
11043 (initialize_low_arch): Add code to initialize AVX512 registers.
11044
11045 2014-04-23 Pedro Alves <palves@redhat.com>
11046
11047 * mem-break.c (find_gdb_breakpoint_at): Make static.
11048 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11049
11050 2014-04-23 Pedro Alves <palves@redhat.com>
11051
11052 * i386-low.c: Don't include break-common.h here.
11053 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11054 prototype to take target_hw_bp_type as argument instead of a Z
11055 packet char.
11056 * i386-low.h: Include break-common.h here.
11057 (Z_packet_to_hw_type): Declare.
11058 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11059 prototypes.
11060 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11061 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11062 (x86_remove_point): Convert the packet number to a
11063 target_hw_bp_type before calling i386_low_remove_watchpoint.
11064 * win32-i386-low.c (i386_insert_point): Convert the packet number
11065 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11066 (i386_remove_point): Convert the packet number to a
11067 target_hw_bp_type before calling i386_low_remove_watchpoint.
11068
11069 2014-04-23 Pedro Alves <palves@redhat.com>
11070
11071 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11072
11073 2014-04-10 Pedro Alves <palves@redhat.com>
11074
11075 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11076 Check if the condition or command is NULL before checking if the
11077 breakpoint is known. On success, return true.
11078 * mem-break.h (add_breakpoint_condition): Document return.
11079 (add_breakpoint_commands): Add describing comment.
11080 * server.c (skip_to_semicolon): New function.
11081 (process_point_options): Use it.
11082
11083 2014-04-09 Pedro Alves <palves@redhat.com>
11084
11085 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11086 to lwpid_of.
11087
11088 2014-02-27 Pedro Alves <palves@redhat.com>
11089
11090 PR 12702
11091 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11092 macros.
11093 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11094 output.
11095 (last_thread_of_process_p): Take a PID argument instead of a
11096 thread pointer.
11097 (linux_wait_for_lwp): Delete.
11098 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11099 functions.
11100 (linux_low_filter_event): New function, party factored out from
11101 linux_wait_for_event.
11102 (linux_wait_for_event): Rename to ...
11103 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11104 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11105 sigsuspend. Check for zombie leaders.
11106 (linux_wait_for_event): Reimplement as wrapper around
11107 linux_wait_for_event_filtered.
11108 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11109 a normal or signal exit is seen, it's the whole process exiting.
11110 (wait_for_sigstop): No longer a for_each_inferior callback.
11111 Rewrite on top of linux_wait_for_event_filtered.
11112 (stop_all_lwps): Call wait_for_sigstop directly.
11113 * server.c (resume, handle_target_event): Handle
11114 TARGET_WAITKIND_NO_RESUMED.
11115
11116 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11117
11118 * win32-low.c (psapi_get_dll_name,
11119 * win32_CreateToolhelp32Snapshot): Delete.
11120 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11121 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11122 Delete.
11123 (handle_load_dll): Add function description.
11124 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11125
11126 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11127
11128 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11129 Add comment.
11130 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11131 base address when calling win32_add_one_solib.
11132 (handle_load_dll): Delete local variable load_addr.
11133 Remove 0x1000 offset applied to DLL base address when calling
11134 win32_add_one_solib.
11135 (handle_unload_dll): Add comment.
11136
11137 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11138
11139 * win32-low.c (win32_add_all_dlls): Renames
11140 win32_ensure_ntdll_loaded. Rewrite function documentation.
11141 Adjust implementation to always load all DLLs.
11142 Add 0x1000 offset to DLL base address when calling
11143 win32_add_one_solib.
11144 (child_initialization_done): New static global.
11145 (do_initial_child_stuff): Set child_initialization_done to
11146 zero during child initialization, and 1 after. Replace call
11147 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11148 Add comment.
11149 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11150 (handle_unload_dll): Add function documentation.
11151 (get_child_debug_event): Ignore load and unload DLL events
11152 during child initialization.
11153
11154 2014-02-20 Doug Evans <dje@google.com>
11155
11156 Remove global all_lwps.
11157 * inferiors.h (ptid_of): Move here from linux-low.h.
11158 (pid_of, lwpid_of): Ditto.
11159 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11160 parameter is a struct thread_info * now.
11161 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11162 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11163 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11164 directly.
11165 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11166 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11167 * linux-arm-low.c (update_registers_callback): Update, "entry"
11168 parameter is a struct thread_info * now.
11169 Fetch lwpid from current_inferior directly.
11170 (arm_insert_point): Pass &all_threads to find_inferior instead of
11171 &all_lwps.
11172 (arm_remove_point): Ditto.
11173 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11174 (arm_prepare_to_resume): Fetch pid from thread.
11175 (arm_read_description): Fetch lwpid from current_inferior directly.
11176 * linux-low.c (all_lwps): Delete.
11177 (delete_lwp): Delete call to remove_inferior.
11178 (handle_extended_wait): Fetch lwpid from thread.
11179 (add_lwp): Don't set lwp->entry.id. Remove call to
11180 add_inferior_to_list.
11181 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11182 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11183 (kill_one_lwp_callback): Ditto.
11184 (linux_kill): Don't dereference NULL pointer.
11185 Fetch ptid,lwpid from thread.
11186 (get_detach_signal): Fetch ptid from thread.
11187 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11188 Simplify call to regcache_invalidate_thread.
11189 (delete_lwp_callback): Update, "entry" parameter is a
11190 struct thread_info * now. Fetch pid from thread.
11191 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11192 (status_pending_p_callback): Update, "entry" parameter is a
11193 struct thread_info * now. Fetch ptid from thread.
11194 (find_lwp_pid): Update, "entry" parameter is a
11195 struct thread_info * now.
11196 (linux_wait_for_lwp): Fetch pid from thread.
11197 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11198 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11199 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11200 (dequeue_one_deferred_signal): Ditto.
11201 (cancel_breakpoint): Fetch ptid from current_inferior.
11202 (linux_wait_for_event): Pass &all_threads to find_inferior,
11203 not &all_lwps. Fetch ptid, lwpid from thread.
11204 (count_events_callback): Update, "entry" parameter is a
11205 struct thread_info * now.
11206 (select_singlestep_lwp_callback): Ditto.
11207 (select_event_lwp_callback): Ditto.
11208 (cancel_breakpoints_callback): Ditto.
11209 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11210 not &all_lwps.
11211 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11212 (unsuspend_one_lwp): Update, "entry" parameter is a
11213 struct thread_info * now.
11214 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11215 not &all_lwps.
11216 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11217 Fetch lwpid from thread, not lwp.
11218 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11219 Pass &all_threads to find_inferior, not &all_lwps.
11220 (send_sigstop): Fetch lwpid from thread, not lwp.
11221 (send_sigstop_callback): Update, "entry" parameter is a
11222 struct thread_info * now.
11223 (suspend_and_send_sigstop_callback): Ditto.
11224 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11225 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11226 struct thread_info * now.
11227 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11228 from thread, lwp.
11229 (lwp_running): Update, "entry" parameter is a
11230 struct thread_info * now.
11231 (stop_all_lwps): Fetch ptid from thread.
11232 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11233 (linux_resume_one_lwp): Fetch lwpid from thread.
11234 (linux_set_resume_request): Update, "entry" parameter is a
11235 struct thread_info * now. Fetch pid, lwpid from thread.
11236 (resume_status_pending_p): Update, "entry" parameter is a
11237 struct thread_info * now.
11238 (need_step_over_p): Ditto. Fetch lwpid from thread.
11239 (start_step_over): Fetch lwpid from thread.
11240 (linux_resume_one_thread): Update, "entry" parameter is a
11241 struct thread_info * now. Fetch lwpid from thread.
11242 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11243 (proceed_one_lwp): Update, "entry" parameter is a
11244 struct thread_info * now. Fetch lwpid from thread.
11245 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11246 struct thread_info * now.
11247 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11248 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11249 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11250 directly.
11251 (regsets_store_inferior_registers): Ditto.
11252 (fetch_register, store_register): Ditto.
11253 (linux_read_memory, linux_write_memory): Ditto.
11254 (linux_request_interrupt): Ditto.
11255 (linux_read_auxv): Ditto.
11256 (linux_xfer_siginfo): Ditto.
11257 (linux_qxfer_spu): Ditto.
11258 (linux_qxfer_libraries_svr4): Ditto.
11259 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11260 moved to inferiors.h.
11261 (get_lwp): Delete.
11262 (get_thread_lwp): Update.
11263 (struct lwp_info): Delete member "entry". Simplify comment for
11264 member "thread".
11265 (all_lwps): Delete.
11266 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11267 current_inferior directly.
11268 (update_watch_registers_callback): Update, "entry" parameter is a
11269 struct thread_info * now. Fetch pid from thread.
11270 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11271 (mips_insert_point): Fetch lwpid from current_inferior.
11272 Pass &all_threads to find_inferior, not &all_lwps.
11273 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11274 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11275 directly.
11276 (mips_stopped_data_address): Ditto.
11277 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11278 directly.
11279 * linux-tile-low.c (tile_arch_setup): Ditto.
11280 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11281 (update_debug_registers_callback): Update, "entry" parameter is a
11282 struct thread_info * now. Fetch pid from thread.
11283 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11284 Pass &all_threads to find_inferior, not &all_lwps.
11285 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11286 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11287 Pass &all_threads to find_inferior, not &all_lwps.
11288 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11289 (i386_dr_low_get_status): Ditto.
11290 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11291 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11292 (x86_linux_read_description): Ditto.
11293 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11294
11295 2014-02-20 Doug Evans <dje@google.com>
11296
11297 * inferiors.c (get_first_inferior): Fix buglet.
11298
11299 2014-02-19 Doug Evans <dje@google.com>
11300
11301 * gdbthread.h (add_thread): Change result type to struct thread_info *.
11302 * inferiors.c (add_thread): Change result type to struct thread_info *.
11303 All callers updated.
11304 (add_lwp): Call add_thread here instead of in callers.
11305 All callers updated.
11306 * linux-low.h (get_lwp_thread): Rewrite.
11307 (struct lwp_info): New member "thread".
11308
11309 2014-02-19 Doug Evans <dje@google.com>
11310
11311 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11312 All callers updated.
11313
11314 2014-02-19 Doug Evans <dje@google.com>
11315
11316 * inferiors.c (add_thread): Fix whitespace.
11317
11318 2014-02-19 Doug Evans <dje@google.com>
11319
11320 * dll.c (clear_dlls): Replace accessing list implemention details
11321 with API function.
11322 * gdbthread.h (get_first_thread): Declare.
11323 * inferiors.c (for_each_inferior_with_data): New function.
11324 (get_first_thread): New function.
11325 (find_thread_ptid): Simplify.
11326 (get_first_inferior): New function.
11327 (clear_list): Delete.
11328 (one_inferior_p): New function.
11329 (clear_inferior_list): New function.
11330 (clear_inferiors): Update.
11331 * inferiors.h (for_each_inferior_with_data): Declare.
11332 (clear_inferior_list): Declare.
11333 (one_inferior_p): Declare.
11334 (get_first_inferior): Declare.
11335 * linux-low.c (linux_wait_for_event): Replace accessing list
11336 implemention details with API function.
11337 * server.c (target_running): Ditto.
11338 (accumulate_file_name_length): New function.
11339 (emit_dll_description): New function.
11340 (handle_qxfer_libraries): Replace accessing list implemention
11341 details with API function.
11342 (handle_qxfer_threads_worker): New function.
11343 (handle_qxfer_threads_proper): Replace accessing list implemention
11344 details with API function.
11345 (handle_query): Ditto.
11346 (visit_actioned_threads_callback_ftype): New typedef.
11347 (visit_actioned_threads_data): New struct.
11348 (visit_actioned_threads): Rewrite to be find_inferior callback.
11349 (resume): Call find_inferior.
11350 (handle_status): Replace accessing list implemention
11351 details with API function.
11352 (process_serial_event): Replace accessing list implemention details
11353 with API function.
11354 * target.c (set_desired_inferior): Replace accessing list implemention
11355 details with API function.
11356 * tracepoint.c (same_process_p): New function.
11357 (gdb_agent_about_to_close): Replace accessing list implemention
11358 details with API function.
11359 * win32-low.c (child_delete_thread): Replace accessing list
11360 implemention details with API function.
11361 (match_dll_by_basename): New function.
11362 (dll_is_loaded_by_basename): New function.
11363 (win32_ensure_ntdll_loaded): Replace accessing list implemention
11364 details call to dll_is_loaded_by_basename.
11365
11366 2014-02-19 Doug Evans <dje@google.com>
11367
11368 * dll.h (struct dll_info): Add comment.
11369 * gdbthread.h (struct thread_info): Add comment.
11370 (current_ptid): Simplify.
11371 * inferiors.c (add_process): Update.
11372 (remove_process): Update.
11373 * inferiors.h (struct process_info): Rename member "head" to "entry".
11374 * linux-low.c (delete_lwp): Update.
11375 (add_lwp): Update.
11376 (last_thread_of_process_p): Update.
11377 (kill_one_lwp_callback, linux_kill): Update.
11378 (status_pending_p_callback): Update.
11379 (wait_for_sigstop): Update. Simplify read of ptid.
11380 (start_step_over): Update.
11381 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
11382 (get_lwp_thread): Update.
11383 (struct lwp_info): Rename member "head" to "entry".
11384 * regcache.h (inferior_list_entry): Delete.
11385 * server.c (kill_inferior_callback): Update.
11386 (detach_or_kill_inferior_callback): Update.
11387 (print_started_pid): Update.
11388 (print_attached_pid): Update.
11389 (process_serial_event): Simplify read of ptid.
11390 * thread-db.c (thread_db_create_event): Update.
11391 (thread_db_get_tls_address): Update.
11392 * win32-low.c (current_inferior_ptid): Simplify.
11393
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target.h (struct target_ops) <supports_btrace>: Add target_ops
11397 argument.
11398 (target_supports_btrace): Update.
11399
11400 2014-02-14 Yao Qi <yao@codesourcery.com>
11401
11402 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
11403 (rsp-low-ipa.o): New target.
11404
11405 2014-02-12 Tom Tromey <tromey@redhat.com>
11406
11407 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
11408 convert_ascii_to_int.
11409 * regcache.c (registers_to_string): Likewise.
11410 * remote-utils.c (decode_M_packet): Likewise.
11411 * server.c (process_serial_event): Likewise.
11412
11413 2014-02-12 Tom Tromey <tromey@redhat.com>
11414
11415 * server.c (handle_query, handle_v_run): Use hex2bin, not
11416 unhexify.
11417 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
11418
11419 2014-02-12 Tom Tromey <tromey@redhat.com>
11420
11421 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
11422 convert_int_to_ascii.
11423 * regcache.c (registers_to_string, collect_register_as_string):
11424 Likewise.
11425 * remote-utils.c (look_up_one_symbol, relocate_instruction):
11426 Likewise.
11427 * server.c (process_serial_event): Likewise.
11428 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
11429 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
11430
11431 2014-02-12 Tom Tromey <tromey@redhat.com>
11432
11433 * remote-utils.c (look_up_one_symbol, monitor_output): Use
11434 bin2hex, not hexify.
11435 * tracepoint.c (cmd_qtstatus): Likewise.
11436
11437 2014-02-12 Tom Tromey <tromey@redhat.com>
11438
11439 * remote-utils.c (monitor_output): Pass explicit length to
11440 hexify.
11441
11442 2014-02-12 Tom Tromey <tromey@redhat.com>
11443
11444 * tracepoint.c: Include rsp-low.h.
11445 * server.c: Include rsp-low.h.
11446 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
11447 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
11448 declare.
11449 * remote-utils.c: Include rsp-low.h.
11450 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
11451 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
11452 (convert_int_to_ascii, convert_ascii_to_int): Move to
11453 common/rsp-low.c.
11454 * regcache.c: Include rsp-low.h.
11455 * ax.c: Include rsp-low.h.
11456 * Makefile.in (SFILES): Add common/rsp-low.c.
11457 (OBS): Add rsp-low.o.
11458 (rsp-low.o): New target.
11459
11460 2014-02-12 Tom Tromey <tromey@redhat.com>
11461
11462 * utils.h (pulongest, plongest, phex_nz): Don't declare.
11463 Include print-utils.h.
11464 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11465 (plongest, thirty_two, phex_nz): Remove.
11466 * Makefile.in (SFILES): Add common/print-utils.c.
11467 (OBS): Add print-utils.o.
11468 (print-utils-ipa.o): New target.
11469 (print-utils.o): New target.
11470 (IPA_OBJS): Add print-utils-ipa.o.
11471
11472 2014-02-06 Tom Tromey <tromey@redhat.com>
11473
11474 * Makefile.in (SFILES): Fix indentation.
11475
11476 2014-02-05 Doug Evans <dje@google.com>
11477
11478 * linux-low.c (linux_wait_for_event): Improve comment.
11479 (linux_wait_1): Keep current_inferior in sync with event_child.
11480
11481 2014-01-22 Doug Evans <dje@google.com>
11482
11483 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11484
11485 2014-01-22 Doug Evans <dje@google.com>
11486
11487 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
11488 * configure: Regenerate.
11489 * config.in: Regenerate.
11490 * Makefile.in (SFILES): Add debug.c.
11491 (OBS): Add debug.o.
11492 * debug.c: New file.
11493 * debug.h: New file.
11494 * linux-aarch64-low.c (*): Update all debugging printfs to use
11495 debug_printf instead of fprintf.
11496 * linux-arm-low.c (*): Ditto.
11497 * linux-cris-low.c (*): Ditto.
11498 * linux-crisv32-low.c (*): Ditto.
11499 * linux-m32r-low.c (*): Ditto.
11500 * linux-sparc-low.c (*): Ditto.
11501 * linux-x86.c (*): Ditto.
11502 * linux-low.c (*): Ditto.
11503 (linux_wait_1): Add calls to debug_enter, debug_exit.
11504 (linux_wait): Remove redundant debugging printf.
11505 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11506 (linux_resume, unstop_all_lwps): Ditto.
11507 * mem-break.c (*): Update all debugging printfs to use
11508 debug_printf instead of fprintf.
11509 * remote-utils.c (*): Ditto.
11510 * thread-db.c (*): Ditto.
11511 * server.c #include <ctype.h>, "gdb_vecs.h".
11512 (debug_threads): Moved to debug.c.
11513 (*): Update all debugging printfs to use debug_printf instead of
11514 fprintf.
11515 (start_inferior): Replace call to fflush with call to debug_flush.
11516 (monitor_show_help): Mention set debug-format.
11517 (parse_debug_format_options): New function.
11518 (handle_monitor_command): Handle "monitor set debug-format".
11519 (gdbserver_usage): Mention --debug-format.
11520 (main): Parse --debug-format.
11521 * server.h (debug_threads): Declaration moved to debug.h.
11522 #include "debug.h".
11523 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11524 trace_debug_1 that uses debug_printf.
11525 (tracepoint_look_up_symbols): Update all debugging printfs to use
11526 debug_printf instead of fprintf.
11527
11528 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11529
11530 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11531 sys/ptrace.h.
11532
11533 2014-01-17 Pedro Alves <palves@redhat.com>
11534
11535 PR build/16445
11536 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11537 defined after including gdb_proc_service.h.
11538
11539 2014-01-16 Doug Evans <dje@google.com>
11540
11541 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11542 (match_dll): Use it.
11543
11544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11545
11546 * target.h (target_ops) <read_btrace>: Change parameters and
11547 return type to allow error reporting.
11548 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11549 trace reading errors on.
11550 * linux-low.c (linux_low_read_btrace): Pass trace reading
11551 errors on.
11552 (linux_low_disable_btrace): New.
11553
11554 2014-01-15 Doug Evans <dje@google.com>
11555
11556 * inferiors.c (thread_id_to_gdb_id): Delete.
11557 * inferiors.h (thread_id_to_gdb_id): Delete.
11558
11559 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11560
11561 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11562 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11563 versions.
11564
11565 2014-01-08 Pedro Alves <palves@redhat.com>
11566
11567 * server.c (handle_status): Don't discard previous queued stop
11568 replies or thread's pending status here.
11569 (main) <disconnection>: Do it here instead.
11570
11571 2014-01-08 Pedro Alves <palves@redhat.com>
11572
11573 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11574 * server.c (visit_actioned_threads, handle_pending_status): New
11575 function.
11576 (handle_v_cont): Factor out parts to ...
11577 (resume): ... this new function. If in all-stop, and a thread
11578 being resumed has a pending status, report it without actually
11579 resuming.
11580 (myresume): Adjust to use the new 'resume' function.
11581 (clear_pending_status_callback, set_pending_status_callback)
11582 (find_status_pending_thread_callback): New functions.
11583 (handle_status): Handle the case of multiple threads having
11584 interesting statuses to report. Report threads' real last signal
11585 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11586 with an interesting thread to report the status for, instead of
11587 always reporting the status of the first thread.
11588
11589 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11590
11591 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11592 * gdbreplay.c (gdbreplay_version): Likewise.
11593
11594 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11595
11596 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11597 iov.iov_len with the real length in use.
11598
11599 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11600
11601 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11602 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11603 for all targets that use win32-low.c.
11604 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11605 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11606
11607 2013-12-13 Pedro Alves <palves@redhat.com>
11608
11609 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11610 if equal to TARGET_WAITKIND_LOADED.
11611 * win32-low.c (cached_status): New static global.
11612 (win32_wait): Add declaration.
11613 (do_initial_child_stuff): Flush all initial pending debug events
11614 up to the initial breakpoint.
11615 (win32_wait): If CACHED_STATUS was set, return that instead
11616 of doing a real wait. Remove the code resuming the execution
11617 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11618 during the initial phase. Also remove the code changing
11619 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11620 TARGET_WAITKIND_STOPPED.
11621
11622 2013-12-11 Yao Qi <yao@codesourcery.com>
11623
11624 * notif.c (handle_notif_ack): Return 0 if no notification
11625 matches.
11626
11627 2013-11-20 Doug Evans <dje@google.com>
11628
11629 * linux-low.c (linux_set_resume_request): Fix comment.
11630
11631 2013-11-20 Doug Evans <dje@google.com>
11632
11633 * linux-low.c (resume_status_pending_p): Tweak comment.
11634
11635 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11636
11637 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11638 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11639 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11640 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11641 (srv_amd64_regobj): Add amd64-mpx.o.
11642 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11643 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11644 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11645 * i387-fp.c (num_pl_bnd_register) Added constant.
11646 (num_pl_bnd_cfg_registers) Added constant.
11647 (struct i387_xsave) Added reserved area and MPX fields.
11648 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11649 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11650 function.
11651 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11652 (init_registers_amd64_mpx_linux): Declare new function.
11653 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11654 (x86_64_regmap): Add MPX registers.
11655 (x86_linux_read_description): Add MPX case.
11656 (initialize_low_arch): Initialize MPX targets.
11657
11658 2013-11-18 Tom Tromey <tromey@redhat.com>
11659
11660 * configure: Rebuild.
11661 * configure.ac: Don't check for stdlib.h.
11662 * gdbreplay.c: Unconditionally include stdlib.h.
11663
11664 2013-11-18 Tom Tromey <tromey@redhat.com>
11665
11666 * config.in: Rebuild.
11667 * configure: Rebuild.
11668 * configure.ac: Don't use AC_HEADER_DIRENT.
11669
11670 2013-11-18 Tom Tromey <tromey@redhat.com>
11671
11672 * server.h: Don't check HAVE_STRING_H.
11673 * gdbreplay.c: Don't check HAVE_STRING_H.
11674 * configure: Rebuild.
11675
11676 2013-11-18 Tom Tromey <tromey@redhat.com>
11677
11678 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11679 LIBGNU.
11680
11681 2013-11-08 Tom Tromey <tromey@redhat.com>
11682
11683 * configure, config.in: Rebuild.
11684 * configure.ac: Remove unused configury.
11685
11686 2013-11-08 Tom Tromey <tromey@redhat.com>
11687
11688 * acinclude.m4: Include common.m4, codeset.m4.
11689 * configure, config.in: Rebuild.
11690 * configure.ac: Use GDB_AC_COMMON.
11691
11692 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11693
11694 * linux-s390-low.c (HWCAP_S390_TE): New define.
11695 (s390_arch_setup): Consider the TE field in the HWCAP for
11696 determining 'have_regset_tdb'.
11697
11698 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11699
11700 PR gdb/16014
11701 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11702 call to sizeof.
11703
11704 2013-10-02 Pedro Alves <palves@redhat.com>
11705
11706 * server.c (process_serial_event): Don't output "GDBserver
11707 exiting" if GDB is connected through stdio.
11708 * target.c (mywait): Likewise, be silent if GDB is connected
11709 through stdio.
11710
11711 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11712
11713 * lynx-low.c (lynx_add_threads_after_attach): New function.
11714 (lynx_attach): Remove call to add_thread. Add call to
11715 lynx_add_threads_after_attach instead.
11716
11717 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11718
11719 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11720 * config.in, configure: Regenerated.
11721
11722 2013-09-18 Yao Qi <yao@codesourcery.com>
11723
11724 PR server/15959
11725 * server.c (start_inferior): Clear 'resume_info'.
11726
11727 2013-09-16 Jiong Wang <jiwang@tilera.com>
11728
11729 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11730 for each register.
11731
11732 2013-09-16 Jiong Wang <jiwang@tilera.com>
11733
11734 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11735 linux-tile-low.o to srv_tgtobj.
11736
11737 2013-09-16 Will Newton <will.newton@linaro.org>
11738
11739 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11740 out regs.
11741
11742 2013-09-06 Pedro Alves <palves@redhat.com>
11743
11744 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11745 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11746 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11747 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11748 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11749 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11750
11751 2013-09-06 Pedro Alves <palves@redhat.com>
11752
11753 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11754 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11755
11756 2013-09-06 Pedro Alves <palves@redhat.com>
11757
11758 * linux-amd64-ipa.c: Include tracepoint.h.
11759 * linux-i386-ipa.c: Include tracepoint.h.
11760
11761 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11762
11763 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11764 (ps_get_thread_area): New function.
11765
11766 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11767
11768 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11769 (initialize_low_arch): Call init_registers_crisv32 rather than
11770 init_register_crisv32.
11771
11772 2013-09-05 Pedro Alves <palves@redhat.com>
11773
11774 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11775 to ...
11776 * hostio.h: ... this new file.
11777 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11778 win32-low.c: Include hostio.h.
11779
11780 2013-09-05 Pedro Alves <palves@redhat.com>
11781
11782 * server.h (gdb_client_data, handler_func, callback_handler_func)
11783 (delete_file_handler, add_file_handler, append_callback_event)
11784 (delete_callback_event, start_event_loop, initialize_event_loop):
11785 Move to event-loop.h and include it.
11786 * event-loop.h: New file.
11787
11788 2013-09-05 Pedro Alves <palves@redhat.com>
11789
11790 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11791 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11792 (loaded_dll, unloaded_dll): Move to ...
11793 * dll.h: ... this new file.
11794 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11795
11796 2013-09-05 Pedro Alves <palves@redhat.com>
11797
11798 * server.h (current_process, get_thread_process, all_processes)
11799 (add_inferior_to_list, for_each_inferior, current_inferior)
11800 (remove_inferior, add_process, remove_process, find_process_pid)
11801 (have_started_inferiors_p, have_attached_inferiors_p)
11802 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11803 (clear_inferiors, find_inferior, find_inferior_id)
11804 (inferior_target_data, set_inferior_target_data)
11805 (inferior_regcache_data, set_inferior_regcache_data): Move to
11806 inferiors.h, and include it.
11807 * inferiors.h: New file.
11808
11809 2013-09-05 Pedro Alves <palves@redhat.com>
11810
11811 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11812 Move ...
11813 * ax.h: ... here.
11814
11815 2013-09-05 Pedro Alves <palves@redhat.com>
11816
11817 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11818 tracepoint.h.
11819 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11820 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11821 (handle_tracepoint_general_set, handle_tracepoint_query)
11822 (tracepoint_finished_step, tracepoint_was_hit)
11823 (release_while_stepping_state_list, current_traceframe)
11824 (in_readonly_region, traceframe_read_mem)
11825 (fetch_traceframe_registers, traceframe_read_sdata)
11826 (traceframe_read_info, struct fast_tpoint_collect_status)
11827 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11828 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11829 (supply_fast_tracepoint_registers)
11830 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11831 (ipa_tdesc, claim_trampoline_space)
11832 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11833 (agent_mem_read, agent_get_trace_state_variable_value)
11834 (agent_set_trace_state_variable_value, agent_tsv_read)
11835 (agent_mem_read_string, get_raw_reg_func_addr)
11836 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11837 * tracepoint.h: ... this new file.
11838
11839 2013-09-05 Pedro Alves <palves@redhat.com>
11840
11841 * server.h (perror_with_name, error, fatal, warning, paddress)
11842 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11843 include it.
11844 * utils.h: New file.
11845
11846 2013-09-05 Pedro Alves <palves@redhat.com>
11847
11848 * server.h (remote_debug, noack_mode, transport_is_reliable)
11849 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11850 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11851 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11852 (write_enn, initialize_async_io, enable_async_io)
11853 (disable_async_io, check_remote_input_interrupt_request)
11854 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11855 (dead_thread_notify, prepare_resume_reply)
11856 (decode_address_to_semicolon, decode_address, decode_m_packet)
11857 (decode_M_packet, decode_X_packet, decode_xfer_write)
11858 (decode_search_memory_packet, unhexify, hexify)
11859 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11860 (look_up_one_symbol, relocate_instruction)
11861 (monitor_output): Move to remote-utils.h, and include it.
11862 * remote-utils.h: New file.
11863
11864 2013-09-05 Pedro Alves <palves@redhat.com>
11865
11866 * server.h (_): Delete.
11867
11868 2013-09-02 Pedro Alves <palves@redhat.com>
11869
11870 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11871 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11872 allocated.
11873 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11874
11875 2013-09-02 Pierre Muller <muller@sourceware.org>
11876
11877 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11878 or WriteProcessMemory complete successfully and handle
11879 ERROR_PARTIAL_COPY error.
11880
11881 2013-09-02 Pedro Alves <palves@redhat.com>
11882
11883 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11884 error instead of EIO.
11885
11886 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11887
11888 PR server/15604
11889 * linux-low.c: Include filestuff.h.
11890 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11891 * lynx-low.c: Include filestuff.h.
11892 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11893 * server.c: Include filestuff.h.
11894 (main): Call notice_open_fds.
11895 * spu-low.c: Include filestuff.h.
11896 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11897
11898 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11899
11900 * Makefile.in: Explain why ../target and ../nat are not
11901 listed as include file search paths.
11902 (linux-waitpid.o): New object file rule.
11903 * configure.srv (srv_native_linux_obj): New variable.
11904 Replace all occurrences of linux native object files with
11905 $srv_native_linux_obj.
11906 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11907 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11908 (linux_enable_event_reporting): Remove declaration.
11909 (my_waitpid): Moved to common/linux-waitpid.c.
11910 (linux_wait_for_event): Pass ptid when calling
11911 linux_enable_event_reporting.
11912 (linux_supports_tracefork_flag): Remove.
11913 (linux_enable_event_reporting): Likewise.
11914 (linux_tracefork_grandchild): Remove.
11915 (STACK_SIZE): Moved to common/linux-ptrace.c.
11916 (linux_tracefork_child): Remove.
11917 (linux_test_for_tracefork): Remove.
11918 (linux_look_up_symbols): Call linux_supports_traceclone.
11919 (initialize_low): Remove call to linux_test_for_tracefork.
11920 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11921 common/linux-ptrace.h.
11922 (PTRACE_TYPE_ARG4): Likewise.
11923 Include linux-ptrace.h.
11924
11925 2013-08-21 Pedro Alves <palves@redhat.com>
11926
11927 * config.in: Renegerate.
11928
11929 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11930
11931 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11932 (SFILES): Remove $(srcdir)/common/target-common.c and
11933 add $(srcdir)/target/waitstatus.c.
11934 (OBS): Remove target-common.o and add waitstatus.o.
11935 (server_h): Remove $(srcdir)/../common/target-common.h and
11936 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11937 and $(srcdir)/../target/waitstatus.h.
11938 (target-common.o): Remove.
11939 (waitstatus.o): New target object file.
11940 * target.h: Do not include target-common.h and
11941 include target/resume.h, target/wait.h and
11942 target/waitstatus.h.
11943
11944 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11945
11946 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11947 to PTRACE_TYPE_ARG3.
11948 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11949 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11950 PTRACE_TYPE_ARG4.
11951 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11952 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11953
11954 2013-07-27 Jie Zhang <jie@codesourcery.com>
11955 Daniel Jacobowitz <dan@codesourcery.com>
11956 Yao Qi <yao@codesourcery.com>
11957
11958 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11959 (mips-linux-watch.o): New rule.
11960 (mips_linux_watch_h): New variable.
11961 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11962 srv_tgtobj.
11963 * linux-mips-low.c: Include mips-linux-watch.h.
11964 (struct arch_process_info, struct arch_lwp_info): New.
11965 (update_watch_registers_callback): New function.
11966 (mips_linux_new_process, mips_linux_new_thread) New functions.
11967 (mips_linux_prepare_to_resume, mips_insert_point): New
11968 functions.
11969 (mips_remove_point, mips_stopped_by_watchpoint): New
11970 functions.
11971 (rsp_bp_type_to_target_hw_bp_type): New function.
11972 (mips_stopped_data_address): New function.
11973 (the_low_target): Add watchpoint support functions.
11974
11975 2013-07-27 Yao Qi <yao@codesourcery.com>
11976
11977 * i386-low.c: Include break-common.h.
11978 (enum target_hw_bp_type): Remove.
11979
11980 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11981
11982 * Makefile.in (SFILES): /common/target-common.c.
11983 (OBS): Add target-common.o.
11984 (server_h): Add $(srcdir)/../common/target-common.h.
11985 (target-common.o): New target.
11986 * server.c (queue_stop_reply_callback): Free
11987 status string after use.
11988 * target.c (target_waitstatus_to_string): Remove.
11989 * target.h: Include target-common.h.
11990 (resume_kind): Likewise.
11991 (target_waitkind): Likewise.
11992 (target_waitstatus): Likewise.
11993 (TARGET_WNOHANG): Likewise.
11994
11995 2013-07-04 Yao Qi <yao@codesourcery.com>
11996
11997 * Makefile.in (host_alias): Use @host_noncanonical@.
11998 (target_alias): Use @target_noncanonical@.
11999 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12000 ACX_NONCANONICAL_HOST.
12001 * configure: Regenerated.
12002
12003 Revert:
12004 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12005
12006 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12007 * configure: Rebuild.
12008 * Makefile.in (version_host, version_target): Get from configure.
12009 (version.c): Use $(version_host) and $(version_target).
12010
12011 2013-07-03 Pedro Alves <palves@redhat.com>
12012
12013 * Makefile.in (config.status): Depend on development.sh.
12014 * acinclude.m4: Include libmcheck.m4.
12015 * configure: Regenerate.
12016
12017 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12018
12019 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12020 attribute inside the parentheses.
12021 (winapi_DebugSetProcessKillOnExit): Ditto.
12022 (winapi_DebugBreakProcess): Ditto.
12023 (winapi_GenerateConsoleCtrlEvent): Ditto.
12024
12025 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12026
12027 * notif.h (notif_event): Add a dummy member to avoid compiler
12028 errors.
12029
12030 2013-07-01 Pedro Alves <palves@redhat.com>
12031
12032 * hostio.c (HOSTIO_PATH_MAX): Define.
12033 (require_filename, handle_open, handle_unlink, handle_readlink):
12034 Use it.
12035
12036 2013-07-01 Pedro Alves <palves@redhat.com>
12037
12038 * server.h: Include "pathmax.h".
12039 * linux-low.c: Don't include sys/param.h.
12040 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12041 MAXPATHLEN.
12042 * win32-low.c: Don't include sys/param.h.
12043 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12044
12045 2013-07-01 Pedro Alves <palves@redhat.com>
12046
12047 * event-loop.c: Don't check HAVE_UNISTD_H before including
12048 <unistd.h>.
12049 * gdbreplay.c: Likewise.
12050 * remote-utils.c: Likewise.
12051 * server.c: Likewise.
12052 * configure.ac: Don't check for unistd.h.
12053 * configure: Regenerate.
12054
12055 2013-06-28 Tom Tromey <tromey@redhat.com>
12056
12057 * Makefile.in (version.c): Use version.in, not
12058 common/version.in.
12059
12060 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12061
12062 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12063 * configure: Rebuild.
12064 * Makefile.in (version_host, version_target): Get from configure.
12065 (version.c): Use $(version_host) and $(version_target).
12066
12067 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12068
12069 Fix trace-status to output user name without trailing colon.
12070 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12071
12072 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12073
12074 Fix trace-status to output proper start-time and stop-time.
12075 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12076 output start time and stop time in hex as gdb expects.
12077
12078 2013-06-26 Pedro Alves <pedro@codesourcery.com>
12079
12080 * tracepoint.c (build_traceframe_info_xml): Output trace state
12081 variables present in the trace buffer.
12082
12083 2013-06-24 Tom Tromey <tromey@redhat.com>
12084
12085 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12086 create-version.sh.
12087 (version.o): Remove.
12088 * gdbreplay.c: Include version.h.
12089 (version, host_name): Don't declare.
12090 * server.h: Include version.h.
12091 (version, host_name): Don't declare.
12092
12093 2013-06-12 Pedro Alves <palves@redhat.com>
12094
12095 * linux-x86-low.c (linux_is_elf64): Delete global.
12096 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12097 with local linux_pid_exe_is_elf_64_file use.
12098
12099 2013-06-11 Pedro Alves <palves@redhat.com>
12100
12101 * linux-low.c (regset_disabled, disable_regset): New functions.
12102 (regsets_fetch_inferior_registers)
12103 (regsets_store_inferior_registers): Use them.
12104 (initialize_regsets_info); Don't allocate the disabled_regsets
12105 array here.
12106 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12107 comment.
12108
12109 2013-06-11 Pedro Alves <palves@redhat.com>
12110
12111 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12112 xmalloc.
12113
12114 2013-06-11 Pedro Alves <palves@redhat.com>
12115
12116 * linux-x86-low.c (initialize_low_arch): Call
12117 init_registers_x32_avx_linux.
12118
12119 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12120
12121 Fix compatibility with Android Bionic.
12122 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12123 it is not empty.
12124
12125 2013-06-07 Pedro Alves <palves@redhat.com>
12126
12127 PR server/14823
12128 * Makefile.in (OBS): Add tdesc.o.
12129 (IPA_OBJS): Add tdesc-ipa.o.
12130 (tdesc-ipa.o): New rule.
12131 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12132 interface.
12133 * linux-low.c (new_inferior): Delete.
12134 (disabled_regsets, num_regsets): Delete.
12135 (linux_add_process): Adjust to set the new per-process
12136 new_inferior flag.
12137 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12138 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12139 was a stop. When calling arch_setup, switch the current inferior
12140 to the thread that got an event.
12141 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12142 (regsets_fetch_inferior_registers)
12143 (regsets_store_inferior_registers): New regsets_info parameter.
12144 Adjust to use it.
12145 (linux_register_in_regsets): New regs_info parameter. Adjust to
12146 use it.
12147 (register_addr, fetch_register, store_register): New usrregs_info
12148 parameter. Adjust to use it.
12149 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12150 parameter regs_info. Adjust to use it.
12151 (linux_fetch_registers): Get the current inferior's regs_info, and
12152 adjust to use it.
12153 (linux_store_registers): Ditto.
12154 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12155 (initialize_low): Don't initialize the target_regsets here. Call
12156 initialize_low_arch.
12157 * linux-low.h (target_regsets): Delete declaration.
12158 (struct regsets_info): New.
12159 (struct usrregs_info): New.
12160 (struct regs_info): New.
12161 (struct process_info_private) <new_inferior>: New field.
12162 (struct linux_target_ops): Delete the num_regs, regmap, and
12163 regset_bitmap fields. New field regs_info.
12164 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12165 * i387-fp.c (num_xmm_registers): Delete.
12166 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12167 calls to new interface.
12168 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12169 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12170 Infer the number of xmm registers from the regcache's target
12171 description.
12172 * i387-fp.h (num_xmm_registers): Delete.
12173 * inferiors.c (add_thread): Don't install the thread's regcache
12174 here.
12175 * proc-service.c (gregset_info): Fetch the current inferior's
12176 regs_info. Adjust to use it.
12177 * regcache.c: Include tdesc.h.
12178 (register_bytes, reg_defs, num_registers)
12179 (gdbserver_expedite_regs): Delete.
12180 (get_thread_regcache): If the thread doesn't have a regcache yet,
12181 create one, instead of aborting gdbserver.
12182 (regcache_invalidate_one): Rename to ...
12183 (regcache_invalidate_thread): ... this.
12184 (regcache_invalidate_one): New.
12185 (regcache_invalidate): Only invalidate registers of the current
12186 process.
12187 (init_register_cache): Add target_desc parameter, and use it.
12188 (new_register_cache): Ditto. Assert the target description has a
12189 non zero registers_size.
12190 (regcache_cpy): Add assertions. Adjust.
12191 (realloc_register_cache, set_register_cache): Delete.
12192 (registers_to_string, registers_from_string): Adjust.
12193 (find_register_by_name, find_regno, find_register_by_number)
12194 (register_cache_size): Add target_desc parameter, and use it.
12195 (free_register_cache_thread, free_register_cache_thread_one)
12196 (regcache_release, register_cache_size): New.
12197 (register_size): Add target_desc parameter, and use it.
12198 (register_data, supply_register, supply_register_zeroed)
12199 (supply_regblock, supply_register_by_name, collect_register)
12200 (collect_register_as_string, collect_register_by_name): Adjust.
12201 * regcache.h (struct target_desc): Forward declare.
12202 (struct regcache) <tdesc>: New field.
12203 (init_register_cache, new_register_cache): Add target_desc
12204 parameter.
12205 (regcache_invalidate_thread): Declare.
12206 (regcache_invalidate_one): Delete declaration.
12207 (regcache_release): Declare.
12208 (find_register_by_number, register_cache_size, register_size)
12209 (find_regno): Add target_desc parameter.
12210 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12211 declarations.
12212 * remote-utils.c: Include tdesc.h.
12213 (outreg, prepare_resume_reply): Adjust.
12214 * server.c: Include tdesc.h.
12215 (gdbserver_xmltarget): Delete declaration.
12216 (get_features_xml, process_serial_event): Adjust.
12217 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12218 declare.
12219 (struct process_info) <tdesc>: New field.
12220 (ipa_tdesc): Declare.
12221 * tdesc.c: New file.
12222 * tdesc.h: New file.
12223 * tracepoint.c: Include tdesc.h.
12224 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12225 (get_context_regcache): Adjust to pass ipa_tdesc down.
12226 (do_action_at_tracepoint): Adjust to get the register cache size
12227 from the context regcache's description.
12228 (traceframe_walk_blocks): Adjust to get the register cache size
12229 from the current trace frame's description.
12230 (traceframe_get_pc): Adjust to get current trace frame's
12231 description and pass it down.
12232 (gdb_collect): Adjust to get the register cache size from the
12233 IPA's description.
12234 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12235 (gdbserver_xmltarget): Delete.
12236 (initialize_low_tracepoint): Set the ipa's target description.
12237 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12238 (initialize_low_tracepoint): Set the ipa's target description.
12239 * linux-x86-low.c: Include tdesc.h.
12240 [__x86_64__] (is_64bit_tdesc): New.
12241 (ps_get_thread_area, x86_get_thread_area): Use it.
12242 (i386_cannot_store_register): Rename to ...
12243 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12244 (i386_cannot_fetch_register): Rename to ...
12245 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12246 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12247 to new interface.
12248 (target_regsets): Rename to ...
12249 (x86_regsets): ... this.
12250 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12251 interface.
12252 (x86_siginfo_fixup): Use is_64bit_tdesc.
12253 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12254 (tdesc_x32_avx_linux, tdesc_x32_linux)
12255 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12256 Declare.
12257 (x86_linux_update_xmltarget): Delete.
12258 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12259 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12260 (AMD64_LINUX_USER64_CS): New.
12261 (x86_linux_read_description): New, based on
12262 x86_linux_update_xmltarget.
12263 (same_process_callback): New.
12264 (x86_arch_setup_process_callback): New.
12265 (x86_linux_update_xmltarget): New.
12266 (x86_regsets_info): New.
12267 (amd64_linux_regs_info): New.
12268 (i386_linux_usrregs_info): New.
12269 (i386_linux_regs_info): New.
12270 (x86_linux_regs_info): New.
12271 (x86_arch_setup): Reimplement.
12272 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12273 (x86_emit_ops): Ditto.
12274 (the_low_target): Adjust. Install x86_linux_regs_info,
12275 x86_cannot_fetch_register, and x86_cannot_store_register.
12276 (initialize_low_arch): New.
12277 * linux-ia64-low.c (tdesc_ia64): Declare.
12278 (ia64_fetch_register): Adjust.
12279 (ia64_usrregs_info, regs_info): New globals.
12280 (ia64_regs_info): New function.
12281 (the_low_target): Adjust.
12282 (initialize_low_arch): New function.
12283 * linux-sparc-low.c (tdesc_sparc64): Declare.
12284 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12285 Adjust.
12286 (sparc_arch_setup): New function.
12287 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12288 (the_low_target): Adjust.
12289 (initialize_low_arch): New function.
12290 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12291 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12292 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12293 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12294 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12295 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12296 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12297 (tdesc_powerpc_isa205_vsx64l): Declare.
12298 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12299 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
12300 (ppc_set_pc, ppc_get_hwcap): Adjust.
12301 (ppc_usrregs_info): Forward declare.
12302 (!__powerpc64__) ppc_regmap_adjusted: New global.
12303 (ppc_arch_setup): Adjust to the current process'es target
12304 description.
12305 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
12306 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
12307 (ppc_store_evrregset): Adjust.
12308 (target_regsets): Rename to ...
12309 (ppc_regsets): ... this, and make static.
12310 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
12311 (ppc_regs_info): New function.
12312 (the_low_target): Adjust.
12313 (initialize_low_arch): New function.
12314 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
12315 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
12316 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
12317 (tdesc_s390x_linux64v2): Declare.
12318 (s390_collect_ptrace_register, s390_supply_ptrace_register)
12319 (s390_fill_gregset, s390_store_last_break): Adjust.
12320 (target_regsets): Rename to ...
12321 (s390_regsets): ... this, and make static.
12322 (s390_get_pc, s390_set_pc): Adjust.
12323 (s390_get_hwcap): New target_desc parameter, and use it.
12324 [__s390x__] (have_hwcap_s390_high_gprs): New global.
12325 (s390_arch_setup): Adjust to set the current process'es target
12326 description. Don't adjust the regmap.
12327 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
12328 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
12329 (regs_info_3264): New globals.
12330 (s390_regs_info): New function.
12331 (the_low_target): Adjust.
12332 (initialize_low_arch): New function.
12333 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
12334 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
12335 [__mips64] (init_registers_mips_linux)
12336 (init_registers_mips_dsp_linux): Delete defines.
12337 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
12338 (have_dsp): New global.
12339 (mips_read_description): New, based on mips_arch_setup.
12340 (mips_arch_setup): Reimplement.
12341 (get_usrregs_info): New function.
12342 (mips_cannot_fetch_register, mips_cannot_store_register)
12343 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
12344 (mips_fill_fpregset, mips_store_fpregset): Adjust.
12345 (target_regsets): Rename to ...
12346 (mips_regsets): ... this, and make static.
12347 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
12348 (dsp_regs_info, regs_info): New globals.
12349 (mips_regs_info): New function.
12350 (the_low_target): Adjust.
12351 (initialize_low_arch): New function.
12352 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
12353 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
12354 Declare.
12355 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
12356 (arm_read_description): New, with bits factored from
12357 arm_arch_setup.
12358 (arm_arch_setup): Reimplement.
12359 (target_regsets): Rename to ...
12360 (arm_regsets): ... this, and make static.
12361 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
12362 (arm_regs_info): New function.
12363 (the_low_target): Adjust.
12364 (initialize_low_arch): New function.
12365 * linux-m68k-low.c (tdesc_m68k): Declare.
12366 (target_regsets): Rename to ...
12367 (m68k_regsets): ... this, and make static.
12368 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
12369 (m68k_regs_info): New function.
12370 (m68k_arch_setup): New function.
12371 (the_low_target): Adjust.
12372 (initialize_low_arch): New function.
12373 * linux-sh-low.c (tdesc_sharch): Declare.
12374 (target_regsets): Rename to ...
12375 (sh_regsets): ... this, and make static.
12376 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
12377 (sh_regs_info, sh_arch_setup): New functions.
12378 (the_low_target): Adjust.
12379 (initialize_low_arch): New function.
12380 * linux-bfin-low.c (tdesc_bfin): Declare.
12381 (bfin_arch_setup): New function.
12382 (bfin_usrregs_info, regs_info): New globals.
12383 (bfin_regs_info): New function.
12384 (the_low_target): Adjust.
12385 (initialize_low_arch): New function.
12386 * linux-cris-low.c (tdesc_cris): Declare.
12387 (cris_arch_setup): New function.
12388 (cris_usrregs_info, regs_info): New globals.
12389 (cris_regs_info): New function.
12390 (the_low_target): Adjust.
12391 (initialize_low_arch): New function.
12392 * linux-cris-low.c (tdesc_crisv32): Declare.
12393 (cris_arch_setup): New function.
12394 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
12395 (cris_regs_info): New function.
12396 (the_low_target): Adjust.
12397 (initialize_low_arch): New function.
12398 * linux-m32r-low.c (tdesc_m32r): Declare.
12399 (m32r_arch_setup): New function.
12400 (m32r_usrregs_info, regs_info): New globals.
12401 (m32r_regs_info): Adjust.
12402 (initialize_low_arch): New function.
12403 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
12404 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
12405 (tic6x_usrregs_info): Forward declare.
12406 (tic6x_read_description): New function, based on ...
12407 (tic6x_arch_setup): ... this. Reimplement.
12408 (target_regsets): Rename to ...
12409 (tic6x_regsets): ... this, and make static.
12410 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
12411 (tic6x_regs_info): New function.
12412 (the_low_target): Adjust.
12413 (initialize_low_arch): New function.
12414 * linux-xtensa-low.c (tdesc_xtensa): Declare.
12415 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
12416 (target_regsets): Rename to ...
12417 (xtensa_regsets): ... this, and make static.
12418 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
12419 globals.
12420 (xtensa_arch_setup, xtensa_regs_info): New functions.
12421 (the_low_target): Adjust.
12422 (initialize_low_arch): New function.
12423 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
12424 (nios2_arch_setup): Set the current process'es tdesc.
12425 (target_regsets): Rename to ...
12426 (nios2_regsets): ... this.
12427 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
12428 (nios2_regs_info): New function.
12429 (the_low_target): Adjust.
12430 (initialize_low_arch): New function.
12431 * linux-aarch64-low.c (tdesc_aarch64): Declare.
12432 (aarch64_arch_setup): Set the current process'es tdesc.
12433 (target_regsets): Rename to ...
12434 (aarch64_regsets): ... this.
12435 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
12436 (aarch64_regs_info): New function.
12437 (the_low_target): Adjust.
12438 (initialize_low_arch): New function.
12439 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
12440 globals.
12441 (target_regsets): Rename to ...
12442 (tile_regsets): ... this.
12443 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
12444 (tile_regs_info): New function.
12445 (tile_arch_setup): Set the current process'es tdesc.
12446 (the_low_target): Adjust.
12447 (initialize_low_arch): New function.
12448 * spu-low.c (tdesc_spu): Declare.
12449 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
12450 * win32-arm-low.c (tdesc_arm): Declare.
12451 (arm_arch_setup): New function.
12452 (the_low_target): Install arm_arch_setup instead of
12453 init_registers_arm.
12454 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
12455 (init_windows_x86): Rename to ...
12456 (i386_arch_setup): ... this. Set `win32_tdesc'.
12457 (the_low_target): Adjust.
12458 * win32-low.c (win32_tdesc): New global.
12459 (child_add_thread): Don't create the thread cache here.
12460 (do_initial_child_stuff): Set the new process'es tdesc.
12461 * win32-low.h (struct target_desc): Forward declare.
12462 (win32_tdesc): Declare.
12463 * lynx-i386-low.c (tdesc_i386): Declare global.
12464 (lynx_i386_arch_setup): Set `lynx_tdesc'.
12465 * lynx-low.c (lynx_tdesc): New global.
12466 (lynx_add_process): Set the new process'es tdesc.
12467 * lynx-low.h (struct target_desc): Forward declare.
12468 (lynx_tdesc): Declare global.
12469 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
12470 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
12471 * nto-low.c (nto_tdesc): New global.
12472 (do_attach): Set the new process'es tdesc.
12473 * nto-low.h (struct target_desc): Forward declare.
12474 (nto_tdesc): Declare.
12475 * nto-x86-low.c (tdesc_i386): Declare.
12476 (nto_x86_arch_setup): Set `nto_tdesc'.
12477
12478 2013-06-04 Gary Benson <gbenson@redhat.com>
12479
12480 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
12481 to qSupported response when appropriate.
12482 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
12483 with nonzero-length annex.
12484 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
12485 arguments supplied in annex.
12486
12487 2013-05-31 Doug Evans <dje@google.com>
12488
12489 PR server/15594
12490 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12491 64 bits in 64-cross-32 environment.
12492
12493 2013-05-28 Pedro Alves <palves@redhat.com>
12494
12495 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
12496 (aarch64-without-fpu.c): Delete rule.
12497 * configure.srv (aarch64*-*-linux*): Remove references to
12498 aarch64-without-fpu.o and aarch64-without-fpu.xml.
12499 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12500 declaration.
12501
12502 2013-05-24 Pedro Alves <palves@redhat.com>
12503
12504 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12505 instead of strchr/decode_address. Error if the range isn't split
12506 with a ','. Don't assume there's be a ':' in the action.
12507
12508 2013-05-23 Yao Qi <yao@codesourcery.com>
12509 Pedro Alves <palves@redhat.com>
12510
12511 * linux-low.c (lwp_in_step_range): New function.
12512 (linux_wait_1): If the thread was range stepping and stopped
12513 outside the stepping range, report the stop to GDB. Otherwise,
12514 continue stepping. Add range stepping debug output.
12515 (linux_set_resume_request): Copy the step range from the resume
12516 request to the lwp.
12517 (linux_supports_range_stepping): New.
12518 (linux_target_ops) <supports_range_stepping>: Set to
12519 linux_supports_range_stepping.
12520 * linux-low.h (struct linux_target_ops)
12521 <supports_range_stepping>: New field.
12522 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12523 * linux-x86-low.c (x86_supports_range_stepping): New.
12524 (the_low_target) <supports_range_stepping>: Set to
12525 x86_supports_range_stepping.
12526 * server.c (handle_v_cont): Handle 'r' action.
12527 (handle_v_requests): Append ";r" if the target supports range
12528 stepping.
12529 * target.h (struct thread_resume) <step_range_start,
12530 step_range_end>: New fields.
12531 (struct target_ops) <supports_range_stepping>:
12532 New field.
12533 (target_supports_range_stepping): New macro.
12534
12535 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12536
12537 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12538 confusion in comment.
12539
12540 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12541
12542 * lynx-low.c (struct process_info_private): New type.
12543 (lynx_add_process): New function.
12544 (lynx_create_inferior, lynx_attach): Replace calls to
12545 add_process by calls to lynx_add_process.
12546 (lynx_resume): If PTID is null, then try using
12547 current_process()->private->last_wait_event_ptid.
12548 Add comments.
12549 (lynx_clear_inferiors): Delete. The contents of that function
12550 has been inlined in lynx_mourn;
12551 (lynx_wait_1): Save the ptid in the process's private data.
12552 (lynx_mourn): Free the process' private data. Replace call
12553 to lynx_clear_inferiors by call to clear_inferiors.
12554
12555 2013-05-17 Yao Qi <yao@codesourcery.com>
12556
12557 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12558 the right place.
12559
12560 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12561
12562 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12563 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12564 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12565 PT_TEXT_END_ADDR guards. Update comments.
12566 (linux_target_op) <read_offsets>: Conditionally define to
12567 linux_read_offsets if the target is UCLIBC and if it defines
12568 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12569
12570 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12571 Andrew Jenner <andrew@codesourcery.com>
12572
12573 * Makefile.in (SFILES): Add linux-nios2-low.c.
12574 (clean): Add action to delete nios2-linux.c.
12575 (nios2-linux.c): New rule.
12576 * configure.srv: Add nios2*-*-linux*.
12577 * linux-nios2-low.c: New.
12578
12579 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12580
12581 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12582
12583 2013-04-25 Hui Zhu <hui@codesourcery.com>
12584
12585 PR gdb/15186
12586 * ax.c (ax_printf): Add fflush.
12587
12588 2013-04-22 Tom Tromey <tromey@redhat.com>
12589
12590 * Makefile.in (SFILES): Add filestuff.c.
12591 (OBS): Add filestuff.o.
12592 (filestuff.o): New target.
12593 * config.in, configure: Rebuild.
12594 * configure.ac: Check for fdwalk, pipe2.
12595
12596 2013-04-17 Pedro Alves <palves@redhat.com>
12597
12598 * configure.ac (USE_THREAD_DB): Delete variable.
12599 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12600 Don't AC_SUBST USE_THREAD_DB.
12601 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12602 * config.in, configure: Regenerate.
12603
12604 2013-04-16 Pedro Alves <palves@redhat.com>
12605
12606 * linux-low.h (struct lwp_info) <thread_known>: Move under
12607 the USE_THREAD_DB #ifdef.
12608
12609 2013-04-16 Pedro Alves <palves@redhat.com>
12610
12611 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12612 (linux-low.o): Delete rule.
12613 * linux-low.h: Always include "gdb_thread_db.h" instead of
12614 conditionally including thread_db.h.
12615 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12616 HAVE_THREAD_DB_H.
12617
12618 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12619
12620 * Makefile.in (install-only): Fix make install regression.
12621
12622 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12623
12624 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12625 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12626 installation.
12627 * gdbserver.1: Remove.
12628
12629 2013-03-22 Pedro Alves <palves@redhat.com>
12630
12631 * linux-low.c (handle_extended_wait): Don't call
12632 linux_enable_event_reporting.
12633
12634 2013-03-15 Tony Theodore <tonyt@logyst.com>
12635
12636 PR build/9098:
12637 * Makefile.in (SHELL): Use @SHELL@.
12638
12639 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12640
12641 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12642 compiler warning.
12643
12644 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12645
12646 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12647 Remove extraneous NULL element.
12648
12649 2013-03-13 Yao Qi <yao@codesourcery.com>
12650
12651 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12652 'V' block in trace frame.
12653
12654 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12655
12656 * target.h (struct target_ops): Add btrace ops.
12657 (target_supports_btrace): New macro.
12658 (target_enable_btrace): New macro.
12659 (target_disable_btrace): New macro.
12660 (target_read_btrace): New macro.
12661 * gdbthread.h (struct thread_info): Add btrace field.
12662 * server.c: Include btrace-common.h.
12663 (handle_btrace_general_set): New function.
12664 (handle_btrace_enable): New function.
12665 (handle_btrace_disable): New function.
12666 (handle_general_set): Call handle_btrace_general_set.
12667 (handle_qxfer_btrace): New function.
12668 (struct qxfer qxfer_packets[]): Add btrace entry.
12669 * inferiors.c (remove_thread): Disable btrace.
12670 * linux-low: Include linux-btrace.h.
12671 (linux_low_enable_btrace): New function.
12672 (linux_low_read_btrace): New function.
12673 (linux_target_ops): Add btrace ops.
12674 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12675 Add srv_linux_btrace=yes.
12676 (x86_64-*-linux*): Add linux-btrace.o.
12677 Add srv_linux_btrace=yes.
12678 * configure.ac: Define HAVE_LINUX_BTRACE.
12679 * config.in: Regenerated.
12680 * configure: Regenerated.
12681
12682 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12683
12684 * server.c (handle_qxfer): Preserve error message if -3 is
12685 returned.
12686 (qxfer): Document the -3 return value.
12687
12688 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12689
12690 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12691 (linux_btrace_h): New variable.
12692 (linux-btrace.o): New rule.
12693
12694 2013-03-08 Stan Shebs <stan@codesourcery.com>
12695 Hafiz Abid Qadeer <abidh@codesourcery.com>
12696
12697 * tracepoint.c (trace_buffer_size): New global.
12698 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12699 (init_trace_buffer): Change to one-argument function. Allocate
12700 trace buffer memory.
12701 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12702 handle QTBuffer:size packet.
12703 (cmd_bigqtbuffer_size): New function.
12704 (initialize_tracepoint): Call init_trace_buffer with
12705 DEFAULT_TRACE_BUFFER_SIZE.
12706 * server.c (handle_query): Add QTBuffer:size in the
12707 supported packets.
12708
12709 2013-03-07 Yao Qi <yao@codesourcery.com>
12710
12711 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12712 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12713 of -1.
12714 (cmd_qtsp): Adjust condition. Do post increment.
12715 Set cur_action and cur_step_action back to 0.
12716
12717 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12718
12719 PR server/15236
12720 * linux-low.c (linux_write_memory): Return early success if LEN is
12721 zero.
12722
12723 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12724
12725 * configure.srv: Add x86_64-*-cygwin* as target.
12726
12727 2013-02-28 Tom Tromey <tromey@redhat.com>
12728
12729 * configure.ac: Invoke AC_SYS_LARGEFILE.
12730 * configure, config.in: Rebuild.
12731
12732 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12733
12734 * win32-low.c: Throughout, fix format strings and casts of
12735 printf-like functions to avoid type related warnings on all
12736 platforms.
12737 (get_child_debug_event): Print dwDebugEventCode as hex since
12738 that's how it's usually documented.
12739
12740 2013-02-28 Yao Qi <yao@codesourcery.com>
12741
12742 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12743 pulongest.
12744
12745 2013-02-27 Jiong Wang <jiwang@tilera.com>
12746
12747 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12748 (reg-tilegx32.c): New rule.
12749 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12750 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12751 different register info initializer according to elf class.
12752 (init_registers_tilgx32): New function. The tilegx32 register info
12753 initializer.
12754 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12755 (tile_store_gregset): Likewise.
12756
12757 2013-02-27 Yao Qi <yao@codesourcery.com>
12758
12759 * server.c (process_point_options): Print debug message when
12760 debug_threads is true.
12761
12762 2013-02-26 Yao Qi <yao@codesourcery.com>
12763
12764 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12765
12766 2013-02-19 Pedro Alves <palves@redhat.com>
12767 Kai Tietz <ktietz@redhat.com>
12768
12769 PR gdb/15161
12770
12771 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12772 instead of strtoul to extract address from packet.
12773 (process_serial_event) <'z'>: Likewise.
12774
12775 2013-02-18 Yao Qi <yao@codesourcery.com>
12776
12777 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12778
12779 2013-02-14 Pedro Alves <palves@redhat.com>
12780
12781 Plug memory leak.
12782
12783 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12784 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12785
12786 2013-02-14 Pedro Alves <palves@redhat.com>
12787
12788 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12789
12790 2013-02-14 Pedro Alves <palves@redhat.com>
12791
12792 * tracepoint.c (save_string): Delete.
12793 (add_tracepoint_action): Use savestring instead of save_string.
12794
12795 2013-02-12 Pedro Alves <palves@redhat.com>
12796
12797 * linux-xtensa-low.c: Ditto.
12798 * xtensa-xtregs.c: Ditto.
12799
12800 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12801
12802 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12803 thread_db.
12804
12805 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12806
12807 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12808 aarch64_num_wp_regs and aarch64_num_bp_regs to
12809 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12810
12811 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12812
12813 * linux-aarch64-low.c (ps_get_thread_area): Replace
12814 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12815
12816 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12817 Marcus Shawcroft <marcus.shawcroft@arm.com>
12818 Nigel Stephens <nigel.stephens@arm.com>
12819 Yufeng Zhang <yufeng.zhang@arm.com>
12820
12821 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12822 (aarch64.c, aarch64-without-fpu.c): New targets.
12823 * configure.srv (aarch64*-*-linux*): New.
12824 * linux-aarch64-low.c: New file.
12825
12826 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12827
12828 * linux-low.c (handle_extended_wait, linux_create_inferior)
12829 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12830 (dequeue_one_deferred_signal, linux_resume_one_thread)
12831 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12832 (linux_tracefork_grandchild, linux_test_for_tracefork)
12833 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12834 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12835 where the argument is 0.
12836
12837 2013-01-25 Yao Qi <yao@codesourcery.com>
12838
12839 * event-loop.c: Include "queue.h".
12840 (gdb_event_p): New typedef.
12841 (struct gdb_event) <next_event>: Remove.
12842 (event_queue): Change to QUEUE(gdb_event_p).
12843 (async_queue_event): Remove.
12844 (gdb_event_xfree): New.
12845 (initialize_event_loop): New.
12846 (process_event): Use API from QUEUE.
12847 (wait_for_event): Likewise.
12848 * server.c (main): Call initialize_event_loop.
12849 * server.h (initialize_event_loop): Declare.
12850
12851 2013-01-18 Yao Qi <yao@codesourcery.com>
12852
12853 * ax.h (struct eval_agent_expr_context): New.
12854 (gdb_eval_agent_expr): Update declaration.
12855 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12856 TFRAME. Add new argument CTX.
12857 * server.h (struct eval_agent_expr_context): Declare.
12858 (agent_mem_read, agent_tsv_read): Update declaration.
12859 (agent_mem_read_string): Likewise.
12860 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12861 (add_traceframe_block): Add new argument TPOINT.
12862 Increase TPOINT->traceframe_usage.
12863 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12864 eval_tracepoint_agent_expr.
12865 (condition_true_at_tracepoint): Likewise.
12866 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12867 (agent_mem_read_string, agent_tsv_read): Likewise.
12868
12869 2013-01-16 Yao Qi <yao@codesourcery.com>
12870
12871 * linux-low.c (linux_resume_one_lwp): Don't check
12872 'lwp->bp_reinsert != 0'.
12873
12874 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12875 Pedro Alves <palves@redhat.com>
12876
12877 * lynx-low.c (ptrace_request_to_str): Define a temporary
12878 macro and use it to simplify this function's implementation.
12879
12880 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12881
12882 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12883 sets errno.
12884
12885 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12886
12887 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12888
12889 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12890
12891 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12892
12893 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12894
12895 * lynx-low.c (lynx_resume): Use the resume_info parameter
12896 to determine the ptid for the lynx_ptrace call, unless
12897 it is equal to minus_one_ptid, in which case we use the
12898 ptid of the current_inferior.
12899 (lynx_wait_1): After having received a thread create/exit
12900 event, resume the inferior's execution using the signaling
12901 thread's ptid, rather than the old ptid.
12902
12903 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12904
12905 * lynx-low.c (lynx_resume): Delete variable ret.
12906
12907 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12908
12909 * gdbreplay.c (gdbreplay_version): Update copyright year.
12910 * server.c (gdbserver_version): Likewise.
12911
12912 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12913
12914 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12915 new thread.
12916
12917 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12918
12919 * lynx-low.c (ptrace_request_to_str): Add handling for
12920 PTRACE_GETTRACESIG.
12921
12922 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12923
12924 * lynx-low.c (lynx_attach): Delete variable new_process.
12925
12926 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12927
12928 * lynx-low.c (lynx_create_inferior): Delete variable
12929 new_process.
12930
12931 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12932
12933 * lynx-low.c (ptrace_request_to_str): Do not handle
12934 PTRACE_GETTHREADLIST if this macro does not exist.
12935
12936 2012-12-15 Yao Qi <yao@codesourcery.com>
12937
12938 * Makefile.in (OBS): Add notif.o.
12939 * notif.c, notif.h: New.
12940 * server.c: Include "notif.h".
12941 (struct vstop_notif) <next>: Remove.
12942 <base>: New field.
12943 (queue_stop_reply): Update.
12944 (push_event, send_next_stop_reply): Remove.
12945 (discard_queued_stop_replies): Update.
12946 (notif_stop): New variable.
12947 (handle_v_stopped): Remove.
12948 (handle_v_requests): Don't call handle_v_stopped. Call
12949 handle_ack_notif instead.
12950 (queue_stop_reply_callback): Call notif_event_enque instead
12951 of queue_stop_reply.
12952 (handle_status): Don't call send_next_stop_reply, call
12953 notif_write_event instead.
12954 (kill_inferior_callback): Likewise.
12955 (detach_or_kill_inferior_callback): Likewise.
12956 (main): Call initialize_notif.
12957 (process_serial_event): Call QUEUE_is_empty.
12958 (handle_target_event): Call notif_push instead of push event.
12959 * server.h (push_event): Remove declaration.
12960
12961 2012-12-10 Tom Tromey <tromey@redhat.com>
12962
12963 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12964 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12965 macros.
12966 (.c.o): Rewrite.
12967 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12968 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12969 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12970 (amd64-linux-ipa.o, ax.o): Rewrite.
12971 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12972 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12973 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12974 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12975 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12976 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12977 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12978 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12979 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12980 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12981 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12982 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12983 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12984 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12985 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12986 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12987 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12988 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12989 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12990 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12991 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12992 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12993 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12994 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12995 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12996 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12997 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12998 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12999 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13000 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13001 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13002 (reg-tilegx.o): Remove.
13003 (all_object_files): New macro.
13004 Include .deps files.
13005 * aclocal.m4, configure: Rebuild.
13006 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13007 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13008 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13009
13010 2012-12-05 Tom Tromey <tromey@redhat.com>
13011
13012 PR gdb/14917:
13013 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13014
13015 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
13016
13017 * configure.ac: Check for linux/perf_event.h.
13018 * config.in: Regenerated.
13019 * configure: Regenerated.
13020
13021 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13022
13023 * hostio.c (handle_readlink): Decrease buffer size
13024 parameter passed to readlink by one byte.
13025
13026 2012-11-26 Yao Qi <yao@codesourcery.com>
13027
13028 * configure.ac (build_warnings): Append '-Wempty-body'.
13029 * configure: Regenerated.
13030 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13031 body.
13032
13033 2012-11-15 Pierre Muller <muller@sourceware.org>
13034
13035 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13036 * config.in: Regenerate.
13037 * configure: Regenerate.
13038 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13039 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13040 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13041 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13042 header.
13043 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13044 instead of <sys/wait.h> header.
13045 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13046
13047 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
13048
13049 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13050 (various make rules): Remove -DGDBSERVER
13051
13052 2012-11-09 Yao Qi <yao@codesourcery.com>
13053
13054 * spu-low.c (current_ptid): Move it to ..
13055 * gdbthread.h: ... here. New.
13056 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13057 * server.c (myresume, process_serial_event): Likewise.
13058 * thread-db.c (thread_db_find_new_threads): Likewise.
13059 * tracepoint.c (run_inferior_command): Likewise.
13060
13061 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
13062
13063 * server.c (handle_search_memory_1): Include access length in
13064 warning message.
13065
13066 2012-09-05 Michael Brandt <michael.brandt@axis.com>
13067
13068 * linux-crisv32-low.c: Fix compile errors.
13069
13070 2012-09-04 Yao Qi <yao@codesourcery.com>
13071
13072 * tracepoint.c (cmd_qtsv): Adjust debug message.
13073 Don't check CUR_TPOINT.
13074
13075 2012-08-28 Yao Qi <yao@codesourcery.com>
13076
13077 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13078 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13079 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13080 Remove declarations of xmalloc, xreallloc, xstrdup and
13081 freeargv.
13082 * Makefile.in (libiberty_h): New.
13083 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13084 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13085
13086 2012-08-23 Yao Qi <yao@codesourcery.com>
13087
13088 * server.h: Remove declaration of 'xsnprintf'.
13089
13090 2012-08-22 Keith Seitz <keiths@redhat.com>
13091
13092 * server.h: Include build-gnulib-gbserver/config.h.
13093 * gdbreplay.c: Likewise.
13094
13095 2012-08-08 Doug Evans <dje@google.com>
13096
13097 * Makefile.in (SFILES): Add gdb_vecs.c.
13098 (OBS): Add gdb_vecs.o.
13099 (gdb_vecs_h, host_defs_h): New variables.
13100 (thread-db.o): Add $(gdb_vecs_h) dependency.
13101 (gdb_vecs.o): New rule.
13102 * thread-db.c: #include "gdb_vecs.h".
13103 (thread_db_load_search): Use a vector to iterate over path elements.
13104 Handle text appearing after "$pdir".
13105
13106 * configure.ac: Add check for strstr.
13107 * config.in: Regenerate.
13108 * configure: Regenerate.
13109
13110 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13111
13112 * hostio.c (handle_pread): If pread fails, fall back to attempting
13113 lseek/read.
13114 (handle_pwrite): Likewise for pwrite.
13115
13116 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13117
13118 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13119 between unsupported TYPE and unimplementable ADDR/LEN combination.
13120 (arm_insert_point): Act on new return value.
13121
13122 2012-07-31 Pedro Alves <palves@redhat.com>
13123
13124 * server.c (process_point_options): Only skip tokens if we find
13125 one that is unrecognized. Don't treat 'X' specially while
13126 skipping unrecognized tokens.
13127
13128 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13129
13130 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13131 to 4-byte-align HW breakpoint addresses for Thumb.
13132
13133 2012-07-27 Yao Qi <yao@codesourcery.com>
13134
13135 PR remote/14161.
13136
13137 * server.h: Declare gdb_agent_about_to_close.
13138 * target.c (kill_inferior): Include "agent.h".
13139 New. Send command 'kill'.
13140 * target.h (kill_inferior): Removed macro.
13141 * tracepoint.c (gdb_agent_about_to_close): New.
13142 (gdb_agent_helper_thread): Handle command 'close'.
13143 Wait endlessly until the inferior stops.
13144 Install gdb_agent_remove_socket to atexit hook.
13145 (agent_socket_name): New static variable.
13146 (gdb_agent_socket_init): Replace local variable 'name' with
13147 'agent_socket_name'.
13148 (gdb_agent_remove_socket): New.
13149
13150 2012-07-27 Yao Qi <yao@codesourcery.com>
13151
13152 * server.c (process_point_options): Stop at 'X' when parsing.
13153
13154 2012-07-19 Michael Eager <eager@eagercon.com>
13155
13156 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
13157 to hw_execute.
13158 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13159 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13160 hardware breakpoint.
13161
13162 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13163
13164 * gdbserver/linux-low.c (initialize_low): Call
13165 linux_ptrace_init_warnings.
13166
13167 2012-07-02 Doug Evans <dje@google.com>
13168
13169 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13170 pointer to int.
13171
13172 2012-07-02 Stan Shebs <stan@codesourcery.com>
13173
13174 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13175 (ax.o): Add it to build rule.
13176 (ax-ipa.o): Ditto.
13177 (OBS): Add format.o.
13178 (IPA_OBS): Add format.o.
13179 * server.c (handle_query): Claim support for breakpoint commands.
13180 (process_point_options): Add command case.
13181 (process_serial_event): Leave running if there are printfs in
13182 effect.
13183 * mem-break.h (any_persistent_commands): Declare.
13184 (add_breakpoint_commands): Declare.
13185 (gdb_no_commands_at_breakpoint): Declare.
13186 (run_breakpoint_commands): Declare.
13187 * mem-break.c (struct point_command_list): New struct.
13188 (struct breakpoint): New field command_list.
13189 (any_persistent_commands): New function.
13190 (add_commands_to_breakpoint): New function.
13191 (add_breakpoint_commands): New function.
13192 (gdb_no_commands_at_breakpoint): New function.
13193 (run_breakpoint_commands): New function.
13194 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13195 locally.
13196 * ax.c: Include format.h.
13197 (ax_printf): New function.
13198 (gdb_eval_agent_expr): Add printf opcode.
13199
13200 2012-06-13 Yao Qi <yao@codesourcery.com>
13201
13202 * server.c (start_inferior): Remove duplicated writes to fields
13203 'last_resume_kind' and 'last_status' of 'current_inferior'.
13204
13205 2012-06-12 Yao Qi <yao@codesourcery.com>
13206 Pedro Alves <palves@redhat.com>
13207
13208 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13209 comment.
13210 * server.c (handle_v_cont): Extend comment.
13211
13212 2012-06-11 Yao Qi <yao@codesourcery.com>
13213
13214 * linux-low.c (linux_attach): Add 'static'.
13215
13216 2012-06-06 Yao Qi <yao@codesourcery.com>
13217
13218 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13219
13220 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13221
13222 Fix gcc -flto compilation warning.
13223 * server.c (main): Make variable multi_mode and attach volatile.
13224
13225 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13226
13227 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13228 if the platform doesn't know about it.
13229
13230 2012-05-30 Jeff Kenton <jkenton@tilera.com>
13231
13232 * Makefile.in (SFILES): Add linux-tile-low.c.
13233 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13234 * configure.srv: Handle tilegx-*-linux*.
13235 * linux-tile-low.c: New file.
13236
13237 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13238
13239 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13240
13241 2012-05-24 Pedro Alves <palves@redhat.com>
13242
13243 PR gdb/7205
13244
13245 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
13246
13247 2012-05-24 Pedro Alves <palves@redhat.com>
13248
13249 PR gdb/7205
13250
13251 Replace target_signal with gdb_signal throughout.
13252
13253 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13254
13255 * linux-low.c (linux_store_registers): Avoid the copying sequence
13256 when no data has been retrieved by ptrace.
13257
13258 2012-05-22 Will Deacon <will.deacon@arm.com>
13259
13260 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13261 Include asm/ptrace.h.
13262 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13263 already defined.
13264
13265 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13266
13267 * linux-low.c (linux_store_registers): Don't re-retrieve data
13268 with ptrace that has already been obtained from /proc. Always
13269 copy any data retrieved with ptrace to the buffer supplied.
13270
13271 2012-05-11 Yao Qi <yao@codesourcery.com>
13272 Pedro Alves <palves@redhat.com>
13273
13274 * linux-low.c (enum stopping_threads_kind): New.
13275 (stopping_threads): Change type to `enum stopping_threads_kind'.
13276 (handle_extended_wait): If stopping and suspending threads, leave
13277 the new_lwp suspended too.
13278 (linux_wait_for_event): Adjust.
13279 (stop_all_lwps): Set `stopping_threads' to
13280 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13281 whether we're suspending threads or just stopping them. Assert no
13282 recursion happens.
13283
13284 2012-04-29 Yao Qi <yao@codesourcery.com>
13285
13286 * server.h: Move some code to ...
13287 * gdbthread.h: ... here. New.
13288 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13289 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13290 (nto-low.o, win32-low.o): Likewise.
13291 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13292 * regcache.c, remote-utils.c, server.c: Likewise.
13293 * target.c, tracepoint.c, win32-low.c: Likewise.
13294
13295 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13296
13297 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13298 (PTRACE_ARG4_TYPE): Likewise.
13299 (PTRACE_XFER_TYPE): Likewise.
13300 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
13301 ptrace to PTRACE_ARG3_TYPE.
13302 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
13303 (PTRACE_ARG4_TYPE): Likewise.
13304 (PTRACE_XFER_TYPE): Likewise.
13305 (linux_detach_one_lwp): Cast fourth argument of
13306 ptrace to long then PTRACE_ARG4_TYPE.
13307 (regsets_fetch_inferior_registers): Cast third argument of
13308 ptrace to long then PTRACE_ARG3_TYPE.
13309 (regsets_store_inferior_registers): Likewise.
13310
13311 2012-04-20 Pedro Alves <palves@redhat.com>
13312
13313 * configure: Regenerate.
13314
13315 2012-04-19 Pedro Alves <palves@redhat.com>
13316
13317 * Makefile.in (GNULIB_BUILDDIR): New.
13318 (LIBGNU, INCGNU, GNULIB_H): Adjust.
13319 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
13320 (all, install-only, uninstall, clean-info, all-lib, clean): No
13321 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
13322 (maintainer-clean realclean distclean): Use subdir_do.
13323 (subdir_do): New.
13324 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
13325 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
13326 * acinclude.m4: Include acx_configure_dir.m4.
13327 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
13328 calls. Call AC_PROG_RANLIB. Configure gnulib using
13329 ACX_CONFIGURE_DIR.
13330 (GNULIB): New.
13331 (GNULIB_STDINT_H): Adjust.
13332 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
13333 * gdbreplay.c: Include build-gnulib/config.h.
13334 * server.h: Likewise.
13335 * aclocal.m4: Regenerate.
13336 * config.in: Regenerate.
13337 * configure: Regenerate.
13338
13339 2012-04-19 Pedro Alves <palves@redhat.com>
13340
13341 * Makefile.in (LIBGNU, INCGNU): Adjust.
13342 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
13343 (all, install-only, uninstall, clean-info, all-lib, clean)
13344 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
13345 * configure.ac: Adjust AC_OUTPUT output.
13346 * aclocal.m4: Regenerate.
13347 * configure: Regenerate.
13348
13349 2012-04-19 Pedro Alves <palves@redhat.com>
13350
13351 * Makefile.in (generated_files): New.
13352 (server_h): Remove the explicit dependency on config.h, and depend
13353 on $generated_files.
13354
13355 2012-04-19 Pedro Alves <palves@redhat.com>
13356
13357 * Makefile.in (INCGNU): Add -Ignulib.
13358
13359 2012-04-19 Pedro Alves <palves@redhat.com>
13360
13361 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
13362 (INCGNU): ... this, and spell out -I here.
13363 (GNULIB_LIB): Rename to ...
13364 (LIBGNU): ... this.
13365 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
13366
13367 2012-04-19 Pedro Alves <palves@redhat.com>
13368
13369 * config.in: Regenerate.
13370
13371 2012-04-19 Pedro Alves <palves@redhat.com>
13372
13373 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
13374 * server.h (memmem): Remove declaration.
13375 * config.in: Regenerate.
13376 * configure: Regenerate.
13377
13378 2012-04-19 Yao Qi <yao@codesourcery.com>
13379
13380 * Makefile.in (SFILES): Add common/vec.c.
13381 (OBS): Add vec.o.
13382 (vec.o): New rule.
13383
13384 2012-04-19 Yao Qi <yao@codesourcery.com>
13385
13386 * remote-utils.c (prepare_resume_reply): Replace with macro
13387 target_core_of_thread.
13388 * server.c (handle_qxfer_threads_proper): Likewise.
13389 * target.h (traget_core_of_thread): New macro.
13390
13391 2012-04-18 Pedro Alves <palves@redhat.com>
13392
13393 * aclocal.m4: Regenerate.
13394 * configure: Regenerate.
13395
13396 2012-04-16 Yao Qi <yao@codesourcery.com>
13397
13398 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
13399 duplicated on address.
13400
13401 2012-04-16 Yao Qi <yao@codesourcery.com>
13402
13403 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
13404 (struct tracepoint_action_ops) <send>: New field.
13405 (m_tracepoint_action_send, r_tracepoint_action_send): New.
13406 (agent_expr_send, x_tracepoint_action_send): New.
13407 (l_tracepoint_action_send): New.
13408 (cmd_qtdp): Download and install tracepoint
13409 according to `use_agent'.
13410 (run_inferior_command): Add one more parameter `len'.
13411 Update callers.
13412 (tracepoint_send_agent): New.
13413 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
13414
13415 2012-04-16 Yao Qi <yao@codesourcery.com>
13416
13417 * tracepoint.c (download_tracepoints): Moved to ...
13418 (cmd_qtstart): ... here.
13419
13420 2012-04-14 Yao Qi <yao@codesourcery.com>
13421
13422 * tracepoint.c: Include inttypes.h.
13423 (struct collect_memory_action): Use sized types.
13424 (struct tracepoint): Likewise.
13425 (cmd_qtdp, stop_tracing): Update print specifiers.
13426 (cmd_qtp, response_tracepoint): Likewise.
13427 (collect_data_at_tracepoint): Likewise.
13428 (collect_data_at_step): Likewise.
13429
13430 2012-04-14 Yao Qi <yao@codesourcery.com>
13431
13432 Import gnulib module inttypes.
13433 * aclocal.m4, config.in, configure: Regenerated.
13434
13435 2012-04-14 Yao Qi <yao@codesourcery.com>
13436
13437 * Makefile.in (maintainer-clean, realclean, distclean): Remove
13438 Makefile and config.status at last.
13439
13440 2012-04-13 Yao Qi <yao@codesourcery.com>
13441
13442 * tracepoint.c: Include stdint.h unconditionally.
13443
13444 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13445
13446 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
13447 on BFD_HAVE_SYS_PROCFS_TYPE.
13448 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
13449 * configure: Regenerate.
13450 * config.in: Likewise.
13451
13452 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13453
13454 * Makefile.in (clean): Also remove x32.c x32-linux.c
13455 x32-avx.c x32-avx-linux.c.
13456 (x32.o): New target.
13457 (x32.c): Likewise.
13458 (x32-linux.o): Likewise.
13459 (x32-linux.c): Likewise.
13460 (x32-avx.o): Likewise.
13461 (x32-avx.c): Likewise.
13462 (x32-avx-linux.o): Likewise.
13463 (x32-avx-linux.c): Likewise.
13464
13465 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
13466 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
13467 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
13468 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
13469 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
13470 i386/x32-avx-linux.xml.
13471
13472 * linux-x86-low.c (init_registers_x32_linux): New prototype.
13473 (init_registers_x32_avx_linux): Likwise.
13474 (x86_linux_update_xmltarget): Call init_registers_x32_linux
13475 or init_registers_x32_avx_linux if linux_is_elf64 is false.
13476
13477 2012-04-13 Pedro Alves <palves@redhat.com>
13478
13479 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
13480 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
13481 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
13482 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
13483 the sub-make.
13484
13485 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13486
13487 * linux-x86-low.c (compat_x32_clock_t): New.
13488 (compat_x32_siginfo_t): Likewise.
13489 (compat_x32_siginfo_from_siginfo): Likewise.
13490 (siginfo_from_compat_x32_siginfo): Likewise.
13491 (linux_is_elf64): Likewise.
13492 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
13493 and siginfo_from_compat_x32_siginfo for x32.
13494 (x86_arch_setup): Set linux_is_elf64.
13495
13496 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13497
13498 PR gdb/13969
13499 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13500 e_machine field.
13501 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13502 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13503 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13504 compatible with process.
13505
13506 2012-04-12 Yao Qi <yao@codesourcery.com>
13507
13508 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
13509 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
13510 (install-only, install-info, clean): Handle sub dir gnulib.
13511 (all-lib, am--refresh): New targets.
13512 (memmem.o): Remove target.
13513 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
13514 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
13515 (AC_REPLACE_FUNCS): Remove memmem.
13516 Invoke gl_INIT and AM_INIT_AUTOMAKE.
13517 (AC_OUTPUT): Generate Makefile in gnulib/.
13518 * aclocal.m4, config.in, configure: Regenerated.
13519
13520 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13521
13522 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13523
13524 2012-04-05 Pedro Alves <palves@redhat.com>
13525
13526 -Werror=strict-aliasing
13527
13528 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13529 pointer.
13530
13531 2012-04-04 Pedro Alves <palves@redhat.com>
13532
13533 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13534 (sparc_store_gregset_from_stack, sparc_store_gregset)
13535 (sparc_breakpoint_at): Fix formatting.
13536
13537 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13538
13539 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13540 are available.
13541 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13542 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13543 * config.in: Regenerate.
13544 * configure: Likewise.
13545
13546 2012-03-29 Pedro Alves <palves@redhat.com>
13547
13548 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13549 Correct ptrace arguments.
13550
13551 2012-03-28 Pedro Alves <palves@redhat.com>
13552
13553 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13554 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13555 (IA64_FR1_REGNUM): New defines.
13556 (ia64_fetch_register): New.
13557 (the_low_target): Install it.
13558 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13559 field.
13560 * linux-low.c (linux_fetch_registers): Try the
13561 the_low_target.fetch_register hook first.
13562
13563 * linux-arm-low.c (the_low_target): Adjust.
13564 * linux-bfin-low.c (the_low_target): Adjust.
13565 * linux-cris-low.c (the_low_target): Adjust.
13566 * linux-crisv32-low.c (the_low_target): Adjust.
13567 * linux-m32r-low.c (the_low_target): Adjust.
13568 * linux-m68k-low.c (the_low_target): Adjust.
13569 * linux-mips-low.c (the_low_target): Adjust.
13570 * linux-ppc-low.c (the_low_target): Adjust.
13571 * linux-s390-low.c (the_low_target): Adjust.
13572 * linux-sh-low.c (the_low_target): Adjust.
13573 * linux-sparc-low.c (the_low_target): Adjust.
13574 * linux-tic6x-low.c (the_low_target): Adjust.
13575 * linux-x86-low.c (the_low_target): Adjust.
13576 * linux-xtensa-low.c (the_low_target): Adjust.
13577
13578 2012-03-26 Pedro Alves <palves@redhat.com>
13579
13580 * server.c (handle_qxfer_libraries): Don't bail early if
13581 the_target->qxfer_libraries_svr4 is not NULL.
13582
13583 2012-03-26 Pedro Alves <palves@redhat.com>
13584
13585 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13586
13587 2012-03-23 Pedro Alves <palves@redhat.com>
13588
13589 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13590 "library-list-svr4" element's start tag when the the DSO list is
13591 empty.
13592
13593 2012-03-23 Pedro Alves <palves@redhat.com>
13594
13595 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13596 a variable whose type size is the same as the inferior's pointer
13597 size.
13598
13599 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13600
13601 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13602 struct siginfo.
13603 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13604 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13605 * linux-low.h: Include <signal.h>.
13606 (struct siginfo): Remove forward declaration.
13607 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13608 struct siginfo.
13609
13610 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13611
13612 * .gitignore: Ignore more files.
13613
13614 2012-03-19 Pedro Alves <palves@redhat.com>
13615 Jan Kratochvil <jan.kratochvil@redhat.com>
13616
13617 * server.c (cont_thread, general_thread): Add describing comments.
13618 (start_inferior): Clear `cont_thread'.
13619 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13620 of a process.
13621
13622 2012-03-15 Yao Qi <yao@codesourcery.com>
13623
13624 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13625 handling to ...
13626 (cmd_qtdp): ... here.
13627
13628 2012-03-15 Yao Qi <yao@codesourcery.com>
13629
13630 * tracepoint.c (struct tracepoint_action_ops): New.
13631 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13632 (m_tracepoint_action_download): New.
13633 (r_tracepoint_action_download): New.
13634 (x_tracepoint_action_download): New.
13635 (l_tracepoint_action_download): New.
13636 (add_tracepoint_action): Install `action->ops' according type.
13637 (download_tracepoint_1): Move code `download' function pointer
13638 of various tracepoint_action_ops.
13639
13640 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13641
13642 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13643 linux_ptrace_attach_warnings.
13644
13645 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13646
13647 * Makefile.in (linux-ptrace.o): New.
13648 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13649 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13650 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13651 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13652 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13653 of these targets.
13654 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13655
13656 2012-03-08 Yao Qi <yao@codesourcery.com>
13657 Pedro Alves <palves@redhat.com>
13658
13659 Fix PR server/13392.
13660 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13661 offset of JMP insn.
13662 * tracepoint.c (remove_tracepoint): New.
13663 (cmd_qtdp): Call remove_tracepoint when failed to install.
13664
13665 2012-03-07 Pedro Alves <palves@redhat.com>
13666
13667 * linux-low.c (get_detach_signal): New.
13668 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13669 Pass on pending signals to PTRACE_DETACH. Check the result of the
13670 ptrace call.
13671 * server.c (program_signals, program_signals_p): New.
13672 (handle_general_set): Handle QProgramSignals.
13673 * server.h (program_signals, program_signals_p): Declare.
13674
13675 2012-03-05 Pedro Alves <palves@redhat.com>
13676 Jan Kratochvil <jan.kratochvil@redhat.com>
13677
13678 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13679 New comment why.
13680
13681 2012-03-03 Yao Qi <yao@codesourcery.com>
13682
13683 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13684 agent_look_up_symbols.
13685
13686 2012-03-03 Yao Qi <yao@codesourcery.com>
13687
13688 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13689 (linux-x86-low.o): Likewise.
13690 * server.h: Remove in_process_agent_loaded.
13691 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13692 common/agent.c.
13693 Update callers.
13694
13695 2012-03-03 Yao Qi <yao@codesourcery.com>
13696
13697 * tracepoint.c (gdb_agent_capability): New global.
13698 (in_process_agent_loaded_ust): Renamed to
13699 `in_process_agent_supports_ust'.
13700 Update callers.
13701 (in_process_agent_supports_ust): Call agent_capability_check.
13702 (clear_installed_tracepoints): Assert that agent supports
13703 agent.
13704
13705 2012-03-03 Yao Qi <yao@codesourcery.com>
13706
13707 * linux-low.c (linux_supports_agent): New.
13708 (linux_target_ops): Initialize field `supports_agent' with
13709 linux_supports_agent.
13710 * target.h (struct target_ops) <supports_agent>: New.
13711 (target_supports_agent): New macro.
13712 * server.c (handle_general_set): Handle packet 'QAgent'.
13713 (handle_query): Send `QAgent+'.
13714 * Makefile.in (server.o): Depends on agent.h.
13715
13716 2012-03-03 Yao Qi <yao@codesourcery.com>
13717
13718 * Makefile.in (OBS): Add agent.o.
13719 Add new rule for agent.o.
13720 Track dependence of tracepoint.c on agent.h.
13721 * tracepoint.c (run_inferior_command_1):
13722 (run_inferior_command): Call agent_run_command.
13723 (gdb_ust_connect_sync_socket): Deleted. Move it to
13724 common/agent.c.
13725 (resume_thread, stop_thread): Likewise.
13726 (gdb_ust_socket_init): Renamed to ...
13727 (gdb_agent_socket_init): ... New.
13728 (gdb_ust_thread): Renamed to ...
13729 (gdb_agent_helper_thread): ... New.
13730 (gdb_ust_init): Move some code to ...
13731 (gdb_agent_init): ... here. New.
13732 [HAVE_UST]: Call gdb_ust_init.
13733 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13734 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13735 * config.in, configure: Regenerated.
13736
13737 2012-03-02 Pedro Alves <palves@redhat.com>
13738
13739 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13740 * linux-low.c (struct simple_pid_list): New.
13741 (stopped_pids): New a struct simple_pid_list pointer.
13742 (add_to_pid_list, pull_pid_from_list): New.
13743 (handle_extended_wait): Don't assume the first signal new children
13744 report is SIGSTOP. Adjust call to pull_pid_from_list.
13745 (linux_wait_for_lwp): Adjust.
13746
13747 2012-03-02 Yao Qi <yao@codesourcery.com>
13748
13749 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13750 debug log.
13751
13752 2012-03-02 Yao Qi <yao@codesourcery.com>
13753
13754 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13755 `stop_pc' and `tpoint'. Update caller.
13756
13757 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13758
13759 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13760 * linux-low.c (use_linux_regsets): New macro.
13761 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13762 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13763 (linux_register_in_regsets): New function.
13764 (usr_fetch_inferior_registers): Skip registers covered by
13765 regsets.
13766 (usr_store_inferior_registers): Likewise.
13767 (usr_fetch_inferior_registers): New macro.
13768 (usr_store_inferior_registers): Likewise.
13769 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13770 (linux_store_registers): Likewise.
13771 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13772 prototype.
13773 (init_registers_mips64_dsp_linux): Likewise.
13774 (init_registers_mips_linux): New macro.
13775 (init_registers_mips_dsp_linux): Likewise.
13776 (mips_dsp_num_regs): Likewise.
13777 (DSP_BASE, DSP_CONTROL): New fallback macros.
13778 (mips_base_regs): New macro.
13779 (mips_regmap): Use it. Fix the size.
13780 (mips_dsp_regmap): New variable.
13781 (mips_dsp_regset_bitmap): Likewise.
13782 (mips_arch_setup): New function.
13783 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13784 than mips_regmap.
13785 (mips_cannot_store_register): Likewise.
13786 (the_low_target): Update .arch_setup, .num_regs and .regmap
13787 initializers. Add .regset_bitmap initializer.
13788 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13789 initializer.
13790 * linux-bfin-low.c (the_low_target): Likewise.
13791 * linux-cris-low.c (the_low_target): Likewise.
13792 * linux-crisv32-low.c (the_low_target): Likewise.
13793 * linux-ia64-low.c (the_low_target): Likewise.
13794 * linux-m32r-low.c (the_low_target): Likewise.
13795 * linux-m68k-low.c (the_low_target): Likewise.
13796 * linux-ppc-low.c (the_low_target): Likewise.
13797 * linux-s390-low.c (the_low_target): Likewise.
13798 * linux-sh-low.c (the_low_target): Likewise.
13799 * linux-sparc-low.c (the_low_target): Likewise.
13800 * linux-tic6x-low.c (the_low_target): Likewise.
13801 * linux-x86-low.c (the_low_target): Likewise.
13802 * linux-xtensa-low.c (the_low_target): Likewise.
13803 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13804 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13805 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13806 srv_xmlfiles.
13807 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13808 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13809
13810 2012-02-29 Yao Qi <yao@codesourcery.com>
13811 Pedro Alves <palves@redhat.com>
13812
13813 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13814 `step_over_finished' is true.
13815
13816 2012-02-27 Pedro Alves <palves@redhat.com>
13817
13818 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13819 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13820
13821 2012-02-27 Pedro Alves <palves@redhat.com>
13822
13823 PR server/9684
13824 * linux-low.c (pid_is_stopped): New.
13825 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13826
13827 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13828
13829 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13830 of conditions.
13831
13832 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13833
13834 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13835
13836 2012-02-24 Luis Machado <lgustavo@codesourcery>
13837
13838 * server.c (handle_query): Advertise support for target-side
13839 breakpoint condition evaluation.
13840 (process_point_options): New function.
13841 (process_serial_event): When inserting a breakpoint, check for
13842 a target-side condition that should be evaluated.
13843
13844 * mem-break.c: Include regcache.h and ax.h.
13845 (point_cond_list_t): New data structure.
13846 (breakpoint) <cond_list>: New field.
13847 (find_gdb_breakpoint_at): Make non-static.
13848 (delete_gdb_breakpoint_at): Clear any target-side
13849 conditions.
13850 (clear_gdb_breakpoint_conditions): New function.
13851 (add_condition_to_breakpoint): Likewise.
13852 (add_breakpoint_condition): Likewise.
13853 (gdb_condition_true_at_breakpoint): Likewise.
13854 (gdb_breakpoint_here): Return result directly instead
13855 of going through a local variable.
13856
13857 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13858 (clear_gdb_breakpoint_conditions): Likewise.
13859 (add_breakpoint_condition): Likewise.
13860 (gdb_condition_true_at_breakpoint): Likewise.
13861
13862 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13863 (need_step_over_p): Take target-side breakpoint condition into
13864 consideration.
13865
13866 2012-02-24 Luis Machado <lgustavo@codesourcery>
13867
13868 * server.h: Include tracepoint.h.
13869 (agent_mem_read, agent_get_trace_state_variable_value,
13870 agent_set_trace_state_variable_value,
13871 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13872 get_set_tsv_func_addr): New prototypes.
13873
13874 * ax.h: New include file.
13875 * ax.c: New source file.
13876
13877 * tracepoint.c: Include ax.h.
13878 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13879 agent_expr, eval_result_type): Move to ax.h.
13880 (parse_agent_expr): Rename to ...
13881 (gdb_parse_agent_expr): ... this, make it non-static and move
13882 to ax.h.
13883 (unparse_agent_expr) Rename to ...
13884 (gdb_unparse_agent_expr): ... this, make it non-static and move
13885 to ax.h.
13886 (eval_agent_expr): Rename to ...
13887 (eval_tracepoint_agent_expr): ... this.
13888 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13889 forward declarations.
13890 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13891 (agent_get_trace_state_variable_value): New function.
13892 (agent_set_trace_state_variable_value): New function.
13893 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13894 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13895 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13896 (condition_true_at_tracepoint): Likewise.
13897 (parse_agent_expr): Rename to ...
13898 (gdb_parse_agent_expr): ... this and move to ax.c.
13899 (unparse_agent_expr): Rename to ...
13900 (gdb_unparse_agent_expr): ... this and move to ax.c.
13901 (gdb_agent_op_name): Move to ax.c.
13902 (eval_agent_expr): Rename to ...
13903 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13904 and move to ax.c.
13905 (eval_tracepoint_agent_expr): New function.
13906 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13907 non-static.
13908 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13909 ax.c.
13910 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13911 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13912 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13913 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13914 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13915 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13916 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13917 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13918 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13919 (compile_bytecodes): Remove forward declaration.
13920 (is_goto_target): Move to ax.c.
13921 (compile_bytecodes): Move to ax.c and call
13922 agent_get_trace_state_variable_value (...) and
13923 agent_set_trace_state_variable_value (...).
13924
13925 * Makefile.in: Update ax.c and IPA dependencies.
13926
13927 2012-02-24 Pedro Alves <palves@redhat.com>
13928
13929 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13930 (cmd_bigqtbuffer_circular): ... this. Only handle
13931 'QTBuffer:circular:'.
13932 (handle_tracepoint_general_set): Adjust.
13933
13934 2012-02-16 Yao Qi <yao@codesourcery.com>
13935
13936 * inferiors.c: Move code to ...
13937 * dll.c: .... here. New.
13938 * server.h: Declare clear_dlls.
13939 * Makefile.in (SFILES): Add dll.c.
13940 (OBS): Add dll.o
13941 (dll.o): New rule.
13942
13943 2012-02-11 Yao Qi <yao@codesourcery.com>
13944
13945 * server.c: (handle_monitor_command): Add a new parameter
13946 `own_buf'.
13947 (handle_query): Update caller.
13948
13949 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13950
13951 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13952 * configure, config.in: Regenerate.
13953 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13954 is not defined.
13955
13956 2012-02-02 Pedro Alves <palves@redhat.com>
13957
13958 Try SIGKILL first, then PTRACE_KILL.
13959 * linux-low.c (linux_kill_one_lwp): New.
13960 (linux_kill_one_lwp): Rename to ...
13961 (kill_one_lwp_callback): ... this. Use the new
13962 linux_kill_one_lwp.
13963
13964 2012-02-02 Pedro Alves <palves@redhat.com>
13965
13966 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13967 inferior.
13968
13969 2012-01-27 Pedro Alves <palves@redhat.com>
13970
13971 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13972 (elf_64_file_p): Make static.
13973 (linux_pid_exe_is_elf_64_file): New.
13974 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13975 Delete declarations.
13976 (linux_pid_exe_is_elf_64_file): Declare.
13977 * linux-x86-low.c (x86_arch_setup): Use
13978 linux_pid_exe_is_elf_64_file.
13979
13980 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13981
13982 * linux-low.c (linux_wait_for_event_1): Rename to ...
13983 (linux_wait_for_event): ... here and merge it with former
13984 linux_wait_for_event - new variable wait_ptid, use it.
13985 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13986
13987 2012-01-23 Pedro Alves <palves@redhat.com>
13988
13989 * server.c (main): Avoid yet another case of infinite loop while
13990 detaching/killing after a longjmp.
13991
13992 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13993
13994 Code cleanup.
13995 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13996
13997 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13998
13999 * hostio.c (handle_readlink): New function.
14000 (handle_vFile): Call it to handle "vFile:readlink" packets.
14001
14002 2012-01-20 Pedro Alves <palves@redhat.com>
14003 Ulrich Weigand <ulrich.weigand@linaro.org>
14004
14005 * server.c (handle_v_requests): Only support vAttach and vRun to
14006 start multiple processes when in extended protocol mode.
14007
14008 2012-01-17 Pedro Alves <palves@redhat.com>
14009
14010 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14011 memalign plus mprotect to allocate the scratch buffer.
14012
14013 2012-01-13 Pedro Alves <palves@redhat.com>
14014
14015 * server.c (attach_inferior): Clear `cont_thread'.
14016
14017 2012-01-13 Pedro Alves <palves@redhat.com>
14018
14019 * server.c (main): Avoid infinite loop while detaching/killing
14020 after a longjmp.
14021
14022 2012-01-09 Doug Evans <dje@google.com>
14023
14024 * server.c (start_inferior): Set last_ptid in --wrapper case.
14025
14026 2012-01-06 Yao Qi <yao@codesourcery.com>
14027
14028 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14029 defined.
14030 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14031
14032 2012-01-04 Yao Qi <yao@codesourcery.com>
14033
14034 * tracepoint.c (cmd_qtdp): Print debug message
14035 for static tracepoint.
14036
14037 2012-01-04 Yao Qi <yao@codesourcery.com>
14038
14039 * tracepoint.c (trace_vdebug): Differentiate debug message
14040 between gdbserver and IPA.
14041
14042 2012-01-03 Yao Qi <yao@codesourcery.com>
14043
14044 * tracepoint.c (tracepoint_was_hit): Don't collect for
14045 static tracepoint.
14046
14047 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14048
14049 * terminal.h: Reformat copyright header.
14050
14051 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14052
14053 * server.c (gdbserver_version): Update copyright year.
14054 * gdbreplay.c (gdbreplay_version): Likewise.
14055
14056 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14057
14058 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14059
14060 Revert:
14061 2011-12-18 Hui Zhu <teawater@gmail.com>
14062 * linux-low.c (linux_create_inferior): Save return value to ret.
14063
14064 2011-12-18 Hui Zhu <teawater@gmail.com>
14065
14066 * linux-low.c (linux_create_inferior): Save return value to ret.
14067
14068 2011-12-16 Doug Evans <dje@google.com>
14069
14070 * linux-low.c (linux_create_inferior): If stdio connection,
14071 redirect stdin from /dev/null, stdout to stderr.
14072 * remote-utils.c (remote_is_stdio): New static global.
14073 (remote_connection_is_stdio): New function.
14074 (remote_prepare): Handle stdio connection.
14075 (remote_open): Ditto.
14076 (remote_close): Don't close stdin for stdio connections.
14077 (read_prim,write_prim): New functions. Replace all calls to
14078 read/write to these.
14079 * server.c (main): Watch for "-" argument. Move call to
14080 remote_prepare before start_inferior.
14081 * server.h (STDIO_CONNECTION_NAME): New macro.
14082 (remote_connection_is_stdio): Declare.
14083
14084 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14085 in debugging output.
14086
14087 2011-12-15 Yao Qi <yao@codesourcery.com>
14088
14089 * tracepoint.c: Include sys/syscall.h.
14090 (gdb_ust_thread): Remove preprocessor conditional.
14091
14092 2011-12-14 Pedro Alves <pedro@codesourcery.com>
14093
14094 * linux-low.c (linux_detach_one_lwp): Call
14095 the_low_target.prepare_to_resume before detaching.
14096
14097 2011-12-14 Yao Qi <yao@codesourcery.com>
14098
14099 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14100 of write.
14101
14102 2011-12-14 Yao Qi <yao@codesourcery.com>
14103
14104 * i386-low.c (i386_low_stopped_data_address): Initialize local
14105 variable `control'.
14106
14107 2011-12-13 Pedro Alves <pedro@codesourcery.com>
14108
14109 PR remote/13492
14110
14111 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14112 DR_CONTROL unless necessary. Extend comments.
14113 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14114 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14115
14116 2011-12-13 Yao Qi <yao@codesourcery.com>
14117
14118 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14119 macros.
14120 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14121
14122 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14123
14124 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14125 Print new debug message for such case.
14126
14127 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14128
14129 Fix overlapping memcpy.
14130 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14131 the read_inferior_memory transfer.
14132 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14133 write_inferior_memory transfer.
14134 (set_fast_tracepoint_jump): New variable buf. Use it for the
14135 read_inferior_memory and write_inferior_memory transfers.
14136 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14137 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14138 Use it for the write_inferior_memory transfer.
14139 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14140 buffers.
14141
14142 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14143
14144 * linux-low.c (fetch_register, store_register): Make code
14145 consistent, fix formatting.
14146
14147 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14148
14149 * linux-low.c (usr_store_inferior_registers): Factor out code
14150 to handle individual registers into...
14151 (store_register): ... this new function.
14152
14153 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14154
14155 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14156 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14157 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14158 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14159 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14160 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14161 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14162 (srv_xmlfiles): Add new XML files.
14163
14164 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14165 and <sys/uio.h>.
14166 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14167 (init_registers_s390_linux32v1): Add prototype.
14168 (init_registers_s390_linux32v2): Likewise.
14169 (init_registers_s390_linux64v1): Likewise.
14170 (init_registers_s390_linux64v2): Likewise.
14171 (init_registers_s390x_linux64v1): Likewise.
14172 (init_registers_s390x_linux64v2): Likewise.
14173 (s390_num_regs): Increment to 52.
14174 (s390_regmap): Add orig_r2 register.
14175 (s390_num_regs_3264): Increment to 68.
14176 (s390_regmap_3264): Add orig_r2 register.
14177 (s390_collect_ptrace_register): Handle orig_r2 register.
14178 (s390_supply_ptrace_register): Likewise.
14179 (s390_fill_last_break): New function.
14180 (s390_store_last_break): Likewise.
14181 (s390_fill_system_call): New function.
14182 (s390_store_system_call): Likewise.
14183 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14184 register sets.
14185 (s390_check_regset): New function.
14186 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14187 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14188 Update target_regsets for available register sets.
14189
14190 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14191 Jan Kratochvil <jan.kratochvil@redhat.com>
14192
14193 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14194 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14195 New.
14196 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14197 * linux-low.h (struct process_info_private): New member r_debug.
14198 * server.c (handle_qxfer_libraries): Call
14199 the_target->qxfer_libraries_svr4.
14200 (handle_qxfer_libraries_svr4): New function.
14201 (qxfer_packets): New entry "libraries-svr4".
14202 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14203 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14204 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14205 PACKET_qXfer_libraries_svr4.
14206
14207 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14208
14209 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14210 PSW address/mask between 8-byte and 16-byte formats.
14211 (s390_supply_ptrace_register): Likewise.
14212 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14213 basic addressing mode bit.
14214
14215 2011-11-24 Stan Shebs <stan@codesourcery.com>
14216
14217 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14218
14219 2011-11-17 Stan Shebs <stan@codesourcery.com>
14220
14221 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14222 (tracing_start_time): New global.
14223 (tracing_stop_time): New global.
14224 (tracing_user_name): New global.
14225 (tracing_notes): New global.
14226 (tracing_stop_note): New global.
14227 (cmd_qtstart): Set traceframe_usage, start_time.
14228 (stop_tracing): Set stop_time.
14229 (cmd_qtstatus): Report additional status.
14230 (cmd_qtp): New function.
14231 (handle_tracepoint_query): Call it.
14232 (cmd_qtnotes): New function.
14233 (handle_tracepoint_general_set): Call it.
14234 (get_timestamp): Rename from tsv_get_timestamp.
14235
14236 2011-11-14 Stan Shebs <stan@codesourcery.com>
14237 Kwok Cheung Yeung <kcy@codesourcery.com>
14238
14239 * linux-x86-low.c (small_jump_insn): New.
14240 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14241 trampoline and error message, build a trampoline and issue a small
14242 jump instruction to it.
14243 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14244 trampoline and error message.
14245 (x86_get_min_fast_tracepoint_insn_len): New.
14246 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14247 * linux-low.h (struct linux_target_ops): Add arguments to
14248 install_fast_tracepoint_jump_pad operation, add new operation.
14249 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14250 arguments.
14251 (linux_get_min_fast_tracepoint_insn_len): New function.
14252 (linux_target_op): Add new operation.
14253 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14254 (gdb_trampoline_buffer_end): Ditto.
14255 (gdb_trampoline_buffer_error): Ditto.
14256 (struct ipa_sym_addresses): Add fields for new IPA variables.
14257 (symbol_list): Add entries for new IPA variables.
14258 (struct tracepoint): Add fields to hold the address range of the
14259 trampoline used by the tracepoint.
14260 (trampoline_buffer_head): New static variable.
14261 (trampoline_buffer_tail): Ditto.
14262 (claim_trampoline_space): New function.
14263 (have_fast_tracepoint_trampoline_buffer): New function.
14264 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14265 structure.
14266 (install_fast_tracepoint): Ditto, also add error buffer argument.
14267 (cmd_qtminftpilen): New function.
14268 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14269 (fast_tracepoint_from_trampoline_address): New function.
14270 (fast_tracepoint_collecting): Handle trampoline as part of jump
14271 pad space.
14272 (set_trampoline_buffer_space): New function.
14273 (initialize_tracepoint): Initialize new IPA variables.
14274 * target.h (struct target_ops): Add arguments to
14275 install_fast_tracepoint_jump_pad operation, add new
14276 get_min_fast_tracepoint_insn_len operation.
14277 (target_get_min_fast_tracepoint_insn_len): New.
14278 (install_fast_tracepoint_jump_pad): Add arguments.
14279 * server.h (IPA_BUFSIZ): Define.
14280 * linux-i386-ipa.c: Include extra header files.
14281 (initialize_fast_tracepoint_trampoline_buffer): New function.
14282 (initialize_low_tracepoint): Call it.
14283 * server.h (set_trampoline_buffer_space): Declare.
14284 (claim_trampoline_space): Ditto.
14285 (have_fast_tracepoint_trampoline_buffer): Ditto.
14286
14287 2011-11-14 Yao Qi <yao@codesourcery.com>
14288
14289 * server.c (handle_query): Handle InstallInTrace for qSupported.
14290 * tracepoint.c (add_tracepoint): Sort list.
14291 (install_tracepoint, download_tracepoint): New.
14292 (cmd_qtdp): Call them to install and download tracepoints.
14293 (sort_tracepoints): Removed.
14294 (cmd_qtstart): Update.
14295
14296 2011-11-14 Yao Qi <yao@codesourcery.com>
14297
14298 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14299 * mem-break.h: Declare.
14300 * tracepoint.c (cmd_qtstart): Move some code to ...
14301 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
14302 New.
14303 (download_tracepoints): Move some code to ...
14304 (download_tracepoint_1): ... here. New.
14305
14306 2011-11-08 Yao Qi <yao@codesourcery.com>
14307
14308 * remote-utils.c (relocate_instruction): A comment fix.
14309
14310 2011-11-07 Joel Brobecker <brobecker@adacore.com>
14311
14312 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
14313 (i386_dr_low_get_control, i386_dr_low_get_status): Use
14314 dr_status_mirror and dr_control_mirror from debug_reg_state.
14315 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
14316 (i386_initial_stuff): Remove use of deleted globals.
14317 (i386_get_thread_context, i386_set_thread_context,
14318 i386_thread_added): Use dr_status_mirror and dr_control_mirror
14319 from debug_reg_state.
14320
14321 2011-11-05 Yao Qi <yao@codesourcery.com>
14322
14323 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14324 address as TPOINT's.
14325
14326 2011-11-02 Stan Shebs <stan@codesourcery.com>
14327
14328 * tracepoint.c (agent_mem_read_string): New function.
14329 (eval_agent_expr): Call it for tracenz.
14330 * server.c (handle_query): Report support for tracenz.
14331
14332 2011-11-02 Yao Qi <yao@codesourcery.com>
14333
14334 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14335
14336 2011-11-02 Yao Qi <yao@codesourcery.com>
14337
14338 * target.h: Fix a typo in comment.
14339
14340 2011-10-31 Pedro Alves <pedro@codesourcery.com>
14341
14342 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
14343 clobber the breakpoints' shadows with fast tracepoint jumps.
14344 * mem-break.h (check_mem_write): Add `myaddr' parameter.
14345 * target.c (write_inferior_memory): Also pass MYADDR down to
14346 check_mem_write.
14347
14348 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14349
14350 * configure.ac: Check support for personality routine.
14351 * configure: Regenerate.
14352 * config.in: Likewise.
14353 * linux-low.c: Include <sys/personality.h>.
14354 Define ADDR_NO_RANDOMIZE if necessary.
14355 (linux_create_inferior): Disable address space randomization when
14356 forking inferior, if requested.
14357 (linux_supports_disable_randomization): New function.
14358 (linux_target_ops): Install it.
14359 * server.h (disable_randomization): Declare.
14360 * server.c (disable_randomization): New global variable.
14361 (handle_general_set): Handle QDisableRandomization.
14362 (handle_query): Likewise for qSupported.
14363 (main): Support --disable-randomization and --no-disable-randomization
14364 command line arguments.
14365 * target.h (struct target_ops): Add supports_disable_randomization.
14366 (target_supports_disable_randomization): New macro.
14367
14368 2011-09-29 Mike Frysinger <vapier@gentoo.org>
14369
14370 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
14371 ifdef check.
14372 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
14373 [!PT_GETDSBT] (target_loadmap): New definition.
14374 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
14375 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
14376 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
14377 and PT_GETDSBT to LINUX_LOADMAP.
14378 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
14379 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
14380
14381 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14382
14383 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
14384 (arm_linux_hwbp_cap): New static variable.
14385 (arm_linux_get_hwbp_cap): Replace by ...
14386 (arm_linux_init_hwbp_cap): ... this new function.
14387 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
14388 (arm_linux_get_hw_watchpoint_count): Likewise.
14389 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14390 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
14391 (arm_prepare_to_resume): Use perror_with_name instead of error.
14392
14393 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14394
14395 * linux-arm-low.c: Include <signal.h>.
14396 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
14397 (struct arm_linux_hwbp_cap): New data type.
14398 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
14399 (struct arm_linux_hw_breakpoint): New data type.
14400 (MAX_BPTS, MAX_WPTS): Define.
14401 (struct arch_process_info, struct arch_lwp_info): New data types.
14402 (arm_linux_get_hwbp_cap): New function.
14403 (arm_linux_get_hw_breakpoint_count): Likewise.
14404 (arm_linux_get_hw_watchpoint_count): Likewise.
14405 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14406 (arm_hwbp_control_initialize): Likewise.
14407 (arm_hwbp_control_is_enabled): Likewise.
14408 (arm_hwbp_control_is_initialized): Likewise.
14409 (arm_hwbp_control_disable): Likewise.
14410 (arm_linux_hw_breakpoint_equal): Likewise.
14411 (arm_linux_hw_point_initialize): Likewise.
14412 (struct update_registers_data): New data structure.
14413 (update_registers_callback: New function.
14414 (arm_insert_point): Likewise.
14415 (arm_remove_point): Likewise.
14416 (arm_stopped_by_watchpoint): Likewise.
14417 (arm_stopped_data_address): Likewise.
14418 (arm_new_process): Likewise.
14419 (arm_new_thread): Likewise.
14420 (arm_prepare_to_resume): Likewise.
14421 (the_low_target): Register arm_insert_point, arm_remove_point,
14422 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
14423 arm_new_thread, and arm_prepare_to_resume.
14424
14425 2011-09-15 Stan Shebs <stan@codesourcery.com>
14426
14427 * server.h (struct emit_ops): Add compare-goto fields.
14428 * tracepoint.c (gdb_agent_op_sizes): New table.
14429 (emit_eq_goto): New function.
14430 (emit_ne_goto): New function.
14431 (emit_lt_goto): New function.
14432 (emit_le_goto): New function.
14433 (emit_gt_goto): New function.
14434 (emit_ge_goto): New function.
14435 (is_goto_target): New function.
14436 (compile_bytecodes): Recognize special cases of compare-goto
14437 combinations and call specialized emitters for them.
14438 * linux-x86-low.c (amd64_emit_eq_goto): New function.
14439 (amd64_emit_ne_goto): New function.
14440 (amd64_emit_lt_goto): New function.
14441 (amd64_emit_le_goto): New function.
14442 (amd64_emit_gt_goto): New function.
14443 (amd64_emit_ge_goto): New function.
14444 (amd64_emit_ops): Add the new functions.
14445 (i386_emit_eq_goto): New function.
14446 (i386_emit_ne_goto): New function.
14447 (i386_emit_lt_goto): New function.
14448 (i386_emit_le_goto): New function.
14449 (i386_emit_gt_goto): New function.
14450 (i386_emit_ge_goto): New function.
14451 (i386_emit_ops): Add the new functions.
14452
14453 2011-09-08 Stan Shebs <stan@codesourcery.com>
14454
14455 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14456 (i386_emit_epilogue): Restore %ebx.
14457
14458 2011-08-31 Jie Zhang <jzhang918@gmail.com>
14459
14460 * server.c (step_thread): Remove definition.
14461 (process_serial_event): Don't handle Hs.
14462 * server.h (step_thread): Remove declaration.
14463 * target.c (set_desired_inferior): Remove use of step_thread.
14464
14465 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14466
14467 * linux-low.c: Include linux-procfs.h.
14468 (linux_attach_lwp_1): Update comments.
14469 (linux_attach): Scan for existing threads when attaching to a
14470 process that is the tgid.
14471 * Makefile.in: Update dependencies.
14472
14473 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14474
14475 * configure.srv: Add linux-procfs.o dependencies.
14476
14477 2011-08-14 Yao Qi <yao@codesourcery.com>
14478
14479 * target.h (struct target_ops): Fix indent.
14480 * win32-low.c (win32_target_ops): Fix comment.
14481
14482 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
14483 Yao Qi <yao@codesourcery.com>
14484
14485 * Makefile.in (clean): Remove tic6x-*.c files.
14486 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
14487 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
14488 (tic6x-c64xp-linux.c): Likewise.
14489 * configure.srv: Add support for tic6x-*-uclinux.
14490 * linux-tic6x-low.c: New.
14491 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
14492
14493 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
14494 Yao Qi <yao@codesourcery.com>
14495
14496 * target.h (struct target_ops): Add read_loadmap.
14497 * linux-low.c (struct target_loadseg): New type.
14498 (struct target_loadmap): New type.
14499 (linux_read_loadmap): New function.
14500 (linux_target_ops): Add linux_read_loadmap.
14501 * server.c (handle_query): Support qXfer:fdpic:read packet.
14502 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14503 to NULL.
14504
14505 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14506
14507 * win32-low.c: Include <stdint.h>.
14508
14509 2011-07-22 Pedro Alves <pedro@codesourcery.com>
14510
14511 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
14512 to the inferior here.
14513 (i386_remove_aligned_watchpoint): Ditto.
14514 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
14515 fit part of the watchpoint in the debug registers.
14516 (i386_update_inferior_debug_regs): New.
14517 (i386_low_insert_watchpoint): Work on a local mirror of the debug
14518 registers, and only update the inferior on success.
14519 (i386_low_remove_watchpoint): Ditto.
14520
14521 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14522
14523 * linux-low.c (compare_ints, unique, list_threads, show_process,
14524 linux_core_of_thread): Delete.
14525 (linux_target_ops): Change linux_core_of_thread to
14526 linux_common_core_of_thread.
14527 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14528 * utils.c (malloc_failure): Change type of argument.
14529 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14530 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14531 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14532 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14533 (IPA_OBJS): Add common-utils-ipa.o.
14534 (ptid_h, linux_osdata_h): New macros.
14535 (server_h): Add common/common-utils.h, common/xml-utils.h,
14536 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14537 common/ptid.h.
14538 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14539 ptid.o, buffer.o): New rules.
14540 (linux-low.o): Add common/linux-osdata.h as a dependency.
14541 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14542 * configure.ac: Add AC_HEADER_DIRENT check.
14543 * config.in: Regenerate.
14544 * configure: Regenerate.
14545 * remote-utils.c (xml_escape_text): Delete.
14546 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14547 buffer_xml_printf): Move to common/buffer.c.
14548 * server.c (main): Remove call to initialize_inferiors.
14549 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14550 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14551 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14552 internal_error, gdb_assert, gdb_assert_fail): Delete.
14553 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14554 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14555 common/buffer.h.
14556 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14557 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14558 initialize_inferiors): Delete.
14559
14560 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14561
14562 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14563 symbol error.
14564
14565 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14566
14567 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14568 assertion.
14569 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14570
14571 2011-05-26 Yao Qi <yao@codesourcery.com>
14572
14573 * Makefile.in (thread-db.o): Track dependence to
14574 common/gdb_thread_db.h.
14575 * thread-db.c: include gdb_thread_db.h from right place.
14576
14577 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14578
14579 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14580 __FILE__ and __LINE__ to internal_error.
14581
14582 2011-05-13 Doug Evans <dje@google.com>
14583
14584 * thread-db.c (try_thread_db_load_from_sdir): New function.
14585 (try_thread_db_load_from_dir): New function.
14586 (thread_db_load_search): Handle $sdir, ignore $pdir.
14587 Remove trying of system directories if search of
14588 libthread-db-search-path fails, that is now done via $sdir.
14589
14590 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14591
14592 * server.c (handle_query): Add EnableDisableTracepoints to the list
14593 of supported features.
14594 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14595 tracepoints.
14596 (cmd_qtenable_disable): New.
14597 (cmd_qtstart): Install tracepoints even if disabled.
14598 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14599 receiving a QTEnable or QTDisable packet.
14600 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14601 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14602 tracepoints.
14603 (gdb_probe): Skip data collection if static tracepoint is disabled.
14604
14605 2011-05-10 Doug Evans <dje@google.com>
14606
14607 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14608
14609 2011-05-04 Doug Evans <dje@google.com>
14610
14611 * linux-low.c (linux_join): Skip process lookup.
14612 * spu-low.c (spu_join): Ditto.
14613 * server.c (join_inferiors_callback): Delete.
14614 (process_serial_event): For 'D' packet (detach) call join_inferior
14615 directly.
14616
14617 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14618
14619 * README: Don't mention xscale*-*-linux*.
14620 * configure.srv (xscale*-*-linux*): Don't handle target.
14621
14622 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14623
14624 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14625 casting pointers.
14626 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14627 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14628 (i386_emit_void_call_2): Likewise.
14629
14630 2011-04-26 Yao Qi <yao@codesourcery.com>
14631
14632 * linux-low.c: Move common macros to linux-ptrace.h.
14633 Include linux-ptrace.h.
14634 * Makefile.in (linux_ptrace_h): New.
14635 (linux-low.o): Depends on linux-ptrace.h.
14636
14637 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14638
14639 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14640 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14641 (remote_prepare): New function with most of the TCP code from ...
14642 (remote_open): ... here. Detect PORT here unconditionally. Move also
14643 setting transport_is_reliable.
14644 * server.c (run_once): New variable.
14645 (gdbserver_usage): Document it.
14646 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14647 the first run if RUN_ONCE.
14648 * server.h (run_once, remote_prepare): New declarations.
14649
14650 2011-04-19 Tom Tromey <tromey@redhat.com>
14651
14652 * win32-low.c (handle_load_dll): Remove duplicate "the".
14653
14654 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14655
14656 Remove support for old Cygwin 1.5 versions.
14657 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14658 function to avoid warning.
14659 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14660 warning.
14661
14662 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14663
14664 * gdbserver/server.h (Macro _): Define it if not available.
14665
14666 2011-03-14 Michael Snyder <msnyder@vmware.com>
14667
14668 * hostio.c (handle_close): Remove unnecessary null test.
14669
14670 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14671
14672 * Makefile.in (maintainer-clean realclean distclean): Remove
14673 "make ... subdir_do" command.
14674
14675 2011-03-10 Michael Snyder <msnyder@vmware.com>
14676
14677 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14678
14679 * server.c (handle_v_run): Free alloced buffer on early return.
14680
14681 2011-03-09 Yao Qi <yao@codesourcery.com>
14682
14683 Revert:
14684 2011-03-04 Yao Qi <yao@codesourcery.com>
14685
14686 * Makefile.in: Remove GNU make feature --directory.
14687
14688 2011-03-05 Yao Qi <yao@codesourcery.com>
14689
14690 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14691 (subdir_do): New make target. Copied from gdb/Makefile.
14692 (maintainer-clean, realclean, distclean, clean): Call corresponding
14693 make targets in common/Makefile.
14694
14695 2011-02-11 Yao Qi <yao@codesourcery.com>
14696
14697 * configure.ac: Call AC_PROG_RANLIB.
14698 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14699 * configure: Regenerate.
14700
14701 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14702
14703 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14704
14705 2011-03-06 Yao Qi <yao@codesourcery.com>
14706
14707 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14708
14709 2011-03-05 Yao Qi <yao@codesourcery.com>
14710
14711 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14712 (subdir_do): New make target. Copied from gdb/Makefile.
14713 (maintainer-clean, realclean, distclean, clean): Call corresponding
14714 make targets in common/Makefile.
14715
14716 2011-03-04 Yao Qi <yao@codesourcery.com>
14717
14718 * Makefile.in: Remove GNU make feature --directory.
14719
14720 2011-03-04 Michael Snyder <msnyder@vmware.com>
14721
14722 * server.c (queue_stop_reply): Call xmalloc not malloc.
14723
14724 2011-03-02 Michael Snyder <msnyder@vmware.com>
14725
14726 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14727
14728 2011-02-28 Michael Snyder <msnyder@vmware.com>
14729
14730 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14731 (cmd_qtframe): Ditto.
14732 (cmd_qtbuffer): Ditto.
14733 (cmd_bigqtbuffer): Ditto.
14734
14735 * utils.c (decimal2str): Initialize 'width' to nine, then
14736 don't mess with it.
14737
14738 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14739
14740 * hostio.c (require_data): Free *data, not data.
14741
14742 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14743
14744 * hostio.c (require_data): Use free, not xfree.
14745
14746 2011-02-27 Michael Snyder <msnyder@vmware.com>
14747
14748 * server.c (handle_query): Discard unused value.
14749
14750 * hostio.c (require_data): Free malloc memory before returning
14751 error.
14752
14753 2011-02-26 Michael Snyder <msnyder@vmware.com>
14754
14755 * linux-low.c (list_threads): Call closedir for dirent.
14756
14757 2011-02-27 Michael Snyder <msnyder@vmware.com>
14758
14759 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14760 a case statement falls through.
14761
14762 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14763
14764 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14765 in comparison.
14766
14767 2011-02-26 Michael Snyder <msnyder@vmware.com>
14768
14769 * utils.c (decimal2str): Eliminate dead code and dead param.
14770 (pulongest): Drop dead param from call to decimal2str.
14771 (plongest): Ditto.
14772
14773 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14774
14775 Revert the following patch (not approved yet):
14776 2011-02-21 Hui Zhu <teawater@gmail.com>
14777 * tracepoint.c (tp_printf): New function.
14778 (eval_agent_expr): Handle gdb_agent_op_printf.
14779
14780 2011-02-21 Hui Zhu <teawater@gmail.com>
14781
14782 * tracepoint.c (tp_printf): New function.
14783 (eval_agent_expr): Handle gdb_agent_op_printf.
14784
14785 2011-02-18 Tom Tromey <tromey@redhat.com>
14786
14787 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14788 (tracepoint.o): Likewise.
14789 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14790 (gdb_agent_op_names): Likewise.
14791
14792 2011-02-18 Tom Tromey <tromey@redhat.com>
14793
14794 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14795 gdb_agent_op_rot>: New constants.
14796 (gdb_agent_op_names): Add pick and roll.
14797 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14798 cases.
14799
14800 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14801
14802 * aclocal.m4: Regenerated with aclocal-1.11.1.
14803
14804 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14805
14806 * server.c (handle_qxfer_traceframe_info): New.
14807 (qxfer_packets): Register "traceframe-info".
14808 (handle_query): Report support for qXfer:traceframe-info:read+.
14809 * tracepoint.c (match_blocktype): New.
14810 (traceframe_find_block_type): Rename to ...
14811 (traceframe_walk_blocks): ... this. Add callback filter argument,
14812 and use it.
14813 (traceframe_find_block_type): New, reimplemented on top of
14814 traceframe_walk_blocks.
14815 (build_traceframe_info_xml): New.
14816 (traceframe_read_info): New.
14817 * server.h (traceframe_read_info): Declare.
14818
14819 2011-02-11 Yao Qi <yao@codesourcery.com>
14820
14821 * configure.ac: Call AC_PROG_RANLIB.
14822 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14823 * configure: Regenerate.
14824
14825 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14826
14827 * server.c (gdb_read_memory): Change return semantics to allow
14828 partial transfers.
14829 (handle_search_memory_1): Adjust.
14830 (process_serial_event) <'m' packet>: Handle partial transfers.
14831 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14832
14833 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14834
14835 * regcache.c (init_register_cache): Initialize
14836 regcache->register_status.
14837 (free_register_cache): Release regcache->register_status.
14838 (regcache_cpy): Copy register_status.
14839 (registers_to_string): Print 'x's for unavailable registers.
14840 (supply_register): Mark the register's status valid or
14841 unavailable, depending on whether a buffer was passed in or not.
14842 (supply_register_zeroed): New.
14843 (supply_regblock): Mark the registers' status valid or
14844 unavailable, depending on whether a buffer was passed in or not.
14845 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14846 (struct regcache): New `register_status' field.
14847 (supply_register_zeroed): Declare.
14848 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14849 supply_register_zeroed, rather than passing a NULL buffer to
14850 supply_register.
14851 * tracepoint.c (fetch_traceframe_registers): Update comment.
14852
14853 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14854
14855 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14856 buffer explicit.
14857
14858 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14859
14860 * server.h (decode_xfer_write): Change prototype.
14861 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14862 and don't extract the annex here.
14863 * server.c (decode_xfer_read): Remove `annex' parameter,
14864 and don't extract the annex here.
14865 (decode_xfer): New.
14866 (struct qxfer): New.
14867 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14868 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14869 (handle_qxfer_statictrace): New functions, abstracted out from
14870 handle_query, and made to use the struct qxfer interface.
14871 (handle_threads_qxfer_proper): Rename to ...
14872 (handle_qxfer_threads_proper): ... this.
14873 (handle_threads_qxfer): Rename to ...
14874 (handle_qxfer_threads): ... this. Adjust.
14875 (qxfer_packets): New array.
14876 (handle_qxfer): New function.
14877 (handle_query): Use handle_qxfer.
14878
14879 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14880
14881 * gdbreplay.c: Shorten lines of >= 80 columns.
14882 * linux-low.c: Ditto.
14883 * linux-ppc-low.c: Ditto.
14884 * linux-s390-low.c: Ditto.
14885 * linux-sparc-low.c: Ditto.
14886 * linux-x86-low.c: Ditto.
14887 * linux-xtensa-low.c: Ditto.
14888 * mem-break.c: Ditto.
14889 * nto-low.c: Ditto.
14890 * regcache.h: Ditto.
14891 * remote-utils.c: Ditto.
14892 * server.c: Ditto.
14893 * server.h: Ditto.
14894 * thread-db.c: Ditto.
14895 * tracepoint.c: Ditto.
14896 * utils.c: Ditto.
14897 * win32-low.h: Ditto.
14898
14899 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14900
14901 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14902 update.
14903
14904 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14905
14906 * server.c (gdbserver_version): Update copyright year in version
14907 output.
14908 * gdbreplay.c (gdbreplay_version): Ditto.
14909
14910 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14911
14912 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14913 * linux-bfin-low.c: New file.
14914 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14915 PT_DATA_ADDR for BFIN targets.
14916 * Makefile.in (SFILES): Add linux-bfin-low.c.
14917 (clean): Remove reg-bfin.c.
14918 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14919 * README: Mention supported Blackfin targets.
14920
14921 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14922
14923 * .gitignore: New file.
14924
14925 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14926
14927 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14928
14929 2010-10-22 Jie Zhang <jie@codesourcery.com>
14930
14931 * Makefile.in: Add FLAGS_TO_PASS variable.
14932 (install): Remove dependency of install-only and recursively
14933 invoke make for install-only.
14934
14935 2010-10-04 Doug Evans <dje@google.com>
14936
14937 * Makefile.in (uninstall): Use $(DESTDIR).
14938
14939 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14940
14941 PR gdb/11842
14942
14943 * linux-x86-low.c (compat_siginfo_from_siginfo)
14944 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14945 si_code is < 0. Check for si_code == SI_TIMER before checking for
14946 si_code < 0.
14947
14948 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14949
14950 * lynx-i386-low.c: New file.
14951 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14952
14953 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14954
14955 * lynx-low.c (ptrace_request_to_str): Remove handling for
14956 request values that have been removed in LynxOS 5.x.
14957
14958 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14959
14960 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14961 <ptrace.h>
14962
14963 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14964
14965 * configure.ac: Add --enable-inprocess-agent option.
14966 * configure: Rebuilt.
14967
14968 2010-09-06 Yao Qi <yao@codesourcery.com>
14969
14970 * linux-low.c (linux_kill): Remove unused variable.
14971 (linux_stabilize_threads): Likewise.
14972 * server.c (start_inferior): Likewise.
14973 (queue_stop_reply_callback): Likewise.
14974 * tracepoint.c (do_action_at_tracepoint): Likewise.
14975
14976 2010-09-06 Yao Qi <yao@codesourcery.com>
14977
14978 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14979 on return.
14980
14981 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14982
14983 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14984
14985 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14986
14987 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14988 "$(IPA_DEPFILES)".
14989
14990 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14991
14992 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14993 gdbserver/lynx-ppc-low.c: New files.
14994 * Makefile.in (lynx_low_h): New variable.
14995 (lynx-low.o, lynx-ppc-low.o): New rules.
14996 * configure.ac: On LynxOS, link with -lnetinet.
14997 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14998 * configure: regenerate.
14999
15000 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15001
15002 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15003 * configure.ac: Add check for vasprintf and vsnprintf.
15004 * configure, config.in: Regenerate.
15005 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15006
15007 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15008
15009 * gdbreplay.c: Move include of alloca.h up, next to include of
15010 malloc.h.
15011 * server.h: Add include of malloc.h.
15012 * mem-break.c: Remove include of malloc.h.
15013 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15014
15015 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15016
15017 * Makefile.in (memmem.o): Build with -Wno-error.
15018
15019 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15020
15021 * utils.c (xsnprintf): Make non-static.
15022 * server.h: Add xsnprintf declaration.
15023 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15024 replace calls to snprintf by calls to xsnprintf throughout.
15025
15026 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15027
15028 * configure.ac: Add configure check for alloca.
15029 * configure, config.in: Regenerate.
15030 * server.h: Include alloca.h if it exists.
15031 * gdbreplay.c: Include alloca.h if it exists.
15032
15033 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15034
15035 * linux-low.c (__SIGRTMIN): Define if not already defined.
15036 (linux_create_inferior): Check for __ANDROID__ rather than
15037 __SIGRTMIN.
15038 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15039 are already deferred.
15040 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15041 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15042 stopped and already has a pending signal to report.
15043 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15044 a pending signal to report or is moving out of a jump pad.
15045 (linux_init_signals): Check for __ANDROID__ rather than
15046 __SIGRTMIN.
15047
15048 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15049
15050 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15051 debug_threads check. Avoid a linear search when not doing debug
15052 output.
15053
15054 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15055
15056 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15057 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15058 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15059 (process_event): Change local fd's type to gdb_fildes_t.
15060 (create_file_handler): Adjust prototype.
15061 (delete_file_handler): Adjust prototype.
15062 (handle_file_event): Adjust prototype. Use pfildes.
15063 (create_file_event): Adjsut prototype.
15064 * remote-utils.c (remote_desc, listen_desc): Change type to
15065 gdb_fildes_t.
15066 * server.h: New gdb_fildes_t typedef.
15067 [USE_WIN32API]: Include winsock2.h.
15068 (delete_file_handler, add_file_handler): Adjust prototypes.
15069 (pfildes): Declare.
15070 * utils.c (pfildes): New.
15071
15072 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15073
15074 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15075 * configure: Regenerate.
15076
15077 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15078
15079 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15080 (linux_done_accessing_memory): ... this.
15081 (linux_target_ops): Adjust.
15082 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15083 * nto-low.c (nto_target_ops): Adjust comment.
15084 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15085 * spu-low.c (spu_target_ops): Adjust comment.
15086 * target.h (target_ops): Rename unprepare_to_access_memory field
15087 to done_accessing_memory.
15088 (unprepare_to_access_memory): Rename to ...
15089 (done_accessing_memory): ... this.
15090
15091 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15092
15093 * linux-low.c (linux_prepare_to_access_memory): New.
15094 (linux_unprepare_to_access_memory): New.
15095 (linux_target_ops): Install them.
15096 * server.c (read_memory): Rename to ...
15097 (gdb_read_memory): ... this. Use
15098 prepare_to_access_memory/prepare_to_access_memory.
15099 (write_memory): Rename to ...
15100 (gdb_write_memory): ... this. Use
15101 prepare_to_access_memory/prepare_to_access_memory.
15102 (handle_search_memory_1): Adjust.
15103 (process_serial_event): Adjust.
15104 * target.h (struct target_ops): New fields
15105 prepare_to_access_memory and unprepare_to_access_memory.
15106 (prepare_to_access_memory, unprepare_to_access_memory): New.
15107 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15108 prepare_to_access_memory/prepare_to_access_memory.
15109 * nto-low.c (nto_target_ops): Adjust.
15110 * spu-low.c (spu_target_ops): Adjust.
15111 * win32-low.c (win32_target_ops): Adjust.
15112
15113 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15114
15115 * Makefile.in (WARN_CFLAGS): Get it from configure.
15116 (WERROR_CFLAGS): New.
15117 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15118 * configure.ac: Introduce --enable-werror, which adds -Werror to
15119 the compiler command line. Enabled by default. Disable with
15120 --disable-werror. Add -Wdeclaration-after-statement
15121 Wpointer-arith and -Wformat-nonliteral to warning flags.
15122 * configure: Regenerate.
15123
15124 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15125
15126 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15127
15128 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15129
15130 * gdbreplay.c (remote_error): New.
15131 (gdbchar): New.
15132 (expect): Use gdbchar. Check for error reading from GDB.
15133 Clarify sync error output.
15134 (play): Check for errors writing to GDB.
15135 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15136 * remote-utils.c (getpkt): Check for errors writing to the remote
15137 descriptor.
15138
15139 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15140
15141 * linux-low.c (linux_wait_1): Move non-debugging code out of
15142 `debug_threads' control.
15143
15144 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15145
15146 * linux-low.c (linux_wait_1): Don't set last_status here.
15147 * server.c (push_event, queue_stop_reply_callback): Assert we're
15148 not pushing a TARGET_WAITKIND_IGNORE event.
15149 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15150 (myresume, handle_target_event): Set the thread's last_resume_kind
15151 and last_status from the target returned status.
15152
15153 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15154
15155 PR threads/10729
15156
15157 * linux-x86-low.c (update_debug_registers_callback): New.
15158 (i386_dr_low_set_addr): Use it.
15159 (i386_dr_low_get_addr): New.
15160 (i386_dr_low_set_control): Use update_debug_registers_callback.
15161 (i386_dr_low_get_control): New.
15162 (i386_dr_low_get_status): Adjust.
15163 * linux-low.c (linux_stop_lwp): New.
15164 * linux-low.h (linux_stop_lwp): Declare.
15165
15166 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15167 argument instead of a i386_debug_reg_state.
15168 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15169 a i386_debug_reg_state.
15170 (i386_insert_aligned_watchpoint): Adjust.
15171 (i386_remove_aligned_watchpoint): Adjust.
15172 (i386_low_stopped_data_address): Read the debug registers from the
15173 inferior instead of from the mirrors.
15174 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15175 (i386_dr_low_get_addr): Declare.
15176 (i386_dr_low_get_control): Declare.
15177 (i386_dr_low_get_status): Change prototype.
15178
15179 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15180 (i386_dr_low_get_addr): New.
15181 (i386_dr_low_get_control): New.
15182 (i386_dr_low_get_status): Adjust prototype. Return
15183 dr_status_mirror.
15184 (i386_initial_stuff): Clear dr_status_mirror and
15185 dr_control_mirror.
15186 (i386_get_thread_context): Adjust.
15187 (i386_set_thread_context): Adjust.
15188 (i386_thread_added): Adjust.
15189
15190 2010-08-24 Pedro Alves <pedro@codesourcery.com>
15191
15192 * linux-low.h (linux_thread_area): Delete declaration.
15193
15194 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15195
15196 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15197 after its termination.
15198
15199 2010-08-09 Pedro Alves <pedro@codesourcery.com>
15200
15201 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15202 (gdb_wants_all_stopped): Delete.
15203 (linux_wait_1): Don't call them.
15204 * server.c (handle_v_cont): Tag all threads as want-stopped.
15205 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15206 stopped as "client-wants-stopped".
15207
15208 2010-07-31 Pedro Alves <pedro@codesourcery.com>
15209
15210 * Makefile.in (signals_h): New.
15211 (server_h): Depend on it.
15212 (server.o): Don't depend on $(signals_def).
15213 (signals.o): Depend on $(signals_def).
15214
15215 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15216
15217 * Makefile.in (signals_def): New.
15218 (server_h): Append include/gdb/signals.h and signals_def.
15219 (server.o): Append signals_def.
15220
15221 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15222
15223 * server.c (handle_target_event): Use target_signal_to_host for
15224 resume_info.sig initialization.
15225 * target.h (struct thread_resume) <sig>: New comment.
15226
15227 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15228
15229 * server.c (handle_query): strcpy() the returned string from paddress()
15230 instead of sprintf().
15231 * utils.c (paddress): Return phex_nz().
15232
15233 2010-07-07 Joel Brobecker <brobecker@adacore.com>
15234
15235 * server.c (handle_v_cont): Call mourn_inferior if process
15236 just exited.
15237 (myresume): Likewise.
15238
15239 2010-07-01 Pedro Alves <pedro@codesourcery.com>
15240
15241 Static tracepoints, and integration with UST.
15242
15243 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15244 * mem-break.c (uninsert_all_breakpoints)
15245 (reinsert_all_breakpoints): New.
15246 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15247 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15248 (gdb_agent_ust_loaded, helper_thread_id)
15249 (gdb_agent_helper_thread_id): New macros.
15250 (struct ipa_sym_addresses): Add addr_ust_loaded,
15251 addr_helper_thread_id, addr_cmd_buf.
15252 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15253 (in_process_agent_loaded_ust): New.
15254 (write_e_ust_not_loaded): New.
15255 (maybe_write_ipa_ust_not_loaded): New.
15256 (struct collect_static_trace_data_action): New.
15257 (enum tracepoint_type) <static_tracepoint>: New.
15258 (struct tracepoint) <handle>: Mention static tracepoints.
15259 (struct static_tracepoint_ctx): New.
15260 (CMD_BUF_SIZE): New.
15261 (add_tracepoint_action): Handle static tracepoint actions.
15262 (unprobe_marker_at): New.
15263 (clear_installed_tracepoints): Handle static tracepoints.
15264 (cmd_qtdp): Handle static tracepoints.
15265 (probe_marker_at): New.
15266 (cmd_qtstart): Handle static tracepoints.
15267 (response_tracepoint): Handle static tracepoints.
15268 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15269 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15270 (get_context_regcache): Handle static tracepoints.
15271 (do_action_at_tracepoint): Handle static tracepoint actions.
15272 (traceframe_find_block_type): Handle static trace data blocks.
15273 (traceframe_read_sdata): New.
15274 (download_tracepoints): Download static tracepoint actions.
15275 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15276 (GDB_PROBE_NAME): New.
15277 (ust_ops): New.
15278 (GET_UST_SYM): New.
15279 (USTF): New.
15280 (dlsym_ust): New.
15281 (ust_marker_to_static_tracepoint): New.
15282 (gdb_probe): New.
15283 (collect_ust_data_at_tracepoint): New.
15284 (gdb_ust_probe): New.
15285 (UNIX_PATH_MAX, SOCK_DIR): New.
15286 (gdb_ust_connect_sync_socket): New.
15287 (resume_thread, stop_thread): New.
15288 (run_inferior_command): New.
15289 (init_named_socket): New.
15290 (gdb_ust_socket_init): New.
15291 (cstr_to_hexstr): New.
15292 (next_st): New.
15293 (first_marker, next_marker): New.
15294 (response_ust_marker): New.
15295 (cmd_qtfstm, cmd_qtsstm): New.
15296 (unprobe_marker_at, probe_marker_at): New.
15297 (cmd_qtstmat, gdb_ust_thread): New.
15298 (gdb_ust_init): New.
15299 (initialize_tracepoint_ftlib): Call gdb_ust_init.
15300 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
15301 (ST_REGENTRY): New.
15302 (x86_64_st_collect_regmap): New.
15303 (X86_64_NUM_ST_COLLECT_GREGS): New.
15304 (AMD64_RIP_REGNUM): New.
15305 (supply_static_tracepoint_registers): New.
15306 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
15307 (ST_REGENTRY): New.
15308 (i386_st_collect_regmap): New.
15309 (i386_NUM_ST_COLLECT_GREGS): New.
15310 (supply_static_tracepoint_registers): New.
15311 * server.c (handle_query): Handle qXfer:statictrace:read.
15312 <qSupported>: Report support for StaticTracepoints, and
15313 qXfer:statictrace:read features.
15314 * server.h (traceframe_read_sdata)
15315 (supply_static_tracepoint_registers): Declare.
15316 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
15317 (unpack_varlen_hex): Include in IPA build.
15318 * Makefile.in (ustlibs, ustinc): New.
15319 (IPA_OBJS): Add remote-utils-ipa.o.
15320 ($(IPA_LIB)): Link -ldl and -lpthread.
15321 (UST_CFLAGS): New.
15322 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15323 * config.in, configure: Regenerate.
15324
15325 2010-06-20 Ian Lance Taylor <iant@google.com>
15326 Pedro Alves <pedro@codesourcery.com>
15327
15328 * linux-x86-low.c (always_true): Delete.
15329 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
15330 trying to fool the compiler with always_true.
15331
15332 2010-06-20 Pedro Alves <pedro@codesourcery.com>
15333
15334 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15335 conditions in gdbserver.
15336
15337 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15338
15339 * spu-low.c (spu_read_memory): Wrap around local store limit.
15340 (spu_write_memory): Likewise.
15341
15342 2010-06-15 Pedro Alves <pedro@codesourcery.com>
15343
15344 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
15345 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
15346 LONGEST uses.
15347 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15348 uses.
15349 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15350 uses with LONGEST uses.
15351
15352 2010-06-14 Stan Shebs <stan@codesourcery.com>
15353 Pedro Alves <pedro@codesourcery.com>
15354
15355 Bytecode compiler.
15356
15357 * linux-x86-low.c: Include limits.h.
15358 (add_insns): New.
15359 (always_true): New.
15360 (EMIT_ASM): New.
15361 (EMIT_ASM32): New.
15362 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
15363 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
15364 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
15365 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
15366 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
15367 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
15368 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
15369 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
15370 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
15371 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
15372 (amd64_emit_void_call_2): New.
15373 (amd64_emit_ops): New.
15374 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
15375 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
15376 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
15377 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
15378 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
15379 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
15380 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
15381 (i386_emit_call, i386_emit_reg, i386_emit_pop)
15382 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
15383 (i386_emit_stack_adjust, i386_emit_int_call_1)
15384 (i386_emit_void_call_2): New.
15385 (i386_emit_ops): New.
15386 (x86_emit_ops): New.
15387 (the_low_target): Install x86_emit_ops.
15388 * server.h (struct emit_ops): New.
15389 (get_raw_reg_func_addr): Declare.
15390 (current_insn_ptr, emit_error): Declare.
15391 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
15392 (set_trace_state_variable_value): New defines.
15393 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
15394 addr_get_trace_state_variable_value and
15395 addr_set_trace_state_variable_value.
15396 (symbol_list): New fields for get_raw_reg,
15397 get_trace_state_variable_value and set_trace_state_variable_value.
15398 (condfn): New typedef.
15399 (struct tracepoint): New field `compiled_cond'.
15400 (do_action_at_tracepoint): Clear compiled_cond.
15401 (get_trace_state_variable_value, set_trace_state_variable_value):
15402 Export in the IPA.
15403 (condition_true_at_tracepoint): If there's a compiled condition,
15404 run that.
15405 (current_insn_ptr, emit_error): New globals.
15406 (struct bytecode_address): New.
15407 (get_raw_reg_func_addr): New.
15408 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
15409 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
15410 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
15411 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
15412 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
15413 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
15414 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
15415 (compile_tracepoint_condition, compile_bytecodes): New.
15416 * target.h (emit_ops): Forward declare.
15417 (struct target_ops): New field emit_ops.
15418 (target_emit_ops): New.
15419 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
15420 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
15421 * linux-low.c (linux_emit_ops): New.
15422 (linux_target_ops): Install it.
15423 * linux-low.h (struct linux_target_ops): New field emit_ops.
15424
15425 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
15426
15427 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
15428 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
15429
15430 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15431 Stan Shebs <stan@codesourcery.com>
15432
15433 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
15434 (all): Depend on $(extra_libraries).
15435 (install-only): Install the IPA.
15436 (IPA_OBJS, IPA_LIB): New.
15437 (clean): Remove the IPA lib.
15438 (IPAGENT_CFLAGS): New.
15439 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
15440 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
15441 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
15442 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
15443 * configure.ac: Check for atomic builtins support in the compiler.
15444 (IPA_DEPFILES, extra_libraries): Define.
15445 * configure.srv (ipa_obj): Add description.
15446 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
15447 (i[34567]86-*-linux*): Set ipa_obj.
15448 (x86_64-*-linux*): Set ipa_obj.
15449 * linux-low.c (stabilizing_threads): New.
15450 (supports_fast_tracepoints): New.
15451 (linux_detach): Stabilize threads before detaching.
15452 (handle_tracepoints): Handle internal tracing breakpoints. Assert
15453 the lwp is either not stabilizing, or is moving out of a jump pad.
15454 (linux_fast_tracepoint_collecting): New.
15455 (maybe_move_out_of_jump_pad): New.
15456 (enqueue_one_deferred_signal): New.
15457 (dequeue_one_deferred_signal): New.
15458 (linux_wait_for_event_1): If moving out of a jump pad, defer
15459 pending signals to later.
15460 (linux_stabilize_threads): New.
15461 (linux_wait_1): Check if threads need moving out of jump pads, and
15462 do it if so.
15463 (stuck_in_jump_pad_callback): New.
15464 (move_out_of_jump_pad_callback): New.
15465 (lwp_running): New.
15466 (linux_resume_one_lwp): Handle moving out of jump pads.
15467 (linux_set_resume_request): Dequeue deferred signals.
15468 (need_step_over_p): Also step over fast tracepoint jumps.
15469 (start_step_over): Also uninsert fast tracepoint jumps.
15470 (finish_step_over): Also reinsert fast tracepoint jumps.
15471 (linux_install_fast_tracepoint_jump): New.
15472 (linux_target_ops): Install linux_stabilize_threads and
15473 linux_install_fast_tracepoint_jump_pad.
15474 * linux-low.h (linux_target_ops) <get_thread_area,
15475 install_fast_tracepoint_jump_pad>: New fields.
15476 (struct lwp_info) <collecting_fast_tracepoint,
15477 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
15478 (linux_get_thread_area): Declare.
15479 * linux-x86-low.c (jump_insn): New.
15480 (x86_get_thread_area): New.
15481 (append_insns): New.
15482 (push_opcode): New.
15483 (amd64_install_fast_tracepoint_jump_pad): New.
15484 (i386_install_fast_tracepoint_jump_pad): New.
15485 (x86_install_fast_tracepoint_jump_pad): New.
15486 (the_low_target): Install x86_get_thread_area and
15487 x86_install_fast_tracepoint_jump_pad.
15488 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
15489 (struct fast_tracepoint_jump): New.
15490 (fast_tracepoint_jump_insn): New.
15491 (fast_tracepoint_jump_shadow): New.
15492 (find_fast_tracepoint_jump_at): New.
15493 (fast_tracepoint_jump_here): New.
15494 (delete_fast_tracepoint_jump): New.
15495 (set_fast_tracepoint_jump): New.
15496 (uninsert_fast_tracepoint_jumps_at): New.
15497 (reinsert_fast_tracepoint_jumps_at): New.
15498 (set_breakpoint_at): Use write_inferior_memory.
15499 (uninsert_raw_breakpoint): Use write_inferior_memory.
15500 (check_mem_read): Mask out fast tracepoint jumps.
15501 (check_mem_write): Mask out fast tracepoint jumps.
15502 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15503 (set_fast_tracepoint_jump): Declare.
15504 (delete_fast_tracepoint_jump)
15505 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15506 (reinsert_fast_tracepoint_jumps_at): Declare.
15507 * regcache.c: Don't compile many functions when building the
15508 in-process agent library.
15509 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
15510 the register buffer in the heap.
15511 (free_register_cache): If the register buffer isn't owned by the
15512 regcache, don't free it.
15513 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
15514 pre-existing register caches.
15515 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
15516 type.
15517 (convert_ascii_to_int): : Constify `from' parameter type.
15518 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
15519 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15520 the needed buffer in-place.
15521 (relocate_instruction): New.
15522 * server.c (handle_query) <qSymbols>: If the target supports
15523 tracepoints, give it a chance of looking up symbols. Report
15524 support for fast tracepoints.
15525 (handle_status): Stabilize threads.
15526 (process_serial_event): Adjust.
15527 * server.h (struct fast_tracepoint_jump): Forward declare.
15528 (struct process_info) <fast_tracepoint_jumps>: New field.
15529 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15530 (decode_X_packet, decode_M_packet): Adjust.
15531 (relocate_instruction): Declare.
15532 (in_process_agent_loaded): Declare.
15533 (tracepoint_look_up_symbols): Declare.
15534 (struct fast_tpoint_collect_status): Declare.
15535 (fast_tracepoint_collecting): Declare.
15536 (force_unlock_trace_buffer): Declare.
15537 (handle_tracepoint_bkpts): Declare.
15538 (initialize_low_tracepoint)
15539 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15540 * target.h (struct target_ops) <stabilize_threads,
15541 install_fast_tracepoint_jump_pad>: New fields.
15542 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15543 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15544 [HAVE_STDINT_H]: Include stdint.h.
15545 (trace_debug_1): Rename to ...
15546 (trace_vdebug): ... this.
15547 (trace_debug): Rename to ...
15548 (trace_debug_1): ... this. Add `level' parameter.
15549 (trace_debug): New.
15550 (ATTR_USED, ATTR_NOINLINE): New.
15551 (IP_AGENT_EXPORT): New.
15552 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15553 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15554 (about_to_request_buffer_space, trace_buffer_is_full)
15555 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15556 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15557 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15558 (traceframe_write_count, traceframes_created)
15559 (trace_state_variables)
15560 New renaming defines.
15561 (struct ipa_sym_addresses): New.
15562 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15563 (symbol_list): New.
15564 (ipa_sym_addrs): New.
15565 (all_tracepoint_symbols_looked_up): New.
15566 (in_process_agent_loaded): New.
15567 (write_e_ipa_not_loaded): New.
15568 (maybe_write_ipa_not_loaded): New.
15569 (tracepoint_look_up_symbols): New.
15570 (debug_threads) [IN_PROCESS_AGENT]: New.
15571 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15572 (UNKNOWN_SIDE_EFFECTS): New.
15573 (stop_tracing): New.
15574 (flush_trace_buffer): New.
15575 (stop_tracing_bkpt): New.
15576 (flush_trace_buffer_bkpt): New.
15577 (read_inferior_integer): New.
15578 (read_inferior_uinteger): New.
15579 (read_inferior_data_pointer): New.
15580 (write_inferior_data_pointer): New.
15581 (write_inferior_integer): New.
15582 (write_inferior_uinteger): New.
15583 (struct collect_static_trace_data_action): Delete.
15584 (enum tracepoint_type): New.
15585 (struct tracepoint) <type>: New field `type'.
15586 <actions_str, step_actions, step_actions_str>: Only include in
15587 GDBserver.
15588 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15589 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15590 (tracepoints): Use IP_AGENT_EXPORT.
15591 (last_tracepoint): Don't include in the IPA.
15592 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15593 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15594 (alloced_trace_state_variables): New.
15595 (trace_state_variables): Use IP_AGENT_EXPORT.
15596 (traceframe_t): Delete unused variable.
15597 (circular_trace_buffer): Don't include in the IPA.
15598 (trace_buffer_start): Delete.
15599 (struct trace_buffer_control): New.
15600 (trace_buffer_free): Delete.
15601 (struct ipa_trace_buffer_control): New.
15602 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15603 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15604 New.
15605 (trace_buffer_ctrl): New.
15606 (TRACE_BUFFER_CTRL_CURR): New.
15607 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15608 Reimplement as macros.
15609 (trace_buffer_wrap): Delete.
15610 (traceframe_write_count, traceframe_read_count)
15611 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15612 (struct tracepoint_hit_ctx) <type>: New field.
15613 (struct fast_tracepoint_ctx): New.
15614 (memory_barrier): New.
15615 (cmpxchg): New.
15616 (record_tracepoint_error): Update atomically in the IPA.
15617 (clear_inferior_trace_buffer): New.
15618 (about_to_request_buffer_space): New.
15619 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15620 updating the same buffer.
15621 (add_tracepoint): Default the tracepoint's type to trap
15622 tracepoint, and orig_size to -1.
15623 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15624 internal variables.
15625 (create_trace_state_variable): New parameter `gdb'. Handle it.
15626 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15627 (cmd_qtdp): Handle fast tracepoints.
15628 (cmd_qtdv): Adjust.
15629 (max_jump_pad_size): New.
15630 (gdb_jump_pad_head): New.
15631 (get_jump_space_head): New.
15632 (claim_jump_space): New.
15633 (sort_tracepoints): New.
15634 (MAX_JUMP_SIZE): New.
15635 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15636 IPA.
15637 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15638 support. Upload fast traceframes, and delete internal IPA
15639 breakpoints.
15640 (stop_tracing_handler): New.
15641 (flush_trace_buffer_handler): New.
15642 (cmd_qtstop): Upload fast tracepoints.
15643 (response_tracepoint): Handle fast tracepoints.
15644 (tracepoint_finished_step): Upload fast traceframes. Set the
15645 tracepoint hit context's tracepoint type.
15646 (handle_tracepoint_bkpts): New.
15647 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15648 type. Add comment about fast tracepoints.
15649 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15650 non-existing action_str field.
15651 (get_context_regcache): Handle fast tracepoints.
15652 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15653 to the regcache.
15654 (fast_tracepoint_from_jump_pad_address): New.
15655 (fast_tracepoint_from_ipa_tpoint_address): New.
15656 (collecting_t): New.
15657 (force_unlock_trace_buffer): New.
15658 (fast_tracepoint_collecting): New.
15659 (collecting): New.
15660 (gdb_collect): New.
15661 (write_inferior_data_ptr): New.
15662 (target_tp_heap): New.
15663 (target_malloc): New.
15664 (download_agent_expr): New.
15665 (UALIGN): New.
15666 (download_tracepoints): New.
15667 (download_trace_state_variables): New.
15668 (upload_fast_traceframes): New.
15669 (IPA_FIRST_TRACEFRAME): New.
15670 (IPA_NEXT_TRACEFRAME_1): New.
15671 (IPA_NEXT_TRACEFRAME): New.
15672 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15673 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15674 (gdb_jump_pad_buffer_end): New.
15675 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15676 (initialize_tracepoint): Adjust.
15677 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15678 buffer. Initialize the low module.
15679 * utils.c (PREFIX, TOOLNAME): New.
15680 (malloc_failure): Use PREFIX.
15681 (error): In the IPA, an error causes an exit.
15682 (fatal, warning): Use PREFIX.
15683 (internal_error): Use TOOLNAME.
15684 (NUMCELLS): Increase to 10.
15685 * configure, config.in: Regenerate.
15686
15687 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15688
15689 * server.c (handle_query) <qSupported>: Do two passes over the
15690 qSupported string to avoid nesting strtok.
15691
15692 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15693
15694 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15695 (CDEPS): New.
15696 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15697 -Wl,--dynamic-list.
15698 * configure: Regenerate.
15699 * proc-service.list: New.
15700
15701 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15702
15703 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15704 New comment.
15705
15706 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15707
15708 * gdbreplay.c (remote_open): Check error return from socket() call by
15709 its equality to -1 not by it being negative.
15710 * remote-utils.c (remote_open): Likewise.
15711
15712 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15713
15714 * config.h: Regenerate.
15715
15716 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15717
15718 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15719 doesn't provide PTRACE_GET_THREAD_AREA.
15720
15721 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15722
15723 * linux-m68k-low.c: Include <asm/ptrace.h>
15724 (ps_get_thread_area): Implement.
15725
15726 2010-05-03 Doug Evans <dje@google.com>
15727
15728 * event-loop.c (struct callback_event): New struct.
15729 (callback_list): New global.
15730 (append_callback_event, delete_callback_event): New functions.
15731 (process_callback): New function.
15732 (start_event_loop): Call it.
15733 * remote-utils.c (NOT_SCHEDULED): Define.
15734 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15735 moved out of readchar.
15736 (readchar): Rewrite. Call reschedule before returning.
15737 (reset_readchar): New function.
15738 (remote_close): Call it.
15739 (process_remaining, reschedule): New functions.
15740 * server.h (callback_handler_func): New typedef.
15741 (append_callback_event, delete_callback_event): Declare.
15742
15743 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15744
15745 * proc-service.c (ps_pglobal_lookup): Use
15746 thread_db_look_up_one_symbol.
15747 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15748 parameter. Use it instead of all_symbols_looked_up.
15749 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15750 field.
15751 (all_symbols_looked_up): Don't declare.
15752 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15753 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15754 field.
15755 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15756 Set all_symbols_looked_up here.
15757 (thread_db_look_up_one_symbol): New.
15758 (thread_db_get_tls_address): Adjust.
15759 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15760 thread_db object on the heap, and tentatively set it in the
15761 process structure.
15762 (thread_db_init): Don't set all_symbols_looked_up here.
15763 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15764
15765 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15766
15767 * linux-low.c (linux_kill, linux_detach): Adjust.
15768 (status_pending_p_callback): Remove redundant statement. Check
15769 for !TARGET_WAITIKIND_IGNORE, instead of
15770 TARGET_WAITKIND_STOPPED.
15771 (handle_tracepoints): Make sure LWP is locked. Adjust.
15772 (linux_wait_for_event_1): Adjust.
15773 (linux_cancel_breakpoints): New.
15774 (unsuspend_one_lwp): New.
15775 (unsuspend_all_lwps): New.
15776 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15777 (send_sigstop_callback): Change return type to int, add new
15778 `except' parameter and handle it.
15779 (suspend_and_send_sigstop_callback): New.
15780 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15781 pass them down. If SUSPEND, also increment the lwp's suspend
15782 count.
15783 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15784 (need_step_over_p): Don't consider suspended LWPs.
15785 (start_step_over): Adjust.
15786 (proceed_one_lwp): Change return type to int, add new `except'
15787 parameter and handle it.
15788 (unsuspend_and_proceed_one_lwp): New.
15789 (proceed_all_lwps): Use find_inferior instead of
15790 for_each_inferior.
15791 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15792 also decrement the suspend count of LWPs. Pass `except' down,
15793 instead of hacking its suspend count.
15794 (linux_pause_all): Add `freeze' parameter. Adjust.
15795 (linux_unpause_all): New.
15796 (linux_target_ops): Install linux_unpause_all.
15797 * server.c (handle_status): Adjust.
15798 * target.h (struct target_ops): New fields `unpause_all' and
15799 `cancel_breakpoints'. Add new parameter to `pause_all'.
15800 (pause_all): Add new `freeze' parameter.
15801 (unpause_all): New.
15802 (cancel_breakpoints): New.
15803 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15804 cancel breakpoints.
15805 (cmd_qtstart): Pause threads.
15806 (stop_tracing): Pause threads, and cancel breakpoints.
15807 * win32-low.c (win32_target_ops): Adjust.
15808
15809 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15810
15811 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15812 the inferior right away from here...
15813 (linux_wait_1): ... to here, and adjust to check the thread's
15814 last_resume_kind instead of the lwp's step or stop_expected flags.
15815
15816 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15817
15818 * README: Use consistent `GDB' and `GDBserver' spellings.
15819
15820 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15821
15822 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15823 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15824 (linux_detach_one_lwp): Assume the lwp is stopped.
15825 (any_thread_of): Delete.
15826 (linux_detach): Stop all lwps here. Don't blindly delete all
15827 breakpoints.
15828 (delete_lwp_callback): New.
15829 (linux_mourn): Delete all lwps of the process that is gone.
15830 (linux_wait_1): Don't delete the last lwp of the process here.
15831 * mem-break.h (mark_breakpoints_out): Declare.
15832 * mem-break.c (mark_breakpoints_out): New.
15833 (free_all_breakpoints): Use it.
15834 * server.c (handle_target_event): If the process is gone, mark
15835 breakpoints out.
15836 * thread-db.c (struct thread_db) <create_bp>: New field.
15837 (thread_db_enable_reporting): Fix prototype. Store a thread event
15838 breakpoint reference in the thread_db struct.
15839 (thread_db_load_search): Clear the thread_db object.
15840 (try_thread_db_load_1): Ditto.
15841 (switch_to_process): New.
15842 (disable_thread_event_reporting): Use it.
15843 (remove_thread_event_breakpoints): New.
15844 (thread_db_detach, thread_db_mourn): Use it.
15845
15846 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15847
15848 * linux-low.c (linux_enable_event_reporting): New.
15849 (linux_wait_for_event_1, handle_extended_wait): Use it.
15850
15851 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15852
15853 * linux-low.c (linux_kill_one_lwp, linux_kill)
15854 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15855 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15856 SIGSTOP even if the LWP is stopped.
15857 (send_sigstop_callback): New.
15858 (stop_all_lwps): Use send_sigstop_callback instead.
15859 (linux_resume_one_thread): Adjust.
15860 (proceed_one_lwp): Still proceed an LWP that the client has
15861 requested to stop, if we haven't reported it as stopped yet. Make
15862 sure that LWPs the client want stopped, have a pending SIGSTOP.
15863
15864 2010-04-26 Doug Evans <dje@google.com>
15865
15866 * server.c (handle_general_set): Make static.
15867
15868 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15869 Print received char after testing for error/eof instead of before.
15870 (input_interrupt): Tweak comment.
15871
15872 2010-04-23 Doug Evans <dje@google.com>
15873
15874 * server.c (start_inferior): Print inferior argv if --debug.
15875
15876 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15877
15878 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15879 * nto-x86-low.c: Include server.h
15880
15881 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15882
15883 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15884 be consistent with other sources of this directory.
15885 (init_registers_amd64): Correct name of source file of this function
15886 in the comment.
15887
15888 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15889
15890 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15891 64-bit executables.
15892
15893 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15894
15895 * win32-i386-low.c: Add 64-bit support.
15896 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15897 (init_registers_amd64): Declare.
15898 (mappings): Add 64-bit version of array.
15899 (init_windows_x86): New function.
15900 (the_low_target): Change init_arch field to init_windows_x86.
15901
15902 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15903
15904 * win32-low.c: Adapt to support also 64-bit architecture.
15905 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15906 (get_image_name): Use SIZE_T type for local variable `done'.
15907 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15908 (toolhelp_get_dll_name): Idem.
15909 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15910 Use uintptr_t typecast to avoid warning.
15911 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15912 (handle_exception): Use phex_nz to avoid warning.
15913 (win32_wait): Remove unused local variable `process'.
15914
15915 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15916
15917 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15918 `amd64-avx.o'.
15919
15920 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15921
15922 * configure.ac: Use `ws2_32' library for srv_mingw.
15923 * configure: Regenerate.
15924 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15925 * remote-utils.c: Likewise.
15926
15927 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15928
15929 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15930 if __x86_64__ is defined.
15931
15932 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15933
15934 * configure: Regenerate.
15935
15936 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15937
15938 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15939 * target.h (target_ops): New get_tib_address field.
15940 * win32-low.h (win32_thread_info): Add thread_local_base field.
15941 * win32-low.c (child_add_thread): Add tlb argument.
15942 Set thread_local_base field to TLB.
15943 (get_child_debug_event): Adapt to child_add_thread change.
15944 (win32_get_tib_address): New function.
15945 (win32_target_ops): Set get_tib_address field to
15946 win32_get_tib_address.
15947 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15948
15949 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15950
15951 * linux-low.c (linux_mourn): Also remove the process.
15952 * server.c (handle_target_event): Don't remove the process here.
15953 * nto-low.c (nto_mourn): New.
15954 (nto_target_ops): Install it.
15955 * spu-low.c (spu_mourn): New.
15956 (spu_target_ops): Install it.
15957 * win32-low.c (win32_mourn): New.
15958 (win32_target_ops): Install it.
15959
15960 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15961
15962 * server.h (buffer_xml_printf): Remove redundant `;'.
15963
15964 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15965
15966 * regcache.c (set_register_cache): Invalidate regcaches before
15967 changing the register cache layout.
15968 (regcache_invalidate_one): Allow a NULL regcache.
15969 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15970 regcaches before changing the register cache layout or the target
15971 regsets.
15972
15973 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15974
15975 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15976 variable warning on Linux/x86-64.
15977
15978 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15979
15980 GDBserver disconnected tracing support.
15981
15982 * linux-low.c (linux_remove_process): Delete.
15983 (add_lwp): Don't set last_resume_kind here.
15984 (linux_kill): Use `mourn'.
15985 (linux_detach): Use `thread_db_detach', and `mourn'.
15986 (linux_mourn): New.
15987 (linux_attach_lwp_1): Adjust comment.
15988 (linux_attach): last_resume_kind moved the thread_info; adjust.
15989 (status_pending_p_callback): Adjust.
15990 (linux_wait_for_event_1): Adjust.
15991 (count_events_callback, select_singlestep_lwp_callback)
15992 (select_event_lwp_callback, cancel_breakpoints_callback)
15993 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15994 (proceed_one_lwp): Adjust.
15995 (linux_async): Add debug output.
15996 (linux_thread_stopped): New.
15997 (linux_pause_all): New.
15998 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15999 linux_pause_all.
16000 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16001 (thread_db_free): Delete declaration.
16002 (thread_db_detach, thread_db_mourn): Declare.
16003 * thread-db.c (thread_db_init): Use thread_db_mourn.
16004 (thread_db_free): Delete, split in two.
16005 (disable_thread_event_reporting): New.
16006 (thread_db_detach): New.
16007 (thread_db_mourn): New.
16008
16009 * server.h (struct thread_info) <last_resume_kind>: New field.
16010 <attached>: Add comment.
16011 <gdb_detached>: New field.
16012 (handler_func): Change return type to int.
16013 (handle_serial_event, handle_target_event): Ditto.
16014 (gdb_connected): Declare.
16015 (tracing): Delete.
16016 (disconnected_tracing): Declare.
16017 (stop_tracing): Declare.
16018
16019 * server.c (handle_query) <qSupported>: Report support for
16020 disconnected tracing.
16021 (queue_stop_reply_callback): Account for running threads.
16022 (gdb_wants_thread_stopped): New.
16023 (gdb_wants_all_threads_stopped): New.
16024 (gdb_reattached_process): New.
16025 (handle_status): Clear the `gdb_detached' flag of all processes.
16026 In all-stop, stop all threads.
16027 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16028 (process_serial_event): If the remote connection breaks, or if an
16029 exit was forced with "monitor exit", force an event loop exit.
16030 Handle disconnected tracing on detach.
16031 (handle_serial_event): Adjust.
16032 (handle_target_event): If GDB isn't connected, forward events back
16033 to the inferior, unless the last process exited, in which case,
16034 exit gdbserver. Adjust interface.
16035
16036 * remote-utils.c (remote_open): Don't block in accept. Instead
16037 register an event loop source on the listen socket file
16038 descriptor. Refactor bits into ...
16039 (listen_desc): ... this new global.
16040 (gdb_connected): ... this new function.
16041 (enable_async_notification): ... this new function.
16042 (handle_accept_event): ... this new function.
16043 (remote_close): Clear remote_desc.
16044
16045 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16046
16047 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16048 New fields.
16049 (mourn_inferior): Define.
16050 (target_process_qsupported): Avoid the dangling else problem.
16051 (thread_stopped): Define.
16052 (pause_all): Define.
16053 (target_waitstatus_to_string): Declare.
16054 * target.c (target_waitstatus_to_string): New.
16055
16056 * tracepoint.c (tracing): Make extern.
16057 (disconnected_tracing): New.
16058 (stop_tracing): Make extern. Handle tracing stops due to GDB
16059 disconnecting.
16060 (cmd_qtdisconnected): New.
16061 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16062 (handle_tracepoint_general_set): Handle QTDisconnected.
16063
16064 * event-loop.c (event_handler_func): Change return type to int.
16065 (process_event): Bail out if the event handler wants the event
16066 loop to stop.
16067 (handle_file_event): Ditto.
16068 (start_event_loop): Bail out if the event handler wants the event
16069 loop to stop.
16070
16071 * nto-low.c (nto_target_ops): Adjust.
16072 * spu-low.c (spu_wait): Don't remove the process here.
16073 (spu_target_ops): Adjust.
16074 * win32-low.c (win32_wait): Don't remove the process here.
16075 (win32_target_ops): Adjust.
16076
16077 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16078
16079 * regcache.c (realloc_register_cache): Invalidate inferior's
16080 regcache before recreating it.
16081
16082 2010-04-09 Pedro Alves <pedro@codesourcery.com>
16083
16084 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16085
16086 2010-04-09 Stan Shebs <stan@codesourcery.com>
16087 Pedro Alves <pedro@codesourcery.com>
16088
16089 * server.h (LONGEST): New.
16090 (struct thread_info) <while_stepping>: New field.
16091 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16092 Declare.
16093 (initialize_tracepoint, handle_tracepoint_general_set)
16094 (handle_tracepoint_query, tracepoint_finished_step)
16095 (tracepoint_was_hit, release_while_stepping_state_list):
16096 (current_traceframe): Declare.
16097 * server.c (handle_general_set): Handle tracepoint packets.
16098 (read_memory): New.
16099 (write_memory): New.
16100 (handle_search_memory_1): Use read_memory.
16101 (handle_query): Report support for conditional tracepoints, trace
16102 state variables, and tracepoint sources. Handle tracepoint
16103 queries.
16104 (main): Initialize the tracepoints module.
16105 (process_serial_event): Handle traceframe reads/writes.
16106
16107 * linux-low.c (handle_tracepoints): New.
16108 (linux_wait_1): Call it.
16109 (linux_resume_one_lwp): Handle while-stepping.
16110 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16111 (linux_target_ops): Install them.
16112 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16113 New field.
16114 * linux-x86-low.c (x86_supports_tracepoints): New.
16115 (the_low_target). Install it.
16116
16117 * mem-break.h (delete_breakpoint): Declare.
16118 * mem-break.c (delete_breakpoint): Make external.
16119
16120 * target.h (struct target_ops): Add `supports_tracepoints',
16121 `read_pc', and `write_pc' fields.
16122 (target_supports_tracepoints): Define.
16123 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16124 (phex_nz): New.
16125
16126 * regcache.h (struct regcache) <registers_owned>: New field.
16127 (init_register_cache, regcache_cpy): Declare.
16128 (regcache_read_pc, regcache_write_pc): Declare.
16129 (register_cache_size): Declare.
16130 (supply_regblock): Declare.
16131 * regcache.c (init_register_cache): New.
16132 (new_register_cache): Use it.
16133 (regcache_cpy): New.
16134 (register_cache_size): New.
16135 (supply_regblock): New.
16136 (regcache_read_pc, regcache_write_pc): New.
16137
16138 * tracepoint.c: New.
16139
16140 * Makefile.in (OBS): Add tracepoint.o.
16141 (tracepoint.o): New rule.
16142
16143 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16144
16145 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16146 (i386-mmx.o): New.
16147 (i386-mmx.c): Likewise.
16148 (i386-mmx-linux.o): Likewise.
16149 (i386-mmx-linux.c): Likewise.
16150
16151 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16152 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16153 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16154 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16155
16156 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16157 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16158 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16159
16160 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16161
16162 * Makefile.in (clean): Updated.
16163 (i386-avx.o): New.
16164 (i386-avx.c): Likewise.
16165 (i386-avx-linux.o): Likewise.
16166 (i386-avx-linux.c): Likewise.
16167 (amd64-avx.o): Likewise.
16168 (amd64-avx.c): Likewise.
16169 (amd64-avx-linux.o): Likewise.
16170 (amd64-avx-linux.c): Likewise.
16171
16172 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16173 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16174 (srv_amd64_regobj): Add amd64-avx.o.
16175 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16176 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16177 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16178 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16179 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16180 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16181 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16182
16183 * i387-fp.c: Include "i386-xstate.h".
16184 (i387_xsave): New.
16185 (i387_cache_to_xsave): Likewise.
16186 (i387_xsave_to_cache): Likewise.
16187 (x86_xcr0): Likewise.
16188
16189 * i387-fp.h (i387_cache_to_xsave): Likewise.
16190 (i387_xsave_to_cache): Likewise.
16191 (x86_xcr0): Likewise.
16192
16193 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16194 * linux-crisv32-low.c (target_regsets): Likewise.
16195 * linux-m68k-low.c (target_regsets): Likewise.
16196 * linux-mips-low.c (target_regsets): Likewise.
16197 * linux-ppc-low.c (target_regsets): Likewise.
16198 * linux-s390-low.c (target_regsets): Likewise.
16199 * linux-sh-low.c (target_regsets): Likewise.
16200 * linux-sparc-low.c (target_regsets): Likewise.
16201 * linux-xtensa-low.c (target_regsets): Likewise.
16202
16203 * linux-low.c: Include <sys/uio.h>.
16204 (regsets_fetch_inferior_registers): Support nt_type.
16205 (regsets_store_inferior_registers): Likewise.
16206 (linux_process_qsupported): New.
16207 (linux_target_ops): Add linux_process_qsupported.
16208
16209 * linux-low.h (regset_info): Add nt_type.
16210 (linux_target_ops): Add process_qsupported.
16211
16212 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16213 and <sys/uio.h>.
16214 (init_registers_i386_avx_linux): New.
16215 (init_registers_amd64_avx_linux): Likewise.
16216 (xmltarget_i386_linux_no_xml): Likewise.
16217 (xmltarget_amd64_linux_no_xml): Likewise.
16218 (PTRACE_GETREGSET): Likewise.
16219 (PTRACE_SETREGSET): Likewise.
16220 (x86_fill_xstateregset): Likewise.
16221 (x86_store_xstateregset): Likewise.
16222 (use_xml): Likewise.
16223 (x86_linux_update_xmltarget): Likewise.
16224 (x86_linux_process_qsupported): Likewise.
16225 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16226 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16227 init_registers_i386_linux here. Call
16228 x86_linux_update_xmltarget.
16229 (the_low_target): Add x86_linux_process_qsupported.
16230
16231 * server.c (handle_query): Call target_process_qsupported.
16232
16233 * target.h (target_ops): Add process_qsupported.
16234 (target_process_qsupported): New.
16235
16236 2010-04-03 Pedro Alves <pedro@codesourcery.com>
16237
16238 * inferiors.c (add_thread): Set last_status kind to
16239 TARGET_WAITKIND_IGNORE.
16240 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16241 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16242 (linux_wait_1): Move `thread' local definition to block that uses
16243 it. Don't NULL initialize `event_child'.
16244 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16245 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16246 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16247
16248 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16249
16250 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16251 an extended waitstatus, or by a watchpoint.
16252 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16253 thread was stepping or has been stopped by a watchpoint.
16254
16255 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16256
16257 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16258 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16259 of another, then delete the previous, and validate all
16260 breakpoints.
16261 (validate_inserted_breakpoint): New.
16262 (delete_disabled_breakpoints): New.
16263 (validate_breakpoints): New.
16264 (check_mem_read): Validate breakpoints before trusting their
16265 shadow. Delete disabled breakpoints.
16266 (check_mem_write): Validate breakpoints before trusting they
16267 should be inserted. Delete disabled breakpoints.
16268 * mem-break.h (validate_breakpoints):
16269 * server.c (handle_query): Validate breakpoints when we see a
16270 qSymbol query.
16271
16272 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16273
16274 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16275 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16276 if we could tell there's a GDB breakpoint at stop_pc.
16277 (need_step_over_p): Don't do a step over if we find a GDB
16278 breakpoint at the resume PC.
16279
16280 * mem-break.c (struct raw_breakpoint): New.
16281 (enum bkpt_type): New type `gdb_breakpoint'.
16282 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16283 fields. New field `raw'.
16284 (find_raw_breakpoint_at): New.
16285 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16286 breakpoint instead.
16287 (set_breakpoint_at): Adjust.
16288 (delete_raw_breakpoint): New.
16289 (release_breakpoint): New.
16290 (delete_breakpoint): Rename to...
16291 (delete_breakpoint_1): ... this. Add proc parameter. Use
16292 release_breakpoint. Return ENOENT.
16293 (delete_breakpoint): Reimplement.
16294 (find_breakpoint_at): Delete.
16295 (find_gdb_breakpoint_at): New.
16296 (delete_breakpoint_at): Delete.
16297 (set_gdb_breakpoint_at): New.
16298 (delete_gdb_breakpoint_at): New.
16299 (gdb_breakpoint_here): New.
16300 (set_reinsert_breakpoint): Use release_breakpoint.
16301 (uninsert_breakpoint): Rename to ...
16302 (uninsert_raw_breakpoint): ... this.
16303 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
16304 (reinsert_raw_breakpoint): Change parameter type to
16305 raw_breakpoint.
16306 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16307 instead.
16308 (check_breakpoints): Adjust. Use release_breakpoint.
16309 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
16310 (breakpoint_inserted_here): Ditto.
16311 (check_mem_read): Adjust to iterate over raw breakpoints instead.
16312 Don't trust the breakpoint's shadow if it is not inserted.
16313 (check_mem_write): Adjust to iterate over raw breakpoints instead.
16314 (delete_all_breakpoints): Adjust.
16315 (free_all_breakpoints): Mark all breakpoints as uninserted, and
16316 use delete_breakpoint_1.
16317
16318 * mem-break.h (breakpoints_supported): Delete declaration.
16319 (set_gdb_breakpoint_at): Declare.
16320 (gdb_breakpoint_here): Declare.
16321 (delete_breakpoint_at): Delete.
16322 (delete_gdb_breakpoint_at): Declare.
16323
16324 * server.h (struct raw_breakpoint): Forward declare.
16325 (struct process_info): New field `raw_breakpoints'.
16326
16327 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16328 breakpoints.
16329
16330 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16331
16332 * linux-low.c (status_pending_p_callback): Fix comment.
16333 (linux_wait_for_event_1): Move most of the internal breakpoint
16334 handling from here...
16335 (linux_wait_1): ... to here.
16336 (count_events_callback): New.
16337 (select_singlestep_lwp_callback): New.
16338 (select_event_lwp_callback): New.
16339 (cancel_breakpoints_callback): New.
16340 (select_event_lwp): New.
16341 (linux_wait_1): Simplify internal breakpoint handling. Give equal
16342 priority to all LWPs that have had events that should be reported
16343 to the client. Cancel breakpoints when about to reporting the
16344 event to the client, not while stopping lwps. No longer cancel
16345 finished single-steps here.
16346 (cancel_finished_single_step): Delete.
16347 (cancel_finished_single_steps): Delete.
16348
16349 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16350
16351 * mem-break.c (enum bkpt_type): New.
16352 (struct breakpoint): New field `type'.
16353 (set_breakpoint_at): Change return type to struct breakpoint
16354 pointer. Set type to `other_breakpoint' by default.
16355 (delete_breakpoint): Rewrite, supporting more than one breakpoint
16356 in the breakpoint list.
16357 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
16358 (reinsert_breakpoint): Rename to ...
16359 (reinsert_raw_breakpoint): ... this.
16360 (reinsert_breakpoints_at): Adjust.
16361 * mem-break.h (struct breakpoint): Declare.
16362 (set_breakpoint_at): Change return type to struct breakpoint
16363 pointer.
16364
16365 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16366
16367 * server.c (handle_query): Assign, not compare.
16368
16369 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16370
16371 Teach linux gdbserver to step-over-breakpoints.
16372
16373 * linux-low.c (can_hardware_single_step): New.
16374 (supports_breakpoints): New.
16375 (handle_extended_wait): If stopping threads, read the stop pc of
16376 the new cloned LWP.
16377 (get_pc): New.
16378 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
16379 low target doesn't support retrieving the PC.
16380 (add_lwp): Set last_resume_kind to resume_continue.
16381 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
16382 (linux_attach): Don't clear stop_expected. Set the lwp's
16383 last_resume_kind to resume_stop.
16384 (linux_detach_one_lwp): Don't check for removed breakpoints.
16385 (check_removed_breakpoint): Delete.
16386 (status_pending_p): Rename to ...
16387 (status_pending_p_callback): ... this. Don't check for removed
16388 breakpoints. Don't consider threads that are stopped from GDB's
16389 perspective.
16390 (linux_wait_for_lwp): Always read the stop_pc here.
16391 (cancel_breakpoint): New.
16392 (step_over_bkpt): New global.
16393 (linux_wait_for_event_1): Implement stepping over breakpoints.
16394 (gdb_wants_lwp_stopped): New.
16395 (gdb_wants_all_stopped): New.
16396 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
16397 single-step traps here. Store the thread's last reported target
16398 wait status.
16399 (send_sigstop): Don't clear stop_expected. Always set it,
16400 instead.
16401 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
16402 (cancel_finished_single_step): New.
16403 (cancel_finished_single_steps): New.
16404 (wait_for_sigstop): Don't cancel finished single-step traps here.
16405 (linux_resume_one_lwp): Don't check for removed breakpoints.
16406 Don't set `step' on non-hardware step archs.
16407 (linux_set_resume_request): Ignore resume_stop requests if already
16408 stopping or stopped. Set the lwp's last_resume_kind.
16409 (resume_status_pending_p): Don't check for removed breakpoints.
16410 (need_step_over_p): New.
16411 (start_step_over): New.
16412 (finish_step_over): New.
16413 (linux_resume_one_thread): Always queue a sigstop for resume_stop
16414 requests. Clear the thread's last reported target waitstatus.
16415 Don't use the `suspended' flag. Don't consider pending breakpoints.
16416 (linux_resume): Start a step-over if necessary.
16417 (proceed_one_lwp): New.
16418 (proceed_all_lwps): New.
16419 (unstop_all_lwps): New.
16420 * linux-low.h (struct lwp_info): Rewrite comment for the
16421 `suspended' flag. Add the `stop_pc' field. Delete the
16422 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
16423 Add `'last_resume_kind' and `need_step_over' fields.
16424 * inferiors.c (struct thread_info): Delete, moved elsewhere.
16425 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
16426 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
16427 (set_raw_breakpoint_at): New.
16428 (set_breakpoint_at): Rewrite to use it.
16429 (reinsert_breakpoint_handler): Delete.
16430 (set_reinsert_breakpoint): New.
16431 (reinsert_breakpoint_by_bp): Delete.
16432 (delete_reinsert_breakpoints): New.
16433 (uninsert_breakpoint): Rewrite.
16434 (uninsert_breakpoints_at): New.
16435 (reinsert_breakpoint): Rewrite.
16436 (reinsert_breakpoints_at): New.
16437 (check_breakpoints): Rewrite.
16438 (breakpoint_here): New.
16439 (breakpoint_inserted_here): New.
16440 (check_mem_read): Adjust.
16441 * mem-break.h (breakpoints_supported, breakpoint_here)
16442 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
16443 (reinsert_breakpoint_by_bp): Delete declaration.
16444 (delete_reinsert_breakpoints): Declare.
16445 (reinsert_breakpoint): Delete declaration.
16446 (reinsert_breakpoints_at): Declare.
16447 (uninsert_breakpoint): Delete declaration.
16448 (uninsert_breakpoints_at): Declare.
16449 (check_breakpoints): Adjust prototype.
16450 * server.h: Adjust include order.
16451 (struct thread_info): Declare here. Add a `last_status' field.
16452
16453 2010-03-23 Michael Snyder <msnyder@vmware.com>
16454
16455 * server.c (crc32): New function.
16456 (handle_query): Add handling for 'qCRC:' request.
16457
16458 2010-03-23 Pedro Alves <pedro@codesourcery.com>
16459
16460 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16461 lwp had been stopped by a watchpoint.
16462
16463 2010-03-16 Pedro Alves <pedro@codesourcery.com>
16464
16465 * server.h (internal_error): Declare.
16466 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16467 * utils.c (internal_error): New function.
16468
16469 2010-03-15 Andreas Schwab <schwab@redhat.com>
16470
16471 * configure.srv: Fix typo setting srv_regobj.
16472
16473 2010-03-15 Pedro Alves <pedro@codesourcery.com>
16474
16475 * linux-low.c (fetch_register): Avoid passing a non string literal
16476 format to `error'.
16477 (usr_store_inferior_registers): Ditto.
16478
16479 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16480
16481 * linux-low.c (linux_write_memory): Bail out early if peeking
16482 memory failed.
16483
16484 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16485
16486 * linux-low.h (struct lwp_info): New fields
16487 `stopped_by_watchpoint' and `stopped_data_address'.
16488 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
16489 here, and cache them in the lwp object.
16490 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
16491 directly.
16492 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16493 field.
16494 (linux_stopped_by_watchpoint): Rewrite.
16495 (linux_stopped_data_address): Rewrite.
16496
16497 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
16498
16499 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16500 switching the current inferior, not before.
16501
16502 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16503
16504 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16505 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16506 i386-linux.c and amd64-linux.c.
16507 (reg-i386.o): Removed.
16508 (reg-i386.c): Likewise.
16509 (reg-i386-linux.o): Likewise.
16510 (reg-i386-linux.c): Likewise.
16511 (reg-x86-64.o): Likewise.
16512 (reg-x86-64.c): Likewise.
16513 (reg-x86-64-linux.o): Likewise.
16514 (reg-x86-64-linux.c): Likewise.
16515 (i386.o): New.
16516 (i386.c): Likewise.
16517 (i386-linux.o): Likewise.
16518 (i386-linux.c): Likewise.
16519 (amd64.o): Likewise.
16520 (amd64.c): Likewise.
16521 (amd64-linux.o): Likewise.
16522 (amd64-linux.c): Likewise.
16523
16524 * configure.srv (srv_i386_regobj): New.
16525 (srv_i386_linux_regobj): Likewise.
16526 (srv_amd64_regobj): Likewise.
16527 (srv_amd64_linux_regobj): Likewise.
16528 (srv_i386_32bit_xmlfiles): Likewise.
16529 (srv_i386_64bit_xmlfiles): Likewise.
16530 (srv_i386_xmlfiles): Likewise.
16531 (srv_amd64_xmlfiles): Likewise.
16532 (srv_i386_linux_xmlfiles): Likewise.
16533 (srv_amd64_linux_xmlfiles): Likewise.
16534 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16535 srv_xmlfiles to $srv_i386_xmlfiles.
16536 (i[34567]86-*-mingw32ce*): Likewise.
16537 (i[34567]86-*-mingw*): Likewise.
16538 (i[34567]86-*-nto*): Likewise.
16539 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16540 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16541 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16542 (x86_64-*-linux*): Likewise.
16543
16544 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16545 (init_registers_amd64_linux): New.
16546 (x86_arch_setup): Replace init_registers_x86_64_linux with
16547 init_registers_amd64_linux.
16548
16549 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16550
16551 * configure.ac: Check for libdl. If it is not available link against
16552 static libthread_db.
16553 * configure: Regenerate.
16554
16555 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16556
16557 PR9605
16558
16559 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16560 handing a read watchpoint.
16561 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16562
16563 2010-02-12 Doug Evans <dje@google.com>
16564
16565 * linux-low.c (linux_supports_tracefork_flag): Document.
16566 (linux_look_up_symbols): Add comment.
16567
16568 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16569
16570 * regcache.c (supply_register): Clear regcache if buf is NULL.
16571
16572 2010-02-02 Nicolas Roche <roche@sourceware.org>
16573 Joel Brobecker <brobecker@adacore.com>
16574
16575 * inferiors.c (find_inferior): Add function documentation.
16576 (unloaded_dll): Handle the case where the unloaded dll has not
16577 been previously registered in the dll list.
16578
16579 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16580
16581 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16582 (thumb2_breakpoint): New.
16583 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16584
16585 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16586
16587 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16588 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16589 breakpoints.
16590
16591 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16592
16593 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16594
16595 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16596
16597 * linux-s390-low.c (s390_collect_ptrace_register)
16598 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16599
16600 2010-01-21 Doug Evans <dje@google.com>
16601
16602 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16603 (PTRACE_ARG4_TYPE): New macro.
16604 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16605 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16606 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16607 (usr_store_inferior_registers): Ditto.
16608 (linux_read_memory, linux_write_memory): Ditto.
16609 (linux_test_for_tracefork): Ditto.
16610
16611 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16612 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16613
16614 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16615
16616 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16617 target.
16618
16619 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16620
16621 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16622 prototype to take a regcache. Adjust.
16623
16624 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16625
16626 * regcache.h (struct thread_info): Forward declare.
16627 (struct regcache): New.
16628 (new_register_cache): Adjust prototype.
16629 (get_thread_regcache): Declare.
16630 (free_register_cache): Adjust prototype.
16631 (registers_to_string, registers_from_string): Ditto.
16632 (supply_register, supply_register_by_name, collect_register)
16633 (collect_register_as_string, collect_register_by_name): Ditto.
16634 * regcache.c (struct inferior_regcache_data): Delete.
16635 (get_regcache): Rename to ...
16636 (get_thread_regcache): ... this. Adjust. Switch inferior before
16637 fetching registers.
16638 (regcache_invalidate_one): Adjust.
16639 (regcache_invalidate): Fix prototype.
16640 (new_register_cache): Return the new register cache.
16641 (free_register_cache): Change prototype.
16642 (realloc_register_cache): Adjust.
16643 (registers_to_string): Change prototype to take a regcache. Adjust.
16644 (registers_from_string): Ditto.
16645 (register_data): Ditto.
16646 (supply_register): Ditto.
16647 (supply_register_by_name): Ditto.
16648 (collect_register): Ditto.
16649 (collect_register_as_string): Ditto.
16650 (collect_register_by_name): Ditto.
16651 * server.c (process_serial_event): Adjust.
16652 * linux-low.h (regset_fill_func, regset_store_func): Change
16653 prototype.
16654 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16655 Change prototype.
16656 * linux-low.c (get_stop_pc): Adjust.
16657 (check_removed_breakpoint): Adjust.
16658 (linux_wait_for_event): Adjust.
16659 (linux_resume_one_lwp): Adjust.
16660 (fetch_register): Add regcache parameter. Adjust.
16661 (usr_store_inferior_registers): Ditto.
16662 (regsets_fetch_inferior_registers): Ditto.
16663 (regsets_store_inferior_registers): Ditto.
16664 (linux_fetch_registers, linux_store_registers): Ditto.
16665 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16666 regcache. Adjust.
16667 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16668 Ditto.
16669 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16670 prototype to take a regcache.
16671 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16672 * remote-utils.c (convert_ascii_to_int, outreg)
16673 (prepare_resume_reply): Change prototype to take a regcache.
16674 Adjust.
16675 * target.h (struct target_ops) <fetch_registers, store_registers>:
16676 Change prototype to take a regcache.
16677 (fetch_inferior_registers, store_inferior_registers): Change
16678 prototype to take a regcache. Adjust.
16679 * proc-service.c (ps_lgetregs): Adjust.
16680 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16681 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16682 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16683 take a regcache. Adjust.
16684 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16685 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16686 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16687 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16688 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16689 (cris_cannot_fetch_register):
16690 (cris_breakpoint_at): Change prototype to take a regcache.
16691 Adjust.
16692 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16693 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16694 to take a regcache. Adjust.
16695 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16696 Adjust.
16697 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16698 take a regcache. Adjust.
16699 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16700 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16701 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16702 * linux-mips-low.c (mips_get_pc):
16703 (mips_set_pc): Change prototype to take a regcache. Adjust.
16704 (mips_reinsert_addr): Adjust.
16705 (mips_collect_register): Change prototype to take a regcache.
16706 Adjust.
16707 (mips_supply_register):
16708 (mips_collect_register_32bit, mips_supply_register_32bit)
16709 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16710 (mips_store_fpregset): Ditto.
16711 * linux-ppc-low.c (ppc_supply_ptrace_register)
16712 (ppc_supply_ptrace_register): Ditto.
16713 (parse_spufs_run): Adjust.
16714 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16715 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16716 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16717 take a regcache. Adjust.
16718 * linux-s390-low.c (s390_collect_ptrace_register)
16719 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16720 (s390_set_pc): Change prototype to take a regcache. Adjust.
16721 (s390_arch_setup): Adjust.
16722 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16723 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16724 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16725 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16726 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16727 regcache. Adjust.
16728 (sparc_breakpoint_at): Adjust.
16729 * linux-xtensa-low.c (xtensa_fill_gregset):
16730 (xtensa_store_gregset):
16731 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16732 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16733 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16734 prototype to take a regcache. Adjust.
16735 * win32-arm-low.c (arm_fetch_inferior_register)
16736 (arm_store_inferior_register): Change prototype to take a
16737 regcache. Adjust.
16738 * win32-i386-low.c (i386_fetch_inferior_register)
16739 (i386_store_inferior_register): Change prototype to take a
16740 regcache. Adjust.
16741 * win32-low.c (child_fetch_inferior_registers)
16742 (child_store_inferior_registers): Change prototype to take a
16743 regcache. Adjust.
16744 (win32_wait): Adjust.
16745 (win32_fetch_inferior_registers): Change prototype to take a
16746 regcache. Adjust.
16747 (win32_store_inferior_registers): Adjust.
16748 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16749 store_inferior_register>: Change prototype to take a regcache.
16750
16751 2010-01-20 Doug Evans <dje@google.com>
16752
16753 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16754 #ifdef.
16755 (linux_wait_for_event1, linux_init_signals): Ditto.
16756 (W_STOPCODE): Provide definition if missing.
16757
16758 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16759
16760 * linux-low.c (linux_core_of_thread): New.
16761 (compare_ints, show_process, list_threads): New.
16762 (linux_qxfer_osdata): Report threads and cores.
16763 (linux_target_op): Register linux_core_of_thread.
16764 * remote-utils.c (prepare_resume_reply): Report the core.
16765 (buffer_xml_printf): Support %d specifier.
16766 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16767 New.
16768 (handle_query): Handle qXfer:threads. Announce availability
16769 thereof.
16770 * target.h (struct target_ops): New field core_of_thread.
16771
16772 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16773
16774 * Makefile.in (clean): Remove new generated files.
16775 (reg-s390.o, reg-s390.c): Remove rules.
16776 (reg-s390x.o, reg-s390x.c): Likewise.
16777 (s390-linux32.o, s390-linux32.c): Add rules.
16778 (s390-linux64.o, s390-linux64.c): Likewise.
16779 (s390x-linux64.o, s390x-linux64.c): Likewise.
16780 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16781 * linux-s390-low.c: Include <elf.h>.
16782 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16783 (init_registers_s390): Remove prototype.
16784 (init_registers_s390x): Likewise.
16785 (init_registers_s390_linux32): Add prototype.
16786 (init_registers_s390_linux64): Likewise.
16787 (init_registers_s390x_linux64): Likewise.
16788 (s390_num_regs_3264): New define.
16789 (s390_regmap_3264): New global variable.
16790 (s390_cannot_fetch_register): Remove obsolete check.
16791 (s390_cannot_store_register): Likewise.
16792 (s390_collect_ptrace_register): Handle upper/lower register halves.
16793 (s390_supply_ptrace_register): Likewise.
16794 (s390_fill_gregset): Update to register number changes.
16795 (s390_get_hwcap): New routine.
16796 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16797 Install appropriate regmap and register set.
16798
16799 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16800
16801 * server.c (gdbserver_version): Update copyright year to 2010.
16802 * gdbreplay.c (gdbreplay_version): Likewise.
16803
16804 2009-12-28 Doug Evans <dje@google.com>
16805
16806 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16807 elf/external.h. Include <elf.h> instead but only if necessary.
16808
16809 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16810
16811 * linux-low.c (linux_remove_process): Remove `detaching'
16812 parameter. Don't release/detach from thread_db here.
16813 (linux_kill): Release/detach from thread_db here, ...
16814 (linux_detach): ... and here, before actually detaching.
16815 (linux_wait_1): ... and here, when a process exits.
16816 * thread-db.c (any_thread_of): New.
16817 (thread_db_free): Switch the current inferior to a thread of the
16818 passed in process.
16819
16820 2009-12-21 Doug Evans <dje@google.com>
16821
16822 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16823
16824 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16825 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16826 warning ifndef __NR_tkill. Move setting of errno there too.
16827 Delete unnecessary resetting of errno after syscall.
16828 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16829
16830 * configure.ac: Check for dladdr.
16831 * config.in: Regenerate.
16832 * configure: Regenerate.
16833 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16834 (try_thread_db_load): Update.
16835
16836 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16837
16838 2009-12-18 Doug Evans <dje@google.com>
16839
16840 * event-loop.c: Include unistd.h if it exists.
16841
16842 * linux-low.c (my_waitpid): Move definition away from being in
16843 between linux_tracefork_child/linux_test_for_tracefork.
16844
16845 * gdb_proc_service.h (psaddr_t): Fix type.
16846 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16847 signature to match glibc.
16848
16849 2009-12-16 Doug Evans <dje@google.com>
16850
16851 * linux-low.c (linux_read_memory): Fix argument to read.
16852
16853 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16854
16855 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16856 events, don't leave current_inferior pointing at null.
16857
16858 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16859
16860 * win32-low.c (LOG): Delete.
16861 (OUTMSG): Output to stderr.
16862 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16863 on compile time LOG macro.
16864 (win32_wait): Fix debug output.
16865
16866 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16867
16868 * win32-low.c (win32_add_one_solib): If the dll name is
16869 "ntdll.dll", prepend the system directory to the dll path.
16870
16871 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16872
16873 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16874
16875 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16876 Vladimir Prus <vladimir@codesourcery.com>
16877
16878 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16879 * configure.ac: Check for __mcoldfire__ and set
16880 gdb_cv_m68k_is_coldfire.
16881 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16882 reg-cf.o and reg-m68k.o.
16883 * configure: Regenerated.
16884
16885 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16886
16887 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16888 Pass it to thread_db_free.
16889 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16890 proper `detaching' argument to linux_remove_process.
16891 * linux-low.h (thread_db_free): Add `detaching' parameter.
16892 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16893 to thread_db_free.
16894 (thread_db_free): Add `detaching' parameter. Only
16895 call td_ta_clear_event if detaching from process.
16896
16897 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16898
16899 * thread-db.c (thread_db_free): Fix typo.
16900
16901 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16902
16903 PR gdb/10838
16904 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16905
16906 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16907
16908 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16909 with an i686 compiler.
16910 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16911 needed.
16912 * configure: Rebuilt.
16913
16914 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16915
16916 PR gdb/10783
16917
16918 * server.c (handle_search_memory_1): Correct read_addr initialization
16919 in loop for searching subsequent chunks.
16920
16921 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16922
16923 * configure.ac: New --with-libthread-db option.
16924 * thread-db.c: Allow direct dependence on libthread_db.
16925 (thread_db_free): Adjust.
16926 * config.in: Regenerate.
16927 * configure: Likewise.
16928
16929 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16930
16931 PR gdb/10757
16932 * thread-db.c (attach_thread): New function.
16933 (maybe_attach_thread): Return success/failure.
16934 (find_new_threads_callback): Adjust.
16935 (thread_db_find_new_threads): Loop until no new threads.
16936
16937 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16938
16939 * proc-service.c (ps_lgetregs): Formatting.
16940
16941 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16942
16943 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16944 * configure.ac: Adjust.
16945 * linux-low.h (struct process_info_private): Move members to struct
16946 thread_db.
16947 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16948 * linux-low.c (linux_remove_process): Adjust.
16949 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16950 * server.c (handle_query): Move code ...
16951 (handle_monitor_command): ... here. New function.
16952 * target.h (struct target_ops): New member.
16953 * thread-db.c (struct thread_db): New.
16954 (libthread_db_search_path): New variable.
16955 (thread_db_create_event, thread_db_enable_reporting)
16956 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16957 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16958 (try_thread_db_load_1, dladdr_to_soname): New functions.
16959 (try_thread_db_load, thread_db_load_search): New functions.
16960 (thread_db_init): Search for libthread_db.
16961 (thread_db_free): New function.
16962 (thread_db_handle_monitor_command): Likewise.
16963 * config.in: Regenerate.
16964 * configure: Regenerate.
16965
16966 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16967
16968 * spu-low.c (spu_kill): Wait for inferior to terminate.
16969 Call clear_inferiors.
16970 (spu_detach): Call clear_inferiors.
16971
16972 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16973
16974 * aclocal.m4: Regenerate.
16975 * config.in: Likewise.
16976 * configure: Likewise.
16977
16978 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16979
16980 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16981 (parse_spufs_run): New function.
16982 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16983 (ppc_breakpoint_at): Handle SPU breakpoints.
16984
16985 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16986
16987 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16988 (SPUFS_MAGIC): Define.
16989 (spu_enumerate_spu_ids): New function.
16990 (linux_qxfer_spu): New function.
16991 (linux_target_ops): Install linux_qxfer_spu.
16992
16993 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16994
16995 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16996 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16997 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16998 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16999 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17000 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17001 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17002 (init_registers_powerpc_cell32l): Add prototype.
17003 (init_registers_powerpc_cell64l): Likewise.
17004 (ppc_arch_setup): Detect Cell/B.E. architecture.
17005
17006 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17007
17008 * Makefile.in (datarootdir): New variable.
17009
17010 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17011
17012 * linux-low.c (linux_write_memory): Update debugging output.
17013 * Makefile.in (clean): Add new descriptions.
17014 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17015 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17016 * configure.srv: Add new files for arm*-*-linux*.
17017 * linux-arm-low.c: Add new declarations.
17018 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17019 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17020 (HWCAP_VFPv3D16): New.
17021 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17022 instead of __IWMMXT__.
17023 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17024 (arm_arch_setup): New.
17025 (target_regsets): Remove #ifdef. Add VFP regset.
17026 (the_low_target): Use arm_arch_setup.
17027
17028 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17029
17030 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17031 the main thread again.
17032
17033 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17034
17035 Adding Neutrino gdbserver.
17036 * configure: Regenerated.
17037 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17038 * configure.srv (i[34567]86-*-nto*): New target.
17039 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17040 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17041 (nto_comctrl) [__QNX__]: New function.
17042 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17043
17044 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
17045
17046 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17047 srv_tgtobj.
17048
17049 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17050 Pedro Alves <pedro@codesourcery.com>
17051
17052 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17053 don't support CONTEXT_EXTENDED_REGISTERS.
17054 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17055 (the_low_target): Install them.
17056 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17057 failing with ERROR_PIPE_NOT_CONNECTED.
17058
17059 2009-06-30 Doug Evans <dje@google.com>
17060 Pierre Muller <muller@ics.u-strasbg.fr>
17061
17062 Add h/w watchpoint support to x86-linux, win32-i386.
17063 * Makefile.in (SFILES): Add i386-low.c
17064 (i386_low_h): Define.
17065 (i386-low.o): Add dependencies.
17066 (linux-x86-low.o): Add i386-low.h dependency.
17067 (win32-i386-low.o): Ditto.
17068 * i386-low.c: New file.
17069 * i386-low.h: New file.
17070 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17071 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17072 * linux-low.c (linux_add_process): Initialize arch_private.
17073 (linux_remove_process): Free arch_private.
17074 (add_lwp): Initialize arch_private.
17075 (delete_lwp): Free arch_private.
17076 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17077 provided.
17078 * linux-low.h (process_info_private): New member arch_private.
17079 (lwp_info): New member arch_private.
17080 (linux_target_ops): New members new_process, new_thread,
17081 prepare_to_resume.
17082 (ptid_of): New macro.
17083 * linux-x86-low.c: Include stddef.h, i386-low.h.
17084 (arch_process_info): New struct.
17085 (arch_lwp_info): New struct.
17086 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17087 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17088 (i386_dr_low_get_status): New function.
17089 (x86_insert_point, x86_remove_point): New functions.
17090 (x86_stopped_by_watchpoint): New function.
17091 (x86_stopped_data_address): New function.
17092 (x86_linux_new_process, x86_linux_new_thread): New functions.
17093 (x86_linux_prepare_to_resume): New function.
17094 (the_low_target): Add entries for insert_point, remove_point,
17095 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17096 prepare_to_resume.
17097 * server.c (debug_hw_points): New global.
17098 (monitor_show_help): Document set debug-hw-points.
17099 (handle_query): Process "set debug-hw-points".
17100 * server.h (debug_hw_points): Declare.
17101 (paddress): Declare.
17102 * utils.c (NUMCELLS, CELLSIZE): New macros.
17103 (get_sell, xsnprintf, paddress): New functions.
17104 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17105 remove_point, stopped_by_watchpoint, stopped_data_address.
17106 * win32-i386-low.c: Include i386-low.h.
17107 (debug_reg_state): Replaces dr.
17108 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17109 (i386_dr_low_get_status): New function.
17110 (i386_insert_point, i386_remove_point): New functions.
17111 (i386_stopped_by_watchpoint): New function.
17112 (i386_stopped_data_address): New function.
17113 (i386_initial_stuff): Update.
17114 (get_thread_context,set_thread_context,i386_thread_added): Update.
17115 (the_low_target): Add entries for insert_point,
17116 remove_point, stopped_by_watchpoint, stopped_data_address.
17117 * win32-low.c (win32_insert_watchpoint): New function.
17118 (win32_remove_watchpoint): New function.
17119 (win32_stopped_by_watchpoint): New function.
17120 (win32_stopped_data_address): New function.
17121 (win32_target_ops): Add entries for insert_watchpoint,
17122 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17123 * win32-low.h (win32_target_ops): New members insert_point,
17124 remove_point, stopped_by_watchpoint, stopped_data_address.
17125
17126 2009-06-25 Pedro Alves <pedro@codesourcery.com>
17127
17128 * server.c (process_serial_event): Re-return unsupported, not
17129 error, if the type isn't recognized. Re-allow supporting only
17130 insert or remove packets. Also call require_running for
17131 breakpoints. Add missing break statement to default case. Tidy.
17132 * target.h (struct target_ops): Rename insert_watchpoint to
17133 insert_point, and remove_watchpoint to remove_point.
17134
17135 * linux-low.h (struct linux_target_ops): Likewise.
17136 * linux-low.c (linux_insert_watchpoint): Rename to ...
17137 (linux_insert_point): ... this. Adjust.
17138 (linux_remove_watchpoint): Rename to ...
17139 (linux_remove_point): ... this. Adjust.
17140 (linux_target_ops): Adjust.
17141 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17142 (cris_insert_point): ... this.
17143 (cris_remove_watchpoint): Rename to ...
17144 (cris_remove_point): ... this.
17145 (the_low_target): Adjust.
17146
17147 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17148
17149 * server.c (handle_v_kill): Pass signal_pid to
17150 kill_inferior if multi_process is zero.
17151
17152 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17153
17154 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17155 * target.h (target_ops): Comment for *_watchpoint to make it clear
17156 the functions can get types '0' and '1'.
17157
17158 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17159
17160 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17161 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17162 * regcache.c (get_regcache): Likewise.
17163 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17164 * win32-low.c (child_fetch_inferior_registers): Remove check for
17165 regno 0.
17166
17167 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17168 Pedro Alves <pedro@codesourcery.com>
17169
17170 * target.h (struct target_ops) <supports_multi_process>: New
17171 callback.
17172 (target_supports_multi_process): New.
17173 * server.c (handle_query): Even if GDB reports support, only
17174 enable multi-process if the target also supports it. Report
17175 multi-process support only if the target backend supports it.
17176 * linux-low.c (linux_supports_multi_process): New function.
17177 (linux_target_ops): Install it as target_supports_multi_process
17178 callback.
17179
17180 2009-05-24 Doug Evans <dje@google.com>
17181
17182 Global renaming of find_thread_pid to find_thread_ptid.
17183 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17184 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17185 All callers updated.
17186
17187 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17188 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17189 directly.
17190
17191 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17192 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17193 (linux_resume_one_lwp): Ditto.
17194
17195 2009-05-23 Doug Evans <dje@google.com>
17196
17197 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17198 from struct inferior_list_entry * to struct lwp_info *.
17199 All callers updated.
17200
17201 2009-05-13 Doug Evans <dje@google.com>
17202
17203 * linux-x86-low.c: Don't include assert.h.
17204 (x86_siginfo_fixup): Use fatal, not assert.
17205 (x86_arch_setup): Fix comment.
17206
17207 2009-05-12 Doug Evans <dje@google.com>
17208
17209 Biarch support for i386/amd64 gdbserver.
17210 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17211 Add linux-x86-low.c.
17212 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17213 (linux-x86-low.o): Add.
17214 * linux-x86-64-low.c: Delete.
17215 * linux-i386-low.c: Delete.
17216 * linux-x86-low.c: New file.
17217 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17218 linux-x86-low.o.
17219 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17220 linux-x86-low.o.
17221 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17222 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17223 (linux_child_pid_to_exec_file): New function.
17224 (elf_64_header_p, elf_64_file_p): New functions.
17225 (siginfo_fixup): New function.
17226 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17227 give target a chance to convert layout.
17228 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17229 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17230
17231 2009-05-07 Doug Evans <dje@google.com>
17232
17233 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17234 (regsets_store_inferior_registers): Ditto.
17235
17236 2009-05-06 Pedro Alves <pedro@codesourcery.com>
17237
17238 PR server/10048
17239
17240 * linux-low.c (must_set_ptrace_flags): Delete.
17241 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17242 of the global.
17243 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17244 `lwp->must_set_ptrace_flags' instead.
17245 (linux_wait_for_event_1): Set ptrace options here.
17246 (linux_wait_1): ... not here.
17247
17248 2009-04-30 Doug Evans <dje@google.com>
17249
17250 * inferiors.c (started_inferior_callback): New function.
17251 (attached_inferior_callback): New function.
17252 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17253 * server.c (print_started_pid, print_attached_pid): New functions.
17254 (detach_or_kill_for_exit): New function.
17255 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17256 * server.h (have_started_inferiors_p): Declare.
17257 (have_attached_inferiors_p): Declare.
17258
17259 * inferiors.c (remove_process): Fix memory leak, free process.
17260 * linux-low.c (linux_remove_process): New function.
17261 (linux_kill): Call it instead of remove_process.
17262 (linux_detach, linux_wait_1): Ditto.
17263
17264 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17265
17266 * configure.srv: Add x86 Windows CE target.
17267
17268 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17269
17270 * inferiors.c (get_thread_process): Make global.
17271 * server.h (get_thread_process): Add prototype.
17272 * thread-db.c (find_one_thread): Use get_thread_process
17273 instead of current_process.
17274 (thread_db_get_tls_address): Do not crash if called when
17275 thread layer is not yet initialized.
17276
17277 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17278
17279 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17280 * spu-low.c (current_tid): Rename to ...
17281 (current_ptid): ... this.
17282 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17283 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17284 ptid_get_lwp (current_ptid) instead of current_tid.
17285 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17286 instead of current_tid. Use find_process_pid to verify pid
17287 argument is valid. Pass proper argument to remove_process.
17288 (spu_thread_alive): Compare current_ptid instead of current_tid.
17289 (spu_resume): Likewise.
17290
17291 2009-04-02 Pedro Alves <pedro@codesourcery.com>
17292
17293 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17294 variable.
17295
17296 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17297
17298 Implement the multiprocess extensions, and add linux multiprocess
17299 support.
17300
17301 * server.h (ULONGEST): Declare.
17302 (struct ptid, ptid_t): New.
17303 (minus_one_ptid, null_ptid): Declare.
17304 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17305 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
17306 (struct inferior_list_entry): Change `id' type from unsigned from
17307 to ptid_t.
17308 (struct sym_cache, struct breakpoint, struct
17309 process_info_private): Forward declare.
17310 (struct process_info): Declare.
17311 (current_process): Declare.
17312 (all_processes): Declare.
17313 (initialize_inferiors): Declare.
17314 (add_thread): Adjust to use ptid_t.
17315 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
17316 (add_process, remove_process, find_thread_pid): Declare.
17317 (find_inferior_id): Adjust to use ptid_t.
17318 (cont_thread, general_thread, step_thread): Change type to ptid_t.
17319 (multi_process): Declare.
17320 (push_event): Adjust to use ptid_t.
17321 (read_ptid, write_ptid): Declare.
17322 (prepare_resume_reply): Adjust to use ptid_t.
17323 (clear_symbol_cache): Declare.
17324 * inferiors.c (all_processes): New.
17325 (null_ptid, minus_one_ptid): New.
17326 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17327 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
17328 (add_thread): Change unsigned long to ptid. Remove gdb_id
17329 parameter. Adjust.
17330 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
17331 (gdb_id_to_thread): Rename to ...
17332 (find_thread_pid): ... this. Change unsigned long to ptid.
17333 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
17334 (loaded_dll, pull_pid_from_list): Adjust.
17335 (add_process, remove_process, find_process_pid)
17336 (get_thread_process, current_process, initialize_inferiors): New.
17337 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
17338 (struct target_waitstatus) <related_pid>: Ditto.
17339 (struct target_ops) <kill, detach>: Add `pid' argument. Change
17340 return type to int.
17341 (struct target_ops) <join>: Add `pid' argument.
17342 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
17343 (struct target_ops) <wait>: Add `ptid' field. Change return type
17344 to ptid.
17345 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
17346 (mywait): Add `ptid' argument. Change return type to ptid_t.
17347 (target_pid_to_str): Declare.
17348 * target.c (set_desired_inferior): Adjust to use ptids.
17349 (mywait): Add new `ptid' argument. Adjust.
17350 (target_pid_to_str): New.
17351 * mem-break.h (free_all_breakpoints): Declare.
17352 * mem-break.c (breakpoints): Delelete.
17353 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
17354 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
17355 to use per-process breakpoint list.
17356 (free_all_breakpoints): New.
17357 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
17358 (symbol_cache, all_symbols_looked_up): Delete.
17359 (hexchars): New.
17360 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
17361 read_ptid): New.
17362 (prepare_resume_reply): Change ptid argument's type from unsigned
17363 long to ptid_t. Adjust. Implement W;process and X;process.
17364 (free_sym_cache, clear_symbol_cache): New.
17365 (look_up_one_symbol): Adjust to per-process symbol cache. *
17366 * server.c (cont_thread, general_thread, step_thread): Change type
17367 to ptid_t.
17368 (attached): Delete.
17369 (multi_process): New.
17370 (last_ptid): Change type to ptid_t.
17371 (struct vstop_notif) <ptid>: Change type to ptid_t.
17372 (queue_stop_reply, push_event): Change `ptid' argument's type to
17373 ptid_t.
17374 (discard_queued_stop_replies): Add `pid' argument.
17375 (start_inferior): Adjust to use ptids. Adjust to mywait interface
17376 changes. Don't reference the `attached' global.
17377 (attach_inferior): Adjust to mywait interface changes.
17378 (handle_query): Adjust to use ptids. Parse GDB's qSupported
17379 features. Handle and report "multiprocess+". Handle
17380 "qAttached:PID".
17381 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
17382 changes.
17383 (handle_v_kill): New.
17384 (handle_v_stopped): Adjust to use target_pid_to_str.
17385 (handle_v_requests): Allow multiple attaches and runs when
17386 multiprocess extensions are in effect. Handle "vKill".
17387 (myresume): Adjust to use ptids.
17388 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
17389 (handle_status): Adjust to discard_queued_stop_replies interface
17390 change.
17391 (first_thread_of, kill_inferior_callback)
17392 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
17393 (main): Call initialize_inferiors. Adjust to use ptids, killing
17394 and detaching from all inferiors. Handle multiprocess packet
17395 variants.
17396 * linux-low.h: Include gdb_proc_service.h.
17397 (struct process_info_private): New.
17398 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
17399 <lwpid_of>: Use ptid_get_lwp.
17400 (get_lwp_thread): Adjust.
17401 (struct lwp_info): Add `dead' member.
17402 (find_lwp_pid): Declare.
17403 * linux-low.c (thread_db_active): Delete.
17404 (new_inferior): Adjust comment.
17405 (inferior_pid): Delete.
17406 (linux_add_process): New.
17407 (handle_extended_wait): Adjust.
17408 (add_lwp): Change unsigned long to ptid.
17409 (linux_create_inferior): Add process to processes table. Adjust
17410 to use ptids. Don't set new_inferior here.
17411 (linux_attach_lwp): Rename to ...
17412 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
17413 it. Adjust to use ptids.
17414 (linux_attach_lwp): New.
17415 (linux_attach): Add process to processes table. Don't set
17416 new_inferior here.
17417 (struct counter): New.
17418 (second_thread_of_pid_p, last_thread_of_process_p): New.
17419 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
17420 multiple processes.
17421 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
17422 processes. Remove process from process table.
17423 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
17424 to multiple processes.
17425 (any_thread_of): New.
17426 (linux_detach): Add `pid' argument, and handle it. Remove process
17427 from processes table.
17428 (linux_join): Add `pid' argument. Handle it.
17429 (linux_thread_alive): Change unsighed long argument to ptid_t.
17430 Consider dead lwps as not being alive.
17431 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
17432 threads we're not interested in.
17433 (same_lwp, find_lwp_pid): New.
17434 (linux_wait_for_lwp): Change `pid' argument's type from int to
17435 ptid_t. Adjust.
17436 (linux_wait_for_event): Rename to ...
17437 (linux_wait_for_event_1): ... this. Change `pid' argument's type
17438 from int to ptid_t. Adjust.
17439 (linux_wait_for_event): New.
17440 (linux_wait_1): Add `ptid' argument. Change return type to
17441 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
17442 that exit from the process table.
17443 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
17444 Adjust.
17445 (mark_lwp_dead): New.
17446 (wait_for_sigstop): Adjust to use ptids. If a process exits while
17447 stopping all threads, mark its main lwp as dead.
17448 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
17449 ptids.
17450 (fetch_register, usr_store_inferior_registers)
17451 (regsets_fetch_inferior_registers)
17452 (regsets_store_inferior_registers, linux_read_memory)
17453 (linux_write_memory): Inline `inferior_pid'.
17454 (linux_look_up_symbols): Adjust to use per-process
17455 `thread_db_active'.
17456 (linux_request_interrupt): Adjust to use ptids.
17457 (linux_read_auxv): Inline `inferior_pid'.
17458 (initialize_low): Don't reference thread_db_active.
17459 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
17460 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
17461 (ps_getpid): Return the pid of the current inferior.
17462 * thread-db.c (proc_handle, thread_agent): Delete.
17463 (thread_db_create_event, thread_db_enable_reporting): Adjust to
17464 per-process data.
17465 (find_one_thread): Change argument type to ptid_t. Adjust to
17466 per-process data.
17467 (maybe_attach_thread): Adjust to per-process data and ptids.
17468 (thread_db_find_new_threads): Ditto.
17469 (thread_db_init): Ditto.
17470 * spu-low.c (spu_create_inferior, spu_attach): Add process to
17471 processes table. Adjust to use ptids.
17472 (spu_kill, spu_detach): Adjust interface. Remove process from
17473 processes table.
17474 (spu_join, spu_thread_alive): Adjust interface.
17475 (spu_wait): Adjust interface. Remove process from processes
17476 table. Adjust to use ptids.
17477 * win32-low.c (current_inferior_tid): Delete.
17478 (current_inferior_ptid): New.
17479 (debug_event_ptid): New.
17480 (thread_rec): Take a ptid. Adjust.
17481 (child_add_thread): Add `pid' argument. Adjust to use ptids.
17482 (child_delete_thread): Ditto.
17483 (do_initial_child_stuff): Add `attached' argument. Add process to
17484 processes table.
17485 (child_fetch_inferior_registers, child_store_inferior_registers):
17486 Adjust.
17487 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
17488 (win32_attach): Pass 1 to do_initial_child_stuff.
17489 (win32_kill): Adjust interface. Remove process from processes
17490 table.
17491 (win32_detach): Ditto.
17492 (win32_join): Adjust interface.
17493 (win32_thread_alive): Take a ptid.
17494 (win32_resume): Adjust to use ptids.
17495 (get_child_debug_event): Ditto.
17496 (win32_wait): Adjust interface. Remove exiting process from
17497 processes table.
17498
17499 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17500
17501 Non-stop mode support.
17502
17503 * server.h (non_stop): Declare.
17504 (gdb_client_data, handler_func): Declare.
17505 (delete_file_handler, add_file_handler, start_event_loop):
17506 Declare.
17507 (handle_serial_event, handle_target_event, push_event)
17508 (putpkt_notif): Declare.
17509 * target.h (enum resume_kind): New.
17510 (struct thread_resume): Replace `step' field by `kind' field.
17511 (TARGET_WNOHANG): Define.
17512 (struct target_ops) <wait>: Add `options' argument.
17513 <supports_non_stop, async, start_non_stop>: New fields.
17514 (target_supports_non_stop, target_async): New.
17515 (start_non_stop): Declare.
17516 (mywait): Add `options' argument.
17517 * target.c (mywait): Add `options' argument. Print child exit
17518 notifications here.
17519 (start_non_stop): New.
17520 * server.c (non_stop, own_buf, mem_buf): New globals.
17521 (struct vstop_notif): New.
17522 (notif_queue): New global.
17523 (queue_stop_reply, push_event, discard_queued_stop_replies)
17524 (send_next_stop_reply): New.
17525 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17526 interface changes.
17527 (attach_inferior): In non-stop mode, don't wait for the target
17528 here.
17529 (handle_general_set): Handle QNonStop.
17530 (handle_query): When handling qC, return the current general
17531 thread, instead of the first thread of the list.
17532 (handle_query): If the backend supports non-stop mode, include
17533 QNonStop+ in the qSupported query response.
17534 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17535 and non-stop mode.
17536 (handle_v_attach, handle_v_run): Handle non-stop mode.
17537 (handle_v_stopped): New.
17538 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17539 (myresume): Adjust to use resume_kind. Handle non-stop.
17540 (queue_stop_reply_callback): New.
17541 (handle_status): Handle non-stop mode.
17542 (main): Clear non_stop flag on reconnection. Use the event-loop.
17543 Refactor serial protocol handling from here ...
17544 (process_serial_event): ... to this new function. When GDB
17545 selects any thread, select one here. In non-stop mode, wait until
17546 GDB acks all pending events before exiting.
17547 (handle_serial_event, handle_target_event): New.
17548 * remote-utils.c (remote_open): Install remote_desc in the event
17549 loop.
17550 (remote_close): Remove remote_desc from the event loop.
17551 (putpkt_binary): Rename to...
17552 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17553 (putpkt_binary): New as wrapper around putpkt_binary_1.
17554 (putpkt_notif): New.
17555 (prepare_resume_reply): In non-stop mode, don't change the
17556 general_thread.
17557 * event-loop.c: New.
17558 * Makefile.in (OBJ): Add event-loop.o.
17559 (event-loop.o): New rule.
17560
17561 * linux-low.h (pid_of): Moved here.
17562 (lwpid_of): New.
17563 (get_lwp_thread): Use lwpid_of.
17564 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17565 * linux-low.c (pid_of): Delete.
17566 (inferior_pid): Use lwpid_of.
17567 (linux_event_pipe): New.
17568 (target_is_async_p): New.
17569 (delete_lwp): New.
17570 (handle_extended_wait): Use lwpid_of.
17571 (add_lwp): Don't set lwpid field.
17572 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17573 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17574 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17575 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17576 first. Adjust to linux_wait_for_event interface changes. Use
17577 lwpid_of.
17578 (linux_detach): Don't delete the main lwp here.
17579 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17580 (status_pending_p): Don't consider explicitly suspended lwps.
17581 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17582 pointer. Add OPTIONS argument. Change return type to int. Use
17583 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17584 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17585 pointer. Add status pointer argument. Return a pid instead of a
17586 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17587 changes. In non-stop mode, don't switch to a random thread.
17588 (linux_wait): Rename to...
17589 (linux_wait_1): ... this. Add target_options argument, and handle
17590 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17591 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17592 clean exit and signal exit code. Don't stop all threads in
17593 non-stop mode. In all-stop mode, only stop all threads when
17594 reporting a stop to GDB. Handle explicit thread stop requests.
17595 (async_file_flush, async_file_mark): New.
17596 (linux_wait): New.
17597 (send_sigstop): Use lwpid_of.
17598 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17599 interface changes. In non-stop mode, don't switch to a random
17600 thread.
17601 (linux_resume_one_lwp): Use lwpid_of.
17602 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17603 (linux_resume_one_thread): ... this. Handle resume_stop. In
17604 non-stop mode, don't look for pending flag in all threads.
17605 (resume_status_pending_p): Don't consider explicitly suspended
17606 threads.
17607 (my_waitpid): Reimplement. Emulate __WALL.
17608 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17609 Use lwpid_of.
17610 (sigchld_handler, linux_supports_non_stop, linux_async)
17611 (linux_start_non_stop): New.
17612 (linux_target_ops): Register linux_supports_non_stop, linux_async
17613 and linux_start_non_stop.
17614 (initialize_low): Install SIGCHLD handler.
17615 * thread-db.c (thread_db_create_event, find_one_thread)
17616 (thread_db_get_tls_address): Use lwpid_of.
17617 * win32-low.c (win32_detach): Adjust to use resume_kind.
17618 (win32_wait): Add `options' argument.
17619 * spu-low.c (spu_resume): Adjust to use resume_kind.
17620 (spu_wait): Add `options' argument.
17621
17622 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17623
17624 Decouple target code from remote protocol.
17625
17626 * target.h (enum target_waitkind): New.
17627 (struct target_waitstatus): New.
17628 (struct target_ops) <wait>: Return an unsigned long. Take a
17629 target_waitstatus pointer instead of a char pointer.
17630 (mywait): Likewise.
17631 * target.c (mywait): Change prototype to return an unsigned long.
17632 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17633 * server.h (thread_from_wait, old_thread_from_wait): Delete
17634 declarations.
17635 (prepare_resume_reply): Change prototype to take a
17636 target_waitstatus.
17637 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17638 (last_status, last_ptid): New.
17639 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17640 pid instead of a signal.
17641 (attach_inferior): Remove "status" and "signal" parameters.
17642 Adjust.
17643 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17644 not as an address.
17645 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17646 (handle_v_requests, myresume): Remove "status" and "signal"
17647 parameters. Adjust.
17648 (handle_status): New.
17649 (main): Delete local `status'. Adjust.
17650 * remote-utils.c: Include target.h.
17651 (prepare_resume_reply): Change prototype to take a
17652 target_waitstatus. Adjust.
17653
17654 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17655 interface.
17656 * spu-low.c (spu_wait): Adjust.
17657 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17658 Delete.
17659 (win32_wait): Adjust.
17660
17661 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17662
17663 * target.h (struct thread_resume): Delete leave_stopped member.
17664 (struct target_ops): Add a `n' argument to the `resume' callback.
17665 * server.c (start_inferior): Adjust.
17666 (handle_v_cont, myresume): Adjust.
17667 * linux-low.c (check_removed_breakpoint): Adjust to resume
17668 interface change, and to removed leave_stopped field.
17669 (resume_ptr): Delete.
17670 (struct thread_resume_array): New.
17671 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17672 resume interface change.
17673 (linux_continue_one_thread, linux_queue_one_thread)
17674 (resume_status_pending_p): Check if the resume field is NULL
17675 instead of checking the leave_stopped member.
17676 (linux_resume): Adjust to the target resume interface change.
17677 * spu-low.c (spu_resume): Adjust to the target resume interface
17678 change.
17679 * win32-low.c (win32_detach, win32_resume): Ditto.
17680
17681 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17682
17683 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17684 flag.
17685 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17686 pending.
17687 (linux_continue_one_thread): Only preserve the stepping flag if
17688 there's a pending breakpoint.
17689
17690 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17691
17692 * server.c (main): After the inferior having exited, call
17693 remote_close before exiting gdbserver.
17694
17695 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17696
17697 Fix size of FPSCR in Power 7 processors.
17698 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17699 (PPC_FEATURE_HAS_DFP): New #define.
17700 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17701 size of the FPSCR.
17702
17703 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17704
17705 * server.c (handle_query) Whitespace and formatting.
17706
17707 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17708
17709 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17710 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17711 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17712 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17713 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17714 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17715 Makefile.in, configure.ac: Fix whitespace throughout.
17716 * configure: Regenerate.
17717
17718 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17719
17720 * inferiors.c (find_inferior): Make it safe for the callback
17721 function to delete the currently iterated inferior.
17722
17723 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17724
17725 * Makefile.in (linuw_low_h): Move higher.
17726 (thread-db.o): Depend on $(linux_low_h).
17727
17728 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17729
17730 Rename "process" to "lwp" throughout.
17731
17732 * linux-low.c (all_processes): Rename to...
17733 (all_lwps): ... this.
17734 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17735 (add_process): Rename to ...
17736 (add_lwp): ... this. Adjust.
17737 (linux_create_inferior): Adjust.
17738 (linux_attach_lwp): Adjust.
17739 (linux_attach): Adjust.
17740 (linux_kill_one_process): Rename to ...
17741 (linux_kill_one_lwp): ... this. Adjust.
17742 (linux_kill): Adjust.
17743 (linux_detach_one_process): Rename to ...
17744 (linux_detach_one_lwp): ... this. Adjust.
17745 (linux_detach): Adjust.
17746 (check_removed_breakpoint): Adjust.
17747 (status_pending_p): Adjust.
17748 (linux_wait_for_process): Rename to ...
17749 (linux_wait_for_lwp): ... this. Adjust.
17750 (linux_wait_for_event): Adjust.
17751 (send_sigstop): Adjust.
17752 (wait_for_sigstop): Adjust.
17753 (stop_all_processes): Rename to ...
17754 (stop_all_lwps): ... this.
17755 (linux_resume_one_process): Rename to ...
17756 (linux_resume_one_lwp): ... this. Adjust.
17757 (linux_set_resume_request, linux_continue_one_thread)
17758 (linux_queue_one_thread, resume_status_pending_p)
17759 (usr_store_inferior_registers, regsets_store_inferior_registers)
17760 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17761 Adjust.
17762 * linux-low.h (get_process): Rename to ...
17763 (get_lwp): ... this. Adjust.
17764 (get_thread_process): Rename to ...
17765 (get_thread_lwp): ... this. Adjust.
17766 (get_process_thread): Rename to ...
17767 (get_lwp_thread): ... this. Adjust.
17768 (struct process_info): Rename to ...
17769 (struct lwp_info): ... this.
17770 (all_processes): Rename to ...
17771 (all_lwps): ... this.
17772 * proc-service.c (ps_lgetregs): Adjust.
17773 * thread-db.c (thread_db_create_event, find_one_thread)
17774 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17775
17776 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17777
17778 * server.c (handle_query): Handle "qAttached".
17779
17780 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17781
17782 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17783 GPLv3, update license URL.
17784
17785 2009-03-01 Doug Evans <dje@google.com>
17786
17787 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17788 (server_h): Add gdb_signals.h.
17789 (signals.o): Update.
17790 * server.h (target_signal_from_host,target_signal_to_host_p)
17791 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17792
17793 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17794
17795 * remote-utils.c (getpkt): Also generate remote-debug
17796 information if noack_mode is set.
17797
17798 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17799
17800 * server.c (handle_query): Report qXfer:siginfo:read and
17801 qXfer:siginfo:write as supported and handle them.
17802 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17803 * linux-low.c (linux_xfer_siginfo): New.
17804 (linux_target_ops): Set it.
17805
17806 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17807
17808 * server.c (gdbserver_usage): Mention --remote-debug.
17809 (main): Accept '--remote-debug' switch.
17810
17811 2009-01-18 Doug Evans <dje@google.com>
17812
17813 * regcache.c (new_register_cache): No need to check result of xcalloc.
17814 * server.c (handle_search_memory): Back out calls to xmalloc,
17815 result is checked and error is returned to user upon failure.
17816 (handle_query): Ditto. Add more checks for result of malloc.
17817 (handle_v_cont): Check result of malloc, report error back to
17818 user upon failure.
17819 (handle_v_run): Ditto. Call freeargv.
17820 * server.h (freeargv): Declare.
17821 * utils.c (freeargv): New fn.
17822
17823 2009-01-15 Doug Evans <dje@google.com>
17824
17825 * gdbreplay.c (perror_with_name): Make arg const char *.
17826 * server.h (target_signal_to_name): Make return type const char *.
17827 * thread-db.c (thread_db_err_str): Make return type const char *.
17828 * utils.c (perror_with_name): Make arg const char *.
17829
17830 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17831
17832 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17833 when handling a EXIT_PROCESS_DEBUG_EVENT.
17834
17835 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17836
17837 * gdbreplay.c (gdbreplay_version): Update copyright year.
17838 * server.c (gdbserver_version): Likewise.
17839
17840 2009-01-05 Doug Evans <dje@google.com>
17841
17842 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17843 (handle_extended_wait): Improve comment.
17844
17845 2008-12-13 Doug Evans <dje@google.com>
17846
17847 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17848 * server.h (ATTR_MALLOC): New macro.
17849 (xmalloc,xcalloc,xstrdup): Declare.
17850 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17851 * inferiors.c: Ditto.
17852 * linux-low.c: Ditto.
17853 * mem-break.c: Ditto.
17854 * regcache.c: Ditto.
17855 * remote-utils.c: Ditto.
17856 * server.c: Ditto.
17857 * target.c: Ditto.
17858 * win32-low.c: Ditto.
17859
17860 2008-12-12 Doug Evans <dje@google.com>
17861
17862 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17863 in debugging printf.
17864
17865 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17866
17867 2008-12-09 Doug Evans <dje@google.com>
17868
17869 * linux-low.h (struct process_info): Delete member tid, unused.
17870 * thread-db.c (find_one_thread): Update.
17871 (maybe_attach_thread): Update.
17872
17873 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17874
17875 * target.h (struct target_ops): Add qxfer_osdata member.
17876 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17877 and dirent.h.
17878 (linux_qxfer_osdata): New functions.
17879 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17880 callback.
17881 * server.c (handle_query): Handle "qXfer:osdata:read:".
17882 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17883 (buffer_xml_printf): New functions.
17884 * server.h (struct buffer): New.
17885 (buffer_grow_str, buffer_grow_str0): New macros.
17886 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17887 (buffer_xml_printf): Declare.
17888
17889 2008-11-24 Doug Evans <dje@google.com>
17890
17891 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17892
17893 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17894
17895 * server.c (handle_v_run): Always use the supplied argument list.
17896
17897 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17898
17899 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17900 (xtensa_regmap_table): Add entry for scompare1.
17901
17902 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17903
17904 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17905 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17906 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17907 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17908 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17909 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17910 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17911 XML target descriptions.
17912 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17913 when inferior is running on an ISA 2.05 or later processor. Add
17914 special case to return offset for full 64-bit slot of FPSCR when
17915 in 32-bits.
17916
17917 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17918
17919 * Makefile.in (SFILES, clean): Added sparc64 files.
17920 (reg-sparc64.o, reg-sparc64.c): New.
17921 * configure.srv (sparc*-*-linux*): New configuration.
17922 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17923 syscall arguments for SPARC.
17924 (regsets_store_inferior_registers): Likewise.
17925 * linux-sparc-low.c: New file.
17926
17927 2008-10-21 Doug Evans <dje@google.com>
17928
17929 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17930 (READLINE_DIR,READLINE_DEP): Delete.
17931 (INTERNAL_CFLAGS): Update.
17932 (LINTFLAGS): Update.
17933
17934 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17935
17936 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17937 whole argv from the last run, not just argv[0].
17938
17939 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17940
17941 * regcache.c (new_register_cache): Return NULL if the register
17942 cache size isn't known yet.
17943 (free_register_cache): Avoid dereferencing a NULL regcache.
17944
17945 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17946
17947 * configure.srv: Merge MIPS and MIPS64.
17948
17949 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17950
17951 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17952
17953 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17954
17955 * Makefile.in: Add required vsx dependencies.
17956
17957 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17958 Declare init_registers_powerpc_vsx32l.
17959 Declare init_registers_powerpc_vsx64l.
17960 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17961 (ppc_arch_setup): Check for VSX in hwcap.
17962 (ppc_fill_vsxregset): New function.
17963 (ppc_store_vsxregset): New function.
17964 Add new VSX entry in regset_info target_regsets.
17965
17966 * configure.srv: Add new VSX dependencies.
17967
17968 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17969
17970 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17971 (remote_open): Set or clear transport_is_reliable.
17972 (putpkt_binary): Don't expect acks in noack mode.
17973 (getpkt): Don't send ack/nac in noack mode.
17974 * server.c (handle_general_set): Handle QStartNoAckMode.
17975 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17976 qSupported.
17977 (main): Reset noack_mode on every connection.
17978 * server.h (noack_mode): Declare.
17979
17980 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17981
17982 * Makefile.in (GDBREPLAY_OBS): New variable.
17983 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17984
17985 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17986 Daniel Jacobowitz <dan@codesourcery.com>
17987
17988 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17989 (usr_store_inferior_registers): Likewise.
17990 (regsets_store_inferior_registers): Likewise.
17991
17992 2008-07-31 Rolf Jansen <rj@surtec.com>
17993 Pedro Alves <pedro@codesourcery.com>
17994
17995 * configure.ac: Check for memmem declaration.
17996 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17997 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17998 (disable_packet_qfThreadInfo): Unconditionally compile.
17999 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18000 * configure, config.in: Regenerate.
18001
18002 2008-07-28 Doug Kwan <dougkwan@google.com>
18003
18004 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18005 (linux_write_memory): Remove declaration of errno.
18006
18007 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18008
18009 * linux-low.c (handle_extended_wait): Do not use "status"
18010 variable uninitialized.
18011
18012 2008-07-07 Pedro Alves <pedro@codesourcery.com>
18013
18014 * server.c (handle_v_attach): Inhibit reporting dll changes.
18015
18016 2008-06-27 Pedro Alves <pedro@codesourcery.com>
18017
18018 * remote-utils.c (prepare_resume_reply): If requested, don't
18019 output "thread:TID" in the T stop reply.
18020
18021 * server.c (disable_packet_vCont, disable_packet_Tthread)
18022 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18023 (handle_query): If requested, disable support for qC, qfThreadInfo
18024 and qsThreadInfo.
18025 (handle_v_requests): If requested, disable support for vCont.
18026 (gdbserver_show_disableable): New.
18027 (main): Handle --disable-packet and --disable-packet=LIST.
18028
18029 * server.h (disable_packet_vCont, disable_packet_Tthread)
18030 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18031
18032 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18033
18034 * server.c (gdbserver_usage): Mention --version.
18035
18036 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18037
18038 * Makefile.in (gdbreplay.o): New rule.
18039
18040 2008-06-06 Joseph Myers <joseph@codesourcery.com>
18041
18042 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18043 message, not gdbserver.
18044
18045 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
18046 Nathan Sidwell <nathan@codesourcery.com>
18047 Joseph Myers <joseph@codesourcery.com>
18048
18049 * acinclude.m4: Include ../../config/acx.m4.
18050 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18051 * configure, config.in: Regenerate.
18052 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18053 * server.c (gdbserver_version): Print PKGVERSION.
18054 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18055 (main): Adjust gdbserver_usage calls.
18056 * gdbreplay.c (version, host_name): Add declarations.
18057 (gdbreplay_version, gdbreplay_usage): New.
18058 (main): Accept --version and --help options.
18059
18060 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18061
18062 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18063 (arm_breakpoint_at): Handle Thumb.
18064 (the_low_target): Add comment.
18065
18066 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18067
18068 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18069
18070 2008-05-09 Doug Evans <dje@google.com>
18071
18072 * server.h (decode_search_memory_packet): Declare.
18073 * remote-utils.c (decode_search_memory_packet): New fn.
18074 * server.c (handle_search_memory_1): New fn.
18075 (handle_search_memory): New fn.
18076 (handle_query): Process qSearch:memory packets.
18077
18078 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18079
18080 * regcache.c (registers_length): Remove.
18081 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18082 full register packet.
18083 * regcache.h (registers_length): Remove prototype.
18084 * server.h (PBUFSIZ): Define to 16384.
18085
18086 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18087
18088 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18089 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18090 powerpc-64l.o, and powerpc-altivec64l.o.
18091 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18092 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18093 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18094 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18095 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18096 to srv_xmlfiles.
18097
18098 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18099 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18100 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18101 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18102 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18103 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18104 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18105 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18106 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18107 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18108 (clean): Update.
18109
18110 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18111 (init_registers_powerpc_32l): ... this new prototype.
18112 (init_registers_powerpc_32): Remove, replace by ...
18113 (init_registers_powerpc_altivec32l): ... this new prototype.
18114 (init_registers_powerpc_e500): Remove, replace by ...
18115 (init_registers_powerpc_e500l): ... this new prototype.
18116 (init_registers_ppc64): Remove, replace by ...
18117 (init_registers_powerpc_64l): ... this new prototype.
18118 (init_registers_powerpc_64): Remove, replace by ...
18119 (init_registers_powerpc_altivec64l): ... this new prototype.
18120 (ppc_num_regs): Set to 73.
18121 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18122 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18123 (ppc_cannot_store_register): Handle orig_r3 and trap.
18124 (ppc_arch_setup): Update init_registers_... calls.
18125 (ppc_fill_gregset): Handle orig_r3 and trap.
18126
18127 * inferiors.c (clear_inferiors): Reset current_inferior.
18128
18129 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
18130
18131 * acinclude.m4: Add override.m4.
18132 * configure: Regenerate.
18133
18134 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18135
18136 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18137 initial call to init_register_ppc64.
18138
18139 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18140
18141 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18142 single powerpc*-*-linux* case.
18143 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18144
18145 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18146
18147 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
18148 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
18149 from reg_xmlfiles.
18150 * linux-ppc-low.c: Include <elf.h>.
18151 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18152 (ppc_hwcap): New global variable.
18153 (ppc_regmap): Remove __SPE__ #ifdef sections.
18154 (ppc_regmap_e500): New global variable.
18155 (ppc_cannot_store_register): Update __SPE__ special case.
18156 (ppc_get_hwcap): New function.
18157 (ppc_arch_setup): Use it to determine whether inferior supports
18158 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18159 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18160 Do not access registers if target does not support AltiVec.
18161 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18162 Do not access registers if target does not support SPE.
18163 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18164
18165 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18166
18167 * linux-low.c (disabled_regsets, num_regsets): New.
18168 (use_regsets_p): Delete.
18169 (linux_wait_for_process): Clear disabled_regsets.
18170 (regsets_fetch_inferior_registers): Check and set it.
18171 (regsets_store_inferior_registers): Likewise.
18172 (linux_fetch_registers, linux_store_registers): Do not use
18173 use_regsets_p.
18174 (initialize_low): Allocate disabled_regsets.
18175
18176 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18177
18178 * Makefile.in (LIBOBJS): New.
18179 (OBS): Use LIBOBJS.
18180 (memmem.o): New rule.
18181 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18182 * configure: Regenerated.
18183
18184 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18185
18186 * server.c (handle_query): Never return "unsupported" for
18187 qXfer:features:read queries.
18188
18189 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18190
18191 * server.c (get_features_xml): Fix inverted condition.
18192 (handle_query): Always support qXfer:feature:read.
18193
18194 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18195
18196 * server.c (wrapper_argv): New.
18197 (start_inferior): Handle wrapper_argv. If set, expect an extra
18198 trap.
18199 (gdbserver_usage): Document --wrapper.
18200 (main): Parse --wrapper.
18201
18202 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18203
18204 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18205 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18206 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18207 (ppc_set_pc): Likewise.
18208 (ppc_arch_setup): New function.
18209 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18210 of collect_register.
18211 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
18212
18213 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18214
18215 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18216 instead of linux-ppc64-low.o.
18217 * linux-ppc64-low.c: Remove file.
18218 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18219 (linux-ppc64-low.o): Remove rule.
18220
18221 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18222 (init_registers_powerpc_64): Likewise.
18223 (ppc_regmap): Conditionally define depending on __powerpc64__.
18224 (ppc_cannot_store_register): Do not special-case "fpscr" when
18225 compiled on __powerpc64__.
18226 (ppc_collect_ptrace_register): New function.
18227 (ppc_supply_ptrace_register): New function.
18228 (ppc_breakpoint): Change type to "unsigned int".
18229 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18230 (the_low_target): Conditionally provide initializers for the
18231 arch_setup member depending on __powerpc64__. Install
18232 collect_ptrace_register and supply_ptrace_register members.
18233
18234 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18235
18236 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18237 * server.c (gdbserver_xmltarget): Define.
18238 (get_features_xml): Use it to replace "target.xml" and arch_string.
18239
18240 * configure.srv: Remove srv_xmltarget. Add XML files that were
18241 mentioned there to srv_xmlfiles instead. Remove conditional tests
18242 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18243 srv_xmlfiles and srv_regobj to include all possible choices.
18244 * configure.ac (srv_xmltarget): Remove.
18245 (srv_xmlfiles): Do not add "target.xml".
18246 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18247 checks for supplementary target information.
18248 * configure: Regenerate.
18249 * Makefile.in (XML_TARGET): Remove.
18250 (target.xml): Remove rule.
18251 (clean): Do not clean up target.xml.
18252 (.PRECIOUS): Do not mention target.xml.
18253
18254 * target.h (struct target_ops): Remove arch_string member.
18255 * linux-low.c (linux_arch_string): Remove.
18256 (linux_target_ops): Remove arch_string initializer.
18257 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18258 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18259 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18260 * spu-low.c (spu_arch_string): Remove.
18261 (spu_target_ops): Remove arch_string initializer.
18262 * win32-low.c (win32_arch_string): Remove.
18263 (win32_target_ops): Remove arch_string initializer.
18264 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18265 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18266 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18267
18268 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18269
18270 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18271 by collect_ptrace_register and supply_ptrace_register hooks.
18272 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18273 instead of checking for the_low_target.left_pad_xfer.
18274 (usr_store_inferior_registers): Use collect_ptrace_register callback
18275 instead of checking for the_low_target.left_pad_xfer.
18276
18277 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18278 (s390_supply_ptrace_register): Likewise.
18279 (s390_fill_gregset): Call s390_collect_ptrace_register.
18280 (the_low_target): Update.
18281
18282 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18283 (ppc_supply_ptrace_register): Likewise.
18284 (the_low_target): Update.
18285
18286 * linux-i386-low.c (the_low_target): Update.
18287 * linux-x86-64-low.c (the_low_target): Update.
18288
18289 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18290
18291 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18292 reg-s390.o and reg-s390x.o.
18293
18294 * linux-low.c (new_inferior): New global variable.
18295 (linux_create_inferior, linux_attach): Set it.
18296 (linux_wait_for_process): Call the_low_target.arch_setup after the
18297 target has stopped for the first time.
18298 (initialize_low): Do not call the_low_target.arch_setup.
18299
18300 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
18301 (s390_set_pc): Likewise.
18302 (s390_arch_setup): New function.
18303 (the_low_target): Use s390_arch_setup as arch_setup routine.
18304
18305 * regcache.c (realloc_register_cache): New function.
18306 (set_register_cache): Call it for each existing regcache.
18307
18308 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18309
18310 * server.h (init_registers): Remove prototype.
18311
18312 * linux-low.h (struct linux_target_ops): Add arch_setup field.
18313 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
18314 instead of init_registers ().
18315 * linux-arm-low.c (init_registers_arm): Add prototype.
18316 (init_registers_arm_with_iwmmxt): Likewise.
18317 (the_low_target): Add initializer for arch_setup field.
18318 * linux-cris-low.c (init_registers_cris): Add prototype.
18319 (the_low_target): Add initializer for arch_setup field.
18320 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
18321 (the_low_target): Add initializer for arch_setup field.
18322 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
18323 (the_low_target): Add initializer for arch_setup field.
18324 * linux-ia64-low.c (init_registers_ia64): Add prototype.
18325 (the_low_target): Add initializer for arch_setup field.
18326 * linux-m32r-low.c (init_registers_m32r): Add prototype.
18327 (the_low_target): Add initializer for arch_setup field.
18328 * linux-m68k-low.c (init_registers_m68k): Add prototype.
18329 (the_low_target): Add initializer for arch_setup field.
18330 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
18331 (init_registers_mips64_linux): Likewise.
18332 (the_low_target): Add initializer for arch_setup field.
18333 * linux-ppc-low.c (init_registers_ppc): Add prototype.
18334 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
18335 (the_low_target): Add initializer for arch_setup field.
18336 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
18337 (init_registers_powerpc_64): Likewise.
18338 (the_low_target): Add initializer for arch_setup field.
18339 * linux-s390-low.c (init_registers_s390): Add prototype.
18340 (init_registers_s390x): Likewise.
18341 (the_low_target): Add initializer for arch_setup field.
18342 * linux-sh-low.c (init_registers_sh): Add prototype.
18343 (the_low_target): Add initializer for arch_setup field.
18344 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
18345 (the_low_target): Add initializer for arch_setup field.
18346 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
18347 (the_low_target): Add initializer for arch_setup field.
18348
18349 * win32-low.h (struct win32_target_ops): Add arch_setup field.
18350 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
18351 instead of init_registers ().
18352 * win32-arm-low.c (init_registers_arm): Add prototype.
18353 (the_low_target): Add initializer for arch_setup field.
18354 * win32-i386-low.c (init_registers_i386): Add prototype.
18355 (the_low_target): Add initializer for arch_setup field.
18356
18357 * spu-low.c (init_registers_spu): Add prototype.
18358 (initialize_low): Call initialie_registers_spu () instead of
18359 initialize_registers ().
18360
18361 2008-02-19 Pedro Alves <pedro@codesourcery.com>
18362
18363 * server.c (handle_v_requests): When handling the vRun and vAttach
18364 packets, if already debugging a process, don't kill it. Return an
18365 error instead.
18366
18367 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
18368
18369 * server.c (handle_query): Correct length check.
18370
18371 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
18372
18373 * win32-low.c (do_initial_child_stuff): Add process handle
18374 parameter. Set current_process_handle and current_process_id from the
18375 parameters. Clear globals.
18376 (win32_create_inferior): Don't set current_process_handle and
18377 current_process_id here. Instead pass them on the call to
18378 do_initial_child_stuff.
18379 (win32_attach): Likewise.
18380 (win32_clear_inferiors): New.
18381 (win32_kill): Don't close the current process handle or the
18382 current thread handle here. Instead call win32_clear_inferiors.
18383 (win32_detach): Don't open a new handle to the process. Call
18384 win32_clear_inferiors.
18385 (win32_join): Don't rely on current_process_handle; open a new
18386 handle using the process id.
18387 (win32_wait): Call win32_clear_inferiors when the inferior process
18388 has exited.
18389
18390 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
18391
18392 * server.c (monitor_show_help): Add "exit".
18393
18394 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
18395
18396 * Makefile.in (SFILES): Add linux-xtensa-low.c.
18397 (clean): Add reg-xtensa.c.
18398 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
18399 * configure.srv (xtensa*-*-linux*) New target.
18400 * linux-xtensa-low.c: New.
18401 * xtensa-xtregs.c: New.
18402
18403 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
18404
18405 * hostio.c: Don't include errno.h.
18406 (errno_to_fileio_errno): Move to hostio-errno.
18407 * hostio.c: (hostio_error): Remove the error parameter. Defer the
18408 error number outputting to the target->hostio_last_error callback.
18409 (hostio_packet_error): Use FILEIO_EINVAL directly.
18410 (handle_open, handle_pread, hostio_error, handle_unlink): Update
18411 calls to hostio_error.
18412 * hostio-errno.c: New.
18413 * server.h (hostio_last_error_from_errno): Declare.
18414 * target.h (target_ops): Add hostio_last_error member.
18415 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
18416 as hostio_last_error handler.
18417 * spu-low.c (spu_target_ops): Likewise.
18418 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
18419 (wince_hostio_last_error): New functions.
18420 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
18421 as hostio_last_error handler.
18422 (win32_target_ops) [!_WIN32_WCE]: Register
18423 hostio_last_error_from_errno as hostio_last_error handler.
18424 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
18425 (hostio-errno.o): New rule.
18426 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
18427 * configure.srv (srv_hostio_err_objs): New variable. Default to
18428 hostio-errno.o.
18429 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
18430 * configure: Regenerate.
18431
18432 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18433
18434 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
18435 (linux_kill, linux_detach): Clean up the process list.
18436 * remote-utils.c (remote_open): Improve port number parsing.
18437 (putpkt_binary, input_interrupt): Only send interrupts if the target
18438 is running.
18439 * server.c (extended_protocol): Make static.
18440 (attached): Define earlier.
18441 (exit_requested, response_needed, program_argv): New variables.
18442 (target_running): New.
18443 (start_inferior): Clear attached here.
18444 (attach_inferior): Set attached here.
18445 (require_running): Define.
18446 (handle_query): Use require_running and target_running. Implement
18447 "monitor exit".
18448 (handle_v_attach, handle_v_run): New.
18449 (handle_v_requests): Use require_running. Handle vAttach and vRun.
18450 (gdbserver_usage): Update.
18451 (main): Redo argument parsing. Handle --debug and --multi. Handle
18452 --attach along with other options or after the port. Save
18453 program_argv. Support no initial program. Resynchronize
18454 communication with GDB after an error. Handle "monitor exit".
18455 Use require_running and target_running. Always allow the extended
18456 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
18457 restart in extended mode.
18458 * README: Refer to the GDB manual. Update --attach usage.
18459
18460 2007-12-20 Andreas Schwab <schwab@suse.de>
18461
18462 * linux-low.c (STACK_SIZE): Define.
18463 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18464 (linux_test_for_tracefork): Likewise.
18465
18466 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18467
18468 * linux-low.c (linux_wait_for_event): Update messages. Do not
18469 reinsert auto-delete breakpoints.
18470 * mem-break.c (struct breakpoint): Change return type of handler to
18471 int.
18472 (set_breakpoint_at): Update handler type.
18473 (reinsert_breakpoint_handler): Return 1 instead of calling
18474 delete_breakpoint.
18475 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18476 setting a new one.
18477 (check_breakpoints): Delete auto-delete breakpoints and return 2.
18478 * mem-break.h (set_breakpoint_at): Update handler type.
18479 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
18480 * win32-low.c (auto_delete_breakpoint): New.
18481 (get_child_debug_event): Use it.
18482
18483 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18484
18485 * configure.ac: Check for pread and pwrite.
18486 * hostio.c (handle_pread): Fall back to lseek and read.
18487 (handle_pwrite): Fall back to lseek and write.
18488 * config.in, configure: Regenerated.
18489
18490 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18491
18492 * server.c (myresume): Add own_buf argument.
18493 (main): Update calls.
18494
18495 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18496
18497 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
18498 * remote-utils.c (remote_open): Do not call disable_async_io.
18499 (block_async_io): Delete.
18500 (unblock_async_io): Make static.
18501 (initialize_async_io): New.
18502 * server.c (handle_v_cont): Handle async I/O here.
18503 (myresume): Likewise. Move other common resume tasks here...
18504 (main): ... from here. Call initialize_async_io. Disable async
18505 I/O before the main loop.
18506 * server.h (initialize_async_io): Declare.
18507 (block_async_io, unblock_async_io): Delete prototypes.
18508 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
18509
18510 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18511
18512 * remote-utils.c (readchar): Allow binary data in received messages.
18513
18514 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18515
18516 * win32-low.c (attaching): New global.
18517 (win32_create_inferior): Clear the `attaching' global.
18518 (win32_attach): Set the `attaching' global.
18519 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18520 attaching. Only set a breakpoint at the entry point if not
18521 attaching.
18522
18523 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18524
18525 * server.c (main): Don't report dll events on the initial
18526 connection on attaches.
18527
18528 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18529
18530 * server.c (main): Relax numerical bases supported for the pid of
18531 the --attach command line argument.
18532
18533 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18534
18535 * win32-low.c (win32_attach): Call OpenProcess before
18536 DebugActiveProcess, not after. Add last error output to error
18537 call.
18538
18539 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18540
18541 * win32-low.c (win32_get_thread_context)
18542 (win32_set_thread_context): New functions.
18543 (thread_rec): Use win32_get_thread_context.
18544 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18545 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18546 field.
18547
18548 2007-12-03 Leo Zayas
18549 Pedro Alves <pedro_alves@portugalmail.pt>
18550
18551 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18552 global variables.
18553 (child_add_thread): Minor cleanup.
18554 (child_continue): Resume artificially suspended threads before
18555 calling ContinueDebugEvent.
18556 (suspend_one_thread): New.
18557 (fake_breakpoint_event): New.
18558 (get_child_debug_event): Change return type to int. Check here if
18559 gdb sent an interrupt request. If a soft interrupt was requested,
18560 fake a breakpoint event. Return 0 if there is no event to handle,
18561 and 1 otherwise.
18562 (win32_wait): Don't check here if gdb sent an interrupt request.
18563 Ensure there is a valid event to handle.
18564 (win32_request_interrupt): Add soft interruption method as last
18565 resort.
18566
18567 2007-12-03 Leo Zayas
18568 Pedro Alves <pedro_alves@portugalmail.pt>
18569
18570 * win32-low.h (win32_thread_info): Add descriptions to the
18571 structure members. Replace `suspend_count' counter by a
18572 `suspended' flag.
18573 * win32-low.c (thread_rec): Update condition of when to get the
18574 context from the inferior. Rely on ContextFlags being set if it
18575 has already been retrieved. Only suspend the inferior thread if
18576 we haven't already. Warn if that fails.
18577 (continue_one_thread): s/suspend_count/suspended/. Only call
18578 ResumeThread once. Warn if that fails.
18579
18580 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18581
18582 * win32-low.c (win32_wait): Don't read from the inferior when it
18583 has already exited.
18584
18585 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18586
18587 * Makefile.in (win32_low_h): New variable.
18588 (win32-low.o): Add dependency on $(win32_low_h).
18589 (win32-arm-low.o, win32-i386-low.o): New rules.
18590
18591 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18592
18593 * hostio.c: Correct copyright year.
18594
18595 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18596
18597 * Makefile.in (OBS): Add hostio.o.
18598 (hostio.o): New rule.
18599 * server.h (handle_vFile): Declare.
18600 * hostio.c: New file.
18601 * server.c (handle_v_requests): Take packet_len and new_packet_len
18602 for binary packets. Call handle_vFile.
18603 (main): Update call to handle_v_requests.
18604
18605 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18606
18607 * linux-low.c: Include <sched.h>.
18608
18609 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18610
18611 * linux-low.c (linux_tracefork_grandchild): New.
18612 (linux_tracefork_child): Use clone.
18613 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18614
18615 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18616
18617 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18618
18619 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18620
18621 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18622
18623 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18624
18625 * inferiors.c (change_inferior_id): Delete.
18626 (add_pid_to_list, pull_pid_from_list): New.
18627 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18628 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18629 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18630 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18631 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18632 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18633 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18634 (using_threads): Always set to 1.
18635 (handle_extended_wait): New.
18636 (add_process): Do not set TID.
18637 (linux_create_inferior): Set must_set_ptrace_flags.
18638 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18639 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18640 (linux_thread_alive): Rename TID argument to LWPID.
18641 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18642 (linux_wait_for_event): Do not use TID or check using_threads. Update
18643 call to dead_thread_notify. Call handle_extended_wait.
18644 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18645 (send_sigstop): Delete sigstop_sent.
18646 (wait_for_sigstop): Avoid TID.
18647 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18648 (linux_test_for_tracefork): New.
18649 (linux_lookup_signals): Use thread_db_active and
18650 linux_supports_tracefork_flag.
18651 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18652 * linux-low.h (get_process_thread): Avoid TID.
18653 (struct process_ifo): Move thread_known and tid to the end. Remove
18654 sigstop_sent.
18655 (linux_attach_lwp, thread_db_init): Update prototypes.
18656 * server.h (change_inferior_id): Delete prototype.
18657 (add_pid_to_list, pull_pid_from_list): New prototypes.
18658 * thread-db.c (thread_db_use_events): New.
18659 (find_first_thread): Rename to...
18660 (find_one_thread): ...this. Update callers and messages. Do not
18661 call fatal. Check thread_db_use_events. Do not call
18662 change_inferior_id or new_thread_notify.
18663 (maybe_attach_thread): Update. Do not call new_thread_notify.
18664 (thread_db_init): Set thread_db_use_events. Check use_events.
18665 * utils.c (fatal, warning): Correct message prefix.
18666
18667 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18668
18669 * Makefile.in (clean): Remove new files.
18670 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18671 (powerpc-64.o, powerpc-64.c): New rules.
18672 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18673 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18674 with SPE.
18675 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18676 SPE targets.
18677 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18678 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18679 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18680 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18681 (target_regsets): Add AltiVec and SPE register sets.
18682 * configure.ac: Check for AltiVec and SPE.
18683 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18684 (ppc_fill_vrregset, ppc_store_vrregset): New.
18685 (target_regsets): Add AltiVec register set.
18686 * configure: Regenerated.
18687
18688 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18689
18690 * linux-low.c (O_LARGEFILE): Define.
18691 (linux_read_memory): Use /proc/PID/mem.
18692 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18693 * configure, config.in: Regenerated.
18694
18695 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18696
18697 * linux-low.c (linux_wait_for_event): Do not pass signals while
18698 single-stepping.
18699
18700 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18701
18702 * win32-low.c (create_process): New.
18703 (win32_create_inferior): Use create_process instead of
18704 CreateProcess. If create_process failed retry appending an ".exe"
18705 suffix. Store the GetLastError result immediatelly after
18706 create_process calls and use it on the call to error.
18707
18708 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18709
18710 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18711
18712 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18713
18714 * configure.ac: Switch license to GPLv3.
18715
18716 2007-08-01 Michael Snyder <msnyder@access-company.com>
18717
18718 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18719
18720 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18721
18722 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18723 typedef.
18724 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18725 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18726 CloseToolhelp32Snapshot.
18727 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18728 CloseToolhelp32Snapshot.
18729
18730 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18731
18732 * server.c (main): Check for inferior exit before main loop.
18733
18734 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18735
18736 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18737 instead of on tmp_desc.
18738
18739 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18740 Daniel Jacobowitz <dan@codesourcery.com>
18741
18742 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18743 (add_thread): Minor cleanups.
18744 (clear_inferiors): Move lower in the file. Clear the DLL
18745 list.
18746 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18747 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18748 (xml_escape_text): New.
18749 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18750 for qSupported.
18751 (handle_v_cont): Report errors.
18752 (gdbserver_version): Update.
18753 (main): Correct size of own_buf. Do not report initial DLL events.
18754 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18755 (unloaded_dll, xml_escape_text): New.
18756 * win32-low.c (enum target_waitkind): Update comments.
18757 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18758 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18759 (win32_EnumProcessModules, win32_GetModuleInformation)
18760 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18761 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18762 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18763 (win32_Module32First, win32_Module32Next, load_toolhelp)
18764 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18765 (get_child_debug_event): Handle DLL events.
18766 (win32_wait): Likewise.
18767
18768 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18769
18770 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18771 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18772
18773 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18774
18775 * win32-low.c (handle_output_debug_string): Ignore event if not
18776 waiting.
18777
18778 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18779
18780 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18781
18782 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18783
18784 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18785
18786 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18787
18788 * inferiors.c (change_inferior_id): Add comment.
18789 * linux-low.c (check_removed_breakpoint): Add an early
18790 prototype. Improve debug output.
18791 (linux_attach): Doc update.
18792 (linux_detach_one_process, linux_detach): Clean up before releasing
18793 each process.
18794 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18795 * linux-low.h (struct process_info): Doc improvement.
18796 * mem-break.c (delete_all_breakpoints): New.
18797 * mem-break.h (delete_all_breakpoints): New prototype.
18798 * thread-db.c (find_first_thread): New.
18799 (thread_db_create_event): Call it instead of
18800 thread_db_find_new_threads. Clean up unused variables.
18801 (maybe_attach_thread): Remove first thread handling.
18802 (thread_db_find_new_threads): Use find_first_thread.
18803 (thread_db_get_tls_address): Likewise.
18804
18805 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18806
18807 * thread-db.c (thread_db_find_new_threads): Add prototype.
18808 (thread_db_create_event): Check for the main thread before adding
18809 a new thread.
18810 (maybe_attach_thread): Only enable event reporting if TID == 0.
18811 (thread_db_get_tls_address): Check for new threads.
18812
18813 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18814
18815 * linux-low.c (linux_create_inferior): Try execv before execvp.
18816 * spu-low.c (spu_create_inferior): Likewise.
18817
18818 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18819
18820 * linux-low.c (linux_create_inferior): Change execv to execvp.
18821 * spu-low.c (spu_create_inferior): Likewies.
18822
18823 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18824
18825 * Makefile.in (clean): Clean new files instead of deleted ones.
18826 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18827 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18828 rules.
18829 * configure.srv: Specify XML files and new regformats for MIPS and
18830 MIPS64 GNU/Linux.
18831 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18832 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18833 an entry for the restart register.
18834 (mips_cannot_fetch_register, mips_cannot_store_register)
18835 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18836 register names to match the XML descriptions.
18837 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18838 restart register instead of $0.
18839
18840 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18841 Markus Deuling <deuling@de.ibm.com>
18842
18843 * remote-utils.c (decode_xfer_write): New function.
18844 * server.h (decode_xfer_write): Add prototype.
18845 * server.c (handle_query): Add PACKET_LEN argument. Support
18846 qXfer:spu:read and qXfer:spu:write packets.
18847 (main): Pass packet_len to handle_query.
18848 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18849 * target.h (target_ops): Add qxfer_spu.
18850
18851 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18852
18853 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18854 accessing non-seekable spufs files.
18855
18856 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18857
18858 * server.c (handle_query): Add reply for qC packet.
18859
18860 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18861 Leo Zayas <lerele@champenstudios@com>
18862
18863 * server.h (check_remote_input_interrupt_request): New function.
18864 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18865 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18866 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18867 (check_remote_input_interrupt_request): New function.
18868 * server.h (check_remote_input_interrupt_request): Declare.
18869 * win32-low.c (winapi_DebugBreakProcess,
18870 winapi_GenerateConsoleCtrlEvent): New typedefs.
18871 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18872 to 250 ms.
18873 (win32_wait): Check for remote interrupt request
18874 with check_remote_input_interrupt_request.
18875 (win32_request_interrupt): New function.
18876 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18877
18878 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18879
18880 * win32-low.c (debug_registers_changed,
18881 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18882 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18883 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18884 (thread_rec): Get context using the low target.
18885 (child_add_thread): Call thread_added on the low target,
18886 which does the same thing.
18887 (regptr): Delete.
18888 (do_initial_child_stuff): Remove debug registers references.
18889 Set context using the low target. Resume threads after
18890 setting the contexts.
18891 (child_continue): Remove dead variable. Remove debug
18892 registers references.
18893 (child_fetch_inferior_registers): Go through the low target.
18894 (do_child_store_inferior_registers): Remove.
18895 (child_store_inferior_registers): Go through the low target.
18896 (win32_resume): Remove debug registers references.
18897 Set context using the low target.
18898 (handle_exception): Change return type to void. Don't record
18899 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18900 first chance exception.
18901 (get_child_debug_event): Change return type to void. Remove
18902 goto loop. Always return after waiting for debug event.
18903 (win32_wait): Convert to switch statement. Handle spurious
18904 events.
18905
18906 * win32-i386-low.c (debug_registers_changed,
18907 debug_registers_used): New.
18908 (initial_stuff): Rename to ...
18909 (i386_initial_stuff): ... this. Clear debug registers
18910 state variables.
18911 (store_debug_registers): Delete.
18912 (i386_get_thread_context): New.
18913 (load_debug_registers): Delete.
18914 (i386_set_thread_context): New.
18915 (i386_thread_added): New.
18916 (single_step): Rename to ...
18917 (i386_single_step): ... this.
18918 (do_fetch_inferior_registers): Rename to ...
18919 (i386_fetch_inferior_register): ... this.
18920 (i386_store_inferior_register): New.
18921 (the_low_target): Adapt to new interface.
18922
18923 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18924 (arm_get_thread_context): New.
18925 (arm_set_thread_context): New.
18926 (regptr): New.
18927 (do_fetch_inferior_registers): Rename to ...
18928 (arm_fetch_inferior_register): ... this.
18929 (arm_store_inferior_register): New.
18930 (arm_wince_breakpoint): Reimplement as unsigned long.
18931 (arm_wince_breakpoint_len): Define.
18932 (the_low_target): Adapt to new interface.
18933
18934 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18935 load_debug_registers. Add get_thread_context, set_thread_context,
18936 thread_added and store_inferior_register. Rename
18937 fetch_inferior_registers to fetch_inferior_register.
18938 (regptr): Remove declaration.
18939
18940 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18941
18942 * linux-low.c (linux_detach): Change return type to int. Return 0.
18943 * spu-low.c (spu_detach): Likewise.
18944
18945 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18946
18947 * target.h (target_ops): Change return type of detach to int.
18948 Add join.
18949 (join_inferior): New.
18950 * server.c (main): Don't skip detach support on mingw32.
18951 If the inferior doesn't support detaching return error.
18952 Call join_inferior instead of using waitpid.
18953 * linux-low.c (linux_join): New.
18954 (linux_target_op): Add linux_join.
18955 * spu-low.c (spu_join): New.
18956 (spu_target_ops): Add spu_join.
18957 * win32-low.c (win32_detach): Adapt to new interface.
18958 Reopen current_process_handle before detaching. Issue a child
18959 resume before detaching.
18960 (win32_join): New.
18961 (win32_target_op): Add win32_join.
18962
18963 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18964
18965 * win32-low.c (win32-attach): Fix return value.
18966 * target.h (target_ops): Describe ATTACH return values.
18967
18968 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18969
18970 * win32-low.c (GETPROCADDRESS): Define.
18971 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18972 (winapi_DebugSetProcessKillOnExit): Likewise.
18973 (win32_create_inferior): Force usage of ansi CreateProcessA.
18974 (win32_attach): Use GETPROCADDRESS.
18975 (win32_detach): Likewise.
18976
18977 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18978
18979 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18980
18981 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18982
18983 * win32-low.c: Commit leftover changes from 2007-03-29.
18984
18985 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18986
18987 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18988 fields short instead of int. Add explicit padding.
18989 (i387_cache_to_fsave): Remove unnecessary casts.
18990 (i387_fsave_to_cache): Doc fix.
18991 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18992
18993 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18994
18995 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18996 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18997
18998 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18999
19000 * configure.srv (arm*-*-mingw32ce*): Move near the other
19001 arm targets.
19002
19003 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19004
19005 * configure.ac: Add errno checking.
19006 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19007 sys/file.h and malloc.h.
19008 (AC_CHECK_DECLS): Add perror.
19009 (srv_mingwce): Handle.
19010 * configure.srv (i[34567]86-*-cygwin*): Add
19011 win32-i386-low.o to srv_tgtobj.
19012 (i[34567]86-*-mingw*): Likewise.
19013 (arm*-*-mingw32ce*): Add case.
19014 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19015 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19016 [__MINGW32CE__] (strerror): New function.
19017 [__MINGW32CE__] (errno): Define to GetLastError.
19018 [__MINGW32CE__] (COUNTOF): New macro.
19019 (remote_open): Remove extra close call.
19020 * mem-break.c (delete_breakpoint_at): New function.
19021 * mem-break.h (delete_breakpoint_at): Declare.
19022 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19023 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19024 [USE_WIN32API] (read, write): Add char* casts.
19025 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19026 * server.h: Include wincecompat.h on Windows CE.
19027 [HAVE_ERRNO_H]: Check.
19028 (perror): Declare if not declared.
19029 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19030 (perror_with_name): Remove errno declaration.
19031 * wincecompat.h: New.
19032 * wincecompat.c: New.
19033 * win32-low.h: New.
19034 * win32-arm-low.c: New.
19035 * win32-i386-low.c: New.
19036 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19037 (OUTMSG2): Make it safe.
19038 (_T): New macro.
19039 (COUNTOF): New macro.
19040 (NUM_REGS): Get it from the low target.
19041 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19042 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19043 (thread_rec): Let low target handle debug registers.
19044 (child_add_thread): Likewise.
19045 (child_init_thread_list): Likewise.
19046 (continue_one_thread): Likewise.
19047 (regptr): New.
19048 (do_child_fetch_inferior_registers): Move to ...
19049 * win32-i386-low.c: ... here, and rename to ...
19050 (do_fetch_inferior_registers): ... this.
19051 * win32-low.c (child_fetch_inferior_registers):
19052 Go through the low target.
19053 (do_child_store_inferior_registers): Use regptr.
19054 (strwinerror): New function.
19055 (win32_create_inferior): Handle Windows CE.
19056 Use strwinerror instead of strerror on Windows error
19057 codes. Add program to the error output.
19058 Don't close the main thread handle on Windows CE.
19059 (win32_attach): Use coredll.dll on Windows CE.
19060 (win32_kill): Close current process and current
19061 thread handles.
19062 (win32_detach): Use coredll.dll on Windows CE.
19063 (win32_resume): Let low target handle debug registers, and
19064 step request.
19065 (handle_exception): Add/Remove initial breakpoint. Avoid
19066 non-existant WSTOPSIG on Windows CE.
19067 (win32_read_inferior_memory): Cast to remove warning.
19068 (win32_arch_string): Go through the low target.
19069 (initialize_low): Call set_breakpoint_data with the low
19070 target's breakpoint.
19071 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19072 FOP_REGNUM, mappings): Move to ...
19073 * win32-i386-low.c: ... here.
19074 * win32-low.c (win32_thread_info): Move to ...
19075 * win32-low.h: ... here.
19076 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19077 win32-arm-low.c and wincecompat.c.
19078 (all:): Add $EXEEXT.
19079 (install-only:): Likewise.
19080 (gdbserver:): Likewise.
19081 (gdbreplay:): Likewise.
19082 * config.in: Regenerate.
19083 * configure: Regenerate.
19084
19085 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19086
19087 * win32-low.c: Rename typedef thread_info to
19088 win32_thread_info throughout.
19089
19090 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19091
19092 * win32-i386-low.c: Rename to ...
19093 * win32-low.c: ... this.
19094 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19095 * Makefile.in: Likewise.
19096
19097 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19098
19099 * remote-utils.c (monitor_output): Constify msg parameter.
19100 * server.h (monitor_output): Likewise.
19101 * win32-i386-low.c (handle_output_debug_string): New.
19102 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19103 handle_output_debug_string.
19104 (get_child_debug_event): Likewise.
19105
19106 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19107
19108 * server.c (main): Correct strtoul check.
19109
19110 2007-03-27 Jon Ringle <jon@ringle.org>
19111
19112 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19113
19114 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19115
19116 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19117
19118 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19119
19120 * terminal.h: Check HAVE_SGTTY_H.
19121
19122 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
19123
19124 * remote-utils.c (remote_open): Print out the assigned port number.
19125
19126 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19127
19128 * remote-utils.c (monitor_output): New function.
19129 * server.c (debug_threads): Define here.
19130 (monitor_show_help): New function.
19131 (handle_query): Handle qRcmd.
19132 (main): Do not handle 'd' packet.
19133 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19134 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19135 of debug_threads.
19136
19137 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19138
19139 * Makefile.in (EXEEXT): New.
19140 (clean): Use $(EXEEXT).
19141
19142 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19143
19144 * target.h (target_ops): Rename send_signal to request_interrupt,
19145 and remove enum target_signal parameter.
19146 * linux-low.c (linux_request_interrupt): Rename from
19147 linux_send_signal, and always send SIGINT.
19148 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19149 and always send SIGINT.
19150 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19151 of send_signal.
19152 (input_interrupt): Likewise.
19153
19154 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19155
19156 * server.c (get_features_xml): Check if target implemented
19157 arch_string.
19158 * win32-i386-low.c (win32_arch_string): New.
19159 (win32_target_ops): Add win32_arch_string as arch_string member.
19160
19161 2007-02-22 Markus Deuling <deuling@de.ibm.com>
19162
19163 * spu-low.c (spu_arch_string): New.
19164 (spu_target_ops): Add spu_arch_string.
19165
19166 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19167
19168 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19169 * configure.ac: Do not check for terminal.h.
19170 * configure, config.in: Regenerated.
19171
19172 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19173
19174 * Makefile.in (OBS): Add $(XML_BUILTIN).
19175 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19176 (clean): Update.
19177 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19178 (arm-with-iwmmxt.c): New.
19179 * config.in, configure: Regenerate.
19180 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19181 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19182 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19183 (arm*-*-linux*): Add iWMMXt and regset support.
19184 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19185 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19186 (arm_store_wmmxregset, target_regsets): New.
19187 * server.c (get_features_xml): Take annex argument. Check builtin
19188 XML documents.
19189 (handle_query): Handle multiple annexes.
19190
19191 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19192
19193 * remote-utils.c [USE_WIN32API] (read, write): Define.
19194 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19195 write.
19196
19197 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19198
19199 * linux-i386-low.c (the_low_target): Set arch_string.
19200 * linux-x86-64-low.c (the_low_target): Likewise.
19201 * linux-low.c (linux_arch_string): New.
19202 (linux_target_ops): Add it.
19203 * linux-low.h (struct linux_target_ops): Add arch_string.
19204 * server.c (write_qxfer_response): Use const void * for DATA.
19205 (get_features_xml): New.
19206 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19207 * target.h (struct target_ops): Add arch_string method.
19208
19209 2007-01-03 Denis Pilat <denis.pilat@st.com>
19210 Daniel Jacobowitz <dan@codesourcery.com>
19211
19212 * linux-low.c (linux_kill): Handle being called with no threads.
19213 * win32-i386-low.c (win32_kill): Likewise.
19214 (get_child_debug_event): Clear current_process_handle.
19215
19216 2006-12-30 Denis PILAT <denis.pilat@st.com>
19217 Daniel Jacobowitz <dan@codesourcery.com>
19218
19219 * remote-utils.c (remote_open): Check the type of specified
19220 serial port devices before opening them.
19221 * server.c (main): Kill the inferior if an error occurs during
19222 the first remote_open.
19223
19224 2006-12-05 Markus Deuling <deuling@de.ibm.com>
19225
19226 * README: Update supported targets.
19227
19228 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19229
19230 * Makefile.in (clean): Remove reg-mips64.c.
19231 (reg-mips64.c, reg-mips64.o): New rules.
19232 * configure.srv: Handle mips64. Include regset support for mips.
19233 * linux-mips-low.c (union mips_register): New.
19234 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19235 (mips_breakpoint, mips_breakpoint_at): Use int.
19236 (mips_collect_register, mips_supply_register)
19237 (mips_collect_register_32bit, mips_supply_register_32bit)
19238 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19239 (mips_store_fpregset, target_regsets): New.
19240 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19241
19242 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19243
19244 * configure.srv: Add target "spu*-*-*".
19245 * Makefile.in (clean): Remove reg-spu.c.
19246 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19247 * spu-low.c: New file.
19248
19249 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19250
19251 * configure.ac: Correct td_thr_tls_get_addr test.
19252 * configure: Regenerated.
19253
19254 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19255
19256 * linux-low.c (linux_wait_for_event): Reformat. Use the
19257 pass_signals array.
19258 * remote-utils.c (decode_address_to_semicolon): New.
19259 * server.c (pass_signals, handle_general_set): New.
19260 (handle_query): Mention QPassSignals for qSupported.
19261 (main): Call handle_general_set.
19262 * server.h (pass_signals, decode_address_to_semicolon): New.
19263
19264 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19265
19266 * server.c (handle_query): Correct error handling for read_auxv.
19267
19268 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19269
19270 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19271 and srv_linux_thread_db to yes.
19272 * linux-s390-low.c (s390_fill_gregset): New function.
19273 (target_regsets): Define data structure.
19274
19275 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19276
19277 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19278 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19279 * config.in, configure: Regenerated.
19280 * inferiors.c (gdb_id_to_thread): New function.
19281 (gdb_id_to_thread_id): Use it.
19282 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19283 * linux-low.h (struct process_info): Add th member.
19284 (thread_db_get_tls_address): New prototype.
19285 * remote-utils.c (decode_address): Make non-static.
19286 * server.c (handle_query): Handle qGetTLSAddr.
19287 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19288 * target.h (struct target_ops): Add get_tls_address.
19289 * thread-db.c (maybe_attach_thread): Save the thread handle.
19290 (thread_db_get_tls_address): New.
19291
19292 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19293
19294 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19295 (linux_resume_one_process): Take a siginfo_t *. Update all
19296 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19297 (struct pending_signals): Add a siginfo_t.
19298 (linux_wait_for_process): Always set last_status.
19299 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
19300 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
19301 * linux-low.h (struct process_info): Add last_status.
19302
19303 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19304
19305 * remote-utils.c (try_rle): New function.
19306 (putpkt_binary): Use it.
19307
19308 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19309
19310 * Makefile.in (clean): Clean reg-x86-64-linux.c.
19311 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
19312 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
19313 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
19314 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
19315 point registers.
19316
19317 2006-08-08 Richard Sandiford <richard@codesourcery.com>
19318
19319 * server.c (terminal_fd): New variable.
19320 (old_foreground_pgrp): Likewise.
19321 (restore_old_foreground_pgrp): New function.
19322 (start_inferior): Record the terminal file descriptor in terminal_fd
19323 and its original foreground group in old_foreground_pgrp. Register
19324 restore_old_foreground_pgrp with atexit().
19325
19326 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19327
19328 * server.c (handle_query): Correct qPart to qXfer.
19329
19330 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19331
19332 * configure.ac: Check for more headers which are missing on
19333 Windows. Automatically supply -lwsock32 and USE_WIN32API.
19334 * configure.srv: Add Cygwin and mingw32.
19335 * remote-utils.c: Don't include headers unconditionally which
19336 are missing on mingw32. Include <winsock.h> for mingw32.
19337 (remote_open): Adjust for mingw32 support. Flush
19338 standard error after writing to it.
19339 (remote_close, putpkt_binary, input_interrupt, block_async_io)
19340 (unblock_async_io, enable_async_io, disable_async_io)
19341 (readchar, getpkt): Update for Winsock support.
19342 (prepare_resume_reply): Expect a protocol signal number.
19343 * server.c: Disable <sys/wait.h> on mingw32.
19344 (start_inferior): Adjust for mingw32 support. Flush
19345 standard error after writing to it.
19346 (attach_inferior): Likewise. Use protocol signal
19347 numbers.
19348 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19349 and names.
19350 * win32-i386-low.c: New file.
19351 * Makefile.in (XM_CLIBS): Set.
19352 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
19353 (win32-i386-low.o): New dependency rule.
19354 * linux-low.c (linux_wait): Use target signal numbers.
19355 * target.h (struct target_ops): Doc fix.
19356 * server.h (target_signal_to_name): New prototype.
19357 * gdbreplay.c: Don't include headers unconditionally which
19358 are missing on mingw32. Include <winsock.h> for mingw32.
19359 (remote_close, remote_open): Adjust for Winsock support.
19360 * configure, config.in: Regenerated.
19361
19362 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19363
19364 * server.c (decode_xfer_read, write_qxfer_response): New.
19365 (handle_query): Take a packet length argument. Handle
19366 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
19367 the qSupported response.
19368 (main): Update call to handle_query.
19369
19370 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
19371
19372 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
19373 (putpkt_binary): Renamed from putpkt and adjusted for binary
19374 data.
19375 (putpkt): New wrapper for putpkt_binary.
19376 (readchar): Don't mask off the high bit.
19377 (decode_X_packet): New function.
19378 * server.c (main): Call putpkt_binary if a handler sets the packet
19379 length. Save the length of the incoming packet. Handle 'X'.
19380 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
19381
19382 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
19383
19384 * server.c (handle_query): Handle qSupported.
19385
19386 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19387
19388 * remote-utils.c (all_symbols_looked_up): New variable.
19389 (look_up_one_symbol): Check it.
19390 * server.h (look_up_one_symbol): New declaration.
19391 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
19392
19393 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19394
19395 * Makefile.in (linux-arm-low.o): Update dependencies.
19396 * linux-arm-low.c: Include "gdb_proc_service.h".
19397 (PTRACE_GET_THREAD_AREA): Define.
19398 (ps_get_thread_area): New function.
19399
19400 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
19401
19402 * configure.srv (m68k*-*-uclinux*): New target.
19403 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
19404 (linux_resume_one_process): Remove extraneous cast.
19405 (linux_read_offsets): New.
19406 (linux_target_op): Add linux_read_offsets on mmuless systems.
19407 * server.c (handle_query): Add qOffsets logic.
19408 * target.h (struct target_ops): Add read_offsets.
19409
19410 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19411
19412 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
19413 (PTRACE_GET_THREAD_AREA): Define.
19414 (ps_get_thread_area): New function.
19415 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
19416 (linux-x86-64-low.o): Update.
19417
19418 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19419
19420 * configure.ac: Remove checks for prfpregset_t.
19421 * gdb_proc_service.h: New file.
19422 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
19423 new "gdb_proc_service.h".
19424 * proc-service.c: Likewise.
19425 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
19426 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
19427 * Makefile.in (gdb_proc_service_h): Updated.
19428 * configure, config.in: Regenerated.
19429
19430 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19431
19432 * remote-utils.c (prepare_resume_reply): Move declaration
19433 of gdb_id_from_wait to the top of the block.
19434
19435 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
19436
19437 * linux-low.c (regsets_store_inferior_registers): Read the regset
19438 from the target before filling it.
19439
19440 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19441
19442 * server.c (attach_inferior): Return SIGTRAP for a successful
19443 attach.
19444
19445 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19446
19447 * Makefile.in (OBS): Add version.o.
19448 (STAGESTUFF): Delete.
19449 (version.o): Add dependencies.
19450 (version.c): Replace rule.
19451 (clean): Remove version.c.
19452 * server.c (gdbserver_version): New.
19453 (gdbserver_usage): Use printf.
19454 (main): Handle --version and --help.
19455 * server.h (version, host_name): Add declarations.
19456
19457 2005-12-23 Eli Zaretskii <eliz@gnu.org>
19458
19459 * linux-arm-low.c:
19460 * linux-arm-low.c:
19461 * inferiors.c:
19462 * i387-fp.h:
19463 * i387-fp.c:
19464 * gdbreplay.c:
19465 * regcache.c:
19466 * proc-service.c:
19467 * mem-break.h:
19468 * mem-break.c:
19469 * linux-x86-64-low.c:
19470 * linux-sh-low.c:
19471 * linux-s390-low.c:
19472 * linux-ppc64-low.c:
19473 * linux-ppc-low.c:
19474 * linux-mips-low.c:
19475 * linux-m68k-low.c:
19476 * linux-m32r-low.c:
19477 * linux-low.h:
19478 * linux-low.c:
19479 * linux-ia64-low.c:
19480 * linux-i386-low.c:
19481 * linux-crisv32-low.c:
19482 * thread-db.c:
19483 * terminal.h:
19484 * target.h:
19485 * target.c:
19486 * server.h:
19487 * server.c:
19488 * remote-utils.c:
19489 * regcache.h:
19490 * utils.c:
19491 * Makefile.in:
19492 * configure.ac:
19493 * gdbserver.1: Add (C) after Copyright. Update the FSF
19494 address.
19495
19496 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19497
19498 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
19499 (arm_breakpoint_at): Recognize both breakpoints.
19500 (the_low_target): Use the correct breakpoint instruction.
19501
19502 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19503
19504 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19505 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19506 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19507 (the_low_target): Update.
19508
19509 2005-10-25 Andreas Schwab <schwab@suse.de>
19510
19511 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19512
19513 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19514 (ia64_num_regs): Reduce to 462.
19515
19516 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19517
19518 * acinclude.m4: Correct quoting.
19519 * aclocal.m4: Regenerated.
19520
19521 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19522 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19523 (thread_db_init): Call thread_db_err_str.
19524 * configure.ac: Check for TD_VERSION.
19525 * config.in, configure: Regenerated.
19526
19527 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19528
19529 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19530
19531 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19532
19533 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19534 is not available. Define HAVE_PTRACE_GETREGS if it is.
19535 * config.in, configure: Regenerated.
19536 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19537 * linux-i386-low.c, linux-m68k-low.c: Update to use
19538 HAVE_PTRACE_GETREGS.
19539 * linux-low.c (regsets_fetch_inferior_registers)
19540 (regsets_store_inferior_registers): Only return 0 if we processed
19541 GENERAL_REGS.
19542 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19543 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19544
19545 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19546
19547 * inferiors.c (struct thread_info): Add gdb_id.
19548 (add_thread): Add gdb_id argument.
19549 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19550 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19551 calls to add_thread.
19552 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19553 * server.c (handle_query): Use thread_to_gdb_id.
19554 (handle_v_cont, main): Use gdb_id_to_thread_id.
19555 * server.h (add_thread): Update prototype.
19556 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19557 prototypes.
19558
19559 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19560
19561 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19562 left-padded registers.
19563 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19564 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19565
19566 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19567
19568 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19569 * configure: Regenerate.
19570 * config.in: Regenerate.
19571 * server.h (NEED_DECLARATION_STRERROR):
19572 Replace with !HAVE_DECL_STRERROR.
19573
19574 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19575
19576 * linux-low.c (linux_wait, linux_send_signal): Don't test
19577 an unsigned long variable for > 0 if it could be MAX_ULONG.
19578 * server.c (myresume): Likewise.
19579 * target.c (set_desired_inferior): Likewise.
19580
19581 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19582
19583 * configure.ac: Simplify and improve check for socklen_t.
19584 * configure, config.in: Regenerate.
19585
19586 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19587
19588 * acconfig.h: Remove.
19589 * configure.ac: Add a test for socklen_t. Use three-argument
19590 AC_DEFINE throughout.
19591 * config.in: Regenerated using autoheader 2.59.
19592 * configure: Regenerated.
19593
19594 * gdbreplay.c (socklen_t): Provide a default.
19595 (remote_open): Use socklen_t.
19596 * remote-utils.c (socklen_t): Provide a default.
19597 (remote_open): Use socklen_t.
19598 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19599 unsigned char.
19600
19601 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19602 char for buffers.
19603 * linux-low.c (linux_read_memory, linux_write_memory)
19604 (linux_read_auxv): Likewise.
19605 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19606 (check_mem_write): Likewise.
19607 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19608 Likewise.
19609 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19610 (registers_from_string, register_data): Likewise.
19611 * server.c (handle_query, main): Likewise.
19612 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19613 (decode_M_packet): Likewise.
19614 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19615 * target.h (struct target_ops): Update read_memory, write_memory,
19616 and read_auxv.
19617 (read_inferior_memory, write_inferior_memory): Update.
19618 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19619 to unsigned char *.
19620 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19621 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19622 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19623 linux-s390-low.c, linux-sh-low.c: Update for changes in
19624 read_inferior_memory and the_low_target->breakpoint.
19625
19626 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19627
19628 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19629 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19630 * configure.srv: Add powerpc64-*-linux*.
19631 * linux-ppc64-low.c: New file.
19632
19633 2005-05-23 Orjan Friberg <orjanf@axis.com>
19634
19635 * linux-cris-low.c: New file with support for CRIS.
19636 * linux-crisv32-low.c: Ditto for CRISv32.
19637 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19638 (clean): Add reg-cris.c and reg-crisv32.c.
19639 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19640 reg-crisv32.o, and reg-crisv32.c to make rules.
19641 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19642 recognized targets.
19643
19644 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19645
19646 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19647 of sizeof (PTRACE_XFER_TYPE).
19648 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19649
19650 2005-05-12 Orjan Friberg <orjanf@axis.com>
19651
19652 * target.h (struct target_ops): Add insert_watchpoint,
19653 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19654 pointers for hardware watchpoint support.
19655 * linux-low.h (struct linux_target_ops): Ditto.
19656 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19657 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19658 to linux_target_ops.
19659 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19660 reply packet.
19661 * server.c (main): Recognize 'Z' and 'z' packets.
19662
19663 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19664
19665 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19666 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19667 (the_low_target): Add new members.
19668
19669 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19670
19671 * proc-service.c (ps_lgetregs): Search all_processes instead of
19672 all_threads.
19673
19674 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19675
19676 * server.c (start_inferior): Change return type to int.
19677 (attach_inferior): Change sigptr to int *.
19678 (handle_v_cont, handle_v_requests): Change signal to int *.
19679 (main): Change signal to int.
19680
19681 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19682
19683 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19684 * configure.srv: Add m32r*-*-linux*.
19685 * linux-m32r-low.c: New file.
19686
19687 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19688
19689 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19690
19691 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19692
19693 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19694 Take unsigned long arguments for PIDs.
19695 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19696 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19697 (wait_for_sigstop, linux_resume_one_process)
19698 (regsets_fetch_inferior_registers, linux_send_signal)
19699 (linux_read_auxv): Likewise. Update the types of variables holding
19700 PIDs. Update format string specifiers.
19701 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19702 * remote-utils.c (prepare_resume_reply): Likewise.
19703 * server.c (cont_thread, general_thread, step_thread)
19704 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19705 unsigned long.
19706 (handle_query): Update format specifiers.
19707 (handle_v_cont, main): Use strtoul for thread IDs.
19708 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19709 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19710 (general_thread, step_thread, thread_from_wait)
19711 (old_thread_from_wait): Update.
19712 * target.h (struct thread_resume): Use unsigned long for THREAD.
19713 (struct target_ops): Use unsigned long for arguments to attach and
19714 thread_alive.
19715
19716 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19717
19718 * acinclude.m4: Include bfd/bfd.m4 directly.
19719 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19720 <agriffis@toolchain.org>.
19721 * aclocal.m4, configure: Regenerated.
19722
19723 2005-01-07 Andrew Cagney <cagney@gnu.org>
19724
19725 * configure.ac: Rename configure.in, require autoconf 2.59.
19726 * configure: Re-generate.
19727
19728 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19729
19730 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19731 LIBS when finished.
19732 * aclocal.m4: Regenerated.
19733 * configure: Regenerated.
19734
19735 2004-11-21 Andreas Schwab <schwab@suse.de>
19736
19737 * linux-m68k-low.c (m68k_num_gregs): Define.
19738 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19739 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19740 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19741 (m68k_breakpoint_at): New. Add to the_low_target.
19742
19743 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19744 srv_linux_thread_db to yes.
19745
19746 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19747
19748 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19749 (ARCH_SET_FS): Likewise.
19750 (ARCH_GET_FS): Likewise.
19751 (ARCH_GET_GS): Likewise.
19752
19753 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19754
19755 * linux-i386-low.c (ps_get_thread_area): New.
19756 * linux-x86-64-low.c (ps_get_thread_area): New.
19757 * linux-low.c: Include <sys/syscall.h>.
19758 (linux_kill_one_process): Don't kill the first thread here.
19759 (linux_kill): Kill the first thread here.
19760 (kill_lwp): New function.
19761 (send_sigstop, linux_send_signal): Use it.
19762 * proc-service.c: Clean up #ifdefs.
19763 (fpregset_info): Delete.
19764 (ps_lgetregs): Update and enable implementation.
19765 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19766 implementations.
19767 * remote-utils.c (struct sym_cache, symbol_cache): New.
19768 (input_interrupt): Print a clearer message.
19769 (async_io_enabled): New variable.
19770 (enable_async_io, disable_async_io): Use it. Update comments.
19771 (look_up_one_symbol): Use the symbol cache.
19772 * thread-db.c (thread_db_look_up_symbols): New function.
19773 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19774
19775 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19776
19777 * configure.in: Test for -rdynamic.
19778 * configure: Regenerated.
19779 * Makefile (INTERNAL_LDFLAGS): New.
19780 (gdbserver, gdbreplay): Use it.
19781
19782 2004-09-02 Andrew Cagney <cagney@gnu.org>
19783
19784 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19785
19786 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19787
19788 * linux-low.c (linux_wait): Clear all_processes list also.
19789
19790 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19791
19792 * linux-low.c: Include <errno.h>. Remove extern declaration of
19793 errno.
19794
19795 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19796
19797 * gdbreplay.c, server.h, utils.c: Update copyright years.
19798
19799 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19800
19801 * server.c (main): Print child status or termination signal from
19802 variable 'signal', not 'sig'.
19803
19804 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19805
19806 * linux-low.c (linux_read_memory): Change return type to
19807 int. Check for and return error from ptrace().
19808 * target.c (read_inferior_memory): Change return type to int. Pass
19809 back return status from the_target->read_memory().
19810 * target.h (struct target_ops): Adapt *read_memory() prototype.
19811 Update comment.
19812 (read_inferior_memory): Adapt prototype.
19813 * server.c (main): Return an error packet if
19814 read_inferior_memory() returns an error.
19815
19816 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19817
19818 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19819 Unify with other clean targets.
19820
19821 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19822
19823 * server.c (handle_v_cont): Call set_desired_inferior.
19824
19825 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19826
19827 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19828
19829 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19830
19831 * linux-low.c (linux_wait): Unblock async I/O.
19832 (linux_resume): Block and enable async I/O.
19833 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19834 * server.h (block_async_io, unblock_async_io): Add prototypes.
19835
19836 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19837
19838 * remote-utils.c (remote_open): Print a status notice after
19839 opening a TCP port.
19840 * server.c (attach_inferior): Print a status notice after
19841 attaching.
19842
19843 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19844
19845 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19846
19847 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19848
19849 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19850 error packet.
19851 * server.c, target.h: Update copyright years.
19852
19853 2004-02-25 Roland McGrath <roland@redhat.com>
19854
19855 * target.h (struct target_ops): New member `read_auxv'.
19856 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19857 * linux-low.c (linux_read_auxv): New function.
19858 (linux_target_ops): Initialize `read_auxv' member to that.
19859
19860 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19861
19862 Committed by Jim Blandy <jimb@redhat.com>.
19863
19864 * linux-s390-low.c (s390_num_regs): Update.
19865 (s390_regmap): Remove control registers. Use __s390x__ predefine
19866 instead of GPR_SIZE to distiguish s390 and s390x targets.
19867
19868 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19869
19870 * linux-low.c: Update copyright year.
19871 (check_removed_breakpoint): Clear pending_is_breakpoint.
19872 (linux_set_resume_request, linux_queue_one_thread)
19873 (resume_status_pending_p): New functions.
19874 (linux_continue_one_thread): Use process->resume.
19875 (linux_resume): Only resume threads if there are no pending events.
19876 * linux-low.h (struct process_info): Add resume request
19877 pointer.
19878
19879 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19880
19881 * regcache.c (new_register_cache): Clear the allocated register
19882 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19883
19884 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19885
19886 * linux-low.c (linux_resume): Take a struct thread_resume *
19887 argument.
19888 (linux_wait): Update call.
19889 (resume_ptr): New static variable.
19890 (linux_continue_one_thread): Renamed from
19891 linux_continue_one_process. Use resume_ptr.
19892 (linux_resume): Use linux_continue_one_thread.
19893 * server.c (handle_v_cont, handle_v_requests): New functions.
19894 (myresume): New function.
19895 (main): Handle 'v' case.
19896 * target.h (struct thread_resume): New type.
19897 (struct target_ops): Change argument of "resume" to struct
19898 thread_resume *.
19899 (myresume): Delete macro.
19900
19901 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19902
19903 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19904 (uninstall): Support DESTDIR.
19905
19906 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19907
19908 * configure.srv: Add xscale*linux copy of arm*linux entry.
19909
19910 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19911
19912 * linux-arm-low.c (arm_reinsert_addr): New function.
19913 (the_low_target): Add arm_reinsert_addr.
19914
19915 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19916
19917 * mem-break.c: Remove whitespace at end of file.
19918
19919 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19920
19921 * configure.in: Check whether we need to prototype strerror.
19922 * server.h: Optionally prototype strerror.
19923 * gdbreplay.c (perror_with_name): Use strerror.
19924 * linux-low.c (linux_attach_lwp): Use strerror.
19925 * utils.c (perror_with_name): Use strerror.
19926 * config.in, configure: Regenerated.
19927
19928 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19929
19930 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19931 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19932
19933 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19934
19935 * Makefile.in (SFILES): Update.
19936 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19937 low-sun3.c: Remove files.
19938
19939 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19940
19941 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19942 (linux_detach_one_process, linux_detach): New functions.
19943 (linux_target_ops): Add linux_detach.
19944 * server.c (main): Handle 'D' packet.
19945 * target.h (struct target_ops): Add "detach" member.
19946 (detach_inferior): Define.
19947
19948 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19949
19950 From Kelley Cook <kelleycook@wideopenwest.com>:
19951 * configure.srv: Accept i[34567]86 variants.
19952
19953 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19954
19955 * linux-low.c (linux_wait_for_event): Correct comment typos.
19956 (linux_resume_one_process): Call check_removed_breakpoint.
19957 (linux_send_signal): New function.
19958 (linux_target_ops): Add linux_send_signal.
19959 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19960 of kill.
19961 * target.h (struct target_ops): Add send_signal.
19962
19963 2003-05-29 Jim Blandy <jimb@redhat.com>
19964
19965 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19966 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19967 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19968 away part of the register's value.
19969
19970 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19971
19972 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19973 (linux_wait_for_event, linux_init_signals): Likewise.
19974
19975 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19976
19977 * configure.in: Check for stdlib.h.
19978 * configure: Regenerated.
19979 * config.in: Regenerated.
19980
19981 2003-01-04 Andreas Schwab <schwab@suse.de>
19982
19983 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19984
19985 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19986
19987 * Makefile.in: Remove obsolete code.
19988
19989 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19990
19991 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19992 defined(PT_FPR0_HI).
19993
19994 2002-11-17 Stuart Hughes <seh@zee2.com>
19995
19996 * linux-arm-low.c (arm_num_regs): Increase.
19997 (arm_regmap): Include status register.
19998
19999 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
20000
20001 * linux-low.c (register_addr): Remove incorrect -1 check.
20002
20003 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
20004
20005 * linux-low.c (linux_create_inferior): Call setpgid. Return
20006 the new PID.
20007 (unstopped_p, linux_signal_pid): Remove.
20008 (linux_target_ops): Remove linux_signal_pid.
20009 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20010 global instead of target method.
20011 * target.h (struct target_ops): Remove signal_pid. Update comment
20012 for create_inferior.
20013 * server.c (signal_pid): New variable.
20014 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
20015 gdbserver. Set the child to be the foreground process group.
20016 (attach_inferior): Set signal_pid.
20017
20018 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
20019
20020 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20021
20022 2002-08-20 Jim Blandy <jimb@redhat.com>
20023
20024 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20025 default for this.
20026
20027 2002-08-01 Andrew Cagney <cagney@redhat.com>
20028
20029 * Makefile.in: Make chill references obsolete.
20030
20031 2002-07-24 Kevin Buettner <kevinb@redhat.com>
20032
20033 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20034 * configure: Regenerate.
20035 * config.in: Regenerate.
20036
20037 2002-07-09 David O'Brien <obrien@FreeBSD.org>
20038
20039 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20040 (perror_with_name, remote_close, remote_open, expect, play): Static.
20041
20042 2002-07-04 Michal Ludvig <mludvig@suse.cz>
20043
20044 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
20045 byte offsets instead of an array of indexes.
20046 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20047
20048 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
20049
20050 * regcache.c: Add comment.
20051
20052 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
20053
20054 * thread-db.c: New file.
20055 * proc-service.c: New file.
20056 * acinclude.m4: New file.
20057 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20058 proc-service.o, and thread-db.o.
20059 (linux-low.o): Add USE_THREAD_DB.
20060 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20061 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20062 * aclocal.m4: Regenerated.
20063 * config.in: Regenerated.
20064 * configure: Regenerated.
20065 * configure.in: Check for proc_service.h, sys/procfs.h,
20066 thread_db.h, and linux/elf.h headrs.
20067 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20068 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20069 Check for -lthread_db and thread support.
20070 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20071 PowerPC, and SuperH.
20072 * i387-fp.c: Constify arguments.
20073 * i387-fp.h: Likewise.
20074 * inferiors.c: (struct thread_info): Renamed from
20075 `struct inferior_info'. Remove PID member. Use generic inferior
20076 list header. All uses updated.
20077 (inferiors, signal_pid): Removed.
20078 (all_threads): New variable.
20079 (get_thread): Define.
20080 (add_inferior_to_list): New function.
20081 (for_each_inferior): New function.
20082 (change_inferior_id): New function.
20083 (add_inferior): Removed.
20084 (remove_inferior): New function.
20085 (add_thread): New function.
20086 (free_one_thread): New function.
20087 (remove_thread): New function.
20088 (clear_inferiors): Use for_each_inferior and free_one_thread.
20089 (find_inferior): New function.
20090 (find_inferior_id): New function.
20091 (inferior_target_data): Update argument type.
20092 (set_inferior_target_data): Likewise.
20093 (inferior_regcache_data): Likewise.
20094 (set_inferior_regcache_data): Likewise.
20095 * linux-low.c (linux_bp_reinsert): Remove.
20096 (all_processes, stopping_threads, using_thrads)
20097 (struct pending_signals, debug_threads, pid_of): New.
20098 (inferior_pid): Replace with macro.
20099 (struct inferior_linux_data): Remove.
20100 (get_stop_pc, add_process): New functions.
20101 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20102 Use add_process and add_thread.
20103 (linux_attach_lwp): New function, based on old linux_attach. Use
20104 add_process and add_thread. Set stop_expected for new threads.
20105 (linux_attach): New function.
20106 (linux_kill_one_process): New function.
20107 (linux_kill): Kill all LWPs.
20108 (linux_thread_alive): Use find_inferior_id.
20109 (check_removed_breakpoints, status_pending_p): New functions.
20110 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20111 Update. Use WNOHANG. Wait for cloned processes also. Update process
20112 struct for the found process.
20113 (linux_wait_for_event): New function.
20114 (linux_wait): Use it. Support LWPs.
20115 (send_sigstop, wait_for_sigstop, stop_all_processes)
20116 (linux_resume_one_process, linux_continue_one_process): New functions.
20117 (linux_resume): Support LWPs.
20118 (REGISTER_RAW_SIZE): Remove.
20119 (fetch_register): Use register_size instead. Call supply_register.
20120 (usr_store_inferior_registers): Likewise. Call collect_register.
20121 Fix recursive case.
20122 (regsets_fetch_inferior_registers): Improve error message.
20123 (regsets_store_inferior_registers): Add debugging.
20124 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20125 (unstopped_p, linux_signal_pid): New functions.
20126 (linux_target_ops): Add linux_signal_pid.
20127 (linux_init_signals): New function.
20128 (initialize_low): Call it. Initialize using_threads.
20129 * regcache.c (inferior_regcache_data): Add valid
20130 flag.
20131 (get_regcache): Fetch registers lazily. Add fetch argument
20132 and update all callers.
20133 (regcache_invalidate_one, regcache_invalidate): New
20134 functions.
20135 (new_register_cache): Renamed from create_register_cache.
20136 Return the new regcache.
20137 (free_register_cache): Change argument to a void *.
20138 (registers_to_string, registers_from_string): Call get_regcache
20139 with fetch flag set.
20140 (register_data): Make static. Pass fetch flag to get_regcache.
20141 (supply_register): Call get_regcache with fetch flag clear.
20142 (collect_register): Call get_regcache with fetch flag set.
20143 (collect_register_as_string): New function.
20144 * regcache.h: Update.
20145 * remote-utils.c (putpkt): Flush after debug output and use
20146 stderr.
20147 Handle input interrupts while waiting for an ACK.
20148 (input_interrupt): Use signal_pid method.
20149 (getpkt): Flush after debug output and use stderr.
20150 (outreg): Use collect_register_as_string.
20151 (new_thread_notify, dead_thread_notify): New functions.
20152 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20153 and general_thread.
20154 (look_up_one_symbol): Flush after debug output.
20155 * server.c (step_thread, server_waiting): New variables.
20156 (start_inferior): Don't use signal_pid. Update call to mywait.
20157 (attach_inferior): Update call to mywait.
20158 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20159 (main): Don't fetch/store registers explicitly. Use
20160 set_desired_inferior. Support proposed ``Hs'' packet. Update
20161 calls to mywait.
20162 * server.h: Update.
20163 (struct inferior_list, struct_inferior_list_entry): New.
20164 * target.c (set_desired_inferior): New.
20165 (write_inferior_memory): Constify.
20166 (mywait): New function.
20167 * target.h: Update.
20168 (struct target_ops): New signal_pid method.
20169 (mywait): Removed macro, added prototype.
20170
20171 * linux-low.h (regset_func): Removed.
20172 (regset_fill_func, regset_store_func): New.
20173 (enum regset_type): New.
20174 (struct regset_info): Add type field. Use new operation types.
20175 (struct linux_target_ops): stop_pc renamed to get_pc.
20176 Add decr_pc_after_break and breakpoint_at.
20177 (get_process, get_thread_proess, get_process_thread)
20178 (strut process_info, all_processes, linux_attach_lwp)
20179 (thread_db_init): New.
20180
20181 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20182 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20183 (the_low_target): Add new members.
20184 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20185 (i386_store_fpxregset): Constify.
20186 (target_regsets): Add new kind identifier.
20187 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20188 (i386_set_pc): Add debugging.
20189 (i386_breakpoint_at): New function.
20190 (the_low_target): Add new members.
20191 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20192 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20193 (mips_breakpoint_at): New.
20194 (the_low_target): Add new members.
20195 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20196 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20197 (the_low_target): Add new members.
20198 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20199 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20200 (the_low_target): Add new members.
20201 * linux-x86-64-low.c (target_regsets): Add new kind
20202 identifier.
20203
20204 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
20205
20206 From Martin Pool <mbp@samba.org>:
20207 * server.c (gdbserver_usage): New function.
20208 (main): Call it.
20209
20210 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
20211
20212 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20213 stop_at -> stop_pc.
20214
20215 2002-05-04 Andrew Cagney <ac131313@redhat.com>
20216
20217 * Makefile.in: Remove obsolete code.
20218
20219 2002-04-24 Michal Ludvig <mludvig@suse.cz>
20220
20221 * linux-low.c (regsets_fetch_inferior_registers),
20222 (regsets_store_inferior_registers): Removed cast to int from
20223 ptrace() calls.
20224 * regcache.h: Added declaration of struct inferior_info.
20225
20226 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20227
20228 * inferiors.c (struct inferior_info): Add regcache_data.
20229 (add_inferior): Call create_register_cache.
20230 (clear_inferiors): Call free_register_cache.
20231 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20232 * regcache.c (struct inferior_regcache_data): New.
20233 (registers): Remove.
20234 (get_regcache): New function.
20235 (create_register_cache, free_register_cache): New functions.
20236 (set_register_cache): Don't initialize the register cache here.
20237 (registers_to_string, registers_from_string, register_data): Call
20238 get_regcache.
20239 * regcache.h: Add prototypes.
20240 * server.h: Likewise.
20241
20242 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20243
20244 * mem-break.c: New file.
20245 * mem-break.h: New file.
20246 * Makefile.in: Add mem-break.o rule; update server.h
20247 dependencies.
20248 * inferiors.c (struct inferior_info): Add target_data
20249 member.
20250 (clear_inferiors): Free target_data member if set.
20251 (inferior_target_data, set_inferior_target_data): New functions.
20252 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20253 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20254 * linux-low.c (linux_bp_reinsert): New variable.
20255 (struct inferior_linux_data): New.
20256 (linux_create_inferior): Use set_inferior_target_data.
20257 (linux_attach): Likewise. Call add_inferior.
20258 (linux_wait_for_one_inferior): New function.
20259 (linux_wait): Call it.
20260 (linux_write_memory): Add const.
20261 (initialize_low): Call set_breakpoint_data.
20262 * linux-low.h (struct linux_target_ops): Add breakpoint
20263 handling members.
20264 * server.c (attach_inferior): Remove extra add_inferior
20265 call.
20266 * server.h: Include mem-break.h. Update inferior.c
20267 prototypes.
20268 * target.c (read_inferior_memory)
20269 (write_inferior_memory): New functions.
20270 * target.h (read_inferior_memory)
20271 (write_inferior_memory): Change macros to prototypes.
20272 (struct target_ops): Update comments. Add const to write_memory
20273 definition.
20274
20275 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
20276
20277 * linux-low.c (usr_store_inferior_registers): Support
20278 registers which are allowed to fail to store.
20279 * linux-low.h (linux_target_ops): Likewise.
20280 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20281 (ppc_cannot_store_register): FPSCR may not be storable.
20282
20283 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20284
20285 * server.h: Include <string.h> if HAVE_STRING_H.
20286 * ChangeLog: Correct paths in last ChangeLog entry.
20287
20288 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20289
20290 * linux-low.h: Remove obsolete prototypes.
20291 (struct linux_target_ops): New.
20292 (extern the_low_target): New.
20293 * linux-low.c (num_regs, regmap): Remove declarations.
20294 (register_addr): Use the_low_target explicitly.
20295 (fetch_register): Likewise.
20296 (usr_fetch_inferior_registers): Likewise.
20297 (usr_store_inferior_registers): Likewise.
20298 * linux-arm-low.c (num_regs): Remove.
20299 (arm_num_regs): Define.
20300 (arm_regmap): Renamed from regmap, made static.
20301 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
20302 made static.
20303 (arm_cannot_store_register): Renamed from cannot_store_register,
20304 made static.
20305 (the_low_target): New.
20306 * linux-i386-low.c (num_regs): Remove.
20307 (i386_num_regs): Define.
20308 (i386_regmap): Renamed from regmap, made static.
20309 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
20310 made static.
20311 (i386_cannot_store_register): Renamed from cannot_store_register,
20312 made static.
20313 (the_low_target): New.
20314 * linux-ia64-low.c (num_regs): Remove.
20315 (ia64_num_regs): Define.
20316 (ia64_regmap): Renamed from regmap, made static.
20317 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
20318 made static.
20319 (ia64_cannot_store_register): Renamed from cannot_store_register,
20320 made static.
20321 (the_low_target): New.
20322 * linux-m68k-low.c (num_regs): Remove.
20323 (m68k_num_regs): Define.
20324 (m68k_regmap): Renamed from regmap, made static.
20325 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
20326 made static.
20327 (m68k_cannot_store_register): Renamed from cannot_store_register,
20328 made static.
20329 (the_low_target): New.
20330 * linux-mips-low.c (num_regs): Remove.
20331 (mips_num_regs): Define.
20332 (mips_regmap): Renamed from regmap, made static.
20333 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
20334 made static.
20335 (mips_cannot_store_register): Renamed from cannot_store_register,
20336 made static.
20337 (the_low_target): New.
20338 * linux-ppc-low.c (num_regs): Remove.
20339 (ppc_num_regs): Define.
20340 (ppc_regmap): Renamed from regmap, made static.
20341 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
20342 made static.
20343 (ppc_cannot_store_register): Renamed from cannot_store_register,
20344 made static.
20345 (the_low_target): New.
20346 * linux-s390-low.c (num_regs): Remove.
20347 (s390_num_regs): Define.
20348 (s390_regmap): Renamed from regmap, made static.
20349 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
20350 made static.
20351 (s390_cannot_store_register): Renamed from cannot_store_register,
20352 made static.
20353 (the_low_target): New.
20354 * linux-sh-low.c (num_regs): Remove.
20355 (sh_num_regs): Define.
20356 (sh_regmap): Renamed from regmap, made static.
20357 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
20358 made static.
20359 (sh_cannot_store_register): Renamed from cannot_store_register,
20360 made static.
20361 (the_low_target): New.
20362 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
20363 (the_low_target): New.
20364
20365 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20366
20367 * Makefile.in: Add stamp-h target.
20368 * configure.in: Create stamp-h.
20369 * configure: Regenerated.
20370
20371 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20372
20373 * inferiors.c: New file.
20374 * target.c: New file.
20375 * target.h: New file.
20376 * Makefile.in: Add target.o and inferiors.o. Update
20377 dependencies.
20378 * linux-low.c (inferior_pid): New static variable,
20379 moved from server.c.
20380 (linux_create_inferior): Renamed from create_inferior.
20381 Call add_inferior. Return 0 on success instead of a PID.
20382 (linux_attach): Renamed from myattach.
20383 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
20384 (linux_thread_alive): Renamed from mythread_alive.
20385 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
20386 child dies.
20387 (linux_resume): Renamed from myresume. Add missing ``return 0''.
20388 (regsets_store_inferior_registers): Correct error message.
20389 Add missing ``return 0''.
20390 (linux_fetch_registers): Renamed from fetch_inferior_registers.
20391 (linux_store_registers): Renamed from store_inferior_registers.
20392 (linux_read_memory): Renamed from read_inferior_memory.
20393 (linux_write_memory): Renamed from write_inferior_memory.
20394 (linux_target_ops): New structure.
20395 (initialize_low): Call set_target_ops ().
20396 * remote-utils.c (unhexify): New function.
20397 (hexify): New function.
20398 (input_interrupt): Send signals to ``signal_pid''.
20399 * server.c (inferior_pid): Remove.
20400 (start_inferior): Update create_inferior call.
20401 (attach_inferior): Call add_inferior.
20402 (handle_query): New function.
20403 (main): Call handle_query for `q' packets.
20404 * server.h: Include "target.h". Remove obsolete prototypes.
20405 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
20406
20407 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20408
20409 * Makefile.in: Add WARN_CFLAGS. Update configury
20410 dependencies.
20411 * configure.in: Check for <string.h>
20412 * configure: Regenerate.
20413 * config.in: Regenerate.
20414 * gdbreplay.c: Include needed system headers.
20415 (remote_open): Remove strchr prototype.
20416 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
20417 * regcache.c (supply_register): Change buf argument to const void *.
20418 (supply_register_by_name): Likewise.
20419 (collect_register): Change buf argument to void *.
20420 (collect_register_by_name): Likewise.
20421 * regcache.h: Add missing prototypes.
20422 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
20423 * server.c (handle_query): New function.
20424 (attached): New static variable, moved out of main.
20425 (main): Quiet longjmp clobber warnings.
20426 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
20427 * utils.c (error): Remove NORETURN.
20428 (fatal): Likewise.