1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Turn some more static methods in linux-low into private methods
4 of linux_process_target.
6 * linux-low.cc (get_pc): Turn into...
7 (linux_process_target::get_pc): ...this.
8 (save_stop_reason): Turn into...
9 (linux_process_target::save_stop_reason): ...this.
10 (thread_still_has_status_pending_p): Turn into...
11 (linux_process_target::thread_still_has_status_pending): ...this.
12 (status_pending_p_callback): Turn into...
13 (linux_process_target::status_pending_p_callback): ...this.
14 (resume_stopped_resumed_lwps): Turn into...
15 (linux_process_target::resume_stopped_resumed_lwps): ...this.
16 (install_software_single_step_breakpoints): Turn into...
17 (linux_process_target::install_software_single_step_breakpoints):
19 (single_step): Turn into...
20 (linux_process_target::single_step): ...this.
21 (linux_resume_one_lwp_throw): Turn into...
22 (linux_process_target::resume_one_lwp_throw): ...this.
23 (linux_resume_one_lwp): Turn into...
24 (linux_process_target::resume_one_lwp): ...this.
25 (resume_status_pending_p): Turn into...
26 (linux_process_target::resume_status_pending): ...this.
27 (need_step_over_p): Turn into...
28 (linux_process_target::thread_needs_step_over): ...this.
29 (linux_resume_one_thread): Turn into...
30 (linux_process_target::resume_one_thread): ...this.
31 (proceed_one_lwp): Turn into...
32 (linux_process_target::proceed_one_lwp): ...this.
33 (unsuspend_and_proceed_one_lwp): Turn into...
34 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
36 Update the calls/references to the above functions below.
38 (linux_process_target::handle_extended_wait)
39 (linux_process_target::filter_event)
40 (linux_process_target::wait_for_event_filtered)
41 (linux_process_target::wait_1)
42 (linux_process_target::move_out_of_jump_pad)
43 (linux_process_target::start_step_over)
44 (linux_process_target::resume)
45 (linux_process_target::proceed_all_lwps)
46 (regsets_store_inferior_registers)
47 (linux_process_target::store_register)
49 * linux-low.h (class linux_process_target)
52 <thread_still_has_status_pending>
53 <status_pending_p_callback>
54 <resume_stopped_resumed_lwps>
55 <install_software_single_step_breakpoints>
57 <resume_one_lwp_throw>
59 <resume_status_pending>
60 <thread_needs_step_over>
63 <unsuspend_and_proceed_one_lwp>: Declare.
65 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
67 Turn the 'fetch_register' linux target op into a method of
70 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
71 (class linux_process_target) <low_fetch_register>: Declare.
72 * linux-x86-low.cc (the_low_target)
73 * linux-aarch64-low.cc (the_low_target)
74 * linux-arm-low.cc (the_low_target)
75 * linux-bfin-low.cc (the_low_target)
76 * linux-cris-low.cc (the_low_target)
77 * linux-crisv32-low.cc (the_low_target)
78 * linux-m32r-low.cc (the_low_target)
79 * linux-m68k-low.cc (the_low_target)
80 * linux-nios2-low.cc (the_low_target)
81 * linux-ppc-low.cc (the_low_target)
82 * linux-s390-low.cc (the_low_target)
83 * linux-sh-low.cc (the_low_target)
84 * linux-sparc-low.cc (the_low_target)
85 * linux-tic6x-low.cc (the_low_target)
86 * linux-tile-low.cc (the_low_target)
87 * linux-xtensa-low.cc (the_low_target): Remove the op field.
88 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
90 (ia64_fetch_register): Turn into...
91 (ia64_target::low_fetch_register): ...this.
92 (the_low_target): Remove the op field.
93 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
95 (mips_fetch_register): Turn into...
96 (mips_target::low_fetch_register): ...this.
97 (the_low_target): Remove the op field.
98 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
100 (riscv_fetch_register): Turn into...
101 (riscv_target::low_fetch_register): ...this.
102 (the_low_target): Remove the op field.
104 Update the callers below.
106 * linux-low.cc (linux_process_target::fetch_registers)
107 (linux_process_target::low_fetch_register)
109 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
111 Turn the 'cannot_fetch_register' and 'cannot_store_register'
112 linux target ops into methods of linux_process_target.
114 * linux-low.h (struct linux_target_ops): Remove the low target ops.
115 (class linux_process_target) <fetch_register>
117 <usr_fetch_inferior_registers>
118 <usr_store_inferior_registers>
119 <low_cannot_fetch_register>
120 <low_cannot_fetch_register> Declare.
121 * linux-low.cc (fetch_register): Turn into...
122 (linux_process_target::fetch_register): ...this.
123 (store_register): Turn into ...
124 (linux_process_target::store_register): ...this.
125 (usr_fetch_inferior_registers): Turn into...
126 (linux_process_target::usr_fetch_inferior_registers): ...this.
127 (usr_store_inferior_registers): Turn into...
128 (linux_process_target::usr_store_inferior_registers): ...this.
129 * linux-x86-low.cc (class x86_target)
130 <low_cannot_fetch_register>
131 <low_cannot_store_register>: Declare.
132 (x86_cannot_store_register): Turn into...
133 (x86_target::low_cannot_store_register): ...this.
134 (x86_cannot_fetch_register): Turn into...
135 (x86_target::low_cannot_fetch_register): ...this.
136 (the_low_target): Remove the target op fields.
137 * linux-aarch64-low.cc (class aarch64_target)
138 <low_cannot_fetch_register>
139 <low_cannot_store_register>: Declare.
140 (aarch64_target::low_cannot_fetch_register)
141 (aarch64_target::low_cannot_store_register): Define.
142 (the_low_target): Remove the op fields.
143 * linux-arm-low.cc (class arm_target)
144 <low_cannot_fetch_register>
145 <low_cannot_store_register>: Declare.
146 (arm_cannot_fetch_register): Turn into...
147 (arm_target::low_cannot_fetch_register): ...this.
148 (arm_cannot_store_register): Turn into...
149 (arm_target::low_cannot_store_register): ...this.
150 (the_low_target): Remove the op fields.
151 * linux-bfin-low.cc (class bfin_target)
152 <low_cannot_fetch_register>
153 <low_cannot_store_register>: Declare.
154 (bfin_cannot_fetch_register): Turn into...
155 (bfin_target::low_cannot_fetch_register): ...this.
156 (bfin_cannot_store_register): Turn into...
157 (bfin_target::low_cannot_store_register): ...this.
158 (the_low_target): Remove the op fields.
159 * linux-cris-low.cc (class cris_target)
160 <low_cannot_fetch_register>
161 <low_cannot_store_register>: Declare.
162 (cris_cannot_fetch_register): Turn into...
163 (cris_target::low_cannot_fetch_register): ...this.
164 (cris_cannot_store_register): Turn into...
165 (cris_target::low_cannot_store_register): ...this.
166 (the_low_target): Remove the op fields.
167 * linux-crisv32-low.cc (class crisv32_target)
168 <low_cannot_fetch_register>
169 <low_cannot_store_register>: Declare.
170 (crisv32_target::low_cannot_fetch_register)
171 (crisv32_target::low_cannot_store_register): Define.
172 (the_low_target): Remove the op fields.
173 * linux-ia64-low.cc (class ia64_target)
174 <low_cannot_fetch_register>
175 <low_cannot_store_register>: Declare.
176 (ia64_cannot_fetch_register): Turn into...
177 (ia64_target::low_cannot_fetch_register): ...this.
178 (ia64_cannot_store_register): Turn into...
179 (ia64_target::low_cannot_store_register): ...this.
180 (the_low_target): Remove the op fields.
181 * linux-m32r-low.cc (class m32r_target)
182 <low_cannot_fetch_register>
183 <low_cannot_store_register>: Declare.
184 (m32r_cannot_fetch_register): Turn into...
185 (m32r_target::low_cannot_fetch_register): ...this.
186 (m32r_cannot_store_register): Turn into...
187 (m32r_target::low_cannot_store_register): ...this.
188 (the_low_target): Remove the op fields.
189 * linux-m68k-low.cc (class m68k_target)
190 <low_cannot_fetch_register>
191 <low_cannot_store_register>: Declare.
192 (m68k_cannot_fetch_register): Turn into...
193 (m68k_target::low_cannot_fetch_register): ...this.
194 (m68k_cannot_store_register): Turn into...
195 (m68k_target::low_cannot_store_register): ...this.
196 (the_low_target): Remove the op fields.
197 * linux-mips-low.cc (class mips_target)
198 <low_cannot_fetch_register>
199 <low_cannot_store_register>: Declare.
200 (mips_cannot_fetch_register): Turn into...
201 (mips_target::low_cannot_fetch_register): ...this.
202 (mips_cannot_store_register): Turn into...
203 (mips_target::low_cannot_store_register): ...this.
204 (get_usrregs_info): Inline at the call sites in
205 low_cannot_fetch_register and low_cannot_store_register,
207 (the_low_target): Remove the op fields.
208 * linux-nios2-low.cc (class nios2_target)
209 <low_cannot_fetch_register>
210 <low_cannot_store_register>: Declare.
211 (nios2_cannot_fetch_register): Turn into...
212 (nios2_target::low_cannot_fetch_register): ...this.
213 (nios2_cannot_store_register): Turn into...
214 (nios2_target::low_cannot_store_register): ...this.
215 (the_low_target): Remove the op fields.
216 * linux-ppc-low.cc (class ppc_target)
217 <low_cannot_fetch_register>
218 <low_cannot_store_register>: Declare.
219 (ppc_cannot_fetch_register): Turn into...
220 (ppc_target::low_cannot_fetch_register): ...this.
221 (ppc_cannot_store_register): Turn into...
222 (ppc_target::low_cannot_store_register): ...this.
223 (the_low_target): Remove the op fields.
224 * linux-riscv-low.cc (class riscv_target)
225 <low_cannot_fetch_register>
226 <low_cannot_store_register>: Declare.
227 (riscv_target::low_cannot_fetch_register)
228 (riscv_target::low_cannot_store_register): Define.
229 (the_low_target): Remove the op fields.
230 * linux-s390-low.cc (class s390_target)
231 <low_cannot_fetch_register>
232 <low_cannot_store_register>: Declare.
233 (s390_cannot_fetch_register): Turn into...
234 (s390_target::low_cannot_fetch_register): ...this.
235 (s390_cannot_store_register): Turn into...
236 (s390_target::low_cannot_store_register): ...this.
237 (the_low_target): Remove the op fields.
238 * linux-sh-low.cc (class sh_target)
239 <low_cannot_fetch_register>
240 <low_cannot_store_register>: Declare.
241 (sh_cannot_fetch_register): Turn into...
242 (sh_target::low_cannot_fetch_register): ...this.
243 (sh_cannot_store_register): Turn into...
244 (sh_target::low_cannot_store_register): ...this.
245 (the_low_target): Remove the op fields.
246 * linux-sparc-low.cc (class sparc_target)
247 <low_cannot_fetch_register>
248 <low_cannot_store_register>: Declare.
249 (sparc_cannot_fetch_register): Turn into...
250 (sparc_target::low_cannot_fetch_register): ...this.
251 (sparc_cannot_store_register): Turn into...
252 (sparc_target::low_cannot_store_register): ...this.
253 (the_low_target): Remove the op fields.
254 * linux-tic6x-low.cc (class tic6x_target)
255 <low_cannot_fetch_register>
256 <low_cannot_store_register>: Declare.
257 (tic6x_cannot_fetch_register): Turn into...
258 (tic6x_target::low_cannot_fetch_register): ...this.
259 (tic6x_cannot_store_register): Turn into...
260 (tic6x_target::low_cannot_store_register): ...this.
261 (the_low_target): Remove the op fields.
262 * linux-tile-low.cc (class tile_target)
263 <low_cannot_fetch_register>
264 <low_cannot_store_register>: Declare.
265 (tile_cannot_fetch_register): Turn into...
266 (tile_target::low_cannot_fetch_register): ...this.
267 (tile_cannot_store_register): Turn into...
268 (tile_target::low_cannot_store_register): ...this.
269 (the_low_target): Remove the op fields.
270 * linux-xtensa-low.cc (class xtensa_target)
271 <low_cannot_fetch_register>
272 <low_cannot_store_register>: Declare.
273 (xtensa_target::low_cannot_fetch_register)
274 (xtensa_target::low_cannot_store_register): Define.
275 (the_low_target): Remove the op fields.
277 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
279 Turn the 'regs_info' linux target op into a method of
280 linux_process_target.
282 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
283 (class linux_process_target) <get_regs_info>: Define.
285 Update the callers below.
287 * linux-low.cc (linux_process_target::fetch_registers)
288 (linux_process_target::store_registers)
289 * proc-service.cc (gregset_info)
291 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
292 (x86_linux_regs_info): Turn into ...
293 (x86_target::get_regs_info): ...this.
294 (the_low_target): Remove the op field.
295 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
297 (aarch64_regs_info): Turn into ...
298 (aarch64_target::get_regs_info): ...this.
299 (the_low_target): Remove the op field.
300 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
301 (arm_regs_info): Turn into ...
302 (arm_target::get_regs_info): ...this.
303 (the_low_target): Remove the op field.
304 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
305 (bfin_regs_info): Turn into ...
306 (bfin_target::get_regs_info): ...this.
307 (the_low_target): Remove the op field.
308 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
309 (cris_regs_info): Turn into ...
310 (cris_target::get_regs_info): ...this.
311 (the_low_target): Remove the op field.
312 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
314 (crisv32_regs_info): Turn into ...
315 (crisv32_target::get_regs_info): ...this.
316 (the_low_target): Remove the op field.
317 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
318 (ia64_regs_info): Turn into ...
319 (ia64_target::get_regs_info): ...this.
320 (the_low_target): Remove the op field.
321 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
322 (m32r_regs_info): Turn into ...
323 (m32r_target::get_regs_info): ...this.
324 (the_low_target): Remove the op field.
325 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
326 (m68k_regs_info): Turn into ...
327 (m68k_target::get_regs_info): ...this.
328 (the_low_target): Remove the op field.
329 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
330 (mips_regs_info): Turn into ...
331 (mips_target::get_regs_info): ...this.
332 (the_low_target): Remove the op field.
333 (get_usrregs_info): Update the call to the op.
334 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
335 (nios2_regs_info): Turn into ...
336 (nios2_target::get_regs_info): ...this.
337 (the_low_target): Remove the op field.
338 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
339 (ppc_regs_info): Turn into ...
340 (ppc_target::get_regs_info): ...this.
341 (the_low_target): Remove the op field.
342 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
343 (riscv_regs_info): Turn into ...
344 (riscv_target::get_regs_info): ...this.
345 (the_low_target): Remove the op field.
346 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
347 (s390_regs_info): Turn into ...
348 (s390_target::get_regs_info): ...this.
349 (the_low_target): Remove the op field.
350 (s390_collect_ptrace_register)
351 (s390_supply_ptrace_register)
352 (s390_fill_gregset): Update the call to the op.
353 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
354 (sh_regs_info): Turn into ...
355 (sh_target::get_regs_info): ...this.
356 (the_low_target): Remove the op field.
357 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
358 (sparc_regs_info): Turn into ...
359 (sparc_target::get_regs_info): ...this.
360 (the_low_target): Remove the op field.
361 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
362 (tic6x_regs_info): Turn into ...
363 (tic6x_target::get_regs_info): ...this.
364 (the_low_target): Remove the op field.
365 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
366 (tile_regs_info): Turn into ...
367 (tile_target::get_regs_info): ...this.
368 (the_low_target): Remove the op field.
369 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
371 (xtensa_regs_info): Turn into ...
372 (xtensa_target::get_regs_info): ...this.
373 (the_low_target): Remove the op field.
375 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
377 Turn the 'arch_setup' linux target op into a method of
378 linux_process_target.
380 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
381 (class linux_process_target) <arch_setup_thread>
382 <low_arch_setup>: New declarations.
383 * linux-low.cc (linux_arch_setup): Delete.
384 (linux_arch_setup_thread): Turn into...
385 (linux_process_target::arch_setup_thread): ... this.
387 Update the callers below.
389 (linux_process_target::handle_extended_wait)
390 (linux_process_target::post_create_inferior)
391 (linux_process_target::filter_event)
393 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
395 (x86_linux_update_xmltarget): Turn into...
396 (x86_target::update_xmltarget): ...this.
397 (x86_linux_process_qsupported): Update the call to
398 x86_linux_update_xmltarget.
399 (x86_arch_setup): Turn into ...
400 (x86_target::low_arch_setup): ...this.
401 (the_low_target): Remove the op field.
402 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
404 (aarch64_arch_setup): Turn into ...
405 (aarch64_target::low_arch_setup): ...this.
406 (the_low_target): Remove the op field.
407 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
409 (arm_arch_setup): Turn into ...
410 (arm_target::low_arch_setup): ...this.
411 (the_low_target): Remove the op field.
412 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
414 (bfin_arch_setup): Turn into ...
415 (bfin_target::low_arch_setup): ...this.
416 (the_low_target): Remove the op field.
417 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
419 (cris_arch_setup): Turn into ...
420 (cris_target::low_arch_setup): ...this.
421 (the_low_target): Remove the op field.
422 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
424 (crisv32_arch_setup): Turn into ...
425 (crisv32_target::low_arch_setup): ...this.
426 (the_low_target): Remove the op field.
427 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
429 (ia64_arch_setup): Turn into ...
430 (ia64_target::low_arch_setup): ...this.
431 (the_low_target): Remove the op field.
432 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
434 (m32r_arch_setup): Turn into ...
435 (m32r_target::low_arch_setup): ...this.
436 (the_low_target): Remove the op field.
437 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
439 (m68k_arch_setup): Turn into ...
440 (m68k_target::low_arch_setup): ...this.
441 (the_low_target): Remove the op field.
442 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
444 (mips_arch_setup): Turn into ...
445 (mips_target::low_arch_setup): ...this.
446 (the_low_target): Remove the op field.
447 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
449 (nios2_arch_setup): Turn into ...
450 (nios2_target::low_arch_setup): ...this.
451 (the_low_target): Remove the op field.
452 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
454 (ppc_arch_setup): Turn into ...
455 (ppc_target::low_arch_setup): ...this.
456 (the_low_target): Remove the op field.
457 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
459 (riscv_arch_setup): Turn into ...
460 (riscv_target::low_arch_setup): ...this.
461 (the_low_target): Remove the op field.
462 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
464 (s390_arch_setup): Turn into ...
465 (s390_target::low_arch_setup): ...this.
466 (the_low_target): Remove the op field.
467 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
469 (sh_arch_setup): Turn into ...
470 (sh_target::low_arch_setup): ...this.
471 (the_low_target): Remove the op field.
472 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
474 (sparc_arch_setup): Turn into ...
475 (sparc_target::low_arch_setup): ...this.
476 (the_low_target): Remove the op field.
477 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
479 (tic6x_arch_setup): Turn into ...
480 (tic6x_target::low_arch_setup): ...this.
481 (the_low_target): Remove the op field.
482 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
484 (tile_arch_setup): Turn into ...
485 (tile_target::low_arch_setup): ...this.
486 (the_low_target): Remove the op field.
487 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
489 (xtensa_arch_setup): Turn into ...
490 (xtensa_target::low_arch_setup): ...this.
491 (the_low_target): Remove the op field.
493 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
495 * linux-low.h (the_linux_target): New extern declaration.
496 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
498 (the_linux_target): Remove.
499 * linux-x86-low.cc (class x86_target): New class.
500 (the_x86_target): New static object.
501 (the_linux_target): Define as pointer to the_x86_target.
502 * linux-aarch64-low.cc (class aarch64_target): New class.
503 (the_aarch64_target): New static object.
504 (the_linux_target): Define as pointer to the_aarch64_target.
505 * linux-arm-low.cc (class arm_target): New class.
506 (the_arm_target): New static object.
507 (the_linux_target): Define as pointer to the_arm_target.
508 * linux-bfin-low.cc (class bfin_target): New class.
509 (the_bfin_target): New static object.
510 (the_linux_target): Define as pointer to the_bfin_target.
511 * linux-cris-low.cc (class cris_target): New class.
512 (the_cris_target): New static object.
513 (the_linux_target): Define as pointer to the_cris_target.
514 * linux-crisv32-low.cc (class crisv32_target): New class.
515 (the_crisv32_target): New static object.
516 (the_linux_target): Define as pointer to the_crisv32_target.
517 * linux-ia64-low.cc (class ia64_target): New class.
518 (the_ia64_target): New static object.
519 (the_linux_target): Define as pointer to the_ia64_target.
520 * linux-m32r-low.cc (class m32r_target): New class.
521 (the_m32r_target): New static object.
522 (the_linux_target): Define as pointer to the_m32r_target.
523 * linux-m68k-low.cc (class m68k_target): New class.
524 (the_m68k_target): New static object.
525 (the_linux_target): Define as pointer to the_m68k_target.
526 * linux-mips-low.cc (class mips_target): New class.
527 (the_mips_target): New static object.
528 (the_linux_target): Define as pointer to the_mips_target.
529 * linux-nios2-low.cc (class nios2_target): New class.
530 (the_nios2_target): New static object.
531 (the_linux_target): Define as pointer to the_nios2_target.
532 * linux-ppc-low.cc (class ppc_target): New class.
533 (the_ppc_target): New static object.
534 (the_linux_target): Define as pointer to the_ppc_target.
535 * linux-riscv-low.cc (class riscv_target): New class.
536 (the_riscv_target): New static object.
537 (the_linux_target): Define as pointer to the_riscv_target.
538 * linux-s390-low.cc (class s390_target): New class.
539 (the_s390_target): New static object.
540 (the_linux_target): Define as pointer to the_s390_target.
541 * linux-sh-low.cc (class sh_target): New class.
542 (the_sh_target): New static object.
543 (the_linux_target): Define as pointer to the_sh_target.
544 * linux-sparc-low.cc (class sparc_target): New class.
545 (the_sparc_target): New static object.
546 (the_linux_target): Define as pointer to the_sparc_target.
547 * linux-tic6x-low.cc (class tic6x_target): New class.
548 (the_tic6x_target): New static object.
549 (the_linux_target): Define as pointer to the_tic6x_target.
550 * linux-tile-low.cc (class tile_target): New class.
551 (the_tile_target): New static object.
552 (the_linux_target): Define as pointer to the_tile_target.
553 * linux-xtensa-low.cc (class xtensa_target): New class.
554 (the_xtensa_target): New static object.
555 (the_linux_target): Define as pointer to the_xtensa_target.
557 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
559 Turn some static functions in linux-low.cc into private methods of
560 linux_process_target.
562 * linux-low.cc (handle_extended_wait): Turn into ...
563 (linux_process_target::handle_extended_wait): ...this. Call
564 'mourn' on 'this' object instead of 'the_target'.
565 (maybe_move_out_of_jump_pad): Turn into...
566 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
567 (linux_low_filter_event): Turn into...
568 (linux_process_target::filter_event): ...this.
569 (linux_wait_for_event_filtered): Turn into...
570 (linux_process_target::wait_for_event_filtered): ...this.
571 (linux_wait_for_event): Turn into...
572 (linux_process_target::wait_for_event): ...this.
573 (linux_wait_1): Turn into...
574 (linux_process_target::wait_1): ...this.
575 (wait_for_sigstop): Turn into...
576 (linux_process_target::wait_for_sigstop): ...this.
577 (move_out_of_jump_pad_callback): Turn into...
578 (linux_process_target::move_out_of_jump_pad): ...this.
579 (stop_all_lwps): Turn into...
580 (linux_process_target::stop_all_lwps): ...this.
581 (start_step_over): Turn into...
582 (linux_process_target::start_step_over): ...this.
583 (complete_ongoing_step_over): Turn into...
584 (linux_process_target::complete_ongoing_step_over): ...this.
585 (proceed_all_lwps): Turn into...
586 (linux_process_target::proceed_all_lwps): ...this.
587 (unstop_all_lwps): Turn into...
588 (linux_process_target::unstop_all_lwps): ...this.
590 * linux-low.h (class linux_process_target)
591 <handle_extended_wait>
592 <maybe_move_out_of_jump_pad>
594 <wait_for_event_filtered>
598 <move_out_of_jump_pad>
601 <complete_ongoing_step_over>
603 <unstop_all_lwps>: Declare.
605 Update the callers below.
607 * linux-low.cc (linux_process_target::attach): Update.
608 (linux_process_target::stabilize_threads): Ditto.
609 (linux_process_target::wait): Ditto.
611 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
613 * linux-low.h (struct linux_target_ops): Update the comment for
614 'cannot_store_register' to return 0 or 1.
615 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
618 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
620 * config.in: Re-generate.
621 * configure: Re-generate.
623 2020-03-17 Kamil Rytarowski <n54@gmx.com>
625 * regcache.cc (find_register_by_number): Update.
626 * tdesc.cc (init_target_desc): Likewise.
627 * tdesc.h (target_desc::reg_defs): Likewise.
629 2020-03-12 Tom Tromey <tom@tromey.com>
631 * configure: Rebuild.
632 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
633 (WIN32APILIBS): New subst.
634 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
636 (gdbsupport/%.o): Remove target.
637 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
638 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
639 (WIN32APILIBS): New variable.
640 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
641 (gdbreplay$(EXEEXT)): Likewise.
643 2020-03-12 Tom Tromey <tom@tromey.com>
645 * config.in, configure: Rebuild.
646 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
647 * acinclude.m4: Include gettext-sister.m4.
648 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
650 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
651 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
653 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
655 * acinclude.m4: Update path to selftest.m4.
657 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
659 * configure.ac: Don't source bfd/development.sh, move
660 GDB_AC_COMMON higher.
661 * configure: Re-generate.
663 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
665 * configure: Re-generate.
667 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
669 * configure: Re-generate.
671 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
673 * .dir-locals.el: New file.
675 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
677 * .gitattributes: New file.
679 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
681 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
682 reply into an S reply.
683 * server.cc (disable_packet_T): New global.
684 (captured_main): Set new global when appropriate.
685 * server.h (disable_packet_T): Declare.
687 2020-02-21 Tom Tromey <tom@tromey.com>
689 * Makefile.in (mostlyclean): New target.
691 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693 * target.h (struct process_stratum_target): Remove.
694 (class process_target): Rename to ...
695 (class process_stratum_target): ... this.
696 * linux-low.h (class linux_process_target): Derive from
697 'process_stratum_target'.
698 * linux-low.cc (linux_target_ops): Remove.
699 (initialize_low): Set the_target to the singleton instance of
700 linux_process_target.
701 * lynx-low.h (class lynx_process_target): Derive from
702 'process_stratum_target'.
703 * lynx-low.cc (lynx_target_ops): Remove.
704 (initialize_low): Set the_target to the singleton instance of
706 * nto-low.h (class nto_process_target): Derive from
707 'process_stratum_target'.
708 * nto-low.cc (nto_target_ops): Remove.
709 (initialize_low): Set the_target to the singleton instance of
711 * win32-low.h (class win32_process_target): Derive from
712 'process_stratum_target'.
713 * win32-low.cc (win32_target_ops): Remove.
714 (initialize_low): Set the_target to the singleton instance of
715 win32_process_target.
717 Replace 'the_target->pt' with 'the_target' in the uses below.
719 * hostio.cc (hostio_error)
724 * linux-aarch32-low.cc (arm_breakpoint_at)
725 * linux-aarch64-low.cc (aarch64_breakpoint_at)
726 * linux-arm-low.cc (arm_sigreturn_next_pc)
728 (arm_get_syscall_trapinfo)
729 * linux-cris-low.cc (cris_breakpoint_at)
730 * linux-crisv32-low.cc (cris_breakpoint_at)
731 * linux-low.cc (handle_extended_wait)
734 (linux_process_target::breakpoint_kind_from_pc)
736 * linux-m32r-low.cc (m32r_breakpoint_at)
737 * linux-mips-low.cc (mips_breakpoint_at)
738 * linux-nios2-low.cc (nios2_breakpoint_at)
739 * linux-ppc-low.cc (ppc_breakpoint_at)
740 * linux-s390-low.cc (s390_get_hwcap)
741 * linux-sh-low.cc (sh_breakpoint_at)
742 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
743 (sparc_store_gregset_from_stack)
744 (sparc_breakpoint_at)
745 * linux-tic6x-low.cc (tic6x_breakpoint_at)
746 * linux-tile-low.cc (tile_breakpoint_at)
747 * linux-x86-low.cc (x86_breakpoint_at)
748 * linux-xtensa-low.cc (xtensa_breakpoint_at)
749 * mem-break.cc (bp_size)
751 (insert_memory_breakpoint)
752 (set_raw_breakpoint_at)
753 (delete_raw_breakpoint)
755 (uninsert_raw_breakpoint)
756 (reinsert_raw_breakpoint)
757 (validate_inserted_breakpoint)
758 * regcache.cc (regcache_read_pc)
760 * remote-utils.cc (putpkt_binary_1)
763 (prepare_resume_reply)
764 * server.cc (handle_general_set)
767 (handle_qxfer_exec_file)
768 (handle_qxfer_libraries_svr4)
769 (handle_qxfer_osdata)
770 (handle_qxfer_siginfo)
775 (queue_stop_reply_callback)
777 * target.cc (prepare_to_access_memory)
778 (done_accessing_memory)
779 (read_inferior_memory)
780 (target_write_memory)
781 (target_stop_and_wait)
783 (target_mourn_inferior)
784 (target_continue_no_signal)
786 (target_supports_multi_process)
789 (target_create_inferior)
790 (target_post_create_inferior)
792 (target_supports_fork_events)
793 (target_supports_vfork_events)
794 (target_supports_exec_events)
795 (target_handle_new_gdb_connection)
798 (fetch_inferior_registers)
799 (store_inferior_registers)
801 (target_supports_non_stop)
803 (target_process_qsupported)
804 (target_supports_catch_syscall)
805 (target_get_ipa_tdesc_idx)
806 (target_supports_tracepoints)
807 (target_supports_fast_tracepoints)
808 (target_get_min_fast_tracepoint_insn_len)
809 (target_thread_stopped)
812 (target_stabilize_threads)
813 (target_install_fast_tracepoint_jump_pad)
815 (target_supports_disable_randomization)
816 (target_supports_agent)
817 (target_enable_btrace)
818 (target_disable_btrace)
820 (target_read_btrace_conf)
821 (target_supports_range_stepping)
822 (target_supports_stopped_by_sw_breakpoint)
823 (target_stopped_by_sw_breakpoint)
824 (target_supports_stopped_by_hw_breakpoint)
825 (target_supports_hardware_single_step)
826 (target_stopped_by_hw_breakpoint)
827 (target_breakpoint_kind_from_pc)
828 (target_breakpoint_kind_from_current_state)
829 (target_supports_software_single_step)
830 (target_core_of_thread)
832 (target_thread_handle)
833 * win32-low.cc (do_initial_child_stuff)
835 Rename target op default definitions listed below.
837 * target.cc (process_target::post_create_inferior): Rename as ...
838 (process_stratum_target::post_create_inferior): ... this.
839 (process_target::prepare_to_access_memory): Rename as ...
840 (process_stratum_target::prepare_to_access_memory): ... this.
841 (process_target::done_accessing_memory): Rename as ...
842 (process_stratum_target::done_accessing_memory): ... this.
843 (process_target::look_up_symbols): Rename as ...
844 (process_stratum_target::look_up_symbols): ... this.
845 (process_target::supports_read_auxv): Rename as ...
846 (process_stratum_target::supports_read_auxv): ... this.
847 (process_target::read_auxv): Rename as ...
848 (process_stratum_target::read_auxv): ... this.
849 (process_target::supports_z_point_type): Rename as ...
850 (process_stratum_target::supports_z_point_type): ... this.
851 (process_target::insert_point): Rename as ...
852 (process_stratum_target::insert_point): ... this.
853 (process_target::remove_point): Rename as ...
854 (process_stratum_target::remove_point): ... this.
855 (process_target::stopped_by_sw_breakpoint): Rename as ...
856 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
857 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
858 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
859 (process_target::stopped_by_hw_breakpoint): Rename as ...
860 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
861 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
862 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
863 (process_target::supports_hardware_single_step): Rename as ...
864 (process_stratum_target::supports_hardware_single_step): ... this.
865 (process_target::stopped_by_watchpoint): Rename as ...
866 (process_stratum_target::stopped_by_watchpoint): ... this.
867 (process_target::stopped_data_address): Rename as ...
868 (process_stratum_target::stopped_data_address): ... this.
869 (process_target::supports_read_offsets): Rename as ...
870 (process_stratum_target::supports_read_offsets): ... this.
871 (process_target::read_offsets): Rename as ...
872 (process_stratum_target::read_offsets): ... this.
873 (process_target::supports_get_tls_address): Rename as ...
874 (process_stratum_target::supports_get_tls_address): ... this.
875 (process_target::get_tls_address): Rename as ...
876 (process_stratum_target::get_tls_address): ... this.
877 (process_target::hostio_last_error): Rename as ...
878 (process_stratum_target::hostio_last_error): ... this.
879 (process_target::supports_qxfer_osdata): Rename as ...
880 (process_stratum_target::supports_qxfer_osdata): ... this.
881 (process_target::qxfer_osdata): Rename as ...
882 (process_stratum_target::qxfer_osdata): ... this.
883 (process_target::supports_qxfer_siginfo): Rename as ...
884 (process_stratum_target::supports_qxfer_siginfo): ... this.
885 (process_target::qxfer_siginfo): Rename as ...
886 (process_stratum_target::qxfer_siginfo): ... this.
887 (process_target::supports_non_stop): Rename as ...
888 (process_stratum_target::supports_non_stop): ... this.
889 (process_target::async): Rename as ...
890 (process_stratum_target::async): ... this.
891 (process_target::start_non_stop): Rename as ...
892 (process_stratum_target::start_non_stop): ... this.
893 (process_target::supports_multi_process): Rename as ...
894 (process_stratum_target::supports_multi_process): ... this.
895 (process_target::supports_fork_events): Rename as ...
896 (process_stratum_target::supports_fork_events): ... this.
897 (process_target::supports_vfork_events): Rename as ...
898 (process_stratum_target::supports_vfork_events): ... this.
899 (process_target::supports_exec_events): Rename as ...
900 (process_stratum_target::supports_exec_events): ... this.
901 (process_target::handle_new_gdb_connection): Rename as ...
902 (process_stratum_target::handle_new_gdb_connection): ... this.
903 (process_target::handle_monitor_command): Rename as ...
904 (process_stratum_target::handle_monitor_command): ... this.
905 (process_target::core_of_thread): Rename as ...
906 (process_stratum_target::core_of_thread): ... this.
907 (process_target::supports_read_loadmap): Rename as ...
908 (process_stratum_target::supports_read_loadmap): ... this.
909 (process_target::read_loadmap): Rename as ...
910 (process_stratum_target::read_loadmap): ... this.
911 (process_target::process_qsupported): Rename as ...
912 (process_stratum_target::process_qsupported): ... this.
913 (process_target::supports_tracepoints): Rename as ...
914 (process_stratum_target::supports_tracepoints): ... this.
915 (process_target::read_pc): Rename as ...
916 (process_stratum_target::read_pc): ... this.
917 (process_target::write_pc): Rename as ...
918 (process_stratum_target::write_pc): ... this.
919 (process_target::supports_thread_stopped): Rename as ...
920 (process_stratum_target::supports_thread_stopped): ... this.
921 (process_target::thread_stopped): Rename as ...
922 (process_stratum_target::thread_stopped): ... this.
923 (process_target::supports_get_tib_address): Rename as ...
924 (process_stratum_target::supports_get_tib_address): ... this.
925 (process_target::get_tib_address): Rename as ...
926 (process_stratum_target::get_tib_address): ... this.
927 (process_target::pause_all): Rename as ...
928 (process_stratum_target::pause_all): ... this.
929 (process_target::unpause_all): Rename as ...
930 (process_stratum_target::unpause_all): ... this.
931 (process_target::stabilize_threads): Rename as ...
932 (process_stratum_target::stabilize_threads): ... this.
933 (process_target::supports_fast_tracepoints): Rename as ...
934 (process_stratum_target::supports_fast_tracepoints): ... this.
935 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
936 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
937 (process_target::emit_ops): Rename as ...
938 (process_stratum_target::emit_ops): ... this.
939 (process_target::supports_disable_randomization): Rename as ...
940 (process_stratum_target::supports_disable_randomization): ... this.
941 (process_target::supports_qxfer_libraries_svr4): Rename as ...
942 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
943 (process_target::qxfer_libraries_svr4): Rename as ...
944 (process_stratum_target::qxfer_libraries_svr4): ... this.
945 (process_target::supports_agent): Rename as ...
946 (process_stratum_target::supports_agent): ... this.
947 (process_target::enable_btrace): Rename as ...
948 (process_stratum_target::enable_btrace): ... this.
949 (process_target::disable_btrace): Rename as ...
950 (process_stratum_target::disable_btrace): ... this.
951 (process_target::read_btrace): Rename as ...
952 (process_stratum_target::read_btrace): ... this.
953 (process_target::read_btrace_conf): Rename as ...
954 (process_stratum_target::read_btrace_conf): ... this.
955 (process_target::supports_range_stepping): Rename as ...
956 (process_stratum_target::supports_range_stepping): ... this.
957 (process_target::supports_pid_to_exec_file): Rename as ...
958 (process_stratum_target::supports_pid_to_exec_file): ... this.
959 (process_target::pid_to_exec_file): Rename as ...
960 (process_stratum_target::pid_to_exec_file): ... this.
961 (process_target::supports_multifs): Rename as ...
962 (process_stratum_target::supports_multifs): ... this.
963 (process_target::multifs_open): Rename as ...
964 (process_stratum_target::multifs_open): ... this.
965 (process_target::multifs_unlink): Rename as ...
966 (process_stratum_target::multifs_unlink): ... this.
967 (process_target::multifs_readlink): Rename as ...
968 (process_stratum_target::multifs_readlink): ... this.
969 (process_target::breakpoint_kind_from_pc): Rename as ...
970 (process_stratum_target::breakpoint_kind_from_pc): ... this.
971 (process_target::breakpoint_kind_from_current_state): Rename as ...
972 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
973 (process_target::thread_name): Rename as ...
974 (process_stratum_target::thread_name): ... this.
975 (process_target::thread_handle): Rename as ...
976 (process_stratum_target::thread_handle): ... this.
977 (process_target::supports_software_single_step): Rename as ...
978 (process_stratum_target::supports_software_single_step): ... this.
979 (process_target::supports_catch_syscall): Rename as ...
980 (process_stratum_target::supports_catch_syscall): ... this.
981 (process_target::get_ipa_tdesc_idx): Rename as ...
982 (process_stratum_target::get_ipa_tdesc_idx): ... this.
984 2020-02-20 Pedro Alves <palves@redhat.com>
986 * target.cc (set_target_ops): Simply copy the given target pointer
987 instead of creating a copy of the pointed object.
989 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
991 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
994 * target.h (struct process_stratum_target): Remove the target op.
995 (class process_target): Add the target op.
996 (target_get_ipa_tdesc_idx): Update the macro.
997 * target.cc (process_target::get_ipa_tdesc_idx): Define.
999 Update the derived classes and callers below.
1001 * linux-low.cc (linux_target_ops): Update.
1002 (linux_get_ipa_tdesc_idx): Turn into ...
1003 (linux_process_target::get_ipa_tdesc_idx): ... this.
1004 * linux-low.h (class linux_process_target): Update.
1005 * lynx-low.cc (lynx_target_ops): Update.
1006 * nto-low.cc (nto_target_ops): Update.
1007 * win32-low.cc (win32_target_ops): Update.
1009 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1011 Turn process_stratum_target's supports_catch_syscall op into a
1012 method of process_target.
1014 * target.h (struct process_stratum_target): Remove the target op.
1015 (class process_target): Add the target op.
1016 (target_supports_catch_syscall): Update the macro.
1017 * target.cc (process_target::supports_catch_syscall): Define.
1019 Update the derived classes and callers below.
1021 * linux-low.cc (linux_target_ops): Update.
1022 (linux_supports_catch_syscall): Turn into ...
1023 (linux_process_target::supports_catch_syscall): ... this.
1024 * linux-low.h (class linux_process_target): Update.
1025 * lynx-low.cc (lynx_target_ops): Update.
1026 * nto-low.cc (nto_target_ops): Update.
1027 * win32-low.cc (win32_target_ops): Update.
1029 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1031 Turn process_stratum_target's supports_software_single_step op
1032 into a method of process_target.
1034 * target.h (struct process_stratum_target): Remove the target op.
1035 (class process_target): Add the target op.
1036 (target_supports_software_single_step): Update the macro.
1037 * target.cc (process_target::supports_software_single_step): Define.
1039 Update the derived classes and callers below.
1041 * linux-low.cc (linux_target_ops): Update.
1042 (linux_supports_software_single_step): Turn into ...
1043 (linux_process_target::supports_software_single_step): ... this.
1044 * linux-low.h (class linux_process_target): Update.
1045 * lynx-low.cc (lynx_target_ops): Update.
1046 * nto-low.cc (nto_target_ops): Update.
1047 * win32-low.cc (win32_target_ops): Update.
1049 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1051 Turn process_stratum_target's thread_name and thread_handle ops
1052 into methods of process_target.
1054 * target.h (struct process_stratum_target): Remove the target ops.
1055 (class process_target): Add the target ops.
1056 (target_thread_name): Update the macro.
1057 (target_thread_handle): Update the macro.
1058 * target.cc (process_target::thread_name): Define.
1059 (process_target::thread_handle): Define.
1061 Update the derived classes and callers below.
1063 * linux-low.cc (linux_target_ops): Update.
1064 (linux_process_target::thread_name): Define.
1065 (linux_process_target::thread_handle): Define.
1066 * linux-low.h (class linux_process_target): Update.
1067 * lynx-low.cc (lynx_target_ops): Update.
1068 * nto-low.cc (nto_target_ops): Update.
1069 * win32-low.cc (win32_target_ops): Update.
1071 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1073 Turn process_stratum_target's breakpoint_kind_from_pc,
1074 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1075 ops into methods of process_target.
1077 * target.h (struct process_stratum_target): Remove the target op.
1078 (class process_target): Add the target op.
1079 (target_breakpoint_kind_from_pc): Update the macro.
1080 (target_breakpoint_kind_from_current_state): Update the macro.
1081 (default_breakpoint_kind_from_pc): Remove declaration.
1082 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1083 (process_target::breakpoint_kind_from_pc): ... this.
1084 (process_target::breakpoint_kind_from_current_state): Define.
1086 Update the derived classes and callers below.
1088 * mem-break.cc (bp_size): Update.
1089 (bp_opcode): Update.
1090 * linux-low.cc (linux_target_ops): Update.
1091 (linux_wait_1): Update.
1092 (linux_breakpoint_kind_from_pc): Turn into ...
1093 (linux_process_target::breakpoint_kind_from_pc): ... this.
1094 (linux_sw_breakpoint_from_kind): Turn into ...
1095 (linux_process_target::sw_breakpoint_from_kind): ... this.
1096 (linux_breakpoint_kind_from_current_state): Turn into ...
1097 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1098 * linux-low.h (class linux_process_target): Update.
1099 * lynx-low.cc (lynx_target_ops): Update.
1100 (lynx_process_target::sw_breakpoint_from_kind): Define.
1101 * lynx-low.h (class lynx_process_target): Update.
1102 * nto-low.cc (nto_target_ops): Update.
1103 (nto_sw_breakpoint_from_kind): Turn into ...
1104 (nto_process_target::sw_breakpoint_from_kind): ... this.
1105 * nto-low.h (class nto_process_target): Update.
1106 * win32-low.cc (win32_target_ops): Update.
1107 (win32_sw_breakpoint_from_kind): Turn into ...
1108 (win32_process_target::sw_breakpoint_from_kind): ... this.
1109 * win32-low.h (class win32_process_target): Update.
1111 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1113 Turn process_stratum_target's multifs_open, multifs_readlink,
1114 multifs_unlink ops into methods of process_target.
1116 * target.h (struct process_stratum_target): Remove the target ops.
1117 (class process_target): Add the target ops. Also add
1119 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1121 (process_target::supports_multifs): Define.
1122 (process_target::multifs_open): Define.
1123 (process_target::multifs_readlink): Define.
1124 (process_target::multifs_unlink): Define.
1126 Update the derived classes and callers below.
1128 * hostio.cc (handle_setfs): Update.
1129 (handle_open): Update.
1130 (handle_unlink): Update.
1131 (handle_readlink): Update.
1132 * linux-low.cc (linux_target_ops): Update.
1133 (linux_process_target::supports_multifs): Define.
1134 (linux_process_target::multifs_open): Define.
1135 (linux_process_target::multifs_readlink): Define.
1136 (linux_process_target::multifs_unlink): Define.
1137 * linux-low.h (class linux_process_target): Update.
1138 * lynx-low.cc (lynx_target_ops): Update.
1139 * nto-low.cc (nto_target_ops): Update.
1140 * win32-low.cc (win32_target_ops): Update.
1142 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1144 Turn process_stratum_target's pid_to_exec_file op into a method
1147 * target.h (struct process_stratum_target): Remove the target op.
1148 (class process_target): Add the target op. Also add
1149 'supports_pid_to_exec_file'.
1150 * target.cc (process_target::pid_to_exec_file): Define.
1151 (process_target::supports_pid_to_exec_file): Define.
1153 Update the derived classes and callers below.
1155 * server.cc (handle_qxfer_exec_file): Update.
1156 (handle_query): Update.
1157 * linux-low.cc (linux_target_ops): Update.
1158 (linux_process_target::supports_pid_to_exec_file): Define.
1159 (linux_process_target::pid_to_exec_file): Define.
1160 * linux-low.h (class linux_process_target): Update.
1161 * lynx-low.cc (lynx_target_ops): Update.
1162 * nto-low.cc (nto_target_ops): Update.
1163 * win32-low.cc (win32_target_ops): Update.
1165 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1167 Turn process_stratum_target's supports_range_stepping op into a
1168 method of process_target.
1170 * target.h (struct process_stratum_target): Remove the target op.
1171 (class process_target): Add the target op.
1172 (target_supports_range_stepping): Update the macro.
1173 * target.cc (process_target::supports_range_stepping): Define.
1175 Update the derived classes and callers below.
1177 * linux-low.cc (linux_target_ops): Update.
1178 (linux_supports_range_stepping): Turn into ...
1179 (linux_process_target::supports_range_stepping): ... this.
1180 * linux-low.h (class linux_process_target): Update.
1181 * lynx-low.cc (lynx_target_ops): Update.
1182 * nto-low.cc (nto_target_ops): Update.
1183 * win32-low.cc (win32_target_ops): Update.
1185 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1187 Turn process_stratum_target's btrace-related ops (enable_btrace,
1188 disable_btrace, read_btrace, read_btrace_conf) into methods of
1191 * target.h (struct process_stratum_target): Remove the target ops.
1192 (class process_target): Add the target ops.
1193 (target_enable_btrace): Update.
1194 (target_disable_btrace): Update.
1195 (target_read_btrace): Update.
1196 (target_read_btrace_conf): Update.
1197 * target.cc (process_target::enable_btrace): Define.
1198 (process_target::disable_btrace): Define.
1199 (process_target::read_btrace): Define.
1200 (process_target::read_btrace_conf): Define.
1202 Update the derived classes and callers below.
1204 * linux-low.cc (linux_target_ops): Update.
1205 (linux_process_target:enable_btrace): Define as a wrapper around
1206 linux_enable_btrace.
1207 (linux_low_disable_btrace): Turn into ...
1208 (linux_process_target::disable_btrace): ... this.
1209 (linux_low_read_btrace): Turn into ...
1210 (linux_process_target::read_btrace): ... this.
1211 (linux_low_btrace_conf): Turn into ...
1212 (linux_process_target::read_btrace_conf): ... this.
1213 * linux-low.h (class linux_process_target): Update.
1214 * lynx-low.cc (lynx_target_ops): Update.
1215 * nto-low.cc (nto_target_ops): Update.
1216 * win32-low.cc (win32_target_ops): Update.
1218 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1220 Turn process_stratum_target's supports_agent op into a method of
1223 * target.h (struct process_stratum_target): Remove the target op.
1224 (class process_target): Add the target op.
1225 (target_supports_agent): Update the macro.
1226 * target.cc (process_target::supports_agent): Define.
1228 Update the derived classes and callers below.
1230 * linux-low.cc (linux_target_ops): Update.
1231 (linux_supports_agent): Turn into ...
1232 (linux_process_target::supports_agent): ... this.
1233 * linux-low.h (class linux_process_target): Update.
1234 * lynx-low.cc (lynx_target_ops): Update.
1235 * nto-low.cc (nto_target_ops): Update.
1236 * win32-low.cc (win32_target_ops): Update.
1238 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1240 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1241 method of process_target.
1243 * target.h (struct process_stratum_target): Remove the target op.
1244 (class process_target): Add the target op. Also add
1245 'supports_qxfer_libraries_svr4'.
1246 * target.cc (process_target::qxfer_libraries_svr4): Define.
1247 (process_target::supports_qxfer_libraries_svr4): Define.
1249 Update the derived classes and callers below.
1251 * server.cc (handle_qxfer_libraries_svr4): Update.
1252 (handle_query): Update.
1253 * linux-low.cc (linux_target_ops): Update.
1254 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1255 (linux_qxfer_libraries_svr4): Turn into ...
1256 (linux_process_target::qxfer_libraries_svr4): ... this.
1257 * linux-low.h (class linux_process_target): Update.
1258 * lynx-low.cc (lynx_target_ops): Update.
1259 * nto-low.cc (nto_target_ops): Update.
1260 * win32-low.cc (win32_target_ops): Update.
1262 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1264 Turn process_stratum_target's supports_disable_randomization op
1265 into a method of process_target.
1267 * target.h (struct process_stratum_target): Remove the target op.
1268 (class process_target): Add the target op.
1269 (target_supports_disable_randomization): Update the macro.
1270 * target.cc (process_target::supports_disable_randomization): Define.
1272 Update the derived classes and callers below.
1274 * linux-low.cc (linux_target_ops): Update.
1275 (linux_supports_disable_randomization): Turn into ...
1276 (linux_process_target::supports_disable_randomization): ... this.
1277 * linux-low.h (class linux_process_target): Update.
1278 * lynx-low.cc (lynx_target_ops): Update.
1279 * nto-low.cc (nto_target_ops): Update.
1280 * win32-low.cc (win32_target_ops): Update.
1282 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1284 Turn process_stratum_target's emit_ops op into a method of
1287 * target.h (struct process_stratum_target): Remove the target op.
1288 (class process_target): Add the target op.
1289 (target_emit_ops): Update the macro.
1290 * target.cc (process_target::emit_ops): Define.
1292 Update the derived classes and callers below.
1294 * linux-low.cc (linux_target_ops): Update.
1295 (linux_emit_ops): Turn into ...
1296 (linux_process_target::emit_ops): ... this.
1297 * linux-low.h (class linux_process_target): Update.
1298 * lynx-low.cc (lynx_target_ops): Update.
1299 * nto-low.cc (nto_target_ops): Update.
1300 * win32-low.cc (win32_target_ops): Update.
1302 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1304 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1305 and get_min_fast_tracepoint_insn_len ops into methods of
1308 * target.h (struct process_stratum_target): Remove the target ops.
1309 (class process_target): Add the target ops. Also add
1310 'supports_fast_tracepoints'.
1311 (target_supports_fast_tracepoints): Update the macro.
1312 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1313 (install_fast_tracepoint_jump_pad): Update and rename the macro
1315 (target_install_fast_tracepoint_jump_pad): ... this.
1316 * target.cc (process_target::supports_fast_tracepoints): Define.
1317 (process_target::install_fast_tracepoint_jump_pad): Define.
1318 (process_target::get_min_fast_tracepoint_insn_len): Define.
1320 Update the derived classes and callers below.
1322 * tracepoint.cc (install_fast_tracepoint): Update.
1323 * linux-low.cc (linux_target_ops): Update.
1324 (linux_process_target::supports_fast_tracepoints): Define.
1325 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1326 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1327 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1328 (linux_process_target::get_min_fast_tracepoint_insn_len): ... 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.
1334 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1336 Turn process_stratum_target's stabilize_threads op into a
1337 method of process_target.
1339 * target.h (struct process_stratum_target): Remove the target op.
1340 (class process_target): Add the target op.
1341 (target_stabilize_threads): Update the macro.
1342 * target.cc (process_target::stabilize_threads): Define.
1344 Update the derived classes and callers below.
1346 * server.cc (handle_status): Update.
1347 * tracepoint.cc (cmd_qtdp): Update.
1348 (cmd_qtstart): Update.
1349 * linux-low.cc (linux_target_ops): Update.
1350 (linux_stabilize_threads): Turn into ...
1351 (linux_process_target::stabilize_threads): ... this.
1352 (linux_wait_1): Update.
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.
1358 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1360 Turn process_stratum_target's pause_all and unpause_all ops
1361 into methods of process_target.
1363 * target.h (struct process_stratum_target): Remove the target ops.
1364 (class process_target): Add the target ops.
1365 (pause_all): Update the macro and rename to...
1366 (target_pause_all): ... this.
1367 (unpause_all): Update the macro and rename to...
1368 (target_unpause_all): ... this.
1369 * target.cc (process_target::pause_all): Define.
1370 (process_target::unpause_all): Define.
1372 Update the derived classes and callers below.
1374 * server.cc (handle_status): Update.
1375 * tracepoint.cc (clear_installed_tracepoints): Update.
1377 (cmd_qtstart): Update.
1378 (stop_tracing): Update.
1379 (cmd_qtstatus): Update.
1380 (upload_fast_traceframes): Update.
1381 (run_inferior_command): Update.
1382 * linux-low.cc (linux_target_ops): Update.
1383 (linux_pause_all): Turn into ...
1384 (linux_process_target::pause_all): ... this.
1385 (linux_unpause_all): Turn into ...
1386 (linux_process_target::unpause_all): ... this.
1387 (linux_process_target::prepare_to_access_memory): Update.
1388 (linux_process_target::done_accessing_memory): Update.
1389 * linux-low.h (class linux_process_target): Update.
1390 * lynx-low.cc (lynx_target_ops): Update.
1391 * nto-low.cc (nto_target_ops): Update.
1392 * win32-low.cc (win32_target_ops): Update.
1394 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1396 Turn process_stratum_target's get_tib_address op into a method of
1399 * target.h (struct process_stratum_target): Remove the target op.
1400 (class process_target): Add the target op. Also add
1401 'supports_get_tib_address'.
1402 * target.cc (process_target::get_tib_address): Define.
1403 (process_target::supports_get_tib_address): Define.
1405 Update the derived classes and callers below.
1407 * server.cc (handle_query): Update.
1408 * linux-low.cc (win32_target_ops): Update.
1409 * lynx-low.cc (lynx_target_ops): Update.
1410 * nto-low.cc (nto_target_ops): Update.
1411 * win32-low.cc (win32_target_ops): Update.
1412 (win32_process_target::supports_get_tib_address): Define.
1413 (win32_get_tib_address): Turn into ...
1414 (win32_process_target::get_tib_address): ... this.
1415 * win32-low.h (class win32_process_target): Update.
1417 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1419 Turn process_stratum_target's thread_stopped op into a method of
1422 * target.h (struct process_stratum_target): Remove the target op.
1423 (class process_target): Add the target op. Also add
1424 'supports_thread_stopped'.
1425 (target_thread_stopped): Update the macro.
1426 * target.cc (process_target::thread_stopped): Define.
1427 (process_target::supports_thread_stopped): Define.
1428 (prepare_to_access_memory): Update.
1430 Update the derived classes and callers below.
1432 * server.cc (queue_stop_reply_callback): Update.
1433 * linux-low.cc (linux_target_ops): Update.
1434 (linux_process_target::supports_thread_stopped): Define.
1435 (linux_thread_stopped): Turn into ...
1436 (linux_process_target::thread_stopped): ... this.
1437 * linux-low.h (class linux_process_target): Update.
1438 * lynx-low.cc (lynx_target_ops): Update.
1439 * nto-low.cc (nto_target_ops): Update.
1440 * win32-low.cc (win32_target_ops): Update.
1442 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1444 Turn process_stratum_target's read_pc and write_pc ops into
1445 methods of process_target.
1447 * target.h (struct process_stratum_target): Remove the target ops.
1448 (class process_target): Add the target ops.
1449 * target.cc (process_target::read_pc): Define.
1450 (process_target::write_pc): Define.
1452 Update the derived classes and callers below.
1454 * regcache.cc (regcache_read_pc): Update.
1455 (regcache_write_pc): Update.
1456 * linux-low.cc (linux_target_ops): Update.
1457 (linux_read_pc): Turn into ...
1458 (linux_process_target::read_pc): ... this.
1459 (linux_write_pc): Turn into ...
1460 (linux_process_target::write_pc): ... this.
1461 * linux-low.h (class linux_process_target): Update.
1462 * lynx-low.cc (lynx_target_ops): Update.
1463 * nto-low.cc (nto_target_ops): Update.
1464 * win32-low.cc (win32_target_ops): Update.
1466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468 Turn process_stratum_target's supports_tracepoints op into a
1469 method of process_target.
1471 * target.h (struct process_stratum_target): Remove the target op.
1472 (class process_target): Add the target op.
1473 (target_supports_tracepoints): Update the macro.
1474 * target.cc (process_target::supports_tracepoints): Define.
1476 Update the derived classes and callers below.
1478 * linux-low.cc (linux_target_ops): Update.
1479 (linux_supports_tracepoints): Turn into ...
1480 (linux_process_target::supports_tracepoints): ... this.
1481 * linux-low.h (class linux_process_target): Update.
1482 * lynx-low.cc (lynx_target_ops): Update.
1483 * nto-low.cc (nto_target_ops): Update.
1484 * win32-low.cc (win32_target_ops): Update.
1486 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1488 Turn process_stratum_target's process_qsupported op into a method
1491 * target.h (struct process_stratum_target): Remove the target op.
1492 (class process_target): Add the target op.
1493 (target_process_qsupported): Update the macro.
1494 * target.cc (process_target::process_qsupported): Define.
1496 Update the derived classes and callers below.
1498 * linux-low.cc (linux_target_ops): Update.
1499 (linux_process_qsupported): Turn into ...
1500 (linux_process_target::process_qsupported): ... this.
1501 * linux-low.h (class linux_process_target): Update.
1502 * lynx-low.cc (lynx_target_ops): Update.
1503 * nto-low.cc (nto_target_ops): Update.
1504 * win32-low.cc (win32_target_ops): Update.
1506 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1508 Turn process_stratum_target's read_loadmap op into a method of
1511 * target.h (struct process_stratum_target): Remove the target op.
1512 (class process_target): Add the target op. Also add
1513 'supports_read_loadmap'.
1514 * target.cc (process_target::read_loadmap): Define.
1515 (process_target::supports_read_loadmap): Define.
1517 Update the derived classes and callers below.
1519 * server.cc (handle_qxfer_fdpic): Update.
1520 (handle_query): Update.
1521 * linux-low.cc (linux_target_ops): Update.
1522 (linux_process_target::supports_read_loadmap): Define.
1523 (linux_read_loadmap): Turn into ...
1524 (linux_process_target::read_loadmap): ... 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.
1530 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1532 Turn process_stratum_target's core_of_thread op into a method of
1535 * target.h (struct process_stratum_target): Remove the target op.
1536 (class process_target): Add the target op.
1537 (target_core_of_thread): Update the macro.
1538 * target.cc (process_target::core_of_thread): Define.
1540 Update the derived classes and callers below.
1542 * linux-low.cc (linux_target_ops): Update.
1543 (linux_process_target::core_of_thread): Define.
1544 * linux-low.h (class linux_process_target): Update.
1545 * lynx-low.cc (lynx_target_ops): Update.
1546 * nto-low.cc (nto_target_ops): Update.
1547 * win32-low.cc (win32_target_ops): Update.
1549 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1551 Turn process_stratum_target's handle_monitor_command op into a
1552 method of process_target.
1554 * target.h (struct process_stratum_target): Remove the target op.
1555 (class process_target): Add the target op.
1556 (target_handle_monitor_command): Update the macro.
1557 * target.cc (process_target::handle_monitor_command): Define.
1559 Update the derived classes and callers below.
1561 * server.cc (handle_query): Update.
1562 * linux-low.cc (linux_target_ops): Update.
1563 (linux_process_target::handle_monitor_command): Define.
1564 * linux-low.h (class linux_process_target): Update.
1565 * lynx-low.cc (lynx_target_ops): Update.
1566 * nto-low.cc (nto_target_ops): Update.
1567 * win32-low.cc (win32_target_ops): Update.
1569 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1571 Turn process_stratum_target's handle_new_gdb_connection op into a
1572 method of process_target.
1574 * target.h (struct process_stratum_target): Remove the target op.
1575 (class process_target): Add the target op.
1576 (target_handle_new_gdb_connection): Update the macro.
1577 * target.cc (process_target::handle_new_gdb_connection): Define.
1579 Update the derived classes and callers below.
1581 * linux-low.cc (linux_target_ops): Update.
1582 (linux_handle_new_gdb_connection): Turn into ...
1583 (linux_process_target::handle_new_gdb_connection): ... this.
1584 * linux-low.h (class linux_process_target): Update.
1585 * lynx-low.cc (lynx_target_ops): Update.
1586 * nto-low.cc (nto_target_ops): Update.
1587 * win32-low.cc (win32_target_ops): Update.
1589 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1591 Turn process_stratum_target's supports_fork_events,
1592 supports_vfork_events, and supports_exec_events ops into methods
1595 * target.h (struct process_stratum_target): Remove the target ops.
1596 (class process_target): Add the target ops.
1597 (target_supports_fork_events): Update the macro.
1598 (target_supports_vfork_events): Update the macro.
1599 (target_supports_exec_events): Update the macro.
1600 * target.cc (process_target::supports_fork_events): Define.
1601 (process_target::supports_vfork_events): Define.
1602 (process_target::supports_exec_events): Define.
1604 Update the derived classes and callers below.
1606 * linux-low.cc (linux_target_ops): Update.
1607 (linux_supports_fork_events): Turn into ...
1608 (linux_process_target::supports_fork_events): ... this.
1609 (linux_supports_vfork_events): Turn into ...
1610 (linux_process_target::supports_vfork_events): ... this.
1611 (linux_supports_exec_events): Turn into ...
1612 (linux_process_target::supports_exec_events): ... this.
1613 * linux-low.h (class linux_process_target): Update.
1614 * lynx-low.cc (lynx_target_ops): Update.
1615 * nto-low.cc (nto_target_ops): Update.
1616 * win32-low.cc (win32_target_ops): Update.
1618 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620 Turn process_stratum_target's supports_multi_process op into a
1621 method of process_target.
1623 * target.h (struct process_stratum_target): Remove the target op.
1624 (class process_target): Add the target op.
1625 * target.cc (process_target::supports_multi_process): Define.
1626 (target_supports_multi_process): Update.
1628 Update the derived classes and callers below.
1630 * linux-low.cc (linux_target_ops): Update.
1631 (linux_supports_multi_process): Turn into ...
1632 (linux_process_target::supports_multi_process): ... this.
1633 * linux-low.h (class linux_process_target): Update.
1634 * lynx-low.cc (lynx_target_ops): Update.
1635 * nto-low.cc (nto_target_ops): Update.
1636 * win32-low.cc (win32_target_ops): Update.
1638 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1640 Turn process_stratum_target's supports_non_stop, async, and
1641 start_non_stop ops into methods of process_target.
1643 * target.h (struct process_stratum_target): Remove the target ops.
1644 (class process_target): Add the target ops.
1645 (target_supports_non_stop): Update the macro.
1646 (target_async): Update the macro.
1647 (start_non_stop): Remove declaration.
1648 * target.cc (process_target::supports_non_stop): Define.
1649 (process_target::async): Define.
1650 (process_target::start_non_stop): Define.
1651 (start_non_stop): Remove.
1653 Update the derived classes and callers below.
1655 * server.cc (handle_qxfer_siginfo): Update.
1656 (handle_query): Update.
1657 * linux-low.cc (linux_target_ops): Update.
1658 (linux_supports_non_stop): Turn into ...
1659 (linux_process_target::supports_non_stop): ... this.
1660 (linux_async): Turn into ...
1661 (linux_process_target::async): ... this.
1662 (linux_start_non_stop): Turn into ...
1663 (linux_process_target::start_non_stop): ... this.
1664 * linux-low.h (class linux_process_target): Update.
1665 * lynx-low.cc (lynx_target_ops): Update.
1666 * nto-low.cc (nto_target_ops): Update.
1667 (nto_supports_non_stop): Remove; rely on the default behavior
1669 * win32-low.cc (win32_target_ops): Update.
1671 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1673 Turn process_stratum_target's qxfer_siginfo op into a method of
1676 * target.h (struct process_stratum_target): Remove the target op.
1677 (class process_target): Add the target op. Also add
1678 'supports_qxfer_siginfo'.
1679 * target.cc (process_target::qxfer_siginfo): Define.
1680 (process_target::supports_qxfer_siginfo): Define.
1682 Update the derived classes and callers below.
1684 * server.cc (handle_qxfer_siginfo): Update.
1685 (handle_query): Update.
1686 * linux-low.cc (linux_target_ops): Update.
1687 (linux_process_target::supports_qxfer_siginfo): Define.
1688 (linux_xfer_siginfo): Turn into ...
1689 (linux_process_target::qxfer_siginfo): ... this.
1690 * linux-low.h (class linux_process_target): Update.
1691 * lynx-low.cc (lynx_target_ops): Update.
1692 * nto-low.cc (nto_target_ops): Update.
1693 * win32-low.cc (win32_target_ops): Update.
1695 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1697 Turn process_stratum_target's qxfer_osdata op into a method of
1700 * target.h (struct process_stratum_target): Remove the target op.
1701 (class process_target): Add the target op. Also add
1702 'supports_qxfer_osdata'.
1703 * target.cc (process_target::qxfer_osdata): Define.
1704 (process_target::supports_qxfer_osdata): Define.
1706 Update the derived classes and callers below.
1708 * server.cc (handle_qxfer_osdata): Update.
1709 (handle_query): Update.
1710 * linux-low.cc (linux_target_ops): Update.
1711 (linux_process_target::supports_qxfer_osdata): Define.
1712 (linux_qxfer_osdata): Turn into ...
1713 (linux_process_target::qxfer_osdata): ... this.
1714 * linux-low.h (class linux_process_target): Update.
1715 * lynx-low.cc (lynx_target_ops): Update.
1716 * nto-low.cc (nto_target_ops): Update.
1717 * win32-low.cc (win32_target_ops): Update.
1719 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1721 Turn process_stratum_target's hostio_last_error op into a
1722 method of process_target.
1724 * target.h (struct process_stratum_target): Remove the target op.
1725 (class process_target): Add the target op.
1726 * target.cc: Add "hostio.h" to includes.
1727 (process_target::hostio_last_error): Define.
1729 Update the derived classes and callers below.
1731 * hostio.cc (hostio_error): Update.
1732 * linux-low.cc: Remove "hostio.h" from includes.
1733 (linux_target_ops): Update.
1734 * lynx-low.cc (lynx_target_ops): Update.
1735 * nto-low.cc (nto_target_ops): Update.
1736 * win32-low.h (class win32_process_target): Update.
1737 * win32-low.cc (win32_target_ops): Update.
1738 (wince_hostio_last_error): Turn into ...
1739 (win32_process_target::hostio_last_error): ... this.
1741 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1743 Turn process_stratum_target's get_tls_address op into a method of
1746 * target.h (struct process_stratum_target): Remove the target op.
1747 (class process_target): Add the target op. Also add
1748 'supports_get_tls_address'.
1749 * target.cc (process_target::get_tls_address): Define.
1750 (process_target::supports_get_tls_address): Define.
1752 Update the derived classes and callers below.
1754 * server.cc (handle_query): Update.
1755 * linux-low.cc (linux_target_ops): Update.
1756 (linux_process_target::supports_get_tls_address): Define.
1757 (linux_process_target::get_tls_address): Define.
1758 * linux-low.h (class linux_process_target): Update.
1759 * lynx-low.cc (lynx_target_ops): Update.
1760 * nto-low.cc (nto_target_ops): Update.
1761 * win32-low.cc (win32_target_ops): Update.
1763 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1765 Turn process_stratum_target's read_offsets op into a method of
1768 * target.h (struct process_stratum_target): Remove the target op.
1769 (class process_target): Add the target op. Also add
1770 'supports_read_offsets'.
1771 * target.cc (process_target::read_offsets): Define.
1772 (process_target::supports_read_offsets): Define.
1774 Update the derived classes and callers below.
1776 * server.cc (handle_query): Update.
1777 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1778 (linux_target_ops): Update.
1779 (linux_process_target::supports_read_offsets): Define.
1780 (linux_read_offsets): Turn into ...
1781 (linux_process_target::read_offsets): ... this.
1782 * linux-low.h (class linux_process_target): Update.
1783 * lynx-low.cc (lynx_target_ops): Update.
1784 * nto-low.cc (nto_target_ops): Update.
1785 * win32-low.cc (win32_target_ops): Update.
1787 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1789 Turn process_stratum_target's stopped_by_watchpoint and
1790 stopped_data_address ops into methods of process_target.
1792 * target.h (struct process_stratum_target): Remove the target ops.
1793 (class process_target): Add the target ops.
1794 * target.cc (process_target::stopped_by_watchpoint): Define.
1795 (process_target::stopped_data_address): Define.
1797 Update the derived classes and callers below.
1799 * remote-utils.cc (prepare_resume_reply): Update.
1800 * linux-low.cc (linux_target_ops): Update.
1801 (linux_stopped_by_watchpoint): Turn into ...
1802 (linux_process_target::stopped_by_watchpoint): ... this.
1803 (linux_stopped_data_address): Turn into ...
1804 (linux_process_target::stopped_data_address): ... this.
1805 * linux-low.h (class linux_process_target): Update.
1806 * lynx-low.cc (lynx_target_ops): Update.
1807 * nto-low.cc (nto_target_ops): Update.
1808 (nto_stopped_by_watchpoint): Turn into ...
1809 (nto_process_target::stopped_by_watchpoint): ... this.
1810 (nto_stopped_data_address): Turn into ...
1811 (nto_process_target::stopped_data_address): ... this.
1812 * nto-low.h (class nto_process_target): Update.
1813 * win32-low.cc (win32_target_ops): Update.
1814 (win32_stopped_by_watchpoint): Turn into ...
1815 (win32_process_target::stopped_by_watchpoint): ... this.
1816 (win32_stopped_data_address): Turn into ...
1817 (win32_process_target::stopped_data_address): ... this.
1818 * win32-low.h (class win32_process_target): Update.
1820 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1822 Turn process_stratum_target's supports_hardware_single_step op into
1823 a method of process_target.
1825 * target.h (struct process_stratum_target): Remove the target op.
1826 (class process_target): Add the target op.
1827 (target_supports_hardware_single_step): Update the macro.
1828 (target_can_do_hardware_single_step): Remove declaration.
1829 * target.cc (process_target::supports_hardware_single_step): Define.
1830 (target_can_do_hardware_single_step): Remove.
1832 Update the derived classes and callers below.
1834 * linux-low.h (class linux_process_target): Update.
1835 * linux-low.cc (linux_target_ops): Update.
1836 (linux_supports_hardware_single_step): Turn into ...
1837 (linux_process_target::supports_hardware_single_step): ... this.
1838 * lynx-low.h (class lynx_process_target): Update.
1839 * lynx-low.cc (lynx_target_ops): Update.
1840 (lynx_process_target::supports_hardware_single_step): Define.
1841 * nto-low.h (class nto_process_target): Update.
1842 * nto-low.cc (nto_target_ops): Update.
1843 (nto_process_target::supports_hardware_single_step): Define.
1844 * win32-low.h (class win32_process_target): Update.
1845 * win32-low.cc (win32_target_ops): Update.
1846 (win32_process_target::supports_hardware_single_step): Define.
1848 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1850 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1851 ops into methods of process_target.
1853 * target.h (struct process_stratum_target): Remove the target ops.
1854 (class process_target): Add the target ops.
1855 (target_stopped_by_hw_breakpoint): Update the macro.
1856 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1857 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1858 (process_target::supports_stopped_by_hw_breakpoint): Define.
1860 Update the derived classes and callers below.
1862 * linux-low.cc (linux_target_ops): Update.
1863 (linux_stopped_by_hw_breakpoint): Turn into ...
1864 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1865 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1866 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1867 * linux-low.h (class linux_process_target): Update.
1868 * lynx-low.cc (lynx_target_ops): Update.
1869 * nto-low.cc (nto_target_ops): Update.
1870 * win32-low.cc (win32_target_ops): Update.
1872 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1874 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1875 ops into methods of process_target.
1877 * target.h (struct process_stratum_target): Remove the target ops.
1878 (class process_target): Add the target ops.
1879 (target_stopped_by_sw_breakpoint): Update the macro.
1880 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1881 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1882 (process_target::supports_stopped_by_sw_breakpoint): Define.
1884 Update the derived classes and callers below.
1886 * linux-low.cc (linux_target_ops): Update.
1887 (linux_stopped_by_sw_breakpoint): Turn into ...
1888 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1889 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1890 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1891 * linux-low.h (class linux_process_target): Update.
1892 * lynx-low.cc (lynx_target_ops): Update.
1893 * nto-low.cc (nto_target_ops): Update.
1894 * win32-low.cc (win32_target_ops): Update.
1896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1898 Turn process_stratum_target's insert_point and remove_point ops
1899 into methods of process_target.
1901 * target.h (struct process_stratum_target): Remove the target ops.
1902 (class process_target): Add the target ops.
1903 * target.cc (process_target::insert_point): Define.
1904 (process_target::remove_point): Define.
1906 Update the derived classes and callers below.
1908 * mem-break.cc (set_raw_breakpoint_at): Update.
1909 (delete_raw_breakpoint): Update.
1910 (uninsert_raw_breakpoint): Update.
1911 (reinsert_raw_breakpoint): Update.
1912 * linux-low.cc (linux_target_ops): Update.
1913 (linux_insert_point): Turn into ...
1914 (linux_process_target::insert_point): ... this.
1915 (linux_remove_point): Turn into ...
1916 (linux_process_target::remove_point): ... this.
1917 * linux-low.h (class linux_process_target): Update.
1918 * lynx-low.cc (lynx_target_ops): Update.
1919 * nto-low.cc (nto_target_ops): Update.
1920 (nto_insert_point): Turn into ...
1921 (nto_process_target::insert_point): ... this.
1922 (nto_remove_point): Turn into ...
1923 (nto_process_target::remove_point): ... this.
1924 * nto-low.h (class nto_process_target): Update.
1925 * win32-low.cc (win32_target_ops): Update.
1926 (win32_insert_point): Turn into ...
1927 (win32_process_target::insert_point): ... this.
1928 (win32_remove_point): Turn into ...
1929 (win32_process_target::remove_point): ... this.
1930 * win32-low.h (class win32_process_target): Update.
1932 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1934 Turn process_stratum_target's supports_z_point_type op into a
1935 method of process_target.
1937 * target.h (struct process_stratum_target): Remove the target op.
1938 (class process_target): Add the target op.
1939 * target.cc (process_target::supports_z_point_type): Define.
1941 Update the derived classes and callers below.
1943 * mem-break.cc (z_type_supported): Update.
1944 * linux-low.cc (linux_target_ops): Update.
1945 (linux_supports_z_point_type): Turn into ...
1946 (linux_process_target::supports_z_point_type): ... this.
1947 * linux-low.h (class linux_process_target): Update.
1948 * lynx-low.cc (lynx_target_ops): Update.
1949 * nto-low.cc (nto_target_ops): Update.
1950 (nto_supports_z_point_type): Turn into ...
1951 (nto_process_target::supports_z_point_type): ... this.
1952 * nto-low.h (class nto_process_target): Update.
1953 * win32-low.cc (win32_target_ops): Update.
1954 (win32_supports_z_point_type): Turn into ...
1955 (win32_process_target::supports_z_point_type): ... this.
1956 * win32-low.h (class win32_process_target): Update.
1958 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1960 Turn process_stratum_target's read_auxv op into a method of
1963 * target.h (class process_stratum_target): Remove the target op.
1964 (struct process_target): Add the target op. Also add
1965 'supports_read_auxv'.
1966 * target.cc (process_target::read_auxv): Define.
1967 (process_target::supports_read_auxv): Define.
1969 Update the derived classes and callers below.
1971 * server.cc (handle_qxfer_auxv): Update.
1972 (handle_query): Update.
1973 * linux-low.cc (linux_target_ops): Update.
1974 (linux_process_target::supports_read_auxv): Define.
1975 (linux_read_auxv): Turn into ...
1976 (linux_process_target::read_auxv): ... this.
1977 * linux-low.h (class linux_process_target): Update.
1978 * lynx-low.cc (lynx_target_ops): Update.
1979 * nto-low.cc (nto_target_ops): Update.
1980 (nto_process_target::supports_read_auxv): Define.
1981 (nto_read_auxv): Turn into ...
1982 (nto_process_target::read_auxv): ... this.
1983 * nto-low.h (class nto_process_target): Update.
1984 * win32-low.cc (win32_target_ops): Update.
1986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1988 Turn process_stratum_target's request_interrupt op into a method of
1991 * target.h (struct process_stratum_target): Remove the target op.
1992 (class process_target): Add the target op.
1994 Update the derived classes and callers below.
1996 * remote-utils.cc (putpkt_binary_1): Update.
1997 (input_interrupt): Update.
1999 * server.cc (handle_v_requests): Update.
2000 * linux-low.cc (linux_target_ops): Update.
2001 (linux_request_interrupt): Turn into ...
2002 (linux_process_target::request_interrupt): ... this.
2003 * linux-low.h (class linux_process_target): Update.
2004 * lynx-low.cc (lynx_target_ops): Update.
2005 (lynx_request_interrupt): Turn into ...
2006 (lynx_process_target::request_interrupt): ... this.
2007 * lynx-low.h (class lynx_process_target): Update.
2008 * nto-low.cc (nto_target_ops): Update.
2009 (nto_request_interrupt): Turn into ...
2010 (nto_process_target::request_interrupt): ... this.
2011 * nto-low.h (class nto_process_target): Update.
2012 * win32-low.cc (win32_target_ops): Update.
2013 (win32_request_interrupt): Turn into ...
2014 (win32_process_target::request_interrupt): ... this.
2015 * win32-low.h (class win32_process_target): Update.
2017 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2019 Turn process_stratum_target's look_up_symbols op into a method of
2022 * target.h (struct process_stratum_target): Remove the target op.
2023 (class process_target): Add the target op.
2024 * target.cc (process_target::look_up_symbols): Define.
2026 Update the derived classes and callers below.
2028 * server.cc (handle_query): Update.
2029 * linux-low.cc (linux_target_ops): Update.
2030 (linux_look_up_symbols): Turn into ...
2031 (linux_process_target::look_up_symbols): ... this.
2032 * linux-low.h (class linux_process_target): Update.
2033 * lynx-low.cc (lynx_target_ops): Update.
2034 * nto-low.cc (nto_target_ops): Update.
2035 * win32-low.cc (win32_target_ops): Update.
2037 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2039 Turn process_stratum_target's read_memory and write_memory
2040 ops into methods of process_target.
2042 * target.h (struct process_stratum_target): Remove the target ops.
2043 (class process_target): Add the target ops.
2045 Update the derived classes and callers below.
2047 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
2048 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
2049 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
2050 (arm_get_syscall_trapinfo): Update.
2051 * linux-cris-low.cc (cris_breakpoint_at): Update.
2052 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
2053 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
2054 * linux-mips-low.cc (mips_breakpoint_at): Update.
2055 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
2056 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
2057 * linux-sh-low.cc (sh_breakpoint_at): Update.
2058 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
2059 (sparc_store_gregset_from_stack): Update.
2060 (sparc_breakpoint_at): Update.
2061 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
2062 * linux-tile-low.cc (tile_breakpoint_at): Update.
2063 * linux-x86-low.cc (x86_breakpoint_at): Update.
2064 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2065 * mem-brea.cc (insert_memory_breakpoint): Update.
2066 (validate_inserted_breakpoint): Update.
2067 * target.cc (read_inferior_memory): Update.
2068 (target_write_memory): Update.
2069 * linux-low.cc (linux_target_ops): Update.
2070 (linux_read_memory): Make a wrapper around the read_memory target
2072 (linux_process_target::read_memory): Rename from linux_read_memory.
2073 (linux_write_memory): Turn into ...
2074 (linux_process_target::write_memory): ... this.
2075 * linux-low.h (class linux_process_target): Update.
2076 * lynx-low.cc (lynx_target_ops): Update.
2077 (lynx_read_memory): Turn into ...
2078 (lynx_process_target::read_memory): ... this.
2079 (lynx_write_memory): Turn into ...
2080 (lynx_process_target::write_memory): ... this.
2081 * lynx-low.h (class lynx_process_target): Update.
2082 * nto-low.cc (nto_target_ops): Update.
2083 (nto_read_memory): Turn into ...
2084 (nto_process_target::read_memory): ... this.
2085 (nto_write_memory): Turn into ...
2086 (nto_process_target::write_memory): ... this.
2087 * nto-low.h (class nto_process_target): Update.
2088 * win32-low.cc (win32_target_ops): Update.
2089 (win32_read_inferior_memory): Turn into ...
2090 (win32_process_target::read_memory): ... this.
2091 (win32_write_inferior_memory): Turn into ...
2092 (win32_process_target::write_memory): ... this.
2093 * win32-low.h (class win32_process_target): Update.
2095 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2097 Turn process_stratum_target's prepare_to_access_memory and
2098 done_accessing_memory ops into methods of process_target.
2100 * target.h (struct process_stratum_target): Remove the target ops.
2101 (class process_target): Add the target ops.
2102 * target.cc (process_target::prepare_to_access_memory): Define.
2103 (process_target::done_accessing_memory): Define.
2104 (prepare_to_access_memory): Update.
2105 (done_accessing_memory): Update.
2107 Update the derived classes and callers below.
2109 * linux-low.cc (linux_target_ops): Update.
2110 (linux_prepare_to_access_memory): Turn into ...
2111 (linux_process_target::prepare_to_access_memory): ... this.
2112 (linux_done_accessing_memory): Turn into ...
2113 (linux_process_target::done_accessing_memory): ... this.
2114 * linux-low.h (class linux_process_target): Update.
2115 * lynx-low.cc (lynx_target_ops): Update.
2116 * nto-low.cc (nto_target_ops): Update.
2117 * win32-low.cc (win32_target_ops): Update.
2119 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2121 Turn process_stratum_target's fetch_registers and store_registers
2122 ops into methods of process_target.
2124 * target.h (struct process_stratum_target): Remove the target ops.
2125 (class process_target): Add the target ops.
2126 (fetch_inferior_registers): Update the macro.
2127 (store_inferior_registers): Update the macro.
2129 Update the derived classes and callers below.
2131 * linux-low.cc (linux_target_ops): Update.
2132 (linux_fetch_registers): Turn into ...
2133 (linux_process_target::fetch_registers): ... this.
2134 (linux_store_registers): Turn into ...
2135 (linux_process_target::store_registers): ... this.
2136 * linux-low.h (class linux_process_target): Update.
2137 * lynx-low.cc (lynx_target_ops): Update.
2138 (lynx_fetch_registers): Turn into ...
2139 (lynx_process_target::fetch_registers): ... this.
2140 (lynx_store_registers): Turn into ...
2141 (lynx_process_target::store_registers): ... this.
2142 * lynx-low.h (class lynx_process_target): Update.
2143 * nto-low.cc (nto_target_ops): Update.
2144 (nto_fetch_registers): Turn into ...
2145 (nto_process_target::fetch_registers): ... this.
2146 (nto_store_registers): Turn into ...
2147 (nto_process_target::store_registers): ... this.
2148 * nto-low.h (class nto_process_target): Update.
2149 * win32-low.cc (win32_target_ops): Update.
2150 (win32_fetch_inferior_registers): Turn into ...
2151 (win32_process_target::fetch_registers): ... this.
2152 (win32_store_inferior_registers): Turn into ...
2153 (win32_process_target::store_registers): ... this.
2154 * win32-low.h (class win32_process_target): Update.
2156 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2158 Turn process_stratum_target's wait op into a method of
2161 * target.h (struct process_stratum_target): Remove the target op.
2162 (class process_target): Add the target op.
2164 Update the derived classes and callers below.
2166 * target.cc (target_wait): Update.
2167 * linux-low.cc (linux_target_ops): Update.
2168 (linux_wait): Turn into ...
2169 (linux_process_target::wait): ... this.
2170 * linux-low.h (class linux_process_target): Update.
2171 * lynx-low.cc (lynx_target_ops): Update.
2172 (lynx_wait): Turn into ...
2173 (lynx_process_target::wait): ... this.
2174 * lynx-low.h (class lynx_process_target): Update.
2175 * nto-low.cc (nto_target_ops): Update.
2176 (nto_wait): Turn into ...
2177 (nto_process_target::wait): ... this.
2178 * nto-low.h (class nto_process_target): Update.
2179 * win32-low.cc (win32_target_ops): Update.
2180 (win32_wait): Turn into ...
2181 (win32_process_target::wait): ... this.
2182 (do_initial_child_stuff): Update.
2183 * win32-low.h (class win32_process_target): Update.
2185 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2187 Turn process_stratum_target's resume op into a method of
2190 * target.h (struct process_stratum_target): Remove the target op.
2191 (class process_target): Add the target op.
2193 Update the derived classes and callers below.
2195 * server.cc (resume): Update.
2196 * target.cc (target_stop_and_wait): Update.
2197 (target_continue_no_signal): Update.
2198 (target_continue): Update.
2199 * linux-low.cc (linux_target_ops): Update.
2200 (linux_resume): Turn into ...
2201 (linux_process_target::resume): ... this.
2202 * linux-low.h (class linux_process_target): Update.
2203 * lynx-low.cc (lynx_target_ops): Update.
2204 (lynx_resume): Turn into ...
2205 (lynx_process_target::resume): ... this.
2206 * lynx-low.h (class lynx_process_target): Update.
2207 * nto-low.cc (nto_target_ops): Update.
2208 (nto_resume): Turn into ...
2209 (nto_process_target::resume): ... this.
2210 * nto-low.h (class nto_process_target): Update.
2211 * win32-low.cc (win32_target_ops): Update.
2212 (win32_resume): Turn into ...
2213 (win32_process_target::resume): ... this.
2214 (win32_process_target::detach): Update.
2215 (do_initial_child_stuff): Update.
2216 * win32-low.h (class win32_process_target): Update.
2218 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2220 Turn process_stratum_target's thread_alive op into a method of
2223 * target.h (struct process_stratum_target): Remove the target op.
2224 (class process_target): Add the target op.
2225 (mythread_alive): Update the macro.
2227 Update the derived classes and callers below.
2229 * linux-low.cc (linux_target_ops): Update.
2230 (linux_thread_alive): Turn into ...
2231 (linux_process_target::thread_alive): ... this.
2232 (wait_for_sigstop): Update.
2233 * linux-low.h (class linux_process_target): Update.
2234 * lynx-low.cc (lynx_target_ops): Update.
2235 (lynx_thread_alive): Turn into ...
2236 (lynx_process_target::thread_alive): ... this.
2237 * lynx-low.h (class lynx_process_target): Update.
2238 * nto-low.cc (nto_target_ops): Update.
2239 (nto_thread_alive): Turn into ...
2240 (nto_process_target::thread_alive): ... this.
2241 * nto-low.h (class nto_process_target): Update.
2242 * win32-low.cc (win32_target_ops): Update.
2243 (win32_thread_alive): Turn into ...
2244 (win32_process_target::thread_alive): ... this.
2245 * win32-low.h (class win32_process_target): Update.
2247 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2249 Turn process_stratum_target's join op into a method of
2252 * target.h (struct process_stratum_target): Remove the target op.
2253 (class process_target): Add the target op.
2254 (join_inferior): Update the macro.
2256 Update the derived classes and callers below.
2258 * linux-low.cc (linux_target_ops): Update.
2259 (linux_join): Turn into ...
2260 (linux_process_target::join): ... this.
2261 * linux-low.h (class linux_process_target): Update.
2262 * lynx-low.cc (lynx_target_ops): Update.
2263 (lynx_join): Turn into ...
2264 (lynx_process_target::join): ... this.
2265 * lynx-low.h (class lynx_process_target): Update.
2266 * nto-low.cc (nto_target_ops): Update.
2267 (nto_process_target::join): Define.
2268 * nto-low.h (class nto_process_target): Update.
2269 * win32-low.cc (win32_target_ops): Update.
2270 (win32_join): Turn into ...
2271 (win32_process_target::join): ... this.
2272 * win32-low.h (class win32_process_target): Update.
2274 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2276 Turn process_stratum_target's mourn op into a method of
2279 * target.h (struct process_stratum_target): Remove the target op.
2280 (class process_target): Add the target op.
2282 Update the derived classes and callers below.
2284 * target.cc (target_mourn_inferior): Update.
2285 * linux-low.cc (linux_target_ops): Update.
2286 (linux_mourn): Turn into ...
2287 (linux_process_target::mourn): ... this.
2288 (handle_extended_wait): Update.
2289 (linux_process_target::kill): Update.
2290 (linux_process_target::detach): Update.
2291 * linux-low.h (class linux_process_target): Update.
2292 * lynx-low.cc (lynx_target_ops): Update.
2293 (lynx_mourn): Turn into ...
2294 (lynx_process_target::mourn): ... this.
2295 * lynx-low.h (class lynx_process_target): Update.
2296 * nto-low.cc (nto_target_ops): Update.
2297 (nto_mourn): Turn into ...
2298 (nto_process_target::mourn): ... this.
2299 * nto-low.h (class nto_process_target): Update.
2300 * win32-low.cc (win32_target_ops): Update.
2301 (win32_mourn): Turn into ...
2302 (win32_process_target::mourn): ... this.
2303 * win32-low.h (class win32_process_target): Update.
2305 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2307 Turn process_stratum_target's detach op into a method of
2310 * target.h (struct process_stratum_target): Remove the target op.
2311 (class process_target): Add the target op.
2312 (detach_inferior): Update the macro.
2314 Update the derived classes and callers below.
2316 * linux-low.cc (linux_target_ops): Update.
2317 (linux_detach): Turn into ...
2318 (linux_process_target::detach): ... this.
2319 * linux-low.h (class linux_process_target): Update.
2320 * lynx-low.cc (lynx_target_ops): Update.
2321 (lynx_detach): Turn into ...
2322 (lynx_process_target::detach): ... this.
2323 * lynx-low.h (class lynx_process_target): Update.
2324 * nto-low.cc (nto_target_ops): Update.
2325 (nto_detach): Turn into ...
2326 (nto_process_target::detach): ... this.
2327 * nto-low.h (class nto_process_target): Update.
2328 * win32-low.cc (win32_target_ops): Update.
2329 (win32_detach): Turn into ...
2330 (win32_process_target::detach): ... this.
2331 * win32-low.h (class win32_process_target): Update.
2333 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2335 Turn process_stratum_target's kill op into a method of
2338 * target.h (struct process_stratum_target): Remove the target op.
2339 (class process_target): Add the target op.
2341 Update the derived classes and callers below.
2343 * target.cc (kill_inferior): Update.
2344 * linux-low.cc (linux_target_ops): Update.
2345 (linux_kill): Turn into ...
2346 (linux_process_target::kill): ... this.
2347 * linux-low.h (class linux_process_target): Update.
2348 * lynx-low.cc (lynx_target_ops): Update.
2349 (lynx_kill): Turn into ...
2350 (lynx_process_target::kill): ... this.
2351 * lynx-low.h (class lynx_process_target): Update.
2352 * nto-low.cc (nto_target_ops): Update.
2353 (nto_kill): Turn into ...
2354 (nto_process_target::kill): ... this.
2355 * nto-low.h (class nto_process_target): Update.
2356 * win32-low.cc (win32_target_ops): Update.
2357 (win32_kill): Turn into ...
2358 (win32_process_target::kill): ... this.
2359 * win32-low.h (class win32_process_target): Update.
2361 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2363 Turn process_stratum_target's attach op into a method of
2366 * target.h (struct process_stratum_target): Remove the target op.
2367 (class process_target): Add the target op.
2368 (myattach): Update the macro.
2370 Update the derived classes and callers below.
2372 * linux-low.cc (linux_target_ops): Update.
2373 (linux_attach): Turn into ...
2374 (linux_process_target::attach): ... this.
2375 * linux-low.h (class linux_process_target): Update.
2376 * lynx-low.cc (lynx_target_ops): Update.
2377 (lynx_attach): Turn into ...
2378 (lynx_process_target::attach): ... this.
2379 * lynx-low.h (class lynx_process_target): Update.
2380 * nto-low.cc (nto_target_ops): Update.
2381 (nto_attach): Turn into ...
2382 (nto_process_target::attach): ... this.
2383 * nto-low.h (class nto_process_target): Update.
2384 * win32-low.cc (win32_target_ops): Update.
2385 (win32_attach): Turn into ...
2386 (win32_process_target::attach): ... this.
2387 * win32-low.h (class win32_process_target): Update.
2389 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2391 Turn process_stratum_target's post_create_inferior op into a method
2394 * target.h (struct process_stratum_target): Remove the target op.
2395 (class process_target): Add the target op.
2396 (target_post_create_inferior): Update the macro.
2397 * target.cc (process_target::post_create_inferior): Define.
2399 Update the derived classes and callers below.
2401 * linux-low.cc (linux_target_ops): Update.
2402 (linux_post_create_inferior): Turn into ...
2403 (linux_process_target::post_create_inferior): ... this.
2404 * linux-low.h (class linux_process_target): Update.
2405 * lynx-low.cc (lynx_target_ops): Update.
2406 * nto-low.cc (nto_target_ops): Update.
2407 * win32-low.cc (win32_target_ops): Update.
2409 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2411 Turn process_stratum_target's create_inferior op into a method of
2414 * target.h (struct process_stratum_target): Remove the target op.
2415 (class process_target): Add the target op.
2416 (create_inferior): Rename the macro to ...
2417 (target_create_inferior): ... this.
2419 Update the derived classes and callers below.
2421 * server.cc (handle_v_run): Update.
2422 (captured_main): Update.
2423 (process_serial_event): Update.
2424 * linux-low.cc (linux_target_ops): Update.
2425 (linux_create_inferior): Turn into ...
2426 (linux_process_target::create_inferior): ... this.
2427 * linux-low.h (class linux_process_target): Update.
2428 * lynx-low.cc (lynx_target_ops): Update.
2429 (lynx_create_inferior): Turn into ...
2430 (lynx_process_target::create_inferior): ... this.
2431 * lynx-low.h (class lynx_process_target): Update.
2432 * nto-low.cc (nto_target_ops): Update.
2433 (nto_create_inferior): Turn into ...
2434 (nto_process_target::create_inferior): ... this.
2435 * nto-low.h (class nto_process_target): Update.
2436 * win32-low.cc (win32_target_ops): Update.
2437 (win32_create_inferior): Turn into ...
2438 (win32_process_target::create_inferior): ... this.
2439 * win32-low.h (class win32_process_target): Update.
2441 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2443 * target.h (class process_target): New class definition.
2444 (struct process_stratum_target) <pt>: New field with type
2446 * linux-low.h (class linux_process_target): Define as a derived
2447 class of 'process_target'.
2448 * linux-low.cc (linux_target_ops): Add a linux_process_target*
2450 * lynx-low.h (class lynx_process_target): Define as a derived
2451 class of 'process_target'.
2452 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
2454 * nto-low.h (class nto_process_target): Define as a derived
2455 class of 'process_target'.
2456 * nto-low.cc (nto_target_ops): Add an nto_process_target*
2458 * win32-low.h (class win32_process_target): Define as a derived
2459 class of 'process_target'.
2460 * win32-low.cc (win32_target_ops): Add a win32_process_target*
2463 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2465 * configure: Regenerate.
2467 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
2468 Andrew Burgess <andrew.burgess@embecosm.com>
2470 * linux-riscv-low.cc: New file.
2471 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
2472 and nat/riscv-linux-tdesc.c.
2473 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
2474 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
2477 2020-02-14 Tom Tromey <tom@tromey.com>
2479 * acinclude.m4: Don't include acx_configure_dir.m4.
2480 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
2481 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
2482 (all, install-only, uninstall, clean-info, clean)
2483 (maintainer-clean): Don't recurse.
2484 (subdir_do, all-lib): Remove.
2485 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
2487 (generated_files): Update.
2488 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
2489 * configure: Rebuild.
2490 * configure.ac: Don't configure gnulib or libiberty.
2493 2020-02-14 Eli Zaretskii <eliz@gnu.org>
2495 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
2496 preparing the command line for CreateProcess.
2497 (win32_create_inferior): Reflect the program name in debugging
2498 output that shows the process and its command line.
2500 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2502 * Makefile.in: Rename source files from .c to .cc.
2503 * %.c: Rename to %.cc.
2504 * configure.ac: Rename server.c to server.cc.
2505 * configure: Re-generate.
2507 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2509 * Makefile.in: Rename gdbsupport source files from .c to .cc.
2511 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
2513 * win32-low.c (win32_create_inferior): Set signal_pid.
2515 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
2516 Pedro Alves <palves@redhat.com>
2518 Skip building gdbserver in a cross-configuration.
2519 * configure.srv: Set $gdbserver_host depending on whether $target
2520 is $host. Use $gdbserver_host instead of $host.
2522 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2524 * configure: Re-generate.
2526 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2528 * configure: Re-generate.
2530 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2532 * acinclude.m4: Update warning.m4 path.
2534 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2536 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
2537 (handle_exception): Set siginfo_er.
2538 (win32_xfer_siginfo): New function.
2540 2020-02-07 Tom Tromey <tom@tromey.com>
2541 Pedro Alves <palves@redhat.com>
2543 * README: Update build documentation.
2544 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
2546 * configure.ac: Update paths.
2547 * configure: Rebuild.
2548 * acinclude.m4: Update paths.
2549 * Makefile.in: Update include paths.
2550 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
2551 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
2552 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
2553 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
2554 (%-generated.c): Update paths.
2555 * Move entire directory from ../gdb/gdbserver.
2557 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
2559 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2561 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2563 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2564 assignment instead of srv_linux_obj.
2566 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
2568 * server.c (handle_qxfer_libraries): Write segment-address with
2571 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
2573 * Makefile.in (install-strip): New target.
2574 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
2575 * aclocal.m4: Regenerate.
2576 * configure: Regenerate.
2577 * configure.ac: Add AM_PROG_INSTALL_STRIP.
2579 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2581 * Makefile.in (SFILES): Adjust paths to point to real files.
2582 (OBS): Move waitstatus.o to target/waitstatus.o.
2583 (TAGS): Transform paths appropriately.
2585 (nat/%.o): ... this pattern rule.
2587 (target/%.o): ... this pattern rule.
2588 * configure.srv: Adjust paths throughout to include nat/ prefix
2589 with the revant files.
2590 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
2591 * configure: Regenerate.
2593 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2595 * Makefile.in (TAGS): Remove config files from the recipe.
2597 2020-01-14 Tom Tromey <tom@tromey.com>
2599 * configure: Rebuild.
2600 * configure.ac: Remove any checks that were added to common.m4.
2601 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
2604 2020-01-14 Tom Tromey <tom@tromey.com>
2606 * server.h: Include config.h.
2607 * gdbreplay.c: Include config.h.
2608 * configure: Rebuild.
2609 * configure.ac: Don't source common.host.
2610 * acinclude.m4: Update path.
2611 * Makefile.in (INCSUPPORT): New variable.
2612 (INCLUDE_CFLAGS): Add INCSUPPORT.
2613 (SFILES): Update paths.
2614 (version-generated.c): Update path to create-version.sh.
2615 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
2617 2020-01-14 Tom Tromey <tom@tromey.com>
2619 * configure.ac (LIBS): Use WIN32APILIBS.
2620 (USE_WIN32API): Don't define.
2621 * configure: Rebuild.
2623 2020-01-14 Tom Tromey <tom@tromey.com>
2625 * configure: Rebuild.
2627 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2629 * Makefile.in (%-generated.c): Remove rule for files from
2632 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2634 * configure: Re-generate.
2636 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2638 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2640 * tracepoint.c (stop_tracing, flush_trace_buffer,
2641 about_to_request_buffer_space, get_trace_state_variable_value,
2642 set_trace_state_variable_value, gdb_collect): Add declaration.
2644 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2646 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2647 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2648 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2649 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2650 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2653 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2655 * inferiors.c: Include gdbsupport/common-inferior.h.
2657 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2659 * hostio-errno.c: Include hostio.h.
2661 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2663 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2666 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2668 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2669 * linux-arm-tdesc.h: Include arch/arm.h.
2671 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2673 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2675 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2677 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2678 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2680 2020-01-10 Pedro Alves <palves@redhat.com>
2682 * fork-child.c (post_fork_inferior): Pass target down to
2684 * inferiors.c (switch_to_thread): Add process_stratum_target
2686 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2687 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2688 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2689 * remote-utils.c (prepare_resume_reply): Pass the target to
2691 * target.c (the_target): Now a process_stratum_target.
2692 (done_accessing_memory): Pass the target to switch_to_thread.
2693 (set_target_ops): Ajust to use process_stratum_target.
2694 * target.h (struct target_ops): Rename to ...
2695 (struct process_stratum_target): ... this.
2696 (the_target, set_target_ops): Adjust.
2697 (prepare_to_access_memory): Adjust comment.
2698 * win32-low.c (child_xfer_memory): Adjust to use
2699 process_stratum_target.
2700 (win32_target_ops): Now a process_stratum_target.
2702 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2703 Pedro Alves <palves@redhat.com>
2705 * win32-low.c (get_child_debug_event): Extract the fatal exception
2706 from the exit status and convert to the equivalent Posix signal
2708 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2709 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2711 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2713 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2715 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2717 * server.c (gdbserver_version): Change copyright year to 2020.
2718 * gdbreplay.c (gdbreplay_version): Likewise.
2720 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2722 * configure: Regenerate.
2723 * configure.ac: Quote variable arguments of test.
2725 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2727 * Makefile.in: Fix build with GNU Make 3.81
2729 2019-12-16 Tom Tromey <tromey@adacore.com>
2731 * server.c (get_exec_file): Constify result.
2733 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2735 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2736 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2737 * config.in: Regenerate.
2738 * configure: Regenerate.
2739 * configure.ac: Don't check for strerror.
2740 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2741 Call safe_strerror instead of strerror.
2742 * server.h (strerror): Remove this now-unnecessary declaration.
2743 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2745 (gdb_agent_helper_thread): Likewise.
2746 * utils.c (perror_with_name): Likewise.
2748 2019-11-26 Tom Tromey <tom@tromey.com>
2750 * configure, config.in: Rebuild.
2752 2019-11-26 Tom Tromey <tom@tromey.com>
2754 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2755 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2757 * configure, config.in: Rebuild.
2759 2019-11-26 Tom Tromey <tom@tromey.com>
2761 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2762 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2763 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2764 * acinclude.m4: Include ax_pthread.m4.
2765 * config.in, configure: Rebuild.
2767 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2769 * debug.c (debug_set_output): Call safe_strerror instead of
2771 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2772 (linux_kill_one_lwp): Likewise.
2773 (linux_detach_one_lwp): Likewise.
2774 (linux_wait_for_event_filtered): Likewise.
2775 (store_register): Likewise.
2776 * lynx-low.c (lynx_attach): Likewise.
2777 * mem-break.c (insert_memory_breakpoint): Likewise.
2778 (remove_memory_breakpoint): Likewise.
2779 (delete_fast_tracepoint_jump): Likewise.
2780 (set_fast_tracepoint_jump): Likewise.
2781 (uninsert_fast_tracepoint_jumps_at): Likewise.
2782 (reinsert_fast_tracepoint_jumps_at): Likewise.
2783 * nto-low.c (nto_xfer_memory): Likewise.
2784 (nto_resume): Likewise.
2786 2019-11-20 Luis Machado <luis.machado@linaro.org>
2788 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2789 instead of register count.
2790 * tdesc.c (tdesc_contains_feature): New function.
2791 * tdesc.h (tdesc_contains_feature): New prototype.
2793 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2795 * Makefile.in: Add safe-strerror.c.
2796 * configure: Regenerate.
2797 * configure.ac: Don't source common.host.
2799 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2801 * config.in: Regenerate.
2802 * configure: Regenerate.
2804 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2806 * ax.c (ax_printf): Handle size_t_arg.
2808 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2810 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2811 * mi/mi-main.c (output_cores): Likewise.
2812 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2813 (linux_xfer_osdata_modules): Likewise.
2814 * remote.c (register_remote_support_xml): Likewise.
2815 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2816 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2818 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2820 * configure: Regenerate.
2821 * configure.ac: Remove check for strerror_r.
2823 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2825 * config.in: Regenerate.
2826 * configure: Regenerate.
2827 * configure.ac: Also check for strerror_r.
2829 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2831 * ax.h (debug_agent): Remove duplicate declaration.
2833 2019-10-26 Tom de Vries <tdevries@suse.de>
2835 * linux-aarch64-low.c: Fix typos in comments.
2836 * linux-arm-low.c: Same.
2837 * linux-low.c: Same.
2838 * linux-ppc-low.c: Same.
2839 * proc-service.c: Same.
2842 * tracepoint.c: Same.
2843 * win32-low.c: Same.
2845 2019-10-25 Tom Tromey <tromey@adacore.com>
2847 * utils.c (xstrdup): Remove.
2849 2019-10-23 Tom Tromey <tom@tromey.com>
2851 * configure, config.in: Rebuild.
2853 2019-10-23 Tom Tromey <tom@tromey.com>
2855 * configure: Rebuild.
2856 * acinclude.m4: Use m4_include, not sinclude.
2858 2019-10-17 Tom Tromey <tromey@adacore.com>
2860 * configure: Rebuild.
2861 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2862 in AC_CONFIG_FILES invocation.
2863 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2866 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2868 * server.c: Include xml-builtin.h.
2869 (get_xml_features): Don't declare xml_builtins here.
2871 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2873 * Makefile.in: Remove references to vec-ipa.o.
2875 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2877 * Makefile.in: Remove references to vec.c.
2879 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2881 * server.c (server_waiting): Change to bool.
2882 (extended_protocol): Likewise.
2883 (response_needed): Likewise.
2884 (exit_requested): Likewise.
2885 (run_once): Likewise.
2886 (report_no_resumed): Likewise.
2887 (non_stop): Likewise.
2888 (disable_packet_vCont): Likewise.
2889 (disable_packet_Tthread): Likewise.
2890 (disable_packet_qC): Likewise.
2891 (disable_packet_qfThreadInfo): Likewise.
2892 (handle_general_set): Update.
2893 (handle_detach): Update.
2894 (handle_monitor_command): Update.
2895 (handle_query): Update.
2896 (captured_main): Update.
2897 (process_serial_event): Update.
2898 * server.h (server_waiting): Change to bool.
2899 (disable_packet_vCont): Likewise.
2900 (disable_packet_Tthread): Likewise.
2901 (disable_packet_qC): Likewise.
2902 (disable_packet_qfThreadInfo): Likewise.
2903 (run_once): Likewise.
2904 (non_stop): Likewise.
2905 * target.c (target_stop_and_wait): Update.
2907 2019-10-02 Tom Tromey <tromey@adacore.com>
2909 * Makefile.in (SFILES): Add common-inferior.c.
2910 (OBS): Add common-inferior.o.
2911 * server.c (startup_with_shell): Don't define.
2913 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2915 * linux-low.c (linux_low_read_btrace): Update for change to
2918 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2920 * debug.c (debug_threads): Remove comment in favor of the header.
2921 * debug.h (using_threads): Add declaration.
2922 (debug_threads): Add comment.
2923 * linux-aarch64-low.c: Include debug.h and remove declaration of
2925 * nto-low.c: Likewise.
2926 * remote-utils.c: Likewise.
2927 * thread-db.c: Likewise.
2929 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2931 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2932 and powerpc-cell64l-ipa.o.
2933 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2934 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2935 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2938 * spu-low.c: Remove file.
2940 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2941 (parse_spufs_run): Remove.
2942 (ppc_get_pc): Remove Cell/B.E. support.
2943 (ppc_set_pc): Likewise.
2944 (ppc_breakpoint_at): Likewise.
2945 (ppc_arch_setup): Likewise.
2946 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2947 tdesc_powerpc_cell32l.
2948 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2949 or init_registers_powerpc_cell32l.
2950 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2951 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2952 or init_registers_powerpc_cell32l.
2953 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2954 (init_registers_powerpc_cell32l): Remove prototype.
2955 (init_registers_powerpc_cell64l): Likewise.
2957 * target.h (struct target_ops): Remove qxfer_spu member.
2958 * server.c (handle_qxfer_spu): Remove.
2959 (qxfer_packets): Remove entry for "spu".
2960 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2961 * linux-low.c (SPUFS_MAGIC): Remove.
2962 (spu_enumerate_spu_ids): Remove.
2963 (linux_qxfer_spu): Remove.
2964 (linux_target_ops): Remove qxfer_spu member.
2965 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2966 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2967 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2969 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2971 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2972 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2973 * config.in: Regenerate.
2974 * configure: Regenerate.
2976 2019-08-15 Tom Tromey <tromey@adacore.com>
2978 * target.c (target_write_memory): Use gdb::byte_vector.
2980 2019-08-15 Tom Tromey <tromey@adacore.com>
2982 * tracepoint.c (write_inferior_data_pointer)
2983 (write_inferior_integer, write_inferior_int8)
2984 (write_inferior_uinteger, m_tracepoint_action_download)
2985 (r_tracepoint_action_download, x_tracepoint_action_download)
2986 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2987 (download_agent_expr, download_tracepoint_1)
2988 (download_trace_state_variables, upload_fast_traceframes): Update.
2989 * server.c (gdb_write_memory): Update.
2990 * remote-utils.c (relocate_instruction): Update.
2991 * proc-service.c (ps_pdwrite): Update.
2992 * mem-break.c (remove_memory_breakpoint)
2993 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2994 (uninsert_fast_tracepoint_jumps_at)
2995 (reinsert_fast_tracepoint_jumps_at): Update.
2996 * linux-x86-low.c (append_insns)
2997 (i386_install_fast_tracepoint_jump_pad)
2998 (amd64_write_goto_address, i386_write_goto_address): Update.
2999 * linux-s390-low.c (append_insns, s390_write_goto_address):
3001 * linux-ppc-low.c (ppc_relocate_instruction)
3002 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
3003 (ppc_write_goto_address): Update.
3004 * linux-aarch64-low.c (append_insns): Update.
3005 * target.h (struct target_ops): Update.
3006 (write_inferior_memory): Don't declare.
3007 * target.c (target_write_memory): Rename from
3008 write_inferior_memory. Remove old target_write_memory.
3010 2019-08-15 Tom Tromey <tromey@adacore.com>
3012 * target.c (write_inferior_memory): Use std::vector.
3014 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3017 * configure.ac: Drop enable-libmcheck support.
3018 * configure, config.in: Rebuild.
3019 * acinclude.m4: Don't include it.
3021 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3023 * configure.srv: Remove Arm xml files.
3025 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3027 * configure.srv: Add new files. Remove xml generated files.
3028 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
3030 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
3031 * linux-aarch32-tdesc.c: New file.
3032 * linux-aarch32-tdesc.h: New file.
3033 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
3034 * linux-arm-low.c (init_registers_arm, tdesc_arm)
3035 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
3036 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
3037 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
3038 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
3039 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
3040 (arm_read_description): Call arm_linux_read_description.
3041 (initialize_low_arch): Don't init registers.
3042 * linux-arm-tdesc.c: New file.
3043 * linux-arm-tdesc.h: New file.
3045 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3047 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
3048 Move counter inside for.
3049 (arm_read_description): Check ptrace earlier.
3050 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
3052 2019-07-09 Tom Tromey <tom@tromey.com>
3054 * configure: Rebuild.
3055 * configure.ac: Change common to gdbsupport.
3056 * acinclude.m4: Change common to gdbsupport.
3057 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
3058 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
3059 common to gdbsupport.
3060 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
3061 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
3062 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
3063 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3064 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3065 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3066 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3067 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3068 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3069 common to gdbsupport.
3071 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3073 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3075 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3077 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3079 * configure.srv: Remove legacy xml.
3080 * linux-aarch64-low.c (initialize_low_arch): Remove
3081 initialize_low_tdesc call.
3082 * linux-aarch64-tdesc-selftest.c: Remove file.
3083 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3084 * linux-x86-low.c (initialize_low_arch): Remove
3085 initialize_low_tdesc call.
3086 * linux-x86-tdesc-selftest.c: Remove file.
3087 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3089 2019-06-20 Tom de Vries <tdevries@suse.de>
3091 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3092 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3094 2019-06-19 Tom de Vries <tdevries@suse.de>
3096 * debug.h (debug_write): Change return type to ssize_t.
3097 * debug.c (debug_write): Same.
3099 2019-06-14 Tom Tromey <tom@tromey.com>
3101 * configure.ac: Use new path to gnulib.
3102 * configure: Rebuild.
3103 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3106 2019-06-11 Tom Tromey <tom@tromey.com>
3108 * Makefile.in (SFILES): Add alloc.c.
3110 (IPA_OBJS): Add alloc-ipa.o.
3111 (alloc-ipa.o): New target.
3112 (%.o: ../%.c): New pattern rule.
3114 2019-06-10 Tom Tromey <tromey@adacore.com>
3116 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3117 end warning with a newline.
3118 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3120 * thread-db.c (attach_thread): Don't end warning with a newline.
3121 (thread_db_notice_clone): Likewise.
3122 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3124 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3125 end warning with a newline.
3127 2019-06-04 Pedro Alves <palves@redhat.com>
3129 * server.c (captured_main): Use make_unique_xstrdup.
3131 2019-06-02 Tom Tromey <tom@tromey.com>
3133 * gdbreplay.c (fromhex): Remove.
3134 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3136 2019-05-29 Tom Tromey <tromey@adacore.com>
3138 * configure: Rebuild.
3140 2019-05-06 Kevin Buettner <kevinb@redhat.com>
3142 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3143 sign extension code on 32-bit builds.
3145 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3148 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3150 2019-04-19 Tom Tromey <tom@tromey.com>
3152 * server.c (struct vstop_notif): Derive from notif_event.
3154 (queue_stop_reply): Update.
3155 (remove_all_on_match_ptid): Change type. Rewrite.
3156 (discard_queued_stop_replies): Rewrite.
3157 (in_queued_stop_replies_ptid): Change type.
3158 (in_queued_stop_replies): Rewrite.
3159 (notif_stop): Update.
3160 (queue_stop_reply_callback): Update.
3161 (captured_main): Don't call initialize_notif.
3162 (push_stop_notification): Update.
3163 * notif.c (notif_write_event, handle_notif_ack)
3164 (notif_event_enque, notif_push): Update.
3165 (notif_event_xfree, initialize_notif): Remove.
3166 * notif.h (struct notif_event): Include <list>, not
3168 (struct notif_server) <queue>: Now a std::list.
3169 (notif_event_p): Remove typedef.
3170 (initialize_notif): Don't declare.
3171 (struct notif_event): Add virtual destructor.
3173 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3175 * ax.c (ax_vdebug): Call debug_printf.
3176 * debug.c (debug_write): New function.
3177 * debug.h (debug_write): New declaration.
3178 * linux-low.c (sigchld_handler): Call debug_write.
3180 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3182 * debug.c (debug_set_output): New function.
3183 (debug_vprintf): Send output to debug_file.
3184 (debug_flush): Likewise.
3185 * debug.h (debug_set_output): New declaration.
3186 * server.c (handle_monitor_command): Add debug-file option.
3187 (captured_main): Likewise.
3189 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3191 * debug.c (remote_debug): Add definition.
3192 * debug.h (remote_debug): Add declaration.
3193 * hostio.c (remote_debug): Remove declaration.
3194 * remote-utils.c (struct ui_file): Likewise.
3195 (remote_debug): Likewise.
3196 * remote-utils.h (remote_debug): Likewise,
3197 * server.c (remote_debug): Remove definition.
3199 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3201 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3202 when using a 64-bit gdbserver.
3204 2019-04-09 Tom Tromey <tromey@adacore.com>
3206 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3208 2019-04-08 Tom Tromey <tom@tromey.com>
3210 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3212 (linux_resume_one_lwp): Likewise.
3214 2019-04-08 Tom Tromey <tom@tromey.com>
3216 * gdbreplay.c: Update.
3217 * linux-low.c: Update.
3220 2019-04-08 Tom Tromey <tom@tromey.com>
3222 * server.c: Use C++ exception handling.
3223 * linux-low.c: Use C++ exception handling.
3224 * gdbreplay.c: Use C++ exception handling.
3226 2019-04-08 Tom Tromey <tom@tromey.com>
3228 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3229 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3230 (captured_main, main): Update.
3231 * gdbreplay.c (main): Update.
3233 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3235 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3236 value in argument pointer, return 1 if the entry is found and 0
3237 otherwise. Move comment.
3238 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3239 * linux-low.h (linux_get_auxv): Declare.
3240 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3242 2019-04-05 Tom Tromey <tromey@adacore.com>
3244 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3247 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3249 * linux-low.c (AT_HWCAP2): Add define if not already included.
3251 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3253 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3254 (aarch64_arch_setup): Call linux_get_hwcap.
3255 * linux-arm-low.c (arm_get_hwcap): Remove function.
3256 (arm_read_description): Call linux_get_hwcap.
3257 * linux-low.c (linux_get_auxv): New function.
3258 (linux_get_hwcap): Likewise.
3259 (linux_get_hwcap2): Likewise.
3260 * linux-low.h (linux_get_hwcap): New declaration.
3261 (linux_get_hwcap2): Likewise.
3262 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3263 (ppc_arch_setup): Call linux_get_hwcap.
3264 * linux-s390-low.c (s390_get_hwcap): Remove function.
3265 (s390_arch_setup): Call linux_get_hwcap.
3267 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3268 Jiong Wang <jiong.wang@arm.com>
3270 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3271 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3273 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3275 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3276 Jiong Wang <jiong.wang@arm.com>
3278 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3279 (aarch64_get_hwcap): New function.
3280 (aarch64_arch_setup): Read APIA hwcap.
3282 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3283 Jiong Wang <jiong.wang@arm.com>
3285 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3286 (initialize_low_tracepoint): Likewise.
3287 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3288 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3289 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3290 (aarch64_linux_read_description): Likewise.
3291 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3293 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3295 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3296 i386_create_target_description for 'segments' parameter.
3297 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3298 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3299 * win32-i386-low.c (i386_arch_setup): Likewise.
3301 2019-03-12 Tom Tromey <tromey@adacore.com>
3303 * linux-low.c (iterate_over_lwps): Update.
3305 2019-03-06 Tom Tromey <tom@tromey.com>
3307 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3308 (captured_main): Use SCOPE_EXIT.
3310 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3312 * configure.srv: Use '$enable_unittest' instead of '$development'
3313 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3316 2019-02-27 Tom Tromey <tromey@adacore.com>
3318 * gdbreplay.c (logchar): Handle \r\n.
3320 2019-02-07 Alan Hayward <alan.hayward@arm.com>
3322 * linux-low.c (linux_attach): Add process before lwp.
3323 * server.c (attach_inferior): Check if already attached.
3325 2019-02-07 Tom Tromey <tom@tromey.com>
3327 * x86-tdesc.h: Rename include guard.
3328 * x86-low.h: Add include guard.
3329 * wincecompat.h: Rename include guard.
3330 * win32-low.h: Add include guard.
3331 * utils.h: Rename include guard.
3332 * tracepoint.h: Rename include guard.
3333 * tdesc.h: Rename include guard.
3334 * target.h: Rename include guard.
3335 * server.h: Rename include guard.
3336 * remote-utils.h: Rename include guard.
3337 * regcache.h: Rename include guard.
3338 * nto-low.h: Rename include guard.
3339 * notif.h: Add include guard.
3340 * mem-break.h: Rename include guard.
3341 * lynx-low.h: Add include guard.
3342 * linux-x86-tdesc.h: Add include guard.
3343 * linux-s390-tdesc.h: Add include guard.
3344 * linux-ppc-tdesc-init.h: Add include guard.
3345 * linux-low.h: Add include guard.
3346 * linux-aarch64-tdesc.h: Add include guard.
3347 * linux-aarch32-low.h: Add include guard.
3348 * inferiors.h: Rename include guard.
3349 * i387-fp.h: Rename include guard.
3350 * hostio.h: Rename include guard.
3351 * gdbthread.h: Rename include guard.
3352 * gdb_proc_service.h: Rename include guard.
3353 * event-loop.h: Rename include guard.
3354 * dll.h: Rename include guard.
3355 * debug.h: Rename include guard.
3356 * ax.h: Rename include guard.
3358 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3361 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3362 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3364 2019-01-25 Tom Tromey <tom@tromey.com>
3366 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3368 2019-01-25 Tom Tromey <tom@tromey.com>
3370 * win32-low.c: Fix common/ includes.
3371 * win32-i386-low.c: Fix common/ includes.
3372 * tracepoint.c: Fix common/ includes.
3373 * thread-db.c: Fix common/ includes.
3374 * target.h: Fix common/ includes.
3375 * symbol.c: Fix common/ includes.
3376 * spu-low.c: Fix common/ includes.
3377 * server.h: Fix common/ includes.
3378 * server.c: Fix common/ includes.
3379 * remote-utils.c: Fix common/ includes.
3380 * regcache.h: Fix common/ includes.
3381 * regcache.c: Fix common/ includes.
3382 * nto-x86-low.c: Fix common/ includes.
3383 * notif.h: Fix common/ includes.
3384 * mem-break.h: Fix common/ includes.
3385 * lynx-low.c: Fix common/ includes.
3386 * lynx-i386-low.c: Fix common/ includes.
3387 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3388 * linux-x86-low.c: Fix common/ includes.
3389 * linux-low.c: Fix common/ includes.
3390 * inferiors.h: Fix common/ includes.
3391 * i387-fp.c: Fix common/ includes.
3392 * hostio.c: Fix common/ includes.
3393 * hostio-errno.c: Fix common/ includes.
3394 * gdbthread.h: Fix common/ includes.
3395 * gdbreplay.c: Fix common/ includes.
3396 * fork-child.c: Fix common/ includes.
3397 * event-loop.c: Fix common/ includes.
3399 (enum gdb_agent_op): Fix common/ includes.
3401 2019-01-21 Tom Tromey <tom@tromey.com>
3403 * tracepoint.c: Fix includes.
3404 * remote-utils.c: Fix includes.
3405 * linux-x86-low.c: Fix includes.
3407 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3409 * gdbreplay.c (gdbreplay_version): Update copyright year in
3411 * server.c (gdbserver_version): Likewise.
3413 2018-12-05 Alan Hayward <alan.hayward@arm.com>
3415 * linux-low.c (add_lwp): Switch ordering.
3417 2018-11-29 Tom Tromey <tom@tromey.com>
3419 * win32-low.c (win32_join): Take pid, not process.
3420 * target.h (struct target_ops) <join>: Change argument type.
3421 (join_inferior): Change argument name.
3422 * spu-low.c (spu_join): Take pid, not process.
3423 * server.c (handle_detach): Preserve pid before destroying
3425 * lynx-low.c (lynx_join): Take pid, not process.
3426 * linux-low.c (linux_join): Take pid, not process.
3428 2018-11-23 Alan Hayward <alan.hayward@arm.com>
3430 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3431 (aarch64_cannot_fetch_register): Likewise.
3432 (struct linux_target_ops): Update references.
3434 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3436 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3438 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3440 * configure.srv (ipa_ppc_linux_regobj): Add
3441 powerpc-isa207-htm-vsx32l-ipa.o and
3442 powerpc-isa207-htm-vsx64l-ipa.o.
3443 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
3444 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
3445 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
3446 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
3447 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
3448 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
3449 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
3450 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
3451 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3452 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
3453 (init_registers_powerpc_isa207_htm_vsx32l)
3454 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
3455 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
3456 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
3457 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
3458 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
3459 (ppc_store_tm_ctarregset): New functions.
3460 (ppc_regsets): Add entries for HTM regsets.
3461 (ppc_arch_setup): Set htm in features struct when needed. Set
3462 sizes for the HTM regsets.
3463 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
3464 (initialize_low_arch): Call
3465 init_registers_powerpc_isa207_htm_vsx32l and
3466 init_registers_powerpc_isa207_htm_vsx64l.
3467 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3468 PPC_TDESC_ISA207_HTM_VSX.
3469 (initialize_low_tracepoint): Call
3470 init_registers_powerpc_isa207_htm_vsx32l and
3471 init_registers_powerpc_isa207_htm_vsx64l.
3473 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3475 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
3476 rs6000/power-linux-pmu.xml to srv_xmlfiles.
3477 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
3478 (ppc_store_pmuregset): New functions.
3479 (ppc_regsets): Add entries for ebb and pmu regsets.
3480 (ppc_arch_setup): Set isa207 in features struct if the ebb and
3481 pmu regsets are available. Set sizes for these regsets.
3483 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3485 * configure.srv (ipa_ppc_linux_regobj): Add
3486 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
3487 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
3488 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
3489 rs6000/powerpc-isa207-vsx32l.xml, and
3490 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
3491 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3492 <PPC_TDESC_ISA207_VSX>: New enum value.
3493 (init_registers_powerpc_isa207_vsx32l): Declare.
3494 (init_registers_powerpc_isa207_vsx64l): Declare.
3495 * linux-ppc-low.c (ppc_fill_tarregset): New function.
3496 (ppc_store_tarregset): New function.
3497 (ppc_regsets): Add entry for the TAR regset.
3498 (ppc_arch_setup): Set isa207 in features struct when needed. Set
3499 size for the TAR regsets.
3500 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
3501 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
3502 and init_registers_powerpc_isa207_vsx64l.
3503 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
3504 (initialize_low_tracepoint): Call
3505 init_registers_powerpc_isa207_vsx32l and
3506 init_registers_powerpc_isa207_vsx64l.
3508 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3509 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3511 * configure.srv (ipa_ppc_linux_regobj): Add
3512 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
3513 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
3514 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
3515 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
3516 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
3517 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
3518 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
3519 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3520 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
3521 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
3522 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
3523 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
3524 (ppc_hwcap): Add comment.
3525 (ppc_hwcap2): New global.
3526 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
3527 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
3528 (ppc_regsets): Add entries for the DSCR and PPR regsets.
3529 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
3530 when needed. Set sizes for the the DSCR and PPR regsets.
3531 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
3532 (initialize_low_arch): Call
3533 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3534 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3535 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3536 PPC_TDESC_ISA205_PPR_DSCR_VSX.
3537 (initialize_low_tracepoint): Call
3538 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3539 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3541 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3543 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
3545 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
3546 Simon Marchi <simark@simark.ca>
3548 * acinclude.m4: Include "../selftest.m4".
3549 * configure: Regenerate.
3550 * configure.ac: Use "GDB_AC_SELFTEST".
3551 * configure.srv: Use "$enable_unittests" instead of
3552 "$development" when checking whether unit tests have been
3554 * server.c (captured_main): Update message informing that
3555 selftests have been disabled.
3557 2018-10-04 Tom Tromey <tom@tromey.com>
3559 * configure: Rebuild.
3561 2018-10-04 Tom Tromey <tom@tromey.com>
3563 * server.c (handle_status): Rename inner "thread".
3564 (process_serial_event): Declare "res" in 'm' case.
3565 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
3566 (iterate_over_lwps): Rename inner "thread".
3567 (linux_qxfer_libraries_svr4): Rename inner "len".
3568 * gdbthread.h (find_thread_in_random): Rename inner "thread".
3570 2018-10-01 Gary Benson <gbenson@redhat.com>
3572 * gdb_proc_service.h: Moved common code to
3573 common/gdb_proc_service.h.
3575 2018-10-01 Gary Benson <gbenson@redhat.com>
3577 * gdb_proc_service.h: Synchronize comments and whitespace with
3578 GDB's version of this file.
3580 2018-09-25 Tom Tromey <tom@tromey.com>
3582 * configure: Rebuild.
3583 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3585 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3587 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3588 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3589 ($(IPA_LIB)): Sort IPA_OBJS.
3591 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3593 * Makefile.in: Remove references to $(ADD_DEPS).
3595 2018-09-16 Tom Tromey <tom@tromey.com>
3597 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3599 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3602 2018-09-05 Tom Tromey <tom@tromey.com>
3604 * configure: Rebuild.
3606 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3609 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3611 2018-08-27 Tom Tromey <tom@tromey.com>
3614 * configure: Rebuild.
3616 2018-08-27 Tom Tromey <tom@tromey.com>
3618 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
3619 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
3620 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
3621 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
3622 (s390x_emit_stack_adjust): Add casts to unsigned char.
3624 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3628 * server.h (struct client_state) <disable_randomization>:
3631 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3633 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3635 (mips_supply_ptrace_register): Likewise.
3637 2018-07-22 Tom Tromey <tom@tromey.com>
3639 * configure: Rebuild.
3641 2018-07-22 Tom Tromey <tom@tromey.com>
3643 * win32-low.c (win32_create_inferior): Remove unused variables.
3644 * gdbreplay.c (remote_open): Remove unused variable.
3645 * remote-utils.c (remote_prepare): Remove unused variable.
3646 * x86-tdesc.h (X86_TDESC_H): Define.
3647 (amd64_expedite_regs): Define conditionally.
3648 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3649 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3650 * remote-utils.c (readchar): Remove unused variable.
3652 2018-07-13 Pedro Alves <palves@redhat.com>
3654 * linux-low.c (linux_kill): Change parameter to process_info
3655 pointer instead of pid. Adjust.
3656 * lynx-low.c (lynx_kill): Likewise.
3657 * nto-low.c (nto_kill): Likewise.
3658 * spu-low.c (spu_kill): Likewise.
3659 * win32-low.c (win32_kill): Likewise.
3660 * server.c (handle_v_kill, kill_inferior_callback)
3661 (detach_or_kill_for_exit): Adjust.
3662 * target.c (kill_inferior): Change parameter to process_info
3663 pointer instead of pid. Adjust.
3664 * target.h (struct target_ops) <kill>: Change parameter to
3665 process_info pointer instead of pid. Adjust all implementations
3667 (kill_inferior): Likewise.
3669 2018-07-13 Pedro Alves <palves@redhat.com>
3671 * linux-low.c (linux_detach, linux_join): Change parameter to
3672 process_info pointer instead of pid. Adjust.
3673 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3674 * nto-low.c (nto_detach): Likewise.
3675 * spu-low.c (spu_detach, spu_join): Likewise.
3676 * win32-low.c (win32_detach, win32_join): Likewise.
3677 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3678 * target.h (struct target_ops) <detach, join>: Change parameter to
3679 process_info pointer instead of pid. Adjust all implementations
3681 (detach_inferior, join_inferior): Rename 'pid' parameter to
3684 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3685 Jan Kratochvil <jan.kratochvil@redhat.com>
3686 Paul Fertser <fercerpav@gmail.com>
3687 Tsutomu Seki <sekiriki@gmail.com>
3689 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3690 (OBS): Add 'common/netstuff.o'.
3691 (GDBREPLAY_OBS): Likewise.
3692 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3693 (remote_open): Implement support for IPv6
3695 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3697 (handle_accept_event): Accept connections from IPv6 sources.
3698 (remote_prepare): Handle IPv6-style hostnames; implement
3699 support for IPv6 connections.
3700 (remote_open): Implement support for printing connections from
3703 2018-07-11 Pedro Alves <palves@redhat.com>
3706 * mem-break.c (any_persistent_commands): Add process_info
3707 parameter and use it instead of relying on the current process.
3708 Change return type to bool.
3709 * mem-break.h (any_persistent_commands): Add process_info
3710 parameter and change return type to bool.
3711 * server.c (handle_detach): Remove require_running_or_return call.
3712 Look up the process_info for the process we're about to detach.
3713 If not found, return back error to GDB. Adjust
3714 any_persistent_commands call to pass down a process pointer.
3716 2018-07-11 Pedro Alves <palves@redhat.com>
3718 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3719 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3720 instead of collect_register_by_name.
3721 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3722 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3724 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3725 Pedro Alves <palves@redhat.com>
3727 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3729 2018-07-03 Tom Tromey <tom@tromey.com>
3731 * linux-low.c: Update.
3732 * lynx-low.c: Update.
3733 * mem-break.c: Update.
3734 * nto-low.c: Update.
3735 * remote-utils.c: Update.
3737 * spu-low.c: Update.
3739 * win32-low.c: Update.
3741 2018-07-03 Tom Tromey <tom@tromey.com>
3745 2018-07-03 Tom Tromey <tom@tromey.com>
3747 * linux-low.c: Update.
3749 2018-07-03 Tom Tromey <tom@tromey.com>
3753 2018-07-03 Tom Tromey <tom@tromey.com>
3755 * linux-low.c: Update.
3756 * linux-mips-low.c: Update.
3757 * lynx-low.c: Update.
3758 * nto-low.c: Update.
3759 * remote-utils.c: Update.
3761 * spu-low.c: Update.
3763 * thread-db.c: Update.
3765 2018-07-03 Tom Tromey <tom@tromey.com>
3767 * linux-low.c: Update.
3768 * linux-mips-low.c: Update.
3769 * lynx-low.c: Update.
3770 * mem-break.c: Update.
3771 * nto-low.c: Update.
3772 * remote-utils.c: Update.
3774 * spu-low.c: Update.
3776 * tracepoint.c: Update.
3778 2018-07-03 Tom Tromey <tom@tromey.com>
3780 * linux-low.c: Update.
3781 * linux-ppc-low.c: Update.
3782 * linux-x86-low.c: Update.
3783 * proc-service.c: Update.
3785 * spu-low.c: Update.
3786 * thread-db.c: Update.
3787 * win32-low.c: Update.
3789 2018-07-03 Tom Tromey <tom@tromey.com>
3791 * linux-low.c: Update.
3792 * lynx-low.c: Update.
3793 * nto-low.c: Update.
3794 * remote-utils.c: Update.
3795 * spu-low.c: Update.
3796 * thread-db.c: Update.
3797 * win32-low.c: Update.
3799 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3801 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3802 parameter in call to 'amd64_create_target_description'.
3804 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3806 * x86-tdesc.h: Remove executable permission flag.
3808 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3810 * configure.ac: Remove AC_PREREQ, add missing quoting.
3811 * configure: Re-generate.
3812 * config.in: Re-generate.
3813 * aclocal.m4: Re-generate.
3815 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3817 * tracepoint.h (current_traceframe): Remove declaration.
3819 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3821 * linux-aarch64-low.c (is_sve_tdesc): New function.
3822 (aarch64_sve_regs_copy_to_regcache): Likewise.
3823 (aarch64_sve_regs_copy_from_regcache): Likewise.
3824 (aarch64_regs_info): Add SVE checks.
3825 (initialize_low_arch): Initialize SVE.
3827 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3829 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3831 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3833 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3834 (initialize_low_tracepoint): Likewise
3835 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3836 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3838 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3840 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3842 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3844 * server.h (PBUFSIZ): Increase size
3846 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3848 * regcache.c (regcache::raw_compare): New function.
3849 * regcache.h (regcache::raw_compare): New declaration.
3851 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3853 * regcache.c (new_register_cache): Use new.
3854 (free_register_cache): Use delete.
3855 (register_data): Use const.
3856 (supply_register): Move body inside regcache.
3857 (regcache::raw_supply): New override function.
3858 (collect_register): Move body inside regcache.
3859 (regcache::raw_collect): New override function.
3860 (regcache::get_register_status): New override function.
3861 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3863 2018-06-09 Tom Tromey <tom@tromey.com>
3865 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3867 (event_queue): Use std::queue.
3868 (gdb_event_xfree): Remove.
3869 (initialize_event_loop, process_event, wait_for_event): Update.
3871 2018-06-08 Stan Cox <scox@redhat.com>
3873 * win32-low.c (win32_create_inferior): last_ptid and last_status
3874 moved to client_state.
3876 2018-06-08 Pedro Alves <palves@redhat.com>
3878 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3879 common/common-exceptions.o, common/common-utils.o,
3880 common/errors.o, common/print-utils.o and utils.o.
3881 * gdbreplay.c: Include "common-defs.h" instead of the two
3882 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3883 string.h or alloca.h.
3884 (perror_with_name): Delete.
3885 (remote_open): Use xstrdup instead of strdup.
3886 (main): Rename to ...
3887 (captured_main): ... this.
3890 2018-06-08 Tom Tromey <tom@tromey.com>
3892 * linux-low.c (linux_low_read_btrace): Update.
3894 2018-06-04 Stan Cox <scox@redhat.com>
3896 * server.h (struct client_state): New.
3897 * server.c (cont_thread, general_thread, multi_process)
3898 (report_fork_events, report_vfork_events, report_exec_events)
3899 (report_thread_events, swbreak_feature, hwbreak_feature)
3900 (vCont_supported, disable_randomization, pass_signals)
3901 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3902 Moved to client_state.
3903 * remote-utils.c (remote_debug, noack_mode)
3904 (transport_is_reliable): Moved to client_state.
3905 * tracepoint.c (current_traceframe): Moved to client_state.
3908 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3909 linux-low.c, remote-utils.h, target.c: Use client_state.
3911 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3913 * configure.srv: Add new c/h file.
3915 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3917 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3920 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3922 * gdb.arch/mips-fpregset-core.exp: New test.
3923 * gdb.arch/mips-fpregset-core.c: New test source.
3925 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3928 * hostio.c (require_int): Do not report overflow for integers
3929 between 0xfffffff and 0x7fffffff.
3931 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3933 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3934 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3935 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3937 (the_low_target): Wire them.
3939 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3941 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3942 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3943 mode. Call collect_register_by_name with vscr using
3944 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3945 (ppc_store_vrregset): Add and set vscr_offset variable as in
3946 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3949 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3951 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3952 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3953 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3955 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3957 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3958 (ppc_store_vsxregset): Likewise.
3959 (ppc_fill_vrregset): Likewise.
3960 (ppc_store_vrregset): Likewise.
3961 (ppc_fill_evrregset): Likewise.
3962 (ppc_store_evrregset): Likewise.
3963 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3964 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3967 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3969 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3970 wordsize of the inferior. Call ppc_linux_target_wordsize.
3972 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3974 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3975 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3976 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3977 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3978 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3979 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3980 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3981 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3982 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3983 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3984 (tdesc_powerpc_e500l): Remove.
3985 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3986 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3987 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3988 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3990 (ppc_arch_setup): Remove target description matching code. Fill a
3991 ppc_linux_features struct and call ppc_linux_match_description
3994 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3996 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3997 width of the requested register exceeds the width of the
3999 (mips_cannot_store_register): Likewise.
4001 2018-05-21 Maciej W. Rozycki <macro@mips.com>
4003 * linux-mips-low.c (mips_fetch_register): New function. Update
4005 (mips_store_gregset): Supply 0 rather than $restart for $zero.
4006 (the_low_target): Wire `mips_fetch_register'.
4008 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4010 * lynx-i386-low.c (LYNXOS_178): New macro.
4011 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
4012 the layout on LynxOS-178.
4013 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
4014 handle floating point registers that are not supported by
4017 2018-05-10 Tom Tromey <tom@tromey.com>
4019 * configure: Rebuild.
4021 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4024 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
4025 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
4026 Use it to set the expedite_regs field in the given tdesc.
4027 * x86-tdesc.h: New file.
4028 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
4029 Adjust following the addition of the new expedite_regs parameter
4030 to init_target_desc.
4031 * linux-tic6x-low.c (tic6x_read_description): Likewise.
4032 * linux-x86-tdesc.c: #include "x86-tdesc.h".
4033 (i386_linux_read_description, amd64_linux_read_description):
4034 Adjust following the addition of the new expedite_regs parameter
4035 to init_target_desc.
4036 * lynx-i386-low.c: #include "x86-tdesc.h".
4037 (lynx_i386_arch_setup): Adjust following the addition of the new
4038 expedite_regs parameter to init_target_desc.
4039 * nto-x86-low.c: #include "x86-tdesc.h".
4040 (nto_x86_arch_setup): Adjust following the addition of the new
4041 expedite_regs parameter to init_target_desc.
4042 * win32-i386-low.c: #include "x86-tdesc.h".
4043 (i386_arch_setup): Adjust following the addition of the new
4044 expedite_regs parameter to init_target_desc.
4046 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4049 * win32-low.c (win32_create_inferior): Add call to my_wait
4050 setting last_status global.
4052 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4055 * win32-low.c (create_process): Only call gdb_tilde_expand if
4056 inferior_cwd is not NULL.
4058 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4060 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
4061 registers to the cache if their values have changed.
4062 (i387_xsave_to_cache): Provide default values for x87 control
4063 registers when these features are available, but disabled.
4064 * regcache.c (supply_register_by_name_zeroed): New function.
4065 * regcache.h (supply_register_by_name_zeroed): Declare new
4068 2018-05-07 Tom Tromey <tom@tromey.com>
4070 * configure: Rebuild.
4072 2018-05-04 Tom Tromey <tom@tromey.com>
4074 * configure: Rebuild.
4076 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4077 Pedro Alves <palves@redhat.com>
4079 * linux-aarch64-low.c (aarch64_stopped_data_address):
4082 2018-04-27 Tom Tromey <tom@tromey.com>
4084 * configure: Rebuild.
4086 2018-04-23 Tom Tromey <tom@tromey.com>
4088 * configure: Rebuild.
4090 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4092 * Makefile.in (depcomp): Add "..".
4093 (all_deps_files): New and use it.
4095 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4097 * configure.srv (aarch64*-*-linux*): Don't include xml.
4098 (i[34567]86-*-cygwin*): Likewise.
4099 (i[34567]86-*-linux*): Likewise.
4100 (i[34567]86-*-lynxos*): Likewise.
4101 (i[34567]86-*-mingw32ce*): Likewise.
4102 (i[34567]86-*-mingw*): Likewise.
4103 (i[34567]86-*-nto*): Likewise.
4104 (tic6x-*-uclinux): Likewise.
4105 (x86_64-*-linux*): Likewise.
4106 (x86_64-*-mingw*): Likewise.
4107 (x86_64-*-cygwin*): Likewise.
4109 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4111 * tdesc.c: Remove xml parameter.
4113 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4115 * server.c (get_features_xml): Remove cast.
4116 * tdesc.c (void target_desc::accept): Fill in function.
4117 (tdesc_get_features_xml): Remove old xml creation.
4118 (print_xml_feature::visit_pre): Add xml vistor.
4119 * tdesc.h (struct target_desc): Make xmltarget mutable.
4120 (tdesc_get_features_xml): Remove declaration.
4122 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4124 * tdesc.c (tdesc_architecture_name): Add new function.
4125 (tdesc_osabi_name): Likewise.
4126 (tdesc_get_features_xml): Use new functions.
4128 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4130 * tdesc.c (tdesc_create_flags): Remove.
4131 (tdesc_add_flag): Likewise.
4132 (tdesc_named_type): Likewise.
4133 (tdesc_create_union): Likewise.
4134 (tdesc_create_struct): Likewise.
4135 (tdesc_create_vector): Likewise.
4136 (tdesc_add_bitfield): Likewise.
4137 (tdesc_add_field): Likewise.
4138 (tdesc_set_struct_size): Likewise.
4140 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4142 * tdesc.c (~target_desc): Remove implictly deleted items.
4143 (init_target_desc): Iterate all features.
4144 (tdesc_get_features_xml): Use vector.
4145 (tdesc_create_feature): Create feature.
4146 * tdesc.h (tdesc_feature) Remove
4147 (target_desc): Add features.
4149 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4151 * Makefile.in: Add common/tdesc.c
4152 * tdesc.c (init_target_desc): init all reg_defs from register
4154 (tdesc_create_reg): Create tdesc_reg.
4155 * tdesc.h (tdesc_feature): Add register vector.
4157 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4159 * tdesc.h (struct target_desc) <features>: Change type to
4160 std::vector<std::string>.
4161 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4163 (tdesc_get_features_xml): Likewise.
4164 (tdesc_create_feature): Likewise.
4166 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4168 * regcache.c (find_register_by_number): Return a ref.
4169 (find_regno): Use references.
4170 (register_size): Likewise.
4171 (register_data): Likewise.
4172 * tdesc.c (target_desc::~target_desc): Remove free calls.
4173 (target_desc::operator==): Use std::vector compare.
4174 (init_target_desc): Use reference.
4175 (tdesc_create_reg): Use reg constructors.
4176 * tdesc.h (struct target_desc): Replace pointer with object.
4178 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4180 * regcache.c (find_register_by_number): Make static.
4181 (find_regno): Use find_register_by_number
4182 * regcache.h (struct reg): Remove declaration.
4184 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4186 * tdesc.c (target_desc::~target_desc): Move to here.
4187 (target_desc::operator==): Likewise.
4188 * tdesc.h (target_desc::~target_desc): Move from here.
4189 (target_desc::operator==): Likewise.
4191 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4193 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4195 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4197 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4199 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4200 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4201 and init_registers_s390_gs_linux64.
4203 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4205 * linux-s390-low.c (s390_fill_gs): Remove function.
4206 (s390_fill_gsbc): Remove function.
4207 (s390_regsets): Set fill functions for the guarded storage regsets
4210 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4212 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4213 the word size. Add comment.
4214 (s390_get_wordsize): New function.
4215 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4216 pswm with it. Instead, use s390_get_wordsize to determine the
4217 word size first and derive the correct tdesc from that directly.
4219 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4221 * Makefile.in: Include silent-rules.mk.
4222 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4223 (COMPILE): Add ECHO_CXX.
4224 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4225 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4226 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4227 (version-generated.c): Add ECHO_GEN.
4228 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4229 (IPAGENT_COMPILE): Add ECHO_CXX.
4230 (%-generated.c): Add ECHO_REGDAT.
4232 2018-03-14 Tom Tromey <tom@tromey.com>
4235 * ax.c (ax_printf): Special case for NULL.
4237 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4239 * linux-low.c (linux_qxfer_libraries_svr4): Use
4240 xml_escape_text_append.
4242 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4244 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4246 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4248 * server.c (handle_general_set): Remove unnecessary xstrdup.
4250 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4252 * server.c (parse_debug_format_options): Adjust to
4253 delim_string_to_char_ptr_vec changes.
4254 * thread-db.c (thread_db_load_search): Adjust to
4255 dirnames_to_char_ptr_vec changes.
4257 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4259 * target.h (target_enable_btrace, target_disable_btrace)
4260 (target_read_btrace, target_read_btrace_conf): Turn macro into
4261 inline function. Throw error if target method is not defined.
4262 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4263 check for btrace target method. Be prepared to handle exceptions
4264 from btrace target methods.
4266 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4268 * server.c (captured_main): Change order of error message printed
4269 when the current working directory cannot be found.
4271 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4273 * server.c: Include "filenames.h" and "pathstuff.h".
4274 (program_name): Delete variable.
4275 (program_path): New anonymous class.
4276 (get_exec_wrapper): Use "program_path" instead of
4278 (handle_v_run): Likewise.
4279 (captured_main): Likewise.
4280 (process_serial_event): Likewise.
4282 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4284 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4285 (OBJS): Add "pathstuff.o".
4286 * server.c (current_directory): New global variable.
4287 (captured_main): Initialize "current_directory".
4289 2018-02-26 Alan Hayward <alan.hayward@arm.com>
4291 * tdesc.c: Use common/tdesc.h.
4292 * tdesc.h: Likewise.
4294 2018-02-20 Alan Hayward <alan.hayward@arm.com>
4295 Simon Marchi <simon.marchi@ericsson.com>
4297 * Makefile.in: Switch order of make rules.
4299 2018-02-19 Alan Hayward <alan.hayward@arm.com>
4301 * Makefile.in: Add common directory in build.
4302 * configure.ac: Add common reference.
4303 * configure: Regenerate.
4305 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4307 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4308 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4309 * spu-low.c (spu_target_ops): Likewise.
4310 * win32-low.c (win32_target_ops): Likewise.
4311 * server.c (supported_btrace_packets): Report packets unconditionally.
4312 * target.h (target_ops) <supports_btrace>: Remove.
4313 (target_supports_btrace): Remove.
4315 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4317 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4318 (handle_btrace_disable): Change return type to void. Use exceptions
4320 (handle_btrace_general_set): Catch exception and copy message to
4323 2018-02-08 Tom Tromey <tom@tromey.com>
4325 * linux-low.c (install_software_single_step_breakpoints): Use
4326 make_scoped_restore.
4327 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4328 (do_restore_current_thread_cleanup): Remove.
4329 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4332 2018-02-08 Tom Tromey <tom@tromey.com>
4334 * mem-break.c (set_raw_breakpoint_at): Use
4335 gdb::unique_xmalloc_ptr.
4337 2018-01-30 Pedro Alves <palves@redhat.com>
4340 * target.c (target_terminal::terminal_state): Rename to ...
4341 (target_terminal::m_terminal_state): ... this.
4343 2018-01-19 James Clarke <jrtc27@jrtc27.com>
4345 * linux-low.c (handle_extended_wait): Surround call to
4346 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4348 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4350 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4351 linux_ptrace_attach_fail_reason_string now returning an
4353 (linux_attach): Likewise.
4354 * thread-db.c (attach_thread): Likewise.
4356 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4359 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4360 checking for fs_base/gs_base fields in struct user_regs_struct.
4361 * configure: Regenerate.
4363 2018-01-16 Yao Qi <yao.qi@linaro.org>
4366 * linux-low.c (fetch_register): Call supply_register instead of
4369 2018-01-08 Yao Qi <yao.qi@linaro.org>
4370 Simon Marchi <simon.marchi@ericsson.com>
4372 * Makefile.in (OBS): Remove selftest.o.
4373 * configure.ac: Set srv_selftest_objs if $development is true.
4374 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4375 * configure: Re-generated.
4376 * server.c (captured_main): Wrap variable selftest_filter with
4379 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4381 * server.c (parse_debug_format_options): Return std::string.
4382 (handle_monitor_command, captured_main): Adjust.
4384 2018-01-05 Pedro Alves <palves@redhat.com>
4387 * server.c (captured_main): Pass quiet=false to
4388 save_original_signals_state.
4390 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4392 * gdbreplay.c (gdbreplay_version): Update copyright year in
4394 * server.c (gdbserver_version): Likewise.
4396 2017-12-08 Tom Tromey <tom@tromey.com>
4398 * ax.c (ax_printf): Update.
4400 2017-12-07 Yao Qi <yao.qi@linaro.org>
4402 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4403 aarch64_linux_read_description.
4404 * linux-amd64-ipa.c (idx2mask): New array.
4405 (get_ipa_tdesc): Move idx2mask out.
4406 (initialize_low_tracepoint): Initialize target descriptions.
4407 * linux-i386-ipa.c (idx2mask): New array.
4408 (get_ipa_tdesc): Move idx2mask out.
4409 (initialize_low_tracepoint): Initialize target descriptions.
4411 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4413 * tdesc.c (struct tdesc_type): Change return type.
4414 (tdesc_add_flag): Change parameter type.
4415 (tdesc_add_bitfield): Likewise.
4416 (tdesc_add_field): Likewise.
4417 (tdesc_set_struct_size): Likewise.
4419 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4421 * regcache.c (registers_to_string): Remove unused variable.
4423 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4425 * inferiors.c (for_each_inferior_with_data): Remove.
4426 * inferiors.h (for_each_inferior_with_data): Remove.
4427 * server.c (handle_qxfer_threads_worker): Change parameter type.
4428 (handle_qxfer_threads_proper): Use for_each_thread.
4430 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4432 * inferiors.c (for_each_inferior): Remove.
4433 (clear_inferiors): Use for_each_thread.
4434 * inferiors.h (for_each_inferior): Remove.
4435 * linux-low.c (linux_wait_for_event_filtered): Use
4437 (linux_stabilize_threads): Likewise.
4438 * regcache.c (regcache_release): Likewise.
4439 * server.c (gdb_wants_all_threads_stopped): Likewise.
4440 (clear_pending_status_callback): Remove.
4441 (handle_status): Use for_each_thread.
4442 (captured_main): Likewise.
4443 * win32-low.c (child_init_thread_list): Likewise.
4444 (win32_clear_inferiors): Likewise.
4445 (fake_breakpoint_event): Likewise.
4447 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4449 * inferiors.h (find_inferior): Remove.
4450 * inferiors.c (find_inferior): Remove.
4452 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4454 * linux-low.c (resume_status_pending_p): Update comment.
4455 (need_step_over_p): Update comment.
4457 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4459 * linux-low.c (proceed_one_lwp): Return void, change parameter
4461 (unsuspend_and_proceed_one_lwp): Likewise.
4462 (proceed_all_lwps): Use for_each_thread.
4463 (unstop_all_lwps): Likewise.
4465 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4467 * linux-low.c (linux_resume_one_thread): Return void, take
4469 (linux_resume): Use for_each_thread.
4471 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4473 * linux-low.c (send_sigstop_callback): Return void, change
4474 parameter type. Rename to...
4475 (send_sigstop): ... this.
4476 (suspend_and_send_sigstop_callback): Return void, change parameter
4478 (suspend_and_send_sigstop): ... this.
4479 (stop_all_lwps): Use for_each_thread.
4481 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4483 * linux-low.c (lwp_running): Return bool, remove unused
4485 (linux_stabilize_threads): Use find_thread.
4487 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4489 * linux-low.c (select_singlestep_lwp_callback): Remove.
4490 (count_events_callback): Remove.
4491 (select_event_lwp_callback): Remove.
4492 (select_event_lwp): Use find_thread/for_each_thread.
4494 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4496 * linux-low.c (not_stopped_callback): Return bool, take filter
4498 (linux_wait_for_event_filtered): Use find_thread.
4499 (linux_wait_1): Likewise.
4501 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4503 * linux-low.c (same_lwp): Remove.
4504 (find_lwp_pid): Use find_thread.
4506 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4508 * linux-low.c (delete_lwp_callback): Remove.
4509 (linux_mourn): Use for_each_thread.
4511 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4513 * linux-low.c (linux_detach_lwp_callback): Return void, remove
4514 args parameter, don't check for pid.
4515 (linux_detach): Use for_each_thread.
4517 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4519 * linux-low.c (struct counter): Remove.
4520 (second_thread_of_pid_p): Remove.
4521 (last_thread_of_process_p): Use find_thread.
4523 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4525 * inferiors.c (find_inferior_in_random): Remove.
4526 * inferiors.h (find_inferior_in_random): Remove.
4527 * linux-low.c (status_pending_p_callback): Return bool, accept
4528 parameter ptid directly.
4529 (linux_wait_for_event_filtered): Use find_thread_in_random.
4530 (linux_wait_1): Likewise.
4532 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4534 * inferiors.c (find_inferior_id): Remove.
4535 (find_thread_ptid): Move implemention from find_inferior_id to
4537 * inferiors.h (find_inferior_id): Remove.
4538 * server.c (handle_status): Use find_thread_ptid.
4539 (process_serial_event): Likewise.
4540 * thread-db.c (find_one_thread): Likewise.
4541 (thread_db_thread_handle): Likewise.
4542 * win32-low.c (thread_rec): Likewise.
4543 (child_delete_thread): Likewise.
4544 (win32_thread_alive): Likewise.
4545 (get_child_debug_event): Likewise.
4547 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4549 * linux-mips-low.c (update_watch_registers_callback): Return
4550 void, remove pid_p parameter, don't check for pid.
4551 (mips_insert_point, mips_remove_point): Use for_each_thread.
4553 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4555 * lynx.low (lynx_delete_thread_callback): Remove.
4556 (lynx_mourn): Use for_each_thread.
4558 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4560 * regcache.c (regcache_invalidate_one): Remove.
4561 (regcache_invalidate_pid): use for_each_thread.
4563 2017-11-26 Tom Tromey <tom@tromey.com>
4565 * linux-low.c (linux_create_inferior): Update.
4567 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4569 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4571 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4573 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
4574 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4575 * linux-aarch64-tdesc-selftest.c: New file.
4576 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4578 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4580 * configure.srv: Add new file.
4581 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4582 * linux-aarch64-tdesc-selftest.c: New file.
4583 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4585 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4587 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
4588 * linux-aarch64-low.c (initialize_low_arch): Remove init.
4589 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
4591 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4593 * configure.srv: Add new files.
4594 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
4595 aarch64_linux_read_description.
4596 * linux-aarch64-low.c (aarch64_linux_read_description):
4597 Merge with aarch64_arch_setup.
4598 (aarch64_arch_setup): Call aarch64_linux_read_description.
4599 * linux-aarch64-tdesc.c: New file.
4600 * linux-aarch64-tdesc.h: New file.
4602 2017-11-24 Yao Qi <yao.qi@linaro.org>
4604 * configure.srv: Set $srv_regobj for tic6x-linux.
4605 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
4606 (tic6x_read_description): Move some code to tic6x_arch_setup.
4607 (tic6x_tdesc_test): New function.
4608 (initialize_low_arch): Call selftests::register_test.
4610 2017-11-22 Yao Qi <yao.qi@linaro.org>
4612 * remote-utils.c (prepare_resume_reply): Use memcpy.
4614 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4616 * linux-low.c (kill_one_lwp_callback): Return void, take
4617 argument directly, don't filter on pid.
4618 (linux_kill): Use for_each_thread.
4620 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4622 * linux-low.c (need_step_over_p): Return bool, remove dummy
4624 (linux_resume, proceed_all_lwps): Use find_thread.
4626 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4628 * linux-low.c (resume_status_pending_p): Return bool, remove
4630 (linux_resume): Use find_thread.
4632 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4634 * linux-low.c (struct thread_resume_array): Remove.
4635 (linux_set_resume_request): Return void, take arguments
4637 (linux_resume): Use for_each_thread.
4639 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4641 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4642 return bool, remove data argument.
4643 (linux_stabilize_threads): Use find_thread.
4645 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4647 * linux-low.c (unsuspend_one_lwp): Remove.
4648 (unsuspend_all_lwps): Use for_each_thread, inline code from
4651 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4653 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4654 * linux-low.c (struct iterate_over_lwps_args): Remove.
4655 (iterate_over_lwps_filter): Remove.
4656 (iterate_over_lwps): Use find_thread.
4658 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4660 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4661 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4662 code from reset_lwp_ptrace_options_callback.
4664 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4666 * linux-arm-low.c (struct update_registers_data): Remove.
4667 (update_registers_callback): Return void, take arguments
4668 directly, don't check thread's pid.
4669 (arm_insert_point, arm_remove_point): Use for_each_thread.
4671 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4673 * win32-low.c (continue_one_thread): Return void, take argument
4675 (child_continue): Use for_each_thread.
4677 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4679 * win32-i386-low.c (update_debug_registers_callback): Rename
4681 (update_debug_registers): ... this, return void, remove pid_p arg.
4682 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4684 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4686 * inferiors.h (struct process_info): Add constructor, initialize
4688 <syscalls_to_catch>: Change type to std::vector<int>.
4689 * inferiors.c (add_process): Allocate process_info with new.
4690 (remove_process): Free process_info with delete.
4691 * linux-low.c (handle_extended_wait): Adjust.
4692 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4693 * server.c (handle_general_set): Adjust.
4695 2017-11-16 Pedro Alves <palves@redhat.com>
4697 * remote-utils.c (remote_close): Block SIGIO signals instead of
4698 uninstalling the SIGIO handler.
4700 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4702 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4704 2017-11-16 Yao Qi <yao.qi@linaro.org>
4706 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4707 (tic6x_store_gregset): Likewise.
4708 (tic6x_usrregs_info): Move it up.
4710 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4712 * Makefile.in: Update arch rules.
4713 * configure.srv: Explicitly mark arch/ files.
4715 2017-11-13 Andreas Schwab <schwab@suse.de>
4717 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4719 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4721 2017-11-06 Pedro Alves <palves@redhat.com>
4723 * config.in, configure: Regenerate.
4725 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4727 * target.c (struct thread_search): Remove.
4728 (thread_search_callback): Remove.
4729 (prepare_to_access_memory): Use for_each_thread instead of
4730 find_inferior. Inline code from thread_search_callback.
4732 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4734 * server.c (struct visit_actioned_threads_data): Remove.
4735 (visit_actioned_threads): Change prototype to take arguments
4737 (resume): Use find_thread instead of find_inferior.
4739 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4741 * server.c (queue_stop_reply_callback): Change prototype, return
4743 (find_status_pending_thread_callback): Remove.
4744 (handle_status): Replace find_inferior with find_thread and
4747 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4749 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4751 (aarch64_store_gregset): Likewise.
4752 (aarch64_fill_fpregset): Likewise.
4753 (aarch64_store_fpregset): Likewise.
4755 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4757 * gdbthread.h (find_thread, for_each_thread): New functions.
4758 * inferiors.c (thread_of_pid): Remove.
4759 (find_any_thread_of_pid): Use find_thread.
4760 * linux-low.c (num_lwps): Use for_each_thread.
4762 2017-10-17 Yao Qi <yao.qi@linaro.org>
4764 * Makefile.in: Remove one rule.
4765 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4767 2017-10-17 Yao Qi <yao.qi@linaro.org>
4769 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4770 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4772 2017-10-17 Yao Qi <yao.qi@linaro.org>
4774 * configure.srv: Rename arm.o with arch/arm.o.
4776 2017-10-17 Yao Qi <yao.qi@linaro.org>
4778 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4779 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4780 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4781 (arch-i386.o, arch-amd64.o): Remove rules.
4782 (arch/%.o): New rule.
4783 Update POSTCOMPILE and COMPILE.pre.
4784 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4785 * configure: Re-generated.
4786 * configure.srv: Replace arch-i386.o with arch/i386.o.
4787 Replace arch-amd64.o with arch/amd64.o.
4789 2017-10-16 Yao Qi <yao.qi@linaro.org>
4791 * configure: Regenerated.
4793 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4795 * inferiors.h: (struct inferior_list): Remove.
4796 (struct inferior_list_entry); Remove.
4797 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4798 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4799 get_first_inferior): Remove.
4800 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4801 find_inferior_id, find_inferior_in_random): Change signature.
4802 * inferiors.c (all_threads): Change type to
4803 std::list<thread_info *>.
4804 (get_thread): Remove macro.
4805 (find_inferior, find_inferior_id): Change signature, implement
4807 (find_inferior_in_random): Change signature, implement using
4808 find_thread_in_random.
4809 (for_each_inferior, for_each_inferior_with_data): Change
4810 signature, implement using for_each_thread.
4811 (add_inferior_to_list, remove_inferior): Remove.
4812 (add_thread, get_first_thread, thread_of_pid,
4813 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4814 (get_first_inferior, one_inferior_p, clear_inferior_list):
4816 (clear_inferiors, get_thread_process): Update.
4817 * gdbthread.h: Include <list>.
4818 (struct thread_info) <entry>: Remove field.
4820 (all_threads): Change type to std::list<thread_info *>.
4821 (get_first_inferior): Add doc.
4822 (find_thread, for_each_thread, find_thread_in_random): New
4824 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4825 * linux-arm-low.c (update_registers_callback): Update.
4826 * linux-low.c (second_thread_of_pid_p): Update.
4827 (kill_one_lwp_callback, linux_detach_lwp_callback,
4828 delete_lwp_callback, status_pending_p_callback, same_lwp,
4829 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4830 iterate_over_lwps, not_stopped_callback,
4831 resume_stopped_resumed_lwps, count_events_callback,
4832 select_singlestep_lwp_callback, select_event_lwp_callback,
4833 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4834 suspend_and_send_sigstop_callback, wait_for_sigstop,
4835 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4836 lwp_running, linux_set_resume_request, resume_status_pending_p,
4837 need_step_over_p, start_step_over, linux_resume_one_thread,
4838 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4839 reset_lwp_ptrace_options_callback): Update.
4840 * linux-mips-low.c (update_watch_registers_callback): Update.
4841 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4843 (free_register_cache_thread_one): Remove.
4844 (regcache_release): Update.
4845 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4846 handle_qxfer_threads_worker): Update.
4847 (handle_query): Update, use list iterator.
4848 (visit_actioned_threads, handle_pending_status,
4849 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4850 clear_pending_status_callback, set_pending_status_callback,
4851 find_status_pending_thread_callback, handle_status,
4852 process_serial_event): Update.
4853 * target.c (thread_search_callback): Update.
4854 * thread-db.c (thread_db_get_tls_address): Update.
4855 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4857 * win32-i386-low.c (update_debug_registers_callback): Update.
4858 * win32-low.c (delete_thread_info, child_delete_thread,
4859 continue_one_thread, suspend_one_thread,
4860 get_child_debug_event): Adjust.
4862 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4864 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4865 * inferiors.h: Include <list>.
4866 (struct process_info) <entry>: Remove field.
4868 (pid_of): Change macro to function.
4869 (ptid_of, lwpid_of): Remove macro.
4870 (all_processes): Change type to std::list<process_info *>.
4871 (ALL_PROCESSES): Remove macro.
4872 (for_each_process, find_process): New function.
4873 * inferiors.c (all_processes): Change type to
4874 std::list<process_info *>.
4875 (find_thread_process): Adjust.
4876 (add_process): Likewise.
4877 (remove_process): Likewise.
4878 (find_process_pid): Likewise.
4879 (get_first_process): Likewise.
4880 (started_inferior_callback): Remove.
4881 (have_started_inferiors_p): Adjust.
4882 (attached_inferior_callback): Remove.
4883 (have_attached_inferiors_p): Adjust.
4884 * linux-low.c (check_zombie_leaders): Likewise.
4885 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4886 (x86_linux_update_xmltarget): Adjust.
4887 * server.c (handle_query): Likewise.
4888 (gdb_reattached_process): Remove.
4889 (handle_status): Adjust.
4890 (kill_inferior_callback): Likewise.
4891 (detach_or_kill_inferior): Remove.
4892 (print_started_pid): Likewise.
4893 (print_attached_pid): Likewise.
4894 (detach_or_kill_for_exit): Update.
4895 (process_serial_event): Likewise.
4896 * linux-arm-low.c (arm_new_fork): Likewise.
4898 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4900 * dll.h: Include <list>.
4901 (struct dll_info): Add constructor.
4902 <entry>: Remove field.
4903 (all_dlls): Change type to std::list<dll_info>.
4904 * dll.c: Include <algorithm>.
4905 (get_dll): Remove macro.
4906 (all_dlls): Change type to std::list<dll_info *>.
4907 (free_one_dll): Remove.
4908 (match_dll): Likewise.
4909 (loaded_dll): Adjust.
4910 (unloaded_dll): Adjust to all_dlls type change, use
4911 std::find_if. Inline code from match_dll.
4912 (clear_dlls): Adjust to all_dlls type change.
4913 * server.c (emit_dll_description): Remove.
4914 (handle_qxfer_libraries): Adjust to all_dlls type change,
4915 integrate emit_dll_description's functionality.
4917 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4919 * linux-low.h (struct linux_target_ops) <delete_process>: New
4921 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4922 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4923 (struct linux_target_ops): Add delete_process callback.
4924 * linux-arm-low.c (arm_delete_process): New.
4925 (struct linux_target_ops): Add delete_process callback.
4926 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4927 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4928 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4929 * linux-mips-low.c (mips_linux_delete_process): New.
4930 (struct linux_target_ops): Add delete_process callback.
4931 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4932 * linux-s390-low.c (struct linux_target_ops): Likewise.
4933 * linux-sh-low.c (struct linux_target_ops): Likewise.
4934 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4935 * linux-tile-low.c (struct linux_target_ops): Likewise.
4936 * linux-x86-low.c (x86_linux_delete_process): New.
4937 (struct linux_target_ops): Add delete_process callback.
4938 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4940 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4942 * linux-aarch64-low.c (the_low_target): Add thread delete
4944 * linux-arm-low.c (arm_delete_thread): New function.
4945 (the_low_target): Add thread delete callback.
4946 * linux-bfin-low.c (the_low_target): Likewise.
4947 * linux-crisv32-low.c (the_low_target): Likewise.
4948 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4950 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4952 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4953 * linux-mips-low.c (mips_linux_delete_thread): New function.
4954 (the_low_target): Add thread delete callback.
4955 * linux-ppc-low.c (the_low_target): Likewise.
4956 * linux-s390-low.c (the_low_target): Likewise.
4957 * linux-sh-low.c (the_low_target): Likewise.
4958 * linux-tic6x-low.c (the_low_target): Likewise.
4959 * linux-tile-low.c (the_low_target): Likewise.
4960 * linux-x86-low.c (the_low_target): Likewise.
4961 * linux-xtensa-low.c (the_low_target): Likewise.
4963 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4965 * win32-low.c: Include "common-inferior.h".
4967 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4969 * inferiors.c (set_inferior_cwd): New function.
4970 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4971 (handle_query): Inform that QSetWorkingDir is supported.
4972 * win32-low.c (create_process): Pass the inferior's cwd to
4975 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4977 * inferiors.c (current_inferior_cwd): New global variable.
4978 (get_inferior_cwd): New function.
4979 * inferiors.h (struct process_info) <cwd>: New field.
4981 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4983 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4984 (OBS): Add gdb_tilde_expand.o.
4986 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4988 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4989 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4991 2017-09-29 Pedro Alves <palves@redhat.com>
4993 * ax.c (gdb_parse_agent_expr): Constify.
4994 * ax.h (gdb_parse_agent_expr): Constify.
4995 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4997 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4998 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4999 * remote-utils.h (read_ptid): Constify.
5000 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
5001 (process_point_options, process_serial_event): Constify.
5002 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
5003 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
5004 (cmd_qtbuffer): Constify.
5006 2017-09-29 Pedro Alves <palves@redhat.com>
5008 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
5011 2017-09-29 Pedro Alves <palves@redhat.com>
5013 * linux-low.c (handle_extended_wait): Pass parent thread instead
5014 of process to thread_db_notice_clone.
5015 * linux-low.h (thread_db_notice_clone): Replace parent process
5016 parameter with parent thread parameter.
5017 * thread-db.c (find_one_thread): Add comment.
5018 (thread_db_notice_clone): Replace parent process parameter with
5019 parent thread parameter. Temporarily switch to the parent thread.
5021 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
5023 * gdbthread.h: Include "common-gdbthread.h".
5024 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
5025 "if" when validating the ptid.
5026 * remote-utils.c: Include "gdbthread.h".
5027 (prepare_resume_reply): Use "switch_to_thread".
5028 * target.c (done_accessing_memory): Likewise.
5030 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5032 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
5033 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
5034 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
5035 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
5036 s390x-gs-linux64-ipa.o to ipa_obj.
5037 * linux-s390-low.c (HWCAP_S390_GS): New define.
5038 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
5040 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
5041 (s390_arch_setup): Check for guarded-storage support and choose
5043 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
5044 init_registers_s390x_gs_linux64.
5045 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
5047 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
5048 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
5050 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
5052 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
5054 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5056 * linux-low.h (struct lwp_info): Add new field, thread_handle.
5057 (thread_db_thread_handle): Declare.
5058 * linux-low.c (linux_target_ops): Initialize thread_handle.
5059 * server.c (handle_qxfer_threads_worker): Add support for
5061 * target.h (struct target_ops): Add new function pointer,
5063 (target_thread_handle): Define.
5064 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5066 (thread_db_thread_handle): New function.
5068 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5070 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5071 * linux-low.h (thread_db_notice_clone): Declare.
5072 * thread-db.c (thread_db_notice_clone): New function.
5074 2017-09-21 Pedro Alves <palves@redhat.com>
5076 * server.c (gdb_read_memory, handle_status, process_serial_event)
5077 (handle_serial_event, handle_target_event): Adjust to
5078 set_desired_thread prototype change.
5079 * target.c (set_desired_thread): Remove 'use_general' parameter
5081 * target.h (set_desired_thread): Remove 'use_general' parameter.
5083 2017-09-20 Tom Tromey <tom@tromey.com>
5085 * target.c (target_terminal::terminal_state): Define.
5086 (target_terminal::init): Rename from target_terminal_init.
5087 (target_terminal::inferior): Rename from
5088 target_terminal_inferior.
5089 (target_terminal::ours): Rename from target_terminal_ours.
5090 (target_terminal::ours_for_output, target_terminal::info): New.
5092 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5094 * server.c (accumulate_file_name_length): Remove.
5095 (emit_dll_description): Adjust to std::string change.
5096 (handle_qxfer_libraries): Use std::string to hold document.
5098 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5100 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5101 return type of xml_escape_text.
5102 * server.c (emit_dll_description): Likewise.
5104 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5106 * server.c (captured_main): Accept argument for --selftest.
5107 Update run_tests call.
5108 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5109 when registering selftests.
5111 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5113 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5114 instead of "VEC" for "target_desc.reg_defs".
5115 (regcache_cpy): Likewise.
5116 (registers_to_string): Likewise.
5117 (registers_from_string): Likewise.
5118 (find_regno): Likewise.
5119 (supply_regblock): Likewise.
5120 (regcache_raw_read_unsigned): Likewise.
5121 * tdesc.c (init_target_desc): Likewise.
5122 (tdesc_create_reg): Likewise.
5123 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5124 (struct target_desc) <reg_defs>: Convert to "std::vector".
5125 (target_desc): Do not initialize "reg_defs".
5126 (~target_desc): Update code to use "std::vector" instead of "VEC"
5127 for "target_desc.reg_defs".
5128 (operator==): Likewise.
5130 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5132 * inferiors.h (thread_to_gdb_id): Remove.
5133 * inferiors.c (thread_to_gdb_id): Remove.
5134 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5135 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5136 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5138 * nto-low.c (nto_fetch_registers, nto_store_registers,
5139 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5141 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5143 * inferiors.h (gdb_id_to_thread_id): Remove.
5144 * inferiors.c (gdb_id_to_thread_id): Remove.
5145 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5146 removal. Move pid declaration closer to where it's used.
5148 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5150 * server.c (handle_detach): New function.
5151 (process_serial_event): Move code out, call handle_detach.
5153 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5155 * server.c (require_running): Rename to ...
5156 (require_running_or_return): ... this ...
5157 (require_running_or_break): ... and this.
5158 (handle_query, process_serial_event): Adjust.
5160 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5162 * linux-low.c (linux_set_resume_request): Remove unused
5165 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5167 * server.c (first_thread_of): Remove.
5168 (process_serial_event): Replace usage of first_thread_of with
5169 find_any_thread_of_pid.
5170 * tracepoint.c (same_process_p): Remove.
5171 (gdb_agent_about_to_close): Replace usage of same_process_p with
5172 find_any_thread_of_pid.
5173 * linux-x86-low.c (same_process_callback): Remove.
5174 (x86_arch_setup_process_callback): Replace usage of
5175 same_process_callback with find_any_thread_of_pid.
5176 * thread-db.c (any_thread_of): Remove.
5177 (switch_to_process): Replace usage of any_thread_of with
5178 find_any_thread_of_pid.
5179 * inferiors.c (thread_pid_matches_callback): Remove.
5180 (find_thread_process): Adjust to use find_any_thread_of_pid.
5182 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5184 * regcache.c (get_thread_regcache): Guard calls to "memset"
5187 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5189 * linux-low.c (handle_extended_wait): Use
5190 "allocate_target_description" instead of "XNEW".
5191 * linux-x86-low.c (initialize_low_arch): Likewise.
5193 2017-09-05 Yao Qi <yao.qi@linaro.org>
5195 * configure.srv (srv_i386_regobj): Remove.
5196 (srv_amd64_regobj): Remove.
5197 (srv_regobj): Set it to "" for x86 non-linux targets.
5198 * linux-x86-tdesc.c (i386_linux_read_description):
5199 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5200 (init_registers_i386): Remove the declaration.
5201 (tdesc_i386): Remove the declaration.
5202 (lynx_i386_arch_setup): Call i386_create_target_description.
5203 * nto-x86-low.c: Likewise.
5204 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5205 [!__x86_64__]: include arch/i386.h.
5206 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5208 2017-09-05 Yao Qi <yao.qi@linaro.org>
5210 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5211 i386/amd64-XXX-linux from it.
5213 2017-09-05 Yao Qi <yao.qi@linaro.org>
5215 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5217 (ipa_amd64_linux_regobj): Remove.
5218 (ipa_x32_linux_regobj): Remove.
5220 2017-09-05 Yao Qi <yao.qi@linaro.org>
5222 * Makefile.in (arch-amd64.o): New rule.
5223 * configure.srv: Append arch-amd64.o.
5224 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5225 (get_ipa_tdesc): Call amd64_linux_read_description.
5226 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5227 and init_registers_amd64_XXX.
5228 * linux-x86-low.c (x86_linux_read_description): Call
5229 amd64_linux_read_description.
5230 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5231 (initialize_low_arch): Don't call init_registers_x32_XXX and
5232 init_registers_amd64_XXX.
5233 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5234 and tdesc_amd64_XXX.
5235 [__x86_64__] (amd64_tdesc_test): New function.
5236 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5237 and init_registers_amd64_XXX.
5238 * linux-x86-tdesc.c: Include arch/amd64.h.
5239 (xcr0_to_tdesc_idx): New function.
5240 (i386_linux_read_description): New function.
5241 (amd64_get_ipa_tdesc_idx): New function.
5242 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5243 (amd64_get_ipa_tdesc): Declare.
5245 2017-09-05 Yao Qi <yao.qi@linaro.org>
5247 * configure.srv (srv_i386_linux_xmlfiles): Remove
5248 i386/i386-XXX-linux.xml from it.
5250 2017-09-05 Yao Qi <yao.qi@linaro.org>
5252 * configure.srv: Set srv_i386_linux_regobj empty if $development
5254 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5255 initialize_low_tdesc.
5256 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5257 with #if initialize_low_tdesc.
5258 * linux-x86-tdesc-selftest.c: New file.
5259 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5261 2017-09-05 Yao Qi <yao.qi@linaro.org>
5263 * Makefile.in (arch-i386.o): New rule.
5264 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5265 (x86_64-*-linux*): Likewise.
5266 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5267 include arch/i386.h.
5268 (i386_linux_read_description): Remove code and call
5269 i386_create_target_description.
5270 * tdesc.c (allocate_target_description): New function.
5271 * tdesc.h (set_tdesc_architecture): Remove declaration.
5272 (set_tdesc_osabi): Likewise.
5274 2017-09-05 Yao Qi <yao.qi@linaro.org>
5276 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5277 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5278 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5280 * server.c (get_features_xml): Call tdesc_get_features_xml.
5281 * tdesc.c (set_tdesc_architecture): New function.
5282 (set_tdesc_osabi): New function.
5283 (tdesc_get_features_xml): New function.
5284 (tdesc_create_feature): Add an argument.
5285 * tdesc.h (struct target_desc) <features>: New field.
5286 <arch, osabi>: New field.
5287 (~target_desc): xfree features, arch, and osabi.
5288 (target_desc::oerator==): Don't compare .xmltarget.
5289 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5290 (set_tdesc_osabi): Likewise.
5291 (tdesc_get_features_xml): Likewise.
5293 2017-09-05 Yao Qi <yao.qi@linaro.org>
5295 * linux-x86-tdesc.c: Include selftest.h.
5296 (i386_tdesc_test): New function.
5297 (initialize_low_tdesc): Call selftests::register_test.
5298 * tdesc.h: Include regdef.h.
5299 (target_desc): Override operator == and !=.
5301 2017-09-05 Yao Qi <yao.qi@linaro.org>
5303 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5304 (ipa_obj): Likewise.
5305 * linux-i386-ipa.c: Include common/x86-xstate.h
5306 (get_ipa_tdesc): Call i386_linux_read_description.
5307 (initialize_low_tracepoint): Don't call init_registers_XXX
5308 functions, call initialize_low_tdesc instead.
5309 * linux-x86-low.c (x86_linux_read_description): Call
5310 i386_linux_read_description.
5311 (initialize_low_arch): Don't call init_registers_i386_XXX
5312 functions, call initialize_low_tdesc.
5313 * linux-x86-tdesc.c: New file.
5314 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5315 (i386_get_ipa_tdesc_idx): Declare.
5316 (i386_get_ipa_tdesc): Declare.
5317 (initialize_low_tdesc): Declare.
5319 2017-09-05 Yao Qi <yao.qi@linaro.org>
5321 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5324 2017-09-05 Yao Qi <yao.qi@linaro.org>
5326 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5327 * regcache.c (get_thread_regcache): Use VEC_length.
5328 (init_register_cache): Likewise.
5329 (regcache_cpy): Likewise.
5330 (registers_to_string): Iterate reg_defs via VEC_iterate.
5331 (find_regno): Likewise.
5332 (find_register_by_number): Use VEC_index.
5333 (register_size): Call find_register_by_number.
5334 (register_data): Call find_register_by_number.
5335 (supply_regblock): Use VEC_length.
5336 (regcache_raw_read_unsigned): Likewise.
5337 * tdesc.c (init_target_desc): Iterate reg_defs via
5339 (default_description): Update initializer.
5340 (copy_target_description): Don't update field num_registers.
5341 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5342 <num_registers>: Remove.
5344 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5346 * Makefile.in (.SECONDARY): Define target.
5348 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5350 * linux-low.c (linux_wait_1): Adjust.
5351 * server.c (queue_stop_reply_callback): Adjust.
5353 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5355 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5356 QEnvironmentUnset and QEnvironmentReset packets.
5357 (handle_query): Inform remote that QEnvironmentHexEncoded,
5358 QEnvironmentUnset and QEnvironmentReset are supported.
5360 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5362 * inferiors.h (inferior_target_data): Rename to ...
5363 (thread_target_data): ... this.
5364 (inferior_regcache_data): Rename to ...
5365 (thread_regcache_data): ... this.
5366 (set_inferior_regcache_data): Rename to ...
5367 (set_thread_regcache_data): ... this.
5368 * inferiors.c (inferior_target_data): Rename to ...
5369 (thread_target_data): ... this.
5370 (inferior_regcache_data): Rename to ...
5371 (thread_regcache_data): ... this.
5372 (set_inferior_regcache_data): Rename to ...
5373 (set_thread_regcache_data): ... this.
5374 (free_one_thread): Update.
5375 * linux-low.h (get_thread_lwp): Update.
5376 * regcache.c (get_thread_regcache): Update.
5377 (regcache_invalidate_thread): Update.
5378 (free_register_cache_thread): Update.
5379 * win32-i386-low.c (update_debug_registers_callback): Update.
5380 (win32_get_current_dr): Update.
5381 * win32-low.c (thread_rec): Update.
5382 (delete_thread_info): Update.
5383 (continue_one_thread): Update.
5384 (suspend_one_thread): Update.
5386 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5388 * inferiors.c (set_inferior_target_data): Remove.
5389 * inferiors.h (set_inferior_target_data): Remove.
5391 2017-08-18 Yao Qi <yao.qi@linaro.org>
5393 * Makefile.in (OBS): Add selftest.o.
5394 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5395 * configure, config.in: Re-generated.
5396 * server.c: Include common/sefltest.h.
5397 (captured_main): Handle option --selftest.
5399 2017-08-09 Yao Qi <yao.qi@linaro.org>
5401 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5402 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5403 i386-avx-mpx.o and i386-mmx.o.
5404 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5405 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5406 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5407 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
5408 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
5409 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
5410 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
5411 i386/amd64-avx-mpx.xml.
5413 2017-08-09 Yao Qi <yao.qi@linaro.org>
5415 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
5416 and x32-avx-avx512.o.
5417 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
5418 i386/x32-avx-avx512.xml.
5420 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5422 * tracepoint.h (enum class fast_tpoint_collect_result): New
5424 (fast_tracepoint_collecting): Change return type to
5425 fast_tpoint_collect_result.
5426 * tracepoint.c (fast_tracepoint_collecting): Likewise.
5427 * linux-low.h: Include tracepoint.h.
5428 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
5429 fast_tpoint_collect_result.
5430 * linux-low.c (handle_tracepoints): Adjust.
5431 (linux_fast_tracepoint_collecting): Change return type to
5432 fast_tpoint_collect_result.
5433 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
5434 linux_wait_1, stuck_in_jump_pad_callback,
5435 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
5436 proceed_one_lwp): Adjust to type change.
5438 2017-07-10 Yao Qi <yao.qi@linaro.org>
5440 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5442 2017-06-29 Yao Qi <yao.qi@linaro.org>
5444 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5446 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5448 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5450 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5452 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5454 * linux-low.c (linux_create_inferior): Adjust code to access the
5455 environment information via 'gdb_environ' class.
5456 * lynx-low.c (lynx_create_inferior): Likewise.
5457 * server.c (our_environ): Make it an instance of 'gdb_environ'.
5458 (get_environ): Return a pointer to 'our_environ'.
5459 (captured_main): Initialize 'our_environ'.
5460 * server.h (get_environ): Adjust prototype.
5461 * spu-low.c (spu_create_inferior): Adjust code to access the
5462 environment information via 'gdb_environ' class.
5464 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5466 * linux-low.c (linux_read_memory, linux_write_memory): Remove
5467 usage of "register" keyword.
5469 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5471 * configure: Re-generate.
5473 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5475 * configure: Re-generate.
5477 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5479 * Makefile.in (COMPILE.pre): Add "-x c++".
5481 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
5483 * fork-child.c: Conditionally include <signal.h>.
5485 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5487 * server.c (handle_general_set): Handle new packet
5488 "QStartupWithShell".
5489 (handle_query): Add "QStartupWithShell" to the list of supported
5491 (gdbserver_usage): Add help text explaining the
5492 new "--startup-with-shell" and "--no-startup-with-shell" CLI
5494 (captured_main): Recognize and act upon the presence of the new
5497 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5498 Pedro Alves <palves@redhat.com>
5500 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
5501 * configure: Regenerate.
5502 * configure.srv (srv_linux_obj): Add "fork-child.o" and
5504 (i[34567]86-*-lynxos*): Likewise.
5505 (spu*-*-*): Likewise.
5506 * fork-child.c: New file.
5507 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
5509 (linux_ptrace_fun): New function.
5510 (linux_create_inferior): Adjust function prototype to reflect
5511 change on "target.h". Adjust function code to use
5513 (linux_request_interrupt): Delete "signal_pid".
5514 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5515 (lynx_ptrace_fun): New function.
5516 (lynx_create_inferior): Adjust function prototype to reflect
5517 change on "target.h". Adjust function code to use
5519 * nto-low.c (nto_create_inferior): Adjust function prototype and
5520 code to reflect change on "target.h". Update comments.
5521 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
5522 "common-terminal.h" and "environ.h".
5523 (terminal_fd): Moved to fork-child.c.
5524 (old_foreground_pgrp): Likewise.
5525 (restore_old_foreground_pgrp): Likewise.
5526 (last_status): Make it global.
5527 (last_ptid): Likewise.
5528 (our_environ): New variable.
5529 (startup_with_shell): Likewise.
5530 (program_name): Likewise.
5531 (program_argv): Rename to...
5532 (program_args): ...this.
5533 (wrapper_argv): New variable.
5534 (start_inferior): Delete function.
5535 (get_exec_wrapper): New function.
5536 (get_exec_file): Likewise.
5537 (get_environ): Likewise.
5538 (prefork_hook): Likewise.
5539 (post_fork_inferior): Likewise.
5540 (postfork_hook): Likewise.
5541 (postfork_child_hook): Likewise.
5542 (handle_v_run): Update code to deal with arguments coming from the
5543 remote host. Update calls from "start_inferior" to
5545 (captured_main): Likewise. Initialize environment variable. Call
5547 * server.h (post_fork_inferior): New prototype.
5548 (get_environ): Likewise.
5549 (last_status): Declare.
5550 (last_ptid): Likewise.
5551 (signal_pid): Likewise.
5552 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5553 (spu_ptrace_fun): New function.
5554 (spu_create_inferior): Adjust function prototype to reflect change
5555 on "target.h". Adjust function code to use "fork_inferior".
5556 * target.c (target_terminal_init): New function.
5557 (target_terminal_inferior): Likewise.
5558 (target_terminal_ours): Likewise.
5559 * target.h: Include <vector>.
5560 (struct target_ops) <create_inferior>: Update prototype.
5561 (create_inferior): Update macro.
5562 * utils.c (gdb_flush_out_err): New function.
5563 * win32-low.c (win32_create_inferior): Adjust function prototype
5564 and code to reflect change on "target.h".
5566 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5568 * inferiors.c (switch_to_thread): New function.
5570 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5572 * Makefile.in (SFILE): Add "common/job-control.c".
5573 (OBS): Add "job-control.o".
5575 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5577 * Makefile: Remove "@host_makefile_frag@".
5579 2017-05-05 Pedro Alves <palves@redhat.com>
5581 * configure: Regenerate.
5583 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5585 * configure: Regenerate.
5587 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5589 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
5590 software_single_step change of return type to
5591 std::vector<CORE_ADDR>.
5592 * linux-low.c (install_software_single_step_breakpoints):
5594 * linux-low.h (install_software_single_step_breakpoints):
5597 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5599 * remote-utils.c: Include "gdb_termios.h" instead of
5601 * terminal.h: Delete file.
5603 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5605 * server.c: Include <vector>.
5606 <program_argv, wrapper_argv>: Convert to std::vector.
5607 (start_inferior): Rewrite function to use C++.
5608 (handle_v_run): Likewise. Update code that calculates the argv
5609 based on the vRun packet; use C++.
5610 (captured_main): Likewise.
5612 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5614 * server.c (handle_v_cont): Initialize thread_resume::thread
5617 2017-04-05 Pedro Alves <palves@redhat.com>
5619 * configure: Regenerate.
5621 2017-04-05 Pedro Alves <palves@redhat.com>
5623 * gdbreplay.c (sync_error): Constify.
5624 * linux-x86-low.c (push_opcode): Constify.
5626 2017-04-05 Pedro Alves <palves@redhat.com>
5628 * win32-low.c (get_child_debug_event)
5629 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5630 Report TARGET_WAITKIND_SPURIOUS instead.
5632 2017-04-05 Pedro Alves <palves@redhat.com>
5634 * remote-utils.c (remote_prepare, remote_open): Constify.
5635 * remote-utils.h (remote_prepare, remote_open): Constify.
5636 * server.c (captured_main): Constify 'port' handling.
5638 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5640 * Makefile.in (clean): Clear .deps.
5642 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5644 * .gitignore: Remove generated files, replace with wildcard.
5645 * (clean): Replace removal of generated files with wildcard.
5646 (version.c): Replace with...
5647 (version-generated.c): ...this.
5648 (xml-builtin.c): Replace with...
5649 (xml-builtin-generated.c): ...this.
5650 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5651 (%.c: *regformats*): Replace with...
5652 (%-generated.c: *regformats*): ...this.
5654 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5656 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5657 (xtensa_fill_gregset): Call collect_register_by_name for
5659 (xtensa_store_gregset): Call supply_register_by_name for
5662 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5664 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5665 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5666 (xtensa_store_gregset): Call supply_register for all registers in
5667 a0_regnum..a0_regnum + C0_NREGS range.
5669 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5671 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5672 (ax-ipa.o: ax.c): Remove.
5673 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5674 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5675 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5676 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5677 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5679 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5681 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5682 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5683 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5684 (errors-ipa.o: ../common/errors.c): Remove.
5685 (format-ipa.o: ../common/format.c): Remove.
5686 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5688 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5690 * Makefile.in (%-ipa.o: %.c): New rule.
5691 (tracepoint-ipa.o: tracepoint.c): Remove.
5692 (utils-ipa.o: utils.c): Remove.
5693 (remote-utils-ipa.o: remote-utils.c): Remove.
5694 (regcache-ipa.o: regcache.c): Remove.
5695 (i386-linux-ipa.o: i386-linux.c): Remove.
5696 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5697 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5698 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5699 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5700 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5701 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5702 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5703 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5704 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5705 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5706 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5707 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5708 (aarch64-ipa.o: aarch64.c): Remove.
5709 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5710 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5711 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5712 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5713 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5714 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5715 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5716 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5717 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5718 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5719 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5720 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5721 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5722 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5723 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5724 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5725 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5726 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5727 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5728 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5729 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5730 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5731 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5732 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5733 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5734 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5735 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5736 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5737 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5738 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5739 (tdesc-ipa.o: tdesc.c): Remove.
5740 (x32-linux-ipa.o: x32-linux.c): Remove.
5741 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5742 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5744 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5746 * Makefile.in (%.o: ../arch/%.c): New rule.
5747 (arm.o: ../arch/arm.c): Remove.
5748 (arm-linux.o: ../arch/arm-linux.c): Remove.
5749 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5750 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5752 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5754 * Makefile.in (%.o: ../nat/%.c): New rule.
5755 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5756 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5757 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5758 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5759 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5760 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5761 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5762 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5763 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5764 (linux-personality.o: ../nat/linux-personality.c): Remove.
5765 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5766 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5767 (x86-linux.o: ../nat/x86-linux.c): Remove.
5768 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5769 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5771 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5773 * Makefile.in (%.o: ../common/%.c): New rule.
5774 (signals.o: ../common/signals.c): Remove.
5775 (print-utils.o: ../common/print-utils.c): Remove.
5776 (rsp-low.o: ../common/rsp-low.c): Remove.
5777 (common-utils.o: ../common/common-utils.c): Remove.
5778 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5779 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5780 (vec.o: ../common/vec.c): Remove.
5781 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5782 (xml-utils.o: ../common/xml-utils.c): Remove.
5783 (ptid.o: ../common/ptid.c): Remove.
5784 (buffer.o: ../common/buffer.c): Remove.
5785 (format.o: ../common/format.c): Remove.
5786 (filestuff.o: ../common/filestuff.c): Remove.
5787 (agent.o: ../common/agent.c): Remove.
5788 (errors.o: ../common/errors.c): Remove.
5789 (environ.o: ../common/environ.c): Remove.
5790 (common-debug.o: ../common/common-debug.c): Remove.
5791 (cleanups.o: ../common/cleanups.c): Remove.
5792 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5793 (fileio.o: ../common/fileio.c): Remove.
5794 (common-regcache.o: ../common/common-regcache.c): Remove.
5795 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5796 (new-op.o: ../common/new-op.c): Remove.
5797 (btrace-common.o: ../common/btrace-common.c): Remove.
5799 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5801 * Makefile.in (%.o: ../target/%.c): New rule.
5802 (waitstatus.o: ../target/waitstatus.c): Remove.
5804 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5807 (%.c: ../regformats/%.dat,
5808 (%.c: ../regformats/arm/%.dat,
5809 (%.c: ../regformats/i386/%.dat,
5810 (%.c: ../regformats/rs6000/%.dat): New rules.
5811 (aarch64.c): Remove.
5812 (reg-arm.c): Remove.
5813 (arm-with-iwmmxt.c): Remove.
5814 (arm-with-vfpv2.c): Remove.
5815 (arm-with-vfpv3.c): Remove.
5816 (arm-with-neon.c): Remove.
5817 (reg-bfin.c): Remove.
5818 (reg-cris.c): Remove.
5819 (reg-crisv32.c): Remove.
5821 (i386-linux.c): Remove.
5822 (i386-avx.c): Remove.
5823 (i386-avx-linux.c): Remove.
5824 (i386-avx-avx512.c): Remove.
5825 (i386-avx-avx512-linux.c): Remove.
5826 (i386-mpx.c): Remove.
5827 (i386-mpx-linux.c): Remove.
5828 (i386-avx-mpx-avx512-pku.c): Remove.
5829 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5830 (i386-avx-mpx.c): Remove.
5831 (i386-avx-mpx-linux.c): Remove.
5832 (i386-mmx.c): Remove.
5833 (i386-mmx-linux.c): Remove.
5834 (reg-ia64.c): Remove.
5835 (reg-m32r.c): Remove.
5836 (reg-m68k.c): Remove.
5838 (mips-linux.c): Remove.
5839 (mips-dsp-linux.c): Remove.
5840 (mips64-linux.c): Remove.
5841 (mips64-dsp-linux.c): Remove.
5842 (nios2-linux.c): Remove.
5843 (powerpc-32.c): Remove.
5844 (powerpc-32l.c): Remove.
5845 (powerpc-altivec32l.c): Remove.
5846 (powerpc-cell32l.c): Remove.
5847 (powerpc-vsx32l.c): Remove.
5848 (powerpc-isa205-32l.c): Remove.
5849 (powerpc-isa205-altivec32l.c): Remove.
5850 (powerpc-isa205-vsx32l.c): Remove.
5851 (powerpc-e500l.c): Remove.
5852 (powerpc-64l.c): Remove.
5853 (powerpc-altivec64l.c): Remove.
5854 (powerpc-cell64l.c): Remove.
5855 (powerpc-vsx64l.c): Remove.
5856 (powerpc-isa205-64l.c): Remove.
5857 (powerpc-isa205-altivec64l.c): Remove.
5858 (powerpc-isa205-vsx64l.c): Remove.
5859 (s390-linux32.c): Remove.
5860 (s390-linux32v1.c): Remove.
5861 (s390-linux32v2.c): Remove.
5862 (s390-linux64.c): Remove.
5863 (s390-linux64v1.c): Remove.
5864 (s390-linux64v2.c): Remove.
5865 (s390-te-linux64.c): Remove.
5866 (s390-vx-linux64.c): Remove.
5867 (s390-tevx-linux64.c): Remove.
5868 (s390x-linux64.c): Remove.
5869 (s390x-linux64v1.c): Remove.
5870 (s390x-linux64v2.c): Remove.
5871 (s390x-te-linux64.c): Remove.
5872 (s390x-vx-linux64.c): Remove.
5873 (s390x-tevx-linux64.c): Remove.
5874 (tic6x-c64xp-linux.c): Remove.
5875 (tic6x-c64x-linux.c): Remove.
5876 (tic6x-c62x-linux.c): Remove.
5878 (reg-sparc64.c): Remove.
5879 (reg-spu.c): Remove.
5881 (amd64-linux.c): Remove.
5882 (amd64-avx.c): Remove.
5883 (amd64-avx-linux.c): Remove.
5884 (amd64-avx-avx512.c): Remove.
5885 (amd64-avx-avx512-linux.c): Remove.
5886 (amd64-mpx.c): Remove.
5887 (amd64-mpx-linux.c): Remove.
5888 (amd64-avx-mpx-avx512-pku.c): Remove.
5889 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5890 (amd64-avx-mpx.c): Remove.
5891 (amd64-avx-mpx-linux.c): Remove.
5893 (x32-linux.c): Remove.
5894 (x32-avx.c): Remove.
5895 (x32-avx-linux.c): Remove.
5896 (x32-avx-avx512.c): Remove.
5897 (x32-avx-avx512-linux.c): Remove.
5898 (reg-xtensa.c): Remove.
5899 (reg-tilegx.c): Remove.
5900 (reg-tilegx32.c): Remove.
5902 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5904 * Makefile.in (SFILES): Add "common/environ.c".
5905 (OBJS): Add "common/environ.h".
5907 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5909 * configure.ac: Check if the fs_base and gs_base members of
5910 `struct user_regs_struct' exist.
5911 * config.in: Regenerated.
5912 * configure: Likewise.
5914 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5916 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5918 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5919 (get_next_pcs_syscall_next_pc): Likewise.
5921 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5923 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5924 * nto-x86-low.c: Likewise.
5926 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5928 * Makefile.in: Include disable-implicit-rules.mk.
5930 2016-11-23 Pedro Alves <palves@redhat.com>
5932 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5933 (debug_vprintf): Use std::chrono::steady_clock instead of
5934 gettimeofday. Use '.' instead of ':'.
5935 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5936 (get_timestamp): Use std::chrono::steady_clock instead of
5939 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5941 * Makefile.in: Fix whitespace formatting.
5943 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5945 * Makefile.in (SFILES, OBS): Flatten list and order
5948 2016-11-23 Pedro Alves <palves@redhat.com>
5950 * event-loop.c (handle_file_event): Use warning.
5951 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5952 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5955 2016-11-23 Pedro Alves <palves@redhat.com>
5957 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5959 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5960 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5961 debug_printf and debug_flush for debug output.
5962 * server.c (handle_general_set): Likewise.
5963 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5966 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5968 * Makefile.in (.c.o): Replace rule with ...
5969 (%.o: %.c): ... this one.
5971 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5973 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5974 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5976 * configure.ac: Remove checks for the make program.
5977 * configure: Re-generate.
5979 2016-10-28 Pedro Alves <palves@redhat.com>
5981 * Makefile.in (CXX_DIALECT): Get from configure.
5982 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5983 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5984 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5985 * config.in: Regenerate.
5986 * configure: Regenerate.
5988 2016-10-27 Yao Qi <yao.qi@linaro.org>
5990 * linux-low.c (linux_supports_range_stepping): Return true if
5991 can_software_single_step return true.
5993 2016-10-27 Yao Qi <yao.qi@linaro.org>
5995 * inferiors.c (find_inferior_in_random): New function.
5996 * inferiors.h (find_inferior_in_random): Declare.
5997 * linux-low.c (linux_wait_for_event_filtered): Call
5998 find_inferior_in_random instead of find_inferior.
6000 2016-10-27 Yao Qi <yao.qi@linaro.org>
6002 * linux-low.c (linux_wait_1): If single-step breakpoints are
6003 inserted, remove them.
6005 2016-10-26 Pedro Alves <palves@redhat.com>
6007 * linux-low.c (handle_extended_wait): Link parent/child fork
6009 (linux_wait_1): Unlink them.
6010 (linux_set_resume_request): Ignore resume requests for
6011 already-resumed and unhandled fork child threads.
6012 * linux-low.h (struct lwp_info) <fork_relative>: New field.
6013 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
6015 (handle_v_requests) <vCont>: Don't call require_running.
6016 * server.h (in_queued_stop_replies): New declaration.
6018 2016-10-24 Yao Qi <yao.qi@linaro.org>
6021 * linux-aarch64-low.c (append_insns): Cast the return value to
6024 2016-10-10 Yao Qi <yao.qi@linaro.org>
6026 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
6028 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
6030 * target.c (target_supports_multi_process): New function, moved
6032 * target.h (target_supports_multi_process): ... here. Remove
6035 2016-10-05 Tom Tromey <tom@tromey.com>
6038 * tracepoint.c (handle_tracepoint_bkpts): Check
6039 ipa_error_tracepoint, not ipa_stopping_tracepoint.
6041 2016-10-05 Yao Qi <yao.qi@linaro.org>
6043 * configure.srv: Update the path of arm-*.xml files.
6045 2016-10-05 Terry Guo <terry.guo@arm.com>
6046 Yao Qi <yao.qi@linaro.org>
6048 * Makefile.in: Adjust the path of rules.
6049 * configure.srv: Update the path of xml files.
6050 * regformats/arm-with-iwmmxt.dat: Regenerated.
6051 * regformats/arm-with-neon.dat: Likewise.
6052 * regformats/arm-with-vfpv2.dat: Likewise.
6053 * regformats/arm-with-vfpv3.dat Likewise.
6055 2016-09-30 Yao Qi <yao.qi@linaro.org>
6058 * target.c (target_stop_and_wait): Don't call
6059 target_continue_no_signal, use resume_stop instead.
6061 2016-09-26 Yao Qi <yao.qi@linaro.org>
6063 * linux-low.c (linux_wait_1): Call debug_exit.
6065 2016-09-23 Pedro Alves <palves@redhat.com>
6067 * Makefile.in (SFILES): Add common/new-op.c.
6068 (OBS): Add common/new-op.o.
6069 (new-op.o): New rule.
6071 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6073 * .gitinore: Ignore more files.
6075 2016-09-21 Yao Qi <yao.qi@linaro.org>
6077 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6080 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6082 * server.c (start_inferior): Call target_mourn_inferior instead of
6083 mourn_inferior; pass ptid_t argument to it.
6085 (handle_target_event): Likewise.
6086 * target.c (target_mourn_inferior): New function.
6087 * target.h (mourn_inferior): Delete macro.
6089 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6091 * linux-low.c (lwp_is_stepping): New function.
6093 2016-09-06 Carl Love <cel@us.ibm.com>
6095 * server.c (start_inferior): Fixed comment, requested comment change
6096 didn't get updated correctly. Removed reference to ptrace () call as
6097 it is only true on Linux systems.
6099 2016-09-06 Carl Love <cel@us.ibm.com>
6101 * server.c (start_inferior): Do not call
6102 function target_post_create_inferior () if the
6103 inferior process has already exited.
6105 2016-09-05 Pedro Alves <palves@redhat.com>
6107 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6108 (COMPILE.pre, CC_LD): Use CXX directly.
6109 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6110 * acinclude.m4: Don't include build-with-cxx.m4.
6111 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6112 * configure: Regenerate.
6114 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6117 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6118 call writing data to own_buf.
6120 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6122 * target.c (mywait): Call target_wait instead of
6124 (target_wait): New function.
6126 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6128 * server.c (start_inferior): New variable 'ptid'. Replace calls
6129 to the_target->resume by target_continue{,_no_signal}, depending
6131 * target.c (target_stop_and_wait): Call target_continue_no_signal
6132 instead of the_target->resume.
6133 (target_continue): New function.
6135 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6137 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6139 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6142 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6144 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6145 * linux-arm-low.c (ps_get_thread_area): Likewise.
6146 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6147 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6148 * linux-mips-low.c (ps_get_thread_area): Likewise.
6149 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6150 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6151 * linux-x86-low.c (ps_get_thread_area): Likewise.
6152 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6154 2016-08-19 Pedro Alves <palves@redhat.com>
6156 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6158 2016-08-19 Pedro Alves <palves@redhat.com>
6160 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6161 comment. Use memcpy instead of casting through unsigned long.
6163 2016-08-19 Pedro Alves <palves@redhat.com>
6165 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6166 allocating around 0x80000000.
6168 2016-08-19 Pedro Alves <palves@redhat.com>
6171 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6172 (x32-avx512-linux-ipa.o): New rules.
6173 * configure.ac (x86_64-*-linux*): New x32 check.
6174 * configure.srv (ipa_x32_linux_regobj): New.
6175 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6176 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6178 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6180 * configure: Regenerate.
6182 2016-08-09 Pedro Alves <palves@redhat.com>
6185 * Makefile.in (OBS): Add signals-state-save-restore.o.
6186 (signals-state-save-restore.o): New rule.
6187 * config.in: Regenerate.
6188 * configure: Regenerate.
6189 * linux-low.c: Include "signals-state-save-restore.h".
6190 (linux_create_inferior): Call
6191 restore_original_signals_state.
6192 * server.c: Include "dispositions-save-restore.h".
6193 (captured_main): Call save_original_signals_state.
6195 2016-08-05 Pedro Alves <palves@redhat.com>
6197 * configure: Regenerate.
6199 2016-08-04 Yao Qi <yao.qi@linaro.org>
6201 * linux-low.c (regsets_fetch_inferior_registers): Check
6202 errno is ESRCH or not.
6204 2016-08-02 Yao Qi <yao.qi@linaro.org>
6206 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6207 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6208 (thread_db_load_search): Update.
6209 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6210 td_ta_set_event and td_ta_event_getmsg.
6212 2016-07-26 Pedro Alves <palves@redhat.com>
6215 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6216 of unsigned long for 64-bit registers and use uint32_t instead of
6217 unsigned int for 32-bit registers.
6219 2016-07-26 Pedro Alves <palves@redhat.com>
6221 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6224 2016-07-21 Tom Tromey <tom@tromey.com>
6226 * configure: Rebuild.
6228 2016-07-21 Yao Qi <yao.qi@linaro.org>
6230 * mem-break.c (find_gdb_breakpoint): Cast bp to
6231 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6233 2016-07-21 Yao Qi <yao.qi@linaro.org>
6235 * server.c (handle_v_requests): Support s and S actions
6236 if target_supports_software_single_step return true.
6238 2016-07-21 Yao Qi <yao.qi@linaro.org>
6240 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6241 is resume_step, call maybe_hw_step.
6242 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6244 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6246 (proceed_one_lwp): If resume request is resume_step, install
6247 reinsert breakpoints and call maybe_hw_step.
6249 2016-07-21 Yao Qi <yao.qi@linaro.org>
6251 * linux-low.c (proceed_one_lwp): Declare.
6252 (linux_resume_one_thread): Remove local variable 'step'.
6253 Lift code enqueue signal. Call proceed_one_lwp instead of
6254 linux_resume_one_lwp.
6256 2016-07-21 Yao Qi <yao.qi@linaro.org>
6258 * linux-low.c (linux_resume_one_thread): Call
6259 enqueue_pending_signal.
6261 2016-07-21 Yao Qi <yao.qi@linaro.org>
6263 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6264 * inferiors.c (do_restore_current_thread_cleanup): New function.
6265 (make_cleanup_restore_current_thread): Likewise.
6266 * linux-low.c (install_software_single_step_breakpoints): Call
6267 make_cleanup_restore_current_thread. Switch current_thread to
6270 2016-07-21 Yao Qi <yao.qi@linaro.org>
6272 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6273 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6274 (clone_one_breakpoint): Likewise.
6275 (delete_reinsert_breakpoints): Change parameter to thread.
6277 (has_reinsert_breakpoints): Likewise.
6278 (uninsert_reinsert_breakpoints): Likewise.
6279 (reinsert_reinsert_breakpoints): Likewise.
6280 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6281 (delete_reinsert_breakpoints): Likewise.
6282 (reinsert_reinsert_breakpoints): Likewise.
6283 (uninsert_reinsert_breakpoints): Likewise.
6284 (has_reinsert_breakpoints): Likewise.
6286 2016-07-21 Yao Qi <yao.qi@linaro.org>
6288 * inferiors.c (get_thread_process): Make parameter const.
6289 * inferiors.h (get_thread_process): Update declaration.
6290 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6291 Add new parameters child_thread and parent_thread. Callers
6293 * mem-break.h (clone_all_breakpoints): Update declaration.
6295 2016-07-21 Yao Qi <yao.qi@linaro.org>
6297 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6298 <command_list, handler>: Remove.
6299 (struct gdb_breakpoint): New.
6300 (struct other_breakpoint): New.
6301 (struct reinsert_breakpoint): New.
6302 (is_gdb_breakpoint): New function.
6303 (any_persistent_commands): Update command_list if
6304 is_gdb_breakpoint returns true.
6305 (set_breakpoint): Create breakpoints according to their types.
6306 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6307 (set_gdb_breakpoint_1): Likewise.
6308 (set_gdb_breakpoint): Likewise.
6309 (clear_breakpoint_conditions): Change parameter type to
6310 'struct gdb_breakpoint *'.
6311 (clear_breakpoint_commands): Likewise.
6312 (clear_breakpoint_conditions_and_commands): Likewise.
6313 (add_condition_to_breakpoint): Likewise.
6314 (add_breakpoint_condition): Likewise.
6315 (add_commands_to_breakpoint): Likewise.
6316 (check_breakpoints): Check other_breakpoint.
6317 (clone_one_breakpoint): Clone breakpopint according to its type.
6318 * mem-break.h (struct gdb_breakpoint): Declare.
6319 (set_gdb_breakpoint): Update declaration.
6320 (clear_breakpoint_conditions_and_commands): Likewise.
6321 (add_breakpoint_condition): Likewise.
6322 (add_breakpoint_commands): Likewise.
6323 * server.c (process_point_options): Change parameter type to
6324 'struct gdb_breakpoint *'.
6326 2016-07-21 Yao Qi <yao.qi@linaro.org>
6328 * mem-break.c (set_breakpoint_at): Rename it to ...
6329 (set_breakpoint_type_at): ... it.
6330 (set_breakpoint_at): Call set_breakpoint_type_at.
6331 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6332 * mem-break.h (set_breakpoint_at): Update comments.
6334 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6336 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6338 (nios2_store_gregset): Likewise.
6340 2016-07-01 Pedro Alves <palves@redhat.com>
6341 Antoine Tremblay <antoine.tremblay@ericsson.com>
6343 * linux-low.c: Change interface to take the target lwp_info
6344 pointer directly and return void. Handle detaching from a zombie
6346 (linux_detach_lwp_callback): New function.
6347 (linux_detach): Detach from the leader thread after detaching from
6350 2016-06-28 Yao Qi <yao.qi@linaro.org>
6352 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6353 for variable new_offset.
6354 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6355 (aarch64_ftrace_insn_reloc_cb): Likewise.
6356 (aarch64_ftrace_insn_reloc_tb): Likewise.
6357 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6358 PRIx64 instead of PRIx32.
6360 2016-06-28 Yao Qi <yao.qi@linaro.org>
6362 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6363 (the_low_target): Install arm_get_syscall_trapinfo.
6365 2016-06-28 Yao Qi <yao.qi@linaro.org>
6367 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6369 (the_low_target): Install aarch64_get_syscall_trapinfo.
6371 2016-06-28 Yao Qi <yao.qi@linaro.org>
6373 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6375 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6376 Remove parameter sysno.
6377 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6380 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6382 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6383 (s390_emit_ne_goto): Likewise.
6384 (s390_emit_lt_goto): Likewise.
6385 (s390_emit_le_goto): Likewise.
6386 (s390_emit_gt_goto): Likewise.
6387 (s390_emit_ge_goto): Likewise.
6388 (s390x_emit_eq_goto): Likewise.
6389 (s390x_emit_ne_goto): Likewise.
6390 (s390x_emit_lt_goto): Likewise.
6391 (s390x_emit_le_goto): Likewise.
6392 (s390x_emit_gt_goto): Likewise.
6393 (s390x_emit_ge_goto): Likewise.
6394 (s390_emit_ops_impl): Mark variable static.
6395 (s390x_emit_ops): Likewise.
6397 2016-06-17 Yao Qi <yao.qi@linaro.org>
6399 * linux-low.c (handle_extended_wait): Call
6400 uninsert_reinsert_breakpoints for the parent process. Remove
6401 reinsert breakpoints from the child process. Reinsert them to
6402 the parent process when vfork is done.
6403 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6404 (reinsert_reinsert_breakpoints): New function.
6405 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6406 (reinsert_reinsert_breakpoints): Declare.
6408 2016-06-17 Yao Qi <yao.qi@linaro.org>
6410 * linux-low.c (handle_extended_wait): If the parent is doing
6411 step-over, remove the reinsert breakpoints from the forked child.
6413 2016-06-17 Yao Qi <yao.qi@linaro.org>
6415 * linux-low.c (unsuspend_all_lwps): Declare.
6416 (linux_low_filter_event): If thread exited, call finish_step_over.
6417 If step-over is finished, unsuspend other threads.
6419 2016-06-17 Yao Qi <yao.qi@linaro.org>
6421 * linux-low.c (linux_resume_one_lwp_throw): Assert
6422 has_reinsert_breakpoints returns false.
6423 * mem-break.c (delete_disabled_breakpoints): Assert
6424 bp type isn't reinsert_breakpoint.
6426 2016-06-17 Yao Qi <yao.qi@linaro.org>
6428 * linux-low.c (maybe_hw_step): New function.
6429 (linux_resume_one_lwp_throw): Call maybe_hw_step.
6430 (finish_step_over): Switch current_thread to lwp temporarily,
6431 and assert has_reinsert_breakpoints returns true.
6432 (proceed_one_lwp): Call maybe_hw_step.
6433 * mem-break.c (has_reinsert_breakpoints): New function.
6434 * mem-break.h (has_reinsert_breakpoints): Declare.
6436 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6438 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6440 2016-05-17 Yao Qi <yao.qi@linaro.org>
6442 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6443 instead of find_inferior.
6445 2016-05-05 Yao Qi <yao.qi@linaro.org>
6447 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6448 Initialize res to zero.
6450 2016-05-05 Yao Qi <yao.qi@linaro.org>
6452 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6455 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6457 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
6458 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
6459 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6461 2016-04-28 Par Olsson <par.olsson@windriver.com>
6462 Simon Marchi <simon.marchi@ericsson.com>
6464 * tracepoint.c (write_inferior_int8): New function.
6465 (cmd_qtenable_disable): Write enable flag using
6466 write_inferior_int8.
6468 2016-04-25 Yao Qi <yao.qi@linaro.org>
6470 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
6471 (need_step_over_p): Return zero if the LWP has pending signals
6472 can be delivered on software single step target.
6474 2016-04-25 Yao Qi <yao.qi@linaro.org>
6476 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
6477 return instead of error.
6479 2016-04-22 Yao Qi <yao.qi@linaro.org>
6481 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
6484 2016-04-22 Yao Qi <yao.qi@linaro.org>
6486 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
6487 signal when stepping over breakpoint with software single
6490 2016-04-21 Pedro Alves <palves@redhat.com>
6492 * linux-s390-low.c (s390_collect_ptrace_register)
6493 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
6495 (s390_check_regset): Use void * instead of gdb_byte *.
6497 2016-04-20 Pedro Alves <palves@redhat.com>
6499 * configure: Renegerate.
6501 2016-04-20 Yao Qi <yao.qi@linaro.org>
6503 * linux-aarch32-low.c: Include "arch/arm-linux.h".
6504 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
6506 (arm_store_gregset): Likewise.
6508 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6510 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
6511 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
6512 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
6513 (amd64-avx-mpx-linux.c): New rules.
6514 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
6515 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
6516 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
6517 (srv_amd64_regobj): Add amd64-avx-mpx.o.
6518 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
6519 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
6520 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
6521 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
6522 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
6523 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
6524 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
6525 * linux-x86-low.c (x86_linux_read_description): Add case for
6526 X86_XSTATE_AVX_MPX_MASK.
6527 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
6528 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
6529 init_registers_i386_avx_mpx_linux.
6530 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6531 (initialize_low_tracepoint): Call
6532 init_registers_i386_avx_mpx_linux.
6533 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6534 (initialize_low_tracepoint): Call
6535 init_registers_amd64_avx_mpx_linux.
6536 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
6537 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
6538 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
6541 2016-04-18 Pedro Alves <palves@redhat.com>
6543 * configure: Regenerate.
6545 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
6547 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
6548 (aarch64_emit_sub): Likewise.
6550 2016-04-12 Pedro Alves <palves@redhat.com>
6552 * utils.c (prepare_to_throw_exception): Delete.
6554 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
6556 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6558 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6560 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6562 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6564 * linux-aarch64-ipa.c: Add <elf.h> include.
6565 * linux-ppc-ipa.c: Add <elf.h> include.
6566 * linux-s390-ipa.c: Add <elf.h> include.
6568 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6570 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
6571 (get_raw_reg_ptr): Likewise.
6572 (get_trace_state_variable_value_ptr): Likewise.
6573 (set_trace_state_variable_value_ptr): Likewise.
6574 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
6577 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6578 Marcin Kościelnicki <koriakin@0x04.net>
6581 * linux-ppc-low.c (emit_insns): New function.
6582 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
6583 (ppc_emit_prologue): New function.
6584 (ppc_emit_epilogue): New function.
6585 (ppc_emit_add): New function.
6586 (ppc_emit_sub): New function.
6587 (ppc_emit_mul): New function.
6588 (ppc_emit_lsh): New function.
6589 (ppc_emit_rsh_signed): New function.
6590 (ppc_emit_rsh_unsigned): New function.
6591 (ppc_emit_ext): New function.
6592 (ppc_emit_zero_ext): New function.
6593 (ppc_emit_log_not): New function.
6594 (ppc_emit_bit_and): New function.
6595 (ppc_emit_bit_or): New function.
6596 (ppc_emit_bit_xor): New function.
6597 (ppc_emit_bit_not): New function.
6598 (ppc_emit_equal): New function.
6599 (ppc_emit_less_signed): New function.
6600 (ppc_emit_less_unsigned): New function.
6601 (ppc_emit_ref): New function.
6602 (ppc_emit_const): New function.
6603 (ppc_emit_reg): New function.
6604 (ppc_emit_pop): New function.
6605 (ppc_emit_stack_flush): New function.
6606 (ppc_emit_swap): New function.
6607 (ppc_emit_stack_adjust): New function.
6608 (ppc_emit_call): New function.
6609 (ppc_emit_int_call_1): New function.
6610 (ppc_emit_void_call_2): New function.
6611 (ppc_emit_if_goto): New function.
6612 (ppc_emit_goto): New function.
6613 (ppc_emit_eq_goto): New function.
6614 (ppc_emit_ne_goto): New function.
6615 (ppc_emit_lt_goto): New function.
6616 (ppc_emit_le_goto): New function.
6617 (ppc_emit_gt_goto): New function.
6618 (ppc_emit_ge_goto): New function.
6619 (ppc_write_goto_address): New function.
6620 (ppc_emit_ops_impl): New static variable.
6621 (ppc64v1_emit_prologue): New function.
6622 (ppc64v2_emit_prologue): New function.
6623 (ppc64_emit_epilogue): New function.
6624 (ppc64_emit_add): New function.
6625 (ppc64_emit_sub): New function.
6626 (ppc64_emit_mul): New function.
6627 (ppc64_emit_lsh): New function.
6628 (ppc64_emit_rsh_signed): New function.
6629 (ppc64_emit_rsh_unsigned): New function.
6630 (ppc64_emit_ext): New function.
6631 (ppc64_emit_zero_ext): New function.
6632 (ppc64_emit_log_not): New function.
6633 (ppc64_emit_bit_and): New function.
6634 (ppc64_emit_bit_or): New function.
6635 (ppc64_emit_bit_xor): New function.
6636 (ppc64_emit_bit_not): New function.
6637 (ppc64_emit_equal): New function.
6638 (ppc64_emit_less_signed): New function.
6639 (ppc64_emit_less_unsigned): New function.
6640 (ppc64_emit_ref): New function.
6641 (ppc64_emit_const): New function.
6642 (ppc64v1_emit_reg): New function.
6643 (ppc64v2_emit_reg): New function.
6644 (ppc64_emit_pop): New function.
6645 (ppc64_emit_stack_flush): New function.
6646 (ppc64_emit_swap): New function.
6647 (ppc64v1_emit_call): New function.
6648 (ppc64v2_emit_call): New function.
6649 (ppc64v1_emit_int_call_1): New function.
6650 (ppc64v2_emit_int_call_1): New function.
6651 (ppc64v1_emit_void_call_2): New function.
6652 (ppc64v2_emit_void_call_2): New function.
6653 (ppc64_emit_if_goto): New function.
6654 (ppc64_emit_eq_goto): New function.
6655 (ppc64_emit_ne_goto): New function.
6656 (ppc64_emit_lt_goto): New function.
6657 (ppc64_emit_le_goto): New function.
6658 (ppc64_emit_gt_goto): New function.
6659 (ppc64_emit_ge_goto): New function.
6660 (ppc64v1_emit_ops_impl): New static variable.
6661 (ppc64v2_emit_ops_impl): New static variable.
6662 (ppc_emit_ops): New function.
6663 (linux_low_target): Wire in ppc_emit_ops.
6665 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6666 Marcin Kościelnicki <koriakin@0x04.net>
6669 * Makefile.in: Add powerpc-*-ipa.o
6670 * configure.srv: Add ipa_obj for powerpc*-linux.
6671 * linux-ppc-ipa.c: New file.
6672 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6674 (PPC_FIELD): New macro.
6675 (PPC_SEXT): New macro.
6676 (PPC_OP6): New macro.
6677 (PPC_BO): New macro.
6678 (PPC_LI): New macro.
6679 (PPC_BD): New macro.
6680 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6681 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6682 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6683 (ppc_get_thread_area): New function.
6684 (is_elfv2_inferior): New function.
6685 (gen_ds_form): New function.
6686 (GEN_STD): New macro.
6687 (GEN_STDU): New macro.
6688 (GEN_LD): New macro.
6689 (GEN_LDU): New macro.
6690 (gen_d_form): New function.
6691 (GEN_ADDI): New macro.
6692 (GEN_ADDIS): New macro.
6693 (GEN_LI): New macro.
6694 (GEN_LIS): New macro.
6695 (GEN_ORI): New macro.
6696 (GEN_ORIS): New macro.
6697 (GEN_LWZ): New macro.
6698 (GEN_STW): New macro.
6699 (GEN_STWU): New macro.
6700 (gen_xfx_form): New function.
6701 (GEN_MFSPR): New macro.
6702 (GEN_MTSPR): New macro.
6703 (GEN_MFCR): New macro.
6704 (GEN_MTCR): New macro.
6705 (GEN_SYNC): New macro.
6706 (GEN_LWSYNC): New macro.
6707 (gen_x_form): New function.
6708 (GEN_OR): New macro.
6709 (GEN_MR): New macro.
6710 (GEN_LWARX): New macro.
6711 (GEN_STWCX): New macro.
6712 (GEN_CMPW): New macro.
6713 (gen_md_form): New function.
6714 (GEN_RLDICL): New macro.
6715 (GEN_RLDICR): New macro.
6716 (gen_i_form): New function.
6718 (GEN_BL): New macro.
6719 (gen_b_form): New function.
6720 (GEN_BNE): New macro.
6721 (GEN_LOAD): New macro.
6722 (GEN_STORE): New macro.
6723 (gen_limm): New function.
6724 (gen_atomic_xchg): New function.
6725 (gen_call): New function.
6726 (ppc_relocate_instruction): New function.
6727 (ppc_install_fast_tracepoint_jump_pad): New function.
6728 (ppc_get_min_fast_tracepoint_insn_len): New function.
6729 (ppc_get_ipa_tdesc_idx): New function.
6730 (the_low_target): Wire in the new functions.
6731 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6733 * linux-ppc-tdesc.h: New file.
6735 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6737 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6738 (alloc_jump_pad_buffer): New function.
6739 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6740 (alloc_jump_pad_buffer): New function.
6741 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6742 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6743 (alloc_jump_pad_buffer): New function.
6744 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6745 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6746 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6747 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6749 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6751 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6752 * linux-amd64-ipa.c: Likewise.
6753 * linux-i386-ipa.c: Likewise.
6754 * linux-s390-ipa.c: Likewise.
6755 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6756 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6757 set_trace_state_variable_value_ptr.
6758 (struct ipa_sym_addresses): Likewise.
6759 (symbol_list): Likewise.
6760 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6761 accessing gdb_collect directly.
6762 (gdb_collect_ptr_type): New typedef.
6763 (get_raw_reg_ptr_type): New typedef.
6764 (get_trace_state_variable_value_ptr_type): New typedef.
6765 (set_trace_state_variable_value_ptr_type): New typedef.
6766 (gdb_collect_ptr): New global.
6767 (get_raw_reg_ptr): New global.
6768 (get_trace_state_variable_value_ptr): New global.
6769 (set_trace_state_variable_value_ptr): New global.
6770 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6771 accessing get_raw_reg directly.
6772 (get_get_tsv_func_addr): Likewise for
6773 get_trace_state_variable_value_ptr.
6774 (get_set_tsv_func_addr): Likewise for
6775 set_trace_state_variable_value_ptr.
6776 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6778 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6780 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6782 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6784 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6786 (relocate_instruction): Remove own_buf.
6787 * server.c (own_buf): Make global.
6788 (handle_v_requests): Make global.
6789 * server.h (own_buf): New declaration.
6790 (handle_v_requests): New prototype.
6792 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6795 * linux-s390-low.c (add_insns): New function.
6796 (s390_emit_prologue): New function.
6797 (s390_emit_epilogue): New function.
6798 (s390_emit_add): New function.
6799 (s390_emit_sub): New function.
6800 (s390_emit_mul): New function.
6801 (s390_emit_lsh): New function.
6802 (s390_emit_rsh_signed): New function.
6803 (s390_emit_rsh_unsigned): New function.
6804 (s390_emit_ext): New function.
6805 (s390_emit_log_not): New function.
6806 (s390_emit_bit_and): New function.
6807 (s390_emit_bit_or): New function.
6808 (s390_emit_bit_xor): New function.
6809 (s390_emit_bit_not): New function.
6810 (s390_emit_equal): New function.
6811 (s390_emit_less_signed): New function.
6812 (s390_emit_less_unsigned): New function.
6813 (s390_emit_ref): New function.
6814 (s390_emit_if_goto): New function.
6815 (s390_emit_goto): New function.
6816 (s390_write_goto_address): New function.
6817 (s390_emit_litpool): New function.
6818 (s390_emit_const): New function.
6819 (s390_emit_call): New function.
6820 (s390_emit_reg): New function.
6821 (s390_emit_pop): New function.
6822 (s390_emit_stack_flush): New function.
6823 (s390_emit_zero_ext): New function.
6824 (s390_emit_swap): New function.
6825 (s390_emit_stack_adjust): New function.
6826 (s390_emit_set_r2): New function.
6827 (s390_emit_int_call_1): New function.
6828 (s390_emit_void_call_2): New function.
6829 (s390_emit_eq_goto): New function.
6830 (s390_emit_ne_goto): New function.
6831 (s390_emit_lt_goto): New function.
6832 (s390_emit_le_goto): New function.
6833 (s390_emit_gt_goto): New function.
6834 (s390_emit_ge_goto): New function.
6835 (s390x_emit_prologue): New function.
6836 (s390x_emit_epilogue): New function.
6837 (s390x_emit_add): New function.
6838 (s390x_emit_sub): New function.
6839 (s390x_emit_mul): New function.
6840 (s390x_emit_lsh): New function.
6841 (s390x_emit_rsh_signed): New function.
6842 (s390x_emit_rsh_unsigned): New function.
6843 (s390x_emit_ext): New function.
6844 (s390x_emit_log_not): New function.
6845 (s390x_emit_bit_and): New function.
6846 (s390x_emit_bit_or): New function.
6847 (s390x_emit_bit_xor): New function.
6848 (s390x_emit_bit_not): New function.
6849 (s390x_emit_equal): New function.
6850 (s390x_emit_less_signed): New function.
6851 (s390x_emit_less_unsigned): New function.
6852 (s390x_emit_ref): New function.
6853 (s390x_emit_if_goto): New function.
6854 (s390x_emit_const): New function.
6855 (s390x_emit_call): New function.
6856 (s390x_emit_reg): New function.
6857 (s390x_emit_pop): New function.
6858 (s390x_emit_stack_flush): New function.
6859 (s390x_emit_zero_ext): New function.
6860 (s390x_emit_swap): New function.
6861 (s390x_emit_stack_adjust): New function.
6862 (s390x_emit_int_call_1): New function.
6863 (s390x_emit_void_call_2): New function.
6864 (s390x_emit_eq_goto): New function.
6865 (s390x_emit_ne_goto): New function.
6866 (s390x_emit_lt_goto): New function.
6867 (s390x_emit_le_goto): New function.
6868 (s390x_emit_gt_goto): New function.
6869 (s390x_emit_ge_goto): New function.
6870 (s390_emit_ops): New function.
6871 (struct linux_target_ops): Fill in emit_ops hook.
6873 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6876 * Makefile.in: Add s390 IPA files.
6877 * configure.srv: Build IPA for s390.
6878 * linux-s390-ipa.c: New file.
6879 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6880 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6881 (tdesc_s390_linux32): Likewise.
6882 (init_registers_s390_linux32v1): Likewise.
6883 (tdesc_s390_linux32v1): Likewise.
6884 (init_registers_s390_linux32v2): Likewise.
6885 (tdesc_s390_linux32v2): Likewise.
6886 (init_registers_s390_linux64): Likewise.
6887 (tdesc_s390_linux64): Likewise.
6888 (init_registers_s390_linux64v1): Likewise.
6889 (tdesc_s390_linux64v1): Likewise.
6890 (init_registers_s390_linux64v2): Likewise.
6891 (tdesc_s390_linux64v2): Likewise.
6892 (init_registers_s390_te_linux64): Likewise.
6893 (tdesc_s390_te_linux64): Likewise.
6894 (init_registers_s390_vx_linux64): Likewise.
6895 (tdesc_s390_vx_linux64): Likewise.
6896 (init_registers_s390_tevx_linux64): Likewise.
6897 (tdesc_s390_tevx_linux64): Likewise.
6898 (init_registers_s390x_linux64): Likewise.
6899 (tdesc_s390x_linux64): Likewise.
6900 (init_registers_s390x_linux64v1): Likewise.
6901 (tdesc_s390x_linux64v1): Likewise.
6902 (init_registers_s390x_linux64v2): Likewise.
6903 (tdesc_s390x_linux64v2): Likewise.
6904 (init_registers_s390x_te_linux64): Likewise.
6905 (tdesc_s390x_te_linux64): Likewise.
6906 (init_registers_s390x_vx_linux64): Likewise.
6907 (tdesc_s390x_vx_linux64): Likewise.
6908 (init_registers_s390x_tevx_linux64): Likewise.
6909 (tdesc_s390x_tevx_linux64): Likewise.
6910 (have_hwcap_s390_vx): New static variable.
6911 (s390_arch_setup): Fill have_hwcap_s390_vx.
6912 (s390_get_thread_area): New function.
6913 (s390_ft_entry_gpr_esa): New const.
6914 (s390_ft_entry_gpr_zarch): New const.
6915 (s390_ft_entry_misc): New const.
6916 (s390_ft_entry_fr): New const.
6917 (s390_ft_entry_vr): New const.
6918 (s390_ft_main_31): New const.
6919 (s390_ft_main_64): New const.
6920 (s390_ft_exit_fr): New const.
6921 (s390_ft_exit_vr): New const.
6922 (s390_ft_exit_misc): New const.
6923 (s390_ft_exit_gpr_esa): New const.
6924 (s390_ft_exit_gpr_zarch): New const.
6925 (append_insns): New function.
6926 (s390_relocate_instruction): New function.
6927 (s390_install_fast_tracepoint_jump_pad): New function.
6928 (s390_get_min_fast_tracepoint_insn_len): New function.
6929 (s390_get_ipa_tdesc_idx): New function.
6930 (struct linux_target_ops): Wire in the above functions.
6931 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6932 * linux-s390-tdesc.h: New file.
6934 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6936 * linux-s390-low.c (s390_supports_tracepoints): New function.
6937 (struct linux_target_ops): Fill supports_tracepoints hook.
6939 2016-03-18 Yao Qi <yao.qi@linaro.org>
6941 * linux-low.c (lwp_signal_can_be_delivered): New function.
6942 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6944 2016-03-18 Yao Qi <yao.qi@linaro.org>
6946 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6947 0 if signal is enqueued. Remove 'signal' from one debugging
6948 message. Move one debugging message to some lines below.
6949 Remove code setting 'signal' to 0.
6951 2016-03-18 Yao Qi <yao.qi@linaro.org>
6953 * linux-low.c (linux_low_filter_event): Remove redundant
6954 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6956 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6958 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6959 (struct linux_target_ops): Wire in the above.
6961 2016-03-03 Yao Qi <yao.qi@linaro.org>
6963 * linux-low.c: Update comments to start_step_over.
6965 2016-03-03 Yao Qi <yao.qi@linaro.org>
6968 * linux-low.c (handle_extended_wait): Set child suspended
6969 if event_lwp->bp_reinsert isn't zero.
6971 2016-03-02 Yao Qi <yao.qi@linaro.org>
6973 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6974 enqueue_pending_signal.
6976 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6978 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6981 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6983 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6984 (s390_regmap_3264) [!__s390x__]: New global.
6985 (s390_collect_ptrace_register): Skip map entries containing -1.
6986 (s390_supply_ptrace_register): Ditto.
6987 (s390_fill_gprs_high): New function.
6988 (s390_store_gprs_high): New function.
6989 (s390_regsets): Add NT_S390_HIGH_GPRS.
6990 (s390_get_hwcap): Enable on 31-bit.
6991 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6992 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6993 Detect NT_S390_HIGH_GPRS.
6994 (s390_usrregs_info_3264): Enable on 31-bit.
6995 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6996 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6998 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7001 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
7002 * configure.srv: Ditto.
7003 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
7004 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
7005 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
7006 (init_registers_amd64_linux): Remove prototype.
7007 (tdesc_amd64_linux): Remove declaration.
7008 (get_ipa_tdesc): New function.
7009 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7010 initialize remaining tdescs.
7011 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
7012 (init_registers_i386_linux): Remove prototype.
7013 (tdesc_i386_linux): Remove declaration.
7014 (get_ipa_tdesc): New function.
7015 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7016 initialize remaining tdescs.
7017 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
7018 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
7019 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
7020 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
7021 (x86_get_ipa_tdesc_idx): New function.
7022 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
7023 * linux-x86-tdesc.h: New file.
7024 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
7025 (target_get_ipa_tdesc_idx): New macro.
7026 * tracepoint.c (ipa_tdesc_idx): New macro.
7027 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
7028 (symbol_list): Add ipa_tdesc_idx.
7029 (cmd_qtstart): Write ipa_tdesc_idx in the target.
7030 (ipa_tdesc): Remove.
7031 (ipa_tdesc_idx): New variable.
7032 (get_context_regcache): Use get_ipa_tdesc.
7033 (gdb_collect): Ditto.
7035 * tracepoint.h (get_ipa_tdesc): New prototype.
7036 (ipa_tdesc): Remove.
7038 2016-02-24 Pedro Alves <palves@redhat.com>
7040 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
7041 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
7042 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
7043 Factor out common code between the USE_SIGTRAP_SIGINFO and
7044 !USE_SIGTRAP_SIGINFO blocks.
7045 (linux_low_filter_event): Call save_stop_reason instead of
7046 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
7048 (linux_wait_1): Update comments.
7050 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
7052 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
7053 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
7054 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
7055 ppc_insert_point, ppc_remove_point.
7057 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
7059 * linux-s390-low.c (s390_supports_z_point_type): New function.
7060 (struct linux_target_ops): Wire s390_supports_z_point_type in.
7062 2016-02-16 Yao Qi <yao.qi@linaro.org>
7064 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7065 PC. Get pc from regcache_read_pc.
7067 2016-02-12 Yao Qi <yao.qi@linaro.org>
7069 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7070 or linux_get_pc_32bit.
7071 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7073 2016-02-12 Yao Qi <yao.qi@linaro.org>
7075 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7076 arm_linux_get_next_pcs_fixup.
7078 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7080 * tracepoint.c (x_tracepoint_action_download): Change
7081 write_inferior_data_ptr to write_inferior_data_pointer.
7082 (cmd_qtstart): Likewise.
7083 (write_inferior_data_ptr): Remove.
7084 (download_agent_expr): Change write_inferior_data_ptr to
7085 write_inferior_data_pointer.
7086 (download_tracepoint_1): Likewise.
7087 (download_tracepoint): Likewise.
7088 (download_trace_state_variables): Likewise.
7090 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
7091 Marcin Kościelnicki <koriakin@0x04.net>
7093 * tracepoint.c (struct tracepoint_action_ops): Remove.
7094 (struct tracepoint_action): Remove ops.
7095 (m_tracepoint_action_download, r_tracepoint_action_download)
7096 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7097 size and offset accordingly.
7098 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7099 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7100 (tracepoint_action_send, tracepoint_action_download): New functions.
7101 Helpers for trace action handlers.
7102 (add_tracepoint_action): Remove setup actions ops.
7103 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7105 2016-02-10 Yao Qi <yao.qi@linaro.org>
7107 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7109 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7111 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7113 * configure: Regenerate.
7115 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7117 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7118 void * to gdb_byte *.
7119 * linux-low.c (siginfo_fixup): Likewise.
7120 (linux_xfer_siginfo): Likewise.
7121 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7123 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7125 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7127 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7129 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7131 * linux-x86-low.c [__x86_64__]: Include
7132 "nat/amd64-linux-siginfo.h".
7133 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7134 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7135 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7136 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7137 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7138 (cpt_si_fd, si_timerid, si_overrun): Move from
7139 nat/amd64-linux-siginfo.c.
7140 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7142 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7144 * server.c (skip_to_semicolon): Remove.
7145 (process_point_options): Use strchrnul instead of
7148 2016-01-26 Yao Qi <yao.qi@linaro.org>
7150 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7151 * linux-low.c (install_software_single_step_breakpoints): Don't
7152 call regcache_read_pc.
7153 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7156 2016-01-26 Yao Qi <yao.qi@linaro.org>
7158 * linux-low.c (install_software_single_step_breakpoints): Call
7159 regcache_read_pc instead of get_pc.
7161 2016-01-26 Yao Qi <yao.qi@linaro.org>
7163 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7164 (unblock_async_io): Rename to ...
7165 (block_unblock_async_io): ... it. New function.
7166 (enable_async_io): Don't install SIGIO handler. Unblock it
7168 (disable_async_io): Don't ignore SIGIO. Block it instead.
7169 (initialize_async_io): Install SIGIO handler. Don't call
7172 2016-01-26 Yao Qi <yao.qi@linaro.org>
7174 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7175 first character is '\003', call *the_target->request_interrupt.
7177 2016-01-25 Yao Qi <yao.qi@linaro.org>
7179 * remote-utils.c (new_thread_notify): Remove.
7180 (dead_thread_notify): Likewise.
7181 * remote-utils.h (new_thread_notify): Remove declaration.
7182 (dead_thread_notify): Likewise.
7184 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7186 * gdb.trace/pending.exp: Fix expected message on continue.
7188 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7190 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7191 it works properly on big-endian machines where sizeof (CORE_ADDR)
7194 2016-01-21 Pedro Alves <palves@redhat.com>
7196 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7197 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7198 * configure: Regenerate.
7200 2016-01-21 Yao Qi <yao.qi@linaro.org>
7202 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7203 is_thumb and set it according to CPSR saved on the stack.
7204 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7205 arm_sigreturn_next_pc.
7207 2016-01-18 Yao Qi <yao.qi@linaro.org>
7209 * linux-low.c (linux_set_pc_64bit): New function.
7210 (linux_get_pc_64bit): New function.
7211 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7213 * linux-sparc-low.c (debug_threads): Remove declaration.
7214 (sparc_get_pc): Remove.
7215 (the_low_target): Use linux_get_pc_64bit instead of
7217 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7218 (the_low_target): Use linux_get_pc_64bit and
7221 2016-01-18 Yao Qi <yao.qi@linaro.org>
7223 * linux-arm-low.c (debug_threads): Remove declaration.
7224 (arm_get_pc, arm_set_pc): Remove.
7225 (the_low_target): Use linux_get_pc_32bit and
7227 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7228 (the_low_target): Use linux_get_pc_32bit and
7230 * linux-cris-low.c (debug_threads): Remove declaration.
7231 (cris_get_pc, cris_set_pc,): Remove.
7232 (the_low_target): Use linux_get_pc_32bit and
7234 * linux-crisv32-low.c (debug_threads): Remove declaration.
7235 (cris_get_pc, cris_set_pc): Remove.
7236 (the_low_target): Use linux_get_pc_32bit and
7238 * linux-low.c: Include inttypes.h.
7239 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7240 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7241 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7242 (the_low_target): Use linux_get_pc_32bit and
7244 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7245 (the_low_target): Use linux_get_pc_32bit and
7247 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7248 (the_low_target): Use linux_get_pc_32bit and
7250 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7251 (the_low_target): Use linux_get_pc_32bit and
7253 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7254 (the_low_target): Use linux_get_pc_32bit and
7257 2016-01-18 Gary Benson <gbenson@redhat.com>
7259 * configure.ac (AC_FUNC_FORK): New check.
7260 * config.in: Regenerate.
7261 * configure: Likewise.
7263 2016-01-14 Yao Qi <yao.qi@linaro.org>
7265 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7266 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7267 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7268 arm_get_next_pcs_ctor.
7270 2016-01-12 Josh Stone <jistone@redhat.com>
7271 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7273 * inferiors.h: Include "gdb_vecs.h".
7274 (struct process_info): Add syscalls_to_catch.
7275 * inferiors.c (remove_process): Free syscalls_to_catch.
7276 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7277 syscall_return stops.
7278 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7279 * server.c (handle_general_set): Handle QCatchSyscalls.
7280 (handle_query): Report support for QCatchSyscalls.
7281 * target.h (struct target_ops): Add supports_catch_syscall.
7282 (target_supports_catch_syscall): New macro.
7283 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7284 (struct lwp_info): Add syscall_state.
7285 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7286 Maintain syscall_state and syscalls_to_catch across exec.
7287 (get_syscall_trapinfo): New function, proxy to the_low_target.
7288 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7289 (linux_low_filter_event): Toggle syscall_state entry/return for
7290 syscall traps, and set it ignored for all others.
7291 (gdb_catching_syscalls_p): New function.
7292 (gdb_catch_this_syscall_p): New function.
7293 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7294 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7295 (linux_supports_catch_syscall): New function.
7296 (linux_target_ops): Install it.
7297 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7298 (the_low_target): Install it.
7300 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7302 * acinclude.m4: Include new ../warning.m4 file.
7303 * configure: Regenerated.
7304 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7306 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7308 * ax.c (is_goto_target): Mark static.
7309 * linux-low.c (register_addr): Likewise.
7310 (linux_fetch_registers, linux_store_registers): Likewise.
7311 * mem-break.c (any_persistent_commands): Fix old prototype.
7312 (add_commands_to_breakpoint): Mark static.
7313 * regcache.c (find_register_by_name): Delete unused func.
7314 * remote-utils.c (hex_or_minus_one): Mark static.
7315 * server.c (monitor_show_help): Mark static.
7316 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7317 handle_v_requests): Likewise.
7319 2016-01-12 Pedro Alves <palves@redhat.com>
7321 Remove use of the registered trademark symbol throughout.
7323 2016-01-08 Yao Qi <yao.qi@linaro.org>
7325 * remote-utils.c (getpkt): If c is '\003', call target hook
7328 2016-01-06 Yao Qi <yao.qi@linaro.org>
7330 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7331 linux-aarch32-low.c.
7332 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7333 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7334 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7335 (thumb2_breakpoint): Declare.
7336 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7337 linux-aarch32-low.h.
7338 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7339 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7340 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7342 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7344 * gdbreplay.c (gdbreplay_version): Change copyright year in
7346 * server.c (gdbserver_version): Likewise.
7348 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7350 * server.c (crc32_table): Delete.
7351 (crc32): Use libiberty's xcrc32 function.
7353 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7355 * lynx-low.c (lynx_delete_thread_callback): New function.
7356 (lynx_mourn): Properly delete our process and all of its
7357 threads. Remove call to clear_inferiors.
7359 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7361 * target.c (thread_search_callback): Add check that
7362 the thread_stopped target callback is not NULL before
7365 2015-12-21 Yao Qi <yao.qi@linaro.org>
7367 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7370 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7372 * server.c (handle_query): Call target_supports_software_single_step.
7374 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7376 * linux-low.c (single_step): New function.
7377 (linux_resume_one_lwp_throw): Call single_step.
7378 (start_step_over): Likewise.
7380 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7382 * Makefile.in (SFILES): Append arch/arm-linux.c,
7383 arch/arm-get-next-pcs.c.
7384 (arm-linux.o): New rule.
7385 (arm-get-next-pcs.o): New rule.
7386 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7388 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7389 to linux-aarch32-low.c.
7390 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7391 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7392 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7393 (thumb2_breakpoint_len): Likewise.
7394 (arm_is_thumb_mode): Make non-static.
7395 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7396 from linux-aarch32-low.c.
7397 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7398 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7399 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7400 (thumb2_breakpoint_len): Likewise.
7401 (arm_is_thumb_mode): New declaration.
7402 * linux-arm-low.c: Include arch/arm-linux.h
7403 aarch/arm-get-next-pcs.h, sys/syscall.h.
7404 (get_next_pcs_ops): New struct.
7405 (get_next_pcs_addr_bits_remove): New function.
7406 (get_next_pcs_is_thumb): New function.
7407 (get_next_pcs_read_memory_unsigned_integer): Likewise.
7408 (arm_sigreturn_next_pc): Likewise.
7409 (get_next_pcs_syscall_next_pc): Likewise.
7410 (arm_gdbserver_get_next_pcs): Likewise.
7411 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
7413 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7414 * server.h: Include gdb_vecs.h.
7416 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7418 * Makefile.in (SFILES): Append common/common-regcache.c.
7419 (OBS): Append common-regcache.o.
7420 (common-regcache.o): New rule.
7421 * regcache.c (init_register_cache): Initialize cache to
7423 (regcache_raw_read_unsigned): New function.
7424 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7425 register_status enum.
7427 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7429 * linux-aarch64-low.c (the_low_targets): Rename
7430 breakpoint_reinsert_addr to get_next_pcs.
7431 * linux-arm-low.c (the_low_targets): Likewise.
7432 * linux-bfin-low.c (the_low_targets): Likewise.
7433 * linux-cris-low.c (the_low_targets): Likewise.
7434 * linux-crisv32-low.c (the_low_targets): Likewise.
7435 * linux-low.c (can_software_single_step): Likewise.
7436 (install_software_single_step_breakpoints): New function.
7437 (start_step_over): Use install_software_single_step_breakpoints.
7438 * linux-low.h: New CORE_ADDR vector.
7439 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
7441 * linux-mips-low.c (the_low_targets): Likewise.
7442 * linux-nios2-low.c (the_low_targets): Likewise.
7443 * linux-sparc-low.c (the_low_targets): Likewise.
7445 2015-12-17 Pedro Alves <palves@redhat.com>
7447 * linux-low.c (linux_kill_one_lwp): Remove references to
7449 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7451 (linux_init_signals): Delete.
7452 (initialize_low): Adjust.
7453 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7455 2015-12-16 Pedro Alves <palves@redhat.com>
7457 * configure.ac (compiler warning flags): When testing a
7458 -Wno-foo option, check whether -Wfoo works instead.
7459 * configure: Regenerate.
7461 2015-12-11 Don Breazeal <donb@codesourcery.com>
7463 * server.c (process_serial_event): Don't exit from gdbserver
7464 in remote mode if there are still active inferiors.
7466 2015-12-11 Yao Qi <yao.qi@linaro.org>
7468 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
7469 arm_breakpoint_at if the process is 32-bit.
7471 2015-12-11 Yao Qi <yao.qi@linaro.org>
7473 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
7476 2015-12-07 Yao Qi <yao.qi@linaro.org>
7478 * configure.srv: Append arm.o to srv_tgtobj for
7479 aarch64*-*-linux* target.
7480 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
7481 from linux-arm-low.c.
7482 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7483 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7484 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7485 (thumb2_breakpoint_len): Likewise.
7486 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
7487 (arm_breakpoint_kinds): Likewise.
7488 (arm_breakpoint_kind_from_pc): Likewise.
7489 (arm_sw_breakpoint_from_kind): Likewise.
7490 (arm_breakpoint_kind_from_current_state): Likewise.
7491 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
7492 (arm_sw_breakpoint_from_kind): Declare.
7493 (arm_breakpoint_kind_from_current_state): Declare.
7494 (arm_breakpoint_at): Declare.
7495 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
7496 arm_sw_breakpoint_from_kind if process is 32-bit.
7497 (aarch64_breakpoint_kind_from_pc): New function.
7498 (aarch64_breakpoint_kind_from_current_state): New function.
7499 (the_low_target): Initialize fields breakpoint_kind_from_pc
7500 and breakpoint_kind_from_current_state.
7501 * linux-arm-low.c (arm_breakpoint_kinds): Move to
7502 linux-aarch32-low.c.
7503 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
7504 (arm_breakpoint, arm_breakpoint_len): Likewise.
7505 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
7506 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7507 (arm_is_thumb_mode): Likewise.
7508 (arm_breakpoint_at): Likewise.
7509 (arm_breakpoint_kind_from_pc): Likewise.
7510 (arm_sw_breakpoint_from_kind): Likewise.
7511 (arm_breakpoint_kind_from_current_state): Likewise.
7514 2015-08-04 Yao Qi <yao.qi@linaro.org>
7516 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7517 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7518 * server.c (extended_protocol): Remove "static".
7519 * server.h (extended_protocol): Declare it.
7521 2015-12-04 Josh Stone <jistone@redhat.com>
7523 * target.h (struct target_ops) <arch_setup>: Rename to ...
7524 (struct target_ops) <post_create_inferior>: ... this.
7525 (target_arch_setup): Rename to ...
7526 (target_post_create_inferior): ... this, calling post_create_inferior.
7527 * server.c (start_inferior): Update target_arch_setup calls to
7528 target_post_create_inferior.
7529 * linux-low.c (linux_low_ptrace_options): Forward declare.
7530 (linux_arch_setup): Update its comment for general use.
7531 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
7532 (struct linux_target_ops): Use linux_post_create_inferior.
7533 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
7534 to post_create_inferior.
7535 * nto-low.c (struct nto_target_ops): Likewise.
7536 * spu-low.c (struct spu_target_ops): Likewise.
7537 * win32-low.c (struct win32_target_ops): Likewise.
7539 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
7541 * linux-arm-low.c: Remove duplicate arch/arm.h include.
7543 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7545 * linux-arm-low.c (arm_reinsert_addr): Remove function.
7546 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
7547 * linux-cris-low.c (cris_reinsert_addr> Remove function.
7548 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7549 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
7550 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7551 * linux-mips-low.c (mips_reinsert_addr): Remove function.
7552 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7553 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
7554 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7555 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
7556 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7558 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7560 * linux-low.c (linux_look_up_symbols): Don't call
7561 linux_supports_traceclone.
7562 * linux-low.h (thread_db_init): Remove use_events argument.
7563 * thread-db.c (thread_db_use_event): Remove global variable.
7564 (struct thread_db) <td_thr_event_enable_p>: Remove field.
7565 (struct thread_db) <td_create_bp>: Remove field.
7566 (thread_db_create_event): Remove function.
7567 (thread_db_enable_reporting): Likewise.
7568 (find_one_thread): Don't check for thread_db_use_events.
7569 (attach_thread): Likewise.
7570 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
7571 (try_thread_db_load_1): Don't check for thread_db_use_events.
7572 (thread_db_init): Remove use_events argument and thread events
7574 (remove_thread_event_breakpoints): Remove function.
7575 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7577 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7579 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7581 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7582 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
7583 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7584 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
7585 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
7587 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7589 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7590 * linux-low.c (can_hardware_single_step): Use
7591 supports_hardware_single_step.
7592 (can_software_single_step): New function.
7593 (start_step_over): Call can_software_single_step.
7594 (linux_supports_hardware_single_step): New function.
7595 (struct target_ops) <supports_software_single_step>: Initialize.
7596 * linux-low.h (struct linux_target_ops)
7597 <supports_hardware_single_step>: Initialize.
7598 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
7599 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7600 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
7601 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
7602 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
7603 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7604 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
7605 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7606 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
7607 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
7609 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7610 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7612 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7613 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7614 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7616 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7617 * target.h (struct target_ops): <supports_software_single_step>:
7619 (target_supports_software_single_step): New macro.
7621 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7623 * linux-low.c (linux_wait_1): Fix pc advance condition.
7624 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
7625 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
7627 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7629 * linux-arm-low.c (arm_is_thumb_mode): New function.
7630 (arm_breakpoint_at): Use arm_is_thumb_mode.
7631 (arm_breakpoint_kind_from_current_state): New function.
7632 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7634 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7635 (linux_breakpoint_kind_from_current_state): New function.
7636 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7637 * linux-low.h (struct linux_target_ops)
7638 <breakpoint_kind_from_current_state>: New field.
7639 * target.h (struct target_ops): Likewise.
7640 (target_breakpoint_kind_from_current_state): New macro.
7642 2015-11-30 Pedro Alves <palves@redhat.com>
7644 * linux-low.c (linux_resume): Wake up the event loop before
7647 2015-11-30 Pedro Alves <palves@redhat.com>
7649 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7651 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7653 * target.c (struct thread_search): New structure.
7654 (thread_search_callback): New function.
7655 (prev_general_thread): New global.
7656 (prepare_to_access_memory, done_accessing_memory): New functions.
7657 * target.h (prepare_to_access_memory, done_accessing_memory):
7658 Replace macros with function declarations.
7660 2015-11-30 Pedro Alves <palves@redhat.com>
7663 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7664 report TARGET_WAITKIND_NO_RESUMED.
7665 * remote-utils.c (prepare_resume_reply): Handle
7666 TARGET_WAITKIND_NO_RESUMED.
7667 * server.c (report_no_resumed): New global.
7668 (handle_query) <qSupported>: Handle "no-resumed+". Report
7669 "no-resumed+" support.
7670 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7671 return error if the client doesn't support no-resumed events.
7672 (push_stop_notification): New function.
7673 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7674 events if the client supports them.
7676 2015-11-30 Pedro Alves <palves@redhat.com>
7678 * linux-low.c (thread_still_has_status_pending_p): Don't check
7680 (lwp_resumed): New function.
7681 (status_pending_p_callback): Return early if the LWP is not
7682 supposed to be resumed.
7684 2015-11-30 Pedro Alves <palves@redhat.com>
7686 * linux-low.c (handle_extended_wait): Assert that the LWP's
7687 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7688 thread create events, leave the new child's status pending.
7689 (linux_low_filter_event): If GDB wants to hear about thread exit
7690 events, leave the LWP marked dead and don't delete it.
7691 (linux_wait_for_event_filtered): Don't check for thread exit.
7692 (filter_exit_event): New function.
7693 (linux_wait_1): Use it, when returning an exit event.
7694 (linux_resume_one_lwp_throw): Assert that the LWP's
7695 waitstatus is TARGET_WAITKIND_IGNORE.
7696 * remote-utils.c (prepare_resume_reply): Handle
7697 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7698 * server.c (report_thread_events): New global.
7699 (handle_general_set): Handle QThreadEvents.
7700 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7701 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7702 TARGET_WAITKIND_THREAD_EXITED.
7703 * server.h (report_thread_events): Declare.
7705 2015-11-30 Pedro Alves <palves@redhat.com>
7707 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7708 the thread's last_resume_kind was resume_stop.
7710 2015-11-30 Pedro Alves <palves@redhat.com>
7712 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7715 2015-11-30 Pedro Alves <palves@redhat.com>
7717 * server.c (handle_v_requests): Handle vCtrlC.
7719 2015-11-30 Pedro Alves <palves@redhat.com>
7721 * gdbthread.h (find_any_thread_of_pid): Declare.
7722 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7724 * server.c (handle_query): If current_thread is NULL, look for
7725 another thread of the selected process.
7727 2015-11-26 Daniel Colascione <dancol@dancol.org>
7728 Simon Marchi <simon.marchi@ericsson.com>
7730 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7731 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7733 * target.h (struct target_ops) <thread_name>: New field.
7734 (target_thread_name): New macro.
7736 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7738 * regcache.h (regcache_invalidate_pid): Add declaration.
7739 * regcache.c (regcache_invalidate_pid): New function, extracted
7740 from regcache_invalidate.
7741 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7742 Add trivial documentation comment.
7743 * lynx-low.c: Use regcache_invalidate_pid instead of
7744 regcache_invalidate.
7746 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7748 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7749 and Elf64_auxv_t if the target is Android.
7751 2015-11-22 Doug Evans <xdje42@gmail.com>
7753 * target.h: #include <sys/types.h>.
7755 2015-11-19 Pedro Alves <palves@redhat.com>
7757 * linux-low.c (linux_process_qsupported): Change prototype.
7759 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7761 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7762 and adjust to loop over all features.
7763 * server.c (handle_query) <qSupported>: Adjust to call
7764 target_process_qsupported once, passing it a vector of unprocessed
7766 * target.h (struct target_ops) <process_qsupported>: Change
7768 (target_process_qsupported): Adjust.
7770 2015-11-19 Pedro Alves <palves@redhat.com>
7772 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7774 * configure: Regenerate.
7776 2015-11-19 Pedro Alves <palves@redhat.com>
7778 * configure: Regenerate.
7780 2015-11-19 Yao Qi <yao.qi@linaro.org>
7782 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7785 2015-11-19 Yao Qi <yao.qi@linaro.org>
7787 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7788 (struct aarch64_operand): Move enum out.
7790 2015-11-19 Yao Qi <yao.qi@linaro.org>
7792 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7793 struct user_fpsimd_state *.
7794 (aarch64_store_fpregset): Likewise.
7796 2015-11-19 Yao Qi <yao.qi@linaro.org>
7798 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7799 struct user_pt_regs *.
7800 (aarch64_store_gregset): Likewise.
7802 2015-11-18 Pedro Alves <palves@redhat.com>
7804 * Makefile.in (all_object_files): Add $IPA_OBJS.
7806 2015-11-17 Pedro Alves <palves@redhat.com>
7808 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7809 GDB_SIGNAL_0 and gdb_signal_to_string.
7811 2015-11-17 Pedro Alves <palves@redhat.com>
7813 * win32-low.c (handle_output_debug_string): Remove parameter.
7814 (win32_kill): Remove our_status local and adjust call to
7815 handle_output_debug_string.
7816 (get_child_debug_event): Adjust call to
7817 handle_output_debug_string.
7819 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7821 * linux-mips-low.c (mips_fill_gregset): Add cast.
7822 (mips_store_gregset): Likewise.
7823 (mips_fill_fpregset): Likewise.
7824 (mips_store_fpregset): Likewise.
7826 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7828 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7831 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7833 * linux-mips-low.c (mips_linux_new_thread): Change type of
7834 watch_type to enum target_hw_bp_type.
7836 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7838 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7839 Change return type to arm_hwbp_type.
7841 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7843 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7844 (arm_store_gregset): Likewise.
7845 * linux-arm-low.c (arm_get_hwcap): Likewise.
7846 (arm_read_description): Likewise.
7848 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7850 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7852 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7854 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7855 (ppc_fill_vsxregset): Likewise.
7856 (ppc_store_vsxregset): Likewise.
7857 (ppc_fill_vrregset): Likewise.
7858 (ppc_store_vrregset): Likewise.
7859 (ppc_fill_evrregset): Likewise.
7860 (ppc_store_evrregset): Likewise.
7862 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7864 * linux-ppc-low.c (ppc_usrregs_info): Remove
7865 forward-declaration.
7866 (ppc_arch_setup): Move lower in file.
7868 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7870 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7871 (ps_pdwrite): Likewise.
7873 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7875 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7876 to after assert checks.
7878 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7880 * proc-service.c (ps_pdread): Add/adjust casts.
7881 (ps_pdwrite): Add/adjust casts.
7883 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7885 * server.c (handle_search_memory_1): Cast return value of
7888 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7890 * server.c (write_qxfer_response): Change type of data to
7893 2015-10-29 Pedro Alves <palves@redhat.com>
7895 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7897 2015-10-29 Pedro Alves <palves@redhat.com>
7899 * tracepoint.c (clear_installed_tracepoints): Add casts.
7901 2015-10-29 Pedro Alves <palves@redhat.com>
7903 * server.c (handle_v_cont, process_serial_event): Add enum
7904 gdb_signal casts to signal parsing code.
7906 2015-10-29 Pedro Alves <palves@redhat.com>
7908 * linux-low.h (NULL_REGSET): Define.
7909 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7910 * linux-arm-low.c (arm_regsets): Likewise.
7911 * linux-crisv32-low.c (cris_regsets): Likewise.
7912 * linux-m68k-low.c (m68k_regsets): Likewise.
7913 * linux-mips-low.c (mips_regsets): Likewise.
7914 * linux-nios2-low.c (nios2_regsets): Likewise.
7915 * linux-ppc-low.c (ppc_regsets): Likewise.
7916 * linux-s390-low.c (s390_regsets): Likewise.
7917 * linux-sh-low.c (sh_regsets): Likewise.
7918 * linux-sparc-low.c (sparc_regsets): Likewise.
7919 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7920 * linux-tile-low.c (tile_regsets): Likewise.
7921 * linux-x86-low.c (x86_regsets): Likewise.
7922 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7924 2015-10-29 Pedro Alves <palves@redhat.com>
7926 * linux-low.h (NULL_REGSET): Define.
7927 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7928 * linux-arm-low.c (arm_regsets): Likewise.
7929 * linux-crisv32-low.c (cris_regsets): Likewise.
7930 * linux-m68k-low.c (m68k_regsets): Likewise.
7931 * linux-mips-low.c (mips_regsets): Likewise.
7932 * linux-nios2-low.c (nios2_regsets): Likewise.
7933 * linux-ppc-low.c (ppc_regsets): Likewise.
7934 * linux-s390-low.c (s390_regsets): Likewise.
7935 * linux-sh-low.c (sh_regsets): Likewise.
7936 * linux-sparc-low.c (sparc_regsets): Likewise.
7937 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7938 * linux-tile-low.c (tile_regsets): Likewise.
7939 * linux-x86-low.c (x86_regsets): Likewise.
7940 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7942 2015-10-26 Doug Evans <dje@google.com>
7944 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7946 2015-10-26 Doug Evans <dje@google.com>
7948 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7950 2015-10-26 Doug Evans <dje@google.com>
7952 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7954 (attach_thread, find_new_threads_callback): Ditto.
7956 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7958 * mem-break.h (set_breakpoint_data): Remove.
7960 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7962 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7963 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7964 (initialize_low): Remove set_breakpoint_data call.
7965 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7966 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7967 (initialize_low): Remove set_breakpoint_data call.
7968 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7969 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7970 (initialize_low): Remove set_breakpoint_data call.
7972 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7974 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7975 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7976 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7977 * target.h (target_breakpoint_kind_from_pc): New macro.
7979 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7981 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7982 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7983 the default breakpoint kind.
7985 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7987 * linux-arm-low.c (arm_supports_z_point_type): Add software
7990 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7992 * linux-arm-low.c: Refactor breakpoint definitions.
7993 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7994 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7996 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7998 * Makefile.in: Add arm.c/o.
7999 * configure.srv: Likewise.
8000 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
8001 (arm_breakpoint_kind_from_pc): New function.
8002 (arm_sw_breakpoint_from_kind): Return proper kind.
8003 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
8005 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8007 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
8009 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
8010 (struct raw_breakpoint) <size>: Remove.
8011 (struct raw_breakpoint) <kind>: Add.
8012 (bp_size): New function.
8013 (bp_opcode): Likewise.
8014 (find_raw_breakpoint_at): Adjust for kind.
8015 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
8016 (remove_memory_breakpoint): Adjust for kind call bp_size.
8017 (set_raw_breakpoint_at): Adjust for kind.
8018 (set_breakpoint): Likewise.
8019 (set_breakpoint_at): Call breakpoint_kind_from_pc.
8020 (delete_raw_breakpoint): Adjust for kind.
8021 (delete_breakpoint): Likewise.
8022 (find_gdb_breakpoint): Likewise.
8023 (set_gdb_breakpoint_1): Likewise.
8024 (set_gdb_breakpoint): Likewise.
8025 (delete_gdb_breakpoint_1): Likewise.
8026 (delete_gdb_breakpoint): Likewise.
8027 (uninsert_raw_breakpoint): Likewise.
8028 (reinsert_raw_breakpoint): Likewise.
8029 (set_breakpoint_data): Remove.
8030 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
8031 (check_mem_read): Adjust for kind call bp_size.
8032 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
8033 (clone_one_breakpoint): Adjust for kind.
8034 * mem-break.h (set_gdb_breakpoint): Likewise.
8035 (delete_gdb_breakpoint): Likewise.
8036 * server.c (process_serial_event): Likewise.
8038 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8040 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
8041 (struct linux_target_ops) <breakpoint>: Remove.
8042 (struct linux_target_ops) <breakpoint_len>: Remove.
8043 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8044 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8045 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
8046 (arm_sw_breakpoint_from_kind): New function.
8047 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
8048 (struct linux_target_ops) <breakpoint>: Remove.
8049 (struct linux_target_ops) <breakpoint_len>: Remove.
8050 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8051 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8052 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
8053 (struct linux_target_ops) <breakpoint>: Remove.
8054 (struct linux_target_ops) <breakpoint_len>: Remove.
8055 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8056 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8057 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
8058 (struct linux_target_ops) <breakpoint>: Remove.
8059 (struct linux_target_ops) <breakpoint_len>: Remove.
8060 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8061 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8062 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
8063 and sw_breakpoint_from_kind to increment the pc.
8064 (linux_breakpoint_kind_from_pc): New function.
8065 (linux_sw_breakpoint_from_kind): New function.
8066 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8067 (initialize_low): Call breakpoint_kind_from_pc and
8068 sw_breakpoint_from_kind to replace breakpoint_data/len.
8069 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8071 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8072 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8073 (struct linux_target_ops) <breakpoint>: Remove.
8074 (struct linux_target_ops) <breakpoint_len>: Remove.
8075 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8076 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8077 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8078 (struct linux_target_ops) <breakpoint>: Remove.
8079 (struct linux_target_ops) <breakpoint_len>: Remove.
8080 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8081 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8082 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8083 (struct linux_target_ops) <breakpoint>: Remove.
8084 (struct linux_target_ops) <breakpoint_len>: Remove.
8085 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8086 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8087 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8088 (struct linux_target_ops) <breakpoint>: Remove.
8089 (struct linux_target_ops) <breakpoint_len>: Remove.
8090 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8091 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8092 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8093 (struct linux_target_ops) <breakpoint>: Remove.
8094 (struct linux_target_ops) <breakpoint_len>: Remove.
8095 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8096 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8097 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8098 (struct linux_target_ops) <breakpoint>: Remove.
8099 (struct linux_target_ops) <breakpoint_len>: Remove.
8100 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8101 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8102 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8103 (struct linux_target_ops) <breakpoint>: Remove.
8104 (struct linux_target_ops) <breakpoint_len>: Remove.
8105 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8106 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8107 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8108 (struct linux_target_ops) <breakpoint>: Remove.
8109 (struct linux_target_ops) <breakpoint_len>: Remove.
8110 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8111 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8112 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8113 (struct linux_target_ops) <breakpoint>: Remove.
8114 (struct linux_target_ops) <breakpoint_len>: Remove.
8115 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8116 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8117 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8118 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8119 (struct linux_target_ops) <breakpoint>: Remove.
8120 (struct linux_target_ops) <breakpoint_len>: Remove.
8121 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8122 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8123 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8124 (struct linux_target_ops) <breakpoint>: Remove.
8125 (struct linux_target_ops) <breakpoint_len>: Remove.
8126 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8127 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8129 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8131 * linux-cris-low.c (cris_get_pc): Remove void arg.
8133 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8135 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8138 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8140 * inferiors.c (thread_pid_matches_callback): New function.
8141 (find_thread_process): New function.
8142 (remove_thread): Reset current_thread.
8143 (remove_process): Assert threads have been removed first.
8145 2015-10-15 Yao Qi <yao.qi@linaro.org>
8147 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8149 (aarch64_remove_point): Likewise.
8150 * regcache.c (regcache_register_size): New function.
8152 2015-10-12 Yao Qi <yao.qi@linaro.org>
8154 * linux-aarch64-low.c: Update all callers as emit_load_store
8155 is renamed to aarch64_emit_load_store.
8157 2015-10-12 Yao Qi <yao.qi@linaro.org>
8159 * linux-aarch64-low.c: Update all callers of function renaming
8160 from emit_insn to aarch64_emit_insn.
8162 2015-10-12 Yao Qi <yao.qi@linaro.org>
8164 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8165 arch/aarch64-insn.h.
8166 (struct aarch64_memory_operand): Likewise.
8168 (emit_insn): Move to arch/aarch64-insn.c.
8169 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8170 (emit_load_store): Move to arch/aarch64-insn.c.
8171 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8172 (can_encode_int32): Remove.
8174 2015-10-12 Yao Qi <yao.qi@linaro.org>
8176 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8177 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8178 (aarch64_relocate_instruction): Likewise.
8179 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8180 (struct aarch64_insn_visitor): Likewise.
8182 2015-10-12 Yao Qi <yao.qi@linaro.org>
8184 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8185 (struct aarch64_insn_visitor): New.
8186 (struct aarch64_insn_relocation_data): New.
8187 (aarch64_ftrace_insn_reloc_b): New function.
8188 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8189 (aarch64_ftrace_insn_reloc_cb): Likewise.
8190 (aarch64_ftrace_insn_reloc_tb): Likewise.
8191 (aarch64_ftrace_insn_reloc_adr): Likewise.
8192 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8193 (aarch64_ftrace_insn_reloc_others): Likewise.
8195 (aarch64_relocate_instruction): Use visitor.
8197 2015-10-12 Yao Qi <yao.qi@linaro.org>
8199 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8200 int. Add argument buf.
8201 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8202 aarch64_relocate_instruction.
8204 2015-10-12 Yao Qi <yao.qi@linaro.org>
8206 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8207 argument insn. Remove local variable insn. Don't call
8209 (aarch64_install_fast_tracepoint_jump_pad): Call
8212 2015-09-30 Yao Qi <yao.qi@linaro.org>
8214 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8215 (emit_load_store_pair): Likewise.
8217 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8219 * dll.c (match_dll): Add cast(s).
8220 (unloaded_dll): Likewise.
8221 * linux-low.c (second_thread_of_pid_p): Likewise.
8222 (delete_lwp_callback): Likewise.
8223 (count_events_callback): Likewise.
8224 (select_event_lwp_callback): Likewise.
8225 (linux_set_resume_request): Likewise.
8226 * server.c (accumulate_file_name_length): Likewise.
8227 (emit_dll_description): Likewise.
8228 (handle_qxfer_threads_worker): Likewise.
8229 (visit_actioned_threads): Likewise.
8230 * thread-db.c (any_thread_of): Likewise.
8231 * tracepoint.c (same_process_p): Likewise.
8232 (match_blocktype): Likewise.
8233 (build_traceframe_info_xml): Likewise.
8235 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8237 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8239 (gdb_unparse_agent_expr): Likewise.
8240 * hostio.c (require_data): Likewise.
8241 (handle_pread): Likewise.
8242 * linux-low.c (disable_regset): Likewise.
8243 (fetch_register): Likewise.
8244 (store_register): Likewise.
8245 (get_dynamic): Likewise.
8246 (linux_qxfer_libraries_svr4): Likewise.
8247 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8248 (set_fast_tracepoint_jump): Likewise.
8249 (uninsert_fast_tracepoint_jumps_at): Likewise.
8250 (reinsert_fast_tracepoint_jumps_at): Likewise.
8251 (validate_inserted_breakpoint): Likewise.
8252 (clone_agent_expr): Likewise.
8253 * regcache.c (init_register_cache): Likewise.
8254 * remote-utils.c (putpkt_binary_1): Likewise.
8255 (decode_M_packet): Likewise.
8256 (decode_X_packet): Likewise.
8257 (look_up_one_symbol): Likewise.
8258 (relocate_instruction): Likewise.
8259 (monitor_output): Likewise.
8260 * server.c (handle_search_memory): Likewise.
8261 (handle_qxfer_exec_file): Likewise.
8262 (handle_qxfer_libraries): Likewise.
8263 (handle_qxfer): Likewise.
8264 (handle_query): Likewise.
8265 (handle_v_cont): Likewise.
8266 (handle_v_run): Likewise.
8267 (captured_main): Likewise.
8268 * target.c (write_inferior_memory): Likewise.
8269 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8270 * tracepoint.c (init_trace_buffer): Likewise.
8271 (add_tracepoint_action): Likewise.
8272 (add_traceframe): Likewise.
8273 (add_traceframe_block): Likewise.
8274 (cmd_qtdpsrc): Likewise.
8275 (cmd_qtdv): Likewise.
8276 (cmd_qtstatus): Likewise.
8277 (response_source): Likewise.
8278 (response_tsv): Likewise.
8279 (cmd_qtnotes): Likewise.
8280 (gdb_collect): Likewise.
8281 (initialize_tracepoint): Likewise.
8283 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8285 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8286 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8287 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8289 (enum aarch64_condition_codes): New enum.
8290 (w0): New static global.
8293 (struct aarch64_memory_operand) <type>: New
8294 MEMORY_OPERAND_POSTINDEX type.
8295 (postindex_memory_operand): New helper function.
8296 (emit_ret): New function.
8297 (emit_load_store_pair): New function, factored out of emit_stp
8298 with support for MEMORY_OPERAND_POSTINDEX.
8299 (emit_stp): Rewrite using emit_load_store_pair.
8300 (emit_ldp): New function.
8301 (emit_load_store): Likewise.
8302 (emit_ldr): Mention post-index instruction in comment.
8303 (emit_ldrh): New function.
8304 (emit_ldrb): New function.
8305 (emit_ldrsw): Mention post-index instruction in comment.
8306 (emit_str): Likewise.
8307 (emit_subs): New function.
8308 (emit_cmp): Likewise.
8309 (emit_and): Likewise.
8310 (emit_orr): Likewise.
8311 (emit_orn): Likewise.
8312 (emit_eor): Likewise.
8313 (emit_mvn): Likewise.
8314 (emit_lslv): Likewise.
8315 (emit_lsrv): Likewise.
8316 (emit_asrv): Likewise.
8317 (emit_mul): Likewise.
8318 (emit_sbfm): Likewise.
8319 (emit_sbfx): Likewise.
8320 (emit_ubfm): Likewise.
8321 (emit_ubfx): Likewise.
8322 (emit_csinc): Likewise.
8323 (emit_cset): Likewise.
8324 (emit_nop): Likewise.
8325 (emit_ops_insns): New helper function.
8326 (emit_pop): Likewise.
8327 (emit_push): Likewise.
8328 (aarch64_emit_prologue): New function.
8329 (aarch64_emit_epilogue): Likewise.
8330 (aarch64_emit_add): Likewise.
8331 (aarch64_emit_sub): Likewise.
8332 (aarch64_emit_mul): Likewise.
8333 (aarch64_emit_lsh): Likewise.
8334 (aarch64_emit_rsh_signed): Likewise.
8335 (aarch64_emit_rsh_unsigned): Likewise.
8336 (aarch64_emit_ext): Likewise.
8337 (aarch64_emit_log_not): Likewise.
8338 (aarch64_emit_bit_and): Likewise.
8339 (aarch64_emit_bit_or): Likewise.
8340 (aarch64_emit_bit_xor): Likewise.
8341 (aarch64_emit_bit_not): Likewise.
8342 (aarch64_emit_equal): Likewise.
8343 (aarch64_emit_less_signed): Likewise.
8344 (aarch64_emit_less_unsigned): Likewise.
8345 (aarch64_emit_ref): Likewise.
8346 (aarch64_emit_if_goto): Likewise.
8347 (aarch64_emit_goto): Likewise.
8348 (aarch64_write_goto_address): Likewise.
8349 (aarch64_emit_const): Likewise.
8350 (aarch64_emit_call): Likewise.
8351 (aarch64_emit_reg): Likewise.
8352 (aarch64_emit_pop): Likewise.
8353 (aarch64_emit_stack_flush): Likewise.
8354 (aarch64_emit_zero_ext): Likewise.
8355 (aarch64_emit_swap): Likewise.
8356 (aarch64_emit_stack_adjust): Likewise.
8357 (aarch64_emit_int_call_1): Likewise.
8358 (aarch64_emit_void_call_2): Likewise.
8359 (aarch64_emit_eq_goto): Likewise.
8360 (aarch64_emit_ne_goto): Likewise.
8361 (aarch64_emit_lt_goto): Likewise.
8362 (aarch64_emit_le_goto): Likewise.
8363 (aarch64_emit_gt_goto): Likewise.
8364 (aarch64_emit_ge_got): Likewise.
8365 (aarch64_emit_ops_impl): New static global variable.
8366 (aarch64_emit_ops): New target function, return
8367 &aarch64_emit_ops_impl.
8368 (struct linux_target_ops): Install it.
8370 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8372 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8373 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8375 * linux-aarch64-ipa.c: New file.
8376 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8378 (aarch64_get_thread_area): New target method.
8379 (extract_signed_bitfield): New helper function.
8380 (aarch64_decode_ldr_literal): New function.
8381 (enum aarch64_opcodes): New enum.
8382 (struct aarch64_register): New struct.
8383 (struct aarch64_operand): New struct.
8384 (x0): New static global.
8393 (aarch64_register): New helper function.
8394 (register_operand): Likewise.
8395 (immediate_operand): Likewise.
8396 (struct aarch64_memory_operand): New struct.
8397 (offset_memory_operand): New helper function.
8398 (preindex_memory_operand): Likewise.
8399 (enum aarch64_system_control_registers): New enum.
8400 (ENCODE): New macro.
8401 (emit_insn): New helper function.
8402 (emit_b): New function.
8403 (emit_bcond): Likewise.
8404 (emit_cb): Likewise.
8405 (emit_tb): Likewise.
8406 (emit_blr): Likewise.
8407 (emit_stp): Likewise.
8408 (emit_ldp_q_offset): Likewise.
8409 (emit_stp_q_offset): Likewise.
8410 (emit_load_store): Likewise.
8411 (emit_ldr): Likewise.
8412 (emit_ldrsw): Likewise.
8413 (emit_str): Likewise.
8414 (emit_ldaxr): Likewise.
8415 (emit_stxr): Likewise.
8416 (emit_stlr): Likewise.
8417 (emit_data_processing_reg): Likewise.
8418 (emit_data_processing): Likewise.
8419 (emit_add): Likewise.
8420 (emit_sub): Likewise.
8421 (emit_mov): Likewise.
8422 (emit_movk): Likewise.
8423 (emit_mov_addr): Likewise.
8424 (emit_mrs): Likewise.
8425 (emit_msr): Likewise.
8426 (emit_sevl): Likewise.
8427 (emit_wfe): Likewise.
8428 (append_insns): Likewise.
8429 (can_encode_int32_in): New helper function.
8430 (aarch64_relocate_instruction): New function.
8431 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
8432 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
8433 (struct linux_target_ops): Install aarch64_get_thread_area,
8434 aarch64_install_fast_tracepoint_jump_pad and
8435 aarch64_get_min_fast_tracepoint_insn_len.
8437 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8439 * Makefile.in (aarch64-insn.o): New rule.
8440 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8442 2015-09-21 Yao Qi <yao.qi@linaro.org>
8444 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8446 2015-09-21 Yao Qi <yao.qi@linaro.org>
8448 * tracepoint.c (max_jump_pad_size): Remove.
8450 2015-09-18 Yao Qi <yao.qi@linaro.org>
8452 * linux-aarch64-low.c: Don't include sys/uio.h.
8453 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8455 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
8457 * tracepoint.c (eval_result_type): Change prototype.
8458 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8460 2015-09-15 Pedro Alves <palves@redhat.com>
8462 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
8463 Check whether to report exec events instead of checking whether
8464 multiprocess is enabled.
8466 2015-09-15 Pedro Alves <palves@redhat.com>
8469 * remote-utils.c (prepare_resume_reply): Merge
8470 TARGET_WAITKIND_VFORK_DONE switch case with the
8471 TARGET_WAITKIND_FORKED case.
8473 2015-09-15 Yao Qi <yao.qi@linaro.org>
8475 * server.c (handle_query): Check string comparison using
8476 "else if" instead of "if".
8478 2015-09-15 Yao Qi <yao.qi@linaro.org>
8480 * server.c (vCont_supported): New global variable.
8481 (handle_query): Set vCont_supported to 1 if "vContSupported+"
8482 matches. Append ";vContSupported+" to own_buf.
8483 (handle_v_requests): Append ";s;S" to own_buf if target supports
8484 hardware single step or vCont_supported is false.
8485 (capture_main): Set vCont_supported to zero.
8487 2015-09-15 Yao Qi <yao.qi@linaro.org>
8489 * linux-low.c (linux_supports_conditional_breakpoints): Rename
8491 (linux_supports_hardware_single_step): ... New function.
8492 (linux_target_ops): Update.
8493 * lynx-low.c (lynx_target_ops): Set field
8494 supports_hardware_single_step to target_can_do_hardware_single_step.
8495 * nto-low.c (nto_target_ops): Likewise.
8496 * spu-low.c (spu_target_ops): Likewise.
8497 * win32-low.c (win32_target_ops): Likewise.
8498 * target.c (target_can_do_hardware_single_step): New function.
8499 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8500 Remove. <supports_hardware_single_step>: New field.
8501 (target_supports_conditional_breakpoints): Remove.
8502 (target_supports_hardware_single_step): New macro.
8503 (target_can_do_hardware_single_step): Declare.
8504 * server.c (handle_query): Use target_supports_hardware_single_step
8505 instead of target_supports_conditional_breakpoints.
8507 2015-09-15 Yao Qi <yao.qi@linaro.org>
8509 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
8511 (struct linux_target_ops the_low_target): Install
8512 aarch64_linux_siginfo_fixup.
8514 2015-09-11 Don Breazeal <donb@codesourcery.com>
8515 Luis Machado <lgustavo@codesourcery.com>
8517 * linux-low.c (linux_mourn): Static declaration.
8518 (linux_arch_setup): Move in front of
8519 handle_extended_wait.
8520 (linux_arch_setup_thread): New function.
8521 (handle_extended_wait): Handle exec events. Call
8522 linux_arch_setup_thread. Make event_lwp argument a
8523 pointer-to-a-pointer.
8524 (check_zombie_leaders): Do not check stopped threads.
8525 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
8526 (linux_low_filter_event): Add lwp and thread for exec'ing
8527 non-leader thread if leader thread has been deleted.
8528 Refactor code into linux_arch_setup_thread and call it.
8529 Pass child lwp pointer by reference to handle_extended_wait.
8530 (linux_wait_for_event_filtered): Update comment.
8531 (linux_wait_1): Prevent clobbering exec event status.
8532 (linux_supports_exec_events): New function.
8533 (linux_target_ops) <supports_exec_events>: Initialize new member.
8534 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
8536 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
8537 * server.c (report_exec_events): New global variable.
8538 (handle_query): Handle qSupported query for exec-events feature.
8539 (captured_main): Initialize report_exec_events.
8540 * server.h (report_exec_events): Declare new global variable.
8541 * target.h (struct target_ops) <supports_exec_events>: New
8543 (target_supports_exec_events): New macro.
8544 * win32-low.c (win32_target_ops) <supports_exec_events>:
8545 Initialize new member.
8547 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
8549 * linux-low.c (linux_low_enable_btrace): Remove.
8550 (linux_target_ops): Replace linux_low_enable_btrace with
8551 linux_enable_btrace.
8553 2015-09-03 Yao Qi <yao.qi@linaro.org>
8555 * linux-aarch64-low.c (aarch64_insert_point): Call
8556 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8559 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8561 * linux-low.c (check_stopped_by_breakpoint): Use
8562 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8564 2015-08-27 Pedro Alves <palves@redhat.com>
8566 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8568 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8570 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8571 the XNEW-family equivalent.
8572 (compile_bytecodes): Likewise.
8573 * dll.c (loaded_dll): Likewise.
8574 * event-loop.c (append_callback_event): Likewise.
8575 (create_file_handler): Likewise.
8576 (create_file_event): Likewise.
8577 * hostio.c (handle_open): Likewise.
8578 * inferiors.c (add_thread): Likewise.
8579 (add_process): Likewise.
8580 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
8581 * linux-arm-low.c (arm_new_process): Likewise.
8582 (arm_new_thread): Likewise.
8583 * linux-low.c (add_to_pid_list): Likewise.
8584 (linux_add_process): Likewise.
8585 (handle_extended_wait): Likewise.
8586 (add_lwp): Likewise.
8587 (enqueue_one_deferred_signal): Likewise.
8588 (enqueue_pending_signal): Likewise.
8589 (linux_resume_one_lwp_throw): Likewise.
8590 (linux_resume_one_thread): Likewise.
8591 (linux_read_memory): Likewise.
8592 (linux_write_memory): Likewise.
8593 * linux-mips-low.c (mips_linux_new_process): Likewise.
8594 (mips_linux_new_thread): Likewise.
8595 (mips_add_watchpoint): Likewise.
8596 * linux-x86-low.c (initialize_low_arch): Likewise.
8597 * lynx-low.c (lynx_add_process): Likewise.
8598 * mem-break.c (set_raw_breakpoint_at): Likewise.
8599 (set_breakpoint): Likewise.
8600 (add_condition_to_breakpoint): Likewise.
8601 (add_commands_to_breakpoint): Likewise.
8602 (clone_agent_expr): Likewise.
8603 (clone_one_breakpoint): Likewise.
8604 * regcache.c (new_register_cache): Likewise.
8605 * remote-utils.c (look_up_one_symbol): Likewise.
8606 * server.c (queue_stop_reply): Likewise.
8607 (start_inferior): Likewise.
8608 (queue_stop_reply_callback): Likewise.
8609 (handle_target_event): Likewise.
8610 * spu-low.c (fetch_ppc_memory): Likewise.
8611 (store_ppc_memory): Likewise.
8612 * target.c (set_target_ops): Likewise.
8613 * thread-db.c (thread_db_load_search): Likewise.
8614 (try_thread_db_load_1): Likewise.
8615 * tracepoint.c (add_tracepoint): Likewise.
8616 (add_tracepoint_action): Likewise.
8617 (create_trace_state_variable): Likewise.
8618 (cmd_qtdpsrc): Likewise.
8619 (cmd_qtro): Likewise.
8620 (add_while_stepping_state): Likewise.
8621 * win32-low.c (child_add_thread): Likewise.
8622 (get_image_name): Likewise.
8624 2015-08-25 Yao Qi <yao.qi@linaro.org>
8626 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8628 2015-08-25 Yao Qi <yao.qi@linaro.org>
8630 * Makefile.in (aarch64-linux.o): New rule.
8631 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8633 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8634 (aarch64_init_debug_reg_state): Make it extern.
8635 (aarch64_linux_prepare_to_resume): Remove.
8637 2015-08-25 Yao Qi <yao.qi@linaro.org>
8639 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8640 lwp_arch_private_info and ptid_of_lwp.
8642 2015-08-25 Yao Qi <yao.qi@linaro.org>
8644 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8645 Find proc_info by find_process_pid. All callers updated.
8647 2015-08-25 Yao Qi <yao.qi@linaro.org>
8649 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8651 (debug_reg_change_callback): Remove.
8652 (aarch64_notify_debug_reg_change): Remove.
8654 2015-08-25 Yao Qi <yao.qi@linaro.org>
8656 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8657 Call current_lwp_ptid.
8659 2015-08-25 Yao Qi <yao.qi@linaro.org>
8661 * linux-aarch64-low.c (debug_reg_change_callback): Use
8664 2015-08-25 Yao Qi <yao.qi@linaro.org>
8666 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8668 2015-08-25 Yao Qi <yao.qi@linaro.org>
8670 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8672 2015-08-25 Yao Qi <yao.qi@linaro.org>
8674 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8677 2015-08-25 Yao Qi <yao.qi@linaro.org>
8679 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8681 (debug_reg_change_callback): Remove argument entry and add argument
8682 lwp. Remove local variable thread. Don't print thread id in the
8683 debugging output. Don't check whether pid of thread equals to pid.
8684 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8685 iterate_over_lwps instead find_inferior.
8687 2015-08-24 Pedro Alves <palves@redhat.com>
8689 * inferiors.c (get_first_process): New function.
8690 * inferiors.h (get_first_process): New declaration.
8691 * remote-utils.c (read_ptid): Default to the first process in the
8692 list, instead of to the current thread's process.
8694 2015-08-24 Pedro Alves <palves@redhat.com>
8696 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8697 * event-loop.c: Likewise.
8698 * remote-utils.c: Likewise.
8699 * tracepoint.c: Likewise.
8701 2015-08-24 Pedro Alves <palves@redhat.com>
8703 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8706 2015-08-21 Pedro Alves <palves@redhat.com>
8708 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8709 instead of literal 1.
8711 2015-08-21 Pedro Alves <palves@redhat.com>
8713 * tdesc.c (default_description): Explicitly zero-initialize.
8715 2015-08-21 Pedro Alves <palves@redhat.com>
8718 * inferiors.c (remove_thread): Discard any pending stop reply for
8720 * server.c (remove_all_on_match_pid): Rename to ...
8721 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8723 (discard_queued_stop_replies): Change parameter to a ptid. Now
8725 (handle_v_kill, kill_inferior_callback, captured_main)
8726 (process_serial_event): Adjust.
8727 * server.h (discard_queued_stop_replies): Declare.
8729 2015-08-21 Pedro Alves <palves@redhat.com>
8731 * linux-low.c (wait_for_sigstop): Always switch to no thread
8732 selected if the previously current thread dies.
8733 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8734 process instead of the current thread's.
8735 * remote-utils.c (input_interrupt): Don't check if there's no
8737 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8738 current thread to the general thread fails, error out.
8739 (handle_qxfer_auxv, handle_qxfer_libraries)
8740 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8741 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8742 (handle_query): Check if there's a thread selected instead of
8743 checking whether there's any thread in the thread list.
8744 (handle_qxfer_threads, handle_qxfer_btrace)
8745 (handle_qxfer_btrace_conf): Don't error out early if there's no
8746 thread in the thread list.
8747 (handle_v_cont, myresume): Don't set the current thread to the
8749 (process_serial_event) <Hg handling>: Also set thread_id if the
8750 previous general thread is still alive.
8751 (process_serial_event) <g/G handling>: If setting the current
8752 thread to the general thread fails, error out.
8753 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8754 thread's lwp instead of the current thread's.
8755 * target.c (set_desired_thread): If the desired thread was not
8756 found, leave the current thread pointing to NULL. Return an int
8757 (boolean) indicating success.
8758 * target.h (set_desired_thread): Change return type to int.
8760 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8762 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8763 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8765 (ps_get_thread_area): New function.
8767 2015-08-19 Gary Benson <gbenson@redhat.com>
8769 * hostio.c (handle_pread): Do not attempt to read more data
8770 than hostio_reply_with_data can fit in a packet.
8772 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8774 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8776 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8778 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8780 2015-08-06 Pedro Alves <palves@redhat.com>
8782 * tracepoint.c (expr_eval_result): Now an int.
8784 2015-08-06 Pedro Alves <palves@redhat.com>
8786 * gdbthread.h (struct regcache): Forward declare.
8787 (struct thread_info) <regcache_data>: Now a struct regcache
8789 * inferiors.c (inferior_regcache_data)
8790 (set_inferior_regcache_data): Now work with struct regcache
8792 * inferiors.h (struct regcache): Forward declare.
8793 (inferior_regcache_data, set_inferior_regcache_data): Now work
8794 with struct regcache pointers.
8795 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8796 (free_register_cache_thread): Remove struct regcache pointer
8799 2015-08-06 Pedro Alves <palves@redhat.com>
8801 * server.c (captured_main): On error, print the exception message
8802 to stderr, and if run_once is set, throw a quit.
8804 2015-08-06 Pedro Alves <palves@redhat.com>
8806 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8809 2015-08-06 Pedro Alves <palves@redhat.com>
8811 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8812 reading beyond the passed in buffer length.
8814 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8816 * tracepoint.c (symbol_list) <required>: Remove.
8818 2015-08-06 Pedro Alves <palves@redhat.com>
8820 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8821 count if stopping and suspending threads.
8822 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8823 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8824 (linux_detach): Complete an ongoing step-over.
8825 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8827 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8828 (linux_wait_1): If passing a signal to the inferior after
8829 finishing a step-over, unsuspend and re-resume all lwps. If we
8830 see a single-step event but the thread should be continuing, don't
8831 pass the trap to gdb.
8832 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8833 internal_error instead of gdb_assert.
8834 (enqueue_pending_signal): New function.
8835 (check_ptrace_stopped_lwp_gone): Add debug output.
8836 (start_step_over): Use internal_error instead of gdb_assert.
8837 (complete_ongoing_step_over): New function.
8838 (linux_resume_one_thread): Don't resume a suspended thread.
8839 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8842 2015-08-06 Pedro Alves <palves@redhat.com>
8844 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8845 (linux_thread_alive): Use lwp_is_marked_dead.
8846 (extended_event_reported): Delete.
8847 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8848 instead of extended_event_reported.
8849 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8851 (lwp_is_marked_dead): New function.
8852 (lwp_running): Use lwp_is_marked_dead.
8853 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8856 2015-08-06 Pedro Alves <palves@redhat.com>
8858 * linux-low.c (linux_wait_1): Move fork event output out of the
8859 !report_to_gdb check. Pass event_child->waitstatus to
8860 target_waitstatus_to_string instead of ourstatus.
8862 2015-08-04 Yao Qi <yao.qi@linaro.org>
8864 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8865 if current_thread is 32 bit.
8867 2015-08-04 Yao Qi <yao.qi@linaro.org>
8869 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8870 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8871 * server.c (extended_protocol): Remove "static".
8872 * server.h (extended_protocol): Declare it.
8874 2015-08-04 Yao Qi <yao.qi@linaro.org>
8876 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8877 both aarch64 and aarch32.
8878 (aarch64_set_pc): Likewise.
8880 2015-08-04 Yao Qi <yao.qi@linaro.org>
8882 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8883 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8884 arm-with-neon.xml to srv_xmlfiles.
8885 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8886 (is_64bit_tdesc): New function.
8887 (aarch64_linux_read_description): New function.
8888 (aarch64_arch_setup): Call aarch64_linux_read_description.
8889 (regs_info): Rename to regs_info_aarch64.
8890 (aarch64_regs_info): Return right regs_info.
8891 (initialize_low_arch): Call initialize_low_arch_aarch32.
8893 2015-08-04 Yao Qi <yao.qi@linaro.org>
8895 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8896 * linux-aarch32-low.c: New file.
8897 * linux-aarch32-low.h: New file.
8898 * linux-arm-low.c (arm_fill_gregset): Move it to
8899 linux-aarch32-low.c.
8900 (arm_store_gregset): Likewise.
8901 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8902 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8903 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8904 (regs_info): Rename to regs_info_arm.
8905 (arm_regs_info): Return regs_info_aarch32 if
8906 have_ptrace_getregset is 1 and target description is
8907 arm_with_neon or arm_with_vfpv3.
8908 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8909 Call initialize_low_arch_aarch32 instead.
8911 2015-08-04 Yao Qi <yao.qi@linaro.org>
8913 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8914 * linux-low.c: ... here.
8915 * linux-low.h (have_ptrace_getregset): Declare it.
8917 2015-08-04 Pedro Alves <palves@redhat.com>
8919 * thread-db.c (struct thread_db): Use new typedefs.
8920 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8922 (disable_thread_event_reporting): Cast result of dlsym to
8923 destination function pointer type.
8924 (thread_db_mourn): Use td_ta_delete_ftype.
8926 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8928 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8930 (CDX_BREAKPOINT): Define for R2.
8931 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8932 (the_low_target): Add comments.
8934 2015-07-30 Yao Qi <yao.qi@linaro.org>
8936 * linux-arm-low.c (arm_hwcap): Remove it.
8937 (arm_read_description): New local variable arm_hwcap. Don't
8938 set arm_hwcap to zero.
8940 2015-07-30 Yao Qi <yao.qi@linaro.org>
8942 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8943 Use regcache->tdesc instead.
8944 (arm_store_wmmxregset): Likewise.
8945 (arm_fill_vfpregset): Likewise.
8946 (arm_store_vfpregset): Likewise.
8948 2015-07-30 Yao Qi <yao.qi@linaro.org>
8950 * linux-arm-low.c: Include arch/arm.h.
8951 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8952 (arm_store_gregset): Likewise.
8954 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8956 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8957 ptrace's 4th parameter.
8959 2015-07-27 Yao Qi <yao.qi@linaro.org>
8961 * configure.srv (case aarch64*-*-linux*): Don't set
8964 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8966 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8968 * linux-arm-low.c: Likewise.
8969 * linux-cris-low.c: Likewise.
8970 * linux-crisv32-low.c: Likewise.
8971 * linux-low.c: Likewise.
8972 * linux-m68k-low.c: Likewise.
8973 * linux-mips-low.c: Likewise.
8974 * linux-nios2-low.c: Likewise.
8975 * linux-s390-low.c: Likewise.
8976 * linux-sparc-low.c: Likewise.
8977 * linux-tic6x-low.c: Likewise.
8978 * linux-tile-low.c: Likewise.
8979 * linux-x86-low.c: Likewise.
8981 2015-07-24 Pedro Alves <palves@redhat.com>
8983 * config.in: Regenerate.
8984 * configure: Regenerate.
8986 2015-07-24 Pedro Alves <palves@redhat.com>
8988 * acinclude.m4: Include ../ptrace.m4.
8989 * configure.ac: Call GDB_AC_PTRACE.
8990 * config.in, configure: Regenerate.
8992 2015-07-24 Yao Qi <yao.qi@linaro.org>
8994 * linux-low.c (linux_create_inferior): Remove setting to
8995 proc->priv->new_inferior.
8996 (linux_attach): Likewise.
8997 (linux_low_filter_event): Likewise.
8998 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
9000 2015-07-24 Yao Qi <yao.qi@linaro.org>
9002 * linux-low.c (linux_arch_setup): New function.
9003 (linux_low_filter_event): If proc->tdesc is NULL and
9004 proc->attached is true, call the_low_target.arch_setup.
9005 Otherwise, keep status pending, and return.
9006 (linux_resume_one_lwp_throw): Don't call get_pc if
9007 thread->while_stepping isn't NULL. Don't call
9008 get_thread_regcache if proc->tdesc is NULL.
9009 (need_step_over_p): Return 0 if proc->tdesc is NULL.
9010 (linux_target_ops): Install arch_setup.
9011 * server.c (start_inferior): Call the_target->arch_setup.
9012 * target.h (struct target_ops) <arch_setup>: New field.
9013 (target_arch_setup): New marco.
9014 * lynx-low.c (lynx_target_ops): Update.
9015 * nto-low.c (nto_target_ops): Update.
9016 * spu-low.c (spu_target_ops): Update.
9017 * win32-low.c (win32_target_ops): Update.
9019 2015-07-24 Yao Qi <yao.qi@linaro.org>
9021 * linux-low.c (linux_add_process): Don't set
9022 proc->priv->new_inferior.
9023 (linux_create_inferior): Set proc->priv->new_inferior to 1.
9024 (linux_attach): Likewise.
9026 2015-07-24 Yao Qi <yao.qi@linaro.org>
9028 * server.c (start_inferior): Code refactor.
9030 2015-07-24 Yao Qi <yao.qi@linaro.org>
9032 * server.c (process_serial_event): Set general_thread.
9034 2015-07-21 Yao Qi <yao.qi@linaro.org>
9036 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
9037 aarch64_linux_get_debug_reg_capacity.
9039 2015-07-17 Yao Qi <yao.qi@linaro.org>
9041 * Makefile.in (aarch64-linux-hw-point.o): New rule.
9042 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
9043 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
9044 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
9045 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
9046 (AARCH64_HWP_ALIGNMENT): Likewise.
9047 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
9048 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
9049 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
9050 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
9051 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
9052 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
9053 (struct aarch64_debug_reg_state): Likewise.
9054 (struct arch_lwp_info): Likewise.
9055 (aarch64_align_watchpoint): Likewise.
9056 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
9057 (aarch64_watchpoint_length): Likewise.
9058 (aarch64_point_encode_ctrl_reg): Likewise
9059 (aarch64_point_is_aligned): Likewise.
9060 (aarch64_align_watchpoint): Likewise.
9061 (aarch64_linux_set_debug_regs):
9062 (aarch64_dr_state_insert_one_point): Likewise.
9063 (aarch64_dr_state_remove_one_point): Likewise.
9064 (aarch64_handle_breakpoint): Likewise.
9065 (aarch64_handle_aligned_watchpoint): Likewise.
9066 (aarch64_handle_unaligned_watchpoint): Likewise.
9067 (aarch64_handle_watchpoint): Likewise.
9069 2015-07-17 Yao Qi <yao.qi@linaro.org>
9071 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9072 and don't aarch64_get_debug_reg_state. All callers update.
9073 (aarch64_handle_aligned_watchpoint): Likewise.
9074 (aarch64_handle_unaligned_watchpoint): Likewise.
9075 (aarch64_handle_watchpoint): Likewise.
9076 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9077 (aarch64_remove_point): Likewise.
9079 2015-07-17 Yao Qi <yao.qi@linaro.org>
9081 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9083 (aarch64_handle_unaligned_watchpoint): Likewise.
9085 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9087 Revert the previous 3 commits:
9088 Move gdb_regex* to common/
9089 Move linux_find_memory_regions_full & co.
9090 gdbserver build-id attribute generator
9092 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9093 Jan Kratochvil <jan.kratochvil@redhat.com>
9095 gdbserver build-id attribute generator.
9096 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9097 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9098 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9100 (get_dynamic): Use find_pdhr to traverse program headers.
9101 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9102 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9103 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9104 (get_hex_build_id): New.
9105 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9106 to reply XML document.
9108 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9109 Jan Kratochvil <jan.kratochvil@redhat.com>
9111 * target.c: Include target/target-utils.h and fcntl.h.
9112 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9113 (target_fileio_read_stralloc): New functions.
9115 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9117 * Makefile.in (OBS): Add gdb_regex.o.
9119 * config.in: Rebuilt.
9120 * configure: Rebuilt.
9122 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9123 Jan Kratochvil <jan.kratochvil@redhat.com>
9125 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9126 * Makefile.in (OBS): Add target-utils.o.
9127 (linux-maps.o, target-utils.o): New.
9128 * configure.srv (srv_linux_obj): Add linux-maps.o.
9130 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9132 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9134 (the_low_target): Install it.
9136 2015-07-14 Pedro Alves <palves@redhat.com>
9138 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9139 Instead, ignore ECHILD, and throw an error for other errnos.
9141 2015-07-10 Pedro Alves <palves@redhat.com>
9143 * event-loop.c (struct callback_event) <data>: Change type to
9144 gdb_client_data instance instead of gdb_client_data pointer.
9145 (append_callback_event): Adjust.
9147 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9149 * linux-aarch64-low.c: Add comments for each linux_target_ops
9150 method. Remove comments already covered in target_ops and
9151 linux_target_ops definitions.
9152 (the_low_target): Add comments for each unimplemented method.
9154 2015-07-09 Yao Qi <yao.qi@linaro.org>
9156 * linux-aarch64-low.c (aarch64_regmap): Remove.
9157 (aarch64_usrregs_info): Remove.
9158 (regs_info): Set field usrregs to NULL.
9160 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9162 * linux-low.c: Include "rsp-low.h"
9163 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9164 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9165 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9166 (handle_btrace_enable_pt): New.
9167 (handle_btrace_general_set): Support "pt".
9168 (handle_btrace_conf_general_set): Support "pt:size".
9170 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9172 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9175 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9177 * linux-aarch64-low.c: Remove comment about endianness.
9178 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9179 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9182 2015-06-24 Gary Benson <gbenson@redhat.com>
9184 * linux-i386-ipa.c (stdint.h): Do not include.
9185 * lynx-i386-low.c (stdint.h): Likewise.
9186 * lynx-ppc-low.c (stdint.h): Likewise.
9187 * mem-break.c (stdint.h): Likewise.
9188 * thread-db.c (stdint.h): Likewise.
9189 * tracepoint.c (stdint.h): Likewise.
9190 * win32-low.c (stdint.h): Likewise.
9192 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9194 * server.c (write_qxfer_response): Update call to
9195 remote_escape_output.
9197 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9198 Jan Kratochvil <jan.kratochvil@redhat.com>
9200 Merge multiple hex conversions.
9201 * gdbreplay.c (tohex): Rename to 'fromhex'.
9202 (logchar): Use fromhex.
9204 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9206 * server.c (handle_qxfer_libraries): Set `version' attribute for
9209 2015-06-10 Gary Benson <gbenson@redhat.com>
9211 * target.h (struct target_ops) <multifs_open>: New field.
9212 <multifs_unlink>: Likewise.
9213 <multifs_readlink>: Likewise.
9214 * linux-low.c (nat/linux-namespaces.h): New include.
9215 (linux_target_ops): Initialize the_target->multifs_open,
9216 the_target->multifs_unlink and the_target->multifs_readlink.
9217 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9218 * hostio.c (hostio_fs_pid): New static variable.
9219 (hostio_handle_new_gdb_connection): New function.
9220 (handle_setfs): Likewise.
9221 (handle_open): Use the_target->multifs_open as appropriate.
9222 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9223 (handle_readlink): Use the_target->multifs_readlink as
9225 (handle_vFile): Handle vFile:setfs packets.
9226 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9227 after target_handle_new_gdb_connection.
9229 2015-06-10 Gary Benson <gbenson@redhat.com>
9231 * configure.ac (AC_CHECK_FUNCS): Add setns.
9232 * config.in: Regenerate.
9233 * configure: Likewise.
9234 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9235 (linux-namespaces.o): New rule.
9236 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9238 2015-06-09 Gary Benson <gbenson@redhat.com>
9240 * hostio.c (handle_open): Process mode argument with
9241 fileio_to_host_mode.
9243 2015-06-01 Yao Qi <yao.qi@linaro.org>
9245 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9246 * linux-x86-low.c: Likewise.
9248 2015-05-28 Don Breazeal <donb@codesourcery.com>
9250 * linux-low.c (handle_extended_wait): Initialize
9251 thread_info.last_resume_kind for new fork children.
9253 2015-05-15 Pedro Alves <palves@redhat.com>
9255 * target.h (target_handle_new_gdb_connection): Rewrite using if
9256 wrapped in do/while.
9258 2015-05-14 Joel Brobecker <brobecker@adacore.com>
9260 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9261 * configure, config.in: Regenerate.
9262 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9265 2015-05-12 Don Breazeal <donb@codesourcery.com>
9267 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9268 PTRACE_EVENT_VFORK_DONE.
9269 (linux_low_ptrace_options, extended_event_reported): Add vfork
9271 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9272 and "vforkdone" for RSP 'T' Stop Reply Packet.
9273 * server.h (report_vfork_events): Declare
9276 2015-05-12 Don Breazeal <donb@codesourcery.com>
9278 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9279 (the_low_target) <new_fork>: Initialize new member.
9280 * linux-arm-low.c (arm_new_fork): New function.
9281 (the_low_target) <new_fork>: Initialize new member.
9282 * linux-low.c (handle_extended_wait): Call new target function
9284 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9285 * linux-mips-low.c (mips_add_watchpoint): New function
9286 extracted from mips_insert_point.
9287 (the_low_target) <new_fork>: Initialize new member.
9288 (mips_linux_new_fork): New function.
9289 (mips_insert_point): Call mips_add_watchpoint.
9290 * linux-x86-low.c (x86_linux_new_fork): New function.
9291 (the_low_target) <new_fork>: Initialize new member.
9293 2015-05-12 Don Breazeal <donb@codesourcery.com>
9295 * linux-low.c (handle_extended_wait): Implement return value,
9296 rename argument 'event_child' to 'event_lwp', handle
9297 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9298 (linux_low_ptrace_options): New function.
9299 (linux_low_filter_event): Call linux_low_ptrace_options,
9300 use different argument fo linux_enable_event_reporting,
9301 use return value from handle_extended_wait.
9302 (extended_event_reported): New function.
9303 (linux_wait_1): Call extended_event_reported and set
9304 status to report fork events.
9305 (linux_write_memory): Add pid to debug message.
9306 (reset_lwp_ptrace_options_callback): New function.
9307 (linux_handle_new_gdb_connection): New function.
9308 (linux_target_ops): Initialize new structure member.
9309 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9310 * lynx-low.c: Initialize new structure member.
9311 * remote-utils.c (prepare_resume_reply): Implement stop reason
9312 "fork" for "T" stop message.
9313 * server.c (handle_query): Call handle_new_gdb_connection.
9314 * server.h (report_fork_events): Declare global flag.
9315 * target.h (struct target_ops) <handle_new_gdb_connection>:
9317 (target_handle_new_gdb_connection): New macro.
9318 * win32-low.c: Initialize new structure member.
9320 2015-05-12 Don Breazeal <donb@codesourcery.com>
9322 * mem-break.c (APPEND_TO_LIST): Define macro.
9323 (clone_agent_expr): New function.
9324 (clone_one_breakpoint): New function.
9325 (clone_all_breakpoints): New function.
9326 * mem-break.h: Declare new functions.
9328 2015-05-12 Don Breazeal <donb@codesourcery.com>
9330 * linux-low.c (linux_supports_fork_events): New function.
9331 (linux_supports_vfork_events): New function.
9332 (linux_target_ops): Initialize new structure members.
9333 (initialize_low): Call linux_check_ptrace_features.
9334 * lynx-low.c (lynx_target_ops): Initialize new structure
9336 * server.c (report_fork_events, report_vfork_events):
9338 (handle_query): Add new features to qSupported packet and
9340 (captured_main): Initialize new global variables.
9341 * target.h (struct target_ops) <supports_fork_events>:
9343 <supports_vfork_events>: New member.
9344 (target_supports_fork_events): New macro.
9345 (target_supports_vfork_events): New macro.
9346 * win32-low.c (win32_target_ops): Initialize new structure
9349 2015-05-12 Gary Benson <gbenson@redhat.com>
9351 * server.c (handle_qxfer_exec_file): Use current process
9354 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9356 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9357 Remove HAVE_PTRACE_GETREGS conditionals.
9358 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9359 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9361 2015-05-08 Yao Qi <yao.qi@linaro.org>
9363 * linux-low.c (linux_supports_conditional_breakpoints): New
9365 (linux_target_ops): Install new target method.
9366 * lynx-low.c (lynx_target_ops): Install NULL hook for
9367 supports_conditional_breakpoints.
9368 * nto-low.c (nto_target_ops): Likewise.
9369 * spu-low.c (spu_target_ops): Likewise.
9370 * win32-low.c (win32_target_ops): Likewise.
9371 * server.c (handle_query): Check
9372 target_supports_conditional_breakpoints.
9373 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9375 (target_supports_conditional_breakpoints): New macro.
9377 2015-05-06 Pedro Alves <palves@redhat.com>
9380 * server.c (start_inferior): If the process exits, mourn it.
9382 2015-04-21 Gary Benson <gbenson@redhat.com>
9384 * hostio.c (fileio_open_flags_to_host): Factored out to
9385 fileio_to_host_openflags in common/fileio.c. Single use
9388 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9390 * linux-xtensa-low.c (xtensa_fill_gregset)
9391 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9394 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9396 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9397 (regs_info): Replace usrregs pointer with NULL.
9399 2015-04-17 Gary Benson <gbenson@redhat.com>
9401 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9402 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9403 * server.c (handle_qxfer_exec_file): New function.
9404 (qxfer_packets): Add exec-file entry.
9405 (handle_query): Report qXfer:exec-file:read as supported packet.
9407 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9409 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9411 2015-04-09 Gary Benson <gbenson@redhat.com>
9413 * hostio-errno.c (errno_to_fileio_error): Remove function.
9414 Update caller to use remote_fileio_to_fio_error.
9416 2015-04-09 Yao Qi <yao.qi@linaro.org>
9418 * linux-low.c (linux_insert_point): Call
9419 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
9420 (linux_remove_point): Call remove_memory_breakpoint if type is
9422 * linux-x86-low.c (x86_insert_point): Don't call
9423 insert_memory_breakpoint.
9424 (x86_remove_point): Don't call remove_memory_breakpoint.
9426 2015-04-01 Pedro Alves <palves@redhat.com>
9427 Cleber Rosa <crosa@redhat.com>
9429 * server.c (gdbserver_usage): Reorganize and extend the usage
9432 2015-03-24 Pedro Alves <palves@redhat.com>
9434 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
9435 output. Also dump TRAP_TRACE.
9436 (linux_low_filter_event): In debug output, distinguish a
9437 resume_stop SIGSTOP from a delayed SIGSTOP.
9439 2015-03-24 Gary Benson <gbenson@redhat.com>
9441 * linux-x86-low.c (x86_linux_new_thread): Moved to
9443 (x86_linux_prepare_to_resume): Likewise.
9445 2015-03-24 Gary Benson <gbenson@redhat.com>
9447 * Makefile.in (x86-linux-dregs.o): New rule.
9448 * configure.srv: Add x86-linux-dregs.o to relevant targets.
9449 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
9450 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9451 (x86_linux_dr_get): Likewise.
9452 (x86_linux_dr_set): Likewise.
9453 (update_debug_registers_callback): Likewise.
9454 (x86_linux_dr_set_addr): Likewise.
9455 (x86_linux_dr_get_addr): Likewise.
9456 (x86_linux_dr_set_control): Likewise.
9457 (x86_linux_dr_get_control): Likewise.
9458 (x86_linux_dr_get_status): Likewise.
9459 (x86_linux_update_debug_registers): Likewise.
9461 2015-03-24 Gary Benson <gbenson@redhat.com>
9463 * linux-x86-low.c (x86_linux_update_debug_registers):
9464 New function, factored out from...
9465 (x86_linux_prepare_to_resume): ...this.
9467 2015-03-24 Gary Benson <gbenson@redhat.com>
9469 * linux-x86-low.c (x86_linux_dr_get): Update comments.
9470 (x86_linux_dr_set): Likewise.
9471 (update_debug_registers_callback): Likewise.
9472 (x86_linux_dr_set_addr): Likewise.
9473 (x86_linux_dr_get_addr): Likewise.
9474 (x86_linux_dr_set_control): Likewise.
9475 (x86_linux_dr_get_control): Likewise.
9476 (x86_linux_dr_get_status): Likewise.
9477 (x86_linux_prepare_to_resume): Likewise.
9479 2015-03-24 Gary Benson <gbenson@redhat.com>
9481 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
9482 Use perror_with_name. Pass string through gettext.
9483 (x86_linux_dr_set): Likewise.
9485 2015-03-24 Gary Benson <gbenson@redhat.com>
9487 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
9488 (x86_linux_dr_set_addr): ...this.
9489 (x86_dr_low_get_addr): Rename to...
9490 (x86_linux_dr_get_addr): ...this.
9491 (x86_dr_low_set_control): Rename to...
9492 (x86_linux_dr_set_control): ...this.
9493 (x86_dr_low_get_control): Rename to...
9494 (x86_linux_dr_get_control): ...this.
9495 (x86_dr_low_get_status): Rename to...
9496 (x86_linux_dr_get_status): ...this.
9497 (x86_dr_low): Update with new function names.
9499 2015-03-24 Gary Benson <gbenson@redhat.com>
9501 * Makefile.in (x86-linux.o): New rule.
9502 * configure.srv: Add x86-linux.o to relevant targets.
9503 * linux-low.c (lwp_set_arch_private_info): New function.
9504 (lwp_arch_private_info): Likewise.
9505 * linux-x86-low.c: Include nat/x86-linux.h.
9506 (arch_lwp_info): Removed structure.
9507 (update_debug_registers_callback):
9508 Use lwp_set_debug_registers_changed.
9509 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9510 and lwp_set_debug_registers_changed.
9511 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9513 2015-03-24 Gary Benson <gbenson@redhat.com>
9515 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
9516 * linux-arm-low.c (arm_new_thread): Likewise.
9517 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
9518 * linux-mips-low.c (mips_linux_new_thread): Likewise.
9519 * linux-x86-low.c (x86_linux_new_thread): Likewise.
9520 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
9522 2015-03-24 Gary Benson <gbenson@redhat.com>
9524 * linux-low.c (ptid_of_lwp): New function.
9525 (lwp_is_stopped): Likewise.
9526 (lwp_stop_reason): Likewise.
9527 * linux-x86-low.c (update_debug_registers_callback):
9529 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9532 2015-03-24 Gary Benson <gbenson@redhat.com>
9534 * linux-low.h (linux_stop_lwp): Remove declaration.
9536 2015-03-24 Gary Benson <gbenson@redhat.com>
9538 * linux-low.h: Include nat/linux-nat.h.
9539 * linux-low.c (iterate_over_lwps_args): New structure.
9540 (iterate_over_lwps_filter): New function.
9541 (iterate_over_lwps): Likewise.
9542 * linux-x86-low.c (update_debug_registers_callback):
9543 Update signature to what iterate_over_lwps expects.
9544 Remove PID check that iterate_over_lwps now performs.
9545 (x86_dr_low_set_addr): Use iterate_over_lwps.
9546 (x86_dr_low_set_control): Likewise.
9548 2015-03-24 Gary Benson <gbenson@redhat.com>
9550 * linux-x86-low.c (x86_debug_reg_state): New function.
9551 (x86_linux_prepare_to_resume): Use the above.
9553 2015-03-24 Gary Benson <gbenson@redhat.com>
9555 * linux-low.c (current_lwp_ptid): New function.
9556 * linux-x86-low.c: Include nat/linux-nat.h.
9557 (x86_dr_low_get_addr): Use current_lwp_ptid.
9558 (x86_dr_low_get_control): Likewise.
9559 (x86_dr_low_get_status): Likewise.
9561 2015-03-20 Pedro Alves <palves@redhat.com>
9563 * tracepoint.c (cmd_qtstatus): Make "str" const.
9565 2015-03-20 Pedro Alves <palves@redhat.com>
9567 * server.c (handle_general_set): Make "req_str" const.
9569 2015-03-19 Pedro Alves <palves@redhat.com>
9571 * linux-low.c (linux_resume_one_lwp): Rename to ...
9572 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9573 instead call perror_with_name.
9574 (check_ptrace_stopped_lwp_gone): New function.
9575 (linux_resume_one_lwp): Reimplement as wrapper around
9576 linux_resume_one_lwp_throw that swallows errors if the LWP is
9579 2015-03-19 Pedro Alves <palves@redhat.com>
9581 * linux-low.c (count_events_callback, select_event_lwp_callback):
9582 No longer check whether the thread has resume_stop as last resume
9585 2015-03-19 Pedro Alves <palves@redhat.com>
9587 * linux-low.c (count_events_callback, select_event_lwp_callback):
9588 Use the lwp's status_pending_p field, not the thread's.
9590 2015-03-19 Pedro Alves <palves@redhat.com>
9592 * linux-low.c (select_event_lwp_callback): Update comments to
9593 no longer mention SIGTRAP.
9595 2015-03-18 Gary Benson <gbenson@redhat.com>
9597 * server.c (handle_query): Do not report vFile:fstat as supported.
9599 2015-03-11 Gary Benson <gbenson@redhat.com>
9601 * hostio.c (sys/types.h): New include.
9602 (sys/stat.h): Likewise.
9603 (common-remote-fileio.h): Likewise.
9604 (handle_fstat): New function.
9605 (handle_vFile): Handle vFile:fstat packets.
9607 2015-03-11 Gary Benson <gbenson@redhat.com>
9609 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9610 struct stat.st_blocks and struct stat.st_blksize.
9611 * configure: Regenerate.
9612 * config.in: Likewise.
9613 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9614 (OBS): Add common-remote-fileio.o.
9615 (common-remote-fileio.o): New rule.
9617 2015-03-09 Pedro Alves <palves@redhat.com>
9619 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9620 'struct sockaddr' pointer in 'accept' call.
9622 2015-03-09 Pedro Alves <palves@redhat.com>
9625 2015-03-07 Pedro Alves <palves@redhat.com>
9626 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9627 or <winsock2.h> here. Instead include "gdb_socket.h".
9628 (remote_open): Use union gdb_sockaddr_u.
9629 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9630 or <winsock2.h> here. Instead include "gdb_socket.h".
9631 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9632 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9634 (init_named_socket, gdb_agent_helper_thread): Use union
9637 2015-03-07 Pedro Alves <palves@redhat.com>
9639 * configure.ac (build_warnings): Move
9640 -Wdeclaration-after-statement to the C-specific set.
9641 * configure: Regenerate.
9643 2015-03-07 Pedro Alves <palves@redhat.com>
9645 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9646 or <winsock2.h> here. Instead include "gdb_socket.h".
9647 (remote_open): Use union gdb_sockaddr_u.
9648 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9649 or <winsock2.h> here. Instead include "gdb_socket.h".
9650 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9651 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9653 (init_named_socket, gdb_agent_helper_thread): Use union
9656 2015-03-07 Pedro Alves <palves@redhat.com>
9658 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9661 2015-03-06 Yao Qi <yao.qi@linaro.org>
9663 * linux-aarch64-low.c (aarch64_insert_point): Use
9664 show_debug_regs as a boolean.
9665 (aarch64_remove_point): Likewise.
9667 2015-03-05 Pedro Alves <palves@redhat.com>
9669 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9670 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9671 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9672 * nto-low.c (nto_target_ops): Likewise.
9673 * spu-low.c (spu_target_ops): Likewise.
9674 * win32-low.c (win32_target_ops): Likewise.
9676 2015-03-04 Pedro Alves <palves@redhat.com>
9678 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9679 Decide whether a breakpoint triggered based on the SIGTRAP's
9681 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9682 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9683 (linux_low_filter_event): Check for breakpoints before checking
9685 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9687 (linux_stopped_by_sw_breakpoint)
9688 (linux_supports_stopped_by_sw_breakpoint)
9689 (linux_stopped_by_hw_breakpoint)
9690 (linux_supports_stopped_by_hw_breakpoint): New functions.
9691 (linux_target_ops): Install new target methods.
9693 2015-03-04 Pedro Alves <palves@redhat.com>
9695 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9696 * server.c (swbreak_feature, hwbreak_feature): New globals.
9697 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9698 (captured_main): Clear swbreak_feature and hwbreak_feature.
9699 * server.h (swbreak_feature, hwbreak_feature): Declare.
9700 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9701 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9702 supports_stopped_by_hw_breakpoint>: New fields.
9703 (target_supports_stopped_by_sw_breakpoint)
9704 (target_stopped_by_sw_breakpoint)
9705 (target_supports_stopped_by_hw_breakpoint)
9706 (target_stopped_by_hw_breakpoint): Declare.
9708 2015-03-04 Pedro Alves <palves@redhat.com>
9710 enum lwp_stop_reason -> enum target_stop_reason
9711 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9712 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9713 (linux_wait_1, stuck_in_jump_pad_callback)
9714 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9715 (linux_stopped_by_watchpoint):
9716 * linux-low.h (enum lwp_stop_reason): Delete.
9717 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9718 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9720 2015-03-04 Yao Qi <yao.qi@linaro.org>
9722 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9724 2015-03-03 Gary Benson <gbenson@redhat.com>
9726 * hostio.c (handle_vFile): Fix prefix lengths.
9728 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9730 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9733 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9735 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9736 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9737 (clean): Add "rm -f" for above C files.
9738 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9739 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9740 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9741 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9742 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9743 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9744 (init_registers_s390x_vx_linux64)
9745 (init_registers_s390x_tevx_linux64)
9746 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9747 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9749 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9750 (s390_store_vxrs_high): New functions.
9751 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9753 (s390_arch_setup): Add logic for selecting one of the new target
9754 descriptions. Activate the new vector regsets if applicable.
9755 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9756 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9757 and init_registers_s390x_tevx_linux64.
9759 2015-03-01 Pedro Alves <palves@redhat.com>
9761 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9764 2015-02-27 Pedro Alves <palves@redhat.com>
9766 * linux-x86-low.c (u_debugreg_offset): New function.
9767 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9769 2015-02-27 Pedro Alves <palves@redhat.com>
9771 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9772 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9773 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9774 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9775 (ps_lsetfpregs, ps_getpid)
9776 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9777 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9778 (ps_lsetxregs, ps_plog): Declare.
9780 2015-02-27 Pedro Alves <palves@redhat.com>
9782 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9783 IP_AGENT_EXPORT_FUNC.
9784 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9785 IP_AGENT_EXPORT_FUNC.
9786 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9787 (IP_AGENT_EXPORT): Delete.
9788 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9789 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9790 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9791 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9792 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9793 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9794 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9795 (traceframe_read_count, traceframe_write_count)
9796 (traceframes_created, trace_state_variables, get_raw_reg)
9797 (get_trace_state_variable_value, set_trace_state_variable_value)
9798 (ust_loaded, helper_thread_id, cmd_buf): Use
9799 IPA_SYM_EXPORTED_NAME.
9800 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9801 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9802 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9803 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9804 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9805 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9806 EXTERN_C_PUSH/EXTERN_C_POP.
9807 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9808 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9809 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9810 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9811 (traceframe_write_count, traceframe_read_count)
9812 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9813 (about_to_request_buffer_space, get_trace_state_variable_value)
9814 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9815 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9816 EXTERN_C_PUSH/EXTERN_C_POP.
9817 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9818 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9819 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9820 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9821 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9822 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9823 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9824 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9826 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9827 (IP_AGENT_EXPORT_VAR_DECL): Define.
9829 (gdb_agent_get_raw_reg): Declare.
9831 2015-02-27 Tom Tromey <tromey@redhat.com>
9832 Pedro Alves <palves@redhat.com>
9834 Rename symbols whose names are reserved C++ keywords throughout.
9836 2015-02-27 Pedro Alves <palves@redhat.com>
9838 * Makefile.in (COMPILER): New, get it from autoconf.
9839 (CXX): Get from autoconf instead.
9840 (COMPILE.pre): Use COMPILER.
9841 (CC-LD): Rename to ...
9842 (CC_LD): ... this. Use COMPILER.
9843 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9844 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9845 * acinclude.m4: Include build-with-cxx.m4.
9846 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9847 Disable -Werror by default if building in C++ mode.
9848 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9849 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9850 the C++ compiler. Save/restore CXXFLAGS too.
9851 * configure: Regenerate.
9853 2015-02-27 Pedro Alves <palves@redhat.com>
9855 * acinclude.m4: Include libiberty.m4.
9856 * configure.ac: Call libiberty_INIT.
9857 * config.in, configure: Regenerate.
9859 2015-02-26 Pedro Alves <palves@redhat.com>
9861 * linux-low.c (linux_wait_1): When incrementing the PC past a
9862 program breakpoint always use the_low_target.breakpoint_len as
9863 increment, rather than the maximum between that and
9864 the_low_target.decr_pc_after_break.
9866 2015-02-23 Pedro Alves <palves@redhat.com>
9868 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9869 thread was doing a step-over; always adjust the PC if
9870 we stepped over a permanent breakpoint.
9871 (linux_wait_1): If we stepped over breakpoint that was on top of a
9872 permanent breakpoint, manually advance the PC past it.
9874 2015-02-23 Pedro Alves <palves@redhat.com>
9876 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9878 (x86_fill_gregset, x86_store_gregset): Use it when handling
9881 2015-02-20 Pedro Alves <palves@redhat.com>
9883 * thread-db.c: Include "nat/linux-procfs.h".
9884 (thread_db_init): Skip listing new threads if the kernel supports
9885 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9887 2015-02-20 Pedro Alves <palves@redhat.com>
9889 * linux-low.c (status_pending_p_callback): Use ptid_match.
9891 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9893 PR breakpoints/16812
9894 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9895 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9896 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9898 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9900 PR breakpoints/15956
9901 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9903 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9905 * linux-low.c (linux_low_btrace_conf): Print size.
9906 * server.c (handle_btrace_conf_general_set): New.
9907 (hanle_general_set): Call handle_btrace_conf_general_set.
9908 (handle_query): Report Qbtrace-conf:bts:size as supported.
9910 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9912 * linux-low.c (linux_low_enable_btrace): Update parameters.
9913 (linux_low_btrace_conf): New.
9914 (linux_target_ops)<to_btrace_conf>: Initialize.
9915 * server.c (current_btrace_conf): New.
9916 (handle_btrace_enable): Rename to ...
9917 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9918 to target_enable_btrace. Update comment. Update users.
9919 (handle_qxfer_btrace_conf): New.
9920 (qxfer_packets): Add btrace-conf entry.
9921 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9922 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9923 (target_ops)<read_btrace_conf>: New.
9924 (target_enable_btrace): Update parameters.
9925 (target_read_btrace_conf): New.
9927 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9929 * server.c (handle_btrace_general_set): Remove call to
9930 target_supports_btrace.
9931 (supported_btrace_packets): New.
9932 (handle_query): Call supported_btrace_packets.
9933 * target.h: include btrace-common.h.
9934 (btrace_target_info): Removed.
9935 (supports_btrace, target_supports_btrace): Update parameters.
9937 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9939 * Makefile.in (SFILES): Add common/btrace-common.c.
9940 (OBS): Add common/btrace-common.o.
9941 (btrace-common.o): Add build rules.
9942 * linux-low: Include btrace-common.h.
9943 (linux_low_read_btrace): Use struct btrace_data. Call
9944 btrace_data_init and btrace_data_fini.
9946 2015-02-06 Pedro Alves <palves@redhat.com>
9948 * thread-db.c (find_new_threads_callback): Add debug output.
9950 2015-02-04 Pedro Alves <palves@redhat.com>
9952 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9953 (resume_stopped_resumed_lwps): New function.
9954 (linux_wait_for_event_filtered): Use it.
9956 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9958 * Makefile.in (SFILES): Add linux-personality.c.
9959 (linux-personality.o): New rule.
9960 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9961 list of objects to be built.
9962 * linux-low.c: Include nat/linux-personality.h.
9963 (linux_create_inferior): Remove code to disable address space
9964 randomization (moved to ../nat/linux-personality.c). Create
9965 cleanup to disable address space randomization.
9967 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9969 * Makefile.in (posix-strerror.o): New rule.
9970 (mingw-strerror.o): Likewise.
9971 * configure: Regenerated.
9972 * configure.ac: Source file ../common/common.host. Initialize new
9973 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9975 2015-01-14 Yao Qi <yao@codesourcery.com>
9977 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9978 (ppc-linux.o): New rule.
9979 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9980 * configure.ac: AC_CHECK_FUNCS(getauxval).
9981 * config.in: Re-generated.
9982 * configure: Re-generated.
9983 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9984 ppc64_64bit_inferior_p
9986 2015-01-14 Yao Qi <yao@codesourcery.com>
9988 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9989 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9990 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9991 (PT_ORIG_R3, PT_TRAP): Likewise.
9992 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9993 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9994 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9996 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9998 * i387-fp.c (i387_cache_to_xsave): In look over
9999 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
10000 zmmh_low_space field by use of zmmh_high_space.
10002 2015-01-09 Pedro Alves <palves@redhat.com>
10004 * linux-low.c (step_over_bkpt): Move higher up in the file.
10005 (handle_extended_wait): Don't store the stop_pc here.
10006 (get_stop_pc): Adjust comments and rename to ...
10007 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10008 stopped for a software breakpoint or hardware breakpoint.
10009 (thread_still_has_status_pending_p): New function.
10010 (status_pending_p_callback): Use
10011 thread_still_has_status_pending_p. If the event is no longer
10012 interesting, resume the LWP.
10013 (handle_tracepoints): Add assert.
10014 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
10015 (wstatus_maybe_breakpoint): New function.
10016 (cancel_breakpoint): Delete function.
10017 (check_stopped_by_watchpoint): New function, factored out from
10018 linux_low_filter_event.
10019 (lp_status_maybe_breakpoint): Delete function.
10020 (linux_low_filter_event): Remove filter_ptid argument.
10021 Leave thread group exits pending here. Store the LWP's stop PC.
10022 Always leave events pending.
10023 (linux_wait_for_event_filtered): Pull all events out of the
10024 kernel, and leave them all pending.
10025 (count_events_callback, select_event_lwp_callback): Consider all
10027 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
10028 (select_event_lwp): Only give preference to the stepping LWP in
10029 all-stop mode. Adjust comments.
10030 (ignore_event): New function.
10031 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
10032 references to cancel_breakpoints. Adjust to renames. Also give
10033 equal priority to all LWPs that have had events in non-stop mode.
10034 If reporting a software breakpoint event, unadjust the LWP's PC.
10035 (linux_wait): If linux_wait_1 returned an ignored event, retry.
10036 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
10038 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
10039 (resume_status_pending_p): Use thread_still_has_status_pending_p.
10040 (linux_stopped_by_watchpoint): Adjust.
10041 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
10042 * linux-low.h (enum lwp_stop_reason): New.
10043 (struct lwp_info) <stop_pc>: Adjust comment.
10044 <stopped_by_watchpoint>: Delete field.
10045 <stop_reason>: New field.
10046 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10047 * mem-break.c (software_breakpoint_inserted_here)
10048 (hardware_breakpoint_inserted_here): New function.
10049 * mem-break.h (software_breakpoint_inserted_here)
10050 (hardware_breakpoint_inserted_here): Declare.
10051 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
10052 (cancel_breakpoints): Delete.
10053 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
10054 (upload_fast_traceframes): Remove references to
10055 cancel_breakpoints.
10057 2015-01-09 Pedro Alves <palves@redhat.com>
10059 * thread-db.c (find_new_threads_callback): Ignore thread if the
10060 kernel thread ID is -1.
10062 2015-01-09 Pedro Alves <palves@redhat.com>
10064 * linux-low.c (linux_attach_fail_reason_string): Move to
10065 nat/linux-ptrace.c, and rename.
10066 (linux_attach_lwp): Update comment.
10067 (attach_proc_task_lwp_callback): New function.
10068 (linux_attach): Adjust to rename and use
10069 linux_proc_attach_tgid_threads.
10070 (linux_attach_fail_reason_string): Delete declaration.
10072 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10074 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10075 * server.c (gdbserver_version): Likewise.
10077 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10079 * remote-utils.c: Include ctype.h.
10080 (input_interrupt): Explicitly handle the case when the char
10081 received is the NUL byte. Improve the printing of non-ASCII
10084 2014-12-16 Joel Brobecker <brobecker@adacore.com>
10086 * linux-low.c (linux_low_filter_event): Update call to
10087 linux_enable_event_reporting following the addition of
10088 a new parameter to that function.
10090 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
10093 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10094 (AARCH64_FPCR_REGNO): Likewise.
10095 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10096 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10097 (aarch64_store_fpregset): Likewise.
10099 2014-12-15 Joel Brobecker <brobecker@adacore.com>
10101 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10102 Remove FIXME comment about assumption about N.
10104 2014-12-13 Joel Brobecker <brobecker@adacore.com>
10106 * configure.ac: If large-file support is disabled in GDBserver,
10107 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10108 * configure: Regenerate.
10110 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10112 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10113 warning upon ENODATA from ptrace.
10114 * linux-s390-low.c (s390_store_tdb): New.
10115 (s390_regsets): Add regset for NT_S390_TDB.
10117 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10119 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10120 without a fill_function.
10121 * linux-s390-low.c (s390_fill_last_break): Remove.
10122 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10123 (s390_arch_setup): Use regset's size instead of fill_function for
10124 loop end condition.
10126 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10128 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10129 the regset's store function when ptrace returned an error.
10130 * regcache.c (get_thread_regcache): Invalidate register cache
10131 before fetching inferior's registers.
10133 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10135 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10136 while-loop as for-loop.
10137 (regsets_store_inferior_registers): Likewise.
10139 2014-11-28 Yao Qi <yao@codesourcery.com>
10141 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10142 * config.in, configure: Re-generate.
10143 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10146 2014-11-21 Yao Qi <yao@codesourcery.com>
10148 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10149 (AC_CHECK_HEADERS): Remove malloc.h.
10150 * configure: Re-generated.
10151 * config.in: Re-generated.
10152 * server.h: Don't include alloca.h and malloc.h.
10153 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10154 Don't include malloc.h.
10156 2014-11-17 Joel Brobecker <brobecker@adacore.com>
10158 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10159 corresponding ERRNO check in same block.
10161 2014-11-12 Pedro Alves <palves@redhat.com>
10163 * server.c (cont_thread): Update comment.
10164 (start_inferior, attach_inferior): No longer clear cont_thread.
10165 (handle_v_cont): No longer set cont_thread.
10166 (captured_main): Clear cont_thread each time a GDB connects.
10168 2014-11-12 Pedro Alves <palves@redhat.com>
10170 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10171 thread, and don't resume all threads if the Hc thread has exited.
10173 2014-11-12 Pedro Alves <palves@redhat.com>
10175 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10176 the process group instead of to a specific LWP.
10178 2014-10-15 Pedro Alves <palves@redhat.com>
10181 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10183 (arm_set_thread_context): Delete.
10184 (the_low_target): Adjust.
10185 * win32-i386-low.c (debug_registers_changed)
10186 (debug_registers_used): Delete.
10187 (update_debug_registers_callback): New function.
10188 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10189 needing to update their debug registers.
10190 (win32_get_current_dr): New function.
10191 (x86_dr_low_get_addr, x86_dr_low_get_control)
10192 (x86_dr_low_get_status): Fetch the debug register from the thread
10194 (i386_initial_stuff): Adjust.
10195 (i386_get_thread_context): Remove current_event parameter. Don't
10196 clear debug_registers_changed nor copy DR values to
10198 (i386_set_thread_context): Delete.
10199 (i386_prepare_to_resume): New function.
10200 (i386_thread_added): Mark the thread as needing to update irs
10202 (the_low_target): Remove i386_set_thread_context and install
10203 i386_prepare_to_resume.
10204 * win32-low.c (win32_get_thread_context): Adjust.
10205 (win32_set_thread_context): Use SetThreadContext
10207 (win32_prepare_to_resume): New function.
10208 (win32_require_context): New function, factored out from ...
10209 (thread_rec): ... this.
10210 (continue_one_thread): Call win32_prepare_to_resume on each thread
10211 we're about to continue.
10212 (win32_resume): Call win32_prepare_to_resume on the event thread.
10213 * win32-low.h (struct win32_thread_info)
10214 <debug_registers_changed>: New field.
10215 (struct win32_target_ops): Change prototype of set_thread_context,
10216 delete set_thread_context and add prepare_to_resume.
10217 (win32_require_context): New declaration.
10219 2014-10-08 Gary Benson <gbenson@redhat.com>
10221 * server.h: Do not include common-exceptions.h.
10223 2014-10-08 Gary Benson <gbenson@redhat.com>
10225 * server.h: Do not include cleanups.h.
10227 2014-09-30 James Hogan <james.hogan@imgtec.com>
10229 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10230 mips64-dsp-linux.c.
10232 2014-09-23 Yao Qi <yao@codesourcery.com>
10234 * linux-low.c (lp_status_maybe_breakpoint): New function.
10235 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10236 (count_events_callback): Likewise.
10237 (select_event_lwp_callback): Likewise.
10238 (cancel_breakpoints_callback): Likewise.
10240 2014-09-19 Don Breazeal <donb@codesourcery.com>
10242 * linux-low.c (handle_extended_wait): Call
10243 linux_ptrace_get_extended_event.
10244 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10245 linux_is_extended_waitstatus.
10247 2014-09-16 Joel Brobecker <brobecker@adacore.com>
10249 * Makefile.in (CPPFLAGS): Define.
10250 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10251 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10253 2014-09-16 Gary Benson <gbenson@redhat.com>
10255 * inferiors.h (current_inferior): Renamed as...
10256 (current_thread): New variable. All uses updated.
10257 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10258 (maybe_move_out_of_jump_pad): Likewise.
10259 (cancel_breakpoint): Likewise.
10260 (linux_low_filter_event): Likewise.
10261 (wait_for_sigstop): Likewise.
10262 (linux_resume_one_lwp): Likewise.
10263 (need_step_over_p): Likewise.
10264 (start_step_over): Likewise.
10265 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10266 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10267 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10268 and save_inferior as saved_thread.
10269 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10271 (regcache_invalidate_thread): Likewise.
10272 * remote-utils.c (prepare_resume_reply): Likewise.
10273 * thread-db.c (thread_db_get_tls_address): Likewise.
10274 (disable_thread_event_reporting): Likewise.
10275 (remove_thread_event_breakpoints): Likewise.
10276 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10278 * target.h (set_desired_inferior): Renamed as...
10279 (set_desired_thread): New declaration. All uses updated.
10280 * server.c (myresume): Updated comment to reference thread instead
10282 (handle_serial_event): Likewise.
10283 (handle_target_event): Likewise.
10285 2014-09-12 Tom Tromey <tromey@redhat.com>
10286 Gary Benson <gbenson@redhat.com>
10288 * regcache.h: Include common-regcache.h.
10289 (regcache_read_pc): Don't declare.
10290 * regcache.c (get_thread_regcache_for_ptid): New function.
10292 2014-09-11 Tom Tromey <tromey@redhat.com>
10293 Gary Benson <gbenson@redhat.com>
10295 * symbol.c: New file.
10296 * Makefile.in (SFILES): Add symbol.c.
10297 (OBS): Add symbol.o.
10299 2014-09-11 Gary Benson <gbenson@redhat.com>
10301 * target.c (target_stop_ptid, target_continue_ptid): New
10304 2014-09-11 Tom Tromey <tromey@redhat.com>
10305 Gary Benson <gbenson@redhat.com>
10307 * target.h: Include target/target.h.
10308 * target.c (target_read_memory, target_read_uint32)
10309 (target_write_memory): New functions.
10311 2014-09-11 Gary Benson <gbenson@redhat.com>
10313 * server.h (debug_hw_points): Don't declare.
10314 * server.c (debug_hw_points): Don't define. Replace all uses
10315 with show_debug_regs.
10316 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10317 all uses with show_debug_regs.
10319 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10321 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10322 endianness into account.
10323 (ppc_supply_ptrace_register): Likewise.
10325 2014-09-03 James Hogan <james.hogan@imgtec.com>
10327 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10328 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10330 2014-09-03 Gary Benson <gbenson@redhat.com>
10332 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10333 ALL_DEBUG_ADDRESS_REGISTERS.
10335 2014-09-02 Gary Benson <gbenson@redhat.com>
10337 * i386-low.h: Renamed as...
10338 * x86-low.h: New file. All type, function and variable name
10339 prefixes changed from "i386_" to "x86_". All references updated.
10340 * i386-low.c: Renamed as...
10341 * x86-low.c: New file. All type, function and variable name
10342 prefixes changed from "i386_" to "x86_". All references updated.
10344 2014-09-02 Gary Benson <gbenson@redhat.com>
10346 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10347 (x86_linux_new_thread): Likewise.
10349 2014-08-29 Gary Benson <gbenson@redhat.com>
10351 * server.h (setjmp.h): Do not include.
10352 (toplevel): Do not declare.
10353 (common-exceptions.h): Include.
10354 (cleanups.h): Likewise.
10355 * server.c (toplevel): Do not define.
10356 (exit_code): New static global.
10357 (detach_or_kill_for_exit_cleanup): New function.
10358 (main): New function. Original main renamed to...
10359 (captured_main): New function.
10360 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10362 2014-08-29 Gary Benson <gbenson@redhat.com>
10364 * Makefile.in (SFILES): Add common/common-exceptions.c.
10365 (OBS): Add common-exceptions.o.
10366 (common-exceptions.o): New rule.
10367 * utils.c (prepare_to_throw_exception): New function.
10369 2014-08-29 Gary Benson <gbenson@redhat.com>
10371 * config.in: Regenerate.
10372 * configure: Likewise.
10374 2014-08-29 Gary Benson <gbenson@redhat.com>
10376 * Makefile.in (SFILES): Add common/cleanups.c.
10378 (cleanups.o): New rule.
10380 2014-08-29 Gary Benson <gbenson@redhat.com>
10382 * utils.c (internal_vwarning): New function.
10384 2014-08-28 Gary Benson <gbenson@redhat.com>
10386 * utils.h (fatal): Remove declaration.
10387 * utils.c (fatal): Remove function.
10389 2014-08-28 Gary Benson <gbenson@redhat.com>
10391 * tracepoint.c (gdb_agent_init): Replace fatal with
10393 (initialize_tracepoint): Likewise.
10395 2014-08-28 Gary Benson <gbenson@redhat.com>
10397 * remote-utils.c (remote_prepare): Replace fatal with error.
10399 2014-08-28 Gary Benson <gbenson@redhat.com>
10401 * linux-low.c (linux_async): Replace fatal with warning.
10402 Tidy up and return.
10403 (linux_start_non_stop): Return -1 if linux_async failed.
10405 2014-08-28 Gary Benson <gbenson@redhat.com>
10407 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10409 (i386_dr_low_get_addr): Remove vague comment.
10410 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10413 2014-08-28 Gary Benson <gbenson@redhat.com>
10415 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10416 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10418 (linux_resume_one_lwp): Likewise.
10419 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10421 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
10422 with internal_error.
10423 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
10424 (init_register_cache): Replace fatal with gdb_assert_not_reached.
10425 (find_register_by_name): Replace fatal with internal_error.
10426 (find_regno): Likewise.
10427 * tdesc.c (init_target_desc): Replace check with gdb_assert.
10428 * thread-db.c (thread_db_create_event): Likewise.
10429 (thread_db_load_search): Likewise.
10430 (try_thread_db_load_1): Likewise.
10431 * tracepoint.c (get_jump_space_head): Replace fatal with
10433 (claim_trampoline_space): Likewise.
10434 (have_fast_tracepoint_trampoline_buffer): Likewise.
10435 (cmd_qtstart): Likewise.
10436 (stop_tracing): Likewise.
10437 (fast_tracepoint_collecting): Likewise.
10438 (target_malloc): Likewise.
10439 (download_tracepoint): Likewise.
10440 (download_trace_state_variables): Replace check with gdb_assert.
10441 (upload_fast_traceframes): Replace fatal with internal_error.
10443 2014-08-19 Tom Tromey <tromey@redhat.com>
10444 Gary Benson <gbenson@redhat.com>
10446 * Makefile.in (SFILES): Add common/common-debug.c.
10447 (OBS): Add common-debug.o.
10448 (common-debug.o): New rule.
10449 * debug.h (debug_printf): Don't declare.
10450 * debug.c (debug_printf): Renamed and rewritten as...
10451 (debug_vprintf): New function.
10453 2014-08-19 Gary Benson <gbenson@redhat.com>
10455 * utils.h: Do not include print-utils.h.
10457 2014-08-19 Tom Tromey <tromey@redhat.com>
10458 Gary Benson <gbenson@redhat.com>
10460 * server.h: Add static assertion.
10461 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
10463 2014-08-19 Tom Tromey <tromey@redhat.com>
10464 Gary Benson <gbenson@redhat.com>
10466 * Makefile.in (SFILES): Add common/errors.c.
10467 (OBS): Add errors.o.
10468 (IPA_OBS): Add errors-ipa.o.
10469 (errors.o): New rule.
10470 (errors-ipa.o): Likewise.
10471 * utils.h (perror_with_name, error, warning): Don't declare.
10472 * utils.c (warning): Renamed and rewritten as...
10473 (vwarning): New function.
10474 (error): Renamed and rewritten as...
10475 (verror): New function.
10476 (internal_error): Renamed and rewritten as...
10477 (internal_verror): New function.
10479 2014-08-07 Gary Benson <gbenson@redhat.com>
10481 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
10482 * configure: Regenerate.
10483 * config.in: Likewise.
10484 * server.h: Do not include errno.h.
10485 * event-loop.c: Likewise.
10486 * hostio-errno.c: Likewise.
10487 * linux-low.c: Likewise.
10488 * remote-utils.c: Likewise.
10489 * spu-low.c: Likewise.
10490 * utils.c: Likewise.
10491 * gdbreplay.c: Unconditionally include errno.h.
10493 2014-08-07 Gary Benson <gbenson@redhat.com>
10495 * server.h: Do not include string.h.
10496 * event-loop.c: Likewise.
10497 * linux-low.c: Likewise.
10498 * regcache.c: Likewise.
10499 * remote-utils.c: Likewise.
10500 * spu-low.c: Likewise.
10501 * utils.c: Likewise.
10503 2014-08-07 Gary Benson <gbenson@redhat.com>
10505 * server.h: Do not include gdb_assert.h.
10507 2014-08-07 Gary Benson <gbenson@redhat.com>
10509 * server.h: Do not include common-utils.h.
10511 2014-08-07 Gary Benson <gbenson@redhat.com>
10513 * server.h: Do not include ptid.h.
10514 * notif.h: Likewise.
10516 2014-08-07 Gary Benson <gbenson@redhat.com>
10518 * server.h: Do not include gdb_locale.h.
10520 2014-08-07 Gary Benson <gbenson@redhat.com>
10522 * server.h: Do not include gdb/signals.h.
10523 * win32-low.c: Likewise.
10525 2014-08-07 Gary Benson <gbenson@redhat.com>
10527 * server.h: Do not include pathmax.h.
10529 2014-08-07 Gary Benson <gbenson@redhat.com>
10531 * server.h: Do not include libiberty.h.
10532 * linux-bfin-low.c: Likewise.
10534 2014-08-07 Gary Benson <gbenson@redhat.com>
10536 * server.h: Do not include ansidecl.h.
10538 2014-08-07 Gary Benson <gbenson@redhat.com>
10540 * linux-x86-low.c: Do not include stddef.h.
10541 * lynx-ppc-low.c: Likewise.
10542 * tracepoint.c: Likewise.
10544 2014-08-07 Gary Benson <gbenson@redhat.com>
10546 * server.h: Do not include stdarg.h.
10547 * nto-low.c: Likewise.
10549 2014-08-07 Gary Benson <gbenson@redhat.com>
10551 * server.h: Do not include stdlib.h.
10552 * inferiors.c: Likewise.
10553 * linux-low.c: Likewise.
10554 * regcache.c: Likewise.
10555 * spu-low.c: Likewise.
10556 * tracepoint.c: Likewise.
10557 * utils.c: Likewise.
10559 2014-08-07 Gary Benson <gbenson@redhat.com>
10561 * server.h: Do not include stdio.h.
10562 * linux-low.c: Likewise.
10563 * remote-utils.c: Likewise.
10564 * spu-low.c: Likewise.
10565 * utils.c: Likewise.
10566 * wincecompat.c: Likewise.
10568 2014-08-06 Gary Benson <gbenson@redhat.com>
10570 * regcache.c (init_register_cache): Move conditionals inside if.
10572 2014-08-06 Gary Benson <gbenson@redhat.com>
10574 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10576 2014-07-31 Gary Benson <gbenson@redhat.com>
10578 * ax.h: Do not include server.h.
10579 * gdbthread.h: Likewise.
10580 * lynx-low.h: Likewise.
10581 * notif.h: Likewise.
10583 2014-07-30 Gary Benson <gbenson@redhat.com>
10585 * server.h: Include common-defs.h.
10586 Do not include config.h or build-gnulib-gdbserver/config.h.
10588 2014-07-30 Gary Benson <gbenson@redhat.com>
10590 * hostio-errno.c: Move server.h to top of includes list.
10591 * inferiors.c: Likewise.
10592 * linux-x86-low.c: Likewise.
10593 * notif.c: Include server.h.
10595 2014-07-24 Tom Tromey <tromey@redhat.com>
10596 Gary Benson <gbenson@redhat.com>
10598 * server.h (CORE_ADDR): Now unsigned.
10600 2014-07-16 Pedro Alves <palves@redhat.com>
10602 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10604 2014-07-15 Pedro Alves <palves@redhat.com>
10606 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10609 2014-07-11 Pedro Alves <palves@redhat.com>
10611 * linux-low.c (kill_wait_lwp): New function, based on
10612 kill_one_lwp_callback, but use my_waitpid directly.
10613 (kill_one_lwp_callback, linux_kill): Use it.
10615 2014-06-23 Pedro Alves <palves@redhat.com>
10617 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10618 before setting DR0..DR3.
10620 2014-06-20 Gary Benson <gbenson@redhat.com>
10622 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10623 * configure: Regenerated.
10624 * config.in: Likewise.
10626 2014-06-20 Gary Benson <gbenson@redhat.com>
10628 * Makefile.in (SFILES): Update locations for files moved
10629 from common to nat.
10630 (object file files): Reordered.
10632 2014-06-20 Gary Benson <gbenson@redhat.com>
10634 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10635 (i386_dr_low_set_addr): Likewise.
10636 (i386_dr_low_get_addr): Likewise.
10637 (i386_dr_low_can_set_control): Likewise.
10638 (i386_dr_low_set_control): Likewise.
10639 (i386_dr_low_get_control): Likewise.
10640 (i386_dr_low_get_status): Likewise.
10641 (i386_get_debug_register_length): Likewise.
10642 * linux-x86-low.c (i386_dr_low_set_addr):
10643 Changed signature. Made static.
10644 (i386_dr_low_get_addr): Likewise.
10645 (i386_dr_low_set_control): Likewise.
10646 (i386_dr_low_get_control): Likewise.
10647 (i386_dr_low_get_status): Likewise.
10648 (i386_dr_low): New global variable.
10649 * win32-i386-low.c (i386_dr_low_set_addr):
10650 Changed signature. Made static.
10651 (i386_dr_low_get_addr): Likewise.
10652 (i386_dr_low_set_control): Likewise.
10653 (i386_dr_low_get_control): Likewise.
10654 (i386_dr_low_get_status): Likewise.
10655 (i386_dr_low): New global variable.
10657 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10659 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10660 * Makefile.in (AR, AR_FLAGS): Define.
10661 * configure: Regenerate.
10663 2014-06-19 Gary Benson <gbenson@redhat.com>
10665 * Makefile.in (i386-dregs.o): New rule.
10666 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10667 * i386-low.c (target.h): Remove include.
10668 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10669 (DR_CONTROL_SHIFT): Likewise.
10670 (DR_CONTROL_SIZE): Likewise.
10671 (DR_RW_EXECUTE): Likewise.
10672 (DR_RW_WRITE): Likewise.
10673 (DR_RW_READ): Likewise.
10674 (DR_RW_IORW): Likewise.
10675 (DR_LEN_1): Likewise.
10676 (DR_LEN_2): Likewise.
10677 (DR_LEN_4): Likewise.
10678 (DR_LEN_8): Likewise.
10679 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10680 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10681 (DR_ENABLE_SIZE): Likewise.
10682 (DR_LOCAL_SLOWDOWN): Likewise.
10683 (DR_GLOBAL_SLOWDOWN): Likewise.
10684 (DR_CONTROL_RESERVED): Likewise.
10685 (I386_DR_CONTROL_MASK): Likewise.
10686 (I386_DR_VACANT): Likewise.
10687 (I386_DR_LOCAL_ENABLE): Likewise.
10688 (I386_DR_GLOBAL_ENABLE): Likewise.
10689 (I386_DR_DISABLE): Likewise.
10690 (I386_DR_SET_RW_LEN): Likewise.
10691 (I386_DR_GET_RW_LEN): Likewise.
10692 (I386_DR_WATCH_HIT): Likewise.
10693 (i386_wp_op_t): Likewise.
10694 (i386_show_dr): Likewise.
10695 (i386_length_and_rw_bits): Likewise.
10696 (i386_insert_aligned_watchpoint): Likewise.
10697 (i386_remove_aligned_watchpoint): Likewise.
10698 (i386_handle_nonaligned_watchpoint): Likewise.
10699 i386_update_inferior_debug_regs(): Likewise.
10700 (i386_dr_insert_watchpoint): Likewise.
10701 (i386_dr_remove_watchpoint): Likewise.
10702 (i386_dr_region_ok_for_watchpoint): Likewise.
10703 (i386_dr_stopped_data_address): Likewise.
10704 (i386_dr_stopped_by_watchpoint): Likewise.
10706 2014-06-19 Gary Benson <gbenson@redhat.com>
10708 * i386-low.c (i386_dr_show): Renamed to
10709 i386_show_dr and made static. All uses updated.
10710 (i386_dr_length_and_rw_bits): Renamed to
10711 i386_length_and_rw_bits and made static.
10713 (i386_dr_insert_aligned_watchpoint): Renamed to
10714 i386_insert_aligned_watchpoint and made static.
10716 (i386_dr_remove_aligned_watchpoint): Renamed to
10717 i386_remove_aligned_watchpoint and made static.
10719 (i386_dr_update_inferior_debug_regs): Renamed to
10720 i386_update_inferior_debug_regs and made static.
10723 2014-06-18 Gary Benson <gbenson@redhat.com>
10725 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10726 (i386_dr_low_can_set_control): Likewise.
10727 (i386_get_debug_register_length): Likewise.
10728 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10729 (i386_dr_low_can_set_control): Likewise.
10730 (i386_get_debug_register_length): Likewise.
10732 2014-06-17 Gary Benson <gbenson@redhat.com>
10734 * i386-low.h (i386-dregs.h): New include.
10735 (DR_FIRSTADDR): Now in i386-dregs.h.
10736 (DR_LASTADDR): Likewise.
10737 (DR_NADDR): Likewise.
10738 (DR_STATUS): Likewise.
10739 (DR_CONTROL): Likewise.
10740 (i386_debug_reg_state): Likewise.
10741 (i386_dr_insert_watchpoint): Likewise.
10742 (i386_dr_remove_watchpoint): Likewise.
10743 (i386_dr_region_ok_for_watchpoint): Likewise.
10744 (i386_dr_stopped_data_address): Likewise.
10745 (i386_dr_stopped_by_watchpoint): Likewise.
10746 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10748 2014-06-18 Gary Benson <gbenson@redhat.com>
10750 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10751 i386_dr_insert_watchpoint.
10752 (i386_low_remove_watchpoint): Renamed to
10753 i386_dr_remove_watchpoint.
10754 (i386_low_region_ok_for_watchpoint): Renamed to
10755 i386_dr_region_ok_for_watchpoint.
10756 (i386_low_stopped_data_address): Renamed to
10757 i386_dr_stopped_data_address.
10758 (i386_low_stopped_by_watchpoint): Renamed to
10759 i386_dr_stopped_by_watchpoint.
10760 * i386-low.c (i386_show_dr): Renamed to
10761 i386_dr_show and made nonstatic. All uses updated.
10762 (i386_length_and_rw_bits): Renamed to
10763 i386_dr_length_and_rw_bits and made nonstatic.
10765 (i386_insert_aligned_watchpoint): Renamed to
10766 i386_dr_insert_aligned_watchpoint and made nonstatic.
10768 (i386_remove_aligned_watchpoint): Renamed to
10769 i386_dr_remove_aligned_watchpoint and made nonstatic.
10771 (i386_update_inferior_debug_regs): Renamed to
10772 i386_dr_update_inferior_debug_regs and made nonstatic.
10774 (i386_low_insert_watchpoint): Renamed to
10775 i386_dr_insert_watchpoint. All uses updated.
10776 (i386_low_remove_watchpoint): Renamed to
10777 i386_dr_remove_watchpoint. All uses updated.
10778 (i386_low_region_ok_for_watchpoint): Renamed to
10779 i386_dr_region_ok_for_watchpoint. All uses updated.
10780 (i386_low_stopped_data_address): Renamed to
10781 i386_dr_stopped_data_address. All uses updated.
10782 (i386_low_stopped_by_watchpoint): Renamed to
10783 i386_dr_stopped_by_watchpoint. All uses updated.
10785 2014-06-18 Gary Benson <gbenson@redhat.com>
10787 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10788 (i386_dr_low_can_set_control): Likewise.
10789 (i386_insert_aligned_watchpoint): New check.
10791 2014-06-18 Gary Benson <gbenson@redhat.com>
10793 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10796 2014-06-18 Gary Benson <gbenson@redhat.com>
10798 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10799 instead of fatal and error.
10800 (i386_handle_nonaligned_watchpoint): Likewise.
10802 2014-06-18 Gary Benson <gbenson@redhat.com>
10804 * i386-low.c (i386_get_debug_register_length): New macro.
10805 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10806 (i386_show_dr): Use debug_printf instead of fprintf. Use
10807 phex to format values.
10809 2014-06-18 Gary Benson <gbenson@redhat.com>
10811 * i386-low.h: Comment changes.
10812 * i386-low.c: Likewise.
10814 2014-06-18 Gary Benson <gbenson@redhat.com>
10816 * i386-low.c: Whitespace changes.
10818 2014-06-12 Tom Tromey <tromey@redhat.com>
10820 * utils.c (freeargv): Remove.
10822 2014-06-12 Tom Tromey <tromey@redhat.com>
10824 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10825 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10826 (parse_debug_format_options): Likewise.
10827 (gdbserver_usage): Likewise.
10828 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10829 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10830 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10832 ($(LIBGNU)): Depend on libiberty.
10833 (all-lib): Recurse into all subdirs.
10834 (install-only): Invoke "install" target in subdirs.
10835 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10837 * configure: Rebuild.
10838 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10839 for vasprintf, vsnprintf, or gettimeofday.
10840 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10843 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10845 * development.sh: Delete.
10846 * Makefile.in (config.status): Adjust dependency on development.sh.
10847 * configure.ac: Adjust development.sh source call.
10848 * configure: Regenerate.
10850 2014-06-02 Pedro Alves <palves@redhat.com>
10852 * ax.c (gdb_free_agent_expr): New function.
10853 * ax.h (gdb_free_agent_expr): New declaration.
10854 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10856 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10858 (clear_breakpoint_conditions_and_commands): New function.
10859 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10860 (clear_breakpoint_conditions_and_commands): New declaration.
10862 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10864 * linux-aarch64-low.c (asm/ptrace.h): Include.
10866 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10868 Fix TLS access for -static -pthread.
10869 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10870 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10871 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10873 2014-05-20 Pedro Alves <palves@redhat.com>
10875 * linux-aarch64-low.c (aarch64_insert_point)
10876 (aarch64_remove_point): No longer check whether the type is
10877 supported here. Adjust to new interface.
10878 (the_low_target): Install aarch64_supports_z_point_type as
10879 supports_z_point_type method.
10880 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10881 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10882 instead of a Z packet char. Adjust.
10883 (arm_supports_z_point_type): New function.
10884 (arm_insert_point, arm_remove_point): Adjust to new interface.
10885 (the_low_target): Install arm_supports_z_point_type.
10886 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10887 (cris_insert_point, cris_remove_point): Adjust to new interface.
10888 Don't check whether the type is supported here.
10889 (the_low_target): Install cris_supports_z_point_type.
10890 * linux-low.c (linux_supports_z_point_type): New function.
10891 (linux_insert_point, linux_remove_point): Adjust to new interface.
10892 * linux-low.h (struct linux_target_ops) <insert_point,
10893 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10894 raw_breakpoint pointer parameter.
10895 <supports_z_point_type>: New method.
10896 * linux-mips-low.c (mips_supports_z_point_type): New function.
10897 (mips_insert_point, mips_remove_point): Adjust to new interface.
10898 Use mips_supports_z_point_type.
10899 (the_low_target): Install mips_supports_z_point_type.
10900 * linux-ppc-low.c (the_low_target): Install NULL as
10901 supports_z_point_type method.
10902 * linux-s390-low.c (the_low_target): Install NULL as
10903 supports_z_point_type method.
10904 * linux-sparc-low.c (the_low_target): Install NULL as
10905 supports_z_point_type method.
10906 * linux-x86-low.c (x86_supports_z_point_type): New function.
10907 (x86_insert_point): Adjust to new insert_point interface. Use
10908 insert_memory_breakpoint. Adjust to new
10909 i386_low_insert_watchpoint interface.
10910 (x86_remove_point): Adjust to remove_point interface. Use
10911 remove_memory_breakpoint. Adjust to new
10912 i386_low_remove_watchpoint interface.
10913 (the_low_target): Install x86_supports_z_point_type.
10914 * lynx-low.c (lynx_target_ops): Install NULL as
10915 supports_z_point_type callback.
10916 * nto-low.c (nto_supports_z_point_type): New.
10917 (nto_insert_point, nto_remove_point): Adjust to new interface.
10918 (nto_target_ops): Install nto_supports_z_point_type.
10919 * mem-break.c: Adjust intro comment.
10920 (struct raw_breakpoint) <raw_type, size>: New fields.
10921 <inserted>: Update comment.
10922 <shlib_disabled>: Delete field.
10923 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10924 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10925 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10926 (raw_bkpt_type_to_target_hw_bp_type): New function.
10927 (find_enabled_raw_code_breakpoint_at): New function.
10928 (find_raw_breakpoint_at): New type and size parameters. Use them.
10929 (insert_memory_breakpoint): New function, based off
10930 set_raw_breakpoint_at.
10931 (remove_memory_breakpoint): New function.
10932 (set_raw_breakpoint_at): Reimplement.
10933 (set_breakpoint): New, based on set_breakpoint_at.
10934 (set_breakpoint_at): Reimplement.
10935 (delete_raw_breakpoint): Go through the_target->remove_point
10936 instead of assuming memory breakpoints.
10937 (find_gdb_breakpoint_at): Delete.
10938 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10939 (find_gdb_breakpoint): New function.
10940 (set_gdb_breakpoint_at): Delete.
10941 (z_type_supported): New function.
10942 (set_gdb_breakpoint_1): New function, loosely based off
10943 set_gdb_breakpoint_at.
10944 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10945 (delete_gdb_breakpoint_at): Delete.
10946 (delete_gdb_breakpoint_1): New function, loosely based off
10947 delete_gdb_breakpoint_at.
10948 (delete_gdb_breakpoint): New function.
10949 (clear_gdb_breakpoint_conditions): Rename to ...
10950 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10952 (add_condition_to_breakpoint): Make static.
10953 (add_breakpoint_condition): Take a struct breakpoint pointer
10954 instead of an address. Adjust.
10955 (gdb_condition_true_at_breakpoint): Rename to ...
10956 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10958 (gdb_condition_true_at_breakpoint): Reimplement.
10959 (add_breakpoint_commands): Take a struct breakpoint pointer
10960 instead of an address. Adjust.
10961 (gdb_no_commands_at_breakpoint): Rename to ...
10962 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10963 parameter. Return true if no breakpoint was found. Change debug
10965 (gdb_no_commands_at_breakpoint): Reimplement.
10966 (run_breakpoint_commands): Rename to ...
10967 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10968 and change return type to boolean.
10969 (run_breakpoint_commands): New function.
10970 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10971 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10972 breakpoint. Go through the_target->remove_point instead of
10973 assuming memory breakpoint.
10974 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10975 software and hardware breakpoints.
10976 (reinsert_raw_breakpoint): Go through the_target->insert_point
10977 instead of assuming memory breakpoint.
10978 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10979 software and hardware breakpoints.
10980 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10981 Check both software and hardware breakpoints.
10982 (validate_inserted_breakpoint): Assert the breakpoint is a
10983 software breakpoint. Set the inserted flag to -1 instead of
10984 setting shlib_disabled.
10985 (delete_disabled_breakpoints): Adjust.
10986 (validate_breakpoints): Only validate software breakpoints.
10987 Adjust to inserted flag change.
10988 (check_mem_read, check_mem_write): Skip breakpoint types other
10989 than software breakpoints. Adjust to inserted flag change.
10990 * mem-break.h (enum raw_bkpt_type): New enum.
10991 (raw_breakpoint, struct process_info): Forward declare.
10992 (Z_packet_to_target_hw_bp_type): Delete declaration.
10993 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10994 (set_gdb_breakpoint, delete_gdb_breakpoint)
10995 (clear_breakpoint_conditions): New declarations.
10996 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10997 (breakpoint_inserted_here): Update comment.
10998 (add_breakpoint_condition, add_breakpoint_commands): Replace
10999 address parameter with a breakpoint pointer parameter.
11000 (gdb_breakpoint_here): Update comment.
11001 (delete_gdb_breakpoint_at): Delete.
11002 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
11003 * server.c (process_point_options): Take a struct breakpoint
11004 pointer instead of an address. Adjust.
11005 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
11006 delete_gdb_breakpoint.
11007 * spu-low.c (spu_target_ops): Install NULL as
11008 supports_z_point_type method.
11009 * target.h: Include mem-break.h.
11010 (struct target_ops) <prepare_to_access_memory>: Update comment.
11011 <supports_z_point_type>: New field.
11012 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11013 instead of a char. Also take a raw breakpoint pointer.
11014 * win32-arm-low.c (the_low_target): Install NULL as
11015 supports_z_point_type.
11016 * win32-i386-low.c (i386_supports_z_point_type): New function.
11017 (i386_insert_point, i386_remove_point): Adjust to new interface.
11018 (the_low_target): Install i386_supports_z_point_type.
11019 * win32-low.c (win32_supports_z_point_type): New function.
11020 (win32_insert_point, win32_remove_point): Adjust to new interface.
11021 (win32_target_ops): Install win32_supports_z_point_type.
11022 * win32-low.h (struct win32_target_ops):
11023 <supports_z_point_type>: New method.
11024 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11025 instead of a char. Also take a raw breakpoint pointer.
11027 2014-05-20 Pedro Alves <palves@redhat.com>
11029 * mem-break.h: Include break-common.h.
11030 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11031 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
11032 (Z_packet_to_target_hw_bp_type): New declaration.
11033 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
11034 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
11035 (Z_PACKET_ACCESS_WP): Delete macros.
11036 (Z_packet_to_hw_type): Delete function.
11037 * i386-low.h: Don't include break-common.h here.
11038 (Z_packet_to_hw_type): Delete declaration.
11039 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
11040 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11041 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
11042 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11043 * linux-aarch64-low.c: Don't include break-common.h here.
11044 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11045 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
11046 (Z_packet_to_target_hw_bp_type): Delete function.
11047 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
11049 (mips_insert_point, mips_remove_point): Use
11050 Z_packet_to_target_hw_bp_type.
11052 2014-05-20 Pedro Alves <palves@redhat.com>
11054 * linux-aarch64-low.c: Include break-common.h.
11055 (enum target_point_type): Delete.
11056 (Z_packet_to_point_type): Rename to ...
11057 (Z_packet_to_target_hw_bp_type): ... this, and return a
11058 target_hw_bp_type instead.
11059 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
11060 instead of an enum target_point_type.
11061 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
11063 (aarch64_dr_state_insert_one_point)
11064 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11065 (aarch64_handle_aligned_watchpoint)
11066 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11067 Take an enum target_hw_bp_type instead of an enum
11069 (aarch64_supports_z_point_type): New function.
11070 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11071 use Z_packet_to_target_hw_bp_type.
11073 2014-05-20 Joel Brobecker <brobecker@adacore.com>
11075 * configure.ac: Only use -Werror by default when DEVELOPMENT
11077 * configure: Regenerate.
11079 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11081 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11082 * linux-x86-low.c (X86_64_USER_REGS): New.
11083 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11085 2014-04-28 Yao Qi <yao@codesourcery.com>
11087 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11090 2014-04-25 Pedro Alves <palves@redhat.com>
11093 * linux-low.c (linux_attach_fail_reason_string): New function.
11094 (linux_attach_lwp): Delete.
11095 (linux_attach_lwp_1): Rename to ...
11096 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11097 argument. Remove "initial" parameter. Return int instead of
11098 void. Don't error or warn here.
11099 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11100 failure to attach to the tgid. Call warning when failing to
11102 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11103 argument. Remove "initial" parameter. Return int instead of
11104 void. Don't error or warn here.
11105 (linux_attach_fail_reason_string): New declaration.
11106 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11107 interface change. Use linux_attach_fail_reason_string.
11109 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
11110 Walfred Tedeschi <walfred.tedeschi@intel.com>
11112 * Makefile.in: Added rules to handle new files
11113 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11114 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11115 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11116 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11117 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11118 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11119 x32-avx512-linux.o.
11120 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11121 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11122 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11123 i386/x32-avx512.xml.
11124 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11125 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11126 i386/x32-avx512-linux.xml.
11127 * i387-fp.c (num_avx512_k_registers): New constant for number
11129 (num_avx512_zmmh_low_registers): New constant for number of
11130 lower ZMM registers (0-15).
11131 (num_avx512_zmmh_high_registers): New constant for number of
11132 higher ZMM registers (16-31).
11133 (num_avx512_ymmh_registers): New contant for number of higher
11134 YMM registers (ymm16-31 added by avx521 on x86_64).
11135 (num_avx512_xmm_registers): New constant for number of higher
11136 XMM registers (xmm16-31 added by AVX512 on x86_64).
11137 (struct i387_xsave): Add space for AVX512 registers.
11138 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11139 Add code to handle AVX512 registers.
11140 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11141 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11142 prototypei from generated file.
11143 (tdesc_amd64_avx512_linux): Likewise.
11144 (init_registers_x32_avx512_linux): Likewise.
11145 (tdesc_x32_avx512_linux): Likewise.
11146 (init_registers_i386_avx512_linux): Likewise.
11147 (tdesc_i386_avx512_linux): Likewise.
11148 (x86_64_regmap): Add AVX512 registers.
11149 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11151 (initialize_low_arch): Add code to initialize AVX512 registers.
11153 2014-04-23 Pedro Alves <palves@redhat.com>
11155 * mem-break.c (find_gdb_breakpoint_at): Make static.
11156 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11158 2014-04-23 Pedro Alves <palves@redhat.com>
11160 * i386-low.c: Don't include break-common.h here.
11161 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11162 prototype to take target_hw_bp_type as argument instead of a Z
11164 * i386-low.h: Include break-common.h here.
11165 (Z_packet_to_hw_type): Declare.
11166 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11168 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11169 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11170 (x86_remove_point): Convert the packet number to a
11171 target_hw_bp_type before calling i386_low_remove_watchpoint.
11172 * win32-i386-low.c (i386_insert_point): Convert the packet number
11173 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11174 (i386_remove_point): Convert the packet number to a
11175 target_hw_bp_type before calling i386_low_remove_watchpoint.
11177 2014-04-23 Pedro Alves <palves@redhat.com>
11179 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11181 2014-04-10 Pedro Alves <palves@redhat.com>
11183 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11184 Check if the condition or command is NULL before checking if the
11185 breakpoint is known. On success, return true.
11186 * mem-break.h (add_breakpoint_condition): Document return.
11187 (add_breakpoint_commands): Add describing comment.
11188 * server.c (skip_to_semicolon): New function.
11189 (process_point_options): Use it.
11191 2014-04-09 Pedro Alves <palves@redhat.com>
11193 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11196 2014-02-27 Pedro Alves <palves@redhat.com>
11199 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11201 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11203 (last_thread_of_process_p): Take a PID argument instead of a
11205 (linux_wait_for_lwp): Delete.
11206 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11208 (linux_low_filter_event): New function, party factored out from
11209 linux_wait_for_event.
11210 (linux_wait_for_event): Rename to ...
11211 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11212 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11213 sigsuspend. Check for zombie leaders.
11214 (linux_wait_for_event): Reimplement as wrapper around
11215 linux_wait_for_event_filtered.
11216 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11217 a normal or signal exit is seen, it's the whole process exiting.
11218 (wait_for_sigstop): No longer a for_each_inferior callback.
11219 Rewrite on top of linux_wait_for_event_filtered.
11220 (stop_all_lwps): Call wait_for_sigstop directly.
11221 * server.c (resume, handle_target_event): Handle
11222 TARGET_WAITKIND_NO_RESUMED.
11224 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11226 * win32-low.c (psapi_get_dll_name,
11227 * win32_CreateToolhelp32Snapshot): Delete.
11228 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11229 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11231 (handle_load_dll): Add function description.
11232 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11234 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11236 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11238 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11239 base address when calling win32_add_one_solib.
11240 (handle_load_dll): Delete local variable load_addr.
11241 Remove 0x1000 offset applied to DLL base address when calling
11242 win32_add_one_solib.
11243 (handle_unload_dll): Add comment.
11245 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11247 * win32-low.c (win32_add_all_dlls): Renames
11248 win32_ensure_ntdll_loaded. Rewrite function documentation.
11249 Adjust implementation to always load all DLLs.
11250 Add 0x1000 offset to DLL base address when calling
11251 win32_add_one_solib.
11252 (child_initialization_done): New static global.
11253 (do_initial_child_stuff): Set child_initialization_done to
11254 zero during child initialization, and 1 after. Replace call
11255 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11257 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11258 (handle_unload_dll): Add function documentation.
11259 (get_child_debug_event): Ignore load and unload DLL events
11260 during child initialization.
11262 2014-02-20 Doug Evans <dje@google.com>
11264 Remove global all_lwps.
11265 * inferiors.h (ptid_of): Move here from linux-low.h.
11266 (pid_of, lwpid_of): Ditto.
11267 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11268 parameter is a struct thread_info * now.
11269 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11270 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11271 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11273 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11274 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11275 * linux-arm-low.c (update_registers_callback): Update, "entry"
11276 parameter is a struct thread_info * now.
11277 Fetch lwpid from current_inferior directly.
11278 (arm_insert_point): Pass &all_threads to find_inferior instead of
11280 (arm_remove_point): Ditto.
11281 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11282 (arm_prepare_to_resume): Fetch pid from thread.
11283 (arm_read_description): Fetch lwpid from current_inferior directly.
11284 * linux-low.c (all_lwps): Delete.
11285 (delete_lwp): Delete call to remove_inferior.
11286 (handle_extended_wait): Fetch lwpid from thread.
11287 (add_lwp): Don't set lwp->entry.id. Remove call to
11288 add_inferior_to_list.
11289 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11290 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11291 (kill_one_lwp_callback): Ditto.
11292 (linux_kill): Don't dereference NULL pointer.
11293 Fetch ptid,lwpid from thread.
11294 (get_detach_signal): Fetch ptid from thread.
11295 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11296 Simplify call to regcache_invalidate_thread.
11297 (delete_lwp_callback): Update, "entry" parameter is a
11298 struct thread_info * now. Fetch pid from thread.
11299 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11300 (status_pending_p_callback): Update, "entry" parameter is a
11301 struct thread_info * now. Fetch ptid from thread.
11302 (find_lwp_pid): Update, "entry" parameter is a
11303 struct thread_info * now.
11304 (linux_wait_for_lwp): Fetch pid from thread.
11305 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11306 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11307 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11308 (dequeue_one_deferred_signal): Ditto.
11309 (cancel_breakpoint): Fetch ptid from current_inferior.
11310 (linux_wait_for_event): Pass &all_threads to find_inferior,
11311 not &all_lwps. Fetch ptid, lwpid from thread.
11312 (count_events_callback): Update, "entry" parameter is a
11313 struct thread_info * now.
11314 (select_singlestep_lwp_callback): Ditto.
11315 (select_event_lwp_callback): Ditto.
11316 (cancel_breakpoints_callback): Ditto.
11317 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11319 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11320 (unsuspend_one_lwp): Update, "entry" parameter is a
11321 struct thread_info * now.
11322 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11324 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11325 Fetch lwpid from thread, not lwp.
11326 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11327 Pass &all_threads to find_inferior, not &all_lwps.
11328 (send_sigstop): Fetch lwpid from thread, not lwp.
11329 (send_sigstop_callback): Update, "entry" parameter is a
11330 struct thread_info * now.
11331 (suspend_and_send_sigstop_callback): Ditto.
11332 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11333 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11334 struct thread_info * now.
11335 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11337 (lwp_running): Update, "entry" parameter is a
11338 struct thread_info * now.
11339 (stop_all_lwps): Fetch ptid from thread.
11340 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11341 (linux_resume_one_lwp): Fetch lwpid from thread.
11342 (linux_set_resume_request): Update, "entry" parameter is a
11343 struct thread_info * now. Fetch pid, lwpid from thread.
11344 (resume_status_pending_p): Update, "entry" parameter is a
11345 struct thread_info * now.
11346 (need_step_over_p): Ditto. Fetch lwpid from thread.
11347 (start_step_over): Fetch lwpid from thread.
11348 (linux_resume_one_thread): Update, "entry" parameter is a
11349 struct thread_info * now. Fetch lwpid from thread.
11350 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11351 (proceed_one_lwp): Update, "entry" parameter is a
11352 struct thread_info * now. Fetch lwpid from thread.
11353 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11354 struct thread_info * now.
11355 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11356 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11357 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11359 (regsets_store_inferior_registers): Ditto.
11360 (fetch_register, store_register): Ditto.
11361 (linux_read_memory, linux_write_memory): Ditto.
11362 (linux_request_interrupt): Ditto.
11363 (linux_read_auxv): Ditto.
11364 (linux_xfer_siginfo): Ditto.
11365 (linux_qxfer_spu): Ditto.
11366 (linux_qxfer_libraries_svr4): Ditto.
11367 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11368 moved to inferiors.h.
11370 (get_thread_lwp): Update.
11371 (struct lwp_info): Delete member "entry". Simplify comment for
11373 (all_lwps): Delete.
11374 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11375 current_inferior directly.
11376 (update_watch_registers_callback): Update, "entry" parameter is a
11377 struct thread_info * now. Fetch pid from thread.
11378 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11379 (mips_insert_point): Fetch lwpid from current_inferior.
11380 Pass &all_threads to find_inferior, not &all_lwps.
11381 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11382 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11384 (mips_stopped_data_address): Ditto.
11385 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11387 * linux-tile-low.c (tile_arch_setup): Ditto.
11388 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11389 (update_debug_registers_callback): Update, "entry" parameter is a
11390 struct thread_info * now. Fetch pid from thread.
11391 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11392 Pass &all_threads to find_inferior, not &all_lwps.
11393 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11394 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11395 Pass &all_threads to find_inferior, not &all_lwps.
11396 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11397 (i386_dr_low_get_status): Ditto.
11398 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11399 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11400 (x86_linux_read_description): Ditto.
11401 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11403 2014-02-20 Doug Evans <dje@google.com>
11405 * inferiors.c (get_first_inferior): Fix buglet.
11407 2014-02-19 Doug Evans <dje@google.com>
11409 * gdbthread.h (add_thread): Change result type to struct thread_info *.
11410 * inferiors.c (add_thread): Change result type to struct thread_info *.
11411 All callers updated.
11412 (add_lwp): Call add_thread here instead of in callers.
11413 All callers updated.
11414 * linux-low.h (get_lwp_thread): Rewrite.
11415 (struct lwp_info): New member "thread".
11417 2014-02-19 Doug Evans <dje@google.com>
11419 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11420 All callers updated.
11422 2014-02-19 Doug Evans <dje@google.com>
11424 * inferiors.c (add_thread): Fix whitespace.
11426 2014-02-19 Doug Evans <dje@google.com>
11428 * dll.c (clear_dlls): Replace accessing list implemention details
11430 * gdbthread.h (get_first_thread): Declare.
11431 * inferiors.c (for_each_inferior_with_data): New function.
11432 (get_first_thread): New function.
11433 (find_thread_ptid): Simplify.
11434 (get_first_inferior): New function.
11435 (clear_list): Delete.
11436 (one_inferior_p): New function.
11437 (clear_inferior_list): New function.
11438 (clear_inferiors): Update.
11439 * inferiors.h (for_each_inferior_with_data): Declare.
11440 (clear_inferior_list): Declare.
11441 (one_inferior_p): Declare.
11442 (get_first_inferior): Declare.
11443 * linux-low.c (linux_wait_for_event): Replace accessing list
11444 implemention details with API function.
11445 * server.c (target_running): Ditto.
11446 (accumulate_file_name_length): New function.
11447 (emit_dll_description): New function.
11448 (handle_qxfer_libraries): Replace accessing list implemention
11449 details with API function.
11450 (handle_qxfer_threads_worker): New function.
11451 (handle_qxfer_threads_proper): Replace accessing list implemention
11452 details with API function.
11453 (handle_query): Ditto.
11454 (visit_actioned_threads_callback_ftype): New typedef.
11455 (visit_actioned_threads_data): New struct.
11456 (visit_actioned_threads): Rewrite to be find_inferior callback.
11457 (resume): Call find_inferior.
11458 (handle_status): Replace accessing list implemention
11459 details with API function.
11460 (process_serial_event): Replace accessing list implemention details
11462 * target.c (set_desired_inferior): Replace accessing list implemention
11463 details with API function.
11464 * tracepoint.c (same_process_p): New function.
11465 (gdb_agent_about_to_close): Replace accessing list implemention
11466 details with API function.
11467 * win32-low.c (child_delete_thread): Replace accessing list
11468 implemention details with API function.
11469 (match_dll_by_basename): New function.
11470 (dll_is_loaded_by_basename): New function.
11471 (win32_ensure_ntdll_loaded): Replace accessing list implemention
11472 details call to dll_is_loaded_by_basename.
11474 2014-02-19 Doug Evans <dje@google.com>
11476 * dll.h (struct dll_info): Add comment.
11477 * gdbthread.h (struct thread_info): Add comment.
11478 (current_ptid): Simplify.
11479 * inferiors.c (add_process): Update.
11480 (remove_process): Update.
11481 * inferiors.h (struct process_info): Rename member "head" to "entry".
11482 * linux-low.c (delete_lwp): Update.
11484 (last_thread_of_process_p): Update.
11485 (kill_one_lwp_callback, linux_kill): Update.
11486 (status_pending_p_callback): Update.
11487 (wait_for_sigstop): Update. Simplify read of ptid.
11488 (start_step_over): Update.
11489 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
11490 (get_lwp_thread): Update.
11491 (struct lwp_info): Rename member "head" to "entry".
11492 * regcache.h (inferior_list_entry): Delete.
11493 * server.c (kill_inferior_callback): Update.
11494 (detach_or_kill_inferior_callback): Update.
11495 (print_started_pid): Update.
11496 (print_attached_pid): Update.
11497 (process_serial_event): Simplify read of ptid.
11498 * thread-db.c (thread_db_create_event): Update.
11499 (thread_db_get_tls_address): Update.
11500 * win32-low.c (current_inferior_ptid): Simplify.
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11504 * target.h (struct target_ops) <supports_btrace>: Add target_ops
11506 (target_supports_btrace): Update.
11508 2014-02-14 Yao Qi <yao@codesourcery.com>
11510 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
11511 (rsp-low-ipa.o): New target.
11513 2014-02-12 Tom Tromey <tromey@redhat.com>
11515 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
11516 convert_ascii_to_int.
11517 * regcache.c (registers_to_string): Likewise.
11518 * remote-utils.c (decode_M_packet): Likewise.
11519 * server.c (process_serial_event): Likewise.
11521 2014-02-12 Tom Tromey <tromey@redhat.com>
11523 * server.c (handle_query, handle_v_run): Use hex2bin, not
11525 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
11527 2014-02-12 Tom Tromey <tromey@redhat.com>
11529 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
11530 convert_int_to_ascii.
11531 * regcache.c (registers_to_string, collect_register_as_string):
11533 * remote-utils.c (look_up_one_symbol, relocate_instruction):
11535 * server.c (process_serial_event): Likewise.
11536 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
11537 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
11539 2014-02-12 Tom Tromey <tromey@redhat.com>
11541 * remote-utils.c (look_up_one_symbol, monitor_output): Use
11542 bin2hex, not hexify.
11543 * tracepoint.c (cmd_qtstatus): Likewise.
11545 2014-02-12 Tom Tromey <tromey@redhat.com>
11547 * remote-utils.c (monitor_output): Pass explicit length to
11550 2014-02-12 Tom Tromey <tromey@redhat.com>
11552 * tracepoint.c: Include rsp-low.h.
11553 * server.c: Include rsp-low.h.
11554 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
11555 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
11557 * remote-utils.c: Include rsp-low.h.
11558 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
11559 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
11560 (convert_int_to_ascii, convert_ascii_to_int): Move to
11562 * regcache.c: Include rsp-low.h.
11563 * ax.c: Include rsp-low.h.
11564 * Makefile.in (SFILES): Add common/rsp-low.c.
11565 (OBS): Add rsp-low.o.
11566 (rsp-low.o): New target.
11568 2014-02-12 Tom Tromey <tromey@redhat.com>
11570 * utils.h (pulongest, plongest, phex_nz): Don't declare.
11571 Include print-utils.h.
11572 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11573 (plongest, thirty_two, phex_nz): Remove.
11574 * Makefile.in (SFILES): Add common/print-utils.c.
11575 (OBS): Add print-utils.o.
11576 (print-utils-ipa.o): New target.
11577 (print-utils.o): New target.
11578 (IPA_OBJS): Add print-utils-ipa.o.
11580 2014-02-06 Tom Tromey <tromey@redhat.com>
11582 * Makefile.in (SFILES): Fix indentation.
11584 2014-02-05 Doug Evans <dje@google.com>
11586 * linux-low.c (linux_wait_for_event): Improve comment.
11587 (linux_wait_1): Keep current_inferior in sync with event_child.
11589 2014-01-22 Doug Evans <dje@google.com>
11591 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11593 2014-01-22 Doug Evans <dje@google.com>
11595 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
11596 * configure: Regenerate.
11597 * config.in: Regenerate.
11598 * Makefile.in (SFILES): Add debug.c.
11599 (OBS): Add debug.o.
11600 * debug.c: New file.
11601 * debug.h: New file.
11602 * linux-aarch64-low.c (*): Update all debugging printfs to use
11603 debug_printf instead of fprintf.
11604 * linux-arm-low.c (*): Ditto.
11605 * linux-cris-low.c (*): Ditto.
11606 * linux-crisv32-low.c (*): Ditto.
11607 * linux-m32r-low.c (*): Ditto.
11608 * linux-sparc-low.c (*): Ditto.
11609 * linux-x86.c (*): Ditto.
11610 * linux-low.c (*): Ditto.
11611 (linux_wait_1): Add calls to debug_enter, debug_exit.
11612 (linux_wait): Remove redundant debugging printf.
11613 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11614 (linux_resume, unstop_all_lwps): Ditto.
11615 * mem-break.c (*): Update all debugging printfs to use
11616 debug_printf instead of fprintf.
11617 * remote-utils.c (*): Ditto.
11618 * thread-db.c (*): Ditto.
11619 * server.c #include <ctype.h>, "gdb_vecs.h".
11620 (debug_threads): Moved to debug.c.
11621 (*): Update all debugging printfs to use debug_printf instead of
11623 (start_inferior): Replace call to fflush with call to debug_flush.
11624 (monitor_show_help): Mention set debug-format.
11625 (parse_debug_format_options): New function.
11626 (handle_monitor_command): Handle "monitor set debug-format".
11627 (gdbserver_usage): Mention --debug-format.
11628 (main): Parse --debug-format.
11629 * server.h (debug_threads): Declaration moved to debug.h.
11630 #include "debug.h".
11631 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11632 trace_debug_1 that uses debug_printf.
11633 (tracepoint_look_up_symbols): Update all debugging printfs to use
11634 debug_printf instead of fprintf.
11636 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11638 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11641 2014-01-17 Pedro Alves <palves@redhat.com>
11644 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11645 defined after including gdb_proc_service.h.
11647 2014-01-16 Doug Evans <dje@google.com>
11649 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11650 (match_dll): Use it.
11652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11654 * target.h (target_ops) <read_btrace>: Change parameters and
11655 return type to allow error reporting.
11656 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11657 trace reading errors on.
11658 * linux-low.c (linux_low_read_btrace): Pass trace reading
11660 (linux_low_disable_btrace): New.
11662 2014-01-15 Doug Evans <dje@google.com>
11664 * inferiors.c (thread_id_to_gdb_id): Delete.
11665 * inferiors.h (thread_id_to_gdb_id): Delete.
11667 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11669 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11670 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11673 2014-01-08 Pedro Alves <palves@redhat.com>
11675 * server.c (handle_status): Don't discard previous queued stop
11676 replies or thread's pending status here.
11677 (main) <disconnection>: Do it here instead.
11679 2014-01-08 Pedro Alves <palves@redhat.com>
11681 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11682 * server.c (visit_actioned_threads, handle_pending_status): New
11684 (handle_v_cont): Factor out parts to ...
11685 (resume): ... this new function. If in all-stop, and a thread
11686 being resumed has a pending status, report it without actually
11688 (myresume): Adjust to use the new 'resume' function.
11689 (clear_pending_status_callback, set_pending_status_callback)
11690 (find_status_pending_thread_callback): New functions.
11691 (handle_status): Handle the case of multiple threads having
11692 interesting statuses to report. Report threads' real last signal
11693 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11694 with an interesting thread to report the status for, instead of
11695 always reporting the status of the first thread.
11697 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11699 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11700 * gdbreplay.c (gdbreplay_version): Likewise.
11702 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11704 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11705 iov.iov_len with the real length in use.
11707 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11709 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11710 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11711 for all targets that use win32-low.c.
11712 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11713 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11715 2013-12-13 Pedro Alves <palves@redhat.com>
11717 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11718 if equal to TARGET_WAITKIND_LOADED.
11719 * win32-low.c (cached_status): New static global.
11720 (win32_wait): Add declaration.
11721 (do_initial_child_stuff): Flush all initial pending debug events
11722 up to the initial breakpoint.
11723 (win32_wait): If CACHED_STATUS was set, return that instead
11724 of doing a real wait. Remove the code resuming the execution
11725 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11726 during the initial phase. Also remove the code changing
11727 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11728 TARGET_WAITKIND_STOPPED.
11730 2013-12-11 Yao Qi <yao@codesourcery.com>
11732 * notif.c (handle_notif_ack): Return 0 if no notification
11735 2013-11-20 Doug Evans <dje@google.com>
11737 * linux-low.c (linux_set_resume_request): Fix comment.
11739 2013-11-20 Doug Evans <dje@google.com>
11741 * linux-low.c (resume_status_pending_p): Tweak comment.
11743 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11745 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11746 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11747 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11748 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11749 (srv_amd64_regobj): Add amd64-mpx.o.
11750 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11751 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11752 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11753 * i387-fp.c (num_pl_bnd_register) Added constant.
11754 (num_pl_bnd_cfg_registers) Added constant.
11755 (struct i387_xsave) Added reserved area and MPX fields.
11756 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11757 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11759 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11760 (init_registers_amd64_mpx_linux): Declare new function.
11761 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11762 (x86_64_regmap): Add MPX registers.
11763 (x86_linux_read_description): Add MPX case.
11764 (initialize_low_arch): Initialize MPX targets.
11766 2013-11-18 Tom Tromey <tromey@redhat.com>
11768 * configure: Rebuild.
11769 * configure.ac: Don't check for stdlib.h.
11770 * gdbreplay.c: Unconditionally include stdlib.h.
11772 2013-11-18 Tom Tromey <tromey@redhat.com>
11774 * config.in: Rebuild.
11775 * configure: Rebuild.
11776 * configure.ac: Don't use AC_HEADER_DIRENT.
11778 2013-11-18 Tom Tromey <tromey@redhat.com>
11780 * server.h: Don't check HAVE_STRING_H.
11781 * gdbreplay.c: Don't check HAVE_STRING_H.
11782 * configure: Rebuild.
11784 2013-11-18 Tom Tromey <tromey@redhat.com>
11786 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11789 2013-11-08 Tom Tromey <tromey@redhat.com>
11791 * configure, config.in: Rebuild.
11792 * configure.ac: Remove unused configury.
11794 2013-11-08 Tom Tromey <tromey@redhat.com>
11796 * acinclude.m4: Include common.m4, codeset.m4.
11797 * configure, config.in: Rebuild.
11798 * configure.ac: Use GDB_AC_COMMON.
11800 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11802 * linux-s390-low.c (HWCAP_S390_TE): New define.
11803 (s390_arch_setup): Consider the TE field in the HWCAP for
11804 determining 'have_regset_tdb'.
11806 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11809 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11812 2013-10-02 Pedro Alves <palves@redhat.com>
11814 * server.c (process_serial_event): Don't output "GDBserver
11815 exiting" if GDB is connected through stdio.
11816 * target.c (mywait): Likewise, be silent if GDB is connected
11819 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11821 * lynx-low.c (lynx_add_threads_after_attach): New function.
11822 (lynx_attach): Remove call to add_thread. Add call to
11823 lynx_add_threads_after_attach instead.
11825 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11827 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11828 * config.in, configure: Regenerated.
11830 2013-09-18 Yao Qi <yao@codesourcery.com>
11833 * server.c (start_inferior): Clear 'resume_info'.
11835 2013-09-16 Jiong Wang <jiwang@tilera.com>
11837 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11840 2013-09-16 Jiong Wang <jiwang@tilera.com>
11842 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11843 linux-tile-low.o to srv_tgtobj.
11845 2013-09-16 Will Newton <will.newton@linaro.org>
11847 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11850 2013-09-06 Pedro Alves <palves@redhat.com>
11852 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11853 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11854 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11855 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11856 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11857 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11859 2013-09-06 Pedro Alves <palves@redhat.com>
11861 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11862 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11864 2013-09-06 Pedro Alves <palves@redhat.com>
11866 * linux-amd64-ipa.c: Include tracepoint.h.
11867 * linux-i386-ipa.c: Include tracepoint.h.
11869 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11871 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11872 (ps_get_thread_area): New function.
11874 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11876 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11877 (initialize_low_arch): Call init_registers_crisv32 rather than
11878 init_register_crisv32.
11880 2013-09-05 Pedro Alves <palves@redhat.com>
11882 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11884 * hostio.h: ... this new file.
11885 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11886 win32-low.c: Include hostio.h.
11888 2013-09-05 Pedro Alves <palves@redhat.com>
11890 * server.h (gdb_client_data, handler_func, callback_handler_func)
11891 (delete_file_handler, add_file_handler, append_callback_event)
11892 (delete_callback_event, start_event_loop, initialize_event_loop):
11893 Move to event-loop.h and include it.
11894 * event-loop.h: New file.
11896 2013-09-05 Pedro Alves <palves@redhat.com>
11898 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11899 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11900 (loaded_dll, unloaded_dll): Move to ...
11901 * dll.h: ... this new file.
11902 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11904 2013-09-05 Pedro Alves <palves@redhat.com>
11906 * server.h (current_process, get_thread_process, all_processes)
11907 (add_inferior_to_list, for_each_inferior, current_inferior)
11908 (remove_inferior, add_process, remove_process, find_process_pid)
11909 (have_started_inferiors_p, have_attached_inferiors_p)
11910 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11911 (clear_inferiors, find_inferior, find_inferior_id)
11912 (inferior_target_data, set_inferior_target_data)
11913 (inferior_regcache_data, set_inferior_regcache_data): Move to
11914 inferiors.h, and include it.
11915 * inferiors.h: New file.
11917 2013-09-05 Pedro Alves <palves@redhat.com>
11919 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11923 2013-09-05 Pedro Alves <palves@redhat.com>
11925 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11927 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11928 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11929 (handle_tracepoint_general_set, handle_tracepoint_query)
11930 (tracepoint_finished_step, tracepoint_was_hit)
11931 (release_while_stepping_state_list, current_traceframe)
11932 (in_readonly_region, traceframe_read_mem)
11933 (fetch_traceframe_registers, traceframe_read_sdata)
11934 (traceframe_read_info, struct fast_tpoint_collect_status)
11935 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11936 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11937 (supply_fast_tracepoint_registers)
11938 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11939 (ipa_tdesc, claim_trampoline_space)
11940 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11941 (agent_mem_read, agent_get_trace_state_variable_value)
11942 (agent_set_trace_state_variable_value, agent_tsv_read)
11943 (agent_mem_read_string, get_raw_reg_func_addr)
11944 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11945 * tracepoint.h: ... this new file.
11947 2013-09-05 Pedro Alves <palves@redhat.com>
11949 * server.h (perror_with_name, error, fatal, warning, paddress)
11950 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11952 * utils.h: New file.
11954 2013-09-05 Pedro Alves <palves@redhat.com>
11956 * server.h (remote_debug, noack_mode, transport_is_reliable)
11957 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11958 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11959 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11960 (write_enn, initialize_async_io, enable_async_io)
11961 (disable_async_io, check_remote_input_interrupt_request)
11962 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11963 (dead_thread_notify, prepare_resume_reply)
11964 (decode_address_to_semicolon, decode_address, decode_m_packet)
11965 (decode_M_packet, decode_X_packet, decode_xfer_write)
11966 (decode_search_memory_packet, unhexify, hexify)
11967 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11968 (look_up_one_symbol, relocate_instruction)
11969 (monitor_output): Move to remote-utils.h, and include it.
11970 * remote-utils.h: New file.
11972 2013-09-05 Pedro Alves <palves@redhat.com>
11974 * server.h (_): Delete.
11976 2013-09-02 Pedro Alves <palves@redhat.com>
11978 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11979 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11981 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11983 2013-09-02 Pierre Muller <muller@sourceware.org>
11985 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11986 or WriteProcessMemory complete successfully and handle
11987 ERROR_PARTIAL_COPY error.
11989 2013-09-02 Pedro Alves <palves@redhat.com>
11991 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11992 error instead of EIO.
11994 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11997 * linux-low.c: Include filestuff.h.
11998 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11999 * lynx-low.c: Include filestuff.h.
12000 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
12001 * server.c: Include filestuff.h.
12002 (main): Call notice_open_fds.
12003 * spu-low.c: Include filestuff.h.
12004 (spu_create_inferior) <pid == 0>: Call close_most_fds.
12006 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
12008 * Makefile.in: Explain why ../target and ../nat are not
12009 listed as include file search paths.
12010 (linux-waitpid.o): New object file rule.
12011 * configure.srv (srv_native_linux_obj): New variable.
12012 Replace all occurrences of linux native object files with
12013 $srv_native_linux_obj.
12014 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
12015 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
12016 (linux_enable_event_reporting): Remove declaration.
12017 (my_waitpid): Moved to common/linux-waitpid.c.
12018 (linux_wait_for_event): Pass ptid when calling
12019 linux_enable_event_reporting.
12020 (linux_supports_tracefork_flag): Remove.
12021 (linux_enable_event_reporting): Likewise.
12022 (linux_tracefork_grandchild): Remove.
12023 (STACK_SIZE): Moved to common/linux-ptrace.c.
12024 (linux_tracefork_child): Remove.
12025 (linux_test_for_tracefork): Remove.
12026 (linux_look_up_symbols): Call linux_supports_traceclone.
12027 (initialize_low): Remove call to linux_test_for_tracefork.
12028 * linux-low.h (PTRACE_TYPE_ARG3): Move to
12029 common/linux-ptrace.h.
12030 (PTRACE_TYPE_ARG4): Likewise.
12031 Include linux-ptrace.h.
12033 2013-08-21 Pedro Alves <palves@redhat.com>
12035 * config.in: Renegerate.
12037 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
12039 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
12040 (SFILES): Remove $(srcdir)/common/target-common.c and
12041 add $(srcdir)/target/waitstatus.c.
12042 (OBS): Remove target-common.o and add waitstatus.o.
12043 (server_h): Remove $(srcdir)/../common/target-common.h and
12044 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
12045 and $(srcdir)/../target/waitstatus.h.
12046 (target-common.o): Remove.
12047 (waitstatus.o): New target object file.
12048 * target.h: Do not include target-common.h and
12049 include target/resume.h, target/wait.h and
12050 target/waitstatus.h.
12052 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
12054 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12055 to PTRACE_TYPE_ARG3.
12056 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12057 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
12059 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
12060 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
12062 2013-07-27 Jie Zhang <jie@codesourcery.com>
12063 Daniel Jacobowitz <dan@codesourcery.com>
12064 Yao Qi <yao@codesourcery.com>
12066 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12067 (mips-linux-watch.o): New rule.
12068 (mips_linux_watch_h): New variable.
12069 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12071 * linux-mips-low.c: Include mips-linux-watch.h.
12072 (struct arch_process_info, struct arch_lwp_info): New.
12073 (update_watch_registers_callback): New function.
12074 (mips_linux_new_process, mips_linux_new_thread) New functions.
12075 (mips_linux_prepare_to_resume, mips_insert_point): New
12077 (mips_remove_point, mips_stopped_by_watchpoint): New
12079 (rsp_bp_type_to_target_hw_bp_type): New function.
12080 (mips_stopped_data_address): New function.
12081 (the_low_target): Add watchpoint support functions.
12083 2013-07-27 Yao Qi <yao@codesourcery.com>
12085 * i386-low.c: Include break-common.h.
12086 (enum target_hw_bp_type): Remove.
12088 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
12090 * Makefile.in (SFILES): /common/target-common.c.
12091 (OBS): Add target-common.o.
12092 (server_h): Add $(srcdir)/../common/target-common.h.
12093 (target-common.o): New target.
12094 * server.c (queue_stop_reply_callback): Free
12095 status string after use.
12096 * target.c (target_waitstatus_to_string): Remove.
12097 * target.h: Include target-common.h.
12098 (resume_kind): Likewise.
12099 (target_waitkind): Likewise.
12100 (target_waitstatus): Likewise.
12101 (TARGET_WNOHANG): Likewise.
12103 2013-07-04 Yao Qi <yao@codesourcery.com>
12105 * Makefile.in (host_alias): Use @host_noncanonical@.
12106 (target_alias): Use @target_noncanonical@.
12107 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12108 ACX_NONCANONICAL_HOST.
12109 * configure: Regenerated.
12112 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12114 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12115 * configure: Rebuild.
12116 * Makefile.in (version_host, version_target): Get from configure.
12117 (version.c): Use $(version_host) and $(version_target).
12119 2013-07-03 Pedro Alves <palves@redhat.com>
12121 * Makefile.in (config.status): Depend on development.sh.
12122 * acinclude.m4: Include libmcheck.m4.
12123 * configure: Regenerate.
12125 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12127 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12128 attribute inside the parentheses.
12129 (winapi_DebugSetProcessKillOnExit): Ditto.
12130 (winapi_DebugBreakProcess): Ditto.
12131 (winapi_GenerateConsoleCtrlEvent): Ditto.
12133 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12135 * notif.h (notif_event): Add a dummy member to avoid compiler
12138 2013-07-01 Pedro Alves <palves@redhat.com>
12140 * hostio.c (HOSTIO_PATH_MAX): Define.
12141 (require_filename, handle_open, handle_unlink, handle_readlink):
12144 2013-07-01 Pedro Alves <palves@redhat.com>
12146 * server.h: Include "pathmax.h".
12147 * linux-low.c: Don't include sys/param.h.
12148 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12150 * win32-low.c: Don't include sys/param.h.
12151 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12153 2013-07-01 Pedro Alves <palves@redhat.com>
12155 * event-loop.c: Don't check HAVE_UNISTD_H before including
12157 * gdbreplay.c: Likewise.
12158 * remote-utils.c: Likewise.
12159 * server.c: Likewise.
12160 * configure.ac: Don't check for unistd.h.
12161 * configure: Regenerate.
12163 2013-06-28 Tom Tromey <tromey@redhat.com>
12165 * Makefile.in (version.c): Use version.in, not
12168 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12170 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12171 * configure: Rebuild.
12172 * Makefile.in (version_host, version_target): Get from configure.
12173 (version.c): Use $(version_host) and $(version_target).
12175 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12177 Fix trace-status to output user name without trailing colon.
12178 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12180 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12182 Fix trace-status to output proper start-time and stop-time.
12183 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12184 output start time and stop time in hex as gdb expects.
12186 2013-06-26 Pedro Alves <pedro@codesourcery.com>
12188 * tracepoint.c (build_traceframe_info_xml): Output trace state
12189 variables present in the trace buffer.
12191 2013-06-24 Tom Tromey <tromey@redhat.com>
12193 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12195 (version.o): Remove.
12196 * gdbreplay.c: Include version.h.
12197 (version, host_name): Don't declare.
12198 * server.h: Include version.h.
12199 (version, host_name): Don't declare.
12201 2013-06-12 Pedro Alves <palves@redhat.com>
12203 * linux-x86-low.c (linux_is_elf64): Delete global.
12204 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12205 with local linux_pid_exe_is_elf_64_file use.
12207 2013-06-11 Pedro Alves <palves@redhat.com>
12209 * linux-low.c (regset_disabled, disable_regset): New functions.
12210 (regsets_fetch_inferior_registers)
12211 (regsets_store_inferior_registers): Use them.
12212 (initialize_regsets_info); Don't allocate the disabled_regsets
12214 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12217 2013-06-11 Pedro Alves <palves@redhat.com>
12219 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12222 2013-06-11 Pedro Alves <palves@redhat.com>
12224 * linux-x86-low.c (initialize_low_arch): Call
12225 init_registers_x32_avx_linux.
12227 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12229 Fix compatibility with Android Bionic.
12230 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12233 2013-06-07 Pedro Alves <palves@redhat.com>
12236 * Makefile.in (OBS): Add tdesc.o.
12237 (IPA_OBJS): Add tdesc-ipa.o.
12238 (tdesc-ipa.o): New rule.
12239 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12241 * linux-low.c (new_inferior): Delete.
12242 (disabled_regsets, num_regsets): Delete.
12243 (linux_add_process): Adjust to set the new per-process
12245 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12246 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12247 was a stop. When calling arch_setup, switch the current inferior
12248 to the thread that got an event.
12249 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12250 (regsets_fetch_inferior_registers)
12251 (regsets_store_inferior_registers): New regsets_info parameter.
12253 (linux_register_in_regsets): New regs_info parameter. Adjust to
12255 (register_addr, fetch_register, store_register): New usrregs_info
12256 parameter. Adjust to use it.
12257 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12258 parameter regs_info. Adjust to use it.
12259 (linux_fetch_registers): Get the current inferior's regs_info, and
12261 (linux_store_registers): Ditto.
12262 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12263 (initialize_low): Don't initialize the target_regsets here. Call
12264 initialize_low_arch.
12265 * linux-low.h (target_regsets): Delete declaration.
12266 (struct regsets_info): New.
12267 (struct usrregs_info): New.
12268 (struct regs_info): New.
12269 (struct process_info_private) <new_inferior>: New field.
12270 (struct linux_target_ops): Delete the num_regs, regmap, and
12271 regset_bitmap fields. New field regs_info.
12272 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12273 * i387-fp.c (num_xmm_registers): Delete.
12274 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12275 calls to new interface.
12276 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12277 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12278 Infer the number of xmm registers from the regcache's target
12280 * i387-fp.h (num_xmm_registers): Delete.
12281 * inferiors.c (add_thread): Don't install the thread's regcache
12283 * proc-service.c (gregset_info): Fetch the current inferior's
12284 regs_info. Adjust to use it.
12285 * regcache.c: Include tdesc.h.
12286 (register_bytes, reg_defs, num_registers)
12287 (gdbserver_expedite_regs): Delete.
12288 (get_thread_regcache): If the thread doesn't have a regcache yet,
12289 create one, instead of aborting gdbserver.
12290 (regcache_invalidate_one): Rename to ...
12291 (regcache_invalidate_thread): ... this.
12292 (regcache_invalidate_one): New.
12293 (regcache_invalidate): Only invalidate registers of the current
12295 (init_register_cache): Add target_desc parameter, and use it.
12296 (new_register_cache): Ditto. Assert the target description has a
12297 non zero registers_size.
12298 (regcache_cpy): Add assertions. Adjust.
12299 (realloc_register_cache, set_register_cache): Delete.
12300 (registers_to_string, registers_from_string): Adjust.
12301 (find_register_by_name, find_regno, find_register_by_number)
12302 (register_cache_size): Add target_desc parameter, and use it.
12303 (free_register_cache_thread, free_register_cache_thread_one)
12304 (regcache_release, register_cache_size): New.
12305 (register_size): Add target_desc parameter, and use it.
12306 (register_data, supply_register, supply_register_zeroed)
12307 (supply_regblock, supply_register_by_name, collect_register)
12308 (collect_register_as_string, collect_register_by_name): Adjust.
12309 * regcache.h (struct target_desc): Forward declare.
12310 (struct regcache) <tdesc>: New field.
12311 (init_register_cache, new_register_cache): Add target_desc
12313 (regcache_invalidate_thread): Declare.
12314 (regcache_invalidate_one): Delete declaration.
12315 (regcache_release): Declare.
12316 (find_register_by_number, register_cache_size, register_size)
12317 (find_regno): Add target_desc parameter.
12318 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12320 * remote-utils.c: Include tdesc.h.
12321 (outreg, prepare_resume_reply): Adjust.
12322 * server.c: Include tdesc.h.
12323 (gdbserver_xmltarget): Delete declaration.
12324 (get_features_xml, process_serial_event): Adjust.
12325 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12327 (struct process_info) <tdesc>: New field.
12328 (ipa_tdesc): Declare.
12329 * tdesc.c: New file.
12330 * tdesc.h: New file.
12331 * tracepoint.c: Include tdesc.h.
12332 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12333 (get_context_regcache): Adjust to pass ipa_tdesc down.
12334 (do_action_at_tracepoint): Adjust to get the register cache size
12335 from the context regcache's description.
12336 (traceframe_walk_blocks): Adjust to get the register cache size
12337 from the current trace frame's description.
12338 (traceframe_get_pc): Adjust to get current trace frame's
12339 description and pass it down.
12340 (gdb_collect): Adjust to get the register cache size from the
12342 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12343 (gdbserver_xmltarget): Delete.
12344 (initialize_low_tracepoint): Set the ipa's target description.
12345 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12346 (initialize_low_tracepoint): Set the ipa's target description.
12347 * linux-x86-low.c: Include tdesc.h.
12348 [__x86_64__] (is_64bit_tdesc): New.
12349 (ps_get_thread_area, x86_get_thread_area): Use it.
12350 (i386_cannot_store_register): Rename to ...
12351 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12352 (i386_cannot_fetch_register): Rename to ...
12353 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12354 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12356 (target_regsets): Rename to ...
12357 (x86_regsets): ... this.
12358 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12360 (x86_siginfo_fixup): Use is_64bit_tdesc.
12361 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12362 (tdesc_x32_avx_linux, tdesc_x32_linux)
12363 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12365 (x86_linux_update_xmltarget): Delete.
12366 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12367 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12368 (AMD64_LINUX_USER64_CS): New.
12369 (x86_linux_read_description): New, based on
12370 x86_linux_update_xmltarget.
12371 (same_process_callback): New.
12372 (x86_arch_setup_process_callback): New.
12373 (x86_linux_update_xmltarget): New.
12374 (x86_regsets_info): New.
12375 (amd64_linux_regs_info): New.
12376 (i386_linux_usrregs_info): New.
12377 (i386_linux_regs_info): New.
12378 (x86_linux_regs_info): New.
12379 (x86_arch_setup): Reimplement.
12380 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12381 (x86_emit_ops): Ditto.
12382 (the_low_target): Adjust. Install x86_linux_regs_info,
12383 x86_cannot_fetch_register, and x86_cannot_store_register.
12384 (initialize_low_arch): New.
12385 * linux-ia64-low.c (tdesc_ia64): Declare.
12386 (ia64_fetch_register): Adjust.
12387 (ia64_usrregs_info, regs_info): New globals.
12388 (ia64_regs_info): New function.
12389 (the_low_target): Adjust.
12390 (initialize_low_arch): New function.
12391 * linux-sparc-low.c (tdesc_sparc64): Declare.
12392 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12394 (sparc_arch_setup): New function.
12395 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12396 (the_low_target): Adjust.
12397 (initialize_low_arch): New function.
12398 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12399 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12400 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12401 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12402 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12403 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12404 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12405 (tdesc_powerpc_isa205_vsx64l): Declare.
12406 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12407 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
12408 (ppc_set_pc, ppc_get_hwcap): Adjust.
12409 (ppc_usrregs_info): Forward declare.
12410 (!__powerpc64__) ppc_regmap_adjusted: New global.
12411 (ppc_arch_setup): Adjust to the current process'es target
12413 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
12414 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
12415 (ppc_store_evrregset): Adjust.
12416 (target_regsets): Rename to ...
12417 (ppc_regsets): ... this, and make static.
12418 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
12419 (ppc_regs_info): New function.
12420 (the_low_target): Adjust.
12421 (initialize_low_arch): New function.
12422 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
12423 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
12424 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
12425 (tdesc_s390x_linux64v2): Declare.
12426 (s390_collect_ptrace_register, s390_supply_ptrace_register)
12427 (s390_fill_gregset, s390_store_last_break): Adjust.
12428 (target_regsets): Rename to ...
12429 (s390_regsets): ... this, and make static.
12430 (s390_get_pc, s390_set_pc): Adjust.
12431 (s390_get_hwcap): New target_desc parameter, and use it.
12432 [__s390x__] (have_hwcap_s390_high_gprs): New global.
12433 (s390_arch_setup): Adjust to set the current process'es target
12434 description. Don't adjust the regmap.
12435 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
12436 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
12437 (regs_info_3264): New globals.
12438 (s390_regs_info): New function.
12439 (the_low_target): Adjust.
12440 (initialize_low_arch): New function.
12441 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
12442 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
12443 [__mips64] (init_registers_mips_linux)
12444 (init_registers_mips_dsp_linux): Delete defines.
12445 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
12446 (have_dsp): New global.
12447 (mips_read_description): New, based on mips_arch_setup.
12448 (mips_arch_setup): Reimplement.
12449 (get_usrregs_info): New function.
12450 (mips_cannot_fetch_register, mips_cannot_store_register)
12451 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
12452 (mips_fill_fpregset, mips_store_fpregset): Adjust.
12453 (target_regsets): Rename to ...
12454 (mips_regsets): ... this, and make static.
12455 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
12456 (dsp_regs_info, regs_info): New globals.
12457 (mips_regs_info): New function.
12458 (the_low_target): Adjust.
12459 (initialize_low_arch): New function.
12460 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
12461 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
12463 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
12464 (arm_read_description): New, with bits factored from
12466 (arm_arch_setup): Reimplement.
12467 (target_regsets): Rename to ...
12468 (arm_regsets): ... this, and make static.
12469 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
12470 (arm_regs_info): New function.
12471 (the_low_target): Adjust.
12472 (initialize_low_arch): New function.
12473 * linux-m68k-low.c (tdesc_m68k): Declare.
12474 (target_regsets): Rename to ...
12475 (m68k_regsets): ... this, and make static.
12476 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
12477 (m68k_regs_info): New function.
12478 (m68k_arch_setup): New function.
12479 (the_low_target): Adjust.
12480 (initialize_low_arch): New function.
12481 * linux-sh-low.c (tdesc_sharch): Declare.
12482 (target_regsets): Rename to ...
12483 (sh_regsets): ... this, and make static.
12484 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
12485 (sh_regs_info, sh_arch_setup): New functions.
12486 (the_low_target): Adjust.
12487 (initialize_low_arch): New function.
12488 * linux-bfin-low.c (tdesc_bfin): Declare.
12489 (bfin_arch_setup): New function.
12490 (bfin_usrregs_info, regs_info): New globals.
12491 (bfin_regs_info): New function.
12492 (the_low_target): Adjust.
12493 (initialize_low_arch): New function.
12494 * linux-cris-low.c (tdesc_cris): Declare.
12495 (cris_arch_setup): New function.
12496 (cris_usrregs_info, regs_info): New globals.
12497 (cris_regs_info): New function.
12498 (the_low_target): Adjust.
12499 (initialize_low_arch): New function.
12500 * linux-cris-low.c (tdesc_crisv32): Declare.
12501 (cris_arch_setup): New function.
12502 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
12503 (cris_regs_info): New function.
12504 (the_low_target): Adjust.
12505 (initialize_low_arch): New function.
12506 * linux-m32r-low.c (tdesc_m32r): Declare.
12507 (m32r_arch_setup): New function.
12508 (m32r_usrregs_info, regs_info): New globals.
12509 (m32r_regs_info): Adjust.
12510 (initialize_low_arch): New function.
12511 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
12512 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
12513 (tic6x_usrregs_info): Forward declare.
12514 (tic6x_read_description): New function, based on ...
12515 (tic6x_arch_setup): ... this. Reimplement.
12516 (target_regsets): Rename to ...
12517 (tic6x_regsets): ... this, and make static.
12518 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
12519 (tic6x_regs_info): New function.
12520 (the_low_target): Adjust.
12521 (initialize_low_arch): New function.
12522 * linux-xtensa-low.c (tdesc_xtensa): Declare.
12523 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
12524 (target_regsets): Rename to ...
12525 (xtensa_regsets): ... this, and make static.
12526 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
12528 (xtensa_arch_setup, xtensa_regs_info): New functions.
12529 (the_low_target): Adjust.
12530 (initialize_low_arch): New function.
12531 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
12532 (nios2_arch_setup): Set the current process'es tdesc.
12533 (target_regsets): Rename to ...
12534 (nios2_regsets): ... this.
12535 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
12536 (nios2_regs_info): New function.
12537 (the_low_target): Adjust.
12538 (initialize_low_arch): New function.
12539 * linux-aarch64-low.c (tdesc_aarch64): Declare.
12540 (aarch64_arch_setup): Set the current process'es tdesc.
12541 (target_regsets): Rename to ...
12542 (aarch64_regsets): ... this.
12543 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
12544 (aarch64_regs_info): New function.
12545 (the_low_target): Adjust.
12546 (initialize_low_arch): New function.
12547 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
12549 (target_regsets): Rename to ...
12550 (tile_regsets): ... this.
12551 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
12552 (tile_regs_info): New function.
12553 (tile_arch_setup): Set the current process'es tdesc.
12554 (the_low_target): Adjust.
12555 (initialize_low_arch): New function.
12556 * spu-low.c (tdesc_spu): Declare.
12557 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
12558 * win32-arm-low.c (tdesc_arm): Declare.
12559 (arm_arch_setup): New function.
12560 (the_low_target): Install arm_arch_setup instead of
12561 init_registers_arm.
12562 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
12563 (init_windows_x86): Rename to ...
12564 (i386_arch_setup): ... this. Set `win32_tdesc'.
12565 (the_low_target): Adjust.
12566 * win32-low.c (win32_tdesc): New global.
12567 (child_add_thread): Don't create the thread cache here.
12568 (do_initial_child_stuff): Set the new process'es tdesc.
12569 * win32-low.h (struct target_desc): Forward declare.
12570 (win32_tdesc): Declare.
12571 * lynx-i386-low.c (tdesc_i386): Declare global.
12572 (lynx_i386_arch_setup): Set `lynx_tdesc'.
12573 * lynx-low.c (lynx_tdesc): New global.
12574 (lynx_add_process): Set the new process'es tdesc.
12575 * lynx-low.h (struct target_desc): Forward declare.
12576 (lynx_tdesc): Declare global.
12577 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
12578 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
12579 * nto-low.c (nto_tdesc): New global.
12580 (do_attach): Set the new process'es tdesc.
12581 * nto-low.h (struct target_desc): Forward declare.
12582 (nto_tdesc): Declare.
12583 * nto-x86-low.c (tdesc_i386): Declare.
12584 (nto_x86_arch_setup): Set `nto_tdesc'.
12586 2013-06-04 Gary Benson <gbenson@redhat.com>
12588 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
12589 to qSupported response when appropriate.
12590 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
12591 with nonzero-length annex.
12592 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
12593 arguments supplied in annex.
12595 2013-05-31 Doug Evans <dje@google.com>
12598 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12599 64 bits in 64-cross-32 environment.
12601 2013-05-28 Pedro Alves <palves@redhat.com>
12603 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
12604 (aarch64-without-fpu.c): Delete rule.
12605 * configure.srv (aarch64*-*-linux*): Remove references to
12606 aarch64-without-fpu.o and aarch64-without-fpu.xml.
12607 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12610 2013-05-24 Pedro Alves <palves@redhat.com>
12612 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12613 instead of strchr/decode_address. Error if the range isn't split
12614 with a ','. Don't assume there's be a ':' in the action.
12616 2013-05-23 Yao Qi <yao@codesourcery.com>
12617 Pedro Alves <palves@redhat.com>
12619 * linux-low.c (lwp_in_step_range): New function.
12620 (linux_wait_1): If the thread was range stepping and stopped
12621 outside the stepping range, report the stop to GDB. Otherwise,
12622 continue stepping. Add range stepping debug output.
12623 (linux_set_resume_request): Copy the step range from the resume
12624 request to the lwp.
12625 (linux_supports_range_stepping): New.
12626 (linux_target_ops) <supports_range_stepping>: Set to
12627 linux_supports_range_stepping.
12628 * linux-low.h (struct linux_target_ops)
12629 <supports_range_stepping>: New field.
12630 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12631 * linux-x86-low.c (x86_supports_range_stepping): New.
12632 (the_low_target) <supports_range_stepping>: Set to
12633 x86_supports_range_stepping.
12634 * server.c (handle_v_cont): Handle 'r' action.
12635 (handle_v_requests): Append ";r" if the target supports range
12637 * target.h (struct thread_resume) <step_range_start,
12638 step_range_end>: New fields.
12639 (struct target_ops) <supports_range_stepping>:
12641 (target_supports_range_stepping): New macro.
12643 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12645 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12646 confusion in comment.
12648 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12650 * lynx-low.c (struct process_info_private): New type.
12651 (lynx_add_process): New function.
12652 (lynx_create_inferior, lynx_attach): Replace calls to
12653 add_process by calls to lynx_add_process.
12654 (lynx_resume): If PTID is null, then try using
12655 current_process()->private->last_wait_event_ptid.
12657 (lynx_clear_inferiors): Delete. The contents of that function
12658 has been inlined in lynx_mourn;
12659 (lynx_wait_1): Save the ptid in the process's private data.
12660 (lynx_mourn): Free the process' private data. Replace call
12661 to lynx_clear_inferiors by call to clear_inferiors.
12663 2013-05-17 Yao Qi <yao@codesourcery.com>
12665 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12668 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12670 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12671 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12672 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12673 PT_TEXT_END_ADDR guards. Update comments.
12674 (linux_target_op) <read_offsets>: Conditionally define to
12675 linux_read_offsets if the target is UCLIBC and if it defines
12676 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12678 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12679 Andrew Jenner <andrew@codesourcery.com>
12681 * Makefile.in (SFILES): Add linux-nios2-low.c.
12682 (clean): Add action to delete nios2-linux.c.
12683 (nios2-linux.c): New rule.
12684 * configure.srv: Add nios2*-*-linux*.
12685 * linux-nios2-low.c: New.
12687 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12689 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12691 2013-04-25 Hui Zhu <hui@codesourcery.com>
12694 * ax.c (ax_printf): Add fflush.
12696 2013-04-22 Tom Tromey <tromey@redhat.com>
12698 * Makefile.in (SFILES): Add filestuff.c.
12699 (OBS): Add filestuff.o.
12700 (filestuff.o): New target.
12701 * config.in, configure: Rebuild.
12702 * configure.ac: Check for fdwalk, pipe2.
12704 2013-04-17 Pedro Alves <palves@redhat.com>
12706 * configure.ac (USE_THREAD_DB): Delete variable.
12707 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12708 Don't AC_SUBST USE_THREAD_DB.
12709 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12710 * config.in, configure: Regenerate.
12712 2013-04-16 Pedro Alves <palves@redhat.com>
12714 * linux-low.h (struct lwp_info) <thread_known>: Move under
12715 the USE_THREAD_DB #ifdef.
12717 2013-04-16 Pedro Alves <palves@redhat.com>
12719 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12720 (linux-low.o): Delete rule.
12721 * linux-low.h: Always include "gdb_thread_db.h" instead of
12722 conditionally including thread_db.h.
12723 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12726 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12728 * Makefile.in (install-only): Fix make install regression.
12730 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12732 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12733 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12735 * gdbserver.1: Remove.
12737 2013-03-22 Pedro Alves <palves@redhat.com>
12739 * linux-low.c (handle_extended_wait): Don't call
12740 linux_enable_event_reporting.
12742 2013-03-15 Tony Theodore <tonyt@logyst.com>
12745 * Makefile.in (SHELL): Use @SHELL@.
12747 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12749 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12752 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12754 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12755 Remove extraneous NULL element.
12757 2013-03-13 Yao Qi <yao@codesourcery.com>
12759 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12760 'V' block in trace frame.
12762 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12764 * target.h (struct target_ops): Add btrace ops.
12765 (target_supports_btrace): New macro.
12766 (target_enable_btrace): New macro.
12767 (target_disable_btrace): New macro.
12768 (target_read_btrace): New macro.
12769 * gdbthread.h (struct thread_info): Add btrace field.
12770 * server.c: Include btrace-common.h.
12771 (handle_btrace_general_set): New function.
12772 (handle_btrace_enable): New function.
12773 (handle_btrace_disable): New function.
12774 (handle_general_set): Call handle_btrace_general_set.
12775 (handle_qxfer_btrace): New function.
12776 (struct qxfer qxfer_packets[]): Add btrace entry.
12777 * inferiors.c (remove_thread): Disable btrace.
12778 * linux-low: Include linux-btrace.h.
12779 (linux_low_enable_btrace): New function.
12780 (linux_low_read_btrace): New function.
12781 (linux_target_ops): Add btrace ops.
12782 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12783 Add srv_linux_btrace=yes.
12784 (x86_64-*-linux*): Add linux-btrace.o.
12785 Add srv_linux_btrace=yes.
12786 * configure.ac: Define HAVE_LINUX_BTRACE.
12787 * config.in: Regenerated.
12788 * configure: Regenerated.
12790 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12792 * server.c (handle_qxfer): Preserve error message if -3 is
12794 (qxfer): Document the -3 return value.
12796 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12798 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12799 (linux_btrace_h): New variable.
12800 (linux-btrace.o): New rule.
12802 2013-03-08 Stan Shebs <stan@codesourcery.com>
12803 Hafiz Abid Qadeer <abidh@codesourcery.com>
12805 * tracepoint.c (trace_buffer_size): New global.
12806 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12807 (init_trace_buffer): Change to one-argument function. Allocate
12808 trace buffer memory.
12809 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12810 handle QTBuffer:size packet.
12811 (cmd_bigqtbuffer_size): New function.
12812 (initialize_tracepoint): Call init_trace_buffer with
12813 DEFAULT_TRACE_BUFFER_SIZE.
12814 * server.c (handle_query): Add QTBuffer:size in the
12817 2013-03-07 Yao Qi <yao@codesourcery.com>
12819 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12820 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12822 (cmd_qtsp): Adjust condition. Do post increment.
12823 Set cur_action and cur_step_action back to 0.
12825 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12828 * linux-low.c (linux_write_memory): Return early success if LEN is
12831 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12833 * configure.srv: Add x86_64-*-cygwin* as target.
12835 2013-02-28 Tom Tromey <tromey@redhat.com>
12837 * configure.ac: Invoke AC_SYS_LARGEFILE.
12838 * configure, config.in: Rebuild.
12840 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12842 * win32-low.c: Throughout, fix format strings and casts of
12843 printf-like functions to avoid type related warnings on all
12845 (get_child_debug_event): Print dwDebugEventCode as hex since
12846 that's how it's usually documented.
12848 2013-02-28 Yao Qi <yao@codesourcery.com>
12850 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12853 2013-02-27 Jiong Wang <jiwang@tilera.com>
12855 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12856 (reg-tilegx32.c): New rule.
12857 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12858 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12859 different register info initializer according to elf class.
12860 (init_registers_tilgx32): New function. The tilegx32 register info
12862 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12863 (tile_store_gregset): Likewise.
12865 2013-02-27 Yao Qi <yao@codesourcery.com>
12867 * server.c (process_point_options): Print debug message when
12868 debug_threads is true.
12870 2013-02-26 Yao Qi <yao@codesourcery.com>
12872 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12874 2013-02-19 Pedro Alves <palves@redhat.com>
12875 Kai Tietz <ktietz@redhat.com>
12879 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12880 instead of strtoul to extract address from packet.
12881 (process_serial_event) <'z'>: Likewise.
12883 2013-02-18 Yao Qi <yao@codesourcery.com>
12885 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12887 2013-02-14 Pedro Alves <palves@redhat.com>
12891 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12892 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12894 2013-02-14 Pedro Alves <palves@redhat.com>
12896 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12898 2013-02-14 Pedro Alves <palves@redhat.com>
12900 * tracepoint.c (save_string): Delete.
12901 (add_tracepoint_action): Use savestring instead of save_string.
12903 2013-02-12 Pedro Alves <palves@redhat.com>
12905 * linux-xtensa-low.c: Ditto.
12906 * xtensa-xtregs.c: Ditto.
12908 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12910 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12913 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12915 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12916 aarch64_num_wp_regs and aarch64_num_bp_regs to
12917 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12919 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12921 * linux-aarch64-low.c (ps_get_thread_area): Replace
12922 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12924 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12925 Marcus Shawcroft <marcus.shawcroft@arm.com>
12926 Nigel Stephens <nigel.stephens@arm.com>
12927 Yufeng Zhang <yufeng.zhang@arm.com>
12929 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12930 (aarch64.c, aarch64-without-fpu.c): New targets.
12931 * configure.srv (aarch64*-*-linux*): New.
12932 * linux-aarch64-low.c: New file.
12934 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12936 * linux-low.c (handle_extended_wait, linux_create_inferior)
12937 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12938 (dequeue_one_deferred_signal, linux_resume_one_thread)
12939 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12940 (linux_tracefork_grandchild, linux_test_for_tracefork)
12941 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12942 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12943 where the argument is 0.
12945 2013-01-25 Yao Qi <yao@codesourcery.com>
12947 * event-loop.c: Include "queue.h".
12948 (gdb_event_p): New typedef.
12949 (struct gdb_event) <next_event>: Remove.
12950 (event_queue): Change to QUEUE(gdb_event_p).
12951 (async_queue_event): Remove.
12952 (gdb_event_xfree): New.
12953 (initialize_event_loop): New.
12954 (process_event): Use API from QUEUE.
12955 (wait_for_event): Likewise.
12956 * server.c (main): Call initialize_event_loop.
12957 * server.h (initialize_event_loop): Declare.
12959 2013-01-18 Yao Qi <yao@codesourcery.com>
12961 * ax.h (struct eval_agent_expr_context): New.
12962 (gdb_eval_agent_expr): Update declaration.
12963 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12964 TFRAME. Add new argument CTX.
12965 * server.h (struct eval_agent_expr_context): Declare.
12966 (agent_mem_read, agent_tsv_read): Update declaration.
12967 (agent_mem_read_string): Likewise.
12968 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12969 (add_traceframe_block): Add new argument TPOINT.
12970 Increase TPOINT->traceframe_usage.
12971 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12972 eval_tracepoint_agent_expr.
12973 (condition_true_at_tracepoint): Likewise.
12974 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12975 (agent_mem_read_string, agent_tsv_read): Likewise.
12977 2013-01-16 Yao Qi <yao@codesourcery.com>
12979 * linux-low.c (linux_resume_one_lwp): Don't check
12980 'lwp->bp_reinsert != 0'.
12982 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12983 Pedro Alves <palves@redhat.com>
12985 * lynx-low.c (ptrace_request_to_str): Define a temporary
12986 macro and use it to simplify this function's implementation.
12988 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12990 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12993 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12995 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12997 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12999 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
13001 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13003 * lynx-low.c (lynx_resume): Use the resume_info parameter
13004 to determine the ptid for the lynx_ptrace call, unless
13005 it is equal to minus_one_ptid, in which case we use the
13006 ptid of the current_inferior.
13007 (lynx_wait_1): After having received a thread create/exit
13008 event, resume the inferior's execution using the signaling
13009 thread's ptid, rather than the old ptid.
13011 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13013 * lynx-low.c (lynx_resume): Delete variable ret.
13015 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13017 * gdbreplay.c (gdbreplay_version): Update copyright year.
13018 * server.c (gdbserver_version): Likewise.
13020 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13022 * lynx-low.c (lynx_wait_1): Add debug trace before adding
13025 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13027 * lynx-low.c (ptrace_request_to_str): Add handling for
13028 PTRACE_GETTRACESIG.
13030 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13032 * lynx-low.c (lynx_attach): Delete variable new_process.
13034 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13036 * lynx-low.c (lynx_create_inferior): Delete variable
13039 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13041 * lynx-low.c (ptrace_request_to_str): Do not handle
13042 PTRACE_GETTHREADLIST if this macro does not exist.
13044 2012-12-15 Yao Qi <yao@codesourcery.com>
13046 * Makefile.in (OBS): Add notif.o.
13047 * notif.c, notif.h: New.
13048 * server.c: Include "notif.h".
13049 (struct vstop_notif) <next>: Remove.
13051 (queue_stop_reply): Update.
13052 (push_event, send_next_stop_reply): Remove.
13053 (discard_queued_stop_replies): Update.
13054 (notif_stop): New variable.
13055 (handle_v_stopped): Remove.
13056 (handle_v_requests): Don't call handle_v_stopped. Call
13057 handle_ack_notif instead.
13058 (queue_stop_reply_callback): Call notif_event_enque instead
13059 of queue_stop_reply.
13060 (handle_status): Don't call send_next_stop_reply, call
13061 notif_write_event instead.
13062 (kill_inferior_callback): Likewise.
13063 (detach_or_kill_inferior_callback): Likewise.
13064 (main): Call initialize_notif.
13065 (process_serial_event): Call QUEUE_is_empty.
13066 (handle_target_event): Call notif_push instead of push event.
13067 * server.h (push_event): Remove declaration.
13069 2012-12-10 Tom Tromey <tromey@redhat.com>
13071 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13072 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13075 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13076 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13077 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13078 (amd64-linux-ipa.o, ax.o): Rewrite.
13079 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13080 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13081 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13082 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13083 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13084 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13085 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13086 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13087 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13088 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13089 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13090 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13091 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13092 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13093 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13094 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13095 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13096 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13097 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13098 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13099 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13100 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13101 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13102 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13103 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13104 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13105 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13106 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13107 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13108 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13109 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13110 (reg-tilegx.o): Remove.
13111 (all_object_files): New macro.
13112 Include .deps files.
13113 * aclocal.m4, configure: Rebuild.
13114 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13115 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13116 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13118 2012-12-05 Tom Tromey <tromey@redhat.com>
13121 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13123 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
13125 * configure.ac: Check for linux/perf_event.h.
13126 * config.in: Regenerated.
13127 * configure: Regenerated.
13129 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13131 * hostio.c (handle_readlink): Decrease buffer size
13132 parameter passed to readlink by one byte.
13134 2012-11-26 Yao Qi <yao@codesourcery.com>
13136 * configure.ac (build_warnings): Append '-Wempty-body'.
13137 * configure: Regenerated.
13138 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13141 2012-11-15 Pierre Muller <muller@sourceware.org>
13143 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13144 * config.in: Regenerate.
13145 * configure: Regenerate.
13146 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13147 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13148 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13149 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13151 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13152 instead of <sys/wait.h> header.
13153 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13155 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
13157 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13158 (various make rules): Remove -DGDBSERVER
13160 2012-11-09 Yao Qi <yao@codesourcery.com>
13162 * spu-low.c (current_ptid): Move it to ..
13163 * gdbthread.h: ... here. New.
13164 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13165 * server.c (myresume, process_serial_event): Likewise.
13166 * thread-db.c (thread_db_find_new_threads): Likewise.
13167 * tracepoint.c (run_inferior_command): Likewise.
13169 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
13171 * server.c (handle_search_memory_1): Include access length in
13174 2012-09-05 Michael Brandt <michael.brandt@axis.com>
13176 * linux-crisv32-low.c: Fix compile errors.
13178 2012-09-04 Yao Qi <yao@codesourcery.com>
13180 * tracepoint.c (cmd_qtsv): Adjust debug message.
13181 Don't check CUR_TPOINT.
13183 2012-08-28 Yao Qi <yao@codesourcery.com>
13185 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13186 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13187 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13188 Remove declarations of xmalloc, xreallloc, xstrdup and
13190 * Makefile.in (libiberty_h): New.
13191 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13192 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13194 2012-08-23 Yao Qi <yao@codesourcery.com>
13196 * server.h: Remove declaration of 'xsnprintf'.
13198 2012-08-22 Keith Seitz <keiths@redhat.com>
13200 * server.h: Include build-gnulib-gbserver/config.h.
13201 * gdbreplay.c: Likewise.
13203 2012-08-08 Doug Evans <dje@google.com>
13205 * Makefile.in (SFILES): Add gdb_vecs.c.
13206 (OBS): Add gdb_vecs.o.
13207 (gdb_vecs_h, host_defs_h): New variables.
13208 (thread-db.o): Add $(gdb_vecs_h) dependency.
13209 (gdb_vecs.o): New rule.
13210 * thread-db.c: #include "gdb_vecs.h".
13211 (thread_db_load_search): Use a vector to iterate over path elements.
13212 Handle text appearing after "$pdir".
13214 * configure.ac: Add check for strstr.
13215 * config.in: Regenerate.
13216 * configure: Regenerate.
13218 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13220 * hostio.c (handle_pread): If pread fails, fall back to attempting
13222 (handle_pwrite): Likewise for pwrite.
13224 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13226 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13227 between unsupported TYPE and unimplementable ADDR/LEN combination.
13228 (arm_insert_point): Act on new return value.
13230 2012-07-31 Pedro Alves <palves@redhat.com>
13232 * server.c (process_point_options): Only skip tokens if we find
13233 one that is unrecognized. Don't treat 'X' specially while
13234 skipping unrecognized tokens.
13236 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13238 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13239 to 4-byte-align HW breakpoint addresses for Thumb.
13241 2012-07-27 Yao Qi <yao@codesourcery.com>
13245 * server.h: Declare gdb_agent_about_to_close.
13246 * target.c (kill_inferior): Include "agent.h".
13247 New. Send command 'kill'.
13248 * target.h (kill_inferior): Removed macro.
13249 * tracepoint.c (gdb_agent_about_to_close): New.
13250 (gdb_agent_helper_thread): Handle command 'close'.
13251 Wait endlessly until the inferior stops.
13252 Install gdb_agent_remove_socket to atexit hook.
13253 (agent_socket_name): New static variable.
13254 (gdb_agent_socket_init): Replace local variable 'name' with
13255 'agent_socket_name'.
13256 (gdb_agent_remove_socket): New.
13258 2012-07-27 Yao Qi <yao@codesourcery.com>
13260 * server.c (process_point_options): Stop at 'X' when parsing.
13262 2012-07-19 Michael Eager <eager@eagercon.com>
13264 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
13266 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13267 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13268 hardware breakpoint.
13270 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13272 * gdbserver/linux-low.c (initialize_low): Call
13273 linux_ptrace_init_warnings.
13275 2012-07-02 Doug Evans <dje@google.com>
13277 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13280 2012-07-02 Stan Shebs <stan@codesourcery.com>
13282 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13283 (ax.o): Add it to build rule.
13285 (OBS): Add format.o.
13286 (IPA_OBS): Add format.o.
13287 * server.c (handle_query): Claim support for breakpoint commands.
13288 (process_point_options): Add command case.
13289 (process_serial_event): Leave running if there are printfs in
13291 * mem-break.h (any_persistent_commands): Declare.
13292 (add_breakpoint_commands): Declare.
13293 (gdb_no_commands_at_breakpoint): Declare.
13294 (run_breakpoint_commands): Declare.
13295 * mem-break.c (struct point_command_list): New struct.
13296 (struct breakpoint): New field command_list.
13297 (any_persistent_commands): New function.
13298 (add_commands_to_breakpoint): New function.
13299 (add_breakpoint_commands): New function.
13300 (gdb_no_commands_at_breakpoint): New function.
13301 (run_breakpoint_commands): New function.
13302 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13304 * ax.c: Include format.h.
13305 (ax_printf): New function.
13306 (gdb_eval_agent_expr): Add printf opcode.
13308 2012-06-13 Yao Qi <yao@codesourcery.com>
13310 * server.c (start_inferior): Remove duplicated writes to fields
13311 'last_resume_kind' and 'last_status' of 'current_inferior'.
13313 2012-06-12 Yao Qi <yao@codesourcery.com>
13314 Pedro Alves <palves@redhat.com>
13316 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13318 * server.c (handle_v_cont): Extend comment.
13320 2012-06-11 Yao Qi <yao@codesourcery.com>
13322 * linux-low.c (linux_attach): Add 'static'.
13324 2012-06-06 Yao Qi <yao@codesourcery.com>
13326 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13328 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13330 Fix gcc -flto compilation warning.
13331 * server.c (main): Make variable multi_mode and attach volatile.
13333 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13335 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13336 if the platform doesn't know about it.
13338 2012-05-30 Jeff Kenton <jkenton@tilera.com>
13340 * Makefile.in (SFILES): Add linux-tile-low.c.
13341 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13342 * configure.srv: Handle tilegx-*-linux*.
13343 * linux-tile-low.c: New file.
13345 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13347 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13349 2012-05-24 Pedro Alves <palves@redhat.com>
13353 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
13355 2012-05-24 Pedro Alves <palves@redhat.com>
13359 Replace target_signal with gdb_signal throughout.
13361 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13363 * linux-low.c (linux_store_registers): Avoid the copying sequence
13364 when no data has been retrieved by ptrace.
13366 2012-05-22 Will Deacon <will.deacon@arm.com>
13368 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13369 Include asm/ptrace.h.
13370 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13373 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13375 * linux-low.c (linux_store_registers): Don't re-retrieve data
13376 with ptrace that has already been obtained from /proc. Always
13377 copy any data retrieved with ptrace to the buffer supplied.
13379 2012-05-11 Yao Qi <yao@codesourcery.com>
13380 Pedro Alves <palves@redhat.com>
13382 * linux-low.c (enum stopping_threads_kind): New.
13383 (stopping_threads): Change type to `enum stopping_threads_kind'.
13384 (handle_extended_wait): If stopping and suspending threads, leave
13385 the new_lwp suspended too.
13386 (linux_wait_for_event): Adjust.
13387 (stop_all_lwps): Set `stopping_threads' to
13388 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13389 whether we're suspending threads or just stopping them. Assert no
13392 2012-04-29 Yao Qi <yao@codesourcery.com>
13394 * server.h: Move some code to ...
13395 * gdbthread.h: ... here. New.
13396 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13397 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13398 (nto-low.o, win32-low.o): Likewise.
13399 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13400 * regcache.c, remote-utils.c, server.c: Likewise.
13401 * target.c, tracepoint.c, win32-low.c: Likewise.
13403 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13405 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13406 (PTRACE_ARG4_TYPE): Likewise.
13407 (PTRACE_XFER_TYPE): Likewise.
13408 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
13409 ptrace to PTRACE_ARG3_TYPE.
13410 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
13411 (PTRACE_ARG4_TYPE): Likewise.
13412 (PTRACE_XFER_TYPE): Likewise.
13413 (linux_detach_one_lwp): Cast fourth argument of
13414 ptrace to long then PTRACE_ARG4_TYPE.
13415 (regsets_fetch_inferior_registers): Cast third argument of
13416 ptrace to long then PTRACE_ARG3_TYPE.
13417 (regsets_store_inferior_registers): Likewise.
13419 2012-04-20 Pedro Alves <palves@redhat.com>
13421 * configure: Regenerate.
13423 2012-04-19 Pedro Alves <palves@redhat.com>
13425 * Makefile.in (GNULIB_BUILDDIR): New.
13426 (LIBGNU, INCGNU, GNULIB_H): Adjust.
13427 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
13428 (all, install-only, uninstall, clean-info, all-lib, clean): No
13429 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
13430 (maintainer-clean realclean distclean): Use subdir_do.
13432 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
13433 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
13434 * acinclude.m4: Include acx_configure_dir.m4.
13435 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
13436 calls. Call AC_PROG_RANLIB. Configure gnulib using
13439 (GNULIB_STDINT_H): Adjust.
13440 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
13441 * gdbreplay.c: Include build-gnulib/config.h.
13442 * server.h: Likewise.
13443 * aclocal.m4: Regenerate.
13444 * config.in: Regenerate.
13445 * configure: Regenerate.
13447 2012-04-19 Pedro Alves <palves@redhat.com>
13449 * Makefile.in (LIBGNU, INCGNU): Adjust.
13450 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
13451 (all, install-only, uninstall, clean-info, all-lib, clean)
13452 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
13453 * configure.ac: Adjust AC_OUTPUT output.
13454 * aclocal.m4: Regenerate.
13455 * configure: Regenerate.
13457 2012-04-19 Pedro Alves <palves@redhat.com>
13459 * Makefile.in (generated_files): New.
13460 (server_h): Remove the explicit dependency on config.h, and depend
13461 on $generated_files.
13463 2012-04-19 Pedro Alves <palves@redhat.com>
13465 * Makefile.in (INCGNU): Add -Ignulib.
13467 2012-04-19 Pedro Alves <palves@redhat.com>
13469 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
13470 (INCGNU): ... this, and spell out -I here.
13471 (GNULIB_LIB): Rename to ...
13472 (LIBGNU): ... this.
13473 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
13475 2012-04-19 Pedro Alves <palves@redhat.com>
13477 * config.in: Regenerate.
13479 2012-04-19 Pedro Alves <palves@redhat.com>
13481 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
13482 * server.h (memmem): Remove declaration.
13483 * config.in: Regenerate.
13484 * configure: Regenerate.
13486 2012-04-19 Yao Qi <yao@codesourcery.com>
13488 * Makefile.in (SFILES): Add common/vec.c.
13492 2012-04-19 Yao Qi <yao@codesourcery.com>
13494 * remote-utils.c (prepare_resume_reply): Replace with macro
13495 target_core_of_thread.
13496 * server.c (handle_qxfer_threads_proper): Likewise.
13497 * target.h (traget_core_of_thread): New macro.
13499 2012-04-18 Pedro Alves <palves@redhat.com>
13501 * aclocal.m4: Regenerate.
13502 * configure: Regenerate.
13504 2012-04-16 Yao Qi <yao@codesourcery.com>
13506 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
13507 duplicated on address.
13509 2012-04-16 Yao Qi <yao@codesourcery.com>
13511 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
13512 (struct tracepoint_action_ops) <send>: New field.
13513 (m_tracepoint_action_send, r_tracepoint_action_send): New.
13514 (agent_expr_send, x_tracepoint_action_send): New.
13515 (l_tracepoint_action_send): New.
13516 (cmd_qtdp): Download and install tracepoint
13517 according to `use_agent'.
13518 (run_inferior_command): Add one more parameter `len'.
13520 (tracepoint_send_agent): New.
13521 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
13523 2012-04-16 Yao Qi <yao@codesourcery.com>
13525 * tracepoint.c (download_tracepoints): Moved to ...
13526 (cmd_qtstart): ... here.
13528 2012-04-14 Yao Qi <yao@codesourcery.com>
13530 * tracepoint.c: Include inttypes.h.
13531 (struct collect_memory_action): Use sized types.
13532 (struct tracepoint): Likewise.
13533 (cmd_qtdp, stop_tracing): Update print specifiers.
13534 (cmd_qtp, response_tracepoint): Likewise.
13535 (collect_data_at_tracepoint): Likewise.
13536 (collect_data_at_step): Likewise.
13538 2012-04-14 Yao Qi <yao@codesourcery.com>
13540 Import gnulib module inttypes.
13541 * aclocal.m4, config.in, configure: Regenerated.
13543 2012-04-14 Yao Qi <yao@codesourcery.com>
13545 * Makefile.in (maintainer-clean, realclean, distclean): Remove
13546 Makefile and config.status at last.
13548 2012-04-13 Yao Qi <yao@codesourcery.com>
13550 * tracepoint.c: Include stdint.h unconditionally.
13552 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13554 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
13555 on BFD_HAVE_SYS_PROCFS_TYPE.
13556 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
13557 * configure: Regenerate.
13558 * config.in: Likewise.
13560 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13562 * Makefile.in (clean): Also remove x32.c x32-linux.c
13563 x32-avx.c x32-avx-linux.c.
13564 (x32.o): New target.
13566 (x32-linux.o): Likewise.
13567 (x32-linux.c): Likewise.
13568 (x32-avx.o): Likewise.
13569 (x32-avx.c): Likewise.
13570 (x32-avx-linux.o): Likewise.
13571 (x32-avx-linux.c): Likewise.
13573 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
13574 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
13575 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
13576 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
13577 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
13578 i386/x32-avx-linux.xml.
13580 * linux-x86-low.c (init_registers_x32_linux): New prototype.
13581 (init_registers_x32_avx_linux): Likwise.
13582 (x86_linux_update_xmltarget): Call init_registers_x32_linux
13583 or init_registers_x32_avx_linux if linux_is_elf64 is false.
13585 2012-04-13 Pedro Alves <palves@redhat.com>
13587 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
13588 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
13589 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
13590 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
13593 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13595 * linux-x86-low.c (compat_x32_clock_t): New.
13596 (compat_x32_siginfo_t): Likewise.
13597 (compat_x32_siginfo_from_siginfo): Likewise.
13598 (siginfo_from_compat_x32_siginfo): Likewise.
13599 (linux_is_elf64): Likewise.
13600 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
13601 and siginfo_from_compat_x32_siginfo for x32.
13602 (x86_arch_setup): Set linux_is_elf64.
13604 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13607 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13609 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13610 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13611 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13612 compatible with process.
13614 2012-04-12 Yao Qi <yao@codesourcery.com>
13616 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
13617 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
13618 (install-only, install-info, clean): Handle sub dir gnulib.
13619 (all-lib, am--refresh): New targets.
13620 (memmem.o): Remove target.
13621 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
13622 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
13623 (AC_REPLACE_FUNCS): Remove memmem.
13624 Invoke gl_INIT and AM_INIT_AUTOMAKE.
13625 (AC_OUTPUT): Generate Makefile in gnulib/.
13626 * aclocal.m4, config.in, configure: Regenerated.
13628 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13630 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13632 2012-04-05 Pedro Alves <palves@redhat.com>
13634 -Werror=strict-aliasing
13636 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13639 2012-04-04 Pedro Alves <palves@redhat.com>
13641 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13642 (sparc_store_gregset_from_stack, sparc_store_gregset)
13643 (sparc_breakpoint_at): Fix formatting.
13645 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13647 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13649 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13650 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13651 * config.in: Regenerate.
13652 * configure: Likewise.
13654 2012-03-29 Pedro Alves <palves@redhat.com>
13656 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13657 Correct ptrace arguments.
13659 2012-03-28 Pedro Alves <palves@redhat.com>
13661 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13662 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13663 (IA64_FR1_REGNUM): New defines.
13664 (ia64_fetch_register): New.
13665 (the_low_target): Install it.
13666 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13668 * linux-low.c (linux_fetch_registers): Try the
13669 the_low_target.fetch_register hook first.
13671 * linux-arm-low.c (the_low_target): Adjust.
13672 * linux-bfin-low.c (the_low_target): Adjust.
13673 * linux-cris-low.c (the_low_target): Adjust.
13674 * linux-crisv32-low.c (the_low_target): Adjust.
13675 * linux-m32r-low.c (the_low_target): Adjust.
13676 * linux-m68k-low.c (the_low_target): Adjust.
13677 * linux-mips-low.c (the_low_target): Adjust.
13678 * linux-ppc-low.c (the_low_target): Adjust.
13679 * linux-s390-low.c (the_low_target): Adjust.
13680 * linux-sh-low.c (the_low_target): Adjust.
13681 * linux-sparc-low.c (the_low_target): Adjust.
13682 * linux-tic6x-low.c (the_low_target): Adjust.
13683 * linux-x86-low.c (the_low_target): Adjust.
13684 * linux-xtensa-low.c (the_low_target): Adjust.
13686 2012-03-26 Pedro Alves <palves@redhat.com>
13688 * server.c (handle_qxfer_libraries): Don't bail early if
13689 the_target->qxfer_libraries_svr4 is not NULL.
13691 2012-03-26 Pedro Alves <palves@redhat.com>
13693 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13695 2012-03-23 Pedro Alves <palves@redhat.com>
13697 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13698 "library-list-svr4" element's start tag when the the DSO list is
13701 2012-03-23 Pedro Alves <palves@redhat.com>
13703 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13704 a variable whose type size is the same as the inferior's pointer
13707 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13709 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13711 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13712 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13713 * linux-low.h: Include <signal.h>.
13714 (struct siginfo): Remove forward declaration.
13715 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13718 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13720 * .gitignore: Ignore more files.
13722 2012-03-19 Pedro Alves <palves@redhat.com>
13723 Jan Kratochvil <jan.kratochvil@redhat.com>
13725 * server.c (cont_thread, general_thread): Add describing comments.
13726 (start_inferior): Clear `cont_thread'.
13727 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13730 2012-03-15 Yao Qi <yao@codesourcery.com>
13732 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13734 (cmd_qtdp): ... here.
13736 2012-03-15 Yao Qi <yao@codesourcery.com>
13738 * tracepoint.c (struct tracepoint_action_ops): New.
13739 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13740 (m_tracepoint_action_download): New.
13741 (r_tracepoint_action_download): New.
13742 (x_tracepoint_action_download): New.
13743 (l_tracepoint_action_download): New.
13744 (add_tracepoint_action): Install `action->ops' according type.
13745 (download_tracepoint_1): Move code `download' function pointer
13746 of various tracepoint_action_ops.
13748 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13750 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13751 linux_ptrace_attach_warnings.
13753 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13755 * Makefile.in (linux-ptrace.o): New.
13756 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13757 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13758 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13759 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13760 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13762 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13764 2012-03-08 Yao Qi <yao@codesourcery.com>
13765 Pedro Alves <palves@redhat.com>
13767 Fix PR server/13392.
13768 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13769 offset of JMP insn.
13770 * tracepoint.c (remove_tracepoint): New.
13771 (cmd_qtdp): Call remove_tracepoint when failed to install.
13773 2012-03-07 Pedro Alves <palves@redhat.com>
13775 * linux-low.c (get_detach_signal): New.
13776 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13777 Pass on pending signals to PTRACE_DETACH. Check the result of the
13779 * server.c (program_signals, program_signals_p): New.
13780 (handle_general_set): Handle QProgramSignals.
13781 * server.h (program_signals, program_signals_p): Declare.
13783 2012-03-05 Pedro Alves <palves@redhat.com>
13784 Jan Kratochvil <jan.kratochvil@redhat.com>
13786 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13789 2012-03-03 Yao Qi <yao@codesourcery.com>
13791 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13792 agent_look_up_symbols.
13794 2012-03-03 Yao Qi <yao@codesourcery.com>
13796 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13797 (linux-x86-low.o): Likewise.
13798 * server.h: Remove in_process_agent_loaded.
13799 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13803 2012-03-03 Yao Qi <yao@codesourcery.com>
13805 * tracepoint.c (gdb_agent_capability): New global.
13806 (in_process_agent_loaded_ust): Renamed to
13807 `in_process_agent_supports_ust'.
13809 (in_process_agent_supports_ust): Call agent_capability_check.
13810 (clear_installed_tracepoints): Assert that agent supports
13813 2012-03-03 Yao Qi <yao@codesourcery.com>
13815 * linux-low.c (linux_supports_agent): New.
13816 (linux_target_ops): Initialize field `supports_agent' with
13817 linux_supports_agent.
13818 * target.h (struct target_ops) <supports_agent>: New.
13819 (target_supports_agent): New macro.
13820 * server.c (handle_general_set): Handle packet 'QAgent'.
13821 (handle_query): Send `QAgent+'.
13822 * Makefile.in (server.o): Depends on agent.h.
13824 2012-03-03 Yao Qi <yao@codesourcery.com>
13826 * Makefile.in (OBS): Add agent.o.
13827 Add new rule for agent.o.
13828 Track dependence of tracepoint.c on agent.h.
13829 * tracepoint.c (run_inferior_command_1):
13830 (run_inferior_command): Call agent_run_command.
13831 (gdb_ust_connect_sync_socket): Deleted. Move it to
13833 (resume_thread, stop_thread): Likewise.
13834 (gdb_ust_socket_init): Renamed to ...
13835 (gdb_agent_socket_init): ... New.
13836 (gdb_ust_thread): Renamed to ...
13837 (gdb_agent_helper_thread): ... New.
13838 (gdb_ust_init): Move some code to ...
13839 (gdb_agent_init): ... here. New.
13840 [HAVE_UST]: Call gdb_ust_init.
13841 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13842 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13843 * config.in, configure: Regenerated.
13845 2012-03-02 Pedro Alves <palves@redhat.com>
13847 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13848 * linux-low.c (struct simple_pid_list): New.
13849 (stopped_pids): New a struct simple_pid_list pointer.
13850 (add_to_pid_list, pull_pid_from_list): New.
13851 (handle_extended_wait): Don't assume the first signal new children
13852 report is SIGSTOP. Adjust call to pull_pid_from_list.
13853 (linux_wait_for_lwp): Adjust.
13855 2012-03-02 Yao Qi <yao@codesourcery.com>
13857 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13860 2012-03-02 Yao Qi <yao@codesourcery.com>
13862 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13863 `stop_pc' and `tpoint'. Update caller.
13865 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13867 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13868 * linux-low.c (use_linux_regsets): New macro.
13869 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13870 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13871 (linux_register_in_regsets): New function.
13872 (usr_fetch_inferior_registers): Skip registers covered by
13874 (usr_store_inferior_registers): Likewise.
13875 (usr_fetch_inferior_registers): New macro.
13876 (usr_store_inferior_registers): Likewise.
13877 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13878 (linux_store_registers): Likewise.
13879 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13881 (init_registers_mips64_dsp_linux): Likewise.
13882 (init_registers_mips_linux): New macro.
13883 (init_registers_mips_dsp_linux): Likewise.
13884 (mips_dsp_num_regs): Likewise.
13885 (DSP_BASE, DSP_CONTROL): New fallback macros.
13886 (mips_base_regs): New macro.
13887 (mips_regmap): Use it. Fix the size.
13888 (mips_dsp_regmap): New variable.
13889 (mips_dsp_regset_bitmap): Likewise.
13890 (mips_arch_setup): New function.
13891 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13893 (mips_cannot_store_register): Likewise.
13894 (the_low_target): Update .arch_setup, .num_regs and .regmap
13895 initializers. Add .regset_bitmap initializer.
13896 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13898 * linux-bfin-low.c (the_low_target): Likewise.
13899 * linux-cris-low.c (the_low_target): Likewise.
13900 * linux-crisv32-low.c (the_low_target): Likewise.
13901 * linux-ia64-low.c (the_low_target): Likewise.
13902 * linux-m32r-low.c (the_low_target): Likewise.
13903 * linux-m68k-low.c (the_low_target): Likewise.
13904 * linux-ppc-low.c (the_low_target): Likewise.
13905 * linux-s390-low.c (the_low_target): Likewise.
13906 * linux-sh-low.c (the_low_target): Likewise.
13907 * linux-sparc-low.c (the_low_target): Likewise.
13908 * linux-tic6x-low.c (the_low_target): Likewise.
13909 * linux-x86-low.c (the_low_target): Likewise.
13910 * linux-xtensa-low.c (the_low_target): Likewise.
13911 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13912 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13913 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13915 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13916 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13918 2012-02-29 Yao Qi <yao@codesourcery.com>
13919 Pedro Alves <palves@redhat.com>
13921 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13922 `step_over_finished' is true.
13924 2012-02-27 Pedro Alves <palves@redhat.com>
13926 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13927 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13929 2012-02-27 Pedro Alves <palves@redhat.com>
13932 * linux-low.c (pid_is_stopped): New.
13933 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13935 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13937 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13940 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13942 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13944 2012-02-24 Luis Machado <lgustavo@codesourcery>
13946 * server.c (handle_query): Advertise support for target-side
13947 breakpoint condition evaluation.
13948 (process_point_options): New function.
13949 (process_serial_event): When inserting a breakpoint, check for
13950 a target-side condition that should be evaluated.
13952 * mem-break.c: Include regcache.h and ax.h.
13953 (point_cond_list_t): New data structure.
13954 (breakpoint) <cond_list>: New field.
13955 (find_gdb_breakpoint_at): Make non-static.
13956 (delete_gdb_breakpoint_at): Clear any target-side
13958 (clear_gdb_breakpoint_conditions): New function.
13959 (add_condition_to_breakpoint): Likewise.
13960 (add_breakpoint_condition): Likewise.
13961 (gdb_condition_true_at_breakpoint): Likewise.
13962 (gdb_breakpoint_here): Return result directly instead
13963 of going through a local variable.
13965 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13966 (clear_gdb_breakpoint_conditions): Likewise.
13967 (add_breakpoint_condition): Likewise.
13968 (gdb_condition_true_at_breakpoint): Likewise.
13970 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13971 (need_step_over_p): Take target-side breakpoint condition into
13974 2012-02-24 Luis Machado <lgustavo@codesourcery>
13976 * server.h: Include tracepoint.h.
13977 (agent_mem_read, agent_get_trace_state_variable_value,
13978 agent_set_trace_state_variable_value,
13979 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13980 get_set_tsv_func_addr): New prototypes.
13982 * ax.h: New include file.
13983 * ax.c: New source file.
13985 * tracepoint.c: Include ax.h.
13986 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13987 agent_expr, eval_result_type): Move to ax.h.
13988 (parse_agent_expr): Rename to ...
13989 (gdb_parse_agent_expr): ... this, make it non-static and move
13991 (unparse_agent_expr) Rename to ...
13992 (gdb_unparse_agent_expr): ... this, make it non-static and move
13994 (eval_agent_expr): Rename to ...
13995 (eval_tracepoint_agent_expr): ... this.
13996 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13997 forward declarations.
13998 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13999 (agent_get_trace_state_variable_value): New function.
14000 (agent_set_trace_state_variable_value): New function.
14001 (cmd_qtdp): Call gdb_parse_agent_expr (...).
14002 (response_tracepoint): Call gdb_unparse_agent_expr (...).
14003 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
14004 (condition_true_at_tracepoint): Likewise.
14005 (parse_agent_expr): Rename to ...
14006 (gdb_parse_agent_expr): ... this and move to ax.c.
14007 (unparse_agent_expr): Rename to ...
14008 (gdb_unparse_agent_expr): ... this and move to ax.c.
14009 (gdb_agent_op_name): Move to ax.c.
14010 (eval_agent_expr): Rename to ...
14011 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
14013 (eval_tracepoint_agent_expr): New function.
14014 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
14016 (current_insn_ptr, emit_error, struct bytecode_address): Move to
14018 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
14019 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
14020 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
14021 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
14022 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
14023 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
14024 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
14025 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
14026 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
14027 (compile_bytecodes): Remove forward declaration.
14028 (is_goto_target): Move to ax.c.
14029 (compile_bytecodes): Move to ax.c and call
14030 agent_get_trace_state_variable_value (...) and
14031 agent_set_trace_state_variable_value (...).
14033 * Makefile.in: Update ax.c and IPA dependencies.
14035 2012-02-24 Pedro Alves <palves@redhat.com>
14037 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
14038 (cmd_bigqtbuffer_circular): ... this. Only handle
14039 'QTBuffer:circular:'.
14040 (handle_tracepoint_general_set): Adjust.
14042 2012-02-16 Yao Qi <yao@codesourcery.com>
14044 * inferiors.c: Move code to ...
14045 * dll.c: .... here. New.
14046 * server.h: Declare clear_dlls.
14047 * Makefile.in (SFILES): Add dll.c.
14051 2012-02-11 Yao Qi <yao@codesourcery.com>
14053 * server.c: (handle_monitor_command): Add a new parameter
14055 (handle_query): Update caller.
14057 2012-02-09 Joel Brobecker <brobecker@adacore.com>
14059 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
14060 * configure, config.in: Regenerate.
14061 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14064 2012-02-02 Pedro Alves <palves@redhat.com>
14066 Try SIGKILL first, then PTRACE_KILL.
14067 * linux-low.c (linux_kill_one_lwp): New.
14068 (linux_kill_one_lwp): Rename to ...
14069 (kill_one_lwp_callback): ... this. Use the new
14070 linux_kill_one_lwp.
14072 2012-02-02 Pedro Alves <palves@redhat.com>
14074 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14077 2012-01-27 Pedro Alves <palves@redhat.com>
14079 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14080 (elf_64_file_p): Make static.
14081 (linux_pid_exe_is_elf_64_file): New.
14082 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14083 Delete declarations.
14084 (linux_pid_exe_is_elf_64_file): Declare.
14085 * linux-x86-low.c (x86_arch_setup): Use
14086 linux_pid_exe_is_elf_64_file.
14088 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14090 * linux-low.c (linux_wait_for_event_1): Rename to ...
14091 (linux_wait_for_event): ... here and merge it with former
14092 linux_wait_for_event - new variable wait_ptid, use it.
14093 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14095 2012-01-23 Pedro Alves <palves@redhat.com>
14097 * server.c (main): Avoid yet another case of infinite loop while
14098 detaching/killing after a longjmp.
14100 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14103 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14105 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14107 * hostio.c (handle_readlink): New function.
14108 (handle_vFile): Call it to handle "vFile:readlink" packets.
14110 2012-01-20 Pedro Alves <palves@redhat.com>
14111 Ulrich Weigand <ulrich.weigand@linaro.org>
14113 * server.c (handle_v_requests): Only support vAttach and vRun to
14114 start multiple processes when in extended protocol mode.
14116 2012-01-17 Pedro Alves <palves@redhat.com>
14118 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14119 memalign plus mprotect to allocate the scratch buffer.
14121 2012-01-13 Pedro Alves <palves@redhat.com>
14123 * server.c (attach_inferior): Clear `cont_thread'.
14125 2012-01-13 Pedro Alves <palves@redhat.com>
14127 * server.c (main): Avoid infinite loop while detaching/killing
14130 2012-01-09 Doug Evans <dje@google.com>
14132 * server.c (start_inferior): Set last_ptid in --wrapper case.
14134 2012-01-06 Yao Qi <yao@codesourcery.com>
14136 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14138 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14140 2012-01-04 Yao Qi <yao@codesourcery.com>
14142 * tracepoint.c (cmd_qtdp): Print debug message
14143 for static tracepoint.
14145 2012-01-04 Yao Qi <yao@codesourcery.com>
14147 * tracepoint.c (trace_vdebug): Differentiate debug message
14148 between gdbserver and IPA.
14150 2012-01-03 Yao Qi <yao@codesourcery.com>
14152 * tracepoint.c (tracepoint_was_hit): Don't collect for
14155 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14157 * terminal.h: Reformat copyright header.
14159 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14161 * server.c (gdbserver_version): Update copyright year.
14162 * gdbreplay.c (gdbreplay_version): Likewise.
14164 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14166 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14169 2011-12-18 Hui Zhu <teawater@gmail.com>
14170 * linux-low.c (linux_create_inferior): Save return value to ret.
14172 2011-12-18 Hui Zhu <teawater@gmail.com>
14174 * linux-low.c (linux_create_inferior): Save return value to ret.
14176 2011-12-16 Doug Evans <dje@google.com>
14178 * linux-low.c (linux_create_inferior): If stdio connection,
14179 redirect stdin from /dev/null, stdout to stderr.
14180 * remote-utils.c (remote_is_stdio): New static global.
14181 (remote_connection_is_stdio): New function.
14182 (remote_prepare): Handle stdio connection.
14183 (remote_open): Ditto.
14184 (remote_close): Don't close stdin for stdio connections.
14185 (read_prim,write_prim): New functions. Replace all calls to
14186 read/write to these.
14187 * server.c (main): Watch for "-" argument. Move call to
14188 remote_prepare before start_inferior.
14189 * server.h (STDIO_CONNECTION_NAME): New macro.
14190 (remote_connection_is_stdio): Declare.
14192 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14193 in debugging output.
14195 2011-12-15 Yao Qi <yao@codesourcery.com>
14197 * tracepoint.c: Include sys/syscall.h.
14198 (gdb_ust_thread): Remove preprocessor conditional.
14200 2011-12-14 Pedro Alves <pedro@codesourcery.com>
14202 * linux-low.c (linux_detach_one_lwp): Call
14203 the_low_target.prepare_to_resume before detaching.
14205 2011-12-14 Yao Qi <yao@codesourcery.com>
14207 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14210 2011-12-14 Yao Qi <yao@codesourcery.com>
14212 * i386-low.c (i386_low_stopped_data_address): Initialize local
14213 variable `control'.
14215 2011-12-13 Pedro Alves <pedro@codesourcery.com>
14219 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14220 DR_CONTROL unless necessary. Extend comments.
14221 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14222 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14224 2011-12-13 Yao Qi <yao@codesourcery.com>
14226 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14228 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14230 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14232 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14233 Print new debug message for such case.
14235 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14237 Fix overlapping memcpy.
14238 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14239 the read_inferior_memory transfer.
14240 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14241 write_inferior_memory transfer.
14242 (set_fast_tracepoint_jump): New variable buf. Use it for the
14243 read_inferior_memory and write_inferior_memory transfers.
14244 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14245 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14246 Use it for the write_inferior_memory transfer.
14247 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14250 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14252 * linux-low.c (fetch_register, store_register): Make code
14253 consistent, fix formatting.
14255 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14257 * linux-low.c (usr_store_inferior_registers): Factor out code
14258 to handle individual registers into...
14259 (store_register): ... this new function.
14261 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14263 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14264 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14265 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14266 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14267 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14268 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14269 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14270 (srv_xmlfiles): Add new XML files.
14272 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14274 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14275 (init_registers_s390_linux32v1): Add prototype.
14276 (init_registers_s390_linux32v2): Likewise.
14277 (init_registers_s390_linux64v1): Likewise.
14278 (init_registers_s390_linux64v2): Likewise.
14279 (init_registers_s390x_linux64v1): Likewise.
14280 (init_registers_s390x_linux64v2): Likewise.
14281 (s390_num_regs): Increment to 52.
14282 (s390_regmap): Add orig_r2 register.
14283 (s390_num_regs_3264): Increment to 68.
14284 (s390_regmap_3264): Add orig_r2 register.
14285 (s390_collect_ptrace_register): Handle orig_r2 register.
14286 (s390_supply_ptrace_register): Likewise.
14287 (s390_fill_last_break): New function.
14288 (s390_store_last_break): Likewise.
14289 (s390_fill_system_call): New function.
14290 (s390_store_system_call): Likewise.
14291 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14293 (s390_check_regset): New function.
14294 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14295 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14296 Update target_regsets for available register sets.
14298 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14299 Jan Kratochvil <jan.kratochvil@redhat.com>
14301 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14302 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14304 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14305 * linux-low.h (struct process_info_private): New member r_debug.
14306 * server.c (handle_qxfer_libraries): Call
14307 the_target->qxfer_libraries_svr4.
14308 (handle_qxfer_libraries_svr4): New function.
14309 (qxfer_packets): New entry "libraries-svr4".
14310 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14311 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14312 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14313 PACKET_qXfer_libraries_svr4.
14315 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14317 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14318 PSW address/mask between 8-byte and 16-byte formats.
14319 (s390_supply_ptrace_register): Likewise.
14320 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14321 basic addressing mode bit.
14323 2011-11-24 Stan Shebs <stan@codesourcery.com>
14325 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14327 2011-11-17 Stan Shebs <stan@codesourcery.com>
14329 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14330 (tracing_start_time): New global.
14331 (tracing_stop_time): New global.
14332 (tracing_user_name): New global.
14333 (tracing_notes): New global.
14334 (tracing_stop_note): New global.
14335 (cmd_qtstart): Set traceframe_usage, start_time.
14336 (stop_tracing): Set stop_time.
14337 (cmd_qtstatus): Report additional status.
14338 (cmd_qtp): New function.
14339 (handle_tracepoint_query): Call it.
14340 (cmd_qtnotes): New function.
14341 (handle_tracepoint_general_set): Call it.
14342 (get_timestamp): Rename from tsv_get_timestamp.
14344 2011-11-14 Stan Shebs <stan@codesourcery.com>
14345 Kwok Cheung Yeung <kcy@codesourcery.com>
14347 * linux-x86-low.c (small_jump_insn): New.
14348 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14349 trampoline and error message, build a trampoline and issue a small
14350 jump instruction to it.
14351 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14352 trampoline and error message.
14353 (x86_get_min_fast_tracepoint_insn_len): New.
14354 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14355 * linux-low.h (struct linux_target_ops): Add arguments to
14356 install_fast_tracepoint_jump_pad operation, add new operation.
14357 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14359 (linux_get_min_fast_tracepoint_insn_len): New function.
14360 (linux_target_op): Add new operation.
14361 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14362 (gdb_trampoline_buffer_end): Ditto.
14363 (gdb_trampoline_buffer_error): Ditto.
14364 (struct ipa_sym_addresses): Add fields for new IPA variables.
14365 (symbol_list): Add entries for new IPA variables.
14366 (struct tracepoint): Add fields to hold the address range of the
14367 trampoline used by the tracepoint.
14368 (trampoline_buffer_head): New static variable.
14369 (trampoline_buffer_tail): Ditto.
14370 (claim_trampoline_space): New function.
14371 (have_fast_tracepoint_trampoline_buffer): New function.
14372 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14374 (install_fast_tracepoint): Ditto, also add error buffer argument.
14375 (cmd_qtminftpilen): New function.
14376 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14377 (fast_tracepoint_from_trampoline_address): New function.
14378 (fast_tracepoint_collecting): Handle trampoline as part of jump
14380 (set_trampoline_buffer_space): New function.
14381 (initialize_tracepoint): Initialize new IPA variables.
14382 * target.h (struct target_ops): Add arguments to
14383 install_fast_tracepoint_jump_pad operation, add new
14384 get_min_fast_tracepoint_insn_len operation.
14385 (target_get_min_fast_tracepoint_insn_len): New.
14386 (install_fast_tracepoint_jump_pad): Add arguments.
14387 * server.h (IPA_BUFSIZ): Define.
14388 * linux-i386-ipa.c: Include extra header files.
14389 (initialize_fast_tracepoint_trampoline_buffer): New function.
14390 (initialize_low_tracepoint): Call it.
14391 * server.h (set_trampoline_buffer_space): Declare.
14392 (claim_trampoline_space): Ditto.
14393 (have_fast_tracepoint_trampoline_buffer): Ditto.
14395 2011-11-14 Yao Qi <yao@codesourcery.com>
14397 * server.c (handle_query): Handle InstallInTrace for qSupported.
14398 * tracepoint.c (add_tracepoint): Sort list.
14399 (install_tracepoint, download_tracepoint): New.
14400 (cmd_qtdp): Call them to install and download tracepoints.
14401 (sort_tracepoints): Removed.
14402 (cmd_qtstart): Update.
14404 2011-11-14 Yao Qi <yao@codesourcery.com>
14406 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14407 * mem-break.h: Declare.
14408 * tracepoint.c (cmd_qtstart): Move some code to ...
14409 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
14411 (download_tracepoints): Move some code to ...
14412 (download_tracepoint_1): ... here. New.
14414 2011-11-08 Yao Qi <yao@codesourcery.com>
14416 * remote-utils.c (relocate_instruction): A comment fix.
14418 2011-11-07 Joel Brobecker <brobecker@adacore.com>
14420 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
14421 (i386_dr_low_get_control, i386_dr_low_get_status): Use
14422 dr_status_mirror and dr_control_mirror from debug_reg_state.
14423 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
14424 (i386_initial_stuff): Remove use of deleted globals.
14425 (i386_get_thread_context, i386_set_thread_context,
14426 i386_thread_added): Use dr_status_mirror and dr_control_mirror
14427 from debug_reg_state.
14429 2011-11-05 Yao Qi <yao@codesourcery.com>
14431 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14432 address as TPOINT's.
14434 2011-11-02 Stan Shebs <stan@codesourcery.com>
14436 * tracepoint.c (agent_mem_read_string): New function.
14437 (eval_agent_expr): Call it for tracenz.
14438 * server.c (handle_query): Report support for tracenz.
14440 2011-11-02 Yao Qi <yao@codesourcery.com>
14442 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14444 2011-11-02 Yao Qi <yao@codesourcery.com>
14446 * target.h: Fix a typo in comment.
14448 2011-10-31 Pedro Alves <pedro@codesourcery.com>
14450 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
14451 clobber the breakpoints' shadows with fast tracepoint jumps.
14452 * mem-break.h (check_mem_write): Add `myaddr' parameter.
14453 * target.c (write_inferior_memory): Also pass MYADDR down to
14456 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14458 * configure.ac: Check support for personality routine.
14459 * configure: Regenerate.
14460 * config.in: Likewise.
14461 * linux-low.c: Include <sys/personality.h>.
14462 Define ADDR_NO_RANDOMIZE if necessary.
14463 (linux_create_inferior): Disable address space randomization when
14464 forking inferior, if requested.
14465 (linux_supports_disable_randomization): New function.
14466 (linux_target_ops): Install it.
14467 * server.h (disable_randomization): Declare.
14468 * server.c (disable_randomization): New global variable.
14469 (handle_general_set): Handle QDisableRandomization.
14470 (handle_query): Likewise for qSupported.
14471 (main): Support --disable-randomization and --no-disable-randomization
14472 command line arguments.
14473 * target.h (struct target_ops): Add supports_disable_randomization.
14474 (target_supports_disable_randomization): New macro.
14476 2011-09-29 Mike Frysinger <vapier@gentoo.org>
14478 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
14480 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
14481 [!PT_GETDSBT] (target_loadmap): New definition.
14482 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
14483 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
14484 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
14485 and PT_GETDSBT to LINUX_LOADMAP.
14486 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
14487 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
14489 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14491 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
14492 (arm_linux_hwbp_cap): New static variable.
14493 (arm_linux_get_hwbp_cap): Replace by ...
14494 (arm_linux_init_hwbp_cap): ... this new function.
14495 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
14496 (arm_linux_get_hw_watchpoint_count): Likewise.
14497 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14498 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
14499 (arm_prepare_to_resume): Use perror_with_name instead of error.
14501 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14503 * linux-arm-low.c: Include <signal.h>.
14504 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
14505 (struct arm_linux_hwbp_cap): New data type.
14506 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
14507 (struct arm_linux_hw_breakpoint): New data type.
14508 (MAX_BPTS, MAX_WPTS): Define.
14509 (struct arch_process_info, struct arch_lwp_info): New data types.
14510 (arm_linux_get_hwbp_cap): New function.
14511 (arm_linux_get_hw_breakpoint_count): Likewise.
14512 (arm_linux_get_hw_watchpoint_count): Likewise.
14513 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14514 (arm_hwbp_control_initialize): Likewise.
14515 (arm_hwbp_control_is_enabled): Likewise.
14516 (arm_hwbp_control_is_initialized): Likewise.
14517 (arm_hwbp_control_disable): Likewise.
14518 (arm_linux_hw_breakpoint_equal): Likewise.
14519 (arm_linux_hw_point_initialize): Likewise.
14520 (struct update_registers_data): New data structure.
14521 (update_registers_callback: New function.
14522 (arm_insert_point): Likewise.
14523 (arm_remove_point): Likewise.
14524 (arm_stopped_by_watchpoint): Likewise.
14525 (arm_stopped_data_address): Likewise.
14526 (arm_new_process): Likewise.
14527 (arm_new_thread): Likewise.
14528 (arm_prepare_to_resume): Likewise.
14529 (the_low_target): Register arm_insert_point, arm_remove_point,
14530 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
14531 arm_new_thread, and arm_prepare_to_resume.
14533 2011-09-15 Stan Shebs <stan@codesourcery.com>
14535 * server.h (struct emit_ops): Add compare-goto fields.
14536 * tracepoint.c (gdb_agent_op_sizes): New table.
14537 (emit_eq_goto): New function.
14538 (emit_ne_goto): New function.
14539 (emit_lt_goto): New function.
14540 (emit_le_goto): New function.
14541 (emit_gt_goto): New function.
14542 (emit_ge_goto): New function.
14543 (is_goto_target): New function.
14544 (compile_bytecodes): Recognize special cases of compare-goto
14545 combinations and call specialized emitters for them.
14546 * linux-x86-low.c (amd64_emit_eq_goto): New function.
14547 (amd64_emit_ne_goto): New function.
14548 (amd64_emit_lt_goto): New function.
14549 (amd64_emit_le_goto): New function.
14550 (amd64_emit_gt_goto): New function.
14551 (amd64_emit_ge_goto): New function.
14552 (amd64_emit_ops): Add the new functions.
14553 (i386_emit_eq_goto): New function.
14554 (i386_emit_ne_goto): New function.
14555 (i386_emit_lt_goto): New function.
14556 (i386_emit_le_goto): New function.
14557 (i386_emit_gt_goto): New function.
14558 (i386_emit_ge_goto): New function.
14559 (i386_emit_ops): Add the new functions.
14561 2011-09-08 Stan Shebs <stan@codesourcery.com>
14563 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14564 (i386_emit_epilogue): Restore %ebx.
14566 2011-08-31 Jie Zhang <jzhang918@gmail.com>
14568 * server.c (step_thread): Remove definition.
14569 (process_serial_event): Don't handle Hs.
14570 * server.h (step_thread): Remove declaration.
14571 * target.c (set_desired_inferior): Remove use of step_thread.
14573 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14575 * linux-low.c: Include linux-procfs.h.
14576 (linux_attach_lwp_1): Update comments.
14577 (linux_attach): Scan for existing threads when attaching to a
14578 process that is the tgid.
14579 * Makefile.in: Update dependencies.
14581 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14583 * configure.srv: Add linux-procfs.o dependencies.
14585 2011-08-14 Yao Qi <yao@codesourcery.com>
14587 * target.h (struct target_ops): Fix indent.
14588 * win32-low.c (win32_target_ops): Fix comment.
14590 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
14591 Yao Qi <yao@codesourcery.com>
14593 * Makefile.in (clean): Remove tic6x-*.c files.
14594 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
14595 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
14596 (tic6x-c64xp-linux.c): Likewise.
14597 * configure.srv: Add support for tic6x-*-uclinux.
14598 * linux-tic6x-low.c: New.
14599 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
14601 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
14602 Yao Qi <yao@codesourcery.com>
14604 * target.h (struct target_ops): Add read_loadmap.
14605 * linux-low.c (struct target_loadseg): New type.
14606 (struct target_loadmap): New type.
14607 (linux_read_loadmap): New function.
14608 (linux_target_ops): Add linux_read_loadmap.
14609 * server.c (handle_query): Support qXfer:fdpic:read packet.
14610 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14613 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14615 * win32-low.c: Include <stdint.h>.
14617 2011-07-22 Pedro Alves <pedro@codesourcery.com>
14619 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
14620 to the inferior here.
14621 (i386_remove_aligned_watchpoint): Ditto.
14622 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
14623 fit part of the watchpoint in the debug registers.
14624 (i386_update_inferior_debug_regs): New.
14625 (i386_low_insert_watchpoint): Work on a local mirror of the debug
14626 registers, and only update the inferior on success.
14627 (i386_low_remove_watchpoint): Ditto.
14629 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14631 * linux-low.c (compare_ints, unique, list_threads, show_process,
14632 linux_core_of_thread): Delete.
14633 (linux_target_ops): Change linux_core_of_thread to
14634 linux_common_core_of_thread.
14635 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14636 * utils.c (malloc_failure): Change type of argument.
14637 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14638 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14639 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14640 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14641 (IPA_OBJS): Add common-utils-ipa.o.
14642 (ptid_h, linux_osdata_h): New macros.
14643 (server_h): Add common/common-utils.h, common/xml-utils.h,
14644 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14646 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14647 ptid.o, buffer.o): New rules.
14648 (linux-low.o): Add common/linux-osdata.h as a dependency.
14649 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14650 * configure.ac: Add AC_HEADER_DIRENT check.
14651 * config.in: Regenerate.
14652 * configure: Regenerate.
14653 * remote-utils.c (xml_escape_text): Delete.
14654 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14655 buffer_xml_printf): Move to common/buffer.c.
14656 * server.c (main): Remove call to initialize_inferiors.
14657 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14658 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14659 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14660 internal_error, gdb_assert, gdb_assert_fail): Delete.
14661 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14662 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14664 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14665 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14666 initialize_inferiors): Delete.
14668 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14670 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14673 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14675 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14677 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14679 2011-05-26 Yao Qi <yao@codesourcery.com>
14681 * Makefile.in (thread-db.o): Track dependence to
14682 common/gdb_thread_db.h.
14683 * thread-db.c: include gdb_thread_db.h from right place.
14685 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14687 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14688 __FILE__ and __LINE__ to internal_error.
14690 2011-05-13 Doug Evans <dje@google.com>
14692 * thread-db.c (try_thread_db_load_from_sdir): New function.
14693 (try_thread_db_load_from_dir): New function.
14694 (thread_db_load_search): Handle $sdir, ignore $pdir.
14695 Remove trying of system directories if search of
14696 libthread-db-search-path fails, that is now done via $sdir.
14698 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14700 * server.c (handle_query): Add EnableDisableTracepoints to the list
14701 of supported features.
14702 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14704 (cmd_qtenable_disable): New.
14705 (cmd_qtstart): Install tracepoints even if disabled.
14706 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14707 receiving a QTEnable or QTDisable packet.
14708 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14709 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14711 (gdb_probe): Skip data collection if static tracepoint is disabled.
14713 2011-05-10 Doug Evans <dje@google.com>
14715 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14717 2011-05-04 Doug Evans <dje@google.com>
14719 * linux-low.c (linux_join): Skip process lookup.
14720 * spu-low.c (spu_join): Ditto.
14721 * server.c (join_inferiors_callback): Delete.
14722 (process_serial_event): For 'D' packet (detach) call join_inferior
14725 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14727 * README: Don't mention xscale*-*-linux*.
14728 * configure.srv (xscale*-*-linux*): Don't handle target.
14730 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14732 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14734 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14735 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14736 (i386_emit_void_call_2): Likewise.
14738 2011-04-26 Yao Qi <yao@codesourcery.com>
14740 * linux-low.c: Move common macros to linux-ptrace.h.
14741 Include linux-ptrace.h.
14742 * Makefile.in (linux_ptrace_h): New.
14743 (linux-low.o): Depends on linux-ptrace.h.
14745 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14747 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14748 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14749 (remote_prepare): New function with most of the TCP code from ...
14750 (remote_open): ... here. Detect PORT here unconditionally. Move also
14751 setting transport_is_reliable.
14752 * server.c (run_once): New variable.
14753 (gdbserver_usage): Document it.
14754 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14755 the first run if RUN_ONCE.
14756 * server.h (run_once, remote_prepare): New declarations.
14758 2011-04-19 Tom Tromey <tromey@redhat.com>
14760 * win32-low.c (handle_load_dll): Remove duplicate "the".
14762 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14764 Remove support for old Cygwin 1.5 versions.
14765 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14766 function to avoid warning.
14767 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14770 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14772 * gdbserver/server.h (Macro _): Define it if not available.
14774 2011-03-14 Michael Snyder <msnyder@vmware.com>
14776 * hostio.c (handle_close): Remove unnecessary null test.
14778 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14780 * Makefile.in (maintainer-clean realclean distclean): Remove
14781 "make ... subdir_do" command.
14783 2011-03-10 Michael Snyder <msnyder@vmware.com>
14785 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14787 * server.c (handle_v_run): Free alloced buffer on early return.
14789 2011-03-09 Yao Qi <yao@codesourcery.com>
14792 2011-03-04 Yao Qi <yao@codesourcery.com>
14794 * Makefile.in: Remove GNU make feature --directory.
14796 2011-03-05 Yao Qi <yao@codesourcery.com>
14798 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14799 (subdir_do): New make target. Copied from gdb/Makefile.
14800 (maintainer-clean, realclean, distclean, clean): Call corresponding
14801 make targets in common/Makefile.
14803 2011-02-11 Yao Qi <yao@codesourcery.com>
14805 * configure.ac: Call AC_PROG_RANLIB.
14806 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14807 * configure: Regenerate.
14809 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14811 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14813 2011-03-06 Yao Qi <yao@codesourcery.com>
14815 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14817 2011-03-05 Yao Qi <yao@codesourcery.com>
14819 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14820 (subdir_do): New make target. Copied from gdb/Makefile.
14821 (maintainer-clean, realclean, distclean, clean): Call corresponding
14822 make targets in common/Makefile.
14824 2011-03-04 Yao Qi <yao@codesourcery.com>
14826 * Makefile.in: Remove GNU make feature --directory.
14828 2011-03-04 Michael Snyder <msnyder@vmware.com>
14830 * server.c (queue_stop_reply): Call xmalloc not malloc.
14832 2011-03-02 Michael Snyder <msnyder@vmware.com>
14834 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14836 2011-02-28 Michael Snyder <msnyder@vmware.com>
14838 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14839 (cmd_qtframe): Ditto.
14840 (cmd_qtbuffer): Ditto.
14841 (cmd_bigqtbuffer): Ditto.
14843 * utils.c (decimal2str): Initialize 'width' to nine, then
14844 don't mess with it.
14846 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14848 * hostio.c (require_data): Free *data, not data.
14850 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14852 * hostio.c (require_data): Use free, not xfree.
14854 2011-02-27 Michael Snyder <msnyder@vmware.com>
14856 * server.c (handle_query): Discard unused value.
14858 * hostio.c (require_data): Free malloc memory before returning
14861 2011-02-26 Michael Snyder <msnyder@vmware.com>
14863 * linux-low.c (list_threads): Call closedir for dirent.
14865 2011-02-27 Michael Snyder <msnyder@vmware.com>
14867 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14868 a case statement falls through.
14870 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14872 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14875 2011-02-26 Michael Snyder <msnyder@vmware.com>
14877 * utils.c (decimal2str): Eliminate dead code and dead param.
14878 (pulongest): Drop dead param from call to decimal2str.
14881 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14883 Revert the following patch (not approved yet):
14884 2011-02-21 Hui Zhu <teawater@gmail.com>
14885 * tracepoint.c (tp_printf): New function.
14886 (eval_agent_expr): Handle gdb_agent_op_printf.
14888 2011-02-21 Hui Zhu <teawater@gmail.com>
14890 * tracepoint.c (tp_printf): New function.
14891 (eval_agent_expr): Handle gdb_agent_op_printf.
14893 2011-02-18 Tom Tromey <tromey@redhat.com>
14895 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14896 (tracepoint.o): Likewise.
14897 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14898 (gdb_agent_op_names): Likewise.
14900 2011-02-18 Tom Tromey <tromey@redhat.com>
14902 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14903 gdb_agent_op_rot>: New constants.
14904 (gdb_agent_op_names): Add pick and roll.
14905 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14908 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14910 * aclocal.m4: Regenerated with aclocal-1.11.1.
14912 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14914 * server.c (handle_qxfer_traceframe_info): New.
14915 (qxfer_packets): Register "traceframe-info".
14916 (handle_query): Report support for qXfer:traceframe-info:read+.
14917 * tracepoint.c (match_blocktype): New.
14918 (traceframe_find_block_type): Rename to ...
14919 (traceframe_walk_blocks): ... this. Add callback filter argument,
14921 (traceframe_find_block_type): New, reimplemented on top of
14922 traceframe_walk_blocks.
14923 (build_traceframe_info_xml): New.
14924 (traceframe_read_info): New.
14925 * server.h (traceframe_read_info): Declare.
14927 2011-02-11 Yao Qi <yao@codesourcery.com>
14929 * configure.ac: Call AC_PROG_RANLIB.
14930 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14931 * configure: Regenerate.
14933 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14935 * server.c (gdb_read_memory): Change return semantics to allow
14937 (handle_search_memory_1): Adjust.
14938 (process_serial_event) <'m' packet>: Handle partial transfers.
14939 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14941 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14943 * regcache.c (init_register_cache): Initialize
14944 regcache->register_status.
14945 (free_register_cache): Release regcache->register_status.
14946 (regcache_cpy): Copy register_status.
14947 (registers_to_string): Print 'x's for unavailable registers.
14948 (supply_register): Mark the register's status valid or
14949 unavailable, depending on whether a buffer was passed in or not.
14950 (supply_register_zeroed): New.
14951 (supply_regblock): Mark the registers' status valid or
14952 unavailable, depending on whether a buffer was passed in or not.
14953 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14954 (struct regcache): New `register_status' field.
14955 (supply_register_zeroed): Declare.
14956 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14957 supply_register_zeroed, rather than passing a NULL buffer to
14959 * tracepoint.c (fetch_traceframe_registers): Update comment.
14961 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14963 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14966 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14968 * server.h (decode_xfer_write): Change prototype.
14969 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14970 and don't extract the annex here.
14971 * server.c (decode_xfer_read): Remove `annex' parameter,
14972 and don't extract the annex here.
14973 (decode_xfer): New.
14974 (struct qxfer): New.
14975 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14976 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14977 (handle_qxfer_statictrace): New functions, abstracted out from
14978 handle_query, and made to use the struct qxfer interface.
14979 (handle_threads_qxfer_proper): Rename to ...
14980 (handle_qxfer_threads_proper): ... this.
14981 (handle_threads_qxfer): Rename to ...
14982 (handle_qxfer_threads): ... this. Adjust.
14983 (qxfer_packets): New array.
14984 (handle_qxfer): New function.
14985 (handle_query): Use handle_qxfer.
14987 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14989 * gdbreplay.c: Shorten lines of >= 80 columns.
14990 * linux-low.c: Ditto.
14991 * linux-ppc-low.c: Ditto.
14992 * linux-s390-low.c: Ditto.
14993 * linux-sparc-low.c: Ditto.
14994 * linux-x86-low.c: Ditto.
14995 * linux-xtensa-low.c: Ditto.
14996 * mem-break.c: Ditto.
14997 * nto-low.c: Ditto.
14998 * regcache.h: Ditto.
14999 * remote-utils.c: Ditto.
15002 * thread-db.c: Ditto.
15003 * tracepoint.c: Ditto.
15005 * win32-low.h: Ditto.
15007 2011-01-05 Joel Brobecker <brobecker@adacore.com>
15009 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
15012 2011-01-01 Joel Brobecker <brobecker@adacore.com>
15014 * server.c (gdbserver_version): Update copyright year in version
15016 * gdbreplay.c (gdbreplay_version): Ditto.
15018 2010-12-29 Jie Zhang <jie.zhang@analog.com>
15020 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
15021 * linux-bfin-low.c: New file.
15022 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
15023 PT_DATA_ADDR for BFIN targets.
15024 * Makefile.in (SFILES): Add linux-bfin-low.c.
15025 (clean): Remove reg-bfin.c.
15026 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
15027 * README: Mention supported Blackfin targets.
15029 2010-12-23 Mike Frysinger <vapier@gentoo.org>
15031 * .gitignore: New file.
15033 2010-11-16 Mike Frysinger <vapier@gentoo.org>
15035 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
15037 2010-10-22 Jie Zhang <jie@codesourcery.com>
15039 * Makefile.in: Add FLAGS_TO_PASS variable.
15040 (install): Remove dependency of install-only and recursively
15041 invoke make for install-only.
15043 2010-10-04 Doug Evans <dje@google.com>
15045 * Makefile.in (uninstall): Use $(DESTDIR).
15047 2010-09-24 Pedro Alves <pedro@codesourcery.com>
15051 * linux-x86-low.c (compat_siginfo_from_siginfo)
15052 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
15053 si_code is < 0. Check for si_code == SI_TIMER before checking for
15056 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15058 * lynx-i386-low.c: New file.
15059 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
15061 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15063 * lynx-low.c (ptrace_request_to_str): Remove handling for
15064 request values that have been removed in LynxOS 5.x.
15066 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15068 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15071 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15073 * configure.ac: Add --enable-inprocess-agent option.
15074 * configure: Rebuilt.
15076 2010-09-06 Yao Qi <yao@codesourcery.com>
15078 * linux-low.c (linux_kill): Remove unused variable.
15079 (linux_stabilize_threads): Likewise.
15080 * server.c (start_inferior): Likewise.
15081 (queue_stop_reply_callback): Likewise.
15082 * tracepoint.c (do_action_at_tracepoint): Likewise.
15084 2010-09-06 Yao Qi <yao@codesourcery.com>
15086 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15089 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15091 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15093 2010-09-06 Pedro Alves <pedro@codesourcery.com>
15095 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15098 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15100 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15101 gdbserver/lynx-ppc-low.c: New files.
15102 * Makefile.in (lynx_low_h): New variable.
15103 (lynx-low.o, lynx-ppc-low.o): New rules.
15104 * configure.ac: On LynxOS, link with -lnetinet.
15105 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15106 * configure: regenerate.
15108 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15110 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15111 * configure.ac: Add check for vasprintf and vsnprintf.
15112 * configure, config.in: Regenerate.
15113 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15115 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15117 * gdbreplay.c: Move include of alloca.h up, next to include of
15119 * server.h: Add include of malloc.h.
15120 * mem-break.c: Remove include of malloc.h.
15121 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15123 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15125 * Makefile.in (memmem.o): Build with -Wno-error.
15127 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15129 * utils.c (xsnprintf): Make non-static.
15130 * server.h: Add xsnprintf declaration.
15131 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15132 replace calls to snprintf by calls to xsnprintf throughout.
15134 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15136 * configure.ac: Add configure check for alloca.
15137 * configure, config.in: Regenerate.
15138 * server.h: Include alloca.h if it exists.
15139 * gdbreplay.c: Include alloca.h if it exists.
15141 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15143 * linux-low.c (__SIGRTMIN): Define if not already defined.
15144 (linux_create_inferior): Check for __ANDROID__ rather than
15146 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15147 are already deferred.
15148 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15149 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15150 stopped and already has a pending signal to report.
15151 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15152 a pending signal to report or is moving out of a jump pad.
15153 (linux_init_signals): Check for __ANDROID__ rather than
15156 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15158 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15159 debug_threads check. Avoid a linear search when not doing debug
15162 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15164 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15165 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15166 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15167 (process_event): Change local fd's type to gdb_fildes_t.
15168 (create_file_handler): Adjust prototype.
15169 (delete_file_handler): Adjust prototype.
15170 (handle_file_event): Adjust prototype. Use pfildes.
15171 (create_file_event): Adjsut prototype.
15172 * remote-utils.c (remote_desc, listen_desc): Change type to
15174 * server.h: New gdb_fildes_t typedef.
15175 [USE_WIN32API]: Include winsock2.h.
15176 (delete_file_handler, add_file_handler): Adjust prototypes.
15177 (pfildes): Declare.
15178 * utils.c (pfildes): New.
15180 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15182 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15183 * configure: Regenerate.
15185 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15187 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15188 (linux_done_accessing_memory): ... this.
15189 (linux_target_ops): Adjust.
15190 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15191 * nto-low.c (nto_target_ops): Adjust comment.
15192 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15193 * spu-low.c (spu_target_ops): Adjust comment.
15194 * target.h (target_ops): Rename unprepare_to_access_memory field
15195 to done_accessing_memory.
15196 (unprepare_to_access_memory): Rename to ...
15197 (done_accessing_memory): ... this.
15199 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15201 * linux-low.c (linux_prepare_to_access_memory): New.
15202 (linux_unprepare_to_access_memory): New.
15203 (linux_target_ops): Install them.
15204 * server.c (read_memory): Rename to ...
15205 (gdb_read_memory): ... this. Use
15206 prepare_to_access_memory/prepare_to_access_memory.
15207 (write_memory): Rename to ...
15208 (gdb_write_memory): ... this. Use
15209 prepare_to_access_memory/prepare_to_access_memory.
15210 (handle_search_memory_1): Adjust.
15211 (process_serial_event): Adjust.
15212 * target.h (struct target_ops): New fields
15213 prepare_to_access_memory and unprepare_to_access_memory.
15214 (prepare_to_access_memory, unprepare_to_access_memory): New.
15215 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15216 prepare_to_access_memory/prepare_to_access_memory.
15217 * nto-low.c (nto_target_ops): Adjust.
15218 * spu-low.c (spu_target_ops): Adjust.
15219 * win32-low.c (win32_target_ops): Adjust.
15221 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15223 * Makefile.in (WARN_CFLAGS): Get it from configure.
15224 (WERROR_CFLAGS): New.
15225 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15226 * configure.ac: Introduce --enable-werror, which adds -Werror to
15227 the compiler command line. Enabled by default. Disable with
15228 --disable-werror. Add -Wdeclaration-after-statement
15229 Wpointer-arith and -Wformat-nonliteral to warning flags.
15230 * configure: Regenerate.
15232 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15234 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15236 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15238 * gdbreplay.c (remote_error): New.
15240 (expect): Use gdbchar. Check for error reading from GDB.
15241 Clarify sync error output.
15242 (play): Check for errors writing to GDB.
15243 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15244 * remote-utils.c (getpkt): Check for errors writing to the remote
15247 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15249 * linux-low.c (linux_wait_1): Move non-debugging code out of
15250 `debug_threads' control.
15252 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15254 * linux-low.c (linux_wait_1): Don't set last_status here.
15255 * server.c (push_event, queue_stop_reply_callback): Assert we're
15256 not pushing a TARGET_WAITKIND_IGNORE event.
15257 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15258 (myresume, handle_target_event): Set the thread's last_resume_kind
15259 and last_status from the target returned status.
15261 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15265 * linux-x86-low.c (update_debug_registers_callback): New.
15266 (i386_dr_low_set_addr): Use it.
15267 (i386_dr_low_get_addr): New.
15268 (i386_dr_low_set_control): Use update_debug_registers_callback.
15269 (i386_dr_low_get_control): New.
15270 (i386_dr_low_get_status): Adjust.
15271 * linux-low.c (linux_stop_lwp): New.
15272 * linux-low.h (linux_stop_lwp): Declare.
15274 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15275 argument instead of a i386_debug_reg_state.
15276 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15277 a i386_debug_reg_state.
15278 (i386_insert_aligned_watchpoint): Adjust.
15279 (i386_remove_aligned_watchpoint): Adjust.
15280 (i386_low_stopped_data_address): Read the debug registers from the
15281 inferior instead of from the mirrors.
15282 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15283 (i386_dr_low_get_addr): Declare.
15284 (i386_dr_low_get_control): Declare.
15285 (i386_dr_low_get_status): Change prototype.
15287 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15288 (i386_dr_low_get_addr): New.
15289 (i386_dr_low_get_control): New.
15290 (i386_dr_low_get_status): Adjust prototype. Return
15292 (i386_initial_stuff): Clear dr_status_mirror and
15294 (i386_get_thread_context): Adjust.
15295 (i386_set_thread_context): Adjust.
15296 (i386_thread_added): Adjust.
15298 2010-08-24 Pedro Alves <pedro@codesourcery.com>
15300 * linux-low.h (linux_thread_area): Delete declaration.
15302 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15304 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15305 after its termination.
15307 2010-08-09 Pedro Alves <pedro@codesourcery.com>
15309 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15310 (gdb_wants_all_stopped): Delete.
15311 (linux_wait_1): Don't call them.
15312 * server.c (handle_v_cont): Tag all threads as want-stopped.
15313 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15314 stopped as "client-wants-stopped".
15316 2010-07-31 Pedro Alves <pedro@codesourcery.com>
15318 * Makefile.in (signals_h): New.
15319 (server_h): Depend on it.
15320 (server.o): Don't depend on $(signals_def).
15321 (signals.o): Depend on $(signals_def).
15323 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15325 * Makefile.in (signals_def): New.
15326 (server_h): Append include/gdb/signals.h and signals_def.
15327 (server.o): Append signals_def.
15329 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15331 * server.c (handle_target_event): Use target_signal_to_host for
15332 resume_info.sig initialization.
15333 * target.h (struct thread_resume) <sig>: New comment.
15335 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15337 * server.c (handle_query): strcpy() the returned string from paddress()
15338 instead of sprintf().
15339 * utils.c (paddress): Return phex_nz().
15341 2010-07-07 Joel Brobecker <brobecker@adacore.com>
15343 * server.c (handle_v_cont): Call mourn_inferior if process
15345 (myresume): Likewise.
15347 2010-07-01 Pedro Alves <pedro@codesourcery.com>
15349 Static tracepoints, and integration with UST.
15351 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15352 * mem-break.c (uninsert_all_breakpoints)
15353 (reinsert_all_breakpoints): New.
15354 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15355 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15356 (gdb_agent_ust_loaded, helper_thread_id)
15357 (gdb_agent_helper_thread_id): New macros.
15358 (struct ipa_sym_addresses): Add addr_ust_loaded,
15359 addr_helper_thread_id, addr_cmd_buf.
15360 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15361 (in_process_agent_loaded_ust): New.
15362 (write_e_ust_not_loaded): New.
15363 (maybe_write_ipa_ust_not_loaded): New.
15364 (struct collect_static_trace_data_action): New.
15365 (enum tracepoint_type) <static_tracepoint>: New.
15366 (struct tracepoint) <handle>: Mention static tracepoints.
15367 (struct static_tracepoint_ctx): New.
15368 (CMD_BUF_SIZE): New.
15369 (add_tracepoint_action): Handle static tracepoint actions.
15370 (unprobe_marker_at): New.
15371 (clear_installed_tracepoints): Handle static tracepoints.
15372 (cmd_qtdp): Handle static tracepoints.
15373 (probe_marker_at): New.
15374 (cmd_qtstart): Handle static tracepoints.
15375 (response_tracepoint): Handle static tracepoints.
15376 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15377 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15378 (get_context_regcache): Handle static tracepoints.
15379 (do_action_at_tracepoint): Handle static tracepoint actions.
15380 (traceframe_find_block_type): Handle static trace data blocks.
15381 (traceframe_read_sdata): New.
15382 (download_tracepoints): Download static tracepoint actions.
15383 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15384 (GDB_PROBE_NAME): New.
15386 (GET_UST_SYM): New.
15389 (ust_marker_to_static_tracepoint): New.
15391 (collect_ust_data_at_tracepoint): New.
15392 (gdb_ust_probe): New.
15393 (UNIX_PATH_MAX, SOCK_DIR): New.
15394 (gdb_ust_connect_sync_socket): New.
15395 (resume_thread, stop_thread): New.
15396 (run_inferior_command): New.
15397 (init_named_socket): New.
15398 (gdb_ust_socket_init): New.
15399 (cstr_to_hexstr): New.
15401 (first_marker, next_marker): New.
15402 (response_ust_marker): New.
15403 (cmd_qtfstm, cmd_qtsstm): New.
15404 (unprobe_marker_at, probe_marker_at): New.
15405 (cmd_qtstmat, gdb_ust_thread): New.
15406 (gdb_ust_init): New.
15407 (initialize_tracepoint_ftlib): Call gdb_ust_init.
15408 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
15409 (ST_REGENTRY): New.
15410 (x86_64_st_collect_regmap): New.
15411 (X86_64_NUM_ST_COLLECT_GREGS): New.
15412 (AMD64_RIP_REGNUM): New.
15413 (supply_static_tracepoint_registers): New.
15414 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
15415 (ST_REGENTRY): New.
15416 (i386_st_collect_regmap): New.
15417 (i386_NUM_ST_COLLECT_GREGS): New.
15418 (supply_static_tracepoint_registers): New.
15419 * server.c (handle_query): Handle qXfer:statictrace:read.
15420 <qSupported>: Report support for StaticTracepoints, and
15421 qXfer:statictrace:read features.
15422 * server.h (traceframe_read_sdata)
15423 (supply_static_tracepoint_registers): Declare.
15424 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
15425 (unpack_varlen_hex): Include in IPA build.
15426 * Makefile.in (ustlibs, ustinc): New.
15427 (IPA_OBJS): Add remote-utils-ipa.o.
15428 ($(IPA_LIB)): Link -ldl and -lpthread.
15430 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15431 * config.in, configure: Regenerate.
15433 2010-06-20 Ian Lance Taylor <iant@google.com>
15434 Pedro Alves <pedro@codesourcery.com>
15436 * linux-x86-low.c (always_true): Delete.
15437 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
15438 trying to fool the compiler with always_true.
15440 2010-06-20 Pedro Alves <pedro@codesourcery.com>
15442 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15443 conditions in gdbserver.
15445 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15447 * spu-low.c (spu_read_memory): Wrap around local store limit.
15448 (spu_write_memory): Likewise.
15450 2010-06-15 Pedro Alves <pedro@codesourcery.com>
15452 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
15453 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
15455 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15457 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15458 uses with LONGEST uses.
15460 2010-06-14 Stan Shebs <stan@codesourcery.com>
15461 Pedro Alves <pedro@codesourcery.com>
15465 * linux-x86-low.c: Include limits.h.
15467 (always_true): New.
15470 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
15471 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
15472 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
15473 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
15474 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
15475 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
15476 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
15477 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
15478 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
15479 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
15480 (amd64_emit_void_call_2): New.
15481 (amd64_emit_ops): New.
15482 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
15483 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
15484 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
15485 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
15486 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
15487 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
15488 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
15489 (i386_emit_call, i386_emit_reg, i386_emit_pop)
15490 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
15491 (i386_emit_stack_adjust, i386_emit_int_call_1)
15492 (i386_emit_void_call_2): New.
15493 (i386_emit_ops): New.
15494 (x86_emit_ops): New.
15495 (the_low_target): Install x86_emit_ops.
15496 * server.h (struct emit_ops): New.
15497 (get_raw_reg_func_addr): Declare.
15498 (current_insn_ptr, emit_error): Declare.
15499 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
15500 (set_trace_state_variable_value): New defines.
15501 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
15502 addr_get_trace_state_variable_value and
15503 addr_set_trace_state_variable_value.
15504 (symbol_list): New fields for get_raw_reg,
15505 get_trace_state_variable_value and set_trace_state_variable_value.
15506 (condfn): New typedef.
15507 (struct tracepoint): New field `compiled_cond'.
15508 (do_action_at_tracepoint): Clear compiled_cond.
15509 (get_trace_state_variable_value, set_trace_state_variable_value):
15511 (condition_true_at_tracepoint): If there's a compiled condition,
15513 (current_insn_ptr, emit_error): New globals.
15514 (struct bytecode_address): New.
15515 (get_raw_reg_func_addr): New.
15516 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
15517 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
15518 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
15519 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
15520 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
15521 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
15522 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
15523 (compile_tracepoint_condition, compile_bytecodes): New.
15524 * target.h (emit_ops): Forward declare.
15525 (struct target_ops): New field emit_ops.
15526 (target_emit_ops): New.
15527 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
15528 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
15529 * linux-low.c (linux_emit_ops): New.
15530 (linux_target_ops): Install it.
15531 * linux-low.h (struct linux_target_ops): New field emit_ops.
15533 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
15535 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
15536 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
15538 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15539 Stan Shebs <stan@codesourcery.com>
15541 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
15542 (all): Depend on $(extra_libraries).
15543 (install-only): Install the IPA.
15544 (IPA_OBJS, IPA_LIB): New.
15545 (clean): Remove the IPA lib.
15546 (IPAGENT_CFLAGS): New.
15547 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
15548 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
15549 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
15550 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
15551 * configure.ac: Check for atomic builtins support in the compiler.
15552 (IPA_DEPFILES, extra_libraries): Define.
15553 * configure.srv (ipa_obj): Add description.
15554 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
15555 (i[34567]86-*-linux*): Set ipa_obj.
15556 (x86_64-*-linux*): Set ipa_obj.
15557 * linux-low.c (stabilizing_threads): New.
15558 (supports_fast_tracepoints): New.
15559 (linux_detach): Stabilize threads before detaching.
15560 (handle_tracepoints): Handle internal tracing breakpoints. Assert
15561 the lwp is either not stabilizing, or is moving out of a jump pad.
15562 (linux_fast_tracepoint_collecting): New.
15563 (maybe_move_out_of_jump_pad): New.
15564 (enqueue_one_deferred_signal): New.
15565 (dequeue_one_deferred_signal): New.
15566 (linux_wait_for_event_1): If moving out of a jump pad, defer
15567 pending signals to later.
15568 (linux_stabilize_threads): New.
15569 (linux_wait_1): Check if threads need moving out of jump pads, and
15571 (stuck_in_jump_pad_callback): New.
15572 (move_out_of_jump_pad_callback): New.
15573 (lwp_running): New.
15574 (linux_resume_one_lwp): Handle moving out of jump pads.
15575 (linux_set_resume_request): Dequeue deferred signals.
15576 (need_step_over_p): Also step over fast tracepoint jumps.
15577 (start_step_over): Also uninsert fast tracepoint jumps.
15578 (finish_step_over): Also reinsert fast tracepoint jumps.
15579 (linux_install_fast_tracepoint_jump): New.
15580 (linux_target_ops): Install linux_stabilize_threads and
15581 linux_install_fast_tracepoint_jump_pad.
15582 * linux-low.h (linux_target_ops) <get_thread_area,
15583 install_fast_tracepoint_jump_pad>: New fields.
15584 (struct lwp_info) <collecting_fast_tracepoint,
15585 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
15586 (linux_get_thread_area): Declare.
15587 * linux-x86-low.c (jump_insn): New.
15588 (x86_get_thread_area): New.
15589 (append_insns): New.
15590 (push_opcode): New.
15591 (amd64_install_fast_tracepoint_jump_pad): New.
15592 (i386_install_fast_tracepoint_jump_pad): New.
15593 (x86_install_fast_tracepoint_jump_pad): New.
15594 (the_low_target): Install x86_get_thread_area and
15595 x86_install_fast_tracepoint_jump_pad.
15596 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
15597 (struct fast_tracepoint_jump): New.
15598 (fast_tracepoint_jump_insn): New.
15599 (fast_tracepoint_jump_shadow): New.
15600 (find_fast_tracepoint_jump_at): New.
15601 (fast_tracepoint_jump_here): New.
15602 (delete_fast_tracepoint_jump): New.
15603 (set_fast_tracepoint_jump): New.
15604 (uninsert_fast_tracepoint_jumps_at): New.
15605 (reinsert_fast_tracepoint_jumps_at): New.
15606 (set_breakpoint_at): Use write_inferior_memory.
15607 (uninsert_raw_breakpoint): Use write_inferior_memory.
15608 (check_mem_read): Mask out fast tracepoint jumps.
15609 (check_mem_write): Mask out fast tracepoint jumps.
15610 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15611 (set_fast_tracepoint_jump): Declare.
15612 (delete_fast_tracepoint_jump)
15613 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15614 (reinsert_fast_tracepoint_jumps_at): Declare.
15615 * regcache.c: Don't compile many functions when building the
15616 in-process agent library.
15617 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
15618 the register buffer in the heap.
15619 (free_register_cache): If the register buffer isn't owned by the
15620 regcache, don't free it.
15621 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
15622 pre-existing register caches.
15623 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
15625 (convert_ascii_to_int): : Constify `from' parameter type.
15626 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
15627 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15628 the needed buffer in-place.
15629 (relocate_instruction): New.
15630 * server.c (handle_query) <qSymbols>: If the target supports
15631 tracepoints, give it a chance of looking up symbols. Report
15632 support for fast tracepoints.
15633 (handle_status): Stabilize threads.
15634 (process_serial_event): Adjust.
15635 * server.h (struct fast_tracepoint_jump): Forward declare.
15636 (struct process_info) <fast_tracepoint_jumps>: New field.
15637 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15638 (decode_X_packet, decode_M_packet): Adjust.
15639 (relocate_instruction): Declare.
15640 (in_process_agent_loaded): Declare.
15641 (tracepoint_look_up_symbols): Declare.
15642 (struct fast_tpoint_collect_status): Declare.
15643 (fast_tracepoint_collecting): Declare.
15644 (force_unlock_trace_buffer): Declare.
15645 (handle_tracepoint_bkpts): Declare.
15646 (initialize_low_tracepoint)
15647 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15648 * target.h (struct target_ops) <stabilize_threads,
15649 install_fast_tracepoint_jump_pad>: New fields.
15650 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15651 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15652 [HAVE_STDINT_H]: Include stdint.h.
15653 (trace_debug_1): Rename to ...
15654 (trace_vdebug): ... this.
15655 (trace_debug): Rename to ...
15656 (trace_debug_1): ... this. Add `level' parameter.
15657 (trace_debug): New.
15658 (ATTR_USED, ATTR_NOINLINE): New.
15659 (IP_AGENT_EXPORT): New.
15660 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15661 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15662 (about_to_request_buffer_space, trace_buffer_is_full)
15663 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15664 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15665 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15666 (traceframe_write_count, traceframes_created)
15667 (trace_state_variables)
15668 New renaming defines.
15669 (struct ipa_sym_addresses): New.
15670 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15671 (symbol_list): New.
15672 (ipa_sym_addrs): New.
15673 (all_tracepoint_symbols_looked_up): New.
15674 (in_process_agent_loaded): New.
15675 (write_e_ipa_not_loaded): New.
15676 (maybe_write_ipa_not_loaded): New.
15677 (tracepoint_look_up_symbols): New.
15678 (debug_threads) [IN_PROCESS_AGENT]: New.
15679 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15680 (UNKNOWN_SIDE_EFFECTS): New.
15681 (stop_tracing): New.
15682 (flush_trace_buffer): New.
15683 (stop_tracing_bkpt): New.
15684 (flush_trace_buffer_bkpt): New.
15685 (read_inferior_integer): New.
15686 (read_inferior_uinteger): New.
15687 (read_inferior_data_pointer): New.
15688 (write_inferior_data_pointer): New.
15689 (write_inferior_integer): New.
15690 (write_inferior_uinteger): New.
15691 (struct collect_static_trace_data_action): Delete.
15692 (enum tracepoint_type): New.
15693 (struct tracepoint) <type>: New field `type'.
15694 <actions_str, step_actions, step_actions_str>: Only include in
15696 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15697 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15698 (tracepoints): Use IP_AGENT_EXPORT.
15699 (last_tracepoint): Don't include in the IPA.
15700 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15701 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15702 (alloced_trace_state_variables): New.
15703 (trace_state_variables): Use IP_AGENT_EXPORT.
15704 (traceframe_t): Delete unused variable.
15705 (circular_trace_buffer): Don't include in the IPA.
15706 (trace_buffer_start): Delete.
15707 (struct trace_buffer_control): New.
15708 (trace_buffer_free): Delete.
15709 (struct ipa_trace_buffer_control): New.
15710 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15711 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15713 (trace_buffer_ctrl): New.
15714 (TRACE_BUFFER_CTRL_CURR): New.
15715 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15716 Reimplement as macros.
15717 (trace_buffer_wrap): Delete.
15718 (traceframe_write_count, traceframe_read_count)
15719 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15720 (struct tracepoint_hit_ctx) <type>: New field.
15721 (struct fast_tracepoint_ctx): New.
15722 (memory_barrier): New.
15724 (record_tracepoint_error): Update atomically in the IPA.
15725 (clear_inferior_trace_buffer): New.
15726 (about_to_request_buffer_space): New.
15727 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15728 updating the same buffer.
15729 (add_tracepoint): Default the tracepoint's type to trap
15730 tracepoint, and orig_size to -1.
15731 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15732 internal variables.
15733 (create_trace_state_variable): New parameter `gdb'. Handle it.
15734 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15735 (cmd_qtdp): Handle fast tracepoints.
15736 (cmd_qtdv): Adjust.
15737 (max_jump_pad_size): New.
15738 (gdb_jump_pad_head): New.
15739 (get_jump_space_head): New.
15740 (claim_jump_space): New.
15741 (sort_tracepoints): New.
15742 (MAX_JUMP_SIZE): New.
15743 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15745 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15746 support. Upload fast traceframes, and delete internal IPA
15748 (stop_tracing_handler): New.
15749 (flush_trace_buffer_handler): New.
15750 (cmd_qtstop): Upload fast tracepoints.
15751 (response_tracepoint): Handle fast tracepoints.
15752 (tracepoint_finished_step): Upload fast traceframes. Set the
15753 tracepoint hit context's tracepoint type.
15754 (handle_tracepoint_bkpts): New.
15755 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15756 type. Add comment about fast tracepoints.
15757 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15758 non-existing action_str field.
15759 (get_context_regcache): Handle fast tracepoints.
15760 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15762 (fast_tracepoint_from_jump_pad_address): New.
15763 (fast_tracepoint_from_ipa_tpoint_address): New.
15764 (collecting_t): New.
15765 (force_unlock_trace_buffer): New.
15766 (fast_tracepoint_collecting): New.
15768 (gdb_collect): New.
15769 (write_inferior_data_ptr): New.
15770 (target_tp_heap): New.
15771 (target_malloc): New.
15772 (download_agent_expr): New.
15774 (download_tracepoints): New.
15775 (download_trace_state_variables): New.
15776 (upload_fast_traceframes): New.
15777 (IPA_FIRST_TRACEFRAME): New.
15778 (IPA_NEXT_TRACEFRAME_1): New.
15779 (IPA_NEXT_TRACEFRAME): New.
15780 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15781 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15782 (gdb_jump_pad_buffer_end): New.
15783 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15784 (initialize_tracepoint): Adjust.
15785 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15786 buffer. Initialize the low module.
15787 * utils.c (PREFIX, TOOLNAME): New.
15788 (malloc_failure): Use PREFIX.
15789 (error): In the IPA, an error causes an exit.
15790 (fatal, warning): Use PREFIX.
15791 (internal_error): Use TOOLNAME.
15792 (NUMCELLS): Increase to 10.
15793 * configure, config.in: Regenerate.
15795 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15797 * server.c (handle_query) <qSupported>: Do two passes over the
15798 qSupported string to avoid nesting strtok.
15800 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15802 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15804 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15805 -Wl,--dynamic-list.
15806 * configure: Regenerate.
15807 * proc-service.list: New.
15809 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15811 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15814 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15816 * gdbreplay.c (remote_open): Check error return from socket() call by
15817 its equality to -1 not by it being negative.
15818 * remote-utils.c (remote_open): Likewise.
15820 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15822 * config.h: Regenerate.
15824 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15826 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15827 doesn't provide PTRACE_GET_THREAD_AREA.
15829 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15831 * linux-m68k-low.c: Include <asm/ptrace.h>
15832 (ps_get_thread_area): Implement.
15834 2010-05-03 Doug Evans <dje@google.com>
15836 * event-loop.c (struct callback_event): New struct.
15837 (callback_list): New global.
15838 (append_callback_event, delete_callback_event): New functions.
15839 (process_callback): New function.
15840 (start_event_loop): Call it.
15841 * remote-utils.c (NOT_SCHEDULED): Define.
15842 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15843 moved out of readchar.
15844 (readchar): Rewrite. Call reschedule before returning.
15845 (reset_readchar): New function.
15846 (remote_close): Call it.
15847 (process_remaining, reschedule): New functions.
15848 * server.h (callback_handler_func): New typedef.
15849 (append_callback_event, delete_callback_event): Declare.
15851 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15853 * proc-service.c (ps_pglobal_lookup): Use
15854 thread_db_look_up_one_symbol.
15855 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15856 parameter. Use it instead of all_symbols_looked_up.
15857 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15859 (all_symbols_looked_up): Don't declare.
15860 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15861 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15863 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15864 Set all_symbols_looked_up here.
15865 (thread_db_look_up_one_symbol): New.
15866 (thread_db_get_tls_address): Adjust.
15867 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15868 thread_db object on the heap, and tentatively set it in the
15870 (thread_db_init): Don't set all_symbols_looked_up here.
15871 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15873 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15875 * linux-low.c (linux_kill, linux_detach): Adjust.
15876 (status_pending_p_callback): Remove redundant statement. Check
15877 for !TARGET_WAITIKIND_IGNORE, instead of
15878 TARGET_WAITKIND_STOPPED.
15879 (handle_tracepoints): Make sure LWP is locked. Adjust.
15880 (linux_wait_for_event_1): Adjust.
15881 (linux_cancel_breakpoints): New.
15882 (unsuspend_one_lwp): New.
15883 (unsuspend_all_lwps): New.
15884 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15885 (send_sigstop_callback): Change return type to int, add new
15886 `except' parameter and handle it.
15887 (suspend_and_send_sigstop_callback): New.
15888 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15889 pass them down. If SUSPEND, also increment the lwp's suspend
15891 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15892 (need_step_over_p): Don't consider suspended LWPs.
15893 (start_step_over): Adjust.
15894 (proceed_one_lwp): Change return type to int, add new `except'
15895 parameter and handle it.
15896 (unsuspend_and_proceed_one_lwp): New.
15897 (proceed_all_lwps): Use find_inferior instead of
15899 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15900 also decrement the suspend count of LWPs. Pass `except' down,
15901 instead of hacking its suspend count.
15902 (linux_pause_all): Add `freeze' parameter. Adjust.
15903 (linux_unpause_all): New.
15904 (linux_target_ops): Install linux_unpause_all.
15905 * server.c (handle_status): Adjust.
15906 * target.h (struct target_ops): New fields `unpause_all' and
15907 `cancel_breakpoints'. Add new parameter to `pause_all'.
15908 (pause_all): Add new `freeze' parameter.
15909 (unpause_all): New.
15910 (cancel_breakpoints): New.
15911 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15912 cancel breakpoints.
15913 (cmd_qtstart): Pause threads.
15914 (stop_tracing): Pause threads, and cancel breakpoints.
15915 * win32-low.c (win32_target_ops): Adjust.
15917 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15919 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15920 the inferior right away from here...
15921 (linux_wait_1): ... to here, and adjust to check the thread's
15922 last_resume_kind instead of the lwp's step or stop_expected flags.
15924 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15926 * README: Use consistent `GDB' and `GDBserver' spellings.
15928 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15930 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15931 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15932 (linux_detach_one_lwp): Assume the lwp is stopped.
15933 (any_thread_of): Delete.
15934 (linux_detach): Stop all lwps here. Don't blindly delete all
15936 (delete_lwp_callback): New.
15937 (linux_mourn): Delete all lwps of the process that is gone.
15938 (linux_wait_1): Don't delete the last lwp of the process here.
15939 * mem-break.h (mark_breakpoints_out): Declare.
15940 * mem-break.c (mark_breakpoints_out): New.
15941 (free_all_breakpoints): Use it.
15942 * server.c (handle_target_event): If the process is gone, mark
15944 * thread-db.c (struct thread_db) <create_bp>: New field.
15945 (thread_db_enable_reporting): Fix prototype. Store a thread event
15946 breakpoint reference in the thread_db struct.
15947 (thread_db_load_search): Clear the thread_db object.
15948 (try_thread_db_load_1): Ditto.
15949 (switch_to_process): New.
15950 (disable_thread_event_reporting): Use it.
15951 (remove_thread_event_breakpoints): New.
15952 (thread_db_detach, thread_db_mourn): Use it.
15954 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15956 * linux-low.c (linux_enable_event_reporting): New.
15957 (linux_wait_for_event_1, handle_extended_wait): Use it.
15959 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15961 * linux-low.c (linux_kill_one_lwp, linux_kill)
15962 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15963 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15964 SIGSTOP even if the LWP is stopped.
15965 (send_sigstop_callback): New.
15966 (stop_all_lwps): Use send_sigstop_callback instead.
15967 (linux_resume_one_thread): Adjust.
15968 (proceed_one_lwp): Still proceed an LWP that the client has
15969 requested to stop, if we haven't reported it as stopped yet. Make
15970 sure that LWPs the client want stopped, have a pending SIGSTOP.
15972 2010-04-26 Doug Evans <dje@google.com>
15974 * server.c (handle_general_set): Make static.
15976 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15977 Print received char after testing for error/eof instead of before.
15978 (input_interrupt): Tweak comment.
15980 2010-04-23 Doug Evans <dje@google.com>
15982 * server.c (start_inferior): Print inferior argv if --debug.
15984 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15986 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15987 * nto-x86-low.c: Include server.h
15989 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15991 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15992 be consistent with other sources of this directory.
15993 (init_registers_amd64): Correct name of source file of this function
15996 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15998 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15999 64-bit executables.
16001 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16003 * win32-i386-low.c: Add 64-bit support.
16004 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
16005 (init_registers_amd64): Declare.
16006 (mappings): Add 64-bit version of array.
16007 (init_windows_x86): New function.
16008 (the_low_target): Change init_arch field to init_windows_x86.
16010 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16012 * win32-low.c: Adapt to support also 64-bit architecture.
16013 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
16014 (get_image_name): Use SIZE_T type for local variable `done'.
16015 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
16016 (toolhelp_get_dll_name): Idem.
16017 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
16018 Use uintptr_t typecast to avoid warning.
16019 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
16020 (handle_exception): Use phex_nz to avoid warning.
16021 (win32_wait): Remove unused local variable `process'.
16023 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16025 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
16028 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
16030 * configure.ac: Use `ws2_32' library for srv_mingw.
16031 * configure: Regenerate.
16032 * gdbreplay.c: Include winsock2.h instead of winsock.h.
16033 * remote-utils.c: Likewise.
16035 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
16037 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
16038 if __x86_64__ is defined.
16040 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16042 * configure: Regenerate.
16044 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16046 * server.c (handle_query): Handle 'qGetTIBAddr' query.
16047 * target.h (target_ops): New get_tib_address field.
16048 * win32-low.h (win32_thread_info): Add thread_local_base field.
16049 * win32-low.c (child_add_thread): Add tlb argument.
16050 Set thread_local_base field to TLB.
16051 (get_child_debug_event): Adapt to child_add_thread change.
16052 (win32_get_tib_address): New function.
16053 (win32_target_ops): Set get_tib_address field to
16054 win32_get_tib_address.
16055 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
16057 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16059 * linux-low.c (linux_mourn): Also remove the process.
16060 * server.c (handle_target_event): Don't remove the process here.
16061 * nto-low.c (nto_mourn): New.
16062 (nto_target_ops): Install it.
16063 * spu-low.c (spu_mourn): New.
16064 (spu_target_ops): Install it.
16065 * win32-low.c (win32_mourn): New.
16066 (win32_target_ops): Install it.
16068 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16070 * server.h (buffer_xml_printf): Remove redundant `;'.
16072 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16074 * regcache.c (set_register_cache): Invalidate regcaches before
16075 changing the register cache layout.
16076 (regcache_invalidate_one): Allow a NULL regcache.
16077 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16078 regcaches before changing the register cache layout or the target
16081 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16083 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16084 variable warning on Linux/x86-64.
16086 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16088 GDBserver disconnected tracing support.
16090 * linux-low.c (linux_remove_process): Delete.
16091 (add_lwp): Don't set last_resume_kind here.
16092 (linux_kill): Use `mourn'.
16093 (linux_detach): Use `thread_db_detach', and `mourn'.
16094 (linux_mourn): New.
16095 (linux_attach_lwp_1): Adjust comment.
16096 (linux_attach): last_resume_kind moved the thread_info; adjust.
16097 (status_pending_p_callback): Adjust.
16098 (linux_wait_for_event_1): Adjust.
16099 (count_events_callback, select_singlestep_lwp_callback)
16100 (select_event_lwp_callback, cancel_breakpoints_callback)
16101 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16102 (proceed_one_lwp): Adjust.
16103 (linux_async): Add debug output.
16104 (linux_thread_stopped): New.
16105 (linux_pause_all): New.
16106 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16108 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16109 (thread_db_free): Delete declaration.
16110 (thread_db_detach, thread_db_mourn): Declare.
16111 * thread-db.c (thread_db_init): Use thread_db_mourn.
16112 (thread_db_free): Delete, split in two.
16113 (disable_thread_event_reporting): New.
16114 (thread_db_detach): New.
16115 (thread_db_mourn): New.
16117 * server.h (struct thread_info) <last_resume_kind>: New field.
16118 <attached>: Add comment.
16119 <gdb_detached>: New field.
16120 (handler_func): Change return type to int.
16121 (handle_serial_event, handle_target_event): Ditto.
16122 (gdb_connected): Declare.
16124 (disconnected_tracing): Declare.
16125 (stop_tracing): Declare.
16127 * server.c (handle_query) <qSupported>: Report support for
16128 disconnected tracing.
16129 (queue_stop_reply_callback): Account for running threads.
16130 (gdb_wants_thread_stopped): New.
16131 (gdb_wants_all_threads_stopped): New.
16132 (gdb_reattached_process): New.
16133 (handle_status): Clear the `gdb_detached' flag of all processes.
16134 In all-stop, stop all threads.
16135 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16136 (process_serial_event): If the remote connection breaks, or if an
16137 exit was forced with "monitor exit", force an event loop exit.
16138 Handle disconnected tracing on detach.
16139 (handle_serial_event): Adjust.
16140 (handle_target_event): If GDB isn't connected, forward events back
16141 to the inferior, unless the last process exited, in which case,
16142 exit gdbserver. Adjust interface.
16144 * remote-utils.c (remote_open): Don't block in accept. Instead
16145 register an event loop source on the listen socket file
16146 descriptor. Refactor bits into ...
16147 (listen_desc): ... this new global.
16148 (gdb_connected): ... this new function.
16149 (enable_async_notification): ... this new function.
16150 (handle_accept_event): ... this new function.
16151 (remote_close): Clear remote_desc.
16153 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16155 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16157 (mourn_inferior): Define.
16158 (target_process_qsupported): Avoid the dangling else problem.
16159 (thread_stopped): Define.
16160 (pause_all): Define.
16161 (target_waitstatus_to_string): Declare.
16162 * target.c (target_waitstatus_to_string): New.
16164 * tracepoint.c (tracing): Make extern.
16165 (disconnected_tracing): New.
16166 (stop_tracing): Make extern. Handle tracing stops due to GDB
16168 (cmd_qtdisconnected): New.
16169 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16170 (handle_tracepoint_general_set): Handle QTDisconnected.
16172 * event-loop.c (event_handler_func): Change return type to int.
16173 (process_event): Bail out if the event handler wants the event
16175 (handle_file_event): Ditto.
16176 (start_event_loop): Bail out if the event handler wants the event
16179 * nto-low.c (nto_target_ops): Adjust.
16180 * spu-low.c (spu_wait): Don't remove the process here.
16181 (spu_target_ops): Adjust.
16182 * win32-low.c (win32_wait): Don't remove the process here.
16183 (win32_target_ops): Adjust.
16185 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16187 * regcache.c (realloc_register_cache): Invalidate inferior's
16188 regcache before recreating it.
16190 2010-04-09 Pedro Alves <pedro@codesourcery.com>
16192 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16194 2010-04-09 Stan Shebs <stan@codesourcery.com>
16195 Pedro Alves <pedro@codesourcery.com>
16197 * server.h (LONGEST): New.
16198 (struct thread_info) <while_stepping>: New field.
16199 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16201 (initialize_tracepoint, handle_tracepoint_general_set)
16202 (handle_tracepoint_query, tracepoint_finished_step)
16203 (tracepoint_was_hit, release_while_stepping_state_list):
16204 (current_traceframe): Declare.
16205 * server.c (handle_general_set): Handle tracepoint packets.
16206 (read_memory): New.
16207 (write_memory): New.
16208 (handle_search_memory_1): Use read_memory.
16209 (handle_query): Report support for conditional tracepoints, trace
16210 state variables, and tracepoint sources. Handle tracepoint
16212 (main): Initialize the tracepoints module.
16213 (process_serial_event): Handle traceframe reads/writes.
16215 * linux-low.c (handle_tracepoints): New.
16216 (linux_wait_1): Call it.
16217 (linux_resume_one_lwp): Handle while-stepping.
16218 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16219 (linux_target_ops): Install them.
16220 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16222 * linux-x86-low.c (x86_supports_tracepoints): New.
16223 (the_low_target). Install it.
16225 * mem-break.h (delete_breakpoint): Declare.
16226 * mem-break.c (delete_breakpoint): Make external.
16228 * target.h (struct target_ops): Add `supports_tracepoints',
16229 `read_pc', and `write_pc' fields.
16230 (target_supports_tracepoints): Define.
16231 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16234 * regcache.h (struct regcache) <registers_owned>: New field.
16235 (init_register_cache, regcache_cpy): Declare.
16236 (regcache_read_pc, regcache_write_pc): Declare.
16237 (register_cache_size): Declare.
16238 (supply_regblock): Declare.
16239 * regcache.c (init_register_cache): New.
16240 (new_register_cache): Use it.
16241 (regcache_cpy): New.
16242 (register_cache_size): New.
16243 (supply_regblock): New.
16244 (regcache_read_pc, regcache_write_pc): New.
16246 * tracepoint.c: New.
16248 * Makefile.in (OBS): Add tracepoint.o.
16249 (tracepoint.o): New rule.
16251 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16253 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16255 (i386-mmx.c): Likewise.
16256 (i386-mmx-linux.o): Likewise.
16257 (i386-mmx-linux.c): Likewise.
16259 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16260 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16261 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16262 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16264 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16265 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16266 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16268 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16270 * Makefile.in (clean): Updated.
16272 (i386-avx.c): Likewise.
16273 (i386-avx-linux.o): Likewise.
16274 (i386-avx-linux.c): Likewise.
16275 (amd64-avx.o): Likewise.
16276 (amd64-avx.c): Likewise.
16277 (amd64-avx-linux.o): Likewise.
16278 (amd64-avx-linux.c): Likewise.
16280 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16281 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16282 (srv_amd64_regobj): Add amd64-avx.o.
16283 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16284 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16285 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16286 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16287 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16288 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16289 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16291 * i387-fp.c: Include "i386-xstate.h".
16293 (i387_cache_to_xsave): Likewise.
16294 (i387_xsave_to_cache): Likewise.
16295 (x86_xcr0): Likewise.
16297 * i387-fp.h (i387_cache_to_xsave): Likewise.
16298 (i387_xsave_to_cache): Likewise.
16299 (x86_xcr0): Likewise.
16301 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16302 * linux-crisv32-low.c (target_regsets): Likewise.
16303 * linux-m68k-low.c (target_regsets): Likewise.
16304 * linux-mips-low.c (target_regsets): Likewise.
16305 * linux-ppc-low.c (target_regsets): Likewise.
16306 * linux-s390-low.c (target_regsets): Likewise.
16307 * linux-sh-low.c (target_regsets): Likewise.
16308 * linux-sparc-low.c (target_regsets): Likewise.
16309 * linux-xtensa-low.c (target_regsets): Likewise.
16311 * linux-low.c: Include <sys/uio.h>.
16312 (regsets_fetch_inferior_registers): Support nt_type.
16313 (regsets_store_inferior_registers): Likewise.
16314 (linux_process_qsupported): New.
16315 (linux_target_ops): Add linux_process_qsupported.
16317 * linux-low.h (regset_info): Add nt_type.
16318 (linux_target_ops): Add process_qsupported.
16320 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16322 (init_registers_i386_avx_linux): New.
16323 (init_registers_amd64_avx_linux): Likewise.
16324 (xmltarget_i386_linux_no_xml): Likewise.
16325 (xmltarget_amd64_linux_no_xml): Likewise.
16326 (PTRACE_GETREGSET): Likewise.
16327 (PTRACE_SETREGSET): Likewise.
16328 (x86_fill_xstateregset): Likewise.
16329 (x86_store_xstateregset): Likewise.
16330 (use_xml): Likewise.
16331 (x86_linux_update_xmltarget): Likewise.
16332 (x86_linux_process_qsupported): Likewise.
16333 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16334 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16335 init_registers_i386_linux here. Call
16336 x86_linux_update_xmltarget.
16337 (the_low_target): Add x86_linux_process_qsupported.
16339 * server.c (handle_query): Call target_process_qsupported.
16341 * target.h (target_ops): Add process_qsupported.
16342 (target_process_qsupported): New.
16344 2010-04-03 Pedro Alves <pedro@codesourcery.com>
16346 * inferiors.c (add_thread): Set last_status kind to
16347 TARGET_WAITKIND_IGNORE.
16348 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16349 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16350 (linux_wait_1): Move `thread' local definition to block that uses
16351 it. Don't NULL initialize `event_child'.
16352 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16353 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16354 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16356 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16358 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16359 an extended waitstatus, or by a watchpoint.
16360 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16361 thread was stepping or has been stopped by a watchpoint.
16363 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16365 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16366 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16367 of another, then delete the previous, and validate all
16369 (validate_inserted_breakpoint): New.
16370 (delete_disabled_breakpoints): New.
16371 (validate_breakpoints): New.
16372 (check_mem_read): Validate breakpoints before trusting their
16373 shadow. Delete disabled breakpoints.
16374 (check_mem_write): Validate breakpoints before trusting they
16375 should be inserted. Delete disabled breakpoints.
16376 * mem-break.h (validate_breakpoints):
16377 * server.c (handle_query): Validate breakpoints when we see a
16380 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16382 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16383 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16384 if we could tell there's a GDB breakpoint at stop_pc.
16385 (need_step_over_p): Don't do a step over if we find a GDB
16386 breakpoint at the resume PC.
16388 * mem-break.c (struct raw_breakpoint): New.
16389 (enum bkpt_type): New type `gdb_breakpoint'.
16390 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16391 fields. New field `raw'.
16392 (find_raw_breakpoint_at): New.
16393 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16394 breakpoint instead.
16395 (set_breakpoint_at): Adjust.
16396 (delete_raw_breakpoint): New.
16397 (release_breakpoint): New.
16398 (delete_breakpoint): Rename to...
16399 (delete_breakpoint_1): ... this. Add proc parameter. Use
16400 release_breakpoint. Return ENOENT.
16401 (delete_breakpoint): Reimplement.
16402 (find_breakpoint_at): Delete.
16403 (find_gdb_breakpoint_at): New.
16404 (delete_breakpoint_at): Delete.
16405 (set_gdb_breakpoint_at): New.
16406 (delete_gdb_breakpoint_at): New.
16407 (gdb_breakpoint_here): New.
16408 (set_reinsert_breakpoint): Use release_breakpoint.
16409 (uninsert_breakpoint): Rename to ...
16410 (uninsert_raw_breakpoint): ... this.
16411 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
16412 (reinsert_raw_breakpoint): Change parameter type to
16414 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16416 (check_breakpoints): Adjust. Use release_breakpoint.
16417 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
16418 (breakpoint_inserted_here): Ditto.
16419 (check_mem_read): Adjust to iterate over raw breakpoints instead.
16420 Don't trust the breakpoint's shadow if it is not inserted.
16421 (check_mem_write): Adjust to iterate over raw breakpoints instead.
16422 (delete_all_breakpoints): Adjust.
16423 (free_all_breakpoints): Mark all breakpoints as uninserted, and
16424 use delete_breakpoint_1.
16426 * mem-break.h (breakpoints_supported): Delete declaration.
16427 (set_gdb_breakpoint_at): Declare.
16428 (gdb_breakpoint_here): Declare.
16429 (delete_breakpoint_at): Delete.
16430 (delete_gdb_breakpoint_at): Declare.
16432 * server.h (struct raw_breakpoint): Forward declare.
16433 (struct process_info): New field `raw_breakpoints'.
16435 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16438 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16440 * linux-low.c (status_pending_p_callback): Fix comment.
16441 (linux_wait_for_event_1): Move most of the internal breakpoint
16442 handling from here...
16443 (linux_wait_1): ... to here.
16444 (count_events_callback): New.
16445 (select_singlestep_lwp_callback): New.
16446 (select_event_lwp_callback): New.
16447 (cancel_breakpoints_callback): New.
16448 (select_event_lwp): New.
16449 (linux_wait_1): Simplify internal breakpoint handling. Give equal
16450 priority to all LWPs that have had events that should be reported
16451 to the client. Cancel breakpoints when about to reporting the
16452 event to the client, not while stopping lwps. No longer cancel
16453 finished single-steps here.
16454 (cancel_finished_single_step): Delete.
16455 (cancel_finished_single_steps): Delete.
16457 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16459 * mem-break.c (enum bkpt_type): New.
16460 (struct breakpoint): New field `type'.
16461 (set_breakpoint_at): Change return type to struct breakpoint
16462 pointer. Set type to `other_breakpoint' by default.
16463 (delete_breakpoint): Rewrite, supporting more than one breakpoint
16464 in the breakpoint list.
16465 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
16466 (reinsert_breakpoint): Rename to ...
16467 (reinsert_raw_breakpoint): ... this.
16468 (reinsert_breakpoints_at): Adjust.
16469 * mem-break.h (struct breakpoint): Declare.
16470 (set_breakpoint_at): Change return type to struct breakpoint
16473 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16475 * server.c (handle_query): Assign, not compare.
16477 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16479 Teach linux gdbserver to step-over-breakpoints.
16481 * linux-low.c (can_hardware_single_step): New.
16482 (supports_breakpoints): New.
16483 (handle_extended_wait): If stopping threads, read the stop pc of
16484 the new cloned LWP.
16486 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
16487 low target doesn't support retrieving the PC.
16488 (add_lwp): Set last_resume_kind to resume_continue.
16489 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
16490 (linux_attach): Don't clear stop_expected. Set the lwp's
16491 last_resume_kind to resume_stop.
16492 (linux_detach_one_lwp): Don't check for removed breakpoints.
16493 (check_removed_breakpoint): Delete.
16494 (status_pending_p): Rename to ...
16495 (status_pending_p_callback): ... this. Don't check for removed
16496 breakpoints. Don't consider threads that are stopped from GDB's
16498 (linux_wait_for_lwp): Always read the stop_pc here.
16499 (cancel_breakpoint): New.
16500 (step_over_bkpt): New global.
16501 (linux_wait_for_event_1): Implement stepping over breakpoints.
16502 (gdb_wants_lwp_stopped): New.
16503 (gdb_wants_all_stopped): New.
16504 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
16505 single-step traps here. Store the thread's last reported target
16507 (send_sigstop): Don't clear stop_expected. Always set it,
16509 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
16510 (cancel_finished_single_step): New.
16511 (cancel_finished_single_steps): New.
16512 (wait_for_sigstop): Don't cancel finished single-step traps here.
16513 (linux_resume_one_lwp): Don't check for removed breakpoints.
16514 Don't set `step' on non-hardware step archs.
16515 (linux_set_resume_request): Ignore resume_stop requests if already
16516 stopping or stopped. Set the lwp's last_resume_kind.
16517 (resume_status_pending_p): Don't check for removed breakpoints.
16518 (need_step_over_p): New.
16519 (start_step_over): New.
16520 (finish_step_over): New.
16521 (linux_resume_one_thread): Always queue a sigstop for resume_stop
16522 requests. Clear the thread's last reported target waitstatus.
16523 Don't use the `suspended' flag. Don't consider pending breakpoints.
16524 (linux_resume): Start a step-over if necessary.
16525 (proceed_one_lwp): New.
16526 (proceed_all_lwps): New.
16527 (unstop_all_lwps): New.
16528 * linux-low.h (struct lwp_info): Rewrite comment for the
16529 `suspended' flag. Add the `stop_pc' field. Delete the
16530 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
16531 Add `'last_resume_kind' and `need_step_over' fields.
16532 * inferiors.c (struct thread_info): Delete, moved elsewhere.
16533 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
16534 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
16535 (set_raw_breakpoint_at): New.
16536 (set_breakpoint_at): Rewrite to use it.
16537 (reinsert_breakpoint_handler): Delete.
16538 (set_reinsert_breakpoint): New.
16539 (reinsert_breakpoint_by_bp): Delete.
16540 (delete_reinsert_breakpoints): New.
16541 (uninsert_breakpoint): Rewrite.
16542 (uninsert_breakpoints_at): New.
16543 (reinsert_breakpoint): Rewrite.
16544 (reinsert_breakpoints_at): New.
16545 (check_breakpoints): Rewrite.
16546 (breakpoint_here): New.
16547 (breakpoint_inserted_here): New.
16548 (check_mem_read): Adjust.
16549 * mem-break.h (breakpoints_supported, breakpoint_here)
16550 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
16551 (reinsert_breakpoint_by_bp): Delete declaration.
16552 (delete_reinsert_breakpoints): Declare.
16553 (reinsert_breakpoint): Delete declaration.
16554 (reinsert_breakpoints_at): Declare.
16555 (uninsert_breakpoint): Delete declaration.
16556 (uninsert_breakpoints_at): Declare.
16557 (check_breakpoints): Adjust prototype.
16558 * server.h: Adjust include order.
16559 (struct thread_info): Declare here. Add a `last_status' field.
16561 2010-03-23 Michael Snyder <msnyder@vmware.com>
16563 * server.c (crc32): New function.
16564 (handle_query): Add handling for 'qCRC:' request.
16566 2010-03-23 Pedro Alves <pedro@codesourcery.com>
16568 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16569 lwp had been stopped by a watchpoint.
16571 2010-03-16 Pedro Alves <pedro@codesourcery.com>
16573 * server.h (internal_error): Declare.
16574 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16575 * utils.c (internal_error): New function.
16577 2010-03-15 Andreas Schwab <schwab@redhat.com>
16579 * configure.srv: Fix typo setting srv_regobj.
16581 2010-03-15 Pedro Alves <pedro@codesourcery.com>
16583 * linux-low.c (fetch_register): Avoid passing a non string literal
16585 (usr_store_inferior_registers): Ditto.
16587 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16589 * linux-low.c (linux_write_memory): Bail out early if peeking
16592 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16594 * linux-low.h (struct lwp_info): New fields
16595 `stopped_by_watchpoint' and `stopped_data_address'.
16596 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
16597 here, and cache them in the lwp object.
16598 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
16600 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16602 (linux_stopped_by_watchpoint): Rewrite.
16603 (linux_stopped_data_address): Rewrite.
16605 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
16607 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16608 switching the current inferior, not before.
16610 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16612 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16613 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16614 i386-linux.c and amd64-linux.c.
16615 (reg-i386.o): Removed.
16616 (reg-i386.c): Likewise.
16617 (reg-i386-linux.o): Likewise.
16618 (reg-i386-linux.c): Likewise.
16619 (reg-x86-64.o): Likewise.
16620 (reg-x86-64.c): Likewise.
16621 (reg-x86-64-linux.o): Likewise.
16622 (reg-x86-64-linux.c): Likewise.
16624 (i386.c): Likewise.
16625 (i386-linux.o): Likewise.
16626 (i386-linux.c): Likewise.
16627 (amd64.o): Likewise.
16628 (amd64.c): Likewise.
16629 (amd64-linux.o): Likewise.
16630 (amd64-linux.c): Likewise.
16632 * configure.srv (srv_i386_regobj): New.
16633 (srv_i386_linux_regobj): Likewise.
16634 (srv_amd64_regobj): Likewise.
16635 (srv_amd64_linux_regobj): Likewise.
16636 (srv_i386_32bit_xmlfiles): Likewise.
16637 (srv_i386_64bit_xmlfiles): Likewise.
16638 (srv_i386_xmlfiles): Likewise.
16639 (srv_amd64_xmlfiles): Likewise.
16640 (srv_i386_linux_xmlfiles): Likewise.
16641 (srv_amd64_linux_xmlfiles): Likewise.
16642 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16643 srv_xmlfiles to $srv_i386_xmlfiles.
16644 (i[34567]86-*-mingw32ce*): Likewise.
16645 (i[34567]86-*-mingw*): Likewise.
16646 (i[34567]86-*-nto*): Likewise.
16647 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16648 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16649 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16650 (x86_64-*-linux*): Likewise.
16652 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16653 (init_registers_amd64_linux): New.
16654 (x86_arch_setup): Replace init_registers_x86_64_linux with
16655 init_registers_amd64_linux.
16657 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16659 * configure.ac: Check for libdl. If it is not available link against
16660 static libthread_db.
16661 * configure: Regenerate.
16663 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16667 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16668 handing a read watchpoint.
16669 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16671 2010-02-12 Doug Evans <dje@google.com>
16673 * linux-low.c (linux_supports_tracefork_flag): Document.
16674 (linux_look_up_symbols): Add comment.
16676 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16678 * regcache.c (supply_register): Clear regcache if buf is NULL.
16680 2010-02-02 Nicolas Roche <roche@sourceware.org>
16681 Joel Brobecker <brobecker@adacore.com>
16683 * inferiors.c (find_inferior): Add function documentation.
16684 (unloaded_dll): Handle the case where the unloaded dll has not
16685 been previously registered in the dll list.
16687 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16689 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16690 (thumb2_breakpoint): New.
16691 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16693 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16695 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16696 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16699 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16701 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16703 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16705 * linux-s390-low.c (s390_collect_ptrace_register)
16706 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16708 2010-01-21 Doug Evans <dje@google.com>
16710 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16711 (PTRACE_ARG4_TYPE): New macro.
16712 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16713 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16714 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16715 (usr_store_inferior_registers): Ditto.
16716 (linux_read_memory, linux_write_memory): Ditto.
16717 (linux_test_for_tracefork): Ditto.
16719 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16720 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16722 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16724 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16727 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16729 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16730 prototype to take a regcache. Adjust.
16732 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16734 * regcache.h (struct thread_info): Forward declare.
16735 (struct regcache): New.
16736 (new_register_cache): Adjust prototype.
16737 (get_thread_regcache): Declare.
16738 (free_register_cache): Adjust prototype.
16739 (registers_to_string, registers_from_string): Ditto.
16740 (supply_register, supply_register_by_name, collect_register)
16741 (collect_register_as_string, collect_register_by_name): Ditto.
16742 * regcache.c (struct inferior_regcache_data): Delete.
16743 (get_regcache): Rename to ...
16744 (get_thread_regcache): ... this. Adjust. Switch inferior before
16745 fetching registers.
16746 (regcache_invalidate_one): Adjust.
16747 (regcache_invalidate): Fix prototype.
16748 (new_register_cache): Return the new register cache.
16749 (free_register_cache): Change prototype.
16750 (realloc_register_cache): Adjust.
16751 (registers_to_string): Change prototype to take a regcache. Adjust.
16752 (registers_from_string): Ditto.
16753 (register_data): Ditto.
16754 (supply_register): Ditto.
16755 (supply_register_by_name): Ditto.
16756 (collect_register): Ditto.
16757 (collect_register_as_string): Ditto.
16758 (collect_register_by_name): Ditto.
16759 * server.c (process_serial_event): Adjust.
16760 * linux-low.h (regset_fill_func, regset_store_func): Change
16762 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16764 * linux-low.c (get_stop_pc): Adjust.
16765 (check_removed_breakpoint): Adjust.
16766 (linux_wait_for_event): Adjust.
16767 (linux_resume_one_lwp): Adjust.
16768 (fetch_register): Add regcache parameter. Adjust.
16769 (usr_store_inferior_registers): Ditto.
16770 (regsets_fetch_inferior_registers): Ditto.
16771 (regsets_store_inferior_registers): Ditto.
16772 (linux_fetch_registers, linux_store_registers): Ditto.
16773 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16775 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16777 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16778 prototype to take a regcache.
16779 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16780 * remote-utils.c (convert_ascii_to_int, outreg)
16781 (prepare_resume_reply): Change prototype to take a regcache.
16783 * target.h (struct target_ops) <fetch_registers, store_registers>:
16784 Change prototype to take a regcache.
16785 (fetch_inferior_registers, store_inferior_registers): Change
16786 prototype to take a regcache. Adjust.
16787 * proc-service.c (ps_lgetregs): Adjust.
16788 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16789 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16790 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16791 take a regcache. Adjust.
16792 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16793 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16794 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16795 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16796 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16797 (cris_cannot_fetch_register):
16798 (cris_breakpoint_at): Change prototype to take a regcache.
16800 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16801 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16802 to take a regcache. Adjust.
16803 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16805 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16806 take a regcache. Adjust.
16807 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16808 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16809 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16810 * linux-mips-low.c (mips_get_pc):
16811 (mips_set_pc): Change prototype to take a regcache. Adjust.
16812 (mips_reinsert_addr): Adjust.
16813 (mips_collect_register): Change prototype to take a regcache.
16815 (mips_supply_register):
16816 (mips_collect_register_32bit, mips_supply_register_32bit)
16817 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16818 (mips_store_fpregset): Ditto.
16819 * linux-ppc-low.c (ppc_supply_ptrace_register)
16820 (ppc_supply_ptrace_register): Ditto.
16821 (parse_spufs_run): Adjust.
16822 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16823 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16824 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16825 take a regcache. Adjust.
16826 * linux-s390-low.c (s390_collect_ptrace_register)
16827 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16828 (s390_set_pc): Change prototype to take a regcache. Adjust.
16829 (s390_arch_setup): Adjust.
16830 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16831 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16832 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16833 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16834 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16836 (sparc_breakpoint_at): Adjust.
16837 * linux-xtensa-low.c (xtensa_fill_gregset):
16838 (xtensa_store_gregset):
16839 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16840 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16841 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16842 prototype to take a regcache. Adjust.
16843 * win32-arm-low.c (arm_fetch_inferior_register)
16844 (arm_store_inferior_register): Change prototype to take a
16846 * win32-i386-low.c (i386_fetch_inferior_register)
16847 (i386_store_inferior_register): Change prototype to take a
16849 * win32-low.c (child_fetch_inferior_registers)
16850 (child_store_inferior_registers): Change prototype to take a
16852 (win32_wait): Adjust.
16853 (win32_fetch_inferior_registers): Change prototype to take a
16855 (win32_store_inferior_registers): Adjust.
16856 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16857 store_inferior_register>: Change prototype to take a regcache.
16859 2010-01-20 Doug Evans <dje@google.com>
16861 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16863 (linux_wait_for_event1, linux_init_signals): Ditto.
16864 (W_STOPCODE): Provide definition if missing.
16866 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16868 * linux-low.c (linux_core_of_thread): New.
16869 (compare_ints, show_process, list_threads): New.
16870 (linux_qxfer_osdata): Report threads and cores.
16871 (linux_target_op): Register linux_core_of_thread.
16872 * remote-utils.c (prepare_resume_reply): Report the core.
16873 (buffer_xml_printf): Support %d specifier.
16874 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16876 (handle_query): Handle qXfer:threads. Announce availability
16878 * target.h (struct target_ops): New field core_of_thread.
16880 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16882 * Makefile.in (clean): Remove new generated files.
16883 (reg-s390.o, reg-s390.c): Remove rules.
16884 (reg-s390x.o, reg-s390x.c): Likewise.
16885 (s390-linux32.o, s390-linux32.c): Add rules.
16886 (s390-linux64.o, s390-linux64.c): Likewise.
16887 (s390x-linux64.o, s390x-linux64.c): Likewise.
16888 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16889 * linux-s390-low.c: Include <elf.h>.
16890 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16891 (init_registers_s390): Remove prototype.
16892 (init_registers_s390x): Likewise.
16893 (init_registers_s390_linux32): Add prototype.
16894 (init_registers_s390_linux64): Likewise.
16895 (init_registers_s390x_linux64): Likewise.
16896 (s390_num_regs_3264): New define.
16897 (s390_regmap_3264): New global variable.
16898 (s390_cannot_fetch_register): Remove obsolete check.
16899 (s390_cannot_store_register): Likewise.
16900 (s390_collect_ptrace_register): Handle upper/lower register halves.
16901 (s390_supply_ptrace_register): Likewise.
16902 (s390_fill_gregset): Update to register number changes.
16903 (s390_get_hwcap): New routine.
16904 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16905 Install appropriate regmap and register set.
16907 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16909 * server.c (gdbserver_version): Update copyright year to 2010.
16910 * gdbreplay.c (gdbreplay_version): Likewise.
16912 2009-12-28 Doug Evans <dje@google.com>
16914 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16915 elf/external.h. Include <elf.h> instead but only if necessary.
16917 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16919 * linux-low.c (linux_remove_process): Remove `detaching'
16920 parameter. Don't release/detach from thread_db here.
16921 (linux_kill): Release/detach from thread_db here, ...
16922 (linux_detach): ... and here, before actually detaching.
16923 (linux_wait_1): ... and here, when a process exits.
16924 * thread-db.c (any_thread_of): New.
16925 (thread_db_free): Switch the current inferior to a thread of the
16928 2009-12-21 Doug Evans <dje@google.com>
16930 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16932 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16933 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16934 warning ifndef __NR_tkill. Move setting of errno there too.
16935 Delete unnecessary resetting of errno after syscall.
16936 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16938 * configure.ac: Check for dladdr.
16939 * config.in: Regenerate.
16940 * configure: Regenerate.
16941 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16942 (try_thread_db_load): Update.
16944 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16946 2009-12-18 Doug Evans <dje@google.com>
16948 * event-loop.c: Include unistd.h if it exists.
16950 * linux-low.c (my_waitpid): Move definition away from being in
16951 between linux_tracefork_child/linux_test_for_tracefork.
16953 * gdb_proc_service.h (psaddr_t): Fix type.
16954 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16955 signature to match glibc.
16957 2009-12-16 Doug Evans <dje@google.com>
16959 * linux-low.c (linux_read_memory): Fix argument to read.
16961 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16963 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16964 events, don't leave current_inferior pointing at null.
16966 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16968 * win32-low.c (LOG): Delete.
16969 (OUTMSG): Output to stderr.
16970 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16971 on compile time LOG macro.
16972 (win32_wait): Fix debug output.
16974 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16976 * win32-low.c (win32_add_one_solib): If the dll name is
16977 "ntdll.dll", prepend the system directory to the dll path.
16979 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16981 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16983 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16984 Vladimir Prus <vladimir@codesourcery.com>
16986 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16987 * configure.ac: Check for __mcoldfire__ and set
16988 gdb_cv_m68k_is_coldfire.
16989 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16990 reg-cf.o and reg-m68k.o.
16991 * configure: Regenerated.
16993 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16995 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16996 Pass it to thread_db_free.
16997 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16998 proper `detaching' argument to linux_remove_process.
16999 * linux-low.h (thread_db_free): Add `detaching' parameter.
17000 * thread-db.c (thread_db_init): Pass false as `detaching' argument
17002 (thread_db_free): Add `detaching' parameter. Only
17003 call td_ta_clear_event if detaching from process.
17005 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17007 * thread-db.c (thread_db_free): Fix typo.
17009 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
17012 * thread-db.c (thread_db_free): Call td_ta_clear_event.
17014 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
17016 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
17017 with an i686 compiler.
17018 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
17020 * configure: Rebuilt.
17022 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
17026 * server.c (handle_search_memory_1): Correct read_addr initialization
17027 in loop for searching subsequent chunks.
17029 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
17031 * configure.ac: New --with-libthread-db option.
17032 * thread-db.c: Allow direct dependence on libthread_db.
17033 (thread_db_free): Adjust.
17034 * config.in: Regenerate.
17035 * configure: Likewise.
17037 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
17040 * thread-db.c (attach_thread): New function.
17041 (maybe_attach_thread): Return success/failure.
17042 (find_new_threads_callback): Adjust.
17043 (thread_db_find_new_threads): Loop until no new threads.
17045 2009-10-13 Pedro Alves <pedro@codesourcery.com>
17047 * proc-service.c (ps_lgetregs): Formatting.
17049 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
17051 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
17052 * configure.ac: Adjust.
17053 * linux-low.h (struct process_info_private): Move members to struct
17055 (thread_db_free, thread_db_handle_monitor_command): New prototype.
17056 * linux-low.c (linux_remove_process): Adjust.
17057 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
17058 * server.c (handle_query): Move code ...
17059 (handle_monitor_command): ... here. New function.
17060 * target.h (struct target_ops): New member.
17061 * thread-db.c (struct thread_db): New.
17062 (libthread_db_search_path): New variable.
17063 (thread_db_create_event, thread_db_enable_reporting)
17064 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17065 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17066 (try_thread_db_load_1, dladdr_to_soname): New functions.
17067 (try_thread_db_load, thread_db_load_search): New functions.
17068 (thread_db_init): Search for libthread_db.
17069 (thread_db_free): New function.
17070 (thread_db_handle_monitor_command): Likewise.
17071 * config.in: Regenerate.
17072 * configure: Regenerate.
17074 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17076 * spu-low.c (spu_kill): Wait for inferior to terminate.
17077 Call clear_inferiors.
17078 (spu_detach): Call clear_inferiors.
17080 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17082 * aclocal.m4: Regenerate.
17083 * config.in: Likewise.
17084 * configure: Likewise.
17086 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17088 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17089 (parse_spufs_run): New function.
17090 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17091 (ppc_breakpoint_at): Handle SPU breakpoints.
17093 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17095 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17096 (SPUFS_MAGIC): Define.
17097 (spu_enumerate_spu_ids): New function.
17098 (linux_qxfer_spu): New function.
17099 (linux_target_ops): Install linux_qxfer_spu.
17101 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17103 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17104 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17105 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17106 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17107 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17108 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17109 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17110 (init_registers_powerpc_cell32l): Add prototype.
17111 (init_registers_powerpc_cell64l): Likewise.
17112 (ppc_arch_setup): Detect Cell/B.E. architecture.
17114 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17116 * Makefile.in (datarootdir): New variable.
17118 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17120 * linux-low.c (linux_write_memory): Update debugging output.
17121 * Makefile.in (clean): Add new descriptions.
17122 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17123 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17124 * configure.srv: Add new files for arm*-*-linux*.
17125 * linux-arm-low.c: Add new declarations.
17126 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17127 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17128 (HWCAP_VFPv3D16): New.
17129 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17130 instead of __IWMMXT__.
17131 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17132 (arm_arch_setup): New.
17133 (target_regsets): Remove #ifdef. Add VFP regset.
17134 (the_low_target): Use arm_arch_setup.
17136 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17138 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17139 the main thread again.
17141 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17143 Adding Neutrino gdbserver.
17144 * configure: Regenerated.
17145 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17146 * configure.srv (i[34567]86-*-nto*): New target.
17147 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17148 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17149 (nto_comctrl) [__QNX__]: New function.
17150 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17152 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
17154 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17157 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17158 Pedro Alves <pedro@codesourcery.com>
17160 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17161 don't support CONTEXT_EXTENDED_REGISTERS.
17162 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17163 (the_low_target): Install them.
17164 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17165 failing with ERROR_PIPE_NOT_CONNECTED.
17167 2009-06-30 Doug Evans <dje@google.com>
17168 Pierre Muller <muller@ics.u-strasbg.fr>
17170 Add h/w watchpoint support to x86-linux, win32-i386.
17171 * Makefile.in (SFILES): Add i386-low.c
17172 (i386_low_h): Define.
17173 (i386-low.o): Add dependencies.
17174 (linux-x86-low.o): Add i386-low.h dependency.
17175 (win32-i386-low.o): Ditto.
17176 * i386-low.c: New file.
17177 * i386-low.h: New file.
17178 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17179 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17180 * linux-low.c (linux_add_process): Initialize arch_private.
17181 (linux_remove_process): Free arch_private.
17182 (add_lwp): Initialize arch_private.
17183 (delete_lwp): Free arch_private.
17184 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17186 * linux-low.h (process_info_private): New member arch_private.
17187 (lwp_info): New member arch_private.
17188 (linux_target_ops): New members new_process, new_thread,
17190 (ptid_of): New macro.
17191 * linux-x86-low.c: Include stddef.h, i386-low.h.
17192 (arch_process_info): New struct.
17193 (arch_lwp_info): New struct.
17194 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17195 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17196 (i386_dr_low_get_status): New function.
17197 (x86_insert_point, x86_remove_point): New functions.
17198 (x86_stopped_by_watchpoint): New function.
17199 (x86_stopped_data_address): New function.
17200 (x86_linux_new_process, x86_linux_new_thread): New functions.
17201 (x86_linux_prepare_to_resume): New function.
17202 (the_low_target): Add entries for insert_point, remove_point,
17203 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17205 * server.c (debug_hw_points): New global.
17206 (monitor_show_help): Document set debug-hw-points.
17207 (handle_query): Process "set debug-hw-points".
17208 * server.h (debug_hw_points): Declare.
17209 (paddress): Declare.
17210 * utils.c (NUMCELLS, CELLSIZE): New macros.
17211 (get_sell, xsnprintf, paddress): New functions.
17212 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17213 remove_point, stopped_by_watchpoint, stopped_data_address.
17214 * win32-i386-low.c: Include i386-low.h.
17215 (debug_reg_state): Replaces dr.
17216 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17217 (i386_dr_low_get_status): New function.
17218 (i386_insert_point, i386_remove_point): New functions.
17219 (i386_stopped_by_watchpoint): New function.
17220 (i386_stopped_data_address): New function.
17221 (i386_initial_stuff): Update.
17222 (get_thread_context,set_thread_context,i386_thread_added): Update.
17223 (the_low_target): Add entries for insert_point,
17224 remove_point, stopped_by_watchpoint, stopped_data_address.
17225 * win32-low.c (win32_insert_watchpoint): New function.
17226 (win32_remove_watchpoint): New function.
17227 (win32_stopped_by_watchpoint): New function.
17228 (win32_stopped_data_address): New function.
17229 (win32_target_ops): Add entries for insert_watchpoint,
17230 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17231 * win32-low.h (win32_target_ops): New members insert_point,
17232 remove_point, stopped_by_watchpoint, stopped_data_address.
17234 2009-06-25 Pedro Alves <pedro@codesourcery.com>
17236 * server.c (process_serial_event): Re-return unsupported, not
17237 error, if the type isn't recognized. Re-allow supporting only
17238 insert or remove packets. Also call require_running for
17239 breakpoints. Add missing break statement to default case. Tidy.
17240 * target.h (struct target_ops): Rename insert_watchpoint to
17241 insert_point, and remove_watchpoint to remove_point.
17243 * linux-low.h (struct linux_target_ops): Likewise.
17244 * linux-low.c (linux_insert_watchpoint): Rename to ...
17245 (linux_insert_point): ... this. Adjust.
17246 (linux_remove_watchpoint): Rename to ...
17247 (linux_remove_point): ... this. Adjust.
17248 (linux_target_ops): Adjust.
17249 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17250 (cris_insert_point): ... this.
17251 (cris_remove_watchpoint): Rename to ...
17252 (cris_remove_point): ... this.
17253 (the_low_target): Adjust.
17255 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17257 * server.c (handle_v_kill): Pass signal_pid to
17258 kill_inferior if multi_process is zero.
17260 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17262 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17263 * target.h (target_ops): Comment for *_watchpoint to make it clear
17264 the functions can get types '0' and '1'.
17266 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17268 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17269 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17270 * regcache.c (get_regcache): Likewise.
17271 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17272 * win32-low.c (child_fetch_inferior_registers): Remove check for
17275 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17276 Pedro Alves <pedro@codesourcery.com>
17278 * target.h (struct target_ops) <supports_multi_process>: New
17280 (target_supports_multi_process): New.
17281 * server.c (handle_query): Even if GDB reports support, only
17282 enable multi-process if the target also supports it. Report
17283 multi-process support only if the target backend supports it.
17284 * linux-low.c (linux_supports_multi_process): New function.
17285 (linux_target_ops): Install it as target_supports_multi_process
17288 2009-05-24 Doug Evans <dje@google.com>
17290 Global renaming of find_thread_pid to find_thread_ptid.
17291 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17292 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17293 All callers updated.
17295 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17296 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17299 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17300 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17301 (linux_resume_one_lwp): Ditto.
17303 2009-05-23 Doug Evans <dje@google.com>
17305 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17306 from struct inferior_list_entry * to struct lwp_info *.
17307 All callers updated.
17309 2009-05-13 Doug Evans <dje@google.com>
17311 * linux-x86-low.c: Don't include assert.h.
17312 (x86_siginfo_fixup): Use fatal, not assert.
17313 (x86_arch_setup): Fix comment.
17315 2009-05-12 Doug Evans <dje@google.com>
17317 Biarch support for i386/amd64 gdbserver.
17318 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17319 Add linux-x86-low.c.
17320 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17321 (linux-x86-low.o): Add.
17322 * linux-x86-64-low.c: Delete.
17323 * linux-i386-low.c: Delete.
17324 * linux-x86-low.c: New file.
17325 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17327 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17329 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17330 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17331 (linux_child_pid_to_exec_file): New function.
17332 (elf_64_header_p, elf_64_file_p): New functions.
17333 (siginfo_fixup): New function.
17334 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17335 give target a chance to convert layout.
17336 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17337 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17339 2009-05-07 Doug Evans <dje@google.com>
17341 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17342 (regsets_store_inferior_registers): Ditto.
17344 2009-05-06 Pedro Alves <pedro@codesourcery.com>
17348 * linux-low.c (must_set_ptrace_flags): Delete.
17349 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17351 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17352 `lwp->must_set_ptrace_flags' instead.
17353 (linux_wait_for_event_1): Set ptrace options here.
17354 (linux_wait_1): ... not here.
17356 2009-04-30 Doug Evans <dje@google.com>
17358 * inferiors.c (started_inferior_callback): New function.
17359 (attached_inferior_callback): New function.
17360 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17361 * server.c (print_started_pid, print_attached_pid): New functions.
17362 (detach_or_kill_for_exit): New function.
17363 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17364 * server.h (have_started_inferiors_p): Declare.
17365 (have_attached_inferiors_p): Declare.
17367 * inferiors.c (remove_process): Fix memory leak, free process.
17368 * linux-low.c (linux_remove_process): New function.
17369 (linux_kill): Call it instead of remove_process.
17370 (linux_detach, linux_wait_1): Ditto.
17372 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17374 * configure.srv: Add x86 Windows CE target.
17376 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17378 * inferiors.c (get_thread_process): Make global.
17379 * server.h (get_thread_process): Add prototype.
17380 * thread-db.c (find_one_thread): Use get_thread_process
17381 instead of current_process.
17382 (thread_db_get_tls_address): Do not crash if called when
17383 thread layer is not yet initialized.
17385 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17387 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17388 * spu-low.c (current_tid): Rename to ...
17389 (current_ptid): ... this.
17390 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17391 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17392 ptid_get_lwp (current_ptid) instead of current_tid.
17393 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17394 instead of current_tid. Use find_process_pid to verify pid
17395 argument is valid. Pass proper argument to remove_process.
17396 (spu_thread_alive): Compare current_ptid instead of current_tid.
17397 (spu_resume): Likewise.
17399 2009-04-02 Pedro Alves <pedro@codesourcery.com>
17401 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17404 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17406 Implement the multiprocess extensions, and add linux multiprocess
17409 * server.h (ULONGEST): Declare.
17410 (struct ptid, ptid_t): New.
17411 (minus_one_ptid, null_ptid): Declare.
17412 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17413 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
17414 (struct inferior_list_entry): Change `id' type from unsigned from
17416 (struct sym_cache, struct breakpoint, struct
17417 process_info_private): Forward declare.
17418 (struct process_info): Declare.
17419 (current_process): Declare.
17420 (all_processes): Declare.
17421 (initialize_inferiors): Declare.
17422 (add_thread): Adjust to use ptid_t.
17423 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
17424 (add_process, remove_process, find_thread_pid): Declare.
17425 (find_inferior_id): Adjust to use ptid_t.
17426 (cont_thread, general_thread, step_thread): Change type to ptid_t.
17427 (multi_process): Declare.
17428 (push_event): Adjust to use ptid_t.
17429 (read_ptid, write_ptid): Declare.
17430 (prepare_resume_reply): Adjust to use ptid_t.
17431 (clear_symbol_cache): Declare.
17432 * inferiors.c (all_processes): New.
17433 (null_ptid, minus_one_ptid): New.
17434 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17435 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
17436 (add_thread): Change unsigned long to ptid. Remove gdb_id
17438 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
17439 (gdb_id_to_thread): Rename to ...
17440 (find_thread_pid): ... this. Change unsigned long to ptid.
17441 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
17442 (loaded_dll, pull_pid_from_list): Adjust.
17443 (add_process, remove_process, find_process_pid)
17444 (get_thread_process, current_process, initialize_inferiors): New.
17445 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
17446 (struct target_waitstatus) <related_pid>: Ditto.
17447 (struct target_ops) <kill, detach>: Add `pid' argument. Change
17448 return type to int.
17449 (struct target_ops) <join>: Add `pid' argument.
17450 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
17451 (struct target_ops) <wait>: Add `ptid' field. Change return type
17453 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
17454 (mywait): Add `ptid' argument. Change return type to ptid_t.
17455 (target_pid_to_str): Declare.
17456 * target.c (set_desired_inferior): Adjust to use ptids.
17457 (mywait): Add new `ptid' argument. Adjust.
17458 (target_pid_to_str): New.
17459 * mem-break.h (free_all_breakpoints): Declare.
17460 * mem-break.c (breakpoints): Delelete.
17461 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
17462 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
17463 to use per-process breakpoint list.
17464 (free_all_breakpoints): New.
17465 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
17466 (symbol_cache, all_symbols_looked_up): Delete.
17468 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
17470 (prepare_resume_reply): Change ptid argument's type from unsigned
17471 long to ptid_t. Adjust. Implement W;process and X;process.
17472 (free_sym_cache, clear_symbol_cache): New.
17473 (look_up_one_symbol): Adjust to per-process symbol cache. *
17474 * server.c (cont_thread, general_thread, step_thread): Change type
17476 (attached): Delete.
17477 (multi_process): New.
17478 (last_ptid): Change type to ptid_t.
17479 (struct vstop_notif) <ptid>: Change type to ptid_t.
17480 (queue_stop_reply, push_event): Change `ptid' argument's type to
17482 (discard_queued_stop_replies): Add `pid' argument.
17483 (start_inferior): Adjust to use ptids. Adjust to mywait interface
17484 changes. Don't reference the `attached' global.
17485 (attach_inferior): Adjust to mywait interface changes.
17486 (handle_query): Adjust to use ptids. Parse GDB's qSupported
17487 features. Handle and report "multiprocess+". Handle
17489 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
17491 (handle_v_kill): New.
17492 (handle_v_stopped): Adjust to use target_pid_to_str.
17493 (handle_v_requests): Allow multiple attaches and runs when
17494 multiprocess extensions are in effect. Handle "vKill".
17495 (myresume): Adjust to use ptids.
17496 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
17497 (handle_status): Adjust to discard_queued_stop_replies interface
17499 (first_thread_of, kill_inferior_callback)
17500 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
17501 (main): Call initialize_inferiors. Adjust to use ptids, killing
17502 and detaching from all inferiors. Handle multiprocess packet
17504 * linux-low.h: Include gdb_proc_service.h.
17505 (struct process_info_private): New.
17506 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
17507 <lwpid_of>: Use ptid_get_lwp.
17508 (get_lwp_thread): Adjust.
17509 (struct lwp_info): Add `dead' member.
17510 (find_lwp_pid): Declare.
17511 * linux-low.c (thread_db_active): Delete.
17512 (new_inferior): Adjust comment.
17513 (inferior_pid): Delete.
17514 (linux_add_process): New.
17515 (handle_extended_wait): Adjust.
17516 (add_lwp): Change unsigned long to ptid.
17517 (linux_create_inferior): Add process to processes table. Adjust
17518 to use ptids. Don't set new_inferior here.
17519 (linux_attach_lwp): Rename to ...
17520 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
17521 it. Adjust to use ptids.
17522 (linux_attach_lwp): New.
17523 (linux_attach): Add process to processes table. Don't set
17525 (struct counter): New.
17526 (second_thread_of_pid_p, last_thread_of_process_p): New.
17527 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
17528 multiple processes.
17529 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
17530 processes. Remove process from process table.
17531 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
17532 to multiple processes.
17533 (any_thread_of): New.
17534 (linux_detach): Add `pid' argument, and handle it. Remove process
17535 from processes table.
17536 (linux_join): Add `pid' argument. Handle it.
17537 (linux_thread_alive): Change unsighed long argument to ptid_t.
17538 Consider dead lwps as not being alive.
17539 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
17540 threads we're not interested in.
17541 (same_lwp, find_lwp_pid): New.
17542 (linux_wait_for_lwp): Change `pid' argument's type from int to
17544 (linux_wait_for_event): Rename to ...
17545 (linux_wait_for_event_1): ... this. Change `pid' argument's type
17546 from int to ptid_t. Adjust.
17547 (linux_wait_for_event): New.
17548 (linux_wait_1): Add `ptid' argument. Change return type to
17549 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
17550 that exit from the process table.
17551 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
17553 (mark_lwp_dead): New.
17554 (wait_for_sigstop): Adjust to use ptids. If a process exits while
17555 stopping all threads, mark its main lwp as dead.
17556 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
17558 (fetch_register, usr_store_inferior_registers)
17559 (regsets_fetch_inferior_registers)
17560 (regsets_store_inferior_registers, linux_read_memory)
17561 (linux_write_memory): Inline `inferior_pid'.
17562 (linux_look_up_symbols): Adjust to use per-process
17563 `thread_db_active'.
17564 (linux_request_interrupt): Adjust to use ptids.
17565 (linux_read_auxv): Inline `inferior_pid'.
17566 (initialize_low): Don't reference thread_db_active.
17567 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
17568 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
17569 (ps_getpid): Return the pid of the current inferior.
17570 * thread-db.c (proc_handle, thread_agent): Delete.
17571 (thread_db_create_event, thread_db_enable_reporting): Adjust to
17573 (find_one_thread): Change argument type to ptid_t. Adjust to
17575 (maybe_attach_thread): Adjust to per-process data and ptids.
17576 (thread_db_find_new_threads): Ditto.
17577 (thread_db_init): Ditto.
17578 * spu-low.c (spu_create_inferior, spu_attach): Add process to
17579 processes table. Adjust to use ptids.
17580 (spu_kill, spu_detach): Adjust interface. Remove process from
17582 (spu_join, spu_thread_alive): Adjust interface.
17583 (spu_wait): Adjust interface. Remove process from processes
17584 table. Adjust to use ptids.
17585 * win32-low.c (current_inferior_tid): Delete.
17586 (current_inferior_ptid): New.
17587 (debug_event_ptid): New.
17588 (thread_rec): Take a ptid. Adjust.
17589 (child_add_thread): Add `pid' argument. Adjust to use ptids.
17590 (child_delete_thread): Ditto.
17591 (do_initial_child_stuff): Add `attached' argument. Add process to
17593 (child_fetch_inferior_registers, child_store_inferior_registers):
17595 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
17596 (win32_attach): Pass 1 to do_initial_child_stuff.
17597 (win32_kill): Adjust interface. Remove process from processes
17599 (win32_detach): Ditto.
17600 (win32_join): Adjust interface.
17601 (win32_thread_alive): Take a ptid.
17602 (win32_resume): Adjust to use ptids.
17603 (get_child_debug_event): Ditto.
17604 (win32_wait): Adjust interface. Remove exiting process from
17607 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17609 Non-stop mode support.
17611 * server.h (non_stop): Declare.
17612 (gdb_client_data, handler_func): Declare.
17613 (delete_file_handler, add_file_handler, start_event_loop):
17615 (handle_serial_event, handle_target_event, push_event)
17616 (putpkt_notif): Declare.
17617 * target.h (enum resume_kind): New.
17618 (struct thread_resume): Replace `step' field by `kind' field.
17619 (TARGET_WNOHANG): Define.
17620 (struct target_ops) <wait>: Add `options' argument.
17621 <supports_non_stop, async, start_non_stop>: New fields.
17622 (target_supports_non_stop, target_async): New.
17623 (start_non_stop): Declare.
17624 (mywait): Add `options' argument.
17625 * target.c (mywait): Add `options' argument. Print child exit
17626 notifications here.
17627 (start_non_stop): New.
17628 * server.c (non_stop, own_buf, mem_buf): New globals.
17629 (struct vstop_notif): New.
17630 (notif_queue): New global.
17631 (queue_stop_reply, push_event, discard_queued_stop_replies)
17632 (send_next_stop_reply): New.
17633 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17635 (attach_inferior): In non-stop mode, don't wait for the target
17637 (handle_general_set): Handle QNonStop.
17638 (handle_query): When handling qC, return the current general
17639 thread, instead of the first thread of the list.
17640 (handle_query): If the backend supports non-stop mode, include
17641 QNonStop+ in the qSupported query response.
17642 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17644 (handle_v_attach, handle_v_run): Handle non-stop mode.
17645 (handle_v_stopped): New.
17646 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17647 (myresume): Adjust to use resume_kind. Handle non-stop.
17648 (queue_stop_reply_callback): New.
17649 (handle_status): Handle non-stop mode.
17650 (main): Clear non_stop flag on reconnection. Use the event-loop.
17651 Refactor serial protocol handling from here ...
17652 (process_serial_event): ... to this new function. When GDB
17653 selects any thread, select one here. In non-stop mode, wait until
17654 GDB acks all pending events before exiting.
17655 (handle_serial_event, handle_target_event): New.
17656 * remote-utils.c (remote_open): Install remote_desc in the event
17658 (remote_close): Remove remote_desc from the event loop.
17659 (putpkt_binary): Rename to...
17660 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17661 (putpkt_binary): New as wrapper around putpkt_binary_1.
17662 (putpkt_notif): New.
17663 (prepare_resume_reply): In non-stop mode, don't change the
17665 * event-loop.c: New.
17666 * Makefile.in (OBJ): Add event-loop.o.
17667 (event-loop.o): New rule.
17669 * linux-low.h (pid_of): Moved here.
17671 (get_lwp_thread): Use lwpid_of.
17672 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17673 * linux-low.c (pid_of): Delete.
17674 (inferior_pid): Use lwpid_of.
17675 (linux_event_pipe): New.
17676 (target_is_async_p): New.
17678 (handle_extended_wait): Use lwpid_of.
17679 (add_lwp): Don't set lwpid field.
17680 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17681 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17682 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17683 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17684 first. Adjust to linux_wait_for_event interface changes. Use
17686 (linux_detach): Don't delete the main lwp here.
17687 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17688 (status_pending_p): Don't consider explicitly suspended lwps.
17689 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17690 pointer. Add OPTIONS argument. Change return type to int. Use
17691 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17692 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17693 pointer. Add status pointer argument. Return a pid instead of a
17694 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17695 changes. In non-stop mode, don't switch to a random thread.
17696 (linux_wait): Rename to...
17697 (linux_wait_1): ... this. Add target_options argument, and handle
17698 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17699 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17700 clean exit and signal exit code. Don't stop all threads in
17701 non-stop mode. In all-stop mode, only stop all threads when
17702 reporting a stop to GDB. Handle explicit thread stop requests.
17703 (async_file_flush, async_file_mark): New.
17705 (send_sigstop): Use lwpid_of.
17706 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17707 interface changes. In non-stop mode, don't switch to a random
17709 (linux_resume_one_lwp): Use lwpid_of.
17710 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17711 (linux_resume_one_thread): ... this. Handle resume_stop. In
17712 non-stop mode, don't look for pending flag in all threads.
17713 (resume_status_pending_p): Don't consider explicitly suspended
17715 (my_waitpid): Reimplement. Emulate __WALL.
17716 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17718 (sigchld_handler, linux_supports_non_stop, linux_async)
17719 (linux_start_non_stop): New.
17720 (linux_target_ops): Register linux_supports_non_stop, linux_async
17721 and linux_start_non_stop.
17722 (initialize_low): Install SIGCHLD handler.
17723 * thread-db.c (thread_db_create_event, find_one_thread)
17724 (thread_db_get_tls_address): Use lwpid_of.
17725 * win32-low.c (win32_detach): Adjust to use resume_kind.
17726 (win32_wait): Add `options' argument.
17727 * spu-low.c (spu_resume): Adjust to use resume_kind.
17728 (spu_wait): Add `options' argument.
17730 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17732 Decouple target code from remote protocol.
17734 * target.h (enum target_waitkind): New.
17735 (struct target_waitstatus): New.
17736 (struct target_ops) <wait>: Return an unsigned long. Take a
17737 target_waitstatus pointer instead of a char pointer.
17738 (mywait): Likewise.
17739 * target.c (mywait): Change prototype to return an unsigned long.
17740 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17741 * server.h (thread_from_wait, old_thread_from_wait): Delete
17743 (prepare_resume_reply): Change prototype to take a
17745 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17746 (last_status, last_ptid): New.
17747 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17748 pid instead of a signal.
17749 (attach_inferior): Remove "status" and "signal" parameters.
17751 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17753 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17754 (handle_v_requests, myresume): Remove "status" and "signal"
17755 parameters. Adjust.
17756 (handle_status): New.
17757 (main): Delete local `status'. Adjust.
17758 * remote-utils.c: Include target.h.
17759 (prepare_resume_reply): Change prototype to take a
17760 target_waitstatus. Adjust.
17762 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17764 * spu-low.c (spu_wait): Adjust.
17765 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17767 (win32_wait): Adjust.
17769 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17771 * target.h (struct thread_resume): Delete leave_stopped member.
17772 (struct target_ops): Add a `n' argument to the `resume' callback.
17773 * server.c (start_inferior): Adjust.
17774 (handle_v_cont, myresume): Adjust.
17775 * linux-low.c (check_removed_breakpoint): Adjust to resume
17776 interface change, and to removed leave_stopped field.
17777 (resume_ptr): Delete.
17778 (struct thread_resume_array): New.
17779 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17780 resume interface change.
17781 (linux_continue_one_thread, linux_queue_one_thread)
17782 (resume_status_pending_p): Check if the resume field is NULL
17783 instead of checking the leave_stopped member.
17784 (linux_resume): Adjust to the target resume interface change.
17785 * spu-low.c (spu_resume): Adjust to the target resume interface
17787 * win32-low.c (win32_detach, win32_resume): Ditto.
17789 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17791 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17793 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17795 (linux_continue_one_thread): Only preserve the stepping flag if
17796 there's a pending breakpoint.
17798 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17800 * server.c (main): After the inferior having exited, call
17801 remote_close before exiting gdbserver.
17803 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17805 Fix size of FPSCR in Power 7 processors.
17806 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17807 (PPC_FEATURE_HAS_DFP): New #define.
17808 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17811 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17813 * server.c (handle_query) Whitespace and formatting.
17815 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17817 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17818 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17819 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17820 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17821 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17822 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17823 Makefile.in, configure.ac: Fix whitespace throughout.
17824 * configure: Regenerate.
17826 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17828 * inferiors.c (find_inferior): Make it safe for the callback
17829 function to delete the currently iterated inferior.
17831 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17833 * Makefile.in (linuw_low_h): Move higher.
17834 (thread-db.o): Depend on $(linux_low_h).
17836 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17838 Rename "process" to "lwp" throughout.
17840 * linux-low.c (all_processes): Rename to...
17841 (all_lwps): ... this.
17842 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17843 (add_process): Rename to ...
17844 (add_lwp): ... this. Adjust.
17845 (linux_create_inferior): Adjust.
17846 (linux_attach_lwp): Adjust.
17847 (linux_attach): Adjust.
17848 (linux_kill_one_process): Rename to ...
17849 (linux_kill_one_lwp): ... this. Adjust.
17850 (linux_kill): Adjust.
17851 (linux_detach_one_process): Rename to ...
17852 (linux_detach_one_lwp): ... this. Adjust.
17853 (linux_detach): Adjust.
17854 (check_removed_breakpoint): Adjust.
17855 (status_pending_p): Adjust.
17856 (linux_wait_for_process): Rename to ...
17857 (linux_wait_for_lwp): ... this. Adjust.
17858 (linux_wait_for_event): Adjust.
17859 (send_sigstop): Adjust.
17860 (wait_for_sigstop): Adjust.
17861 (stop_all_processes): Rename to ...
17862 (stop_all_lwps): ... this.
17863 (linux_resume_one_process): Rename to ...
17864 (linux_resume_one_lwp): ... this. Adjust.
17865 (linux_set_resume_request, linux_continue_one_thread)
17866 (linux_queue_one_thread, resume_status_pending_p)
17867 (usr_store_inferior_registers, regsets_store_inferior_registers)
17868 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17870 * linux-low.h (get_process): Rename to ...
17871 (get_lwp): ... this. Adjust.
17872 (get_thread_process): Rename to ...
17873 (get_thread_lwp): ... this. Adjust.
17874 (get_process_thread): Rename to ...
17875 (get_lwp_thread): ... this. Adjust.
17876 (struct process_info): Rename to ...
17877 (struct lwp_info): ... this.
17878 (all_processes): Rename to ...
17879 (all_lwps): ... this.
17880 * proc-service.c (ps_lgetregs): Adjust.
17881 * thread-db.c (thread_db_create_event, find_one_thread)
17882 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17884 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17886 * server.c (handle_query): Handle "qAttached".
17888 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17890 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17891 GPLv3, update license URL.
17893 2009-03-01 Doug Evans <dje@google.com>
17895 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17896 (server_h): Add gdb_signals.h.
17897 (signals.o): Update.
17898 * server.h (target_signal_from_host,target_signal_to_host_p)
17899 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17901 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17903 * remote-utils.c (getpkt): Also generate remote-debug
17904 information if noack_mode is set.
17906 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17908 * server.c (handle_query): Report qXfer:siginfo:read and
17909 qXfer:siginfo:write as supported and handle them.
17910 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17911 * linux-low.c (linux_xfer_siginfo): New.
17912 (linux_target_ops): Set it.
17914 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17916 * server.c (gdbserver_usage): Mention --remote-debug.
17917 (main): Accept '--remote-debug' switch.
17919 2009-01-18 Doug Evans <dje@google.com>
17921 * regcache.c (new_register_cache): No need to check result of xcalloc.
17922 * server.c (handle_search_memory): Back out calls to xmalloc,
17923 result is checked and error is returned to user upon failure.
17924 (handle_query): Ditto. Add more checks for result of malloc.
17925 (handle_v_cont): Check result of malloc, report error back to
17927 (handle_v_run): Ditto. Call freeargv.
17928 * server.h (freeargv): Declare.
17929 * utils.c (freeargv): New fn.
17931 2009-01-15 Doug Evans <dje@google.com>
17933 * gdbreplay.c (perror_with_name): Make arg const char *.
17934 * server.h (target_signal_to_name): Make return type const char *.
17935 * thread-db.c (thread_db_err_str): Make return type const char *.
17936 * utils.c (perror_with_name): Make arg const char *.
17938 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17940 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17941 when handling a EXIT_PROCESS_DEBUG_EVENT.
17943 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17945 * gdbreplay.c (gdbreplay_version): Update copyright year.
17946 * server.c (gdbserver_version): Likewise.
17948 2009-01-05 Doug Evans <dje@google.com>
17950 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17951 (handle_extended_wait): Improve comment.
17953 2008-12-13 Doug Evans <dje@google.com>
17955 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17956 * server.h (ATTR_MALLOC): New macro.
17957 (xmalloc,xcalloc,xstrdup): Declare.
17958 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17959 * inferiors.c: Ditto.
17960 * linux-low.c: Ditto.
17961 * mem-break.c: Ditto.
17962 * regcache.c: Ditto.
17963 * remote-utils.c: Ditto.
17966 * win32-low.c: Ditto.
17968 2008-12-12 Doug Evans <dje@google.com>
17970 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17971 in debugging printf.
17973 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17975 2008-12-09 Doug Evans <dje@google.com>
17977 * linux-low.h (struct process_info): Delete member tid, unused.
17978 * thread-db.c (find_one_thread): Update.
17979 (maybe_attach_thread): Update.
17981 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17983 * target.h (struct target_ops): Add qxfer_osdata member.
17984 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17986 (linux_qxfer_osdata): New functions.
17987 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17989 * server.c (handle_query): Handle "qXfer:osdata:read:".
17990 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17991 (buffer_xml_printf): New functions.
17992 * server.h (struct buffer): New.
17993 (buffer_grow_str, buffer_grow_str0): New macros.
17994 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17995 (buffer_xml_printf): Declare.
17997 2008-11-24 Doug Evans <dje@google.com>
17999 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
18001 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
18003 * server.c (handle_v_run): Always use the supplied argument list.
18005 2008-11-19 Bob Wilson <bob.wilson@acm.org>
18007 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
18008 (xtensa_regmap_table): Add entry for scompare1.
18010 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
18012 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
18013 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
18014 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
18015 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
18016 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
18017 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
18018 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
18019 XML target descriptions.
18020 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
18021 when inferior is running on an ISA 2.05 or later processor. Add
18022 special case to return offset for full 64-bit slot of FPSCR when
18025 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
18027 * Makefile.in (SFILES, clean): Added sparc64 files.
18028 (reg-sparc64.o, reg-sparc64.c): New.
18029 * configure.srv (sparc*-*-linux*): New configuration.
18030 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
18031 syscall arguments for SPARC.
18032 (regsets_store_inferior_registers): Likewise.
18033 * linux-sparc-low.c: New file.
18035 2008-10-21 Doug Evans <dje@google.com>
18037 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
18038 (READLINE_DIR,READLINE_DEP): Delete.
18039 (INTERNAL_CFLAGS): Update.
18040 (LINTFLAGS): Update.
18042 2008-10-10 Pedro Alves <pedro@codesourcery.com>
18044 * server.c (handle_v_run): If GDB didn't specify an argv, use the
18045 whole argv from the last run, not just argv[0].
18047 2008-09-08 Pedro Alves <pedro@codesourcery.com>
18049 * regcache.c (new_register_cache): Return NULL if the register
18050 cache size isn't known yet.
18051 (free_register_cache): Avoid dereferencing a NULL regcache.
18053 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18055 * configure.srv: Merge MIPS and MIPS64.
18057 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
18059 * Makefile.in (uninstall): Apply $(EXEEXT) too.
18061 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
18063 * Makefile.in: Add required vsx dependencies.
18065 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18066 Declare init_registers_powerpc_vsx32l.
18067 Declare init_registers_powerpc_vsx64l.
18068 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18069 (ppc_arch_setup): Check for VSX in hwcap.
18070 (ppc_fill_vsxregset): New function.
18071 (ppc_store_vsxregset): New function.
18072 Add new VSX entry in regset_info target_regsets.
18074 * configure.srv: Add new VSX dependencies.
18076 2008-08-12 Pedro Alves <pedro@codesourcery.com>
18078 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18079 (remote_open): Set or clear transport_is_reliable.
18080 (putpkt_binary): Don't expect acks in noack mode.
18081 (getpkt): Don't send ack/nac in noack mode.
18082 * server.c (handle_general_set): Handle QStartNoAckMode.
18083 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18085 (main): Reset noack_mode on every connection.
18086 * server.h (noack_mode): Declare.
18088 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18090 * Makefile.in (GDBREPLAY_OBS): New variable.
18091 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18093 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18094 Daniel Jacobowitz <dan@codesourcery.com>
18096 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18097 (usr_store_inferior_registers): Likewise.
18098 (regsets_store_inferior_registers): Likewise.
18100 2008-07-31 Rolf Jansen <rj@surtec.com>
18101 Pedro Alves <pedro@codesourcery.com>
18103 * configure.ac: Check for memmem declaration.
18104 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18105 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18106 (disable_packet_qfThreadInfo): Unconditionally compile.
18107 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18108 * configure, config.in: Regenerate.
18110 2008-07-28 Doug Kwan <dougkwan@google.com>
18112 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18113 (linux_write_memory): Remove declaration of errno.
18115 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18117 * linux-low.c (handle_extended_wait): Do not use "status"
18118 variable uninitialized.
18120 2008-07-07 Pedro Alves <pedro@codesourcery.com>
18122 * server.c (handle_v_attach): Inhibit reporting dll changes.
18124 2008-06-27 Pedro Alves <pedro@codesourcery.com>
18126 * remote-utils.c (prepare_resume_reply): If requested, don't
18127 output "thread:TID" in the T stop reply.
18129 * server.c (disable_packet_vCont, disable_packet_Tthread)
18130 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18131 (handle_query): If requested, disable support for qC, qfThreadInfo
18133 (handle_v_requests): If requested, disable support for vCont.
18134 (gdbserver_show_disableable): New.
18135 (main): Handle --disable-packet and --disable-packet=LIST.
18137 * server.h (disable_packet_vCont, disable_packet_Tthread)
18138 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18140 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18142 * server.c (gdbserver_usage): Mention --version.
18144 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18146 * Makefile.in (gdbreplay.o): New rule.
18148 2008-06-06 Joseph Myers <joseph@codesourcery.com>
18150 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18151 message, not gdbserver.
18153 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
18154 Nathan Sidwell <nathan@codesourcery.com>
18155 Joseph Myers <joseph@codesourcery.com>
18157 * acinclude.m4: Include ../../config/acx.m4.
18158 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18159 * configure, config.in: Regenerate.
18160 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18161 * server.c (gdbserver_version): Print PKGVERSION.
18162 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18163 (main): Adjust gdbserver_usage calls.
18164 * gdbreplay.c (version, host_name): Add declarations.
18165 (gdbreplay_version, gdbreplay_usage): New.
18166 (main): Accept --version and --help options.
18168 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18170 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18171 (arm_breakpoint_at): Handle Thumb.
18172 (the_low_target): Add comment.
18174 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18176 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18178 2008-05-09 Doug Evans <dje@google.com>
18180 * server.h (decode_search_memory_packet): Declare.
18181 * remote-utils.c (decode_search_memory_packet): New fn.
18182 * server.c (handle_search_memory_1): New fn.
18183 (handle_search_memory): New fn.
18184 (handle_query): Process qSearch:memory packets.
18186 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18188 * regcache.c (registers_length): Remove.
18189 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18190 full register packet.
18191 * regcache.h (registers_length): Remove prototype.
18192 * server.h (PBUFSIZ): Define to 16384.
18194 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18196 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18197 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18198 powerpc-64l.o, and powerpc-altivec64l.o.
18199 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18200 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18201 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18202 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18203 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18206 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18207 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18208 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18209 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18210 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18211 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18212 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18213 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18214 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18215 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18218 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18219 (init_registers_powerpc_32l): ... this new prototype.
18220 (init_registers_powerpc_32): Remove, replace by ...
18221 (init_registers_powerpc_altivec32l): ... this new prototype.
18222 (init_registers_powerpc_e500): Remove, replace by ...
18223 (init_registers_powerpc_e500l): ... this new prototype.
18224 (init_registers_ppc64): Remove, replace by ...
18225 (init_registers_powerpc_64l): ... this new prototype.
18226 (init_registers_powerpc_64): Remove, replace by ...
18227 (init_registers_powerpc_altivec64l): ... this new prototype.
18228 (ppc_num_regs): Set to 73.
18229 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18230 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18231 (ppc_cannot_store_register): Handle orig_r3 and trap.
18232 (ppc_arch_setup): Update init_registers_... calls.
18233 (ppc_fill_gregset): Handle orig_r3 and trap.
18235 * inferiors.c (clear_inferiors): Reset current_inferior.
18237 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
18239 * acinclude.m4: Add override.m4.
18240 * configure: Regenerate.
18242 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18244 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18245 initial call to init_register_ppc64.
18247 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18249 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18250 single powerpc*-*-linux* case.
18251 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18253 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18255 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
18256 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
18258 * linux-ppc-low.c: Include <elf.h>.
18259 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18260 (ppc_hwcap): New global variable.
18261 (ppc_regmap): Remove __SPE__ #ifdef sections.
18262 (ppc_regmap_e500): New global variable.
18263 (ppc_cannot_store_register): Update __SPE__ special case.
18264 (ppc_get_hwcap): New function.
18265 (ppc_arch_setup): Use it to determine whether inferior supports
18266 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18267 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18268 Do not access registers if target does not support AltiVec.
18269 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18270 Do not access registers if target does not support SPE.
18271 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18273 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18275 * linux-low.c (disabled_regsets, num_regsets): New.
18276 (use_regsets_p): Delete.
18277 (linux_wait_for_process): Clear disabled_regsets.
18278 (regsets_fetch_inferior_registers): Check and set it.
18279 (regsets_store_inferior_registers): Likewise.
18280 (linux_fetch_registers, linux_store_registers): Do not use
18282 (initialize_low): Allocate disabled_regsets.
18284 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18286 * Makefile.in (LIBOBJS): New.
18287 (OBS): Use LIBOBJS.
18288 (memmem.o): New rule.
18289 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18290 * configure: Regenerated.
18292 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18294 * server.c (handle_query): Never return "unsupported" for
18295 qXfer:features:read queries.
18297 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18299 * server.c (get_features_xml): Fix inverted condition.
18300 (handle_query): Always support qXfer:feature:read.
18302 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18304 * server.c (wrapper_argv): New.
18305 (start_inferior): Handle wrapper_argv. If set, expect an extra
18307 (gdbserver_usage): Document --wrapper.
18308 (main): Parse --wrapper.
18310 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18312 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18313 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18314 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18315 (ppc_set_pc): Likewise.
18316 (ppc_arch_setup): New function.
18317 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18318 of collect_register.
18319 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
18321 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18323 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18324 instead of linux-ppc64-low.o.
18325 * linux-ppc64-low.c: Remove file.
18326 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18327 (linux-ppc64-low.o): Remove rule.
18329 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18330 (init_registers_powerpc_64): Likewise.
18331 (ppc_regmap): Conditionally define depending on __powerpc64__.
18332 (ppc_cannot_store_register): Do not special-case "fpscr" when
18333 compiled on __powerpc64__.
18334 (ppc_collect_ptrace_register): New function.
18335 (ppc_supply_ptrace_register): New function.
18336 (ppc_breakpoint): Change type to "unsigned int".
18337 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18338 (the_low_target): Conditionally provide initializers for the
18339 arch_setup member depending on __powerpc64__. Install
18340 collect_ptrace_register and supply_ptrace_register members.
18342 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18344 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18345 * server.c (gdbserver_xmltarget): Define.
18346 (get_features_xml): Use it to replace "target.xml" and arch_string.
18348 * configure.srv: Remove srv_xmltarget. Add XML files that were
18349 mentioned there to srv_xmlfiles instead. Remove conditional tests
18350 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18351 srv_xmlfiles and srv_regobj to include all possible choices.
18352 * configure.ac (srv_xmltarget): Remove.
18353 (srv_xmlfiles): Do not add "target.xml".
18354 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18355 checks for supplementary target information.
18356 * configure: Regenerate.
18357 * Makefile.in (XML_TARGET): Remove.
18358 (target.xml): Remove rule.
18359 (clean): Do not clean up target.xml.
18360 (.PRECIOUS): Do not mention target.xml.
18362 * target.h (struct target_ops): Remove arch_string member.
18363 * linux-low.c (linux_arch_string): Remove.
18364 (linux_target_ops): Remove arch_string initializer.
18365 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18366 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18367 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18368 * spu-low.c (spu_arch_string): Remove.
18369 (spu_target_ops): Remove arch_string initializer.
18370 * win32-low.c (win32_arch_string): Remove.
18371 (win32_target_ops): Remove arch_string initializer.
18372 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18373 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18374 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18376 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18378 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18379 by collect_ptrace_register and supply_ptrace_register hooks.
18380 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18381 instead of checking for the_low_target.left_pad_xfer.
18382 (usr_store_inferior_registers): Use collect_ptrace_register callback
18383 instead of checking for the_low_target.left_pad_xfer.
18385 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18386 (s390_supply_ptrace_register): Likewise.
18387 (s390_fill_gregset): Call s390_collect_ptrace_register.
18388 (the_low_target): Update.
18390 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18391 (ppc_supply_ptrace_register): Likewise.
18392 (the_low_target): Update.
18394 * linux-i386-low.c (the_low_target): Update.
18395 * linux-x86-64-low.c (the_low_target): Update.
18397 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18399 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18400 reg-s390.o and reg-s390x.o.
18402 * linux-low.c (new_inferior): New global variable.
18403 (linux_create_inferior, linux_attach): Set it.
18404 (linux_wait_for_process): Call the_low_target.arch_setup after the
18405 target has stopped for the first time.
18406 (initialize_low): Do not call the_low_target.arch_setup.
18408 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
18409 (s390_set_pc): Likewise.
18410 (s390_arch_setup): New function.
18411 (the_low_target): Use s390_arch_setup as arch_setup routine.
18413 * regcache.c (realloc_register_cache): New function.
18414 (set_register_cache): Call it for each existing regcache.
18416 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18418 * server.h (init_registers): Remove prototype.
18420 * linux-low.h (struct linux_target_ops): Add arch_setup field.
18421 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
18422 instead of init_registers ().
18423 * linux-arm-low.c (init_registers_arm): Add prototype.
18424 (init_registers_arm_with_iwmmxt): Likewise.
18425 (the_low_target): Add initializer for arch_setup field.
18426 * linux-cris-low.c (init_registers_cris): Add prototype.
18427 (the_low_target): Add initializer for arch_setup field.
18428 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
18429 (the_low_target): Add initializer for arch_setup field.
18430 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
18431 (the_low_target): Add initializer for arch_setup field.
18432 * linux-ia64-low.c (init_registers_ia64): Add prototype.
18433 (the_low_target): Add initializer for arch_setup field.
18434 * linux-m32r-low.c (init_registers_m32r): Add prototype.
18435 (the_low_target): Add initializer for arch_setup field.
18436 * linux-m68k-low.c (init_registers_m68k): Add prototype.
18437 (the_low_target): Add initializer for arch_setup field.
18438 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
18439 (init_registers_mips64_linux): Likewise.
18440 (the_low_target): Add initializer for arch_setup field.
18441 * linux-ppc-low.c (init_registers_ppc): Add prototype.
18442 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
18443 (the_low_target): Add initializer for arch_setup field.
18444 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
18445 (init_registers_powerpc_64): Likewise.
18446 (the_low_target): Add initializer for arch_setup field.
18447 * linux-s390-low.c (init_registers_s390): Add prototype.
18448 (init_registers_s390x): Likewise.
18449 (the_low_target): Add initializer for arch_setup field.
18450 * linux-sh-low.c (init_registers_sh): Add prototype.
18451 (the_low_target): Add initializer for arch_setup field.
18452 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
18453 (the_low_target): Add initializer for arch_setup field.
18454 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
18455 (the_low_target): Add initializer for arch_setup field.
18457 * win32-low.h (struct win32_target_ops): Add arch_setup field.
18458 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
18459 instead of init_registers ().
18460 * win32-arm-low.c (init_registers_arm): Add prototype.
18461 (the_low_target): Add initializer for arch_setup field.
18462 * win32-i386-low.c (init_registers_i386): Add prototype.
18463 (the_low_target): Add initializer for arch_setup field.
18465 * spu-low.c (init_registers_spu): Add prototype.
18466 (initialize_low): Call initialie_registers_spu () instead of
18467 initialize_registers ().
18469 2008-02-19 Pedro Alves <pedro@codesourcery.com>
18471 * server.c (handle_v_requests): When handling the vRun and vAttach
18472 packets, if already debugging a process, don't kill it. Return an
18475 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
18477 * server.c (handle_query): Correct length check.
18479 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
18481 * win32-low.c (do_initial_child_stuff): Add process handle
18482 parameter. Set current_process_handle and current_process_id from the
18483 parameters. Clear globals.
18484 (win32_create_inferior): Don't set current_process_handle and
18485 current_process_id here. Instead pass them on the call to
18486 do_initial_child_stuff.
18487 (win32_attach): Likewise.
18488 (win32_clear_inferiors): New.
18489 (win32_kill): Don't close the current process handle or the
18490 current thread handle here. Instead call win32_clear_inferiors.
18491 (win32_detach): Don't open a new handle to the process. Call
18492 win32_clear_inferiors.
18493 (win32_join): Don't rely on current_process_handle; open a new
18494 handle using the process id.
18495 (win32_wait): Call win32_clear_inferiors when the inferior process
18498 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
18500 * server.c (monitor_show_help): Add "exit".
18502 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
18504 * Makefile.in (SFILES): Add linux-xtensa-low.c.
18505 (clean): Add reg-xtensa.c.
18506 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
18507 * configure.srv (xtensa*-*-linux*) New target.
18508 * linux-xtensa-low.c: New.
18509 * xtensa-xtregs.c: New.
18511 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
18513 * hostio.c: Don't include errno.h.
18514 (errno_to_fileio_errno): Move to hostio-errno.
18515 * hostio.c: (hostio_error): Remove the error parameter. Defer the
18516 error number outputting to the target->hostio_last_error callback.
18517 (hostio_packet_error): Use FILEIO_EINVAL directly.
18518 (handle_open, handle_pread, hostio_error, handle_unlink): Update
18519 calls to hostio_error.
18520 * hostio-errno.c: New.
18521 * server.h (hostio_last_error_from_errno): Declare.
18522 * target.h (target_ops): Add hostio_last_error member.
18523 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
18524 as hostio_last_error handler.
18525 * spu-low.c (spu_target_ops): Likewise.
18526 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
18527 (wince_hostio_last_error): New functions.
18528 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
18529 as hostio_last_error handler.
18530 (win32_target_ops) [!_WIN32_WCE]: Register
18531 hostio_last_error_from_errno as hostio_last_error handler.
18532 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
18533 (hostio-errno.o): New rule.
18534 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
18535 * configure.srv (srv_hostio_err_objs): New variable. Default to
18537 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
18538 * configure: Regenerate.
18540 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18542 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
18543 (linux_kill, linux_detach): Clean up the process list.
18544 * remote-utils.c (remote_open): Improve port number parsing.
18545 (putpkt_binary, input_interrupt): Only send interrupts if the target
18547 * server.c (extended_protocol): Make static.
18548 (attached): Define earlier.
18549 (exit_requested, response_needed, program_argv): New variables.
18550 (target_running): New.
18551 (start_inferior): Clear attached here.
18552 (attach_inferior): Set attached here.
18553 (require_running): Define.
18554 (handle_query): Use require_running and target_running. Implement
18556 (handle_v_attach, handle_v_run): New.
18557 (handle_v_requests): Use require_running. Handle vAttach and vRun.
18558 (gdbserver_usage): Update.
18559 (main): Redo argument parsing. Handle --debug and --multi. Handle
18560 --attach along with other options or after the port. Save
18561 program_argv. Support no initial program. Resynchronize
18562 communication with GDB after an error. Handle "monitor exit".
18563 Use require_running and target_running. Always allow the extended
18564 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
18565 restart in extended mode.
18566 * README: Refer to the GDB manual. Update --attach usage.
18568 2007-12-20 Andreas Schwab <schwab@suse.de>
18570 * linux-low.c (STACK_SIZE): Define.
18571 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18572 (linux_test_for_tracefork): Likewise.
18574 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18576 * linux-low.c (linux_wait_for_event): Update messages. Do not
18577 reinsert auto-delete breakpoints.
18578 * mem-break.c (struct breakpoint): Change return type of handler to
18580 (set_breakpoint_at): Update handler type.
18581 (reinsert_breakpoint_handler): Return 1 instead of calling
18583 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18585 (check_breakpoints): Delete auto-delete breakpoints and return 2.
18586 * mem-break.h (set_breakpoint_at): Update handler type.
18587 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
18588 * win32-low.c (auto_delete_breakpoint): New.
18589 (get_child_debug_event): Use it.
18591 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18593 * configure.ac: Check for pread and pwrite.
18594 * hostio.c (handle_pread): Fall back to lseek and read.
18595 (handle_pwrite): Fall back to lseek and write.
18596 * config.in, configure: Regenerated.
18598 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18600 * server.c (myresume): Add own_buf argument.
18601 (main): Update calls.
18603 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18605 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
18606 * remote-utils.c (remote_open): Do not call disable_async_io.
18607 (block_async_io): Delete.
18608 (unblock_async_io): Make static.
18609 (initialize_async_io): New.
18610 * server.c (handle_v_cont): Handle async I/O here.
18611 (myresume): Likewise. Move other common resume tasks here...
18612 (main): ... from here. Call initialize_async_io. Disable async
18613 I/O before the main loop.
18614 * server.h (initialize_async_io): Declare.
18615 (block_async_io, unblock_async_io): Delete prototypes.
18616 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
18618 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18620 * remote-utils.c (readchar): Allow binary data in received messages.
18622 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18624 * win32-low.c (attaching): New global.
18625 (win32_create_inferior): Clear the `attaching' global.
18626 (win32_attach): Set the `attaching' global.
18627 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18628 attaching. Only set a breakpoint at the entry point if not
18631 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18633 * server.c (main): Don't report dll events on the initial
18634 connection on attaches.
18636 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18638 * server.c (main): Relax numerical bases supported for the pid of
18639 the --attach command line argument.
18641 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18643 * win32-low.c (win32_attach): Call OpenProcess before
18644 DebugActiveProcess, not after. Add last error output to error
18647 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18649 * win32-low.c (win32_get_thread_context)
18650 (win32_set_thread_context): New functions.
18651 (thread_rec): Use win32_get_thread_context.
18652 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18653 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18656 2007-12-03 Leo Zayas
18657 Pedro Alves <pedro_alves@portugalmail.pt>
18659 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18661 (child_add_thread): Minor cleanup.
18662 (child_continue): Resume artificially suspended threads before
18663 calling ContinueDebugEvent.
18664 (suspend_one_thread): New.
18665 (fake_breakpoint_event): New.
18666 (get_child_debug_event): Change return type to int. Check here if
18667 gdb sent an interrupt request. If a soft interrupt was requested,
18668 fake a breakpoint event. Return 0 if there is no event to handle,
18670 (win32_wait): Don't check here if gdb sent an interrupt request.
18671 Ensure there is a valid event to handle.
18672 (win32_request_interrupt): Add soft interruption method as last
18675 2007-12-03 Leo Zayas
18676 Pedro Alves <pedro_alves@portugalmail.pt>
18678 * win32-low.h (win32_thread_info): Add descriptions to the
18679 structure members. Replace `suspend_count' counter by a
18681 * win32-low.c (thread_rec): Update condition of when to get the
18682 context from the inferior. Rely on ContextFlags being set if it
18683 has already been retrieved. Only suspend the inferior thread if
18684 we haven't already. Warn if that fails.
18685 (continue_one_thread): s/suspend_count/suspended/. Only call
18686 ResumeThread once. Warn if that fails.
18688 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18690 * win32-low.c (win32_wait): Don't read from the inferior when it
18691 has already exited.
18693 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18695 * Makefile.in (win32_low_h): New variable.
18696 (win32-low.o): Add dependency on $(win32_low_h).
18697 (win32-arm-low.o, win32-i386-low.o): New rules.
18699 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18701 * hostio.c: Correct copyright year.
18703 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18705 * Makefile.in (OBS): Add hostio.o.
18706 (hostio.o): New rule.
18707 * server.h (handle_vFile): Declare.
18708 * hostio.c: New file.
18709 * server.c (handle_v_requests): Take packet_len and new_packet_len
18710 for binary packets. Call handle_vFile.
18711 (main): Update call to handle_v_requests.
18713 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18715 * linux-low.c: Include <sched.h>.
18717 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18719 * linux-low.c (linux_tracefork_grandchild): New.
18720 (linux_tracefork_child): Use clone.
18721 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18723 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18725 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18727 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18729 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18731 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18733 * inferiors.c (change_inferior_id): Delete.
18734 (add_pid_to_list, pull_pid_from_list): New.
18735 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18736 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18737 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18738 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18739 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18740 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18741 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18742 (using_threads): Always set to 1.
18743 (handle_extended_wait): New.
18744 (add_process): Do not set TID.
18745 (linux_create_inferior): Set must_set_ptrace_flags.
18746 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18747 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18748 (linux_thread_alive): Rename TID argument to LWPID.
18749 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18750 (linux_wait_for_event): Do not use TID or check using_threads. Update
18751 call to dead_thread_notify. Call handle_extended_wait.
18752 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18753 (send_sigstop): Delete sigstop_sent.
18754 (wait_for_sigstop): Avoid TID.
18755 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18756 (linux_test_for_tracefork): New.
18757 (linux_lookup_signals): Use thread_db_active and
18758 linux_supports_tracefork_flag.
18759 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18760 * linux-low.h (get_process_thread): Avoid TID.
18761 (struct process_ifo): Move thread_known and tid to the end. Remove
18763 (linux_attach_lwp, thread_db_init): Update prototypes.
18764 * server.h (change_inferior_id): Delete prototype.
18765 (add_pid_to_list, pull_pid_from_list): New prototypes.
18766 * thread-db.c (thread_db_use_events): New.
18767 (find_first_thread): Rename to...
18768 (find_one_thread): ...this. Update callers and messages. Do not
18769 call fatal. Check thread_db_use_events. Do not call
18770 change_inferior_id or new_thread_notify.
18771 (maybe_attach_thread): Update. Do not call new_thread_notify.
18772 (thread_db_init): Set thread_db_use_events. Check use_events.
18773 * utils.c (fatal, warning): Correct message prefix.
18775 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18777 * Makefile.in (clean): Remove new files.
18778 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18779 (powerpc-64.o, powerpc-64.c): New rules.
18780 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18781 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18783 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18785 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18786 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18787 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18788 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18789 (target_regsets): Add AltiVec and SPE register sets.
18790 * configure.ac: Check for AltiVec and SPE.
18791 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18792 (ppc_fill_vrregset, ppc_store_vrregset): New.
18793 (target_regsets): Add AltiVec register set.
18794 * configure: Regenerated.
18796 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18798 * linux-low.c (O_LARGEFILE): Define.
18799 (linux_read_memory): Use /proc/PID/mem.
18800 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18801 * configure, config.in: Regenerated.
18803 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18805 * linux-low.c (linux_wait_for_event): Do not pass signals while
18808 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18810 * win32-low.c (create_process): New.
18811 (win32_create_inferior): Use create_process instead of
18812 CreateProcess. If create_process failed retry appending an ".exe"
18813 suffix. Store the GetLastError result immediatelly after
18814 create_process calls and use it on the call to error.
18816 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18818 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18820 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18822 * configure.ac: Switch license to GPLv3.
18824 2007-08-01 Michael Snyder <msnyder@access-company.com>
18826 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18828 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18830 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18832 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18833 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18834 CloseToolhelp32Snapshot.
18835 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18836 CloseToolhelp32Snapshot.
18838 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18840 * server.c (main): Check for inferior exit before main loop.
18842 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18844 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18845 instead of on tmp_desc.
18847 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18848 Daniel Jacobowitz <dan@codesourcery.com>
18850 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18851 (add_thread): Minor cleanups.
18852 (clear_inferiors): Move lower in the file. Clear the DLL
18854 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18855 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18856 (xml_escape_text): New.
18857 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18859 (handle_v_cont): Report errors.
18860 (gdbserver_version): Update.
18861 (main): Correct size of own_buf. Do not report initial DLL events.
18862 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18863 (unloaded_dll, xml_escape_text): New.
18864 * win32-low.c (enum target_waitkind): Update comments.
18865 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18866 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18867 (win32_EnumProcessModules, win32_GetModuleInformation)
18868 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18869 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18870 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18871 (win32_Module32First, win32_Module32Next, load_toolhelp)
18872 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18873 (get_child_debug_event): Handle DLL events.
18874 (win32_wait): Likewise.
18876 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18878 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18879 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18881 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18883 * win32-low.c (handle_output_debug_string): Ignore event if not
18886 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18888 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18890 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18892 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18894 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18896 * inferiors.c (change_inferior_id): Add comment.
18897 * linux-low.c (check_removed_breakpoint): Add an early
18898 prototype. Improve debug output.
18899 (linux_attach): Doc update.
18900 (linux_detach_one_process, linux_detach): Clean up before releasing
18902 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18903 * linux-low.h (struct process_info): Doc improvement.
18904 * mem-break.c (delete_all_breakpoints): New.
18905 * mem-break.h (delete_all_breakpoints): New prototype.
18906 * thread-db.c (find_first_thread): New.
18907 (thread_db_create_event): Call it instead of
18908 thread_db_find_new_threads. Clean up unused variables.
18909 (maybe_attach_thread): Remove first thread handling.
18910 (thread_db_find_new_threads): Use find_first_thread.
18911 (thread_db_get_tls_address): Likewise.
18913 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18915 * thread-db.c (thread_db_find_new_threads): Add prototype.
18916 (thread_db_create_event): Check for the main thread before adding
18918 (maybe_attach_thread): Only enable event reporting if TID == 0.
18919 (thread_db_get_tls_address): Check for new threads.
18921 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18923 * linux-low.c (linux_create_inferior): Try execv before execvp.
18924 * spu-low.c (spu_create_inferior): Likewise.
18926 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18928 * linux-low.c (linux_create_inferior): Change execv to execvp.
18929 * spu-low.c (spu_create_inferior): Likewies.
18931 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18933 * Makefile.in (clean): Clean new files instead of deleted ones.
18934 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18935 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18937 * configure.srv: Specify XML files and new regformats for MIPS and
18939 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18940 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18941 an entry for the restart register.
18942 (mips_cannot_fetch_register, mips_cannot_store_register)
18943 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18944 register names to match the XML descriptions.
18945 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18946 restart register instead of $0.
18948 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18949 Markus Deuling <deuling@de.ibm.com>
18951 * remote-utils.c (decode_xfer_write): New function.
18952 * server.h (decode_xfer_write): Add prototype.
18953 * server.c (handle_query): Add PACKET_LEN argument. Support
18954 qXfer:spu:read and qXfer:spu:write packets.
18955 (main): Pass packet_len to handle_query.
18956 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18957 * target.h (target_ops): Add qxfer_spu.
18959 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18961 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18962 accessing non-seekable spufs files.
18964 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18966 * server.c (handle_query): Add reply for qC packet.
18968 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18969 Leo Zayas <lerele@champenstudios@com>
18971 * server.h (check_remote_input_interrupt_request): New function.
18972 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18973 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18974 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18975 (check_remote_input_interrupt_request): New function.
18976 * server.h (check_remote_input_interrupt_request): Declare.
18977 * win32-low.c (winapi_DebugBreakProcess,
18978 winapi_GenerateConsoleCtrlEvent): New typedefs.
18979 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18981 (win32_wait): Check for remote interrupt request
18982 with check_remote_input_interrupt_request.
18983 (win32_request_interrupt): New function.
18984 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18986 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18988 * win32-low.c (debug_registers_changed,
18989 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18990 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18991 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18992 (thread_rec): Get context using the low target.
18993 (child_add_thread): Call thread_added on the low target,
18994 which does the same thing.
18996 (do_initial_child_stuff): Remove debug registers references.
18997 Set context using the low target. Resume threads after
18998 setting the contexts.
18999 (child_continue): Remove dead variable. Remove debug
19000 registers references.
19001 (child_fetch_inferior_registers): Go through the low target.
19002 (do_child_store_inferior_registers): Remove.
19003 (child_store_inferior_registers): Go through the low target.
19004 (win32_resume): Remove debug registers references.
19005 Set context using the low target.
19006 (handle_exception): Change return type to void. Don't record
19007 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
19008 first chance exception.
19009 (get_child_debug_event): Change return type to void. Remove
19010 goto loop. Always return after waiting for debug event.
19011 (win32_wait): Convert to switch statement. Handle spurious
19014 * win32-i386-low.c (debug_registers_changed,
19015 debug_registers_used): New.
19016 (initial_stuff): Rename to ...
19017 (i386_initial_stuff): ... this. Clear debug registers
19019 (store_debug_registers): Delete.
19020 (i386_get_thread_context): New.
19021 (load_debug_registers): Delete.
19022 (i386_set_thread_context): New.
19023 (i386_thread_added): New.
19024 (single_step): Rename to ...
19025 (i386_single_step): ... this.
19026 (do_fetch_inferior_registers): Rename to ...
19027 (i386_fetch_inferior_register): ... this.
19028 (i386_store_inferior_register): New.
19029 (the_low_target): Adapt to new interface.
19031 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
19032 (arm_get_thread_context): New.
19033 (arm_set_thread_context): New.
19035 (do_fetch_inferior_registers): Rename to ...
19036 (arm_fetch_inferior_register): ... this.
19037 (arm_store_inferior_register): New.
19038 (arm_wince_breakpoint): Reimplement as unsigned long.
19039 (arm_wince_breakpoint_len): Define.
19040 (the_low_target): Adapt to new interface.
19042 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
19043 load_debug_registers. Add get_thread_context, set_thread_context,
19044 thread_added and store_inferior_register. Rename
19045 fetch_inferior_registers to fetch_inferior_register.
19046 (regptr): Remove declaration.
19048 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19050 * linux-low.c (linux_detach): Change return type to int. Return 0.
19051 * spu-low.c (spu_detach): Likewise.
19053 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19055 * target.h (target_ops): Change return type of detach to int.
19057 (join_inferior): New.
19058 * server.c (main): Don't skip detach support on mingw32.
19059 If the inferior doesn't support detaching return error.
19060 Call join_inferior instead of using waitpid.
19061 * linux-low.c (linux_join): New.
19062 (linux_target_op): Add linux_join.
19063 * spu-low.c (spu_join): New.
19064 (spu_target_ops): Add spu_join.
19065 * win32-low.c (win32_detach): Adapt to new interface.
19066 Reopen current_process_handle before detaching. Issue a child
19067 resume before detaching.
19069 (win32_target_op): Add win32_join.
19071 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19073 * win32-low.c (win32-attach): Fix return value.
19074 * target.h (target_ops): Describe ATTACH return values.
19076 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19078 * win32-low.c (GETPROCADDRESS): Define.
19079 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19080 (winapi_DebugSetProcessKillOnExit): Likewise.
19081 (win32_create_inferior): Force usage of ansi CreateProcessA.
19082 (win32_attach): Use GETPROCADDRESS.
19083 (win32_detach): Likewise.
19085 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19087 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19089 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19091 * win32-low.c: Commit leftover changes from 2007-03-29.
19093 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19095 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19096 fields short instead of int. Add explicit padding.
19097 (i387_cache_to_fsave): Remove unnecessary casts.
19098 (i387_fsave_to_cache): Doc fix.
19099 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19101 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19103 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19104 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19106 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19108 * configure.srv (arm*-*-mingw32ce*): Move near the other
19111 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19113 * configure.ac: Add errno checking.
19114 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19115 sys/file.h and malloc.h.
19116 (AC_CHECK_DECLS): Add perror.
19117 (srv_mingwce): Handle.
19118 * configure.srv (i[34567]86-*-cygwin*): Add
19119 win32-i386-low.o to srv_tgtobj.
19120 (i[34567]86-*-mingw*): Likewise.
19121 (arm*-*-mingw32ce*): Add case.
19122 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19123 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19124 [__MINGW32CE__] (strerror): New function.
19125 [__MINGW32CE__] (errno): Define to GetLastError.
19126 [__MINGW32CE__] (COUNTOF): New macro.
19127 (remote_open): Remove extra close call.
19128 * mem-break.c (delete_breakpoint_at): New function.
19129 * mem-break.h (delete_breakpoint_at): Declare.
19130 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19131 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19132 [USE_WIN32API] (read, write): Add char* casts.
19133 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19134 * server.h: Include wincecompat.h on Windows CE.
19135 [HAVE_ERRNO_H]: Check.
19136 (perror): Declare if not declared.
19137 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19138 (perror_with_name): Remove errno declaration.
19139 * wincecompat.h: New.
19140 * wincecompat.c: New.
19141 * win32-low.h: New.
19142 * win32-arm-low.c: New.
19143 * win32-i386-low.c: New.
19144 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19145 (OUTMSG2): Make it safe.
19147 (COUNTOF): New macro.
19148 (NUM_REGS): Get it from the low target.
19149 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19150 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19151 (thread_rec): Let low target handle debug registers.
19152 (child_add_thread): Likewise.
19153 (child_init_thread_list): Likewise.
19154 (continue_one_thread): Likewise.
19156 (do_child_fetch_inferior_registers): Move to ...
19157 * win32-i386-low.c: ... here, and rename to ...
19158 (do_fetch_inferior_registers): ... this.
19159 * win32-low.c (child_fetch_inferior_registers):
19160 Go through the low target.
19161 (do_child_store_inferior_registers): Use regptr.
19162 (strwinerror): New function.
19163 (win32_create_inferior): Handle Windows CE.
19164 Use strwinerror instead of strerror on Windows error
19165 codes. Add program to the error output.
19166 Don't close the main thread handle on Windows CE.
19167 (win32_attach): Use coredll.dll on Windows CE.
19168 (win32_kill): Close current process and current
19170 (win32_detach): Use coredll.dll on Windows CE.
19171 (win32_resume): Let low target handle debug registers, and
19173 (handle_exception): Add/Remove initial breakpoint. Avoid
19174 non-existant WSTOPSIG on Windows CE.
19175 (win32_read_inferior_memory): Cast to remove warning.
19176 (win32_arch_string): Go through the low target.
19177 (initialize_low): Call set_breakpoint_data with the low
19178 target's breakpoint.
19179 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19180 FOP_REGNUM, mappings): Move to ...
19181 * win32-i386-low.c: ... here.
19182 * win32-low.c (win32_thread_info): Move to ...
19183 * win32-low.h: ... here.
19184 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19185 win32-arm-low.c and wincecompat.c.
19186 (all:): Add $EXEEXT.
19187 (install-only:): Likewise.
19188 (gdbserver:): Likewise.
19189 (gdbreplay:): Likewise.
19190 * config.in: Regenerate.
19191 * configure: Regenerate.
19193 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19195 * win32-low.c: Rename typedef thread_info to
19196 win32_thread_info throughout.
19198 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19200 * win32-i386-low.c: Rename to ...
19201 * win32-low.c: ... this.
19202 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19203 * Makefile.in: Likewise.
19205 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19207 * remote-utils.c (monitor_output): Constify msg parameter.
19208 * server.h (monitor_output): Likewise.
19209 * win32-i386-low.c (handle_output_debug_string): New.
19210 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19211 handle_output_debug_string.
19212 (get_child_debug_event): Likewise.
19214 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19216 * server.c (main): Correct strtoul check.
19218 2007-03-27 Jon Ringle <jon@ringle.org>
19220 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19222 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19224 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19226 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19228 * terminal.h: Check HAVE_SGTTY_H.
19230 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
19232 * remote-utils.c (remote_open): Print out the assigned port number.
19234 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19236 * remote-utils.c (monitor_output): New function.
19237 * server.c (debug_threads): Define here.
19238 (monitor_show_help): New function.
19239 (handle_query): Handle qRcmd.
19240 (main): Do not handle 'd' packet.
19241 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19242 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19245 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19247 * Makefile.in (EXEEXT): New.
19248 (clean): Use $(EXEEXT).
19250 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19252 * target.h (target_ops): Rename send_signal to request_interrupt,
19253 and remove enum target_signal parameter.
19254 * linux-low.c (linux_request_interrupt): Rename from
19255 linux_send_signal, and always send SIGINT.
19256 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19257 and always send SIGINT.
19258 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19260 (input_interrupt): Likewise.
19262 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19264 * server.c (get_features_xml): Check if target implemented
19266 * win32-i386-low.c (win32_arch_string): New.
19267 (win32_target_ops): Add win32_arch_string as arch_string member.
19269 2007-02-22 Markus Deuling <deuling@de.ibm.com>
19271 * spu-low.c (spu_arch_string): New.
19272 (spu_target_ops): Add spu_arch_string.
19274 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19276 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19277 * configure.ac: Do not check for terminal.h.
19278 * configure, config.in: Regenerated.
19280 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19282 * Makefile.in (OBS): Add $(XML_BUILTIN).
19283 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19285 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19286 (arm-with-iwmmxt.c): New.
19287 * config.in, configure: Regenerate.
19288 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19289 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19290 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19291 (arm*-*-linux*): Add iWMMXt and regset support.
19292 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19293 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19294 (arm_store_wmmxregset, target_regsets): New.
19295 * server.c (get_features_xml): Take annex argument. Check builtin
19297 (handle_query): Handle multiple annexes.
19299 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19301 * remote-utils.c [USE_WIN32API] (read, write): Define.
19302 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19305 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19307 * linux-i386-low.c (the_low_target): Set arch_string.
19308 * linux-x86-64-low.c (the_low_target): Likewise.
19309 * linux-low.c (linux_arch_string): New.
19310 (linux_target_ops): Add it.
19311 * linux-low.h (struct linux_target_ops): Add arch_string.
19312 * server.c (write_qxfer_response): Use const void * for DATA.
19313 (get_features_xml): New.
19314 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19315 * target.h (struct target_ops): Add arch_string method.
19317 2007-01-03 Denis Pilat <denis.pilat@st.com>
19318 Daniel Jacobowitz <dan@codesourcery.com>
19320 * linux-low.c (linux_kill): Handle being called with no threads.
19321 * win32-i386-low.c (win32_kill): Likewise.
19322 (get_child_debug_event): Clear current_process_handle.
19324 2006-12-30 Denis PILAT <denis.pilat@st.com>
19325 Daniel Jacobowitz <dan@codesourcery.com>
19327 * remote-utils.c (remote_open): Check the type of specified
19328 serial port devices before opening them.
19329 * server.c (main): Kill the inferior if an error occurs during
19330 the first remote_open.
19332 2006-12-05 Markus Deuling <deuling@de.ibm.com>
19334 * README: Update supported targets.
19336 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19338 * Makefile.in (clean): Remove reg-mips64.c.
19339 (reg-mips64.c, reg-mips64.o): New rules.
19340 * configure.srv: Handle mips64. Include regset support for mips.
19341 * linux-mips-low.c (union mips_register): New.
19342 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19343 (mips_breakpoint, mips_breakpoint_at): Use int.
19344 (mips_collect_register, mips_supply_register)
19345 (mips_collect_register_32bit, mips_supply_register_32bit)
19346 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19347 (mips_store_fpregset, target_regsets): New.
19348 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19350 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19352 * configure.srv: Add target "spu*-*-*".
19353 * Makefile.in (clean): Remove reg-spu.c.
19354 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19355 * spu-low.c: New file.
19357 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19359 * configure.ac: Correct td_thr_tls_get_addr test.
19360 * configure: Regenerated.
19362 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19364 * linux-low.c (linux_wait_for_event): Reformat. Use the
19365 pass_signals array.
19366 * remote-utils.c (decode_address_to_semicolon): New.
19367 * server.c (pass_signals, handle_general_set): New.
19368 (handle_query): Mention QPassSignals for qSupported.
19369 (main): Call handle_general_set.
19370 * server.h (pass_signals, decode_address_to_semicolon): New.
19372 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19374 * server.c (handle_query): Correct error handling for read_auxv.
19376 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19378 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19379 and srv_linux_thread_db to yes.
19380 * linux-s390-low.c (s390_fill_gregset): New function.
19381 (target_regsets): Define data structure.
19383 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19385 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19386 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19387 * config.in, configure: Regenerated.
19388 * inferiors.c (gdb_id_to_thread): New function.
19389 (gdb_id_to_thread_id): Use it.
19390 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19391 * linux-low.h (struct process_info): Add th member.
19392 (thread_db_get_tls_address): New prototype.
19393 * remote-utils.c (decode_address): Make non-static.
19394 * server.c (handle_query): Handle qGetTLSAddr.
19395 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19396 * target.h (struct target_ops): Add get_tls_address.
19397 * thread-db.c (maybe_attach_thread): Save the thread handle.
19398 (thread_db_get_tls_address): New.
19400 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19402 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19403 (linux_resume_one_process): Take a siginfo_t *. Update all
19404 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19405 (struct pending_signals): Add a siginfo_t.
19406 (linux_wait_for_process): Always set last_status.
19407 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
19408 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
19409 * linux-low.h (struct process_info): Add last_status.
19411 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19413 * remote-utils.c (try_rle): New function.
19414 (putpkt_binary): Use it.
19416 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19418 * Makefile.in (clean): Clean reg-x86-64-linux.c.
19419 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
19420 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
19421 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
19422 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
19425 2006-08-08 Richard Sandiford <richard@codesourcery.com>
19427 * server.c (terminal_fd): New variable.
19428 (old_foreground_pgrp): Likewise.
19429 (restore_old_foreground_pgrp): New function.
19430 (start_inferior): Record the terminal file descriptor in terminal_fd
19431 and its original foreground group in old_foreground_pgrp. Register
19432 restore_old_foreground_pgrp with atexit().
19434 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19436 * server.c (handle_query): Correct qPart to qXfer.
19438 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19440 * configure.ac: Check for more headers which are missing on
19441 Windows. Automatically supply -lwsock32 and USE_WIN32API.
19442 * configure.srv: Add Cygwin and mingw32.
19443 * remote-utils.c: Don't include headers unconditionally which
19444 are missing on mingw32. Include <winsock.h> for mingw32.
19445 (remote_open): Adjust for mingw32 support. Flush
19446 standard error after writing to it.
19447 (remote_close, putpkt_binary, input_interrupt, block_async_io)
19448 (unblock_async_io, enable_async_io, disable_async_io)
19449 (readchar, getpkt): Update for Winsock support.
19450 (prepare_resume_reply): Expect a protocol signal number.
19451 * server.c: Disable <sys/wait.h> on mingw32.
19452 (start_inferior): Adjust for mingw32 support. Flush
19453 standard error after writing to it.
19454 (attach_inferior): Likewise. Use protocol signal
19456 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19458 * win32-i386-low.c: New file.
19459 * Makefile.in (XM_CLIBS): Set.
19460 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
19461 (win32-i386-low.o): New dependency rule.
19462 * linux-low.c (linux_wait): Use target signal numbers.
19463 * target.h (struct target_ops): Doc fix.
19464 * server.h (target_signal_to_name): New prototype.
19465 * gdbreplay.c: Don't include headers unconditionally which
19466 are missing on mingw32. Include <winsock.h> for mingw32.
19467 (remote_close, remote_open): Adjust for Winsock support.
19468 * configure, config.in: Regenerated.
19470 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19472 * server.c (decode_xfer_read, write_qxfer_response): New.
19473 (handle_query): Take a packet length argument. Handle
19474 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
19475 the qSupported response.
19476 (main): Update call to handle_query.
19478 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
19480 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
19481 (putpkt_binary): Renamed from putpkt and adjusted for binary
19483 (putpkt): New wrapper for putpkt_binary.
19484 (readchar): Don't mask off the high bit.
19485 (decode_X_packet): New function.
19486 * server.c (main): Call putpkt_binary if a handler sets the packet
19487 length. Save the length of the incoming packet. Handle 'X'.
19488 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
19490 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
19492 * server.c (handle_query): Handle qSupported.
19494 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19496 * remote-utils.c (all_symbols_looked_up): New variable.
19497 (look_up_one_symbol): Check it.
19498 * server.h (look_up_one_symbol): New declaration.
19499 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
19501 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19503 * Makefile.in (linux-arm-low.o): Update dependencies.
19504 * linux-arm-low.c: Include "gdb_proc_service.h".
19505 (PTRACE_GET_THREAD_AREA): Define.
19506 (ps_get_thread_area): New function.
19508 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
19510 * configure.srv (m68k*-*-uclinux*): New target.
19511 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
19512 (linux_resume_one_process): Remove extraneous cast.
19513 (linux_read_offsets): New.
19514 (linux_target_op): Add linux_read_offsets on mmuless systems.
19515 * server.c (handle_query): Add qOffsets logic.
19516 * target.h (struct target_ops): Add read_offsets.
19518 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19520 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
19521 (PTRACE_GET_THREAD_AREA): Define.
19522 (ps_get_thread_area): New function.
19523 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
19524 (linux-x86-64-low.o): Update.
19526 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19528 * configure.ac: Remove checks for prfpregset_t.
19529 * gdb_proc_service.h: New file.
19530 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
19531 new "gdb_proc_service.h".
19532 * proc-service.c: Likewise.
19533 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
19534 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
19535 * Makefile.in (gdb_proc_service_h): Updated.
19536 * configure, config.in: Regenerated.
19538 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19540 * remote-utils.c (prepare_resume_reply): Move declaration
19541 of gdb_id_from_wait to the top of the block.
19543 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
19545 * linux-low.c (regsets_store_inferior_registers): Read the regset
19546 from the target before filling it.
19548 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19550 * server.c (attach_inferior): Return SIGTRAP for a successful
19553 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19555 * Makefile.in (OBS): Add version.o.
19556 (STAGESTUFF): Delete.
19557 (version.o): Add dependencies.
19558 (version.c): Replace rule.
19559 (clean): Remove version.c.
19560 * server.c (gdbserver_version): New.
19561 (gdbserver_usage): Use printf.
19562 (main): Handle --version and --help.
19563 * server.h (version, host_name): Add declarations.
19565 2005-12-23 Eli Zaretskii <eliz@gnu.org>
19577 * linux-x86-64-low.c:
19579 * linux-s390-low.c:
19580 * linux-ppc64-low.c:
19582 * linux-mips-low.c:
19583 * linux-m68k-low.c:
19584 * linux-m32r-low.c:
19587 * linux-ia64-low.c:
19588 * linux-i386-low.c:
19589 * linux-crisv32-low.c:
19601 * gdbserver.1: Add (C) after Copyright. Update the FSF
19604 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19606 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
19607 (arm_breakpoint_at): Recognize both breakpoints.
19608 (the_low_target): Use the correct breakpoint instruction.
19610 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19612 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19613 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19614 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19615 (the_low_target): Update.
19617 2005-10-25 Andreas Schwab <schwab@suse.de>
19619 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19621 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19622 (ia64_num_regs): Reduce to 462.
19624 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19626 * acinclude.m4: Correct quoting.
19627 * aclocal.m4: Regenerated.
19629 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19630 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19631 (thread_db_init): Call thread_db_err_str.
19632 * configure.ac: Check for TD_VERSION.
19633 * config.in, configure: Regenerated.
19635 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19637 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19639 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19641 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19642 is not available. Define HAVE_PTRACE_GETREGS if it is.
19643 * config.in, configure: Regenerated.
19644 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19645 * linux-i386-low.c, linux-m68k-low.c: Update to use
19646 HAVE_PTRACE_GETREGS.
19647 * linux-low.c (regsets_fetch_inferior_registers)
19648 (regsets_store_inferior_registers): Only return 0 if we processed
19650 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19651 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19653 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19655 * inferiors.c (struct thread_info): Add gdb_id.
19656 (add_thread): Add gdb_id argument.
19657 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19658 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19659 calls to add_thread.
19660 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19661 * server.c (handle_query): Use thread_to_gdb_id.
19662 (handle_v_cont, main): Use gdb_id_to_thread_id.
19663 * server.h (add_thread): Update prototype.
19664 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19667 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19669 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19670 left-padded registers.
19671 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19672 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19674 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19676 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19677 * configure: Regenerate.
19678 * config.in: Regenerate.
19679 * server.h (NEED_DECLARATION_STRERROR):
19680 Replace with !HAVE_DECL_STRERROR.
19682 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19684 * linux-low.c (linux_wait, linux_send_signal): Don't test
19685 an unsigned long variable for > 0 if it could be MAX_ULONG.
19686 * server.c (myresume): Likewise.
19687 * target.c (set_desired_inferior): Likewise.
19689 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19691 * configure.ac: Simplify and improve check for socklen_t.
19692 * configure, config.in: Regenerate.
19694 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19696 * acconfig.h: Remove.
19697 * configure.ac: Add a test for socklen_t. Use three-argument
19698 AC_DEFINE throughout.
19699 * config.in: Regenerated using autoheader 2.59.
19700 * configure: Regenerated.
19702 * gdbreplay.c (socklen_t): Provide a default.
19703 (remote_open): Use socklen_t.
19704 * remote-utils.c (socklen_t): Provide a default.
19705 (remote_open): Use socklen_t.
19706 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19709 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19711 * linux-low.c (linux_read_memory, linux_write_memory)
19712 (linux_read_auxv): Likewise.
19713 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19714 (check_mem_write): Likewise.
19715 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19717 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19718 (registers_from_string, register_data): Likewise.
19719 * server.c (handle_query, main): Likewise.
19720 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19721 (decode_M_packet): Likewise.
19722 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19723 * target.h (struct target_ops): Update read_memory, write_memory,
19725 (read_inferior_memory, write_inferior_memory): Update.
19726 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19727 to unsigned char *.
19728 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19729 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19730 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19731 linux-s390-low.c, linux-sh-low.c: Update for changes in
19732 read_inferior_memory and the_low_target->breakpoint.
19734 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19736 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19737 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19738 * configure.srv: Add powerpc64-*-linux*.
19739 * linux-ppc64-low.c: New file.
19741 2005-05-23 Orjan Friberg <orjanf@axis.com>
19743 * linux-cris-low.c: New file with support for CRIS.
19744 * linux-crisv32-low.c: Ditto for CRISv32.
19745 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19746 (clean): Add reg-cris.c and reg-crisv32.c.
19747 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19748 reg-crisv32.o, and reg-crisv32.c to make rules.
19749 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19750 recognized targets.
19752 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19754 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19755 of sizeof (PTRACE_XFER_TYPE).
19756 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19758 2005-05-12 Orjan Friberg <orjanf@axis.com>
19760 * target.h (struct target_ops): Add insert_watchpoint,
19761 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19762 pointers for hardware watchpoint support.
19763 * linux-low.h (struct linux_target_ops): Ditto.
19764 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19765 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19766 to linux_target_ops.
19767 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19769 * server.c (main): Recognize 'Z' and 'z' packets.
19771 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19773 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19774 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19775 (the_low_target): Add new members.
19777 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19779 * proc-service.c (ps_lgetregs): Search all_processes instead of
19782 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19784 * server.c (start_inferior): Change return type to int.
19785 (attach_inferior): Change sigptr to int *.
19786 (handle_v_cont, handle_v_requests): Change signal to int *.
19787 (main): Change signal to int.
19789 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19791 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19792 * configure.srv: Add m32r*-*-linux*.
19793 * linux-m32r-low.c: New file.
19795 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19797 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19799 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19801 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19802 Take unsigned long arguments for PIDs.
19803 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19804 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19805 (wait_for_sigstop, linux_resume_one_process)
19806 (regsets_fetch_inferior_registers, linux_send_signal)
19807 (linux_read_auxv): Likewise. Update the types of variables holding
19808 PIDs. Update format string specifiers.
19809 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19810 * remote-utils.c (prepare_resume_reply): Likewise.
19811 * server.c (cont_thread, general_thread, step_thread)
19812 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19814 (handle_query): Update format specifiers.
19815 (handle_v_cont, main): Use strtoul for thread IDs.
19816 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19817 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19818 (general_thread, step_thread, thread_from_wait)
19819 (old_thread_from_wait): Update.
19820 * target.h (struct thread_resume): Use unsigned long for THREAD.
19821 (struct target_ops): Use unsigned long for arguments to attach and
19824 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19826 * acinclude.m4: Include bfd/bfd.m4 directly.
19827 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19828 <agriffis@toolchain.org>.
19829 * aclocal.m4, configure: Regenerated.
19831 2005-01-07 Andrew Cagney <cagney@gnu.org>
19833 * configure.ac: Rename configure.in, require autoconf 2.59.
19834 * configure: Re-generate.
19836 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19838 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19839 LIBS when finished.
19840 * aclocal.m4: Regenerated.
19841 * configure: Regenerated.
19843 2004-11-21 Andreas Schwab <schwab@suse.de>
19845 * linux-m68k-low.c (m68k_num_gregs): Define.
19846 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19847 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19848 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19849 (m68k_breakpoint_at): New. Add to the_low_target.
19851 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19852 srv_linux_thread_db to yes.
19854 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19856 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19857 (ARCH_SET_FS): Likewise.
19858 (ARCH_GET_FS): Likewise.
19859 (ARCH_GET_GS): Likewise.
19861 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19863 * linux-i386-low.c (ps_get_thread_area): New.
19864 * linux-x86-64-low.c (ps_get_thread_area): New.
19865 * linux-low.c: Include <sys/syscall.h>.
19866 (linux_kill_one_process): Don't kill the first thread here.
19867 (linux_kill): Kill the first thread here.
19868 (kill_lwp): New function.
19869 (send_sigstop, linux_send_signal): Use it.
19870 * proc-service.c: Clean up #ifdefs.
19871 (fpregset_info): Delete.
19872 (ps_lgetregs): Update and enable implementation.
19873 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19875 * remote-utils.c (struct sym_cache, symbol_cache): New.
19876 (input_interrupt): Print a clearer message.
19877 (async_io_enabled): New variable.
19878 (enable_async_io, disable_async_io): Use it. Update comments.
19879 (look_up_one_symbol): Use the symbol cache.
19880 * thread-db.c (thread_db_look_up_symbols): New function.
19881 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19883 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19885 * configure.in: Test for -rdynamic.
19886 * configure: Regenerated.
19887 * Makefile (INTERNAL_LDFLAGS): New.
19888 (gdbserver, gdbreplay): Use it.
19890 2004-09-02 Andrew Cagney <cagney@gnu.org>
19892 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19894 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19896 * linux-low.c (linux_wait): Clear all_processes list also.
19898 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19900 * linux-low.c: Include <errno.h>. Remove extern declaration of
19903 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19905 * gdbreplay.c, server.h, utils.c: Update copyright years.
19907 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19909 * server.c (main): Print child status or termination signal from
19910 variable 'signal', not 'sig'.
19912 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19914 * linux-low.c (linux_read_memory): Change return type to
19915 int. Check for and return error from ptrace().
19916 * target.c (read_inferior_memory): Change return type to int. Pass
19917 back return status from the_target->read_memory().
19918 * target.h (struct target_ops): Adapt *read_memory() prototype.
19920 (read_inferior_memory): Adapt prototype.
19921 * server.c (main): Return an error packet if
19922 read_inferior_memory() returns an error.
19924 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19926 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19927 Unify with other clean targets.
19929 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19931 * server.c (handle_v_cont): Call set_desired_inferior.
19933 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19935 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19937 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19939 * linux-low.c (linux_wait): Unblock async I/O.
19940 (linux_resume): Block and enable async I/O.
19941 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19942 * server.h (block_async_io, unblock_async_io): Add prototypes.
19944 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19946 * remote-utils.c (remote_open): Print a status notice after
19947 opening a TCP port.
19948 * server.c (attach_inferior): Print a status notice after
19951 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19953 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19955 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19957 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19959 * server.c, target.h: Update copyright years.
19961 2004-02-25 Roland McGrath <roland@redhat.com>
19963 * target.h (struct target_ops): New member `read_auxv'.
19964 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19965 * linux-low.c (linux_read_auxv): New function.
19966 (linux_target_ops): Initialize `read_auxv' member to that.
19968 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19970 Committed by Jim Blandy <jimb@redhat.com>.
19972 * linux-s390-low.c (s390_num_regs): Update.
19973 (s390_regmap): Remove control registers. Use __s390x__ predefine
19974 instead of GPR_SIZE to distiguish s390 and s390x targets.
19976 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19978 * linux-low.c: Update copyright year.
19979 (check_removed_breakpoint): Clear pending_is_breakpoint.
19980 (linux_set_resume_request, linux_queue_one_thread)
19981 (resume_status_pending_p): New functions.
19982 (linux_continue_one_thread): Use process->resume.
19983 (linux_resume): Only resume threads if there are no pending events.
19984 * linux-low.h (struct process_info): Add resume request
19987 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19989 * regcache.c (new_register_cache): Clear the allocated register
19990 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19992 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19994 * linux-low.c (linux_resume): Take a struct thread_resume *
19996 (linux_wait): Update call.
19997 (resume_ptr): New static variable.
19998 (linux_continue_one_thread): Renamed from
19999 linux_continue_one_process. Use resume_ptr.
20000 (linux_resume): Use linux_continue_one_thread.
20001 * server.c (handle_v_cont, handle_v_requests): New functions.
20002 (myresume): New function.
20003 (main): Handle 'v' case.
20004 * target.h (struct thread_resume): New type.
20005 (struct target_ops): Change argument of "resume" to struct
20007 (myresume): Delete macro.
20009 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
20011 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
20012 (uninstall): Support DESTDIR.
20014 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
20016 * configure.srv: Add xscale*linux copy of arm*linux entry.
20018 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
20020 * linux-arm-low.c (arm_reinsert_addr): New function.
20021 (the_low_target): Add arm_reinsert_addr.
20023 2003-07-08 Mark Kettenis <kettenis@gnu.org>
20025 * mem-break.c: Remove whitespace at end of file.
20027 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20029 * configure.in: Check whether we need to prototype strerror.
20030 * server.h: Optionally prototype strerror.
20031 * gdbreplay.c (perror_with_name): Use strerror.
20032 * linux-low.c (linux_attach_lwp): Use strerror.
20033 * utils.c (perror_with_name): Use strerror.
20034 * config.in, configure: Regenerated.
20036 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20038 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
20039 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
20041 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
20043 * Makefile.in (SFILES): Update.
20044 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
20045 low-sun3.c: Remove files.
20047 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
20049 * linux-low.c: Move comment to linux_thread_alive where it belonged.
20050 (linux_detach_one_process, linux_detach): New functions.
20051 (linux_target_ops): Add linux_detach.
20052 * server.c (main): Handle 'D' packet.
20053 * target.h (struct target_ops): Add "detach" member.
20054 (detach_inferior): Define.
20056 2003-06-13 Mark Kettenis <kettenis@gnu.org>
20058 From Kelley Cook <kelleycook@wideopenwest.com>:
20059 * configure.srv: Accept i[34567]86 variants.
20061 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
20063 * linux-low.c (linux_wait_for_event): Correct comment typos.
20064 (linux_resume_one_process): Call check_removed_breakpoint.
20065 (linux_send_signal): New function.
20066 (linux_target_ops): Add linux_send_signal.
20067 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20069 * target.h (struct target_ops): Add send_signal.
20071 2003-05-29 Jim Blandy <jimb@redhat.com>
20073 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20074 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20075 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20076 away part of the register's value.
20078 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
20080 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20081 (linux_wait_for_event, linux_init_signals): Likewise.
20083 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
20085 * configure.in: Check for stdlib.h.
20086 * configure: Regenerated.
20087 * config.in: Regenerated.
20089 2003-01-04 Andreas Schwab <schwab@suse.de>
20091 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20093 2003-01-02 Andrew Cagney <ac131313@redhat.com>
20095 * Makefile.in: Remove obsolete code.
20097 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
20099 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20100 defined(PT_FPR0_HI).
20102 2002-11-17 Stuart Hughes <seh@zee2.com>
20104 * linux-arm-low.c (arm_num_regs): Increase.
20105 (arm_regmap): Include status register.
20107 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
20109 * linux-low.c (register_addr): Remove incorrect -1 check.
20111 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
20113 * linux-low.c (linux_create_inferior): Call setpgid. Return
20115 (unstopped_p, linux_signal_pid): Remove.
20116 (linux_target_ops): Remove linux_signal_pid.
20117 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20118 global instead of target method.
20119 * target.h (struct target_ops): Remove signal_pid. Update comment
20120 for create_inferior.
20121 * server.c (signal_pid): New variable.
20122 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
20123 gdbserver. Set the child to be the foreground process group.
20124 (attach_inferior): Set signal_pid.
20126 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
20128 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20130 2002-08-20 Jim Blandy <jimb@redhat.com>
20132 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20135 2002-08-01 Andrew Cagney <cagney@redhat.com>
20137 * Makefile.in: Make chill references obsolete.
20139 2002-07-24 Kevin Buettner <kevinb@redhat.com>
20141 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20142 * configure: Regenerate.
20143 * config.in: Regenerate.
20145 2002-07-09 David O'Brien <obrien@FreeBSD.org>
20147 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20148 (perror_with_name, remote_close, remote_open, expect, play): Static.
20150 2002-07-04 Michal Ludvig <mludvig@suse.cz>
20152 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
20153 byte offsets instead of an array of indexes.
20154 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20156 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
20158 * regcache.c: Add comment.
20160 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
20162 * thread-db.c: New file.
20163 * proc-service.c: New file.
20164 * acinclude.m4: New file.
20165 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20166 proc-service.o, and thread-db.o.
20167 (linux-low.o): Add USE_THREAD_DB.
20168 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20169 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20170 * aclocal.m4: Regenerated.
20171 * config.in: Regenerated.
20172 * configure: Regenerated.
20173 * configure.in: Check for proc_service.h, sys/procfs.h,
20174 thread_db.h, and linux/elf.h headrs.
20175 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20176 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20177 Check for -lthread_db and thread support.
20178 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20179 PowerPC, and SuperH.
20180 * i387-fp.c: Constify arguments.
20181 * i387-fp.h: Likewise.
20182 * inferiors.c: (struct thread_info): Renamed from
20183 `struct inferior_info'. Remove PID member. Use generic inferior
20184 list header. All uses updated.
20185 (inferiors, signal_pid): Removed.
20186 (all_threads): New variable.
20187 (get_thread): Define.
20188 (add_inferior_to_list): New function.
20189 (for_each_inferior): New function.
20190 (change_inferior_id): New function.
20191 (add_inferior): Removed.
20192 (remove_inferior): New function.
20193 (add_thread): New function.
20194 (free_one_thread): New function.
20195 (remove_thread): New function.
20196 (clear_inferiors): Use for_each_inferior and free_one_thread.
20197 (find_inferior): New function.
20198 (find_inferior_id): New function.
20199 (inferior_target_data): Update argument type.
20200 (set_inferior_target_data): Likewise.
20201 (inferior_regcache_data): Likewise.
20202 (set_inferior_regcache_data): Likewise.
20203 * linux-low.c (linux_bp_reinsert): Remove.
20204 (all_processes, stopping_threads, using_thrads)
20205 (struct pending_signals, debug_threads, pid_of): New.
20206 (inferior_pid): Replace with macro.
20207 (struct inferior_linux_data): Remove.
20208 (get_stop_pc, add_process): New functions.
20209 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20210 Use add_process and add_thread.
20211 (linux_attach_lwp): New function, based on old linux_attach. Use
20212 add_process and add_thread. Set stop_expected for new threads.
20213 (linux_attach): New function.
20214 (linux_kill_one_process): New function.
20215 (linux_kill): Kill all LWPs.
20216 (linux_thread_alive): Use find_inferior_id.
20217 (check_removed_breakpoints, status_pending_p): New functions.
20218 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20219 Update. Use WNOHANG. Wait for cloned processes also. Update process
20220 struct for the found process.
20221 (linux_wait_for_event): New function.
20222 (linux_wait): Use it. Support LWPs.
20223 (send_sigstop, wait_for_sigstop, stop_all_processes)
20224 (linux_resume_one_process, linux_continue_one_process): New functions.
20225 (linux_resume): Support LWPs.
20226 (REGISTER_RAW_SIZE): Remove.
20227 (fetch_register): Use register_size instead. Call supply_register.
20228 (usr_store_inferior_registers): Likewise. Call collect_register.
20229 Fix recursive case.
20230 (regsets_fetch_inferior_registers): Improve error message.
20231 (regsets_store_inferior_registers): Add debugging.
20232 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20233 (unstopped_p, linux_signal_pid): New functions.
20234 (linux_target_ops): Add linux_signal_pid.
20235 (linux_init_signals): New function.
20236 (initialize_low): Call it. Initialize using_threads.
20237 * regcache.c (inferior_regcache_data): Add valid
20239 (get_regcache): Fetch registers lazily. Add fetch argument
20240 and update all callers.
20241 (regcache_invalidate_one, regcache_invalidate): New
20243 (new_register_cache): Renamed from create_register_cache.
20244 Return the new regcache.
20245 (free_register_cache): Change argument to a void *.
20246 (registers_to_string, registers_from_string): Call get_regcache
20247 with fetch flag set.
20248 (register_data): Make static. Pass fetch flag to get_regcache.
20249 (supply_register): Call get_regcache with fetch flag clear.
20250 (collect_register): Call get_regcache with fetch flag set.
20251 (collect_register_as_string): New function.
20252 * regcache.h: Update.
20253 * remote-utils.c (putpkt): Flush after debug output and use
20255 Handle input interrupts while waiting for an ACK.
20256 (input_interrupt): Use signal_pid method.
20257 (getpkt): Flush after debug output and use stderr.
20258 (outreg): Use collect_register_as_string.
20259 (new_thread_notify, dead_thread_notify): New functions.
20260 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20261 and general_thread.
20262 (look_up_one_symbol): Flush after debug output.
20263 * server.c (step_thread, server_waiting): New variables.
20264 (start_inferior): Don't use signal_pid. Update call to mywait.
20265 (attach_inferior): Update call to mywait.
20266 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20267 (main): Don't fetch/store registers explicitly. Use
20268 set_desired_inferior. Support proposed ``Hs'' packet. Update
20270 * server.h: Update.
20271 (struct inferior_list, struct_inferior_list_entry): New.
20272 * target.c (set_desired_inferior): New.
20273 (write_inferior_memory): Constify.
20274 (mywait): New function.
20275 * target.h: Update.
20276 (struct target_ops): New signal_pid method.
20277 (mywait): Removed macro, added prototype.
20279 * linux-low.h (regset_func): Removed.
20280 (regset_fill_func, regset_store_func): New.
20281 (enum regset_type): New.
20282 (struct regset_info): Add type field. Use new operation types.
20283 (struct linux_target_ops): stop_pc renamed to get_pc.
20284 Add decr_pc_after_break and breakpoint_at.
20285 (get_process, get_thread_proess, get_process_thread)
20286 (strut process_info, all_processes, linux_attach_lwp)
20287 (thread_db_init): New.
20289 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20290 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20291 (the_low_target): Add new members.
20292 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20293 (i386_store_fpxregset): Constify.
20294 (target_regsets): Add new kind identifier.
20295 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20296 (i386_set_pc): Add debugging.
20297 (i386_breakpoint_at): New function.
20298 (the_low_target): Add new members.
20299 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20300 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20301 (mips_breakpoint_at): New.
20302 (the_low_target): Add new members.
20303 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20304 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20305 (the_low_target): Add new members.
20306 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20307 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20308 (the_low_target): Add new members.
20309 * linux-x86-64-low.c (target_regsets): Add new kind
20312 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
20314 From Martin Pool <mbp@samba.org>:
20315 * server.c (gdbserver_usage): New function.
20318 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
20320 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20321 stop_at -> stop_pc.
20323 2002-05-04 Andrew Cagney <ac131313@redhat.com>
20325 * Makefile.in: Remove obsolete code.
20327 2002-04-24 Michal Ludvig <mludvig@suse.cz>
20329 * linux-low.c (regsets_fetch_inferior_registers),
20330 (regsets_store_inferior_registers): Removed cast to int from
20332 * regcache.h: Added declaration of struct inferior_info.
20334 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20336 * inferiors.c (struct inferior_info): Add regcache_data.
20337 (add_inferior): Call create_register_cache.
20338 (clear_inferiors): Call free_register_cache.
20339 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20340 * regcache.c (struct inferior_regcache_data): New.
20341 (registers): Remove.
20342 (get_regcache): New function.
20343 (create_register_cache, free_register_cache): New functions.
20344 (set_register_cache): Don't initialize the register cache here.
20345 (registers_to_string, registers_from_string, register_data): Call
20347 * regcache.h: Add prototypes.
20348 * server.h: Likewise.
20350 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20352 * mem-break.c: New file.
20353 * mem-break.h: New file.
20354 * Makefile.in: Add mem-break.o rule; update server.h
20356 * inferiors.c (struct inferior_info): Add target_data
20358 (clear_inferiors): Free target_data member if set.
20359 (inferior_target_data, set_inferior_target_data): New functions.
20360 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20361 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20362 * linux-low.c (linux_bp_reinsert): New variable.
20363 (struct inferior_linux_data): New.
20364 (linux_create_inferior): Use set_inferior_target_data.
20365 (linux_attach): Likewise. Call add_inferior.
20366 (linux_wait_for_one_inferior): New function.
20367 (linux_wait): Call it.
20368 (linux_write_memory): Add const.
20369 (initialize_low): Call set_breakpoint_data.
20370 * linux-low.h (struct linux_target_ops): Add breakpoint
20372 * server.c (attach_inferior): Remove extra add_inferior
20374 * server.h: Include mem-break.h. Update inferior.c
20376 * target.c (read_inferior_memory)
20377 (write_inferior_memory): New functions.
20378 * target.h (read_inferior_memory)
20379 (write_inferior_memory): Change macros to prototypes.
20380 (struct target_ops): Update comments. Add const to write_memory
20383 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
20385 * linux-low.c (usr_store_inferior_registers): Support
20386 registers which are allowed to fail to store.
20387 * linux-low.h (linux_target_ops): Likewise.
20388 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20389 (ppc_cannot_store_register): FPSCR may not be storable.
20391 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20393 * server.h: Include <string.h> if HAVE_STRING_H.
20394 * ChangeLog: Correct paths in last ChangeLog entry.
20396 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20398 * linux-low.h: Remove obsolete prototypes.
20399 (struct linux_target_ops): New.
20400 (extern the_low_target): New.
20401 * linux-low.c (num_regs, regmap): Remove declarations.
20402 (register_addr): Use the_low_target explicitly.
20403 (fetch_register): Likewise.
20404 (usr_fetch_inferior_registers): Likewise.
20405 (usr_store_inferior_registers): Likewise.
20406 * linux-arm-low.c (num_regs): Remove.
20407 (arm_num_regs): Define.
20408 (arm_regmap): Renamed from regmap, made static.
20409 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
20411 (arm_cannot_store_register): Renamed from cannot_store_register,
20413 (the_low_target): New.
20414 * linux-i386-low.c (num_regs): Remove.
20415 (i386_num_regs): Define.
20416 (i386_regmap): Renamed from regmap, made static.
20417 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
20419 (i386_cannot_store_register): Renamed from cannot_store_register,
20421 (the_low_target): New.
20422 * linux-ia64-low.c (num_regs): Remove.
20423 (ia64_num_regs): Define.
20424 (ia64_regmap): Renamed from regmap, made static.
20425 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
20427 (ia64_cannot_store_register): Renamed from cannot_store_register,
20429 (the_low_target): New.
20430 * linux-m68k-low.c (num_regs): Remove.
20431 (m68k_num_regs): Define.
20432 (m68k_regmap): Renamed from regmap, made static.
20433 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
20435 (m68k_cannot_store_register): Renamed from cannot_store_register,
20437 (the_low_target): New.
20438 * linux-mips-low.c (num_regs): Remove.
20439 (mips_num_regs): Define.
20440 (mips_regmap): Renamed from regmap, made static.
20441 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
20443 (mips_cannot_store_register): Renamed from cannot_store_register,
20445 (the_low_target): New.
20446 * linux-ppc-low.c (num_regs): Remove.
20447 (ppc_num_regs): Define.
20448 (ppc_regmap): Renamed from regmap, made static.
20449 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
20451 (ppc_cannot_store_register): Renamed from cannot_store_register,
20453 (the_low_target): New.
20454 * linux-s390-low.c (num_regs): Remove.
20455 (s390_num_regs): Define.
20456 (s390_regmap): Renamed from regmap, made static.
20457 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
20459 (s390_cannot_store_register): Renamed from cannot_store_register,
20461 (the_low_target): New.
20462 * linux-sh-low.c (num_regs): Remove.
20463 (sh_num_regs): Define.
20464 (sh_regmap): Renamed from regmap, made static.
20465 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
20467 (sh_cannot_store_register): Renamed from cannot_store_register,
20469 (the_low_target): New.
20470 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
20471 (the_low_target): New.
20473 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20475 * Makefile.in: Add stamp-h target.
20476 * configure.in: Create stamp-h.
20477 * configure: Regenerated.
20479 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20481 * inferiors.c: New file.
20482 * target.c: New file.
20483 * target.h: New file.
20484 * Makefile.in: Add target.o and inferiors.o. Update
20486 * linux-low.c (inferior_pid): New static variable,
20487 moved from server.c.
20488 (linux_create_inferior): Renamed from create_inferior.
20489 Call add_inferior. Return 0 on success instead of a PID.
20490 (linux_attach): Renamed from myattach.
20491 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
20492 (linux_thread_alive): Renamed from mythread_alive.
20493 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
20495 (linux_resume): Renamed from myresume. Add missing ``return 0''.
20496 (regsets_store_inferior_registers): Correct error message.
20497 Add missing ``return 0''.
20498 (linux_fetch_registers): Renamed from fetch_inferior_registers.
20499 (linux_store_registers): Renamed from store_inferior_registers.
20500 (linux_read_memory): Renamed from read_inferior_memory.
20501 (linux_write_memory): Renamed from write_inferior_memory.
20502 (linux_target_ops): New structure.
20503 (initialize_low): Call set_target_ops ().
20504 * remote-utils.c (unhexify): New function.
20505 (hexify): New function.
20506 (input_interrupt): Send signals to ``signal_pid''.
20507 * server.c (inferior_pid): Remove.
20508 (start_inferior): Update create_inferior call.
20509 (attach_inferior): Call add_inferior.
20510 (handle_query): New function.
20511 (main): Call handle_query for `q' packets.
20512 * server.h: Include "target.h". Remove obsolete prototypes.
20513 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
20515 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20517 * Makefile.in: Add WARN_CFLAGS. Update configury
20519 * configure.in: Check for <string.h>
20520 * configure: Regenerate.
20521 * config.in: Regenerate.
20522 * gdbreplay.c: Include needed system headers.
20523 (remote_open): Remove strchr prototype.
20524 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
20525 * regcache.c (supply_register): Change buf argument to const void *.
20526 (supply_register_by_name): Likewise.
20527 (collect_register): Change buf argument to void *.
20528 (collect_register_by_name): Likewise.
20529 * regcache.h: Add missing prototypes.
20530 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
20531 * server.c (handle_query): New function.
20532 (attached): New static variable, moved out of main.
20533 (main): Quiet longjmp clobber warnings.
20534 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
20535 * utils.c (error): Remove NORETURN.