f9a3df22d0256eb4e948e7b19f2cfecc31214185
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Remove the 'supports_software_single_step' linux target op and let
4 the concrete linux target define it by overriding the op in
5 process_stratum_target.
6 Turn the 'get_next_pcs' linux target op into a method of
7 linux_process_target.
8
9 * linux-low.h (struct linux_target_ops): Remove the ops.
10 (class linux_process_target) <supports_software_single_step>:
11 Remove.
12 <low_get_next_pcs>: Declare.
13 * linux-low.cc (can_software_single_step): Remove.
14 (linux_process_target::low_get_next_pcs): Define.
15 (linux_process_target::supports_software_single_step): Remove.
16
17 Update the callers below.
18
19 (linux_process_target::handle_extended_wait)
20 (linux_process_target::wait_1)
21 (linux_process_target::install_software_single_step_breakpoints)
22 (linux_process_target::single_step)
23 (linux_process_target::thread_needs_step_over)
24 (linux_process_target::proceed_one_lwp)
25 (linux_process_target::supports_range_stepping)
26
27 * linux-x86-low.cc (the_low_target): Remove the op field.
28 * linux-aarch64-low.cc (the_low_target): Ditto.
29 * linux-bfin-low.cc (the_low_target): Ditto.
30 * linux-cris-low.cc (the_low_target): Ditto.
31 * linux-crisv32-low.cc (the_low_target): Ditto.
32 * linux-m32r-low.cc (the_low_target): Ditto.
33 * linux-m68k-low.cc (the_low_target): Ditto.
34 * linux-mips-low.cc (the_low_target): Ditto.
35 * linux-nios2-low.cc (the_low_target): Ditto.
36 * linux-ppc-low.cc (the_low_target): Ditto.
37 * linux-riscv-low.cc (the_low_target): Ditto.
38 * linux-s390-low.cc (the_low_target): Ditto.
39 * linux-sh-low.cc (the_low_target): Ditto.
40 * linux-sparc-low.cc (the_low_target): Ditto.
41 * linux-tic6x-low.cc (the_low_target): Ditto.
42 * linux-tile-low.cc (the_low_target): Ditto.
43 * linux-xtensa-low.cc (the_low_target): Ditto.
44 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
45 <supports_software_single_step>: Declare.
46 (arm_target::supports_software_single_step): Define.
47 (arm_gdbserver_get_next_pcs): Turn into...
48 (arm_target::low_get_next_pcs): ...this.
49 (the_low_target): Remove the op field.
50
51 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
52
53 Remove the 'sw_breakpoint_from_kind' linux target op, and let
54 the concrete linux target define it by overriding the op
55 in process_stratum_target.
56
57 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
58 Remove.
59 * linux-low.h (struct linux_target_ops): Remove the op.
60 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
61 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
62 Declare.
63 (x86_sw_breakpoint_from_kind): Turn into...
64 (x86_target::sw_breakpoint_from_kind): ...this.
65 (the_low_target): Remove the op field.
66 * linux-aarch64-low.cc (class aarch64_target)
67 <sw_breakpoint_from_kind>: Declare.
68 (aarch64_sw_breakpoint_from_kind): Turn into...
69 (aarch64_target::sw_breakpoint_from_kind): ...this.
70 (the_low_target): Remove the op field.
71 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
72 Declare.
73 (arm_target::sw_breakpoint_from_kind): Define.
74 (the_low_target): Remove the op field.
75 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
76 Declare.
77 (bfin_sw_breakpoint_from_kind): Turn into...
78 (bfin_target::sw_breakpoint_from_kind): ...this.
79 (the_low_target): Remove the op field.
80 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
81 Declare.
82 (cris_sw_breakpoint_from_kind): Turn into...
83 (cris_target::sw_breakpoint_from_kind): ...this.
84 (the_low_target): Remove the op field.
85 * linux-crisv32-low.cc (class crisv32_target)
86 <sw_breakpoint_from_kind>: Declare.
87 (cris_sw_breakpoint_from_kind): Turn into...
88 (crisv32_target::sw_breakpoint_from_kind): ...this.
89 (the_low_target): Remove the op field.
90 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
91 Declare.
92 (ia64_target::sw_breakpoint_from_kind): Define.
93 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
94 Declare.
95 (m32r_sw_breakpoint_from_kind): Turn into...
96 (m32r_target::sw_breakpoint_from_kind): ...this.
97 (the_low_target): Remove the op field.
98 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
99 Declare.
100 (m68k_sw_breakpoint_from_kind): Turn into...
101 (m68k_target::sw_breakpoint_from_kind): ...this.
102 (the_low_target): Remove the op field.
103 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
104 Declare.
105 (mips_sw_breakpoint_from_kind): Turn into...
106 (mips_target::sw_breakpoint_from_kind): ...this.
107 (the_low_target): Remove the op field.
108 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
109 Declare.
110 (nios2_sw_breakpoint_from_kind): Turn into...
111 (nios2_target::sw_breakpoint_from_kind): ...this.
112 (the_low_target): Remove the op field.
113 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
114 Declare.
115 (ppc_sw_breakpoint_from_kind): Turn into...
116 (ppc_target::sw_breakpoint_from_kind): ...this.
117 (the_low_target): Remove the op field.
118 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
119 Declare.
120 (riscv_sw_breakpoint_from_kind): Turn into...
121 (riscv_target::sw_breakpoint_from_kind): ...this.
122 (the_low_target): Remove the op field.
123 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
124 Declare.
125 (s390_sw_breakpoint_from_kind): Turn into...
126 (s390_target::sw_breakpoint_from_kind): ...this.
127 (the_low_target): Remove the op field.
128 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
129 Declare.
130 (sh_sw_breakpoint_from_kind): Turn into...
131 (sh_target::sw_breakpoint_from_kind): ...this.
132 (the_low_target): Remove the op field.
133 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
134 Declare.
135 (sparc_sw_breakpoint_from_kind): Turn into...
136 (sparc_target::sw_breakpoint_from_kind): ...this.
137 (the_low_target): Remove the op field.
138 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
139 Declare.
140 (tic6x_sw_breakpoint_from_kind): Turn into...
141 (tic6x_target::sw_breakpoint_from_kind): ...this.
142 (the_low_target): Remove the op field.
143 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
144 Declare.
145 (tile_sw_breakpoint_from_kind): Turn into...
146 (tile_target::sw_breakpoint_from_kind): ...this.
147 (the_low_target): Remove the op field.
148 * linux-xtensa-low.cc (class xtensa_target)
149 <sw_breakpoint_from_kind>: Declare.
150 (xtensa_sw_breakpoint_from_kind): Turn into...
151 (xtensa_target::sw_breakpoint_from_kind): ...this.
152 (the_low_target): Remove the op field.
153
154 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
155
156 Remove the 'breakpoint_kind_from_pc' and
157 'breakpoint_kind_from_current_state' linux target ops, and let the
158 concrete linux target define them by overriding the ops of
159 process_stratum_target.
160
161 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
162 Remove.
163 (linux_process_target::breakpoint_kind_from_current_state): Remove.
164 * linux-low.h (struct linux_target_ops): Remove ops.
165 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
166 <breakpoint_kind_from_current_state>: Remove.
167 * linux-x86-low.cc (the_low_target): Remove the op fields.
168 * linux-bfin-low.cc (the_low_target): Ditto.
169 * linux-cris-low.cc (the_low_target): Ditto.
170 * linux-crisv32-low.cc (the_low_target): Ditto.
171 * linux-m32r-low.cc (the_low_target): Ditto.
172 * linux-m68k-low.cc (the_low_target): Ditto.
173 * linux-mips-low.cc (the_low_target): Ditto.
174 * linux-nios2-low.cc (the_low_target): Ditto.
175 * linux-ppc-low.cc (the_low_target): Ditto.
176 * linux-s390-low.cc (the_low_target): Ditto.
177 * linux-sh-low.cc (the_low_target): Ditto.
178 * linux-sparc-low.cc (the_low_target): Ditto.
179 * linux-tic6x-low.cc (the_low_target): Ditto.
180 * linux-tile-low.cc (the_low_target): Ditto.
181 * linux-xtensa-low.cc (the_low_target): Ditto.
182 * linux-aarch64-low.cc (class aarch64_target)
183 <breakpoint_kind_from_pc>
184 <breakpoint_kind_from_current_state>: Declare.
185 (aarch64_breakpoint_kind_from_pc): Turn into...
186 (aarch64_target::breakpoint_kind_from_pc): ...this.
187 (aarch64_breakpoint_kind_from_current_state): Turn into...
188 (aarch64_target::breakpoint_kind_from_current_state): ...this.
189 (the_low_target): Remove the op fields.
190 * linux-arm-low.cc (class arm_target):
191 <breakpoint_kind_from_pc>
192 <breakpoint_kind_from_current_state>: Declare.
193 (arm_target::breakpoint_kind_from_pc): Define.
194 (arm_target::breakpoint_kind_from_current_state): Define.
195 (the_low_target): Remove the op fields.
196 * linux-riscv-low.cc (class riscv_target):
197 <breakpoint_kind_from_pc>: Declare.
198 (riscv_breakpoint_kind_from_pc): Turn into...
199 (riscv_target::breakpoint_kind_from_pc): ...this.
200 (the_low_target): Remove the op fields.
201
202 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
203
204 Turn the 'get_pc' and 'set_pc' linux target ops into methods
205 of linux_process_target.
206
207 * linux-low.h (struct linux_target_ops): Remove the ops.
208 (class linux_process_target) <low_supports_breakpoints>
209 <low_get_pc>
210 <low_set_pc>: Declare.
211 * linux-low.cc (supports_breakpoints): Turn into...
212 (linux_process_target::low_supports_breakpoints): ...this.
213 (linux_process_target::low_get_pc): Define.
214 (linux_process_target::low_set_pc): Define.
215
216 Update the callers below.
217
218 (linux_process_target::get_pc)
219 (linux_process_target::save_stop_reason)
220 (linux_process_target::maybe_move_out_of_jump_pad)
221 (linux_process_target::wait_1)
222 (linux_process_target::resume_one_lwp_throw)
223 (linux_process_target::resume)
224 (linux_process_target::proceed_all_lwps)
225 (linux_process_target::read_pc)
226 (linux_process_target::write_pc)
227
228 * linux-x86-low.cc (class linux_process_target)
229 <low_supports_breakpoints>
230 <low_get_pc>
231 <low_set_pc>: Declare.
232 (x86_target::low_supports_breakpoints): Define.
233 (x86_get_pc): Turn into...
234 (x86_target::low_get_pc): ...this.
235 (x86_set_pc): Turn into...
236 (x86_target::low_set_pc): ...this.
237 (the_low_target): Remove the op fields.
238 * linux-arm-low.cc (class arm_target)
239 <low_supports_breakpoints>
240 <low_get_pc>
241 <low_set_pc>: Declare.
242 (arm_target::low_supports_breakpoints)
243 (arm_target::low_get_pc)
244 (arm_target::low_set_pc): Define.
245 (the_low_target): Remove the op fields.
246 * linux-bfin-low.cc (class bfin_target)
247 <low_supports_breakpoints>
248 <low_get_pc>
249 <low_set_pc>: Declare.
250 (bfin_target::low_supports_breakpoints)
251 (bfin_target::low_get_pc)
252 (bfin_target::low_set_pc): Define.
253 (the_low_target): Remove the op fields.
254 * linux-cris-low.cc (class cris_target)
255 <low_supports_breakpoints>
256 <low_get_pc>
257 <low_set_pc>: Declare.
258 (cris_target::low_supports_breakpoints)
259 (cris_target::low_get_pc)
260 (cris_target::low_set_pc): Define.
261 (the_low_target): Remove the op fields.
262 * linux-crisv32-low.cc (class crisv32_target)
263 <low_supports_breakpoints>
264 <low_get_pc>
265 <low_set_pc>: Declare.
266 (crisv32_target::low_supports_breakpoints)
267 (crisv32_target::low_get_pc)
268 (crisv32_target::low_set_pc): Define.
269 (the_low_target): Remove the op fields.
270 * linux-m32r-low.cc (class m32r_target)
271 <low_supports_breakpoints>
272 <low_get_pc>
273 <low_set_pc>: Declare.
274 (m32r_target::low_supports_breakpoints)
275 (m32r_target::low_get_pc)
276 (m32r_target::low_set_pc): Define.
277 (the_low_target): Remove the op fields.
278 * linux-m68k-low.cc (class m68k_target)
279 <low_supports_breakpoints>
280 <low_get_pc>
281 <low_set_pc>: Declare.
282 (m68k_target::low_supports_breakpoints)
283 (m68k_target::low_get_pc)
284 (m68k_target::low_set_pc): Define.
285 (the_low_target): Remove the op fields.
286 * linux-nios2-low.cc (class nios2_target)
287 <low_supports_breakpoints>
288 <low_get_pc>
289 <low_set_pc>: Declare.
290 (nios2_target::low_supports_breakpoints)
291 (nios2_target::low_get_pc)
292 (nios2_target::low_set_pc): Define.
293 (the_low_target): Remove the op fields.
294 * linux-sh-low.cc (class sh_target)
295 <low_supports_breakpoints>
296 <low_get_pc>
297 <low_set_pc>: Declare.
298 (sh_target::low_supports_breakpoints)
299 (sh_target::low_get_pc)
300 (sh_target::low_set_pc): Define.
301 (the_low_target): Remove the op fields.
302 * linux-xtensa-low.cc (class xtensa_target)
303 <low_supports_breakpoints>
304 <low_get_pc>
305 <low_set_pc>: Declare.
306 (xtensa_target::low_supports_breakpoints)
307 (xtensa_target::low_get_pc)
308 (xtensa_target::low_set_pc): Define.
309 (the_low_target): Remove the op fields.
310 * linux-sparc-low.cc (class sparc_target)
311 <low_supports_breakpoints>
312 <low_get_pc>: Declare.
313 (sparc_target::low_supports_breakpoints)
314 (sparc_target::low_get_pc): Define.
315 (the_low_target): Remove the op fields.
316 * linux-tile-low.cc (class tile_target)
317 <low_supports_breakpoints>
318 <low_get_pc>
319 <low_set_pc>: Declare.
320 (tile_target::low_supports_breakpoints)
321 (tile_target::low_get_pc)
322 (tile_target::low_set_pc): Define.
323 (the_low_target): Remove the op fields.
324 * linux-aarch64-low.cc (class aarch64_target)
325 <low_supports_breakpoints>
326 <low_get_pc>
327 <low_set_pc>: Declare.
328 (aarch64_target::low_supports_breakpoints): Define.
329 (aarch64_get_pc): Turn into...
330 (aarch64_target::low_get_pc): ...this.
331 (aarch64_set_pc): Turn into...
332 (aarch64_target::low_set_pc): ...this.
333 (the_low_target): Remove the op fields.
334 * linux-mips-low.cc (class mips_target)
335 <low_supports_breakpoints>
336 <low_get_pc>
337 <low_set_pc>: Declare.
338 (mips_target::low_supports_breakpoints): Define.
339 (mips_get_pc): Turn into...
340 (mips_target::low_get_pc): ...this.
341 (mips_set_pc): Turn into...
342 (mips_target::low_set_pc): ...this.
343 (the_low_target): Remove the op fields.
344 * linux-ppc-low.cc (class ppc_target)
345 <low_supports_breakpoints>
346 <low_get_pc>
347 <low_set_pc>: Declare.
348 (ppc_target::low_supports_breakpoints): Define.
349 (ppc_get_pc): Turn into...
350 (ppc_target::low_get_pc): ...this.
351 (ppc_set_pc): Turn into...
352 (ppc_target::low_set_pc): ...this.
353 (the_low_target): Remove the op fields.
354 * linux-riscv-low.cc (class riscv_target)
355 <low_supports_breakpoints>
356 <low_get_pc>
357 <low_set_pc>: Declare.
358 (riscv_target::low_supports_breakpoints): Define.
359 (riscv_get_pc): Turn into...
360 (riscv_target::low_get_pc): ...this.
361 (riscv_set_pc): Turn into...
362 (riscv_target::low_set_pc): ...this.
363 (the_low_target): Remove the op fields.
364 * linux-s390-low.cc (class s390_target)
365 <low_supports_breakpoints>
366 <low_get_pc>
367 <low_set_pc>: Declare.
368 (s390_target::low_supports_breakpoints): Define.
369 (s390_get_pc): Turn into...
370 (s390_target::low_get_pc): ...this.
371 (s390_set_pc): Turn into...
372 (s390_target::low_set_pc): ...this.
373 (the_low_target): Remove the op fields.
374 * linux-tic6x-low.cc (class tic6x_target)
375 <low_supports_breakpoints>
376 <low_get_pc>
377 <low_set_pc>: Declare.
378 (tic6x_target::low_supports_breakpoints): Define.
379 (tic6x_get_pc): Turn into...
380 (tic6x_target::low_get_pc): ...this.
381 (tic6x_set_pc): Turn into...
382 (tic6x_target::low_set_pc): ...this.
383 (the_low_target): Remove the op fields.
384
385 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
386
387 Turn some more static methods in linux-low into private methods
388 of linux_process_target.
389
390 * linux-low.cc (get_pc): Turn into...
391 (linux_process_target::get_pc): ...this.
392 (save_stop_reason): Turn into...
393 (linux_process_target::save_stop_reason): ...this.
394 (thread_still_has_status_pending_p): Turn into...
395 (linux_process_target::thread_still_has_status_pending): ...this.
396 (status_pending_p_callback): Turn into...
397 (linux_process_target::status_pending_p_callback): ...this.
398 (resume_stopped_resumed_lwps): Turn into...
399 (linux_process_target::resume_stopped_resumed_lwps): ...this.
400 (install_software_single_step_breakpoints): Turn into...
401 (linux_process_target::install_software_single_step_breakpoints):
402 ...this.
403 (single_step): Turn into...
404 (linux_process_target::single_step): ...this.
405 (linux_resume_one_lwp_throw): Turn into...
406 (linux_process_target::resume_one_lwp_throw): ...this.
407 (linux_resume_one_lwp): Turn into...
408 (linux_process_target::resume_one_lwp): ...this.
409 (resume_status_pending_p): Turn into...
410 (linux_process_target::resume_status_pending): ...this.
411 (need_step_over_p): Turn into...
412 (linux_process_target::thread_needs_step_over): ...this.
413 (linux_resume_one_thread): Turn into...
414 (linux_process_target::resume_one_thread): ...this.
415 (proceed_one_lwp): Turn into...
416 (linux_process_target::proceed_one_lwp): ...this.
417 (unsuspend_and_proceed_one_lwp): Turn into...
418 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
419
420 Update the calls/references to the above functions below.
421
422 (linux_process_target::handle_extended_wait)
423 (linux_process_target::filter_event)
424 (linux_process_target::wait_for_event_filtered)
425 (linux_process_target::wait_1)
426 (linux_process_target::move_out_of_jump_pad)
427 (linux_process_target::start_step_over)
428 (linux_process_target::resume)
429 (linux_process_target::proceed_all_lwps)
430 (regsets_store_inferior_registers)
431 (linux_process_target::store_register)
432
433 * linux-low.h (class linux_process_target)
434 <get_pc>
435 <save_stop_reason>
436 <thread_still_has_status_pending>
437 <status_pending_p_callback>
438 <resume_stopped_resumed_lwps>
439 <install_software_single_step_breakpoints>
440 <single_step>
441 <resume_one_lwp_throw>
442 <resume_one_lwp>
443 <resume_status_pending>
444 <thread_needs_step_over>
445 <resume_one_thread>
446 <proceed_one_lwp>
447 <unsuspend_and_proceed_one_lwp>: Declare.
448
449 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 Turn the 'fetch_register' linux target op into a method of
452 linux_process_target.
453
454 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
455 (class linux_process_target) <low_fetch_register>: Declare.
456 * linux-x86-low.cc (the_low_target)
457 * linux-aarch64-low.cc (the_low_target)
458 * linux-arm-low.cc (the_low_target)
459 * linux-bfin-low.cc (the_low_target)
460 * linux-cris-low.cc (the_low_target)
461 * linux-crisv32-low.cc (the_low_target)
462 * linux-m32r-low.cc (the_low_target)
463 * linux-m68k-low.cc (the_low_target)
464 * linux-nios2-low.cc (the_low_target)
465 * linux-ppc-low.cc (the_low_target)
466 * linux-s390-low.cc (the_low_target)
467 * linux-sh-low.cc (the_low_target)
468 * linux-sparc-low.cc (the_low_target)
469 * linux-tic6x-low.cc (the_low_target)
470 * linux-tile-low.cc (the_low_target)
471 * linux-xtensa-low.cc (the_low_target): Remove the op field.
472 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
473 Declare.
474 (ia64_fetch_register): Turn into...
475 (ia64_target::low_fetch_register): ...this.
476 (the_low_target): Remove the op field.
477 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
478 Declare.
479 (mips_fetch_register): Turn into...
480 (mips_target::low_fetch_register): ...this.
481 (the_low_target): Remove the op field.
482 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
483 Declare.
484 (riscv_fetch_register): Turn into...
485 (riscv_target::low_fetch_register): ...this.
486 (the_low_target): Remove the op field.
487
488 Update the callers below.
489
490 * linux-low.cc (linux_process_target::fetch_registers)
491 (linux_process_target::low_fetch_register)
492
493 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
494
495 Turn the 'cannot_fetch_register' and 'cannot_store_register'
496 linux target ops into methods of linux_process_target.
497
498 * linux-low.h (struct linux_target_ops): Remove the low target ops.
499 (class linux_process_target) <fetch_register>
500 <store_register>
501 <usr_fetch_inferior_registers>
502 <usr_store_inferior_registers>
503 <low_cannot_fetch_register>
504 <low_cannot_fetch_register> Declare.
505 * linux-low.cc (fetch_register): Turn into...
506 (linux_process_target::fetch_register): ...this.
507 (store_register): Turn into ...
508 (linux_process_target::store_register): ...this.
509 (usr_fetch_inferior_registers): Turn into...
510 (linux_process_target::usr_fetch_inferior_registers): ...this.
511 (usr_store_inferior_registers): Turn into...
512 (linux_process_target::usr_store_inferior_registers): ...this.
513 * linux-x86-low.cc (class x86_target)
514 <low_cannot_fetch_register>
515 <low_cannot_store_register>: Declare.
516 (x86_cannot_store_register): Turn into...
517 (x86_target::low_cannot_store_register): ...this.
518 (x86_cannot_fetch_register): Turn into...
519 (x86_target::low_cannot_fetch_register): ...this.
520 (the_low_target): Remove the target op fields.
521 * linux-aarch64-low.cc (class aarch64_target)
522 <low_cannot_fetch_register>
523 <low_cannot_store_register>: Declare.
524 (aarch64_target::low_cannot_fetch_register)
525 (aarch64_target::low_cannot_store_register): Define.
526 (the_low_target): Remove the op fields.
527 * linux-arm-low.cc (class arm_target)
528 <low_cannot_fetch_register>
529 <low_cannot_store_register>: Declare.
530 (arm_cannot_fetch_register): Turn into...
531 (arm_target::low_cannot_fetch_register): ...this.
532 (arm_cannot_store_register): Turn into...
533 (arm_target::low_cannot_store_register): ...this.
534 (the_low_target): Remove the op fields.
535 * linux-bfin-low.cc (class bfin_target)
536 <low_cannot_fetch_register>
537 <low_cannot_store_register>: Declare.
538 (bfin_cannot_fetch_register): Turn into...
539 (bfin_target::low_cannot_fetch_register): ...this.
540 (bfin_cannot_store_register): Turn into...
541 (bfin_target::low_cannot_store_register): ...this.
542 (the_low_target): Remove the op fields.
543 * linux-cris-low.cc (class cris_target)
544 <low_cannot_fetch_register>
545 <low_cannot_store_register>: Declare.
546 (cris_cannot_fetch_register): Turn into...
547 (cris_target::low_cannot_fetch_register): ...this.
548 (cris_cannot_store_register): Turn into...
549 (cris_target::low_cannot_store_register): ...this.
550 (the_low_target): Remove the op fields.
551 * linux-crisv32-low.cc (class crisv32_target)
552 <low_cannot_fetch_register>
553 <low_cannot_store_register>: Declare.
554 (crisv32_target::low_cannot_fetch_register)
555 (crisv32_target::low_cannot_store_register): Define.
556 (the_low_target): Remove the op fields.
557 * linux-ia64-low.cc (class ia64_target)
558 <low_cannot_fetch_register>
559 <low_cannot_store_register>: Declare.
560 (ia64_cannot_fetch_register): Turn into...
561 (ia64_target::low_cannot_fetch_register): ...this.
562 (ia64_cannot_store_register): Turn into...
563 (ia64_target::low_cannot_store_register): ...this.
564 (the_low_target): Remove the op fields.
565 * linux-m32r-low.cc (class m32r_target)
566 <low_cannot_fetch_register>
567 <low_cannot_store_register>: Declare.
568 (m32r_cannot_fetch_register): Turn into...
569 (m32r_target::low_cannot_fetch_register): ...this.
570 (m32r_cannot_store_register): Turn into...
571 (m32r_target::low_cannot_store_register): ...this.
572 (the_low_target): Remove the op fields.
573 * linux-m68k-low.cc (class m68k_target)
574 <low_cannot_fetch_register>
575 <low_cannot_store_register>: Declare.
576 (m68k_cannot_fetch_register): Turn into...
577 (m68k_target::low_cannot_fetch_register): ...this.
578 (m68k_cannot_store_register): Turn into...
579 (m68k_target::low_cannot_store_register): ...this.
580 (the_low_target): Remove the op fields.
581 * linux-mips-low.cc (class mips_target)
582 <low_cannot_fetch_register>
583 <low_cannot_store_register>: Declare.
584 (mips_cannot_fetch_register): Turn into...
585 (mips_target::low_cannot_fetch_register): ...this.
586 (mips_cannot_store_register): Turn into...
587 (mips_target::low_cannot_store_register): ...this.
588 (get_usrregs_info): Inline at the call sites in
589 low_cannot_fetch_register and low_cannot_store_register,
590 and remove.
591 (the_low_target): Remove the op fields.
592 * linux-nios2-low.cc (class nios2_target)
593 <low_cannot_fetch_register>
594 <low_cannot_store_register>: Declare.
595 (nios2_cannot_fetch_register): Turn into...
596 (nios2_target::low_cannot_fetch_register): ...this.
597 (nios2_cannot_store_register): Turn into...
598 (nios2_target::low_cannot_store_register): ...this.
599 (the_low_target): Remove the op fields.
600 * linux-ppc-low.cc (class ppc_target)
601 <low_cannot_fetch_register>
602 <low_cannot_store_register>: Declare.
603 (ppc_cannot_fetch_register): Turn into...
604 (ppc_target::low_cannot_fetch_register): ...this.
605 (ppc_cannot_store_register): Turn into...
606 (ppc_target::low_cannot_store_register): ...this.
607 (the_low_target): Remove the op fields.
608 * linux-riscv-low.cc (class riscv_target)
609 <low_cannot_fetch_register>
610 <low_cannot_store_register>: Declare.
611 (riscv_target::low_cannot_fetch_register)
612 (riscv_target::low_cannot_store_register): Define.
613 (the_low_target): Remove the op fields.
614 * linux-s390-low.cc (class s390_target)
615 <low_cannot_fetch_register>
616 <low_cannot_store_register>: Declare.
617 (s390_cannot_fetch_register): Turn into...
618 (s390_target::low_cannot_fetch_register): ...this.
619 (s390_cannot_store_register): Turn into...
620 (s390_target::low_cannot_store_register): ...this.
621 (the_low_target): Remove the op fields.
622 * linux-sh-low.cc (class sh_target)
623 <low_cannot_fetch_register>
624 <low_cannot_store_register>: Declare.
625 (sh_cannot_fetch_register): Turn into...
626 (sh_target::low_cannot_fetch_register): ...this.
627 (sh_cannot_store_register): Turn into...
628 (sh_target::low_cannot_store_register): ...this.
629 (the_low_target): Remove the op fields.
630 * linux-sparc-low.cc (class sparc_target)
631 <low_cannot_fetch_register>
632 <low_cannot_store_register>: Declare.
633 (sparc_cannot_fetch_register): Turn into...
634 (sparc_target::low_cannot_fetch_register): ...this.
635 (sparc_cannot_store_register): Turn into...
636 (sparc_target::low_cannot_store_register): ...this.
637 (the_low_target): Remove the op fields.
638 * linux-tic6x-low.cc (class tic6x_target)
639 <low_cannot_fetch_register>
640 <low_cannot_store_register>: Declare.
641 (tic6x_cannot_fetch_register): Turn into...
642 (tic6x_target::low_cannot_fetch_register): ...this.
643 (tic6x_cannot_store_register): Turn into...
644 (tic6x_target::low_cannot_store_register): ...this.
645 (the_low_target): Remove the op fields.
646 * linux-tile-low.cc (class tile_target)
647 <low_cannot_fetch_register>
648 <low_cannot_store_register>: Declare.
649 (tile_cannot_fetch_register): Turn into...
650 (tile_target::low_cannot_fetch_register): ...this.
651 (tile_cannot_store_register): Turn into...
652 (tile_target::low_cannot_store_register): ...this.
653 (the_low_target): Remove the op fields.
654 * linux-xtensa-low.cc (class xtensa_target)
655 <low_cannot_fetch_register>
656 <low_cannot_store_register>: Declare.
657 (xtensa_target::low_cannot_fetch_register)
658 (xtensa_target::low_cannot_store_register): Define.
659 (the_low_target): Remove the op fields.
660
661 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
662
663 Turn the 'regs_info' linux target op into a method of
664 linux_process_target.
665
666 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
667 (class linux_process_target) <get_regs_info>: Define.
668
669 Update the callers below.
670
671 * linux-low.cc (linux_process_target::fetch_registers)
672 (linux_process_target::store_registers)
673 * proc-service.cc (gregset_info)
674
675 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
676 (x86_linux_regs_info): Turn into ...
677 (x86_target::get_regs_info): ...this.
678 (the_low_target): Remove the op field.
679 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
680 Declare.
681 (aarch64_regs_info): Turn into ...
682 (aarch64_target::get_regs_info): ...this.
683 (the_low_target): Remove the op field.
684 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
685 (arm_regs_info): Turn into ...
686 (arm_target::get_regs_info): ...this.
687 (the_low_target): Remove the op field.
688 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
689 (bfin_regs_info): Turn into ...
690 (bfin_target::get_regs_info): ...this.
691 (the_low_target): Remove the op field.
692 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
693 (cris_regs_info): Turn into ...
694 (cris_target::get_regs_info): ...this.
695 (the_low_target): Remove the op field.
696 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
697 Declare.
698 (crisv32_regs_info): Turn into ...
699 (crisv32_target::get_regs_info): ...this.
700 (the_low_target): Remove the op field.
701 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
702 (ia64_regs_info): Turn into ...
703 (ia64_target::get_regs_info): ...this.
704 (the_low_target): Remove the op field.
705 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
706 (m32r_regs_info): Turn into ...
707 (m32r_target::get_regs_info): ...this.
708 (the_low_target): Remove the op field.
709 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
710 (m68k_regs_info): Turn into ...
711 (m68k_target::get_regs_info): ...this.
712 (the_low_target): Remove the op field.
713 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
714 (mips_regs_info): Turn into ...
715 (mips_target::get_regs_info): ...this.
716 (the_low_target): Remove the op field.
717 (get_usrregs_info): Update the call to the op.
718 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
719 (nios2_regs_info): Turn into ...
720 (nios2_target::get_regs_info): ...this.
721 (the_low_target): Remove the op field.
722 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
723 (ppc_regs_info): Turn into ...
724 (ppc_target::get_regs_info): ...this.
725 (the_low_target): Remove the op field.
726 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
727 (riscv_regs_info): Turn into ...
728 (riscv_target::get_regs_info): ...this.
729 (the_low_target): Remove the op field.
730 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
731 (s390_regs_info): Turn into ...
732 (s390_target::get_regs_info): ...this.
733 (the_low_target): Remove the op field.
734 (s390_collect_ptrace_register)
735 (s390_supply_ptrace_register)
736 (s390_fill_gregset): Update the call to the op.
737 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
738 (sh_regs_info): Turn into ...
739 (sh_target::get_regs_info): ...this.
740 (the_low_target): Remove the op field.
741 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
742 (sparc_regs_info): Turn into ...
743 (sparc_target::get_regs_info): ...this.
744 (the_low_target): Remove the op field.
745 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
746 (tic6x_regs_info): Turn into ...
747 (tic6x_target::get_regs_info): ...this.
748 (the_low_target): Remove the op field.
749 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
750 (tile_regs_info): Turn into ...
751 (tile_target::get_regs_info): ...this.
752 (the_low_target): Remove the op field.
753 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
754 Declare.
755 (xtensa_regs_info): Turn into ...
756 (xtensa_target::get_regs_info): ...this.
757 (the_low_target): Remove the op field.
758
759 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760
761 Turn the 'arch_setup' linux target op into a method of
762 linux_process_target.
763
764 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
765 (class linux_process_target) <arch_setup_thread>
766 <low_arch_setup>: New declarations.
767 * linux-low.cc (linux_arch_setup): Delete.
768 (linux_arch_setup_thread): Turn into...
769 (linux_process_target::arch_setup_thread): ... this.
770
771 Update the callers below.
772
773 (linux_process_target::handle_extended_wait)
774 (linux_process_target::post_create_inferior)
775 (linux_process_target::filter_event)
776
777 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
778 declaration.
779 (x86_linux_update_xmltarget): Turn into...
780 (x86_target::update_xmltarget): ...this.
781 (x86_linux_process_qsupported): Update the call to
782 x86_linux_update_xmltarget.
783 (x86_arch_setup): Turn into ...
784 (x86_target::low_arch_setup): ...this.
785 (the_low_target): Remove the op field.
786 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
787 declaration.
788 (aarch64_arch_setup): Turn into ...
789 (aarch64_target::low_arch_setup): ...this.
790 (the_low_target): Remove the op field.
791 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
792 declaration.
793 (arm_arch_setup): Turn into ...
794 (arm_target::low_arch_setup): ...this.
795 (the_low_target): Remove the op field.
796 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
797 declaration.
798 (bfin_arch_setup): Turn into ...
799 (bfin_target::low_arch_setup): ...this.
800 (the_low_target): Remove the op field.
801 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
802 declaration.
803 (cris_arch_setup): Turn into ...
804 (cris_target::low_arch_setup): ...this.
805 (the_low_target): Remove the op field.
806 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
807 declaration.
808 (crisv32_arch_setup): Turn into ...
809 (crisv32_target::low_arch_setup): ...this.
810 (the_low_target): Remove the op field.
811 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
812 declaration.
813 (ia64_arch_setup): Turn into ...
814 (ia64_target::low_arch_setup): ...this.
815 (the_low_target): Remove the op field.
816 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
817 declaration.
818 (m32r_arch_setup): Turn into ...
819 (m32r_target::low_arch_setup): ...this.
820 (the_low_target): Remove the op field.
821 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
822 declaration.
823 (m68k_arch_setup): Turn into ...
824 (m68k_target::low_arch_setup): ...this.
825 (the_low_target): Remove the op field.
826 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
827 declaration.
828 (mips_arch_setup): Turn into ...
829 (mips_target::low_arch_setup): ...this.
830 (the_low_target): Remove the op field.
831 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
832 declaration.
833 (nios2_arch_setup): Turn into ...
834 (nios2_target::low_arch_setup): ...this.
835 (the_low_target): Remove the op field.
836 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
837 declaration.
838 (ppc_arch_setup): Turn into ...
839 (ppc_target::low_arch_setup): ...this.
840 (the_low_target): Remove the op field.
841 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
842 declaration.
843 (riscv_arch_setup): Turn into ...
844 (riscv_target::low_arch_setup): ...this.
845 (the_low_target): Remove the op field.
846 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
847 declaration.
848 (s390_arch_setup): Turn into ...
849 (s390_target::low_arch_setup): ...this.
850 (the_low_target): Remove the op field.
851 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
852 declaration.
853 (sh_arch_setup): Turn into ...
854 (sh_target::low_arch_setup): ...this.
855 (the_low_target): Remove the op field.
856 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
857 declaration.
858 (sparc_arch_setup): Turn into ...
859 (sparc_target::low_arch_setup): ...this.
860 (the_low_target): Remove the op field.
861 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
862 declaration.
863 (tic6x_arch_setup): Turn into ...
864 (tic6x_target::low_arch_setup): ...this.
865 (the_low_target): Remove the op field.
866 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
867 declaration.
868 (tile_arch_setup): Turn into ...
869 (tile_target::low_arch_setup): ...this.
870 (the_low_target): Remove the op field.
871 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
872 declaration.
873 (xtensa_arch_setup): Turn into ...
874 (xtensa_target::low_arch_setup): ...this.
875 (the_low_target): Remove the op field.
876
877 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
878
879 * linux-low.h (the_linux_target): New extern declaration.
880 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
881 'the_target'.
882 (the_linux_target): Remove.
883 * linux-x86-low.cc (class x86_target): New class.
884 (the_x86_target): New static object.
885 (the_linux_target): Define as pointer to the_x86_target.
886 * linux-aarch64-low.cc (class aarch64_target): New class.
887 (the_aarch64_target): New static object.
888 (the_linux_target): Define as pointer to the_aarch64_target.
889 * linux-arm-low.cc (class arm_target): New class.
890 (the_arm_target): New static object.
891 (the_linux_target): Define as pointer to the_arm_target.
892 * linux-bfin-low.cc (class bfin_target): New class.
893 (the_bfin_target): New static object.
894 (the_linux_target): Define as pointer to the_bfin_target.
895 * linux-cris-low.cc (class cris_target): New class.
896 (the_cris_target): New static object.
897 (the_linux_target): Define as pointer to the_cris_target.
898 * linux-crisv32-low.cc (class crisv32_target): New class.
899 (the_crisv32_target): New static object.
900 (the_linux_target): Define as pointer to the_crisv32_target.
901 * linux-ia64-low.cc (class ia64_target): New class.
902 (the_ia64_target): New static object.
903 (the_linux_target): Define as pointer to the_ia64_target.
904 * linux-m32r-low.cc (class m32r_target): New class.
905 (the_m32r_target): New static object.
906 (the_linux_target): Define as pointer to the_m32r_target.
907 * linux-m68k-low.cc (class m68k_target): New class.
908 (the_m68k_target): New static object.
909 (the_linux_target): Define as pointer to the_m68k_target.
910 * linux-mips-low.cc (class mips_target): New class.
911 (the_mips_target): New static object.
912 (the_linux_target): Define as pointer to the_mips_target.
913 * linux-nios2-low.cc (class nios2_target): New class.
914 (the_nios2_target): New static object.
915 (the_linux_target): Define as pointer to the_nios2_target.
916 * linux-ppc-low.cc (class ppc_target): New class.
917 (the_ppc_target): New static object.
918 (the_linux_target): Define as pointer to the_ppc_target.
919 * linux-riscv-low.cc (class riscv_target): New class.
920 (the_riscv_target): New static object.
921 (the_linux_target): Define as pointer to the_riscv_target.
922 * linux-s390-low.cc (class s390_target): New class.
923 (the_s390_target): New static object.
924 (the_linux_target): Define as pointer to the_s390_target.
925 * linux-sh-low.cc (class sh_target): New class.
926 (the_sh_target): New static object.
927 (the_linux_target): Define as pointer to the_sh_target.
928 * linux-sparc-low.cc (class sparc_target): New class.
929 (the_sparc_target): New static object.
930 (the_linux_target): Define as pointer to the_sparc_target.
931 * linux-tic6x-low.cc (class tic6x_target): New class.
932 (the_tic6x_target): New static object.
933 (the_linux_target): Define as pointer to the_tic6x_target.
934 * linux-tile-low.cc (class tile_target): New class.
935 (the_tile_target): New static object.
936 (the_linux_target): Define as pointer to the_tile_target.
937 * linux-xtensa-low.cc (class xtensa_target): New class.
938 (the_xtensa_target): New static object.
939 (the_linux_target): Define as pointer to the_xtensa_target.
940
941 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 Turn some static functions in linux-low.cc into private methods of
944 linux_process_target.
945
946 * linux-low.cc (handle_extended_wait): Turn into ...
947 (linux_process_target::handle_extended_wait): ...this. Call
948 'mourn' on 'this' object instead of 'the_target'.
949 (maybe_move_out_of_jump_pad): Turn into...
950 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
951 (linux_low_filter_event): Turn into...
952 (linux_process_target::filter_event): ...this.
953 (linux_wait_for_event_filtered): Turn into...
954 (linux_process_target::wait_for_event_filtered): ...this.
955 (linux_wait_for_event): Turn into...
956 (linux_process_target::wait_for_event): ...this.
957 (linux_wait_1): Turn into...
958 (linux_process_target::wait_1): ...this.
959 (wait_for_sigstop): Turn into...
960 (linux_process_target::wait_for_sigstop): ...this.
961 (move_out_of_jump_pad_callback): Turn into...
962 (linux_process_target::move_out_of_jump_pad): ...this.
963 (stop_all_lwps): Turn into...
964 (linux_process_target::stop_all_lwps): ...this.
965 (start_step_over): Turn into...
966 (linux_process_target::start_step_over): ...this.
967 (complete_ongoing_step_over): Turn into...
968 (linux_process_target::complete_ongoing_step_over): ...this.
969 (proceed_all_lwps): Turn into...
970 (linux_process_target::proceed_all_lwps): ...this.
971 (unstop_all_lwps): Turn into...
972 (linux_process_target::unstop_all_lwps): ...this.
973
974 * linux-low.h (class linux_process_target)
975 <handle_extended_wait>
976 <maybe_move_out_of_jump_pad>
977 filter_event>
978 <wait_for_event_filtered>
979 <wait_for_event>
980 <wait_1>
981 <wait_for_sigstop>
982 <move_out_of_jump_pad>
983 <stop_all_lwps>
984 <start_step_over>
985 <complete_ongoing_step_over>
986 <proceed_all_lwps>
987 <unstop_all_lwps>: Declare.
988
989 Update the callers below.
990
991 * linux-low.cc (linux_process_target::attach): Update.
992 (linux_process_target::stabilize_threads): Ditto.
993 (linux_process_target::wait): Ditto.
994
995 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 * linux-low.h (struct linux_target_ops): Update the comment for
998 'cannot_store_register' to return 0 or 1.
999 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1000 of 2.
1001
1002 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1003
1004 * config.in: Re-generate.
1005 * configure: Re-generate.
1006
1007 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1008
1009 * regcache.cc (find_register_by_number): Update.
1010 * tdesc.cc (init_target_desc): Likewise.
1011 * tdesc.h (target_desc::reg_defs): Likewise.
1012
1013 2020-03-12 Tom Tromey <tom@tromey.com>
1014
1015 * configure: Rebuild.
1016 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1017 (WIN32APILIBS): New subst.
1018 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1019 gdbsupport files.
1020 (gdbsupport/%.o): Remove target.
1021 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1022 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1023 (WIN32APILIBS): New variable.
1024 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1025 (gdbreplay$(EXEEXT)): Likewise.
1026
1027 2020-03-12 Tom Tromey <tom@tromey.com>
1028
1029 * config.in, configure: Rebuild.
1030 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1031 * acinclude.m4: Include gettext-sister.m4.
1032 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1033 variables.
1034 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1035 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1036
1037 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1038
1039 * acinclude.m4: Update path to selftest.m4.
1040
1041 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1042
1043 * configure.ac: Don't source bfd/development.sh, move
1044 GDB_AC_COMMON higher.
1045 * configure: Re-generate.
1046
1047 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * configure: Re-generate.
1050
1051 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1052
1053 * configure: Re-generate.
1054
1055 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * .dir-locals.el: New file.
1058
1059 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1060
1061 * .gitattributes: New file.
1062
1063 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1066 reply into an S reply.
1067 * server.cc (disable_packet_T): New global.
1068 (captured_main): Set new global when appropriate.
1069 * server.h (disable_packet_T): Declare.
1070
1071 2020-02-21 Tom Tromey <tom@tromey.com>
1072
1073 * Makefile.in (mostlyclean): New target.
1074
1075 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1076
1077 * target.h (struct process_stratum_target): Remove.
1078 (class process_target): Rename to ...
1079 (class process_stratum_target): ... this.
1080 * linux-low.h (class linux_process_target): Derive from
1081 'process_stratum_target'.
1082 * linux-low.cc (linux_target_ops): Remove.
1083 (initialize_low): Set the_target to the singleton instance of
1084 linux_process_target.
1085 * lynx-low.h (class lynx_process_target): Derive from
1086 'process_stratum_target'.
1087 * lynx-low.cc (lynx_target_ops): Remove.
1088 (initialize_low): Set the_target to the singleton instance of
1089 lynx_process_target.
1090 * nto-low.h (class nto_process_target): Derive from
1091 'process_stratum_target'.
1092 * nto-low.cc (nto_target_ops): Remove.
1093 (initialize_low): Set the_target to the singleton instance of
1094 nto_process_target.
1095 * win32-low.h (class win32_process_target): Derive from
1096 'process_stratum_target'.
1097 * win32-low.cc (win32_target_ops): Remove.
1098 (initialize_low): Set the_target to the singleton instance of
1099 win32_process_target.
1100
1101 Replace 'the_target->pt' with 'the_target' in the uses below.
1102
1103 * hostio.cc (hostio_error)
1104 (handle_setfs)
1105 (handle_open)
1106 (handle_unlink)
1107 (handle_readlink)
1108 * linux-aarch32-low.cc (arm_breakpoint_at)
1109 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1110 * linux-arm-low.cc (arm_sigreturn_next_pc)
1111 (arm_get_hwcap)
1112 (arm_get_syscall_trapinfo)
1113 * linux-cris-low.cc (cris_breakpoint_at)
1114 * linux-crisv32-low.cc (cris_breakpoint_at)
1115 * linux-low.cc (handle_extended_wait)
1116 (linux_wait_1)
1117 (linux_read_memory)
1118 (linux_process_target::breakpoint_kind_from_pc)
1119 (linux_get_auxv)
1120 * linux-m32r-low.cc (m32r_breakpoint_at)
1121 * linux-mips-low.cc (mips_breakpoint_at)
1122 * linux-nios2-low.cc (nios2_breakpoint_at)
1123 * linux-ppc-low.cc (ppc_breakpoint_at)
1124 * linux-s390-low.cc (s390_get_hwcap)
1125 * linux-sh-low.cc (sh_breakpoint_at)
1126 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1127 (sparc_store_gregset_from_stack)
1128 (sparc_breakpoint_at)
1129 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1130 * linux-tile-low.cc (tile_breakpoint_at)
1131 * linux-x86-low.cc (x86_breakpoint_at)
1132 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1133 * mem-break.cc (bp_size)
1134 (bp_opcode)
1135 (insert_memory_breakpoint)
1136 (set_raw_breakpoint_at)
1137 (delete_raw_breakpoint)
1138 (z_type_supported)
1139 (uninsert_raw_breakpoint)
1140 (reinsert_raw_breakpoint)
1141 (validate_inserted_breakpoint)
1142 * regcache.cc (regcache_read_pc)
1143 (regcache_write_pc)
1144 * remote-utils.cc (putpkt_binary_1)
1145 (input_interrupt)
1146 (getpkt)
1147 (prepare_resume_reply)
1148 * server.cc (handle_general_set)
1149 (handle_detach)
1150 (handle_qxfer_auxv)
1151 (handle_qxfer_exec_file)
1152 (handle_qxfer_libraries_svr4)
1153 (handle_qxfer_osdata)
1154 (handle_qxfer_siginfo)
1155 (handle_qxfer_fdpic)
1156 (handle_query)
1157 (resume)
1158 (handle_v_requests)
1159 (queue_stop_reply_callback)
1160 (captured_main)
1161 * target.cc (prepare_to_access_memory)
1162 (done_accessing_memory)
1163 (read_inferior_memory)
1164 (target_write_memory)
1165 (target_stop_and_wait)
1166 (target_wait)
1167 (target_mourn_inferior)
1168 (target_continue_no_signal)
1169 (target_continue)
1170 (target_supports_multi_process)
1171 (kill_inferior)
1172 * target.h
1173 (target_create_inferior)
1174 (target_post_create_inferior)
1175 (myattach)
1176 (target_supports_fork_events)
1177 (target_supports_vfork_events)
1178 (target_supports_exec_events)
1179 (target_handle_new_gdb_connection)
1180 (detach_inferior)
1181 (mythread_alive)
1182 (fetch_inferior_registers)
1183 (store_inferior_registers)
1184 (join_inferior)
1185 (target_supports_non_stop)
1186 (target_async)
1187 (target_process_qsupported)
1188 (target_supports_catch_syscall)
1189 (target_get_ipa_tdesc_idx)
1190 (target_supports_tracepoints)
1191 (target_supports_fast_tracepoints)
1192 (target_get_min_fast_tracepoint_insn_len)
1193 (target_thread_stopped)
1194 (target_pause_all)
1195 (target_unpause_all)
1196 (target_stabilize_threads)
1197 (target_install_fast_tracepoint_jump_pad)
1198 (target_emit_ops)
1199 (target_supports_disable_randomization)
1200 (target_supports_agent)
1201 (target_enable_btrace)
1202 (target_disable_btrace)
1203 (target_read_btrace)
1204 (target_read_btrace_conf)
1205 (target_supports_range_stepping)
1206 (target_supports_stopped_by_sw_breakpoint)
1207 (target_stopped_by_sw_breakpoint)
1208 (target_supports_stopped_by_hw_breakpoint)
1209 (target_supports_hardware_single_step)
1210 (target_stopped_by_hw_breakpoint)
1211 (target_breakpoint_kind_from_pc)
1212 (target_breakpoint_kind_from_current_state)
1213 (target_supports_software_single_step)
1214 (target_core_of_thread)
1215 (target_thread_name)
1216 (target_thread_handle)
1217 * win32-low.cc (do_initial_child_stuff)
1218
1219 Rename target op default definitions listed below.
1220
1221 * target.cc (process_target::post_create_inferior): Rename as ...
1222 (process_stratum_target::post_create_inferior): ... this.
1223 (process_target::prepare_to_access_memory): Rename as ...
1224 (process_stratum_target::prepare_to_access_memory): ... this.
1225 (process_target::done_accessing_memory): Rename as ...
1226 (process_stratum_target::done_accessing_memory): ... this.
1227 (process_target::look_up_symbols): Rename as ...
1228 (process_stratum_target::look_up_symbols): ... this.
1229 (process_target::supports_read_auxv): Rename as ...
1230 (process_stratum_target::supports_read_auxv): ... this.
1231 (process_target::read_auxv): Rename as ...
1232 (process_stratum_target::read_auxv): ... this.
1233 (process_target::supports_z_point_type): Rename as ...
1234 (process_stratum_target::supports_z_point_type): ... this.
1235 (process_target::insert_point): Rename as ...
1236 (process_stratum_target::insert_point): ... this.
1237 (process_target::remove_point): Rename as ...
1238 (process_stratum_target::remove_point): ... this.
1239 (process_target::stopped_by_sw_breakpoint): Rename as ...
1240 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1241 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1242 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1243 (process_target::stopped_by_hw_breakpoint): Rename as ...
1244 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1245 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1246 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1247 (process_target::supports_hardware_single_step): Rename as ...
1248 (process_stratum_target::supports_hardware_single_step): ... this.
1249 (process_target::stopped_by_watchpoint): Rename as ...
1250 (process_stratum_target::stopped_by_watchpoint): ... this.
1251 (process_target::stopped_data_address): Rename as ...
1252 (process_stratum_target::stopped_data_address): ... this.
1253 (process_target::supports_read_offsets): Rename as ...
1254 (process_stratum_target::supports_read_offsets): ... this.
1255 (process_target::read_offsets): Rename as ...
1256 (process_stratum_target::read_offsets): ... this.
1257 (process_target::supports_get_tls_address): Rename as ...
1258 (process_stratum_target::supports_get_tls_address): ... this.
1259 (process_target::get_tls_address): Rename as ...
1260 (process_stratum_target::get_tls_address): ... this.
1261 (process_target::hostio_last_error): Rename as ...
1262 (process_stratum_target::hostio_last_error): ... this.
1263 (process_target::supports_qxfer_osdata): Rename as ...
1264 (process_stratum_target::supports_qxfer_osdata): ... this.
1265 (process_target::qxfer_osdata): Rename as ...
1266 (process_stratum_target::qxfer_osdata): ... this.
1267 (process_target::supports_qxfer_siginfo): Rename as ...
1268 (process_stratum_target::supports_qxfer_siginfo): ... this.
1269 (process_target::qxfer_siginfo): Rename as ...
1270 (process_stratum_target::qxfer_siginfo): ... this.
1271 (process_target::supports_non_stop): Rename as ...
1272 (process_stratum_target::supports_non_stop): ... this.
1273 (process_target::async): Rename as ...
1274 (process_stratum_target::async): ... this.
1275 (process_target::start_non_stop): Rename as ...
1276 (process_stratum_target::start_non_stop): ... this.
1277 (process_target::supports_multi_process): Rename as ...
1278 (process_stratum_target::supports_multi_process): ... this.
1279 (process_target::supports_fork_events): Rename as ...
1280 (process_stratum_target::supports_fork_events): ... this.
1281 (process_target::supports_vfork_events): Rename as ...
1282 (process_stratum_target::supports_vfork_events): ... this.
1283 (process_target::supports_exec_events): Rename as ...
1284 (process_stratum_target::supports_exec_events): ... this.
1285 (process_target::handle_new_gdb_connection): Rename as ...
1286 (process_stratum_target::handle_new_gdb_connection): ... this.
1287 (process_target::handle_monitor_command): Rename as ...
1288 (process_stratum_target::handle_monitor_command): ... this.
1289 (process_target::core_of_thread): Rename as ...
1290 (process_stratum_target::core_of_thread): ... this.
1291 (process_target::supports_read_loadmap): Rename as ...
1292 (process_stratum_target::supports_read_loadmap): ... this.
1293 (process_target::read_loadmap): Rename as ...
1294 (process_stratum_target::read_loadmap): ... this.
1295 (process_target::process_qsupported): Rename as ...
1296 (process_stratum_target::process_qsupported): ... this.
1297 (process_target::supports_tracepoints): Rename as ...
1298 (process_stratum_target::supports_tracepoints): ... this.
1299 (process_target::read_pc): Rename as ...
1300 (process_stratum_target::read_pc): ... this.
1301 (process_target::write_pc): Rename as ...
1302 (process_stratum_target::write_pc): ... this.
1303 (process_target::supports_thread_stopped): Rename as ...
1304 (process_stratum_target::supports_thread_stopped): ... this.
1305 (process_target::thread_stopped): Rename as ...
1306 (process_stratum_target::thread_stopped): ... this.
1307 (process_target::supports_get_tib_address): Rename as ...
1308 (process_stratum_target::supports_get_tib_address): ... this.
1309 (process_target::get_tib_address): Rename as ...
1310 (process_stratum_target::get_tib_address): ... this.
1311 (process_target::pause_all): Rename as ...
1312 (process_stratum_target::pause_all): ... this.
1313 (process_target::unpause_all): Rename as ...
1314 (process_stratum_target::unpause_all): ... this.
1315 (process_target::stabilize_threads): Rename as ...
1316 (process_stratum_target::stabilize_threads): ... this.
1317 (process_target::supports_fast_tracepoints): Rename as ...
1318 (process_stratum_target::supports_fast_tracepoints): ... this.
1319 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1320 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1321 (process_target::emit_ops): Rename as ...
1322 (process_stratum_target::emit_ops): ... this.
1323 (process_target::supports_disable_randomization): Rename as ...
1324 (process_stratum_target::supports_disable_randomization): ... this.
1325 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1326 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1327 (process_target::qxfer_libraries_svr4): Rename as ...
1328 (process_stratum_target::qxfer_libraries_svr4): ... this.
1329 (process_target::supports_agent): Rename as ...
1330 (process_stratum_target::supports_agent): ... this.
1331 (process_target::enable_btrace): Rename as ...
1332 (process_stratum_target::enable_btrace): ... this.
1333 (process_target::disable_btrace): Rename as ...
1334 (process_stratum_target::disable_btrace): ... this.
1335 (process_target::read_btrace): Rename as ...
1336 (process_stratum_target::read_btrace): ... this.
1337 (process_target::read_btrace_conf): Rename as ...
1338 (process_stratum_target::read_btrace_conf): ... this.
1339 (process_target::supports_range_stepping): Rename as ...
1340 (process_stratum_target::supports_range_stepping): ... this.
1341 (process_target::supports_pid_to_exec_file): Rename as ...
1342 (process_stratum_target::supports_pid_to_exec_file): ... this.
1343 (process_target::pid_to_exec_file): Rename as ...
1344 (process_stratum_target::pid_to_exec_file): ... this.
1345 (process_target::supports_multifs): Rename as ...
1346 (process_stratum_target::supports_multifs): ... this.
1347 (process_target::multifs_open): Rename as ...
1348 (process_stratum_target::multifs_open): ... this.
1349 (process_target::multifs_unlink): Rename as ...
1350 (process_stratum_target::multifs_unlink): ... this.
1351 (process_target::multifs_readlink): Rename as ...
1352 (process_stratum_target::multifs_readlink): ... this.
1353 (process_target::breakpoint_kind_from_pc): Rename as ...
1354 (process_stratum_target::breakpoint_kind_from_pc): ... this.
1355 (process_target::breakpoint_kind_from_current_state): Rename as ...
1356 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
1357 (process_target::thread_name): Rename as ...
1358 (process_stratum_target::thread_name): ... this.
1359 (process_target::thread_handle): Rename as ...
1360 (process_stratum_target::thread_handle): ... this.
1361 (process_target::supports_software_single_step): Rename as ...
1362 (process_stratum_target::supports_software_single_step): ... this.
1363 (process_target::supports_catch_syscall): Rename as ...
1364 (process_stratum_target::supports_catch_syscall): ... this.
1365 (process_target::get_ipa_tdesc_idx): Rename as ...
1366 (process_stratum_target::get_ipa_tdesc_idx): ... this.
1367
1368 2020-02-20 Pedro Alves <palves@redhat.com>
1369
1370 * target.cc (set_target_ops): Simply copy the given target pointer
1371 instead of creating a copy of the pointed object.
1372
1373 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1374
1375 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
1376 of process_target.
1377
1378 * target.h (struct process_stratum_target): Remove the target op.
1379 (class process_target): Add the target op.
1380 (target_get_ipa_tdesc_idx): Update the macro.
1381 * target.cc (process_target::get_ipa_tdesc_idx): Define.
1382
1383 Update the derived classes and callers below.
1384
1385 * linux-low.cc (linux_target_ops): Update.
1386 (linux_get_ipa_tdesc_idx): Turn into ...
1387 (linux_process_target::get_ipa_tdesc_idx): ... this.
1388 * linux-low.h (class linux_process_target): Update.
1389 * lynx-low.cc (lynx_target_ops): Update.
1390 * nto-low.cc (nto_target_ops): Update.
1391 * win32-low.cc (win32_target_ops): Update.
1392
1393 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1394
1395 Turn process_stratum_target's supports_catch_syscall op into a
1396 method of process_target.
1397
1398 * target.h (struct process_stratum_target): Remove the target op.
1399 (class process_target): Add the target op.
1400 (target_supports_catch_syscall): Update the macro.
1401 * target.cc (process_target::supports_catch_syscall): Define.
1402
1403 Update the derived classes and callers below.
1404
1405 * linux-low.cc (linux_target_ops): Update.
1406 (linux_supports_catch_syscall): Turn into ...
1407 (linux_process_target::supports_catch_syscall): ... this.
1408 * linux-low.h (class linux_process_target): 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
1413 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1414
1415 Turn process_stratum_target's supports_software_single_step op
1416 into a method of process_target.
1417
1418 * target.h (struct process_stratum_target): Remove the target op.
1419 (class process_target): Add the target op.
1420 (target_supports_software_single_step): Update the macro.
1421 * target.cc (process_target::supports_software_single_step): Define.
1422
1423 Update the derived classes and callers below.
1424
1425 * linux-low.cc (linux_target_ops): Update.
1426 (linux_supports_software_single_step): Turn into ...
1427 (linux_process_target::supports_software_single_step): ... this.
1428 * linux-low.h (class linux_process_target): Update.
1429 * lynx-low.cc (lynx_target_ops): Update.
1430 * nto-low.cc (nto_target_ops): Update.
1431 * win32-low.cc (win32_target_ops): Update.
1432
1433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1434
1435 Turn process_stratum_target's thread_name and thread_handle ops
1436 into methods of process_target.
1437
1438 * target.h (struct process_stratum_target): Remove the target ops.
1439 (class process_target): Add the target ops.
1440 (target_thread_name): Update the macro.
1441 (target_thread_handle): Update the macro.
1442 * target.cc (process_target::thread_name): Define.
1443 (process_target::thread_handle): Define.
1444
1445 Update the derived classes and callers below.
1446
1447 * linux-low.cc (linux_target_ops): Update.
1448 (linux_process_target::thread_name): Define.
1449 (linux_process_target::thread_handle): Define.
1450 * linux-low.h (class linux_process_target): Update.
1451 * lynx-low.cc (lynx_target_ops): Update.
1452 * nto-low.cc (nto_target_ops): Update.
1453 * win32-low.cc (win32_target_ops): Update.
1454
1455 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1456
1457 Turn process_stratum_target's breakpoint_kind_from_pc,
1458 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
1459 ops into methods of process_target.
1460
1461 * target.h (struct process_stratum_target): Remove the target op.
1462 (class process_target): Add the target op.
1463 (target_breakpoint_kind_from_pc): Update the macro.
1464 (target_breakpoint_kind_from_current_state): Update the macro.
1465 (default_breakpoint_kind_from_pc): Remove declaration.
1466 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
1467 (process_target::breakpoint_kind_from_pc): ... this.
1468 (process_target::breakpoint_kind_from_current_state): Define.
1469
1470 Update the derived classes and callers below.
1471
1472 * mem-break.cc (bp_size): Update.
1473 (bp_opcode): Update.
1474 * linux-low.cc (linux_target_ops): Update.
1475 (linux_wait_1): Update.
1476 (linux_breakpoint_kind_from_pc): Turn into ...
1477 (linux_process_target::breakpoint_kind_from_pc): ... this.
1478 (linux_sw_breakpoint_from_kind): Turn into ...
1479 (linux_process_target::sw_breakpoint_from_kind): ... this.
1480 (linux_breakpoint_kind_from_current_state): Turn into ...
1481 (linux_process_target::breakpoint_kind_from_current_state): ... this.
1482 * linux-low.h (class linux_process_target): Update.
1483 * lynx-low.cc (lynx_target_ops): Update.
1484 (lynx_process_target::sw_breakpoint_from_kind): Define.
1485 * lynx-low.h (class lynx_process_target): Update.
1486 * nto-low.cc (nto_target_ops): Update.
1487 (nto_sw_breakpoint_from_kind): Turn into ...
1488 (nto_process_target::sw_breakpoint_from_kind): ... this.
1489 * nto-low.h (class nto_process_target): Update.
1490 * win32-low.cc (win32_target_ops): Update.
1491 (win32_sw_breakpoint_from_kind): Turn into ...
1492 (win32_process_target::sw_breakpoint_from_kind): ... this.
1493 * win32-low.h (class win32_process_target): Update.
1494
1495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1496
1497 Turn process_stratum_target's multifs_open, multifs_readlink,
1498 multifs_unlink ops into methods of process_target.
1499
1500 * target.h (struct process_stratum_target): Remove the target ops.
1501 (class process_target): Add the target ops. Also add
1502 'supports_multifs'.
1503 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
1504 "sys/stat.h".
1505 (process_target::supports_multifs): Define.
1506 (process_target::multifs_open): Define.
1507 (process_target::multifs_readlink): Define.
1508 (process_target::multifs_unlink): Define.
1509
1510 Update the derived classes and callers below.
1511
1512 * hostio.cc (handle_setfs): Update.
1513 (handle_open): Update.
1514 (handle_unlink): Update.
1515 (handle_readlink): Update.
1516 * linux-low.cc (linux_target_ops): Update.
1517 (linux_process_target::supports_multifs): Define.
1518 (linux_process_target::multifs_open): Define.
1519 (linux_process_target::multifs_readlink): Define.
1520 (linux_process_target::multifs_unlink): Define.
1521 * linux-low.h (class linux_process_target): Update.
1522 * lynx-low.cc (lynx_target_ops): Update.
1523 * nto-low.cc (nto_target_ops): Update.
1524 * win32-low.cc (win32_target_ops): Update.
1525
1526 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1527
1528 Turn process_stratum_target's pid_to_exec_file op into a method
1529 of process_target.
1530
1531 * target.h (struct process_stratum_target): Remove the target op.
1532 (class process_target): Add the target op. Also add
1533 'supports_pid_to_exec_file'.
1534 * target.cc (process_target::pid_to_exec_file): Define.
1535 (process_target::supports_pid_to_exec_file): Define.
1536
1537 Update the derived classes and callers below.
1538
1539 * server.cc (handle_qxfer_exec_file): Update.
1540 (handle_query): Update.
1541 * linux-low.cc (linux_target_ops): Update.
1542 (linux_process_target::supports_pid_to_exec_file): Define.
1543 (linux_process_target::pid_to_exec_file): 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.
1548
1549 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1550
1551 Turn process_stratum_target's supports_range_stepping op into a
1552 method of process_target.
1553
1554 * target.h (struct process_stratum_target): Remove the target op.
1555 (class process_target): Add the target op.
1556 (target_supports_range_stepping): Update the macro.
1557 * target.cc (process_target::supports_range_stepping): Define.
1558
1559 Update the derived classes and callers below.
1560
1561 * linux-low.cc (linux_target_ops): Update.
1562 (linux_supports_range_stepping): Turn into ...
1563 (linux_process_target::supports_range_stepping): ... this.
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.
1568
1569 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1570
1571 Turn process_stratum_target's btrace-related ops (enable_btrace,
1572 disable_btrace, read_btrace, read_btrace_conf) into methods of
1573 process_target.
1574
1575 * target.h (struct process_stratum_target): Remove the target ops.
1576 (class process_target): Add the target ops.
1577 (target_enable_btrace): Update.
1578 (target_disable_btrace): Update.
1579 (target_read_btrace): Update.
1580 (target_read_btrace_conf): Update.
1581 * target.cc (process_target::enable_btrace): Define.
1582 (process_target::disable_btrace): Define.
1583 (process_target::read_btrace): Define.
1584 (process_target::read_btrace_conf): Define.
1585
1586 Update the derived classes and callers below.
1587
1588 * linux-low.cc (linux_target_ops): Update.
1589 (linux_process_target:enable_btrace): Define as a wrapper around
1590 linux_enable_btrace.
1591 (linux_low_disable_btrace): Turn into ...
1592 (linux_process_target::disable_btrace): ... this.
1593 (linux_low_read_btrace): Turn into ...
1594 (linux_process_target::read_btrace): ... this.
1595 (linux_low_btrace_conf): Turn into ...
1596 (linux_process_target::read_btrace_conf): ... this.
1597 * linux-low.h (class linux_process_target): Update.
1598 * lynx-low.cc (lynx_target_ops): Update.
1599 * nto-low.cc (nto_target_ops): Update.
1600 * win32-low.cc (win32_target_ops): Update.
1601
1602 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1603
1604 Turn process_stratum_target's supports_agent op into a method of
1605 process_target.
1606
1607 * target.h (struct process_stratum_target): Remove the target op.
1608 (class process_target): Add the target op.
1609 (target_supports_agent): Update the macro.
1610 * target.cc (process_target::supports_agent): Define.
1611
1612 Update the derived classes and callers below.
1613
1614 * linux-low.cc (linux_target_ops): Update.
1615 (linux_supports_agent): Turn into ...
1616 (linux_process_target::supports_agent): ... this.
1617 * linux-low.h (class linux_process_target): Update.
1618 * lynx-low.cc (lynx_target_ops): Update.
1619 * nto-low.cc (nto_target_ops): Update.
1620 * win32-low.cc (win32_target_ops): Update.
1621
1622 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1623
1624 Turn process_stratum_target's qxfer_libraries_svr4 op into a
1625 method of process_target.
1626
1627 * target.h (struct process_stratum_target): Remove the target op.
1628 (class process_target): Add the target op. Also add
1629 'supports_qxfer_libraries_svr4'.
1630 * target.cc (process_target::qxfer_libraries_svr4): Define.
1631 (process_target::supports_qxfer_libraries_svr4): Define.
1632
1633 Update the derived classes and callers below.
1634
1635 * server.cc (handle_qxfer_libraries_svr4): Update.
1636 (handle_query): Update.
1637 * linux-low.cc (linux_target_ops): Update.
1638 (linux_process_target::supports_qxfer_libraries_svr4): Define.
1639 (linux_qxfer_libraries_svr4): Turn into ...
1640 (linux_process_target::qxfer_libraries_svr4): ... this.
1641 * linux-low.h (class linux_process_target): Update.
1642 * lynx-low.cc (lynx_target_ops): Update.
1643 * nto-low.cc (nto_target_ops): Update.
1644 * win32-low.cc (win32_target_ops): Update.
1645
1646 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1647
1648 Turn process_stratum_target's supports_disable_randomization op
1649 into a method of process_target.
1650
1651 * target.h (struct process_stratum_target): Remove the target op.
1652 (class process_target): Add the target op.
1653 (target_supports_disable_randomization): Update the macro.
1654 * target.cc (process_target::supports_disable_randomization): Define.
1655
1656 Update the derived classes and callers below.
1657
1658 * linux-low.cc (linux_target_ops): Update.
1659 (linux_supports_disable_randomization): Turn into ...
1660 (linux_process_target::supports_disable_randomization): ... this.
1661 * linux-low.h (class linux_process_target): Update.
1662 * lynx-low.cc (lynx_target_ops): Update.
1663 * nto-low.cc (nto_target_ops): Update.
1664 * win32-low.cc (win32_target_ops): Update.
1665
1666 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1667
1668 Turn process_stratum_target's emit_ops op into a method of
1669 process_target.
1670
1671 * target.h (struct process_stratum_target): Remove the target op.
1672 (class process_target): Add the target op.
1673 (target_emit_ops): Update the macro.
1674 * target.cc (process_target::emit_ops): Define.
1675
1676 Update the derived classes and callers below.
1677
1678 * linux-low.cc (linux_target_ops): Update.
1679 (linux_emit_ops): Turn into ...
1680 (linux_process_target::emit_ops): ... this.
1681 * linux-low.h (class linux_process_target): Update.
1682 * lynx-low.cc (lynx_target_ops): Update.
1683 * nto-low.cc (nto_target_ops): Update.
1684 * win32-low.cc (win32_target_ops): Update.
1685
1686 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1687
1688 Turn process_stratum_target's install_fast_tracepoint_jump_pad
1689 and get_min_fast_tracepoint_insn_len ops into methods of
1690 process_target.
1691
1692 * target.h (struct process_stratum_target): Remove the target ops.
1693 (class process_target): Add the target ops. Also add
1694 'supports_fast_tracepoints'.
1695 (target_supports_fast_tracepoints): Update the macro.
1696 (target_get_min_fast_tracepoint_insn_len): Update the macro.
1697 (install_fast_tracepoint_jump_pad): Update and rename the macro
1698 to ...
1699 (target_install_fast_tracepoint_jump_pad): ... this.
1700 * target.cc (process_target::supports_fast_tracepoints): Define.
1701 (process_target::install_fast_tracepoint_jump_pad): Define.
1702 (process_target::get_min_fast_tracepoint_insn_len): Define.
1703
1704 Update the derived classes and callers below.
1705
1706 * tracepoint.cc (install_fast_tracepoint): Update.
1707 * linux-low.cc (linux_target_ops): Update.
1708 (linux_process_target::supports_fast_tracepoints): Define.
1709 (linux_install_fast_tracepoint_jump_pad): Turn into ...
1710 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
1711 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
1712 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
1713 * linux-low.h (class linux_process_target): Update.
1714 * lynx-low.cc (lynx_target_ops): Update.
1715 * nto-low.cc (nto_target_ops): Update.
1716 * win32-low.cc (win32_target_ops): Update.
1717
1718 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1719
1720 Turn process_stratum_target's stabilize_threads op into a
1721 method of process_target.
1722
1723 * target.h (struct process_stratum_target): Remove the target op.
1724 (class process_target): Add the target op.
1725 (target_stabilize_threads): Update the macro.
1726 * target.cc (process_target::stabilize_threads): Define.
1727
1728 Update the derived classes and callers below.
1729
1730 * server.cc (handle_status): Update.
1731 * tracepoint.cc (cmd_qtdp): Update.
1732 (cmd_qtstart): Update.
1733 * linux-low.cc (linux_target_ops): Update.
1734 (linux_stabilize_threads): Turn into ...
1735 (linux_process_target::stabilize_threads): ... this.
1736 (linux_wait_1): Update.
1737 * linux-low.h (class linux_process_target): Update.
1738 * lynx-low.cc (lynx_target_ops): Update.
1739 * nto-low.cc (nto_target_ops): Update.
1740 * win32-low.cc (win32_target_ops): Update.
1741
1742 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1743
1744 Turn process_stratum_target's pause_all and unpause_all ops
1745 into methods of process_target.
1746
1747 * target.h (struct process_stratum_target): Remove the target ops.
1748 (class process_target): Add the target ops.
1749 (pause_all): Update the macro and rename to...
1750 (target_pause_all): ... this.
1751 (unpause_all): Update the macro and rename to...
1752 (target_unpause_all): ... this.
1753 * target.cc (process_target::pause_all): Define.
1754 (process_target::unpause_all): Define.
1755
1756 Update the derived classes and callers below.
1757
1758 * server.cc (handle_status): Update.
1759 * tracepoint.cc (clear_installed_tracepoints): Update.
1760 (cmd_qtdp): Update.
1761 (cmd_qtstart): Update.
1762 (stop_tracing): Update.
1763 (cmd_qtstatus): Update.
1764 (upload_fast_traceframes): Update.
1765 (run_inferior_command): Update.
1766 * linux-low.cc (linux_target_ops): Update.
1767 (linux_pause_all): Turn into ...
1768 (linux_process_target::pause_all): ... this.
1769 (linux_unpause_all): Turn into ...
1770 (linux_process_target::unpause_all): ... this.
1771 (linux_process_target::prepare_to_access_memory): Update.
1772 (linux_process_target::done_accessing_memory): Update.
1773 * linux-low.h (class linux_process_target): Update.
1774 * lynx-low.cc (lynx_target_ops): Update.
1775 * nto-low.cc (nto_target_ops): Update.
1776 * win32-low.cc (win32_target_ops): Update.
1777
1778 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1779
1780 Turn process_stratum_target's get_tib_address op into a method of
1781 process_target.
1782
1783 * target.h (struct process_stratum_target): Remove the target op.
1784 (class process_target): Add the target op. Also add
1785 'supports_get_tib_address'.
1786 * target.cc (process_target::get_tib_address): Define.
1787 (process_target::supports_get_tib_address): Define.
1788
1789 Update the derived classes and callers below.
1790
1791 * server.cc (handle_query): Update.
1792 * linux-low.cc (win32_target_ops): Update.
1793 * lynx-low.cc (lynx_target_ops): Update.
1794 * nto-low.cc (nto_target_ops): Update.
1795 * win32-low.cc (win32_target_ops): Update.
1796 (win32_process_target::supports_get_tib_address): Define.
1797 (win32_get_tib_address): Turn into ...
1798 (win32_process_target::get_tib_address): ... this.
1799 * win32-low.h (class win32_process_target): Update.
1800
1801 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1802
1803 Turn process_stratum_target's thread_stopped op into a method of
1804 process_target.
1805
1806 * target.h (struct process_stratum_target): Remove the target op.
1807 (class process_target): Add the target op. Also add
1808 'supports_thread_stopped'.
1809 (target_thread_stopped): Update the macro.
1810 * target.cc (process_target::thread_stopped): Define.
1811 (process_target::supports_thread_stopped): Define.
1812 (prepare_to_access_memory): Update.
1813
1814 Update the derived classes and callers below.
1815
1816 * server.cc (queue_stop_reply_callback): Update.
1817 * linux-low.cc (linux_target_ops): Update.
1818 (linux_process_target::supports_thread_stopped): Define.
1819 (linux_thread_stopped): Turn into ...
1820 (linux_process_target::thread_stopped): ... this.
1821 * linux-low.h (class linux_process_target): Update.
1822 * lynx-low.cc (lynx_target_ops): Update.
1823 * nto-low.cc (nto_target_ops): Update.
1824 * win32-low.cc (win32_target_ops): Update.
1825
1826 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1827
1828 Turn process_stratum_target's read_pc and write_pc ops into
1829 methods of process_target.
1830
1831 * target.h (struct process_stratum_target): Remove the target ops.
1832 (class process_target): Add the target ops.
1833 * target.cc (process_target::read_pc): Define.
1834 (process_target::write_pc): Define.
1835
1836 Update the derived classes and callers below.
1837
1838 * regcache.cc (regcache_read_pc): Update.
1839 (regcache_write_pc): Update.
1840 * linux-low.cc (linux_target_ops): Update.
1841 (linux_read_pc): Turn into ...
1842 (linux_process_target::read_pc): ... this.
1843 (linux_write_pc): Turn into ...
1844 (linux_process_target::write_pc): ... this.
1845 * linux-low.h (class linux_process_target): Update.
1846 * lynx-low.cc (lynx_target_ops): Update.
1847 * nto-low.cc (nto_target_ops): Update.
1848 * win32-low.cc (win32_target_ops): Update.
1849
1850 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1851
1852 Turn process_stratum_target's supports_tracepoints op into a
1853 method of process_target.
1854
1855 * target.h (struct process_stratum_target): Remove the target op.
1856 (class process_target): Add the target op.
1857 (target_supports_tracepoints): Update the macro.
1858 * target.cc (process_target::supports_tracepoints): Define.
1859
1860 Update the derived classes and callers below.
1861
1862 * linux-low.cc (linux_target_ops): Update.
1863 (linux_supports_tracepoints): Turn into ...
1864 (linux_process_target::supports_tracepoints): ... this.
1865 * linux-low.h (class linux_process_target): Update.
1866 * lynx-low.cc (lynx_target_ops): Update.
1867 * nto-low.cc (nto_target_ops): Update.
1868 * win32-low.cc (win32_target_ops): Update.
1869
1870 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1871
1872 Turn process_stratum_target's process_qsupported op into a method
1873 of process_target.
1874
1875 * target.h (struct process_stratum_target): Remove the target op.
1876 (class process_target): Add the target op.
1877 (target_process_qsupported): Update the macro.
1878 * target.cc (process_target::process_qsupported): Define.
1879
1880 Update the derived classes and callers below.
1881
1882 * linux-low.cc (linux_target_ops): Update.
1883 (linux_process_qsupported): Turn into ...
1884 (linux_process_target::process_qsupported): ... this.
1885 * linux-low.h (class linux_process_target): Update.
1886 * lynx-low.cc (lynx_target_ops): Update.
1887 * nto-low.cc (nto_target_ops): Update.
1888 * win32-low.cc (win32_target_ops): Update.
1889
1890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1891
1892 Turn process_stratum_target's read_loadmap op into a method of
1893 process_target.
1894
1895 * target.h (struct process_stratum_target): Remove the target op.
1896 (class process_target): Add the target op. Also add
1897 'supports_read_loadmap'.
1898 * target.cc (process_target::read_loadmap): Define.
1899 (process_target::supports_read_loadmap): Define.
1900
1901 Update the derived classes and callers below.
1902
1903 * server.cc (handle_qxfer_fdpic): Update.
1904 (handle_query): Update.
1905 * linux-low.cc (linux_target_ops): Update.
1906 (linux_process_target::supports_read_loadmap): Define.
1907 (linux_read_loadmap): Turn into ...
1908 (linux_process_target::read_loadmap): ... this.
1909 * linux-low.h (class linux_process_target): Update.
1910 * lynx-low.cc (lynx_target_ops): Update.
1911 * nto-low.cc (nto_target_ops): Update.
1912 * win32-low.cc (win32_target_ops): Update.
1913
1914 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1915
1916 Turn process_stratum_target's core_of_thread op into a method of
1917 process_target.
1918
1919 * target.h (struct process_stratum_target): Remove the target op.
1920 (class process_target): Add the target op.
1921 (target_core_of_thread): Update the macro.
1922 * target.cc (process_target::core_of_thread): Define.
1923
1924 Update the derived classes and callers below.
1925
1926 * linux-low.cc (linux_target_ops): Update.
1927 (linux_process_target::core_of_thread): Define.
1928 * linux-low.h (class linux_process_target): Update.
1929 * lynx-low.cc (lynx_target_ops): Update.
1930 * nto-low.cc (nto_target_ops): Update.
1931 * win32-low.cc (win32_target_ops): Update.
1932
1933 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1934
1935 Turn process_stratum_target's handle_monitor_command op into a
1936 method of process_target.
1937
1938 * target.h (struct process_stratum_target): Remove the target op.
1939 (class process_target): Add the target op.
1940 (target_handle_monitor_command): Update the macro.
1941 * target.cc (process_target::handle_monitor_command): Define.
1942
1943 Update the derived classes and callers below.
1944
1945 * server.cc (handle_query): Update.
1946 * linux-low.cc (linux_target_ops): Update.
1947 (linux_process_target::handle_monitor_command): Define.
1948 * linux-low.h (class linux_process_target): Update.
1949 * lynx-low.cc (lynx_target_ops): Update.
1950 * nto-low.cc (nto_target_ops): Update.
1951 * win32-low.cc (win32_target_ops): Update.
1952
1953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1954
1955 Turn process_stratum_target's handle_new_gdb_connection op into a
1956 method of process_target.
1957
1958 * target.h (struct process_stratum_target): Remove the target op.
1959 (class process_target): Add the target op.
1960 (target_handle_new_gdb_connection): Update the macro.
1961 * target.cc (process_target::handle_new_gdb_connection): Define.
1962
1963 Update the derived classes and callers below.
1964
1965 * linux-low.cc (linux_target_ops): Update.
1966 (linux_handle_new_gdb_connection): Turn into ...
1967 (linux_process_target::handle_new_gdb_connection): ... this.
1968 * linux-low.h (class linux_process_target): Update.
1969 * lynx-low.cc (lynx_target_ops): Update.
1970 * nto-low.cc (nto_target_ops): Update.
1971 * win32-low.cc (win32_target_ops): Update.
1972
1973 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1974
1975 Turn process_stratum_target's supports_fork_events,
1976 supports_vfork_events, and supports_exec_events ops into methods
1977 of process_target.
1978
1979 * target.h (struct process_stratum_target): Remove the target ops.
1980 (class process_target): Add the target ops.
1981 (target_supports_fork_events): Update the macro.
1982 (target_supports_vfork_events): Update the macro.
1983 (target_supports_exec_events): Update the macro.
1984 * target.cc (process_target::supports_fork_events): Define.
1985 (process_target::supports_vfork_events): Define.
1986 (process_target::supports_exec_events): Define.
1987
1988 Update the derived classes and callers below.
1989
1990 * linux-low.cc (linux_target_ops): Update.
1991 (linux_supports_fork_events): Turn into ...
1992 (linux_process_target::supports_fork_events): ... this.
1993 (linux_supports_vfork_events): Turn into ...
1994 (linux_process_target::supports_vfork_events): ... this.
1995 (linux_supports_exec_events): Turn into ...
1996 (linux_process_target::supports_exec_events): ... this.
1997 * linux-low.h (class linux_process_target): Update.
1998 * lynx-low.cc (lynx_target_ops): Update.
1999 * nto-low.cc (nto_target_ops): Update.
2000 * win32-low.cc (win32_target_ops): Update.
2001
2002 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2003
2004 Turn process_stratum_target's supports_multi_process op into a
2005 method of process_target.
2006
2007 * target.h (struct process_stratum_target): Remove the target op.
2008 (class process_target): Add the target op.
2009 * target.cc (process_target::supports_multi_process): Define.
2010 (target_supports_multi_process): Update.
2011
2012 Update the derived classes and callers below.
2013
2014 * linux-low.cc (linux_target_ops): Update.
2015 (linux_supports_multi_process): Turn into ...
2016 (linux_process_target::supports_multi_process): ... this.
2017 * linux-low.h (class linux_process_target): Update.
2018 * lynx-low.cc (lynx_target_ops): Update.
2019 * nto-low.cc (nto_target_ops): Update.
2020 * win32-low.cc (win32_target_ops): Update.
2021
2022 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2023
2024 Turn process_stratum_target's supports_non_stop, async, and
2025 start_non_stop ops into methods of process_target.
2026
2027 * target.h (struct process_stratum_target): Remove the target ops.
2028 (class process_target): Add the target ops.
2029 (target_supports_non_stop): Update the macro.
2030 (target_async): Update the macro.
2031 (start_non_stop): Remove declaration.
2032 * target.cc (process_target::supports_non_stop): Define.
2033 (process_target::async): Define.
2034 (process_target::start_non_stop): Define.
2035 (start_non_stop): Remove.
2036
2037 Update the derived classes and callers below.
2038
2039 * server.cc (handle_qxfer_siginfo): Update.
2040 (handle_query): Update.
2041 * linux-low.cc (linux_target_ops): Update.
2042 (linux_supports_non_stop): Turn into ...
2043 (linux_process_target::supports_non_stop): ... this.
2044 (linux_async): Turn into ...
2045 (linux_process_target::async): ... this.
2046 (linux_start_non_stop): Turn into ...
2047 (linux_process_target::start_non_stop): ... this.
2048 * linux-low.h (class linux_process_target): Update.
2049 * lynx-low.cc (lynx_target_ops): Update.
2050 * nto-low.cc (nto_target_ops): Update.
2051 (nto_supports_non_stop): Remove; rely on the default behavior
2052 instead.
2053 * win32-low.cc (win32_target_ops): Update.
2054
2055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2056
2057 Turn process_stratum_target's qxfer_siginfo op into a method of
2058 process_target.
2059
2060 * target.h (struct process_stratum_target): Remove the target op.
2061 (class process_target): Add the target op. Also add
2062 'supports_qxfer_siginfo'.
2063 * target.cc (process_target::qxfer_siginfo): Define.
2064 (process_target::supports_qxfer_siginfo): Define.
2065
2066 Update the derived classes and callers below.
2067
2068 * server.cc (handle_qxfer_siginfo): Update.
2069 (handle_query): Update.
2070 * linux-low.cc (linux_target_ops): Update.
2071 (linux_process_target::supports_qxfer_siginfo): Define.
2072 (linux_xfer_siginfo): Turn into ...
2073 (linux_process_target::qxfer_siginfo): ... this.
2074 * linux-low.h (class linux_process_target): Update.
2075 * lynx-low.cc (lynx_target_ops): Update.
2076 * nto-low.cc (nto_target_ops): Update.
2077 * win32-low.cc (win32_target_ops): Update.
2078
2079 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2080
2081 Turn process_stratum_target's qxfer_osdata op into a method of
2082 process_target.
2083
2084 * target.h (struct process_stratum_target): Remove the target op.
2085 (class process_target): Add the target op. Also add
2086 'supports_qxfer_osdata'.
2087 * target.cc (process_target::qxfer_osdata): Define.
2088 (process_target::supports_qxfer_osdata): Define.
2089
2090 Update the derived classes and callers below.
2091
2092 * server.cc (handle_qxfer_osdata): Update.
2093 (handle_query): Update.
2094 * linux-low.cc (linux_target_ops): Update.
2095 (linux_process_target::supports_qxfer_osdata): Define.
2096 (linux_qxfer_osdata): Turn into ...
2097 (linux_process_target::qxfer_osdata): ... this.
2098 * linux-low.h (class linux_process_target): Update.
2099 * lynx-low.cc (lynx_target_ops): Update.
2100 * nto-low.cc (nto_target_ops): Update.
2101 * win32-low.cc (win32_target_ops): Update.
2102
2103 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2104
2105 Turn process_stratum_target's hostio_last_error op into a
2106 method of process_target.
2107
2108 * target.h (struct process_stratum_target): Remove the target op.
2109 (class process_target): Add the target op.
2110 * target.cc: Add "hostio.h" to includes.
2111 (process_target::hostio_last_error): Define.
2112
2113 Update the derived classes and callers below.
2114
2115 * hostio.cc (hostio_error): Update.
2116 * linux-low.cc: Remove "hostio.h" from includes.
2117 (linux_target_ops): Update.
2118 * lynx-low.cc (lynx_target_ops): Update.
2119 * nto-low.cc (nto_target_ops): Update.
2120 * win32-low.h (class win32_process_target): Update.
2121 * win32-low.cc (win32_target_ops): Update.
2122 (wince_hostio_last_error): Turn into ...
2123 (win32_process_target::hostio_last_error): ... this.
2124
2125 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2126
2127 Turn process_stratum_target's get_tls_address op into a method of
2128 process_target.
2129
2130 * target.h (struct process_stratum_target): Remove the target op.
2131 (class process_target): Add the target op. Also add
2132 'supports_get_tls_address'.
2133 * target.cc (process_target::get_tls_address): Define.
2134 (process_target::supports_get_tls_address): Define.
2135
2136 Update the derived classes and callers below.
2137
2138 * server.cc (handle_query): Update.
2139 * linux-low.cc (linux_target_ops): Update.
2140 (linux_process_target::supports_get_tls_address): Define.
2141 (linux_process_target::get_tls_address): Define.
2142 * linux-low.h (class linux_process_target): Update.
2143 * lynx-low.cc (lynx_target_ops): Update.
2144 * nto-low.cc (nto_target_ops): Update.
2145 * win32-low.cc (win32_target_ops): Update.
2146
2147 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2148
2149 Turn process_stratum_target's read_offsets op into a method of
2150 process_target.
2151
2152 * target.h (struct process_stratum_target): Remove the target op.
2153 (class process_target): Add the target op. Also add
2154 'supports_read_offsets'.
2155 * target.cc (process_target::read_offsets): Define.
2156 (process_target::supports_read_offsets): Define.
2157
2158 Update the derived classes and callers below.
2159
2160 * server.cc (handle_query): Update.
2161 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2162 (linux_target_ops): Update.
2163 (linux_process_target::supports_read_offsets): Define.
2164 (linux_read_offsets): Turn into ...
2165 (linux_process_target::read_offsets): ... this.
2166 * linux-low.h (class linux_process_target): Update.
2167 * lynx-low.cc (lynx_target_ops): Update.
2168 * nto-low.cc (nto_target_ops): Update.
2169 * win32-low.cc (win32_target_ops): Update.
2170
2171 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2172
2173 Turn process_stratum_target's stopped_by_watchpoint and
2174 stopped_data_address ops into methods of process_target.
2175
2176 * target.h (struct process_stratum_target): Remove the target ops.
2177 (class process_target): Add the target ops.
2178 * target.cc (process_target::stopped_by_watchpoint): Define.
2179 (process_target::stopped_data_address): Define.
2180
2181 Update the derived classes and callers below.
2182
2183 * remote-utils.cc (prepare_resume_reply): Update.
2184 * linux-low.cc (linux_target_ops): Update.
2185 (linux_stopped_by_watchpoint): Turn into ...
2186 (linux_process_target::stopped_by_watchpoint): ... this.
2187 (linux_stopped_data_address): Turn into ...
2188 (linux_process_target::stopped_data_address): ... this.
2189 * linux-low.h (class linux_process_target): Update.
2190 * lynx-low.cc (lynx_target_ops): Update.
2191 * nto-low.cc (nto_target_ops): Update.
2192 (nto_stopped_by_watchpoint): Turn into ...
2193 (nto_process_target::stopped_by_watchpoint): ... this.
2194 (nto_stopped_data_address): Turn into ...
2195 (nto_process_target::stopped_data_address): ... this.
2196 * nto-low.h (class nto_process_target): Update.
2197 * win32-low.cc (win32_target_ops): Update.
2198 (win32_stopped_by_watchpoint): Turn into ...
2199 (win32_process_target::stopped_by_watchpoint): ... this.
2200 (win32_stopped_data_address): Turn into ...
2201 (win32_process_target::stopped_data_address): ... this.
2202 * win32-low.h (class win32_process_target): Update.
2203
2204 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2205
2206 Turn process_stratum_target's supports_hardware_single_step op into
2207 a method of process_target.
2208
2209 * target.h (struct process_stratum_target): Remove the target op.
2210 (class process_target): Add the target op.
2211 (target_supports_hardware_single_step): Update the macro.
2212 (target_can_do_hardware_single_step): Remove declaration.
2213 * target.cc (process_target::supports_hardware_single_step): Define.
2214 (target_can_do_hardware_single_step): Remove.
2215
2216 Update the derived classes and callers below.
2217
2218 * linux-low.h (class linux_process_target): Update.
2219 * linux-low.cc (linux_target_ops): Update.
2220 (linux_supports_hardware_single_step): Turn into ...
2221 (linux_process_target::supports_hardware_single_step): ... this.
2222 * lynx-low.h (class lynx_process_target): Update.
2223 * lynx-low.cc (lynx_target_ops): Update.
2224 (lynx_process_target::supports_hardware_single_step): Define.
2225 * nto-low.h (class nto_process_target): Update.
2226 * nto-low.cc (nto_target_ops): Update.
2227 (nto_process_target::supports_hardware_single_step): Define.
2228 * win32-low.h (class win32_process_target): Update.
2229 * win32-low.cc (win32_target_ops): Update.
2230 (win32_process_target::supports_hardware_single_step): Define.
2231
2232 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2233
2234 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2235 ops into methods of process_target.
2236
2237 * target.h (struct process_stratum_target): Remove the target ops.
2238 (class process_target): Add the target ops.
2239 (target_stopped_by_hw_breakpoint): Update the macro.
2240 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2241 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2242 (process_target::supports_stopped_by_hw_breakpoint): Define.
2243
2244 Update the derived classes and callers below.
2245
2246 * linux-low.cc (linux_target_ops): Update.
2247 (linux_stopped_by_hw_breakpoint): Turn into ...
2248 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2249 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2250 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2251 * linux-low.h (class linux_process_target): Update.
2252 * lynx-low.cc (lynx_target_ops): Update.
2253 * nto-low.cc (nto_target_ops): Update.
2254 * win32-low.cc (win32_target_ops): Update.
2255
2256 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2257
2258 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2259 ops into methods of process_target.
2260
2261 * target.h (struct process_stratum_target): Remove the target ops.
2262 (class process_target): Add the target ops.
2263 (target_stopped_by_sw_breakpoint): Update the macro.
2264 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2265 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2266 (process_target::supports_stopped_by_sw_breakpoint): Define.
2267
2268 Update the derived classes and callers below.
2269
2270 * linux-low.cc (linux_target_ops): Update.
2271 (linux_stopped_by_sw_breakpoint): Turn into ...
2272 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2273 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2274 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2275 * linux-low.h (class linux_process_target): Update.
2276 * lynx-low.cc (lynx_target_ops): Update.
2277 * nto-low.cc (nto_target_ops): Update.
2278 * win32-low.cc (win32_target_ops): Update.
2279
2280 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2281
2282 Turn process_stratum_target's insert_point and remove_point ops
2283 into methods of process_target.
2284
2285 * target.h (struct process_stratum_target): Remove the target ops.
2286 (class process_target): Add the target ops.
2287 * target.cc (process_target::insert_point): Define.
2288 (process_target::remove_point): Define.
2289
2290 Update the derived classes and callers below.
2291
2292 * mem-break.cc (set_raw_breakpoint_at): Update.
2293 (delete_raw_breakpoint): Update.
2294 (uninsert_raw_breakpoint): Update.
2295 (reinsert_raw_breakpoint): Update.
2296 * linux-low.cc (linux_target_ops): Update.
2297 (linux_insert_point): Turn into ...
2298 (linux_process_target::insert_point): ... this.
2299 (linux_remove_point): Turn into ...
2300 (linux_process_target::remove_point): ... this.
2301 * linux-low.h (class linux_process_target): Update.
2302 * lynx-low.cc (lynx_target_ops): Update.
2303 * nto-low.cc (nto_target_ops): Update.
2304 (nto_insert_point): Turn into ...
2305 (nto_process_target::insert_point): ... this.
2306 (nto_remove_point): Turn into ...
2307 (nto_process_target::remove_point): ... this.
2308 * nto-low.h (class nto_process_target): Update.
2309 * win32-low.cc (win32_target_ops): Update.
2310 (win32_insert_point): Turn into ...
2311 (win32_process_target::insert_point): ... this.
2312 (win32_remove_point): Turn into ...
2313 (win32_process_target::remove_point): ... this.
2314 * win32-low.h (class win32_process_target): Update.
2315
2316 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2317
2318 Turn process_stratum_target's supports_z_point_type op into a
2319 method of process_target.
2320
2321 * target.h (struct process_stratum_target): Remove the target op.
2322 (class process_target): Add the target op.
2323 * target.cc (process_target::supports_z_point_type): Define.
2324
2325 Update the derived classes and callers below.
2326
2327 * mem-break.cc (z_type_supported): Update.
2328 * linux-low.cc (linux_target_ops): Update.
2329 (linux_supports_z_point_type): Turn into ...
2330 (linux_process_target::supports_z_point_type): ... this.
2331 * linux-low.h (class linux_process_target): Update.
2332 * lynx-low.cc (lynx_target_ops): Update.
2333 * nto-low.cc (nto_target_ops): Update.
2334 (nto_supports_z_point_type): Turn into ...
2335 (nto_process_target::supports_z_point_type): ... this.
2336 * nto-low.h (class nto_process_target): Update.
2337 * win32-low.cc (win32_target_ops): Update.
2338 (win32_supports_z_point_type): Turn into ...
2339 (win32_process_target::supports_z_point_type): ... this.
2340 * win32-low.h (class win32_process_target): Update.
2341
2342 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2343
2344 Turn process_stratum_target's read_auxv op into a method of
2345 process_target.
2346
2347 * target.h (class process_stratum_target): Remove the target op.
2348 (struct process_target): Add the target op. Also add
2349 'supports_read_auxv'.
2350 * target.cc (process_target::read_auxv): Define.
2351 (process_target::supports_read_auxv): Define.
2352
2353 Update the derived classes and callers below.
2354
2355 * server.cc (handle_qxfer_auxv): Update.
2356 (handle_query): Update.
2357 * linux-low.cc (linux_target_ops): Update.
2358 (linux_process_target::supports_read_auxv): Define.
2359 (linux_read_auxv): Turn into ...
2360 (linux_process_target::read_auxv): ... this.
2361 * linux-low.h (class linux_process_target): Update.
2362 * lynx-low.cc (lynx_target_ops): Update.
2363 * nto-low.cc (nto_target_ops): Update.
2364 (nto_process_target::supports_read_auxv): Define.
2365 (nto_read_auxv): Turn into ...
2366 (nto_process_target::read_auxv): ... this.
2367 * nto-low.h (class nto_process_target): Update.
2368 * win32-low.cc (win32_target_ops): Update.
2369
2370 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2371
2372 Turn process_stratum_target's request_interrupt op into a method of
2373 process_target.
2374
2375 * target.h (struct process_stratum_target): Remove the target op.
2376 (class process_target): Add the target op.
2377
2378 Update the derived classes and callers below.
2379
2380 * remote-utils.cc (putpkt_binary_1): Update.
2381 (input_interrupt): Update.
2382 (getpkt): Update.
2383 * server.cc (handle_v_requests): Update.
2384 * linux-low.cc (linux_target_ops): Update.
2385 (linux_request_interrupt): Turn into ...
2386 (linux_process_target::request_interrupt): ... this.
2387 * linux-low.h (class linux_process_target): Update.
2388 * lynx-low.cc (lynx_target_ops): Update.
2389 (lynx_request_interrupt): Turn into ...
2390 (lynx_process_target::request_interrupt): ... this.
2391 * lynx-low.h (class lynx_process_target): Update.
2392 * nto-low.cc (nto_target_ops): Update.
2393 (nto_request_interrupt): Turn into ...
2394 (nto_process_target::request_interrupt): ... this.
2395 * nto-low.h (class nto_process_target): Update.
2396 * win32-low.cc (win32_target_ops): Update.
2397 (win32_request_interrupt): Turn into ...
2398 (win32_process_target::request_interrupt): ... this.
2399 * win32-low.h (class win32_process_target): Update.
2400
2401 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2402
2403 Turn process_stratum_target's look_up_symbols op into a method of
2404 process_target.
2405
2406 * target.h (struct process_stratum_target): Remove the target op.
2407 (class process_target): Add the target op.
2408 * target.cc (process_target::look_up_symbols): Define.
2409
2410 Update the derived classes and callers below.
2411
2412 * server.cc (handle_query): Update.
2413 * linux-low.cc (linux_target_ops): Update.
2414 (linux_look_up_symbols): Turn into ...
2415 (linux_process_target::look_up_symbols): ... this.
2416 * linux-low.h (class linux_process_target): Update.
2417 * lynx-low.cc (lynx_target_ops): Update.
2418 * nto-low.cc (nto_target_ops): Update.
2419 * win32-low.cc (win32_target_ops): Update.
2420
2421 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2422
2423 Turn process_stratum_target's read_memory and write_memory
2424 ops into methods of process_target.
2425
2426 * target.h (struct process_stratum_target): Remove the target ops.
2427 (class process_target): Add the target ops.
2428
2429 Update the derived classes and callers below.
2430
2431 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
2432 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
2433 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
2434 (arm_get_syscall_trapinfo): Update.
2435 * linux-cris-low.cc (cris_breakpoint_at): Update.
2436 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
2437 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
2438 * linux-mips-low.cc (mips_breakpoint_at): Update.
2439 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
2440 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
2441 * linux-sh-low.cc (sh_breakpoint_at): Update.
2442 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
2443 (sparc_store_gregset_from_stack): Update.
2444 (sparc_breakpoint_at): Update.
2445 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
2446 * linux-tile-low.cc (tile_breakpoint_at): Update.
2447 * linux-x86-low.cc (x86_breakpoint_at): Update.
2448 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
2449 * mem-brea.cc (insert_memory_breakpoint): Update.
2450 (validate_inserted_breakpoint): Update.
2451 * target.cc (read_inferior_memory): Update.
2452 (target_write_memory): Update.
2453 * linux-low.cc (linux_target_ops): Update.
2454 (linux_read_memory): Make a wrapper around the read_memory target
2455 op call.
2456 (linux_process_target::read_memory): Rename from linux_read_memory.
2457 (linux_write_memory): Turn into ...
2458 (linux_process_target::write_memory): ... this.
2459 * linux-low.h (class linux_process_target): Update.
2460 * lynx-low.cc (lynx_target_ops): Update.
2461 (lynx_read_memory): Turn into ...
2462 (lynx_process_target::read_memory): ... this.
2463 (lynx_write_memory): Turn into ...
2464 (lynx_process_target::write_memory): ... this.
2465 * lynx-low.h (class lynx_process_target): Update.
2466 * nto-low.cc (nto_target_ops): Update.
2467 (nto_read_memory): Turn into ...
2468 (nto_process_target::read_memory): ... this.
2469 (nto_write_memory): Turn into ...
2470 (nto_process_target::write_memory): ... this.
2471 * nto-low.h (class nto_process_target): Update.
2472 * win32-low.cc (win32_target_ops): Update.
2473 (win32_read_inferior_memory): Turn into ...
2474 (win32_process_target::read_memory): ... this.
2475 (win32_write_inferior_memory): Turn into ...
2476 (win32_process_target::write_memory): ... this.
2477 * win32-low.h (class win32_process_target): Update.
2478
2479 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2480
2481 Turn process_stratum_target's prepare_to_access_memory and
2482 done_accessing_memory ops into methods of process_target.
2483
2484 * target.h (struct process_stratum_target): Remove the target ops.
2485 (class process_target): Add the target ops.
2486 * target.cc (process_target::prepare_to_access_memory): Define.
2487 (process_target::done_accessing_memory): Define.
2488 (prepare_to_access_memory): Update.
2489 (done_accessing_memory): Update.
2490
2491 Update the derived classes and callers below.
2492
2493 * linux-low.cc (linux_target_ops): Update.
2494 (linux_prepare_to_access_memory): Turn into ...
2495 (linux_process_target::prepare_to_access_memory): ... this.
2496 (linux_done_accessing_memory): Turn into ...
2497 (linux_process_target::done_accessing_memory): ... this.
2498 * linux-low.h (class linux_process_target): Update.
2499 * lynx-low.cc (lynx_target_ops): Update.
2500 * nto-low.cc (nto_target_ops): Update.
2501 * win32-low.cc (win32_target_ops): Update.
2502
2503 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2504
2505 Turn process_stratum_target's fetch_registers and store_registers
2506 ops into methods of process_target.
2507
2508 * target.h (struct process_stratum_target): Remove the target ops.
2509 (class process_target): Add the target ops.
2510 (fetch_inferior_registers): Update the macro.
2511 (store_inferior_registers): Update the macro.
2512
2513 Update the derived classes and callers below.
2514
2515 * linux-low.cc (linux_target_ops): Update.
2516 (linux_fetch_registers): Turn into ...
2517 (linux_process_target::fetch_registers): ... this.
2518 (linux_store_registers): Turn into ...
2519 (linux_process_target::store_registers): ... this.
2520 * linux-low.h (class linux_process_target): Update.
2521 * lynx-low.cc (lynx_target_ops): Update.
2522 (lynx_fetch_registers): Turn into ...
2523 (lynx_process_target::fetch_registers): ... this.
2524 (lynx_store_registers): Turn into ...
2525 (lynx_process_target::store_registers): ... this.
2526 * lynx-low.h (class lynx_process_target): Update.
2527 * nto-low.cc (nto_target_ops): Update.
2528 (nto_fetch_registers): Turn into ...
2529 (nto_process_target::fetch_registers): ... this.
2530 (nto_store_registers): Turn into ...
2531 (nto_process_target::store_registers): ... this.
2532 * nto-low.h (class nto_process_target): Update.
2533 * win32-low.cc (win32_target_ops): Update.
2534 (win32_fetch_inferior_registers): Turn into ...
2535 (win32_process_target::fetch_registers): ... this.
2536 (win32_store_inferior_registers): Turn into ...
2537 (win32_process_target::store_registers): ... this.
2538 * win32-low.h (class win32_process_target): Update.
2539
2540 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2541
2542 Turn process_stratum_target's wait op into a method of
2543 process_target.
2544
2545 * target.h (struct process_stratum_target): Remove the target op.
2546 (class process_target): Add the target op.
2547
2548 Update the derived classes and callers below.
2549
2550 * target.cc (target_wait): Update.
2551 * linux-low.cc (linux_target_ops): Update.
2552 (linux_wait): Turn into ...
2553 (linux_process_target::wait): ... this.
2554 * linux-low.h (class linux_process_target): Update.
2555 * lynx-low.cc (lynx_target_ops): Update.
2556 (lynx_wait): Turn into ...
2557 (lynx_process_target::wait): ... this.
2558 * lynx-low.h (class lynx_process_target): Update.
2559 * nto-low.cc (nto_target_ops): Update.
2560 (nto_wait): Turn into ...
2561 (nto_process_target::wait): ... this.
2562 * nto-low.h (class nto_process_target): Update.
2563 * win32-low.cc (win32_target_ops): Update.
2564 (win32_wait): Turn into ...
2565 (win32_process_target::wait): ... this.
2566 (do_initial_child_stuff): Update.
2567 * win32-low.h (class win32_process_target): Update.
2568
2569 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2570
2571 Turn process_stratum_target's resume op into a method of
2572 process_target.
2573
2574 * target.h (struct process_stratum_target): Remove the target op.
2575 (class process_target): Add the target op.
2576
2577 Update the derived classes and callers below.
2578
2579 * server.cc (resume): Update.
2580 * target.cc (target_stop_and_wait): Update.
2581 (target_continue_no_signal): Update.
2582 (target_continue): Update.
2583 * linux-low.cc (linux_target_ops): Update.
2584 (linux_resume): Turn into ...
2585 (linux_process_target::resume): ... this.
2586 * linux-low.h (class linux_process_target): Update.
2587 * lynx-low.cc (lynx_target_ops): Update.
2588 (lynx_resume): Turn into ...
2589 (lynx_process_target::resume): ... this.
2590 * lynx-low.h (class lynx_process_target): Update.
2591 * nto-low.cc (nto_target_ops): Update.
2592 (nto_resume): Turn into ...
2593 (nto_process_target::resume): ... this.
2594 * nto-low.h (class nto_process_target): Update.
2595 * win32-low.cc (win32_target_ops): Update.
2596 (win32_resume): Turn into ...
2597 (win32_process_target::resume): ... this.
2598 (win32_process_target::detach): Update.
2599 (do_initial_child_stuff): Update.
2600 * win32-low.h (class win32_process_target): Update.
2601
2602 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2603
2604 Turn process_stratum_target's thread_alive op into a method of
2605 process_target.
2606
2607 * target.h (struct process_stratum_target): Remove the target op.
2608 (class process_target): Add the target op.
2609 (mythread_alive): Update the macro.
2610
2611 Update the derived classes and callers below.
2612
2613 * linux-low.cc (linux_target_ops): Update.
2614 (linux_thread_alive): Turn into ...
2615 (linux_process_target::thread_alive): ... this.
2616 (wait_for_sigstop): Update.
2617 * linux-low.h (class linux_process_target): Update.
2618 * lynx-low.cc (lynx_target_ops): Update.
2619 (lynx_thread_alive): Turn into ...
2620 (lynx_process_target::thread_alive): ... this.
2621 * lynx-low.h (class lynx_process_target): Update.
2622 * nto-low.cc (nto_target_ops): Update.
2623 (nto_thread_alive): Turn into ...
2624 (nto_process_target::thread_alive): ... this.
2625 * nto-low.h (class nto_process_target): Update.
2626 * win32-low.cc (win32_target_ops): Update.
2627 (win32_thread_alive): Turn into ...
2628 (win32_process_target::thread_alive): ... this.
2629 * win32-low.h (class win32_process_target): Update.
2630
2631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2632
2633 Turn process_stratum_target's join op into a method of
2634 process_target.
2635
2636 * target.h (struct process_stratum_target): Remove the target op.
2637 (class process_target): Add the target op.
2638 (join_inferior): Update the macro.
2639
2640 Update the derived classes and callers below.
2641
2642 * linux-low.cc (linux_target_ops): Update.
2643 (linux_join): Turn into ...
2644 (linux_process_target::join): ... this.
2645 * linux-low.h (class linux_process_target): Update.
2646 * lynx-low.cc (lynx_target_ops): Update.
2647 (lynx_join): Turn into ...
2648 (lynx_process_target::join): ... this.
2649 * lynx-low.h (class lynx_process_target): Update.
2650 * nto-low.cc (nto_target_ops): Update.
2651 (nto_process_target::join): Define.
2652 * nto-low.h (class nto_process_target): Update.
2653 * win32-low.cc (win32_target_ops): Update.
2654 (win32_join): Turn into ...
2655 (win32_process_target::join): ... this.
2656 * win32-low.h (class win32_process_target): Update.
2657
2658 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659
2660 Turn process_stratum_target's mourn op into a method of
2661 process_target.
2662
2663 * target.h (struct process_stratum_target): Remove the target op.
2664 (class process_target): Add the target op.
2665
2666 Update the derived classes and callers below.
2667
2668 * target.cc (target_mourn_inferior): Update.
2669 * linux-low.cc (linux_target_ops): Update.
2670 (linux_mourn): Turn into ...
2671 (linux_process_target::mourn): ... this.
2672 (handle_extended_wait): Update.
2673 (linux_process_target::kill): Update.
2674 (linux_process_target::detach): Update.
2675 * linux-low.h (class linux_process_target): Update.
2676 * lynx-low.cc (lynx_target_ops): Update.
2677 (lynx_mourn): Turn into ...
2678 (lynx_process_target::mourn): ... this.
2679 * lynx-low.h (class lynx_process_target): Update.
2680 * nto-low.cc (nto_target_ops): Update.
2681 (nto_mourn): Turn into ...
2682 (nto_process_target::mourn): ... this.
2683 * nto-low.h (class nto_process_target): Update.
2684 * win32-low.cc (win32_target_ops): Update.
2685 (win32_mourn): Turn into ...
2686 (win32_process_target::mourn): ... this.
2687 * win32-low.h (class win32_process_target): Update.
2688
2689 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2690
2691 Turn process_stratum_target's detach op into a method of
2692 process_target.
2693
2694 * target.h (struct process_stratum_target): Remove the target op.
2695 (class process_target): Add the target op.
2696 (detach_inferior): Update the macro.
2697
2698 Update the derived classes and callers below.
2699
2700 * linux-low.cc (linux_target_ops): Update.
2701 (linux_detach): Turn into ...
2702 (linux_process_target::detach): ... this.
2703 * linux-low.h (class linux_process_target): Update.
2704 * lynx-low.cc (lynx_target_ops): Update.
2705 (lynx_detach): Turn into ...
2706 (lynx_process_target::detach): ... this.
2707 * lynx-low.h (class lynx_process_target): Update.
2708 * nto-low.cc (nto_target_ops): Update.
2709 (nto_detach): Turn into ...
2710 (nto_process_target::detach): ... this.
2711 * nto-low.h (class nto_process_target): Update.
2712 * win32-low.cc (win32_target_ops): Update.
2713 (win32_detach): Turn into ...
2714 (win32_process_target::detach): ... this.
2715 * win32-low.h (class win32_process_target): Update.
2716
2717 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2718
2719 Turn process_stratum_target's kill op into a method of
2720 process_target.
2721
2722 * target.h (struct process_stratum_target): Remove the target op.
2723 (class process_target): Add the target op.
2724
2725 Update the derived classes and callers below.
2726
2727 * target.cc (kill_inferior): Update.
2728 * linux-low.cc (linux_target_ops): Update.
2729 (linux_kill): Turn into ...
2730 (linux_process_target::kill): ... this.
2731 * linux-low.h (class linux_process_target): Update.
2732 * lynx-low.cc (lynx_target_ops): Update.
2733 (lynx_kill): Turn into ...
2734 (lynx_process_target::kill): ... this.
2735 * lynx-low.h (class lynx_process_target): Update.
2736 * nto-low.cc (nto_target_ops): Update.
2737 (nto_kill): Turn into ...
2738 (nto_process_target::kill): ... this.
2739 * nto-low.h (class nto_process_target): Update.
2740 * win32-low.cc (win32_target_ops): Update.
2741 (win32_kill): Turn into ...
2742 (win32_process_target::kill): ... this.
2743 * win32-low.h (class win32_process_target): Update.
2744
2745 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2746
2747 Turn process_stratum_target's attach op into a method of
2748 process_target.
2749
2750 * target.h (struct process_stratum_target): Remove the target op.
2751 (class process_target): Add the target op.
2752 (myattach): Update the macro.
2753
2754 Update the derived classes and callers below.
2755
2756 * linux-low.cc (linux_target_ops): Update.
2757 (linux_attach): Turn into ...
2758 (linux_process_target::attach): ... this.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 (lynx_attach): Turn into ...
2762 (lynx_process_target::attach): ... this.
2763 * lynx-low.h (class lynx_process_target): Update.
2764 * nto-low.cc (nto_target_ops): Update.
2765 (nto_attach): Turn into ...
2766 (nto_process_target::attach): ... this.
2767 * nto-low.h (class nto_process_target): Update.
2768 * win32-low.cc (win32_target_ops): Update.
2769 (win32_attach): Turn into ...
2770 (win32_process_target::attach): ... this.
2771 * win32-low.h (class win32_process_target): Update.
2772
2773 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2774
2775 Turn process_stratum_target's post_create_inferior op into a method
2776 of process_target.
2777
2778 * target.h (struct process_stratum_target): Remove the target op.
2779 (class process_target): Add the target op.
2780 (target_post_create_inferior): Update the macro.
2781 * target.cc (process_target::post_create_inferior): Define.
2782
2783 Update the derived classes and callers below.
2784
2785 * linux-low.cc (linux_target_ops): Update.
2786 (linux_post_create_inferior): Turn into ...
2787 (linux_process_target::post_create_inferior): ... this.
2788 * linux-low.h (class linux_process_target): Update.
2789 * lynx-low.cc (lynx_target_ops): Update.
2790 * nto-low.cc (nto_target_ops): Update.
2791 * win32-low.cc (win32_target_ops): Update.
2792
2793 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2794
2795 Turn process_stratum_target's create_inferior op into a method of
2796 process_target.
2797
2798 * target.h (struct process_stratum_target): Remove the target op.
2799 (class process_target): Add the target op.
2800 (create_inferior): Rename the macro to ...
2801 (target_create_inferior): ... this.
2802
2803 Update the derived classes and callers below.
2804
2805 * server.cc (handle_v_run): Update.
2806 (captured_main): Update.
2807 (process_serial_event): Update.
2808 * linux-low.cc (linux_target_ops): Update.
2809 (linux_create_inferior): Turn into ...
2810 (linux_process_target::create_inferior): ... this.
2811 * linux-low.h (class linux_process_target): Update.
2812 * lynx-low.cc (lynx_target_ops): Update.
2813 (lynx_create_inferior): Turn into ...
2814 (lynx_process_target::create_inferior): ... this.
2815 * lynx-low.h (class lynx_process_target): Update.
2816 * nto-low.cc (nto_target_ops): Update.
2817 (nto_create_inferior): Turn into ...
2818 (nto_process_target::create_inferior): ... this.
2819 * nto-low.h (class nto_process_target): Update.
2820 * win32-low.cc (win32_target_ops): Update.
2821 (win32_create_inferior): Turn into ...
2822 (win32_process_target::create_inferior): ... this.
2823 * win32-low.h (class win32_process_target): Update.
2824
2825 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2826
2827 * target.h (class process_target): New class definition.
2828 (struct process_stratum_target) <pt>: New field with type
2829 'process_target*'.
2830 * linux-low.h (class linux_process_target): Define as a derived
2831 class of 'process_target'.
2832 * linux-low.cc (linux_target_ops): Add a linux_process_target*
2833 as the 'pt' field.
2834 * lynx-low.h (class lynx_process_target): Define as a derived
2835 class of 'process_target'.
2836 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
2837 as the 'pt' field.
2838 * nto-low.h (class nto_process_target): Define as a derived
2839 class of 'process_target'.
2840 * nto-low.cc (nto_target_ops): Add an nto_process_target*
2841 as the 'pt' field.
2842 * win32-low.h (class win32_process_target): Define as a derived
2843 class of 'process_target'.
2844 * win32-low.cc (win32_target_ops): Add a win32_process_target*
2845 as the 'pt' field.
2846
2847 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * configure: Regenerate.
2850
2851 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
2852 Andrew Burgess <andrew.burgess@embecosm.com>
2853
2854 * linux-riscv-low.cc: New file.
2855 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
2856 and nat/riscv-linux-tdesc.c.
2857 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
2858 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
2859 Define.
2860
2861 2020-02-14 Tom Tromey <tom@tromey.com>
2862
2863 * acinclude.m4: Don't include acx_configure_dir.m4.
2864 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
2865 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
2866 (all, install-only, uninstall, clean-info, clean)
2867 (maintainer-clean): Don't recurse.
2868 (subdir_do, all-lib): Remove.
2869 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
2870 (GNULIB_H): Remove.
2871 (generated_files): Update.
2872 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
2873 * configure: Rebuild.
2874 * configure.ac: Don't configure gnulib or libiberty.
2875 (GNULIB): Update.
2876
2877 2020-02-14 Eli Zaretskii <eliz@gnu.org>
2878
2879 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
2880 preparing the command line for CreateProcess.
2881 (win32_create_inferior): Reflect the program name in debugging
2882 output that shows the process and its command line.
2883
2884 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * Makefile.in: Rename source files from .c to .cc.
2887 * %.c: Rename to %.cc.
2888 * configure.ac: Rename server.c to server.cc.
2889 * configure: Re-generate.
2890
2891 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * Makefile.in: Rename gdbsupport source files from .c to .cc.
2894
2895 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
2896
2897 * win32-low.c (win32_create_inferior): Set signal_pid.
2898
2899 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
2900 Pedro Alves <palves@redhat.com>
2901
2902 Skip building gdbserver in a cross-configuration.
2903 * configure.srv: Set $gdbserver_host depending on whether $target
2904 is $host. Use $gdbserver_host instead of $host.
2905
2906 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * configure: Re-generate.
2909
2910 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * configure: Re-generate.
2913
2914 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2915
2916 * acinclude.m4: Update warning.m4 path.
2917
2918 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2919
2920 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
2921 (handle_exception): Set siginfo_er.
2922 (win32_xfer_siginfo): New function.
2923
2924 2020-02-07 Tom Tromey <tom@tromey.com>
2925 Pedro Alves <palves@redhat.com>
2926
2927 * README: Update build documentation.
2928 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
2929 host, not target.
2930 * configure.ac: Update paths.
2931 * configure: Rebuild.
2932 * acinclude.m4: Update paths.
2933 * Makefile.in: Update include paths.
2934 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
2935 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
2936 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
2937 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
2938 (%-generated.c): Update paths.
2939 * Move entire directory from ../gdb/gdbserver.
2940
2941 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
2942
2943 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2944
2945 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2946
2947 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2948 assignment instead of srv_linux_obj.
2949
2950 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
2951
2952 * server.c (handle_qxfer_libraries): Write segment-address with
2953 paddress.
2954
2955 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
2956
2957 * Makefile.in (install-strip): New target.
2958 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
2959 * aclocal.m4: Regenerate.
2960 * configure: Regenerate.
2961 * configure.ac: Add AM_PROG_INSTALL_STRIP.
2962
2963 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2964
2965 * Makefile.in (SFILES): Adjust paths to point to real files.
2966 (OBS): Move waitstatus.o to target/waitstatus.o.
2967 (TAGS): Transform paths appropriately.
2968 (%.o): Rename to...
2969 (nat/%.o): ... this pattern rule.
2970 (%.o): Rename to...
2971 (target/%.o): ... this pattern rule.
2972 * configure.srv: Adjust paths throughout to include nat/ prefix
2973 with the revant files.
2974 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
2975 * configure: Regenerate.
2976
2977 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2978
2979 * Makefile.in (TAGS): Remove config files from the recipe.
2980
2981 2020-01-14 Tom Tromey <tom@tromey.com>
2982
2983 * configure: Rebuild.
2984 * configure.ac: Remove any checks that were added to common.m4.
2985 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
2986 lib-link.m4.
2987
2988 2020-01-14 Tom Tromey <tom@tromey.com>
2989
2990 * server.h: Include config.h.
2991 * gdbreplay.c: Include config.h.
2992 * configure: Rebuild.
2993 * configure.ac: Don't source common.host.
2994 * acinclude.m4: Update path.
2995 * Makefile.in (INCSUPPORT): New variable.
2996 (INCLUDE_CFLAGS): Add INCSUPPORT.
2997 (SFILES): Update paths.
2998 (version-generated.c): Update path to create-version.sh.
2999 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3000
3001 2020-01-14 Tom Tromey <tom@tromey.com>
3002
3003 * configure.ac (LIBS): Use WIN32APILIBS.
3004 (USE_WIN32API): Don't define.
3005 * configure: Rebuild.
3006
3007 2020-01-14 Tom Tromey <tom@tromey.com>
3008
3009 * configure: Rebuild.
3010
3011 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * Makefile.in (%-generated.c): Remove rule for files from
3014 regformats/i386.
3015
3016 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * configure: Re-generate.
3019
3020 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3021
3022 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3023 Define to static.
3024 * tracepoint.c (stop_tracing, flush_trace_buffer,
3025 about_to_request_buffer_space, get_trace_state_variable_value,
3026 set_trace_state_variable_value, gdb_collect): Add declaration.
3027
3028 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3031 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3032 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3033 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3034 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3035 static.
3036
3037 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3038
3039 * inferiors.c: Include gdbsupport/common-inferior.h.
3040
3041 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3042
3043 * hostio-errno.c: Include hostio.h.
3044
3045 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3046
3047 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3048 prerequisite.
3049
3050 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3051
3052 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3053 * linux-arm-tdesc.h: Include arch/arm.h.
3054
3055 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3058
3059 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3060
3061 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3062 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3063
3064 2020-01-10 Pedro Alves <palves@redhat.com>
3065
3066 * fork-child.c (post_fork_inferior): Pass target down to
3067 startup_inferior.
3068 * inferiors.c (switch_to_thread): Add process_stratum_target
3069 parameter.
3070 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3071 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3072 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3073 * remote-utils.c (prepare_resume_reply): Pass the target to
3074 switch_to_thread.
3075 * target.c (the_target): Now a process_stratum_target.
3076 (done_accessing_memory): Pass the target to switch_to_thread.
3077 (set_target_ops): Ajust to use process_stratum_target.
3078 * target.h (struct target_ops): Rename to ...
3079 (struct process_stratum_target): ... this.
3080 (the_target, set_target_ops): Adjust.
3081 (prepare_to_access_memory): Adjust comment.
3082 * win32-low.c (child_xfer_memory): Adjust to use
3083 process_stratum_target.
3084 (win32_target_ops): Now a process_stratum_target.
3085
3086 2020-01-06 Eli Zaretskii <eliz@gnu.org>
3087 Pedro Alves <palves@redhat.com>
3088
3089 * win32-low.c (get_child_debug_event): Extract the fatal exception
3090 from the exit status and convert to the equivalent Posix signal
3091 number.
3092 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3093 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3094
3095 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3096
3097 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3098
3099 2020-01-01 Joel Brobecker <brobecker@adacore.com>
3100
3101 * server.c (gdbserver_version): Change copyright year to 2020.
3102 * gdbreplay.c (gdbreplay_version): Likewise.
3103
3104 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3105
3106 * configure: Regenerate.
3107 * configure.ac: Quote variable arguments of test.
3108
3109 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3110
3111 * Makefile.in: Fix build with GNU Make 3.81
3112
3113 2019-12-16 Tom Tromey <tromey@adacore.com>
3114
3115 * server.c (get_exec_file): Constify result.
3116
3117 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3118
3119 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3120 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3121 * config.in: Regenerate.
3122 * configure: Regenerate.
3123 * configure.ac: Don't check for strerror.
3124 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3125 Call safe_strerror instead of strerror.
3126 * server.h (strerror): Remove this now-unnecessary declaration.
3127 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3128 strerror.
3129 (gdb_agent_helper_thread): Likewise.
3130 * utils.c (perror_with_name): Likewise.
3131
3132 2019-11-26 Tom Tromey <tom@tromey.com>
3133
3134 * configure, config.in: Rebuild.
3135
3136 2019-11-26 Tom Tromey <tom@tromey.com>
3137
3138 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3139 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3140 gdb_sigmask.
3141 * configure, config.in: Rebuild.
3142
3143 2019-11-26 Tom Tromey <tom@tromey.com>
3144
3145 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3146 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3147 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3148 * acinclude.m4: Include ax_pthread.m4.
3149 * config.in, configure: Rebuild.
3150
3151 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3152
3153 * debug.c (debug_set_output): Call safe_strerror instead of
3154 strerror.
3155 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3156 (linux_kill_one_lwp): Likewise.
3157 (linux_detach_one_lwp): Likewise.
3158 (linux_wait_for_event_filtered): Likewise.
3159 (store_register): Likewise.
3160 * lynx-low.c (lynx_attach): Likewise.
3161 * mem-break.c (insert_memory_breakpoint): Likewise.
3162 (remove_memory_breakpoint): Likewise.
3163 (delete_fast_tracepoint_jump): Likewise.
3164 (set_fast_tracepoint_jump): Likewise.
3165 (uninsert_fast_tracepoint_jumps_at): Likewise.
3166 (reinsert_fast_tracepoint_jumps_at): Likewise.
3167 * nto-low.c (nto_xfer_memory): Likewise.
3168 (nto_resume): Likewise.
3169
3170 2019-11-20 Luis Machado <luis.machado@linaro.org>
3171
3172 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3173 instead of register count.
3174 * tdesc.c (tdesc_contains_feature): New function.
3175 * tdesc.h (tdesc_contains_feature): New prototype.
3176
3177 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3178
3179 * Makefile.in: Add safe-strerror.c.
3180 * configure: Regenerate.
3181 * configure.ac: Don't source common.host.
3182
3183 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3184
3185 * config.in: Regenerate.
3186 * configure: Regenerate.
3187
3188 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ax.c (ax_printf): Handle size_t_arg.
3191
3192 2019-11-06 Christian Biesinger <cbiesinger@google.com>
3193
3194 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3195 * mi/mi-main.c (output_cores): Likewise.
3196 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3197 (linux_xfer_osdata_modules): Likewise.
3198 * remote.c (register_remote_support_xml): Likewise.
3199 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3200 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3201
3202 2019-11-01 Christian Biesinger <cbiesinger@google.com>
3203
3204 * configure: Regenerate.
3205 * configure.ac: Remove check for strerror_r.
3206
3207 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3208
3209 * config.in: Regenerate.
3210 * configure: Regenerate.
3211 * configure.ac: Also check for strerror_r.
3212
3213 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3214
3215 * ax.h (debug_agent): Remove duplicate declaration.
3216
3217 2019-10-26 Tom de Vries <tdevries@suse.de>
3218
3219 * linux-aarch64-low.c: Fix typos in comments.
3220 * linux-arm-low.c: Same.
3221 * linux-low.c: Same.
3222 * linux-ppc-low.c: Same.
3223 * proc-service.c: Same.
3224 * regcache.h: Same.
3225 * server.c: Same.
3226 * tracepoint.c: Same.
3227 * win32-low.c: Same.
3228
3229 2019-10-25 Tom Tromey <tromey@adacore.com>
3230
3231 * utils.c (xstrdup): Remove.
3232
3233 2019-10-23 Tom Tromey <tom@tromey.com>
3234
3235 * configure, config.in: Rebuild.
3236
3237 2019-10-23 Tom Tromey <tom@tromey.com>
3238
3239 * configure: Rebuild.
3240 * acinclude.m4: Use m4_include, not sinclude.
3241
3242 2019-10-17 Tom Tromey <tromey@adacore.com>
3243
3244 * configure: Rebuild.
3245 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3246 in AC_CONFIG_FILES invocation.
3247 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3248 invocation.
3249
3250 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3251
3252 * server.c: Include xml-builtin.h.
3253 (get_xml_features): Don't declare xml_builtins here.
3254
3255 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * Makefile.in: Remove references to vec-ipa.o.
3258
3259 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3260
3261 * Makefile.in: Remove references to vec.c.
3262
3263 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3264
3265 * server.c (server_waiting): Change to bool.
3266 (extended_protocol): Likewise.
3267 (response_needed): Likewise.
3268 (exit_requested): Likewise.
3269 (run_once): Likewise.
3270 (report_no_resumed): Likewise.
3271 (non_stop): Likewise.
3272 (disable_packet_vCont): Likewise.
3273 (disable_packet_Tthread): Likewise.
3274 (disable_packet_qC): Likewise.
3275 (disable_packet_qfThreadInfo): Likewise.
3276 (handle_general_set): Update.
3277 (handle_detach): Update.
3278 (handle_monitor_command): Update.
3279 (handle_query): Update.
3280 (captured_main): Update.
3281 (process_serial_event): Update.
3282 * server.h (server_waiting): Change to bool.
3283 (disable_packet_vCont): Likewise.
3284 (disable_packet_Tthread): Likewise.
3285 (disable_packet_qC): Likewise.
3286 (disable_packet_qfThreadInfo): Likewise.
3287 (run_once): Likewise.
3288 (non_stop): Likewise.
3289 * target.c (target_stop_and_wait): Update.
3290
3291 2019-10-02 Tom Tromey <tromey@adacore.com>
3292
3293 * Makefile.in (SFILES): Add common-inferior.c.
3294 (OBS): Add common-inferior.o.
3295 * server.c (startup_with_shell): Don't define.
3296
3297 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3298
3299 * linux-low.c (linux_low_read_btrace): Update for change to
3300 std::vector.
3301
3302 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3303
3304 * debug.c (debug_threads): Remove comment in favor of the header.
3305 * debug.h (using_threads): Add declaration.
3306 (debug_threads): Add comment.
3307 * linux-aarch64-low.c: Include debug.h and remove declaration of
3308 debug_threads.
3309 * nto-low.c: Likewise.
3310 * remote-utils.c: Likewise.
3311 * thread-db.c: Likewise.
3312
3313 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3314
3315 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3316 and powerpc-cell64l-ipa.o.
3317 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3318 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3319 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3320 (spu*-*-*): Remove.
3321
3322 * spu-low.c: Remove file.
3323
3324 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3325 (parse_spufs_run): Remove.
3326 (ppc_get_pc): Remove Cell/B.E. support.
3327 (ppc_set_pc): Likewise.
3328 (ppc_breakpoint_at): Likewise.
3329 (ppc_arch_setup): Likewise.
3330 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3331 tdesc_powerpc_cell32l.
3332 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3333 or init_registers_powerpc_cell32l.
3334 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3335 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3336 or init_registers_powerpc_cell32l.
3337 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3338 (init_registers_powerpc_cell32l): Remove prototype.
3339 (init_registers_powerpc_cell64l): Likewise.
3340
3341 * target.h (struct target_ops): Remove qxfer_spu member.
3342 * server.c (handle_qxfer_spu): Remove.
3343 (qxfer_packets): Remove entry for "spu".
3344 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
3345 * linux-low.c (SPUFS_MAGIC): Remove.
3346 (spu_enumerate_spu_ids): Remove.
3347 (linux_qxfer_spu): Remove.
3348 (linux_target_ops): Remove qxfer_spu member.
3349 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
3350 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
3351 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
3352
3353 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3354
3355 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
3356 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
3357 * config.in: Regenerate.
3358 * configure: Regenerate.
3359
3360 2019-08-15 Tom Tromey <tromey@adacore.com>
3361
3362 * target.c (target_write_memory): Use gdb::byte_vector.
3363
3364 2019-08-15 Tom Tromey <tromey@adacore.com>
3365
3366 * tracepoint.c (write_inferior_data_pointer)
3367 (write_inferior_integer, write_inferior_int8)
3368 (write_inferior_uinteger, m_tracepoint_action_download)
3369 (r_tracepoint_action_download, x_tracepoint_action_download)
3370 (l_tracepoint_action_download, clear_inferior_trace_buffer)
3371 (download_agent_expr, download_tracepoint_1)
3372 (download_trace_state_variables, upload_fast_traceframes): Update.
3373 * server.c (gdb_write_memory): Update.
3374 * remote-utils.c (relocate_instruction): Update.
3375 * proc-service.c (ps_pdwrite): Update.
3376 * mem-break.c (remove_memory_breakpoint)
3377 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
3378 (uninsert_fast_tracepoint_jumps_at)
3379 (reinsert_fast_tracepoint_jumps_at): Update.
3380 * linux-x86-low.c (append_insns)
3381 (i386_install_fast_tracepoint_jump_pad)
3382 (amd64_write_goto_address, i386_write_goto_address): Update.
3383 * linux-s390-low.c (append_insns, s390_write_goto_address):
3384 Update.
3385 * linux-ppc-low.c (ppc_relocate_instruction)
3386 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
3387 (ppc_write_goto_address): Update.
3388 * linux-aarch64-low.c (append_insns): Update.
3389 * target.h (struct target_ops): Update.
3390 (write_inferior_memory): Don't declare.
3391 * target.c (target_write_memory): Rename from
3392 write_inferior_memory. Remove old target_write_memory.
3393
3394 2019-08-15 Tom Tromey <tromey@adacore.com>
3395
3396 * target.c (write_inferior_memory): Use std::vector.
3397
3398 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3399
3400 PR build/24886
3401 * configure.ac: Drop enable-libmcheck support.
3402 * configure, config.in: Rebuild.
3403 * acinclude.m4: Don't include it.
3404
3405 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3406
3407 * configure.srv: Remove Arm xml files.
3408
3409 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3410
3411 * configure.srv: Add new files. Remove xml generated files.
3412 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
3413 registers.
3414 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
3415 * linux-aarch32-tdesc.c: New file.
3416 * linux-aarch32-tdesc.h: New file.
3417 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
3418 * linux-arm-low.c (init_registers_arm, tdesc_arm)
3419 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
3420 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
3421 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
3422 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
3423 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
3424 (arm_read_description): Call arm_linux_read_description.
3425 (initialize_low_arch): Don't init registers.
3426 * linux-arm-tdesc.c: New file.
3427 * linux-arm-tdesc.h: New file.
3428
3429 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3430
3431 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
3432 Move counter inside for.
3433 (arm_read_description): Check ptrace earlier.
3434 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
3435
3436 2019-07-09 Tom Tromey <tom@tromey.com>
3437
3438 * configure: Rebuild.
3439 * configure.ac: Change common to gdbsupport.
3440 * acinclude.m4: Change common to gdbsupport.
3441 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
3442 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
3443 common to gdbsupport.
3444 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
3445 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
3446 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
3447 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
3448 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
3449 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
3450 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
3451 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
3452 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
3453 common to gdbsupport.
3454
3455 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3456
3457 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
3458 defines.
3459 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
3460
3461 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3462
3463 * configure.srv: Remove legacy xml.
3464 * linux-aarch64-low.c (initialize_low_arch): Remove
3465 initialize_low_tdesc call.
3466 * linux-aarch64-tdesc-selftest.c: Remove file.
3467 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
3468 * linux-x86-low.c (initialize_low_arch): Remove
3469 initialize_low_tdesc call.
3470 * linux-x86-tdesc-selftest.c: Remove file.
3471 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
3472
3473 2019-06-20 Tom de Vries <tdevries@suse.de>
3474
3475 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
3476 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
3477
3478 2019-06-19 Tom de Vries <tdevries@suse.de>
3479
3480 * debug.h (debug_write): Change return type to ssize_t.
3481 * debug.c (debug_write): Same.
3482
3483 2019-06-14 Tom Tromey <tom@tromey.com>
3484
3485 * configure.ac: Use new path to gnulib.
3486 * configure: Rebuild.
3487 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
3488 to gnulib.
3489
3490 2019-06-11 Tom Tromey <tom@tromey.com>
3491
3492 * Makefile.in (SFILES): Add alloc.c.
3493 (OBS): Add alloc.o.
3494 (IPA_OBJS): Add alloc-ipa.o.
3495 (alloc-ipa.o): New target.
3496 (%.o: ../%.c): New pattern rule.
3497
3498 2019-06-10 Tom Tromey <tromey@adacore.com>
3499
3500 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
3501 end warning with a newline.
3502 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
3503 newline.
3504 * thread-db.c (attach_thread): Don't end warning with a newline.
3505 (thread_db_notice_clone): Likewise.
3506 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
3507 newline.
3508 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
3509 end warning with a newline.
3510
3511 2019-06-04 Pedro Alves <palves@redhat.com>
3512
3513 * server.c (captured_main): Use make_unique_xstrdup.
3514
3515 2019-06-02 Tom Tromey <tom@tromey.com>
3516
3517 * gdbreplay.c (fromhex): Remove.
3518 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
3519
3520 2019-05-29 Tom Tromey <tromey@adacore.com>
3521
3522 * configure: Rebuild.
3523
3524 2019-05-06 Kevin Buettner <kevinb@redhat.com>
3525
3526 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
3527 sign extension code on 32-bit builds.
3528
3529 2019-05-03 Eli Zaretskii <eliz@gnu.org>
3530
3531 * remote-utils.c:
3532 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
3533
3534 2019-04-19 Tom Tromey <tom@tromey.com>
3535
3536 * server.c (struct vstop_notif): Derive from notif_event.
3537 <base>: Remove.
3538 (queue_stop_reply): Update.
3539 (remove_all_on_match_ptid): Change type. Rewrite.
3540 (discard_queued_stop_replies): Rewrite.
3541 (in_queued_stop_replies_ptid): Change type.
3542 (in_queued_stop_replies): Rewrite.
3543 (notif_stop): Update.
3544 (queue_stop_reply_callback): Update.
3545 (captured_main): Don't call initialize_notif.
3546 (push_stop_notification): Update.
3547 * notif.c (notif_write_event, handle_notif_ack)
3548 (notif_event_enque, notif_push): Update.
3549 (notif_event_xfree, initialize_notif): Remove.
3550 * notif.h (struct notif_event): Include <list>, not
3551 "common/queue.h".
3552 (struct notif_server) <queue>: Now a std::list.
3553 (notif_event_p): Remove typedef.
3554 (initialize_notif): Don't declare.
3555 (struct notif_event): Add virtual destructor.
3556
3557 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3558
3559 * ax.c (ax_vdebug): Call debug_printf.
3560 * debug.c (debug_write): New function.
3561 * debug.h (debug_write): New declaration.
3562 * linux-low.c (sigchld_handler): Call debug_write.
3563
3564 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3565
3566 * debug.c (debug_set_output): New function.
3567 (debug_vprintf): Send output to debug_file.
3568 (debug_flush): Likewise.
3569 * debug.h (debug_set_output): New declaration.
3570 * server.c (handle_monitor_command): Add debug-file option.
3571 (captured_main): Likewise.
3572
3573 2019-04-17 Alan Hayward <alan.hayward@arm.com>
3574
3575 * debug.c (remote_debug): Add definition.
3576 * debug.h (remote_debug): Add declaration.
3577 * hostio.c (remote_debug): Remove declaration.
3578 * remote-utils.c (struct ui_file): Likewise.
3579 (remote_debug): Likewise.
3580 * remote-utils.h (remote_debug): Likewise,
3581 * server.c (remote_debug): Remove definition.
3582
3583 2019-04-10 Kevin Buettner <kevinb@redhat.com>
3584
3585 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
3586 when using a 64-bit gdbserver.
3587
3588 2019-04-09 Tom Tromey <tromey@adacore.com>
3589
3590 * linux-low.c (select_event_lwp): Use find_thread_in_random.
3591
3592 2019-04-08 Tom Tromey <tom@tromey.com>
3593
3594 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
3595 throw.
3596 (linux_resume_one_lwp): Likewise.
3597
3598 2019-04-08 Tom Tromey <tom@tromey.com>
3599
3600 * gdbreplay.c: Update.
3601 * linux-low.c: Update.
3602 * server.c: Update.
3603
3604 2019-04-08 Tom Tromey <tom@tromey.com>
3605
3606 * server.c: Use C++ exception handling.
3607 * linux-low.c: Use C++ exception handling.
3608 * gdbreplay.c: Use C++ exception handling.
3609
3610 2019-04-08 Tom Tromey <tom@tromey.com>
3611
3612 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
3613 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
3614 (captured_main, main): Update.
3615 * gdbreplay.c (main): Update.
3616
3617 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3618
3619 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
3620 value in argument pointer, return 1 if the entry is found and 0
3621 otherwise. Move comment.
3622 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
3623 * linux-low.h (linux_get_auxv): Declare.
3624 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
3625
3626 2019-04-05 Tom Tromey <tromey@adacore.com>
3627
3628 * server.c (gdbserver_usage): Use upper-case for metasyntactic
3629 variables.
3630
3631 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3632
3633 * linux-low.c (AT_HWCAP2): Add define if not already included.
3634
3635 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3636
3637 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
3638 (aarch64_arch_setup): Call linux_get_hwcap.
3639 * linux-arm-low.c (arm_get_hwcap): Remove function.
3640 (arm_read_description): Call linux_get_hwcap.
3641 * linux-low.c (linux_get_auxv): New function.
3642 (linux_get_hwcap): Likewise.
3643 (linux_get_hwcap2): Likewise.
3644 * linux-low.h (linux_get_hwcap): New declaration.
3645 (linux_get_hwcap2): Likewise.
3646 * linux-ppc-low.c (ppc_get_auxv): Remove function.
3647 (ppc_arch_setup): Call linux_get_hwcap.
3648 * linux-s390-low.c (s390_get_hwcap): Remove function.
3649 (s390_arch_setup): Call linux_get_hwcap.
3650
3651 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3652 Jiong Wang <jiong.wang@arm.com>
3653
3654 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
3655 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
3656 to fail.
3657 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
3658
3659 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3660 Jiong Wang <jiong.wang@arm.com>
3661
3662 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
3663 (aarch64_get_hwcap): New function.
3664 (aarch64_arch_setup): Read APIA hwcap.
3665
3666 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3667 Jiong Wang <jiong.wang@arm.com>
3668
3669 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
3670 (initialize_low_tracepoint): Likewise.
3671 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
3672 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
3673 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
3674 (aarch64_linux_read_description): Likewise.
3675 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
3676
3677 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3678
3679 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
3680 i386_create_target_description for 'segments' parameter.
3681 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
3682 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3683 * win32-i386-low.c (i386_arch_setup): Likewise.
3684
3685 2019-03-12 Tom Tromey <tromey@adacore.com>
3686
3687 * linux-low.c (iterate_over_lwps): Update.
3688
3689 2019-03-06 Tom Tromey <tom@tromey.com>
3690
3691 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
3692 (captured_main): Use SCOPE_EXIT.
3693
3694 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
3695
3696 * configure.srv: Use '$enable_unittest' instead of '$development'
3697 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
3698 case.
3699
3700 2019-02-27 Tom Tromey <tromey@adacore.com>
3701
3702 * gdbreplay.c (logchar): Handle \r\n.
3703
3704 2019-02-07 Alan Hayward <alan.hayward@arm.com>
3705
3706 * linux-low.c (linux_attach): Add process before lwp.
3707 * server.c (attach_inferior): Check if already attached.
3708
3709 2019-02-07 Tom Tromey <tom@tromey.com>
3710
3711 * x86-tdesc.h: Rename include guard.
3712 * x86-low.h: Add include guard.
3713 * wincecompat.h: Rename include guard.
3714 * win32-low.h: Add include guard.
3715 * utils.h: Rename include guard.
3716 * tracepoint.h: Rename include guard.
3717 * tdesc.h: Rename include guard.
3718 * target.h: Rename include guard.
3719 * server.h: Rename include guard.
3720 * remote-utils.h: Rename include guard.
3721 * regcache.h: Rename include guard.
3722 * nto-low.h: Rename include guard.
3723 * notif.h: Add include guard.
3724 * mem-break.h: Rename include guard.
3725 * lynx-low.h: Add include guard.
3726 * linux-x86-tdesc.h: Add include guard.
3727 * linux-s390-tdesc.h: Add include guard.
3728 * linux-ppc-tdesc-init.h: Add include guard.
3729 * linux-low.h: Add include guard.
3730 * linux-aarch64-tdesc.h: Add include guard.
3731 * linux-aarch32-low.h: Add include guard.
3732 * inferiors.h: Rename include guard.
3733 * i387-fp.h: Rename include guard.
3734 * hostio.h: Rename include guard.
3735 * gdbthread.h: Rename include guard.
3736 * gdb_proc_service.h: Rename include guard.
3737 * event-loop.h: Rename include guard.
3738 * dll.h: Rename include guard.
3739 * debug.h: Rename include guard.
3740 * ax.h: Rename include guard.
3741
3742 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
3743
3744 PR gdb/23985
3745 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
3746 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
3747
3748 2019-01-25 Tom Tromey <tom@tromey.com>
3749
3750 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
3751
3752 2019-01-25 Tom Tromey <tom@tromey.com>
3753
3754 * win32-low.c: Fix common/ includes.
3755 * win32-i386-low.c: Fix common/ includes.
3756 * tracepoint.c: Fix common/ includes.
3757 * thread-db.c: Fix common/ includes.
3758 * target.h: Fix common/ includes.
3759 * symbol.c: Fix common/ includes.
3760 * spu-low.c: Fix common/ includes.
3761 * server.h: Fix common/ includes.
3762 * server.c: Fix common/ includes.
3763 * remote-utils.c: Fix common/ includes.
3764 * regcache.h: Fix common/ includes.
3765 * regcache.c: Fix common/ includes.
3766 * nto-x86-low.c: Fix common/ includes.
3767 * notif.h: Fix common/ includes.
3768 * mem-break.h: Fix common/ includes.
3769 * lynx-low.c: Fix common/ includes.
3770 * lynx-i386-low.c: Fix common/ includes.
3771 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3772 * linux-x86-low.c: Fix common/ includes.
3773 * linux-low.c: Fix common/ includes.
3774 * inferiors.h: Fix common/ includes.
3775 * i387-fp.c: Fix common/ includes.
3776 * hostio.c: Fix common/ includes.
3777 * hostio-errno.c: Fix common/ includes.
3778 * gdbthread.h: Fix common/ includes.
3779 * gdbreplay.c: Fix common/ includes.
3780 * fork-child.c: Fix common/ includes.
3781 * event-loop.c: Fix common/ includes.
3782 * ax.c:
3783 (enum gdb_agent_op): Fix common/ includes.
3784
3785 2019-01-21 Tom Tromey <tom@tromey.com>
3786
3787 * tracepoint.c: Fix includes.
3788 * remote-utils.c: Fix includes.
3789 * linux-x86-low.c: Fix includes.
3790
3791 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3792
3793 * gdbreplay.c (gdbreplay_version): Update copyright year in
3794 version message.
3795 * server.c (gdbserver_version): Likewise.
3796
3797 2018-12-05 Alan Hayward <alan.hayward@arm.com>
3798
3799 * linux-low.c (add_lwp): Switch ordering.
3800
3801 2018-11-29 Tom Tromey <tom@tromey.com>
3802
3803 * win32-low.c (win32_join): Take pid, not process.
3804 * target.h (struct target_ops) <join>: Change argument type.
3805 (join_inferior): Change argument name.
3806 * spu-low.c (spu_join): Take pid, not process.
3807 * server.c (handle_detach): Preserve pid before destroying
3808 process.
3809 * lynx-low.c (lynx_join): Take pid, not process.
3810 * linux-low.c (linux_join): Take pid, not process.
3811
3812 2018-11-23 Alan Hayward <alan.hayward@arm.com>
3813
3814 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3815 (aarch64_cannot_fetch_register): Likewise.
3816 (struct linux_target_ops): Update references.
3817
3818 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3819
3820 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3821
3822 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3823
3824 * configure.srv (ipa_ppc_linux_regobj): Add
3825 powerpc-isa207-htm-vsx32l-ipa.o and
3826 powerpc-isa207-htm-vsx64l-ipa.o.
3827 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
3828 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
3829 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
3830 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
3831 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
3832 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
3833 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
3834 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
3835 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3836 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
3837 (init_registers_powerpc_isa207_htm_vsx32l)
3838 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
3839 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
3840 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
3841 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
3842 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
3843 (ppc_store_tm_ctarregset): New functions.
3844 (ppc_regsets): Add entries for HTM regsets.
3845 (ppc_arch_setup): Set htm in features struct when needed. Set
3846 sizes for the HTM regsets.
3847 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
3848 (initialize_low_arch): Call
3849 init_registers_powerpc_isa207_htm_vsx32l and
3850 init_registers_powerpc_isa207_htm_vsx64l.
3851 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3852 PPC_TDESC_ISA207_HTM_VSX.
3853 (initialize_low_tracepoint): Call
3854 init_registers_powerpc_isa207_htm_vsx32l and
3855 init_registers_powerpc_isa207_htm_vsx64l.
3856
3857 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3858
3859 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
3860 rs6000/power-linux-pmu.xml to srv_xmlfiles.
3861 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
3862 (ppc_store_pmuregset): New functions.
3863 (ppc_regsets): Add entries for ebb and pmu regsets.
3864 (ppc_arch_setup): Set isa207 in features struct if the ebb and
3865 pmu regsets are available. Set sizes for these regsets.
3866
3867 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3868
3869 * configure.srv (ipa_ppc_linux_regobj): Add
3870 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
3871 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
3872 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
3873 rs6000/powerpc-isa207-vsx32l.xml, and
3874 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
3875 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3876 <PPC_TDESC_ISA207_VSX>: New enum value.
3877 (init_registers_powerpc_isa207_vsx32l): Declare.
3878 (init_registers_powerpc_isa207_vsx64l): Declare.
3879 * linux-ppc-low.c (ppc_fill_tarregset): New function.
3880 (ppc_store_tarregset): New function.
3881 (ppc_regsets): Add entry for the TAR regset.
3882 (ppc_arch_setup): Set isa207 in features struct when needed. Set
3883 size for the TAR regsets.
3884 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
3885 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
3886 and init_registers_powerpc_isa207_vsx64l.
3887 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
3888 (initialize_low_tracepoint): Call
3889 init_registers_powerpc_isa207_vsx32l and
3890 init_registers_powerpc_isa207_vsx64l.
3891
3892 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3893 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3894
3895 * configure.srv (ipa_ppc_linux_regobj): Add
3896 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
3897 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
3898 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
3899 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
3900 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
3901 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
3902 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
3903 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3904 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
3905 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
3906 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
3907 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
3908 (ppc_hwcap): Add comment.
3909 (ppc_hwcap2): New global.
3910 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
3911 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
3912 (ppc_regsets): Add entries for the DSCR and PPR regsets.
3913 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
3914 when needed. Set sizes for the the DSCR and PPR regsets.
3915 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
3916 (initialize_low_arch): Call
3917 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3918 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3919 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3920 PPC_TDESC_ISA205_PPR_DSCR_VSX.
3921 (initialize_low_tracepoint): Call
3922 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3923 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3924
3925 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3926
3927 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
3928
3929 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
3930 Simon Marchi <simark@simark.ca>
3931
3932 * acinclude.m4: Include "../selftest.m4".
3933 * configure: Regenerate.
3934 * configure.ac: Use "GDB_AC_SELFTEST".
3935 * configure.srv: Use "$enable_unittests" instead of
3936 "$development" when checking whether unit tests have been
3937 enabled.
3938 * server.c (captured_main): Update message informing that
3939 selftests have been disabled.
3940
3941 2018-10-04 Tom Tromey <tom@tromey.com>
3942
3943 * configure: Rebuild.
3944
3945 2018-10-04 Tom Tromey <tom@tromey.com>
3946
3947 * server.c (handle_status): Rename inner "thread".
3948 (process_serial_event): Declare "res" in 'm' case.
3949 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
3950 (iterate_over_lwps): Rename inner "thread".
3951 (linux_qxfer_libraries_svr4): Rename inner "len".
3952 * gdbthread.h (find_thread_in_random): Rename inner "thread".
3953
3954 2018-10-01 Gary Benson <gbenson@redhat.com>
3955
3956 * gdb_proc_service.h: Moved common code to
3957 common/gdb_proc_service.h.
3958
3959 2018-10-01 Gary Benson <gbenson@redhat.com>
3960
3961 * gdb_proc_service.h: Synchronize comments and whitespace with
3962 GDB's version of this file.
3963
3964 2018-09-25 Tom Tromey <tom@tromey.com>
3965
3966 * configure: Rebuild.
3967 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3968
3969 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3970
3971 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3972 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3973 ($(IPA_LIB)): Sort IPA_OBJS.
3974
3975 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3976
3977 * Makefile.in: Remove references to $(ADD_DEPS).
3978
3979 2018-09-16 Tom Tromey <tom@tromey.com>
3980
3981 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3982 variables.
3983 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3984 variables.
3985
3986 2018-09-05 Tom Tromey <tom@tromey.com>
3987
3988 * configure: Rebuild.
3989
3990 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3991
3992 PR build/23399
3993 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3994
3995 2018-08-27 Tom Tromey <tom@tromey.com>
3996
3997 PR build/23087:
3998 * configure: Rebuild.
3999
4000 2018-08-27 Tom Tromey <tom@tromey.com>
4001
4002 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4003 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4004 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4005 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4006 (s390x_emit_stack_adjust): Add casts to unsigned char.
4007
4008 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4009
4010 PR gdb/23374
4011 PR gdb/23375
4012 * server.h (struct client_state) <disable_randomization>:
4013 Initialize to 1.
4014
4015 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4016
4017 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4018 variable.
4019 (mips_supply_ptrace_register): Likewise.
4020
4021 2018-07-22 Tom Tromey <tom@tromey.com>
4022
4023 * configure: Rebuild.
4024
4025 2018-07-22 Tom Tromey <tom@tromey.com>
4026
4027 * win32-low.c (win32_create_inferior): Remove unused variables.
4028 * gdbreplay.c (remote_open): Remove unused variable.
4029 * remote-utils.c (remote_prepare): Remove unused variable.
4030 * x86-tdesc.h (X86_TDESC_H): Define.
4031 (amd64_expedite_regs): Define conditionally.
4032 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4033 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4034 * remote-utils.c (readchar): Remove unused variable.
4035
4036 2018-07-13 Pedro Alves <palves@redhat.com>
4037
4038 * linux-low.c (linux_kill): Change parameter to process_info
4039 pointer instead of pid. Adjust.
4040 * lynx-low.c (lynx_kill): Likewise.
4041 * nto-low.c (nto_kill): Likewise.
4042 * spu-low.c (spu_kill): Likewise.
4043 * win32-low.c (win32_kill): Likewise.
4044 * server.c (handle_v_kill, kill_inferior_callback)
4045 (detach_or_kill_for_exit): Adjust.
4046 * target.c (kill_inferior): Change parameter to process_info
4047 pointer instead of pid. Adjust.
4048 * target.h (struct target_ops) <kill>: Change parameter to
4049 process_info pointer instead of pid. Adjust all implementations
4050 and callers.
4051 (kill_inferior): Likewise.
4052
4053 2018-07-13 Pedro Alves <palves@redhat.com>
4054
4055 * linux-low.c (linux_detach, linux_join): Change parameter to
4056 process_info pointer instead of pid. Adjust.
4057 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4058 * nto-low.c (nto_detach): Likewise.
4059 * spu-low.c (spu_detach, spu_join): Likewise.
4060 * win32-low.c (win32_detach, win32_join): Likewise.
4061 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4062 * target.h (struct target_ops) <detach, join>: Change parameter to
4063 process_info pointer instead of pid. Adjust all implementations
4064 and callers.
4065 (detach_inferior, join_inferior): Rename 'pid' parameter to
4066 'proc'.
4067
4068 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4069 Jan Kratochvil <jan.kratochvil@redhat.com>
4070 Paul Fertser <fercerpav@gmail.com>
4071 Tsutomu Seki <sekiriki@gmail.com>
4072
4073 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4074 (OBS): Add 'common/netstuff.o'.
4075 (GDBREPLAY_OBS): Likewise.
4076 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4077 (remote_open): Implement support for IPv6
4078 connections.
4079 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4080 and 'wspiapi.h'.
4081 (handle_accept_event): Accept connections from IPv6 sources.
4082 (remote_prepare): Handle IPv6-style hostnames; implement
4083 support for IPv6 connections.
4084 (remote_open): Implement support for printing connections from
4085 IPv6 sources.
4086
4087 2018-07-11 Pedro Alves <palves@redhat.com>
4088
4089 PR gdb/23377
4090 * mem-break.c (any_persistent_commands): Add process_info
4091 parameter and use it instead of relying on the current process.
4092 Change return type to bool.
4093 * mem-break.h (any_persistent_commands): Add process_info
4094 parameter and change return type to bool.
4095 * server.c (handle_detach): Remove require_running_or_return call.
4096 Look up the process_info for the process we're about to detach.
4097 If not found, return back error to GDB. Adjust
4098 any_persistent_commands call to pass down a process pointer.
4099
4100 2018-07-11 Pedro Alves <palves@redhat.com>
4101
4102 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4103 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4104 instead of collect_register_by_name.
4105 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4106 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4107
4108 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4109 Pedro Alves <palves@redhat.com>
4110
4111 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4112
4113 2018-07-03 Tom Tromey <tom@tromey.com>
4114
4115 * linux-low.c: Update.
4116 * lynx-low.c: Update.
4117 * mem-break.c: Update.
4118 * nto-low.c: Update.
4119 * remote-utils.c: Update.
4120 * server.c: Update.
4121 * spu-low.c: Update.
4122 * target.c: Update.
4123 * win32-low.c: Update.
4124
4125 2018-07-03 Tom Tromey <tom@tromey.com>
4126
4127 * server.c: Update.
4128
4129 2018-07-03 Tom Tromey <tom@tromey.com>
4130
4131 * linux-low.c: Update.
4132
4133 2018-07-03 Tom Tromey <tom@tromey.com>
4134
4135 * target.c: Update.
4136
4137 2018-07-03 Tom Tromey <tom@tromey.com>
4138
4139 * linux-low.c: Update.
4140 * linux-mips-low.c: Update.
4141 * lynx-low.c: Update.
4142 * nto-low.c: Update.
4143 * remote-utils.c: Update.
4144 * server.c: Update.
4145 * spu-low.c: Update.
4146 * target.c: Update.
4147 * thread-db.c: Update.
4148
4149 2018-07-03 Tom Tromey <tom@tromey.com>
4150
4151 * linux-low.c: Update.
4152 * linux-mips-low.c: Update.
4153 * lynx-low.c: Update.
4154 * mem-break.c: Update.
4155 * nto-low.c: Update.
4156 * remote-utils.c: Update.
4157 * server.c: Update.
4158 * spu-low.c: Update.
4159 * target.c: Update.
4160 * tracepoint.c: Update.
4161
4162 2018-07-03 Tom Tromey <tom@tromey.com>
4163
4164 * linux-low.c: Update.
4165 * linux-ppc-low.c: Update.
4166 * linux-x86-low.c: Update.
4167 * proc-service.c: Update.
4168 * server.c: Update.
4169 * spu-low.c: Update.
4170 * thread-db.c: Update.
4171 * win32-low.c: Update.
4172
4173 2018-07-03 Tom Tromey <tom@tromey.com>
4174
4175 * linux-low.c: Update.
4176 * lynx-low.c: Update.
4177 * nto-low.c: Update.
4178 * remote-utils.c: Update.
4179 * spu-low.c: Update.
4180 * thread-db.c: Update.
4181 * win32-low.c: Update.
4182
4183 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4184
4185 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4186 parameter in call to 'amd64_create_target_description'.
4187
4188 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4189
4190 * x86-tdesc.h: Remove executable permission flag.
4191
4192 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4193
4194 * configure.ac: Remove AC_PREREQ, add missing quoting.
4195 * configure: Re-generate.
4196 * config.in: Re-generate.
4197 * aclocal.m4: Re-generate.
4198
4199 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4200
4201 * tracepoint.h (current_traceframe): Remove declaration.
4202
4203 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4204
4205 * linux-aarch64-low.c (is_sve_tdesc): New function.
4206 (aarch64_sve_regs_copy_to_regcache): Likewise.
4207 (aarch64_sve_regs_copy_from_regcache): Likewise.
4208 (aarch64_regs_info): Add SVE checks.
4209 (initialize_low_arch): Initialize SVE.
4210
4211 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4212
4213 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4214
4215 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4216
4217 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4218 (initialize_low_tracepoint): Likewise
4219 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4220 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4221 param.
4222 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4223 checks.
4224 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4225
4226 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4227
4228 * server.h (PBUFSIZ): Increase size
4229
4230 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4231
4232 * regcache.c (regcache::raw_compare): New function.
4233 * regcache.h (regcache::raw_compare): New declaration.
4234
4235 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4236
4237 * regcache.c (new_register_cache): Use new.
4238 (free_register_cache): Use delete.
4239 (register_data): Use const.
4240 (supply_register): Move body inside regcache.
4241 (regcache::raw_supply): New override function.
4242 (collect_register): Move body inside regcache.
4243 (regcache::raw_collect): New override function.
4244 (regcache::get_register_status): New override function.
4245 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4246
4247 2018-06-09 Tom Tromey <tom@tromey.com>
4248
4249 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4250 declare queue.
4251 (event_queue): Use std::queue.
4252 (gdb_event_xfree): Remove.
4253 (initialize_event_loop, process_event, wait_for_event): Update.
4254
4255 2018-06-08 Stan Cox <scox@redhat.com>
4256
4257 * win32-low.c (win32_create_inferior): last_ptid and last_status
4258 moved to client_state.
4259
4260 2018-06-08 Pedro Alves <palves@redhat.com>
4261
4262 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4263 common/common-exceptions.o, common/common-utils.o,
4264 common/errors.o, common/print-utils.o and utils.o.
4265 * gdbreplay.c: Include "common-defs.h" instead of the two
4266 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4267 string.h or alloca.h.
4268 (perror_with_name): Delete.
4269 (remote_open): Use xstrdup instead of strdup.
4270 (main): Rename to ...
4271 (captured_main): ... this.
4272 (main): New.
4273
4274 2018-06-08 Tom Tromey <tom@tromey.com>
4275
4276 * linux-low.c (linux_low_read_btrace): Update.
4277
4278 2018-06-04 Stan Cox <scox@redhat.com>
4279
4280 * server.h (struct client_state): New.
4281 * server.c (cont_thread, general_thread, multi_process)
4282 (report_fork_events, report_vfork_events, report_exec_events)
4283 (report_thread_events, swbreak_feature, hwbreak_feature)
4284 (vCont_supported, disable_randomization, pass_signals)
4285 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4286 Moved to client_state.
4287 * remote-utils.c (remote_debug, noack_mode)
4288 (transport_is_reliable): Moved to client_state.
4289 * tracepoint.c (current_traceframe): Moved to client_state.
4290
4291 Update all callers.
4292 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4293 linux-low.c, remote-utils.h, target.c: Use client_state.
4294
4295 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4296
4297 * configure.srv: Add new c/h file.
4298
4299 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4300
4301 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4302 null VQ.
4303
4304 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4305
4306 * gdb.arch/mips-fpregset-core.exp: New test.
4307 * gdb.arch/mips-fpregset-core.c: New test source.
4308
4309 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4310
4311 PR server/23198
4312 * hostio.c (require_int): Do not report overflow for integers
4313 between 0xfffffff and 0x7fffffff.
4314
4315 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4316
4317 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4318 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4319 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4320 functions.
4321 (the_low_target): Wire them.
4322
4323 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4324
4325 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4326 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4327 mode. Call collect_register_by_name with vscr using
4328 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4329 (ppc_store_vrregset): Add and set vscr_offset variable as in
4330 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4331 vscr_offset.
4332
4333 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4334
4335 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4336 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4337 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4338
4339 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4340
4341 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4342 (ppc_store_vsxregset): Likewise.
4343 (ppc_fill_vrregset): Likewise.
4344 (ppc_store_vrregset): Likewise.
4345 (ppc_fill_evrregset): Likewise.
4346 (ppc_store_evrregset): Likewise.
4347 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
4348 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
4349 needed.
4350
4351 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4352
4353 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
4354 wordsize of the inferior. Call ppc_linux_target_wordsize.
4355
4356 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4357
4358 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
4359 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
4360 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
4361 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4362 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4363 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4364 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4365 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4366 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4367 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4368 (tdesc_powerpc_e500l): Remove.
4369 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
4370 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
4371 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
4372 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
4373 linux-ppc-tdesc.h.
4374 (ppc_arch_setup): Remove target description matching code. Fill a
4375 ppc_linux_features struct and call ppc_linux_match_description
4376 with it.
4377
4378 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4379
4380 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
4381 width of the requested register exceeds the width of the
4382 `ptrace' data type.
4383 (mips_cannot_store_register): Likewise.
4384
4385 2018-05-21 Maciej W. Rozycki <macro@mips.com>
4386
4387 * linux-mips-low.c (mips_fetch_register): New function. Update
4388 preceding comment.
4389 (mips_store_gregset): Supply 0 rather than $restart for $zero.
4390 (the_low_target): Wire `mips_fetch_register'.
4391
4392 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4393
4394 * lynx-i386-low.c (LYNXOS_178): New macro.
4395 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
4396 the layout on LynxOS-178.
4397 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
4398 handle floating point registers that are not supported by
4399 LynxOS-178.
4400
4401 2018-05-10 Tom Tromey <tom@tromey.com>
4402
4403 * configure: Rebuild.
4404
4405 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4406
4407 PR server/23158:
4408 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
4409 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
4410 Use it to set the expedite_regs field in the given tdesc.
4411 * x86-tdesc.h: New file.
4412 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
4413 Adjust following the addition of the new expedite_regs parameter
4414 to init_target_desc.
4415 * linux-tic6x-low.c (tic6x_read_description): Likewise.
4416 * linux-x86-tdesc.c: #include "x86-tdesc.h".
4417 (i386_linux_read_description, amd64_linux_read_description):
4418 Adjust following the addition of the new expedite_regs parameter
4419 to init_target_desc.
4420 * lynx-i386-low.c: #include "x86-tdesc.h".
4421 (lynx_i386_arch_setup): Adjust following the addition of the new
4422 expedite_regs parameter to init_target_desc.
4423 * nto-x86-low.c: #include "x86-tdesc.h".
4424 (nto_x86_arch_setup): Adjust following the addition of the new
4425 expedite_regs parameter to init_target_desc.
4426 * win32-i386-low.c: #include "x86-tdesc.h".
4427 (i386_arch_setup): Adjust following the addition of the new
4428 expedite_regs parameter to init_target_desc.
4429
4430 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4431
4432 PR server/23158:
4433 * win32-low.c (win32_create_inferior): Add call to my_wait
4434 setting last_status global.
4435
4436 2018-05-10 Joel Brobecker <brobecker@adacore.com>
4437
4438 PR server/23158:
4439 * win32-low.c (create_process): Only call gdb_tilde_expand if
4440 inferior_cwd is not NULL.
4441
4442 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4443
4444 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
4445 registers to the cache if their values have changed.
4446 (i387_xsave_to_cache): Provide default values for x87 control
4447 registers when these features are available, but disabled.
4448 * regcache.c (supply_register_by_name_zeroed): New function.
4449 * regcache.h (supply_register_by_name_zeroed): Declare new
4450 function.
4451
4452 2018-05-07 Tom Tromey <tom@tromey.com>
4453
4454 * configure: Rebuild.
4455
4456 2018-05-04 Tom Tromey <tom@tromey.com>
4457
4458 * configure: Rebuild.
4459
4460 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4461 Pedro Alves <palves@redhat.com>
4462
4463 * linux-aarch64-low.c (aarch64_stopped_data_address):
4464 Likewise.
4465
4466 2018-04-27 Tom Tromey <tom@tromey.com>
4467
4468 * configure: Rebuild.
4469
4470 2018-04-23 Tom Tromey <tom@tromey.com>
4471
4472 * configure: Rebuild.
4473
4474 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
4475
4476 * Makefile.in (depcomp): Add "..".
4477 (all_deps_files): New and use it.
4478
4479 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4480
4481 * configure.srv (aarch64*-*-linux*): Don't include xml.
4482 (i[34567]86-*-cygwin*): Likewise.
4483 (i[34567]86-*-linux*): Likewise.
4484 (i[34567]86-*-lynxos*): Likewise.
4485 (i[34567]86-*-mingw32ce*): Likewise.
4486 (i[34567]86-*-mingw*): Likewise.
4487 (i[34567]86-*-nto*): Likewise.
4488 (tic6x-*-uclinux): Likewise.
4489 (x86_64-*-linux*): Likewise.
4490 (x86_64-*-mingw*): Likewise.
4491 (x86_64-*-cygwin*): Likewise.
4492
4493 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4494
4495 * tdesc.c: Remove xml parameter.
4496
4497 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4498
4499 * server.c (get_features_xml): Remove cast.
4500 * tdesc.c (void target_desc::accept): Fill in function.
4501 (tdesc_get_features_xml): Remove old xml creation.
4502 (print_xml_feature::visit_pre): Add xml vistor.
4503 * tdesc.h (struct target_desc): Make xmltarget mutable.
4504 (tdesc_get_features_xml): Remove declaration.
4505
4506 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4507
4508 * tdesc.c (tdesc_architecture_name): Add new function.
4509 (tdesc_osabi_name): Likewise.
4510 (tdesc_get_features_xml): Use new functions.
4511
4512 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4513
4514 * tdesc.c (tdesc_create_flags): Remove.
4515 (tdesc_add_flag): Likewise.
4516 (tdesc_named_type): Likewise.
4517 (tdesc_create_union): Likewise.
4518 (tdesc_create_struct): Likewise.
4519 (tdesc_create_vector): Likewise.
4520 (tdesc_add_bitfield): Likewise.
4521 (tdesc_add_field): Likewise.
4522 (tdesc_set_struct_size): Likewise.
4523
4524 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4525
4526 * tdesc.c (~target_desc): Remove implictly deleted items.
4527 (init_target_desc): Iterate all features.
4528 (tdesc_get_features_xml): Use vector.
4529 (tdesc_create_feature): Create feature.
4530 * tdesc.h (tdesc_feature) Remove
4531 (target_desc): Add features.
4532
4533 2018-04-18 Alan Hayward <alan.hayward@arm.com>
4534
4535 * Makefile.in: Add common/tdesc.c
4536 * tdesc.c (init_target_desc): init all reg_defs from register
4537 vector.
4538 (tdesc_create_reg): Create tdesc_reg.
4539 * tdesc.h (tdesc_feature): Add register vector.
4540
4541 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
4542
4543 * tdesc.h (struct target_desc) <features>: Change type to
4544 std::vector<std::string>.
4545 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
4546 changes.
4547 (tdesc_get_features_xml): Likewise.
4548 (tdesc_create_feature): Likewise.
4549
4550 2018-03-26 Alan Hayward <alan.hayward@arm.com>
4551
4552 * regcache.c (find_register_by_number): Return a ref.
4553 (find_regno): Use references.
4554 (register_size): Likewise.
4555 (register_data): Likewise.
4556 * tdesc.c (target_desc::~target_desc): Remove free calls.
4557 (target_desc::operator==): Use std::vector compare.
4558 (init_target_desc): Use reference.
4559 (tdesc_create_reg): Use reg constructors.
4560 * tdesc.h (struct target_desc): Replace pointer with object.
4561
4562 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4563
4564 * regcache.c (find_register_by_number): Make static.
4565 (find_regno): Use find_register_by_number
4566 * regcache.h (struct reg): Remove declaration.
4567
4568 2018-03-23 Alan Hayward <alan.hayward@arm.com>
4569
4570 * tdesc.c (target_desc::~target_desc): Move to here.
4571 (target_desc::operator==): Likewise.
4572 * tdesc.h (target_desc::~target_desc): Move from here.
4573 (target_desc::operator==): Likewise.
4574
4575 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
4576
4577 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
4578
4579 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4580
4581 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
4582 S390_TDESC_GS.
4583 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
4584 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
4585 and init_registers_s390_gs_linux64.
4586
4587 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4588
4589 * linux-s390-low.c (s390_fill_gs): Remove function.
4590 (s390_fill_gsbc): Remove function.
4591 (s390_regsets): Set fill functions for the guarded storage regsets
4592 to NULL.
4593
4594 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4595
4596 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
4597 the word size. Add comment.
4598 (s390_get_wordsize): New function.
4599 (s390_arch_setup): No longer select a temporary tdesc to fetch the
4600 pswm with it. Instead, use s390_get_wordsize to determine the
4601 word size first and derive the correct tdesc from that directly.
4602
4603 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
4604
4605 * Makefile.in: Include silent-rules.mk.
4606 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
4607 (COMPILE): Add ECHO_CXX.
4608 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4609 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
4610 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
4611 (version-generated.c): Add ECHO_GEN.
4612 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
4613 (IPAGENT_COMPILE): Add ECHO_CXX.
4614 (%-generated.c): Add ECHO_REGDAT.
4615
4616 2018-03-14 Tom Tromey <tom@tromey.com>
4617
4618 PR cli/14977:
4619 * ax.c (ax_printf): Special case for NULL.
4620
4621 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4622
4623 * linux-low.c (linux_qxfer_libraries_svr4): Use
4624 xml_escape_text_append.
4625
4626 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
4629
4630 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4631
4632 * server.c (handle_general_set): Remove unnecessary xstrdup.
4633
4634 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4635
4636 * server.c (parse_debug_format_options): Adjust to
4637 delim_string_to_char_ptr_vec changes.
4638 * thread-db.c (thread_db_load_search): Adjust to
4639 dirnames_to_char_ptr_vec changes.
4640
4641 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
4642
4643 * target.h (target_enable_btrace, target_disable_btrace)
4644 (target_read_btrace, target_read_btrace_conf): Turn macro into
4645 inline function. Throw error if target method is not defined.
4646 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
4647 check for btrace target method. Be prepared to handle exceptions
4648 from btrace target methods.
4649
4650 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4651
4652 * server.c (captured_main): Change order of error message printed
4653 when the current working directory cannot be found.
4654
4655 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4656
4657 * server.c: Include "filenames.h" and "pathstuff.h".
4658 (program_name): Delete variable.
4659 (program_path): New anonymous class.
4660 (get_exec_wrapper): Use "program_path" instead of
4661 "program_name".
4662 (handle_v_run): Likewise.
4663 (captured_main): Likewise.
4664 (process_serial_event): Likewise.
4665
4666 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4667
4668 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
4669 (OBJS): Add "pathstuff.o".
4670 * server.c (current_directory): New global variable.
4671 (captured_main): Initialize "current_directory".
4672
4673 2018-02-26 Alan Hayward <alan.hayward@arm.com>
4674
4675 * tdesc.c: Use common/tdesc.h.
4676 * tdesc.h: Likewise.
4677
4678 2018-02-20 Alan Hayward <alan.hayward@arm.com>
4679 Simon Marchi <simon.marchi@ericsson.com>
4680
4681 * Makefile.in: Switch order of make rules.
4682
4683 2018-02-19 Alan Hayward <alan.hayward@arm.com>
4684
4685 * Makefile.in: Add common directory in build.
4686 * configure.ac: Add common reference.
4687 * configure: Regenerate.
4688
4689 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4690
4691 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
4692 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
4693 * spu-low.c (spu_target_ops): Likewise.
4694 * win32-low.c (win32_target_ops): Likewise.
4695 * server.c (supported_btrace_packets): Report packets unconditionally.
4696 * target.h (target_ops) <supports_btrace>: Remove.
4697 (target_supports_btrace): Remove.
4698
4699 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4700
4701 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
4702 (handle_btrace_disable): Change return type to void. Use exceptions
4703 to report errors.
4704 (handle_btrace_general_set): Catch exception and copy message to
4705 return message.
4706
4707 2018-02-08 Tom Tromey <tom@tromey.com>
4708
4709 * linux-low.c (install_software_single_step_breakpoints): Use
4710 make_scoped_restore.
4711 * inferiors.c (make_cleanup_restore_current_thread): Remove.
4712 (do_restore_current_thread_cleanup): Remove.
4713 * gdbthread.h (make_cleanup_restore_current_thread): Don't
4714 declare.
4715
4716 2018-02-08 Tom Tromey <tom@tromey.com>
4717
4718 * mem-break.c (set_raw_breakpoint_at): Use
4719 gdb::unique_xmalloc_ptr.
4720
4721 2018-01-30 Pedro Alves <palves@redhat.com>
4722
4723 PR gdb/13211
4724 * target.c (target_terminal::terminal_state): Rename to ...
4725 (target_terminal::m_terminal_state): ... this.
4726
4727 2018-01-19 James Clarke <jrtc27@jrtc27.com>
4728
4729 * linux-low.c (handle_extended_wait): Surround call to
4730 thread_db_notice_clone with #ifdef USE_THREAD_DB.
4731
4732 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4733
4734 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
4735 linux_ptrace_attach_fail_reason_string now returning an
4736 std::string.
4737 (linux_attach): Likewise.
4738 * thread-db.c (attach_thread): Likewise.
4739
4740 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4741
4742 PR gdb/21559
4743 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4744 checking for fs_base/gs_base fields in struct user_regs_struct.
4745 * configure: Regenerate.
4746
4747 2018-01-16 Yao Qi <yao.qi@linaro.org>
4748
4749 PR gdb/18749
4750 * linux-low.c (fetch_register): Call supply_register instead of
4751 error.
4752
4753 2018-01-08 Yao Qi <yao.qi@linaro.org>
4754 Simon Marchi <simon.marchi@ericsson.com>
4755
4756 * Makefile.in (OBS): Remove selftest.o.
4757 * configure.ac: Set srv_selftest_objs if $development is true.
4758 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4759 * configure: Re-generated.
4760 * server.c (captured_main): Wrap variable selftest_filter with
4761 GDB_SELF_TEST.
4762
4763 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * server.c (parse_debug_format_options): Return std::string.
4766 (handle_monitor_command, captured_main): Adjust.
4767
4768 2018-01-05 Pedro Alves <palves@redhat.com>
4769
4770 PR gdb/18653
4771 * server.c (captured_main): Pass quiet=false to
4772 save_original_signals_state.
4773
4774 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4775
4776 * gdbreplay.c (gdbreplay_version): Update copyright year in
4777 version message.
4778 * server.c (gdbserver_version): Likewise.
4779
4780 2017-12-08 Tom Tromey <tom@tromey.com>
4781
4782 * ax.c (ax_printf): Update.
4783
4784 2017-12-07 Yao Qi <yao.qi@linaro.org>
4785
4786 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4787 aarch64_linux_read_description.
4788 * linux-amd64-ipa.c (idx2mask): New array.
4789 (get_ipa_tdesc): Move idx2mask out.
4790 (initialize_low_tracepoint): Initialize target descriptions.
4791 * linux-i386-ipa.c (idx2mask): New array.
4792 (get_ipa_tdesc): Move idx2mask out.
4793 (initialize_low_tracepoint): Initialize target descriptions.
4794
4795 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4796
4797 * tdesc.c (struct tdesc_type): Change return type.
4798 (tdesc_add_flag): Change parameter type.
4799 (tdesc_add_bitfield): Likewise.
4800 (tdesc_add_field): Likewise.
4801 (tdesc_set_struct_size): Likewise.
4802
4803 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4804
4805 * regcache.c (registers_to_string): Remove unused variable.
4806
4807 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4808
4809 * inferiors.c (for_each_inferior_with_data): Remove.
4810 * inferiors.h (for_each_inferior_with_data): Remove.
4811 * server.c (handle_qxfer_threads_worker): Change parameter type.
4812 (handle_qxfer_threads_proper): Use for_each_thread.
4813
4814 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4815
4816 * inferiors.c (for_each_inferior): Remove.
4817 (clear_inferiors): Use for_each_thread.
4818 * inferiors.h (for_each_inferior): Remove.
4819 * linux-low.c (linux_wait_for_event_filtered): Use
4820 for_each_thread.
4821 (linux_stabilize_threads): Likewise.
4822 * regcache.c (regcache_release): Likewise.
4823 * server.c (gdb_wants_all_threads_stopped): Likewise.
4824 (clear_pending_status_callback): Remove.
4825 (handle_status): Use for_each_thread.
4826 (captured_main): Likewise.
4827 * win32-low.c (child_init_thread_list): Likewise.
4828 (win32_clear_inferiors): Likewise.
4829 (fake_breakpoint_event): Likewise.
4830
4831 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4832
4833 * inferiors.h (find_inferior): Remove.
4834 * inferiors.c (find_inferior): Remove.
4835
4836 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4837
4838 * linux-low.c (resume_status_pending_p): Update comment.
4839 (need_step_over_p): Update comment.
4840
4841 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * linux-low.c (proceed_one_lwp): Return void, change parameter
4844 type.
4845 (unsuspend_and_proceed_one_lwp): Likewise.
4846 (proceed_all_lwps): Use for_each_thread.
4847 (unstop_all_lwps): Likewise.
4848
4849 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4850
4851 * linux-low.c (linux_resume_one_thread): Return void, take
4852 parameter directly.
4853 (linux_resume): Use for_each_thread.
4854
4855 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4856
4857 * linux-low.c (send_sigstop_callback): Return void, change
4858 parameter type. Rename to...
4859 (send_sigstop): ... this.
4860 (suspend_and_send_sigstop_callback): Return void, change parameter
4861 type. Rename to...
4862 (suspend_and_send_sigstop): ... this.
4863 (stop_all_lwps): Use for_each_thread.
4864
4865 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4866
4867 * linux-low.c (lwp_running): Return bool, remove unused
4868 argument.
4869 (linux_stabilize_threads): Use find_thread.
4870
4871 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4872
4873 * linux-low.c (select_singlestep_lwp_callback): Remove.
4874 (count_events_callback): Remove.
4875 (select_event_lwp_callback): Remove.
4876 (select_event_lwp): Use find_thread/for_each_thread.
4877
4878 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4879
4880 * linux-low.c (not_stopped_callback): Return bool, take filter
4881 argument directly.
4882 (linux_wait_for_event_filtered): Use find_thread.
4883 (linux_wait_1): Likewise.
4884
4885 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4886
4887 * linux-low.c (same_lwp): Remove.
4888 (find_lwp_pid): Use find_thread.
4889
4890 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4891
4892 * linux-low.c (delete_lwp_callback): Remove.
4893 (linux_mourn): Use for_each_thread.
4894
4895 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4896
4897 * linux-low.c (linux_detach_lwp_callback): Return void, remove
4898 args parameter, don't check for pid.
4899 (linux_detach): Use for_each_thread.
4900
4901 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4902
4903 * linux-low.c (struct counter): Remove.
4904 (second_thread_of_pid_p): Remove.
4905 (last_thread_of_process_p): Use find_thread.
4906
4907 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4908
4909 * inferiors.c (find_inferior_in_random): Remove.
4910 * inferiors.h (find_inferior_in_random): Remove.
4911 * linux-low.c (status_pending_p_callback): Return bool, accept
4912 parameter ptid directly.
4913 (linux_wait_for_event_filtered): Use find_thread_in_random.
4914 (linux_wait_1): Likewise.
4915
4916 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4917
4918 * inferiors.c (find_inferior_id): Remove.
4919 (find_thread_ptid): Move implemention from find_inferior_id to
4920 here.
4921 * inferiors.h (find_inferior_id): Remove.
4922 * server.c (handle_status): Use find_thread_ptid.
4923 (process_serial_event): Likewise.
4924 * thread-db.c (find_one_thread): Likewise.
4925 (thread_db_thread_handle): Likewise.
4926 * win32-low.c (thread_rec): Likewise.
4927 (child_delete_thread): Likewise.
4928 (win32_thread_alive): Likewise.
4929 (get_child_debug_event): Likewise.
4930
4931 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * linux-mips-low.c (update_watch_registers_callback): Return
4934 void, remove pid_p parameter, don't check for pid.
4935 (mips_insert_point, mips_remove_point): Use for_each_thread.
4936
4937 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4938
4939 * lynx.low (lynx_delete_thread_callback): Remove.
4940 (lynx_mourn): Use for_each_thread.
4941
4942 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4943
4944 * regcache.c (regcache_invalidate_one): Remove.
4945 (regcache_invalidate_pid): use for_each_thread.
4946
4947 2017-11-26 Tom Tromey <tom@tromey.com>
4948
4949 * linux-low.c (linux_create_inferior): Update.
4950
4951 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4952
4953 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4954
4955 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4956
4957 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
4958 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4959 * linux-aarch64-tdesc-selftest.c: New file.
4960 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4961
4962 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4963
4964 * configure.srv: Add new file.
4965 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4966 * linux-aarch64-tdesc-selftest.c: New file.
4967 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4968
4969 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4970
4971 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
4972 * linux-aarch64-low.c (initialize_low_arch): Remove init.
4973 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
4974
4975 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4976
4977 * configure.srv: Add new files.
4978 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
4979 aarch64_linux_read_description.
4980 * linux-aarch64-low.c (aarch64_linux_read_description):
4981 Merge with aarch64_arch_setup.
4982 (aarch64_arch_setup): Call aarch64_linux_read_description.
4983 * linux-aarch64-tdesc.c: New file.
4984 * linux-aarch64-tdesc.h: New file.
4985
4986 2017-11-24 Yao Qi <yao.qi@linaro.org>
4987
4988 * configure.srv: Set $srv_regobj for tic6x-linux.
4989 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
4990 (tic6x_read_description): Move some code to tic6x_arch_setup.
4991 (tic6x_tdesc_test): New function.
4992 (initialize_low_arch): Call selftests::register_test.
4993
4994 2017-11-22 Yao Qi <yao.qi@linaro.org>
4995
4996 * remote-utils.c (prepare_resume_reply): Use memcpy.
4997
4998 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4999
5000 * linux-low.c (kill_one_lwp_callback): Return void, take
5001 argument directly, don't filter on pid.
5002 (linux_kill): Use for_each_thread.
5003
5004 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5005
5006 * linux-low.c (need_step_over_p): Return bool, remove dummy
5007 argument.
5008 (linux_resume, proceed_all_lwps): Use find_thread.
5009
5010 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5011
5012 * linux-low.c (resume_status_pending_p): Return bool, remove
5013 flag_p argument.
5014 (linux_resume): Use find_thread.
5015
5016 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5017
5018 * linux-low.c (struct thread_resume_array): Remove.
5019 (linux_set_resume_request): Return void, take arguments
5020 directly.
5021 (linux_resume): Use for_each_thread.
5022
5023 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5024
5025 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5026 return bool, remove data argument.
5027 (linux_stabilize_threads): Use find_thread.
5028
5029 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5030
5031 * linux-low.c (unsuspend_one_lwp): Remove.
5032 (unsuspend_all_lwps): Use for_each_thread, inline code from
5033 unsuspend_one_lwp.
5034
5035 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5036
5037 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5038 * linux-low.c (struct iterate_over_lwps_args): Remove.
5039 (iterate_over_lwps_filter): Remove.
5040 (iterate_over_lwps): Use find_thread.
5041
5042 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5043
5044 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5045 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5046 code from reset_lwp_ptrace_options_callback.
5047
5048 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5049
5050 * linux-arm-low.c (struct update_registers_data): Remove.
5051 (update_registers_callback): Return void, take arguments
5052 directly, don't check thread's pid.
5053 (arm_insert_point, arm_remove_point): Use for_each_thread.
5054
5055 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5056
5057 * win32-low.c (continue_one_thread): Return void, take argument
5058 directly.
5059 (child_continue): Use for_each_thread.
5060
5061 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5062
5063 * win32-i386-low.c (update_debug_registers_callback): Rename
5064 to ...
5065 (update_debug_registers): ... this, return void, remove pid_p arg.
5066 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5067
5068 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5069
5070 * inferiors.h (struct process_info): Add constructor, initialize
5071 fields..
5072 <syscalls_to_catch>: Change type to std::vector<int>.
5073 * inferiors.c (add_process): Allocate process_info with new.
5074 (remove_process): Free process_info with delete.
5075 * linux-low.c (handle_extended_wait): Adjust.
5076 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5077 * server.c (handle_general_set): Adjust.
5078
5079 2017-11-16 Pedro Alves <palves@redhat.com>
5080
5081 * remote-utils.c (remote_close): Block SIGIO signals instead of
5082 uninstalling the SIGIO handler.
5083
5084 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5085
5086 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5087
5088 2017-11-16 Yao Qi <yao.qi@linaro.org>
5089
5090 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5091 (tic6x_store_gregset): Likewise.
5092 (tic6x_usrregs_info): Move it up.
5093
5094 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5095
5096 * Makefile.in: Update arch rules.
5097 * configure.srv: Explicitly mark arch/ files.
5098
5099 2017-11-13 Andreas Schwab <schwab@suse.de>
5100
5101 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5102 function.
5103 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5104
5105 2017-11-06 Pedro Alves <palves@redhat.com>
5106
5107 * config.in, configure: Regenerate.
5108
5109 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5110
5111 * target.c (struct thread_search): Remove.
5112 (thread_search_callback): Remove.
5113 (prepare_to_access_memory): Use for_each_thread instead of
5114 find_inferior. Inline code from thread_search_callback.
5115
5116 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5117
5118 * server.c (struct visit_actioned_threads_data): Remove.
5119 (visit_actioned_threads): Change prototype to take arguments
5120 directly.
5121 (resume): Use find_thread instead of find_inferior.
5122
5123 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5124
5125 * server.c (queue_stop_reply_callback): Change prototype, return
5126 void.
5127 (find_status_pending_thread_callback): Remove.
5128 (handle_status): Replace find_inferior with find_thread and
5129 for_each_thread.
5130
5131 2017-10-25 Alan Hayward <alan.hayward@arm.com>
5132
5133 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5134 with REGNO.
5135 (aarch64_store_gregset): Likewise.
5136 (aarch64_fill_fpregset): Likewise.
5137 (aarch64_store_fpregset): Likewise.
5138
5139 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5140
5141 * gdbthread.h (find_thread, for_each_thread): New functions.
5142 * inferiors.c (thread_of_pid): Remove.
5143 (find_any_thread_of_pid): Use find_thread.
5144 * linux-low.c (num_lwps): Use for_each_thread.
5145
5146 2017-10-17 Yao Qi <yao.qi@linaro.org>
5147
5148 * Makefile.in: Remove one rule.
5149 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5150
5151 2017-10-17 Yao Qi <yao.qi@linaro.org>
5152
5153 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5154 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5155
5156 2017-10-17 Yao Qi <yao.qi@linaro.org>
5157
5158 * configure.srv: Rename arm.o with arch/arm.o.
5159
5160 2017-10-17 Yao Qi <yao.qi@linaro.org>
5161
5162 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5163 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5164 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5165 (arch-i386.o, arch-amd64.o): Remove rules.
5166 (arch/%.o): New rule.
5167 Update POSTCOMPILE and COMPILE.pre.
5168 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5169 * configure: Re-generated.
5170 * configure.srv: Replace arch-i386.o with arch/i386.o.
5171 Replace arch-amd64.o with arch/amd64.o.
5172
5173 2017-10-16 Yao Qi <yao.qi@linaro.org>
5174
5175 * configure: Regenerated.
5176
5177 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5178
5179 * inferiors.h: (struct inferior_list): Remove.
5180 (struct inferior_list_entry); Remove.
5181 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5182 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5183 get_first_inferior): Remove.
5184 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5185 find_inferior_id, find_inferior_in_random): Change signature.
5186 * inferiors.c (all_threads): Change type to
5187 std::list<thread_info *>.
5188 (get_thread): Remove macro.
5189 (find_inferior, find_inferior_id): Change signature, implement
5190 using find_thread.
5191 (find_inferior_in_random): Change signature, implement using
5192 find_thread_in_random.
5193 (for_each_inferior, for_each_inferior_with_data): Change
5194 signature, implement using for_each_thread.
5195 (add_inferior_to_list, remove_inferior): Remove.
5196 (add_thread, get_first_thread, thread_of_pid,
5197 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5198 (get_first_inferior, one_inferior_p, clear_inferior_list):
5199 Remove.
5200 (clear_inferiors, get_thread_process): Update.
5201 * gdbthread.h: Include <list>.
5202 (struct thread_info) <entry>: Remove field.
5203 <id>: New field.
5204 (all_threads): Change type to std::list<thread_info *>.
5205 (get_first_inferior): Add doc.
5206 (find_thread, for_each_thread, find_thread_in_random): New
5207 functions.
5208 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5209 * linux-arm-low.c (update_registers_callback): Update.
5210 * linux-low.c (second_thread_of_pid_p): Update.
5211 (kill_one_lwp_callback, linux_detach_lwp_callback,
5212 delete_lwp_callback, status_pending_p_callback, same_lwp,
5213 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5214 iterate_over_lwps, not_stopped_callback,
5215 resume_stopped_resumed_lwps, count_events_callback,
5216 select_singlestep_lwp_callback, select_event_lwp_callback,
5217 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5218 suspend_and_send_sigstop_callback, wait_for_sigstop,
5219 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5220 lwp_running, linux_set_resume_request, resume_status_pending_p,
5221 need_step_over_p, start_step_over, linux_resume_one_thread,
5222 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5223 reset_lwp_ptrace_options_callback): Update.
5224 * linux-mips-low.c (update_watch_registers_callback): Update.
5225 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5226 Update.
5227 (free_register_cache_thread_one): Remove.
5228 (regcache_release): Update.
5229 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5230 handle_qxfer_threads_worker): Update.
5231 (handle_query): Update, use list iterator.
5232 (visit_actioned_threads, handle_pending_status,
5233 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5234 clear_pending_status_callback, set_pending_status_callback,
5235 find_status_pending_thread_callback, handle_status,
5236 process_serial_event): Update.
5237 * target.c (thread_search_callback): Update.
5238 * thread-db.c (thread_db_get_tls_address): Update.
5239 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5240 Update.
5241 * win32-i386-low.c (update_debug_registers_callback): Update.
5242 * win32-low.c (delete_thread_info, child_delete_thread,
5243 continue_one_thread, suspend_one_thread,
5244 get_child_debug_event): Adjust.
5245
5246 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5247
5248 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5249 * inferiors.h: Include <list>.
5250 (struct process_info) <entry>: Remove field.
5251 <pid>: New field.
5252 (pid_of): Change macro to function.
5253 (ptid_of, lwpid_of): Remove macro.
5254 (all_processes): Change type to std::list<process_info *>.
5255 (ALL_PROCESSES): Remove macro.
5256 (for_each_process, find_process): New function.
5257 * inferiors.c (all_processes): Change type to
5258 std::list<process_info *>.
5259 (find_thread_process): Adjust.
5260 (add_process): Likewise.
5261 (remove_process): Likewise.
5262 (find_process_pid): Likewise.
5263 (get_first_process): Likewise.
5264 (started_inferior_callback): Remove.
5265 (have_started_inferiors_p): Adjust.
5266 (attached_inferior_callback): Remove.
5267 (have_attached_inferiors_p): Adjust.
5268 * linux-low.c (check_zombie_leaders): Likewise.
5269 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5270 (x86_linux_update_xmltarget): Adjust.
5271 * server.c (handle_query): Likewise.
5272 (gdb_reattached_process): Remove.
5273 (handle_status): Adjust.
5274 (kill_inferior_callback): Likewise.
5275 (detach_or_kill_inferior): Remove.
5276 (print_started_pid): Likewise.
5277 (print_attached_pid): Likewise.
5278 (detach_or_kill_for_exit): Update.
5279 (process_serial_event): Likewise.
5280 * linux-arm-low.c (arm_new_fork): Likewise.
5281
5282 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * dll.h: Include <list>.
5285 (struct dll_info): Add constructor.
5286 <entry>: Remove field.
5287 (all_dlls): Change type to std::list<dll_info>.
5288 * dll.c: Include <algorithm>.
5289 (get_dll): Remove macro.
5290 (all_dlls): Change type to std::list<dll_info *>.
5291 (free_one_dll): Remove.
5292 (match_dll): Likewise.
5293 (loaded_dll): Adjust.
5294 (unloaded_dll): Adjust to all_dlls type change, use
5295 std::find_if. Inline code from match_dll.
5296 (clear_dlls): Adjust to all_dlls type change.
5297 * server.c (emit_dll_description): Remove.
5298 (handle_qxfer_libraries): Adjust to all_dlls type change,
5299 integrate emit_dll_description's functionality.
5300
5301 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5302
5303 * linux-low.h (struct linux_target_ops) <delete_process>: New
5304 field.
5305 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5306 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5307 (struct linux_target_ops): Add delete_process callback.
5308 * linux-arm-low.c (arm_delete_process): New.
5309 (struct linux_target_ops): Add delete_process callback.
5310 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5311 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5312 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5313 * linux-mips-low.c (mips_linux_delete_process): New.
5314 (struct linux_target_ops): Add delete_process callback.
5315 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5316 * linux-s390-low.c (struct linux_target_ops): Likewise.
5317 * linux-sh-low.c (struct linux_target_ops): Likewise.
5318 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5319 * linux-tile-low.c (struct linux_target_ops): Likewise.
5320 * linux-x86-low.c (x86_linux_delete_process): New.
5321 (struct linux_target_ops): Add delete_process callback.
5322 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5323
5324 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5325
5326 * linux-aarch64-low.c (the_low_target): Add thread delete
5327 callback.
5328 * linux-arm-low.c (arm_delete_thread): New function.
5329 (the_low_target): Add thread delete callback.
5330 * linux-bfin-low.c (the_low_target): Likewise.
5331 * linux-crisv32-low.c (the_low_target): Likewise.
5332 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5333 set.
5334 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5335 field.
5336 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5337 * linux-mips-low.c (mips_linux_delete_thread): New function.
5338 (the_low_target): Add thread delete callback.
5339 * linux-ppc-low.c (the_low_target): Likewise.
5340 * linux-s390-low.c (the_low_target): Likewise.
5341 * linux-sh-low.c (the_low_target): Likewise.
5342 * linux-tic6x-low.c (the_low_target): Likewise.
5343 * linux-tile-low.c (the_low_target): Likewise.
5344 * linux-x86-low.c (the_low_target): Likewise.
5345 * linux-xtensa-low.c (the_low_target): Likewise.
5346
5347 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
5348
5349 * win32-low.c: Include "common-inferior.h".
5350
5351 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5352
5353 * inferiors.c (set_inferior_cwd): New function.
5354 * server.c (handle_general_set): Handle QSetWorkingDir packet.
5355 (handle_query): Inform that QSetWorkingDir is supported.
5356 * win32-low.c (create_process): Pass the inferior's cwd to
5357 CreateProcess.
5358
5359 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5360
5361 * inferiors.c (current_inferior_cwd): New global variable.
5362 (get_inferior_cwd): New function.
5363 * inferiors.h (struct process_info) <cwd>: New field.
5364
5365 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5366
5367 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
5368 (OBS): Add gdb_tilde_expand.o.
5369
5370 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
5371
5372 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
5373 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5374
5375 2017-09-29 Pedro Alves <palves@redhat.com>
5376
5377 * ax.c (gdb_parse_agent_expr): Constify.
5378 * ax.h (gdb_parse_agent_expr): Constify.
5379 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5380 Constify.
5381 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
5382 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
5383 * remote-utils.h (read_ptid): Constify.
5384 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
5385 (process_point_options, process_serial_event): Constify.
5386 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
5387 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
5388 (cmd_qtbuffer): Constify.
5389
5390 2017-09-29 Pedro Alves <palves@redhat.com>
5391
5392 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
5393 fails.
5394
5395 2017-09-29 Pedro Alves <palves@redhat.com>
5396
5397 * linux-low.c (handle_extended_wait): Pass parent thread instead
5398 of process to thread_db_notice_clone.
5399 * linux-low.h (thread_db_notice_clone): Replace parent process
5400 parameter with parent thread parameter.
5401 * thread-db.c (find_one_thread): Add comment.
5402 (thread_db_notice_clone): Replace parent process parameter with
5403 parent thread parameter. Temporarily switch to the parent thread.
5404
5405 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
5406
5407 * gdbthread.h: Include "common-gdbthread.h".
5408 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
5409 "if" when validating the ptid.
5410 * remote-utils.c: Include "gdbthread.h".
5411 (prepare_resume_reply): Use "switch_to_thread".
5412 * target.c (done_accessing_memory): Likewise.
5413
5414 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5415
5416 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
5417 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
5418 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
5419 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
5420 s390x-gs-linux64-ipa.o to ipa_obj.
5421 * linux-s390-low.c (HWCAP_S390_GS): New define.
5422 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
5423 New functions.
5424 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
5425 (s390_arch_setup): Check for guarded-storage support and choose
5426 appropriate tdesc.
5427 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
5428 init_registers_s390x_gs_linux64.
5429 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
5430 enum value.
5431 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
5432 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
5433
5434 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
5435
5436 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
5437
5438 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5439
5440 * linux-low.h (struct lwp_info): Add new field, thread_handle.
5441 (thread_db_thread_handle): Declare.
5442 * linux-low.c (linux_target_ops): Initialize thread_handle.
5443 * server.c (handle_qxfer_threads_worker): Add support for
5444 "handle" attribute.
5445 * target.h (struct target_ops): Add new function pointer,
5446 thread_handle.
5447 (target_thread_handle): Define.
5448 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
5449 field in lwp.
5450 (thread_db_thread_handle): New function.
5451
5452 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5453
5454 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
5455 * linux-low.h (thread_db_notice_clone): Declare.
5456 * thread-db.c (thread_db_notice_clone): New function.
5457
5458 2017-09-21 Pedro Alves <palves@redhat.com>
5459
5460 * server.c (gdb_read_memory, handle_status, process_serial_event)
5461 (handle_serial_event, handle_target_event): Adjust to
5462 set_desired_thread prototype change.
5463 * target.c (set_desired_thread): Remove 'use_general' parameter
5464 and adjust.
5465 * target.h (set_desired_thread): Remove 'use_general' parameter.
5466
5467 2017-09-20 Tom Tromey <tom@tromey.com>
5468
5469 * target.c (target_terminal::terminal_state): Define.
5470 (target_terminal::init): Rename from target_terminal_init.
5471 (target_terminal::inferior): Rename from
5472 target_terminal_inferior.
5473 (target_terminal::ours): Rename from target_terminal_ours.
5474 (target_terminal::ours_for_output, target_terminal::info): New.
5475
5476 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5477
5478 * server.c (accumulate_file_name_length): Remove.
5479 (emit_dll_description): Adjust to std::string change.
5480 (handle_qxfer_libraries): Use std::string to hold document.
5481
5482 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5483
5484 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
5485 return type of xml_escape_text.
5486 * server.c (emit_dll_description): Likewise.
5487
5488 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * server.c (captured_main): Accept argument for --selftest.
5491 Update run_tests call.
5492 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
5493 when registering selftests.
5494
5495 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
5496
5497 * regcache.c (get_thread_regcache): Update code to use "std::vector"
5498 instead of "VEC" for "target_desc.reg_defs".
5499 (regcache_cpy): Likewise.
5500 (registers_to_string): Likewise.
5501 (registers_from_string): Likewise.
5502 (find_regno): Likewise.
5503 (supply_regblock): Likewise.
5504 (regcache_raw_read_unsigned): Likewise.
5505 * tdesc.c (init_target_desc): Likewise.
5506 (tdesc_create_reg): Likewise.
5507 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
5508 (struct target_desc) <reg_defs>: Convert to "std::vector".
5509 (target_desc): Do not initialize "reg_defs".
5510 (~target_desc): Update code to use "std::vector" instead of "VEC"
5511 for "target_desc.reg_defs".
5512 (operator==): Likewise.
5513
5514 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5515
5516 * inferiors.h (thread_to_gdb_id): Remove.
5517 * inferiors.c (thread_to_gdb_id): Remove.
5518 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
5519 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
5520 lynx_store_registers, lynx_read_memory, lynx_write_memory):
5521 Likewise.
5522 * nto-low.c (nto_fetch_registers, nto_store_registers,
5523 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
5524
5525 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5526
5527 * inferiors.h (gdb_id_to_thread_id): Remove.
5528 * inferiors.c (gdb_id_to_thread_id): Remove.
5529 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
5530 removal. Move pid declaration closer to where it's used.
5531
5532 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5533
5534 * server.c (handle_detach): New function.
5535 (process_serial_event): Move code out, call handle_detach.
5536
5537 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5538
5539 * server.c (require_running): Rename to ...
5540 (require_running_or_return): ... this ...
5541 (require_running_or_break): ... and this.
5542 (handle_query, process_serial_event): Adjust.
5543
5544 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5545
5546 * linux-low.c (linux_set_resume_request): Remove unused
5547 variables.
5548
5549 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5550
5551 * server.c (first_thread_of): Remove.
5552 (process_serial_event): Replace usage of first_thread_of with
5553 find_any_thread_of_pid.
5554 * tracepoint.c (same_process_p): Remove.
5555 (gdb_agent_about_to_close): Replace usage of same_process_p with
5556 find_any_thread_of_pid.
5557 * linux-x86-low.c (same_process_callback): Remove.
5558 (x86_arch_setup_process_callback): Replace usage of
5559 same_process_callback with find_any_thread_of_pid.
5560 * thread-db.c (any_thread_of): Remove.
5561 (switch_to_process): Replace usage of any_thread_of with
5562 find_any_thread_of_pid.
5563 * inferiors.c (thread_pid_matches_callback): Remove.
5564 (find_thread_process): Adjust to use find_any_thread_of_pid.
5565
5566 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5567
5568 * regcache.c (get_thread_regcache): Guard calls to "memset"
5569 with "!VEC_empty".
5570
5571 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
5572
5573 * linux-low.c (handle_extended_wait): Use
5574 "allocate_target_description" instead of "XNEW".
5575 * linux-x86-low.c (initialize_low_arch): Likewise.
5576
5577 2017-09-05 Yao Qi <yao.qi@linaro.org>
5578
5579 * configure.srv (srv_i386_regobj): Remove.
5580 (srv_amd64_regobj): Remove.
5581 (srv_regobj): Set it to "" for x86 non-linux targets.
5582 * linux-x86-tdesc.c (i386_linux_read_description):
5583 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
5584 (init_registers_i386): Remove the declaration.
5585 (tdesc_i386): Remove the declaration.
5586 (lynx_i386_arch_setup): Call i386_create_target_description.
5587 * nto-x86-low.c: Likewise.
5588 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
5589 [!__x86_64__]: include arch/i386.h.
5590 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
5591
5592 2017-09-05 Yao Qi <yao.qi@linaro.org>
5593
5594 * configure.srv (srv_amd64_linux_xmlfiles): Remove
5595 i386/amd64-XXX-linux from it.
5596
5597 2017-09-05 Yao Qi <yao.qi@linaro.org>
5598
5599 * configure.srv: Empty srv_amd64_linux_regobj if $development is
5600 false.
5601 (ipa_amd64_linux_regobj): Remove.
5602 (ipa_x32_linux_regobj): Remove.
5603
5604 2017-09-05 Yao Qi <yao.qi@linaro.org>
5605
5606 * Makefile.in (arch-amd64.o): New rule.
5607 * configure.srv: Append arch-amd64.o.
5608 * linux-amd64-ipa.c: Include common/x86-xstate.h.
5609 (get_ipa_tdesc): Call amd64_linux_read_description.
5610 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
5611 and init_registers_amd64_XXX.
5612 * linux-x86-low.c (x86_linux_read_description): Call
5613 amd64_linux_read_description.
5614 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
5615 (initialize_low_arch): Don't call init_registers_x32_XXX and
5616 init_registers_amd64_XXX.
5617 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
5618 and tdesc_amd64_XXX.
5619 [__x86_64__] (amd64_tdesc_test): New function.
5620 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
5621 and init_registers_amd64_XXX.
5622 * linux-x86-tdesc.c: Include arch/amd64.h.
5623 (xcr0_to_tdesc_idx): New function.
5624 (i386_linux_read_description): New function.
5625 (amd64_get_ipa_tdesc_idx): New function.
5626 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
5627 (amd64_get_ipa_tdesc): Declare.
5628
5629 2017-09-05 Yao Qi <yao.qi@linaro.org>
5630
5631 * configure.srv (srv_i386_linux_xmlfiles): Remove
5632 i386/i386-XXX-linux.xml from it.
5633
5634 2017-09-05 Yao Qi <yao.qi@linaro.org>
5635
5636 * configure.srv: Set srv_i386_linux_regobj empty if $development
5637 is false.
5638 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
5639 initialize_low_tdesc.
5640 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
5641 with #if initialize_low_tdesc.
5642 * linux-x86-tdesc-selftest.c: New file.
5643 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
5644
5645 2017-09-05 Yao Qi <yao.qi@linaro.org>
5646
5647 * Makefile.in (arch-i386.o): New rule.
5648 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
5649 (x86_64-*-linux*): Likewise.
5650 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
5651 include arch/i386.h.
5652 (i386_linux_read_description): Remove code and call
5653 i386_create_target_description.
5654 * tdesc.c (allocate_target_description): New function.
5655 * tdesc.h (set_tdesc_architecture): Remove declaration.
5656 (set_tdesc_osabi): Likewise.
5657
5658 2017-09-05 Yao Qi <yao.qi@linaro.org>
5659
5660 * linux-x86-tdesc.c: Don't include <inttypes.h>.
5661 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
5662 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
5663 .xmltarget.
5664 * server.c (get_features_xml): Call tdesc_get_features_xml.
5665 * tdesc.c (set_tdesc_architecture): New function.
5666 (set_tdesc_osabi): New function.
5667 (tdesc_get_features_xml): New function.
5668 (tdesc_create_feature): Add an argument.
5669 * tdesc.h (struct target_desc) <features>: New field.
5670 <arch, osabi>: New field.
5671 (~target_desc): xfree features, arch, and osabi.
5672 (target_desc::oerator==): Don't compare .xmltarget.
5673 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
5674 (set_tdesc_osabi): Likewise.
5675 (tdesc_get_features_xml): Likewise.
5676
5677 2017-09-05 Yao Qi <yao.qi@linaro.org>
5678
5679 * linux-x86-tdesc.c: Include selftest.h.
5680 (i386_tdesc_test): New function.
5681 (initialize_low_tdesc): Call selftests::register_test.
5682 * tdesc.h: Include regdef.h.
5683 (target_desc): Override operator == and !=.
5684
5685 2017-09-05 Yao Qi <yao.qi@linaro.org>
5686
5687 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
5688 (ipa_obj): Likewise.
5689 * linux-i386-ipa.c: Include common/x86-xstate.h
5690 (get_ipa_tdesc): Call i386_linux_read_description.
5691 (initialize_low_tracepoint): Don't call init_registers_XXX
5692 functions, call initialize_low_tdesc instead.
5693 * linux-x86-low.c (x86_linux_read_description): Call
5694 i386_linux_read_description.
5695 (initialize_low_arch): Don't call init_registers_i386_XXX
5696 functions, call initialize_low_tdesc.
5697 * linux-x86-tdesc.c: New file.
5698 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
5699 (i386_get_ipa_tdesc_idx): Declare.
5700 (i386_get_ipa_tdesc): Declare.
5701 (initialize_low_tdesc): Declare.
5702
5703 2017-09-05 Yao Qi <yao.qi@linaro.org>
5704
5705 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
5706 instead of 0.
5707
5708 2017-09-05 Yao Qi <yao.qi@linaro.org>
5709
5710 * Makefile.in (IPA_OBJS): Add vec-ipa.o
5711 * regcache.c (get_thread_regcache): Use VEC_length.
5712 (init_register_cache): Likewise.
5713 (regcache_cpy): Likewise.
5714 (registers_to_string): Iterate reg_defs via VEC_iterate.
5715 (find_regno): Likewise.
5716 (find_register_by_number): Use VEC_index.
5717 (register_size): Call find_register_by_number.
5718 (register_data): Call find_register_by_number.
5719 (supply_regblock): Use VEC_length.
5720 (regcache_raw_read_unsigned): Likewise.
5721 * tdesc.c (init_target_desc): Iterate reg_defs via
5722 VEC_iterate.
5723 (default_description): Update initializer.
5724 (copy_target_description): Don't update field num_registers.
5725 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
5726 <num_registers>: Remove.
5727
5728 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5729
5730 * Makefile.in (.SECONDARY): Define target.
5731
5732 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5733
5734 * linux-low.c (linux_wait_1): Adjust.
5735 * server.c (queue_stop_reply_callback): Adjust.
5736
5737 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5738
5739 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
5740 QEnvironmentUnset and QEnvironmentReset packets.
5741 (handle_query): Inform remote that QEnvironmentHexEncoded,
5742 QEnvironmentUnset and QEnvironmentReset are supported.
5743
5744 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
5745
5746 * inferiors.h (inferior_target_data): Rename to ...
5747 (thread_target_data): ... this.
5748 (inferior_regcache_data): Rename to ...
5749 (thread_regcache_data): ... this.
5750 (set_inferior_regcache_data): Rename to ...
5751 (set_thread_regcache_data): ... this.
5752 * inferiors.c (inferior_target_data): Rename to ...
5753 (thread_target_data): ... this.
5754 (inferior_regcache_data): Rename to ...
5755 (thread_regcache_data): ... this.
5756 (set_inferior_regcache_data): Rename to ...
5757 (set_thread_regcache_data): ... this.
5758 (free_one_thread): Update.
5759 * linux-low.h (get_thread_lwp): Update.
5760 * regcache.c (get_thread_regcache): Update.
5761 (regcache_invalidate_thread): Update.
5762 (free_register_cache_thread): Update.
5763 * win32-i386-low.c (update_debug_registers_callback): Update.
5764 (win32_get_current_dr): Update.
5765 * win32-low.c (thread_rec): Update.
5766 (delete_thread_info): Update.
5767 (continue_one_thread): Update.
5768 (suspend_one_thread): Update.
5769
5770 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5771
5772 * inferiors.c (set_inferior_target_data): Remove.
5773 * inferiors.h (set_inferior_target_data): Remove.
5774
5775 2017-08-18 Yao Qi <yao.qi@linaro.org>
5776
5777 * Makefile.in (OBS): Add selftest.o.
5778 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5779 * configure, config.in: Re-generated.
5780 * server.c: Include common/sefltest.h.
5781 (captured_main): Handle option --selftest.
5782
5783 2017-08-09 Yao Qi <yao.qi@linaro.org>
5784
5785 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5786 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5787 i386-avx-mpx.o and i386-mmx.o.
5788 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5789 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5790 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5791 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
5792 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
5793 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
5794 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
5795 i386/amd64-avx-mpx.xml.
5796
5797 2017-08-09 Yao Qi <yao.qi@linaro.org>
5798
5799 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
5800 and x32-avx-avx512.o.
5801 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
5802 i386/x32-avx-avx512.xml.
5803
5804 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5805
5806 * tracepoint.h (enum class fast_tpoint_collect_result): New
5807 enumeration.
5808 (fast_tracepoint_collecting): Change return type to
5809 fast_tpoint_collect_result.
5810 * tracepoint.c (fast_tracepoint_collecting): Likewise.
5811 * linux-low.h: Include tracepoint.h.
5812 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
5813 fast_tpoint_collect_result.
5814 * linux-low.c (handle_tracepoints): Adjust.
5815 (linux_fast_tracepoint_collecting): Change return type to
5816 fast_tpoint_collect_result.
5817 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
5818 linux_wait_1, stuck_in_jump_pad_callback,
5819 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
5820 proceed_one_lwp): Adjust to type change.
5821
5822 2017-07-10 Yao Qi <yao.qi@linaro.org>
5823
5824 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5825
5826 2017-06-29 Yao Qi <yao.qi@linaro.org>
5827
5828 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5829 Remove.
5830 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5831
5832 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5833
5834 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5835
5836 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5837
5838 * linux-low.c (linux_create_inferior): Adjust code to access the
5839 environment information via 'gdb_environ' class.
5840 * lynx-low.c (lynx_create_inferior): Likewise.
5841 * server.c (our_environ): Make it an instance of 'gdb_environ'.
5842 (get_environ): Return a pointer to 'our_environ'.
5843 (captured_main): Initialize 'our_environ'.
5844 * server.h (get_environ): Adjust prototype.
5845 * spu-low.c (spu_create_inferior): Adjust code to access the
5846 environment information via 'gdb_environ' class.
5847
5848 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5849
5850 * linux-low.c (linux_read_memory, linux_write_memory): Remove
5851 usage of "register" keyword.
5852
5853 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5854
5855 * configure: Re-generate.
5856
5857 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5858
5859 * configure: Re-generate.
5860
5861 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5862
5863 * Makefile.in (COMPILE.pre): Add "-x c++".
5864
5865 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
5866
5867 * fork-child.c: Conditionally include <signal.h>.
5868
5869 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5870
5871 * server.c (handle_general_set): Handle new packet
5872 "QStartupWithShell".
5873 (handle_query): Add "QStartupWithShell" to the list of supported
5874 packets.
5875 (gdbserver_usage): Add help text explaining the
5876 new "--startup-with-shell" and "--no-startup-with-shell" CLI
5877 options.
5878 (captured_main): Recognize and act upon the presence of the new
5879 CLI options.
5880
5881 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5882 Pedro Alves <palves@redhat.com>
5883
5884 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
5885 * configure: Regenerate.
5886 * configure.srv (srv_linux_obj): Add "fork-child.o" and
5887 "fork-inferior.o".
5888 (i[34567]86-*-lynxos*): Likewise.
5889 (spu*-*-*): Likewise.
5890 * fork-child.c: New file.
5891 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
5892 and "environ.h".
5893 (linux_ptrace_fun): New function.
5894 (linux_create_inferior): Adjust function prototype to reflect
5895 change on "target.h". Adjust function code to use
5896 "fork_inferior".
5897 (linux_request_interrupt): Delete "signal_pid".
5898 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5899 (lynx_ptrace_fun): New function.
5900 (lynx_create_inferior): Adjust function prototype to reflect
5901 change on "target.h". Adjust function code to use
5902 "fork_inferior".
5903 * nto-low.c (nto_create_inferior): Adjust function prototype and
5904 code to reflect change on "target.h". Update comments.
5905 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
5906 "common-terminal.h" and "environ.h".
5907 (terminal_fd): Moved to fork-child.c.
5908 (old_foreground_pgrp): Likewise.
5909 (restore_old_foreground_pgrp): Likewise.
5910 (last_status): Make it global.
5911 (last_ptid): Likewise.
5912 (our_environ): New variable.
5913 (startup_with_shell): Likewise.
5914 (program_name): Likewise.
5915 (program_argv): Rename to...
5916 (program_args): ...this.
5917 (wrapper_argv): New variable.
5918 (start_inferior): Delete function.
5919 (get_exec_wrapper): New function.
5920 (get_exec_file): Likewise.
5921 (get_environ): Likewise.
5922 (prefork_hook): Likewise.
5923 (post_fork_inferior): Likewise.
5924 (postfork_hook): Likewise.
5925 (postfork_child_hook): Likewise.
5926 (handle_v_run): Update code to deal with arguments coming from the
5927 remote host. Update calls from "start_inferior" to
5928 "create_inferior".
5929 (captured_main): Likewise. Initialize environment variable. Call
5930 "have_job_control".
5931 * server.h (post_fork_inferior): New prototype.
5932 (get_environ): Likewise.
5933 (last_status): Declare.
5934 (last_ptid): Likewise.
5935 (signal_pid): Likewise.
5936 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5937 (spu_ptrace_fun): New function.
5938 (spu_create_inferior): Adjust function prototype to reflect change
5939 on "target.h". Adjust function code to use "fork_inferior".
5940 * target.c (target_terminal_init): New function.
5941 (target_terminal_inferior): Likewise.
5942 (target_terminal_ours): Likewise.
5943 * target.h: Include <vector>.
5944 (struct target_ops) <create_inferior>: Update prototype.
5945 (create_inferior): Update macro.
5946 * utils.c (gdb_flush_out_err): New function.
5947 * win32-low.c (win32_create_inferior): Adjust function prototype
5948 and code to reflect change on "target.h".
5949
5950 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5951
5952 * inferiors.c (switch_to_thread): New function.
5953
5954 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5955
5956 * Makefile.in (SFILE): Add "common/job-control.c".
5957 (OBS): Add "job-control.o".
5958
5959 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5960
5961 * Makefile: Remove "@host_makefile_frag@".
5962
5963 2017-05-05 Pedro Alves <palves@redhat.com>
5964
5965 * configure: Regenerate.
5966
5967 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5968
5969 * configure: Regenerate.
5970
5971 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
5974 software_single_step change of return type to
5975 std::vector<CORE_ADDR>.
5976 * linux-low.c (install_software_single_step_breakpoints):
5977 Likewise.
5978 * linux-low.h (install_software_single_step_breakpoints):
5979 Likewise.
5980
5981 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5982
5983 * remote-utils.c: Include "gdb_termios.h" instead of
5984 "terminal.h".
5985 * terminal.h: Delete file.
5986
5987 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5988
5989 * server.c: Include <vector>.
5990 <program_argv, wrapper_argv>: Convert to std::vector.
5991 (start_inferior): Rewrite function to use C++.
5992 (handle_v_run): Likewise. Update code that calculates the argv
5993 based on the vRun packet; use C++.
5994 (captured_main): Likewise.
5995
5996 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5997
5998 * server.c (handle_v_cont): Initialize thread_resume::thread
5999 with null_ptid.
6000
6001 2017-04-05 Pedro Alves <palves@redhat.com>
6002
6003 * configure: Regenerate.
6004
6005 2017-04-05 Pedro Alves <palves@redhat.com>
6006
6007 * gdbreplay.c (sync_error): Constify.
6008 * linux-x86-low.c (push_opcode): Constify.
6009
6010 2017-04-05 Pedro Alves <palves@redhat.com>
6011
6012 * win32-low.c (get_child_debug_event)
6013 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6014 Report TARGET_WAITKIND_SPURIOUS instead.
6015
6016 2017-04-05 Pedro Alves <palves@redhat.com>
6017
6018 * remote-utils.c (remote_prepare, remote_open): Constify.
6019 * remote-utils.h (remote_prepare, remote_open): Constify.
6020 * server.c (captured_main): Constify 'port' handling.
6021
6022 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6023
6024 * Makefile.in (clean): Clear .deps.
6025
6026 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * .gitignore: Remove generated files, replace with wildcard.
6029 * (clean): Replace removal of generated files with wildcard.
6030 (version.c): Replace with...
6031 (version-generated.c): ...this.
6032 (xml-builtin.c): Replace with...
6033 (xml-builtin-generated.c): ...this.
6034 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6035 (%.c: *regformats*): Replace with...
6036 (%-generated.c: *regformats*): ...this.
6037
6038 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6039
6040 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6041 (xtensa_fill_gregset): Call collect_register_by_name for
6042 threadptr register.
6043 (xtensa_store_gregset): Call supply_register_by_name for
6044 threadptr register.
6045
6046 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6047
6048 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6049 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6050 (xtensa_store_gregset): Call supply_register for all registers in
6051 a0_regnum..a0_regnum + C0_NREGS range.
6052
6053 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6056 (ax-ipa.o: ax.c): Remove.
6057 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6058 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6059 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6060 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6061 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6062
6063 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6064
6065 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6066 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6067 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6068 (errors-ipa.o: ../common/errors.c): Remove.
6069 (format-ipa.o: ../common/format.c): Remove.
6070 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6071
6072 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6073
6074 * Makefile.in (%-ipa.o: %.c): New rule.
6075 (tracepoint-ipa.o: tracepoint.c): Remove.
6076 (utils-ipa.o: utils.c): Remove.
6077 (remote-utils-ipa.o: remote-utils.c): Remove.
6078 (regcache-ipa.o: regcache.c): Remove.
6079 (i386-linux-ipa.o: i386-linux.c): Remove.
6080 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6081 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6082 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6083 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6084 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6085 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6086 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6087 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6088 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6089 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6090 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6091 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6092 (aarch64-ipa.o: aarch64.c): Remove.
6093 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6094 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6095 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6096 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6097 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6098 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6099 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6100 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6101 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6102 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6103 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6104 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6105 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6106 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6107 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6108 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6109 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6110 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6111 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6112 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6113 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6114 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6115 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6116 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6117 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6118 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6119 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6120 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6121 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6122 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6123 (tdesc-ipa.o: tdesc.c): Remove.
6124 (x32-linux-ipa.o: x32-linux.c): Remove.
6125 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6126 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6127
6128 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * Makefile.in (%.o: ../arch/%.c): New rule.
6131 (arm.o: ../arch/arm.c): Remove.
6132 (arm-linux.o: ../arch/arm-linux.c): Remove.
6133 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6134 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6135
6136 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * Makefile.in (%.o: ../nat/%.c): New rule.
6139 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6140 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6141 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6142 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6143 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6144 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6145 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6146 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6147 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6148 (linux-personality.o: ../nat/linux-personality.c): Remove.
6149 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6150 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6151 (x86-linux.o: ../nat/x86-linux.c): Remove.
6152 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6153 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6154
6155 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * Makefile.in (%.o: ../common/%.c): New rule.
6158 (signals.o: ../common/signals.c): Remove.
6159 (print-utils.o: ../common/print-utils.c): Remove.
6160 (rsp-low.o: ../common/rsp-low.c): Remove.
6161 (common-utils.o: ../common/common-utils.c): Remove.
6162 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6163 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6164 (vec.o: ../common/vec.c): Remove.
6165 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6166 (xml-utils.o: ../common/xml-utils.c): Remove.
6167 (ptid.o: ../common/ptid.c): Remove.
6168 (buffer.o: ../common/buffer.c): Remove.
6169 (format.o: ../common/format.c): Remove.
6170 (filestuff.o: ../common/filestuff.c): Remove.
6171 (agent.o: ../common/agent.c): Remove.
6172 (errors.o: ../common/errors.c): Remove.
6173 (environ.o: ../common/environ.c): Remove.
6174 (common-debug.o: ../common/common-debug.c): Remove.
6175 (cleanups.o: ../common/cleanups.c): Remove.
6176 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6177 (fileio.o: ../common/fileio.c): Remove.
6178 (common-regcache.o: ../common/common-regcache.c): Remove.
6179 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6180 (new-op.o: ../common/new-op.c): Remove.
6181 (btrace-common.o: ../common/btrace-common.c): Remove.
6182
6183 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6184
6185 * Makefile.in (%.o: ../target/%.c): New rule.
6186 (waitstatus.o: ../target/waitstatus.c): Remove.
6187
6188 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * Makefile.in
6191 (%.c: ../regformats/%.dat,
6192 (%.c: ../regformats/arm/%.dat,
6193 (%.c: ../regformats/i386/%.dat,
6194 (%.c: ../regformats/rs6000/%.dat): New rules.
6195 (aarch64.c): Remove.
6196 (reg-arm.c): Remove.
6197 (arm-with-iwmmxt.c): Remove.
6198 (arm-with-vfpv2.c): Remove.
6199 (arm-with-vfpv3.c): Remove.
6200 (arm-with-neon.c): Remove.
6201 (reg-bfin.c): Remove.
6202 (reg-cris.c): Remove.
6203 (reg-crisv32.c): Remove.
6204 (i386.c): Remove.
6205 (i386-linux.c): Remove.
6206 (i386-avx.c): Remove.
6207 (i386-avx-linux.c): Remove.
6208 (i386-avx-avx512.c): Remove.
6209 (i386-avx-avx512-linux.c): Remove.
6210 (i386-mpx.c): Remove.
6211 (i386-mpx-linux.c): Remove.
6212 (i386-avx-mpx-avx512-pku.c): Remove.
6213 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6214 (i386-avx-mpx.c): Remove.
6215 (i386-avx-mpx-linux.c): Remove.
6216 (i386-mmx.c): Remove.
6217 (i386-mmx-linux.c): Remove.
6218 (reg-ia64.c): Remove.
6219 (reg-m32r.c): Remove.
6220 (reg-m68k.c): Remove.
6221 (reg-cf.c): Remove.
6222 (mips-linux.c): Remove.
6223 (mips-dsp-linux.c): Remove.
6224 (mips64-linux.c): Remove.
6225 (mips64-dsp-linux.c): Remove.
6226 (nios2-linux.c): Remove.
6227 (powerpc-32.c): Remove.
6228 (powerpc-32l.c): Remove.
6229 (powerpc-altivec32l.c): Remove.
6230 (powerpc-cell32l.c): Remove.
6231 (powerpc-vsx32l.c): Remove.
6232 (powerpc-isa205-32l.c): Remove.
6233 (powerpc-isa205-altivec32l.c): Remove.
6234 (powerpc-isa205-vsx32l.c): Remove.
6235 (powerpc-e500l.c): Remove.
6236 (powerpc-64l.c): Remove.
6237 (powerpc-altivec64l.c): Remove.
6238 (powerpc-cell64l.c): Remove.
6239 (powerpc-vsx64l.c): Remove.
6240 (powerpc-isa205-64l.c): Remove.
6241 (powerpc-isa205-altivec64l.c): Remove.
6242 (powerpc-isa205-vsx64l.c): Remove.
6243 (s390-linux32.c): Remove.
6244 (s390-linux32v1.c): Remove.
6245 (s390-linux32v2.c): Remove.
6246 (s390-linux64.c): Remove.
6247 (s390-linux64v1.c): Remove.
6248 (s390-linux64v2.c): Remove.
6249 (s390-te-linux64.c): Remove.
6250 (s390-vx-linux64.c): Remove.
6251 (s390-tevx-linux64.c): Remove.
6252 (s390x-linux64.c): Remove.
6253 (s390x-linux64v1.c): Remove.
6254 (s390x-linux64v2.c): Remove.
6255 (s390x-te-linux64.c): Remove.
6256 (s390x-vx-linux64.c): Remove.
6257 (s390x-tevx-linux64.c): Remove.
6258 (tic6x-c64xp-linux.c): Remove.
6259 (tic6x-c64x-linux.c): Remove.
6260 (tic6x-c62x-linux.c): Remove.
6261 (reg-sh.c): Remove.
6262 (reg-sparc64.c): Remove.
6263 (reg-spu.c): Remove.
6264 (amd64.c): Remove.
6265 (amd64-linux.c): Remove.
6266 (amd64-avx.c): Remove.
6267 (amd64-avx-linux.c): Remove.
6268 (amd64-avx-avx512.c): Remove.
6269 (amd64-avx-avx512-linux.c): Remove.
6270 (amd64-mpx.c): Remove.
6271 (amd64-mpx-linux.c): Remove.
6272 (amd64-avx-mpx-avx512-pku.c): Remove.
6273 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6274 (amd64-avx-mpx.c): Remove.
6275 (amd64-avx-mpx-linux.c): Remove.
6276 (x32.c): Remove.
6277 (x32-linux.c): Remove.
6278 (x32-avx.c): Remove.
6279 (x32-avx-linux.c): Remove.
6280 (x32-avx-avx512.c): Remove.
6281 (x32-avx-avx512-linux.c): Remove.
6282 (reg-xtensa.c): Remove.
6283 (reg-tilegx.c): Remove.
6284 (reg-tilegx32.c): Remove.
6285
6286 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6287
6288 * Makefile.in (SFILES): Add "common/environ.c".
6289 (OBJS): Add "common/environ.h".
6290
6291 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6292
6293 * configure.ac: Check if the fs_base and gs_base members of
6294 `struct user_regs_struct' exist.
6295 * config.in: Regenerated.
6296 * configure: Likewise.
6297
6298 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6299
6300 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6301 target_read_memory.
6302 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6303 (get_next_pcs_syscall_next_pc): Likewise.
6304
6305 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
6306
6307 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6308 * nto-x86-low.c: Likewise.
6309
6310 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * Makefile.in: Include disable-implicit-rules.mk.
6313
6314 2016-11-23 Pedro Alves <palves@redhat.com>
6315
6316 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6317 (debug_vprintf): Use std::chrono::steady_clock instead of
6318 gettimeofday. Use '.' instead of ':'.
6319 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6320 (get_timestamp): Use std::chrono::steady_clock instead of
6321 gettimeofday.
6322
6323 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * Makefile.in: Fix whitespace formatting.
6326
6327 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * Makefile.in (SFILES, OBS): Flatten list and order
6330 alphabetically.
6331
6332 2016-11-23 Pedro Alves <palves@redhat.com>
6333
6334 * event-loop.c (handle_file_event): Use warning.
6335 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6336 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6337 Use warning.
6338
6339 2016-11-23 Pedro Alves <palves@redhat.com>
6340
6341 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6342 output.
6343 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
6344 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
6345 debug_printf and debug_flush for debug output.
6346 * server.c (handle_general_set): Likewise.
6347 * thread-db.c (try_thread_db_load): Use debug_printf for debug
6348 output.
6349
6350 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6351
6352 * Makefile.in (.c.o): Replace rule with ...
6353 (%.o: %.c): ... this one.
6354
6355 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6356
6357 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
6358 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
6359 make.
6360 * configure.ac: Remove checks for the make program.
6361 * configure: Re-generate.
6362
6363 2016-10-28 Pedro Alves <palves@redhat.com>
6364
6365 * Makefile.in (CXX_DIALECT): Get from configure.
6366 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
6367 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
6368 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
6369 * config.in: Regenerate.
6370 * configure: Regenerate.
6371
6372 2016-10-27 Yao Qi <yao.qi@linaro.org>
6373
6374 * linux-low.c (linux_supports_range_stepping): Return true if
6375 can_software_single_step return true.
6376
6377 2016-10-27 Yao Qi <yao.qi@linaro.org>
6378
6379 * inferiors.c (find_inferior_in_random): New function.
6380 * inferiors.h (find_inferior_in_random): Declare.
6381 * linux-low.c (linux_wait_for_event_filtered): Call
6382 find_inferior_in_random instead of find_inferior.
6383
6384 2016-10-27 Yao Qi <yao.qi@linaro.org>
6385
6386 * linux-low.c (linux_wait_1): If single-step breakpoints are
6387 inserted, remove them.
6388
6389 2016-10-26 Pedro Alves <palves@redhat.com>
6390
6391 * linux-low.c (handle_extended_wait): Link parent/child fork
6392 threads.
6393 (linux_wait_1): Unlink them.
6394 (linux_set_resume_request): Ignore resume requests for
6395 already-resumed and unhandled fork child threads.
6396 * linux-low.h (struct lwp_info) <fork_relative>: New field.
6397 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
6398 New functions.
6399 (handle_v_requests) <vCont>: Don't call require_running.
6400 * server.h (in_queued_stop_replies): New declaration.
6401
6402 2016-10-24 Yao Qi <yao.qi@linaro.org>
6403
6404 PR server/20733
6405 * linux-aarch64-low.c (append_insns): Cast the return value to
6406 'uint32_t *'.
6407
6408 2016-10-10 Yao Qi <yao.qi@linaro.org>
6409
6410 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
6411
6412 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
6413
6414 * target.c (target_supports_multi_process): New function, moved
6415 from...
6416 * target.h (target_supports_multi_process): ... here. Remove
6417 macro.
6418
6419 2016-10-05 Tom Tromey <tom@tromey.com>
6420
6421 PR remote/20655:
6422 * tracepoint.c (handle_tracepoint_bkpts): Check
6423 ipa_error_tracepoint, not ipa_stopping_tracepoint.
6424
6425 2016-10-05 Yao Qi <yao.qi@linaro.org>
6426
6427 * configure.srv: Update the path of arm-*.xml files.
6428
6429 2016-10-05 Terry Guo <terry.guo@arm.com>
6430 Yao Qi <yao.qi@linaro.org>
6431
6432 * Makefile.in: Adjust the path of rules.
6433 * configure.srv: Update the path of xml files.
6434 * regformats/arm-with-iwmmxt.dat: Regenerated.
6435 * regformats/arm-with-neon.dat: Likewise.
6436 * regformats/arm-with-vfpv2.dat: Likewise.
6437 * regformats/arm-with-vfpv3.dat Likewise.
6438
6439 2016-09-30 Yao Qi <yao.qi@linaro.org>
6440
6441 PR gdbserver/20627
6442 * target.c (target_stop_and_wait): Don't call
6443 target_continue_no_signal, use resume_stop instead.
6444
6445 2016-09-26 Yao Qi <yao.qi@linaro.org>
6446
6447 * linux-low.c (linux_wait_1): Call debug_exit.
6448
6449 2016-09-23 Pedro Alves <palves@redhat.com>
6450
6451 * Makefile.in (SFILES): Add common/new-op.c.
6452 (OBS): Add common/new-op.o.
6453 (new-op.o): New rule.
6454
6455 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 * .gitinore: Ignore more files.
6458
6459 2016-09-21 Yao Qi <yao.qi@linaro.org>
6460
6461 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
6462 23.
6463
6464 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
6465
6466 * server.c (start_inferior): Call target_mourn_inferior instead of
6467 mourn_inferior; pass ptid_t argument to it.
6468 (resume): Likewise.
6469 (handle_target_event): Likewise.
6470 * target.c (target_mourn_inferior): New function.
6471 * target.h (mourn_inferior): Delete macro.
6472
6473 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
6474
6475 * linux-low.c (lwp_is_stepping): New function.
6476
6477 2016-09-06 Carl Love <cel@us.ibm.com>
6478
6479 * server.c (start_inferior): Fixed comment, requested comment change
6480 didn't get updated correctly. Removed reference to ptrace () call as
6481 it is only true on Linux systems.
6482
6483 2016-09-06 Carl Love <cel@us.ibm.com>
6484
6485 * server.c (start_inferior): Do not call
6486 function target_post_create_inferior () if the
6487 inferior process has already exited.
6488
6489 2016-09-05 Pedro Alves <palves@redhat.com>
6490
6491 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
6492 (COMPILE.pre, CC_LD): Use CXX directly.
6493 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
6494 * acinclude.m4: Don't include build-with-cxx.m4.
6495 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
6496 * configure: Regenerate.
6497
6498 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
6499
6500 PR gdb/19495
6501 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
6502 call writing data to own_buf.
6503
6504 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6505
6506 * target.c (mywait): Call target_wait instead of
6507 the_target->wait.
6508 (target_wait): New function.
6509
6510 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
6511
6512 * server.c (start_inferior): New variable 'ptid'. Replace calls
6513 to the_target->resume by target_continue{,_no_signal}, depending
6514 on the case.
6515 * target.c (target_stop_and_wait): Call target_continue_no_signal
6516 instead of the_target->resume.
6517 (target_continue): New function.
6518
6519 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6520
6521 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
6522
6523 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6524
6525 PR server/20491
6526 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
6527 ps_prochandle.
6528 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
6529 * linux-arm-low.c (ps_get_thread_area): Likewise.
6530 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
6531 * linux-m68k-low.c (ps_get_thread_area): Likewise.
6532 * linux-mips-low.c (ps_get_thread_area): Likewise.
6533 * linux-nios2-low.c (ps_get_thread_area): Likewise.
6534 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
6535 * linux-x86-low.c (ps_get_thread_area): Likewise.
6536 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
6537
6538 2016-08-19 Pedro Alves <palves@redhat.com>
6539
6540 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
6541
6542 2016-08-19 Pedro Alves <palves@redhat.com>
6543
6544 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
6545 comment. Use memcpy instead of casting through unsigned long.
6546
6547 2016-08-19 Pedro Alves <palves@redhat.com>
6548
6549 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
6550 allocating around 0x80000000.
6551
6552 2016-08-19 Pedro Alves <palves@redhat.com>
6553
6554 PR gdb/20415
6555 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
6556 (x32-avx512-linux-ipa.o): New rules.
6557 * configure.ac (x86_64-*-linux*): New x32 check.
6558 * configure.srv (ipa_x32_linux_regobj): New.
6559 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
6560 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
6561 descriptions.
6562 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
6563 descriptions.
6564 * configure: Regenerate.
6565
6566 2016-08-09 Pedro Alves <palves@redhat.com>
6567
6568 PR gdb/18653
6569 * Makefile.in (OBS): Add signals-state-save-restore.o.
6570 (signals-state-save-restore.o): New rule.
6571 * config.in: Regenerate.
6572 * configure: Regenerate.
6573 * linux-low.c: Include "signals-state-save-restore.h".
6574 (linux_create_inferior): Call
6575 restore_original_signals_state.
6576 * server.c: Include "dispositions-save-restore.h".
6577 (captured_main): Call save_original_signals_state.
6578
6579 2016-08-05 Pedro Alves <palves@redhat.com>
6580
6581 * configure: Regenerate.
6582
6583 2016-08-04 Yao Qi <yao.qi@linaro.org>
6584
6585 * linux-low.c (regsets_fetch_inferior_registers): Check
6586 errno is ESRCH or not.
6587
6588 2016-08-02 Yao Qi <yao.qi@linaro.org>
6589
6590 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
6591 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
6592 (thread_db_load_search): Update.
6593 (try_thread_db_load_1): Don't look for td_ta_event_addr,
6594 td_ta_set_event and td_ta_event_getmsg.
6595
6596 2016-07-26 Pedro Alves <palves@redhat.com>
6597
6598 PR server/20414
6599 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
6600 of unsigned long for 64-bit registers and use uint32_t instead of
6601 unsigned int for 32-bit registers.
6602
6603 2016-07-26 Pedro Alves <palves@redhat.com>
6604
6605 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
6606 to 'ptrace'.
6607
6608 2016-07-21 Tom Tromey <tom@tromey.com>
6609
6610 * configure: Rebuild.
6611
6612 2016-07-21 Yao Qi <yao.qi@linaro.org>
6613
6614 * mem-break.c (find_gdb_breakpoint): Cast bp to
6615 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
6616
6617 2016-07-21 Yao Qi <yao.qi@linaro.org>
6618
6619 * server.c (handle_v_requests): Support s and S actions
6620 if target_supports_software_single_step return true.
6621
6622 2016-07-21 Yao Qi <yao.qi@linaro.org>
6623
6624 * linux-low.c (resume_stopped_resumed_lwps): If resume request
6625 is resume_step, call maybe_hw_step.
6626 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
6627 and unstop them.
6628 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
6629 breakpoints or not.
6630 (proceed_one_lwp): If resume request is resume_step, install
6631 reinsert breakpoints and call maybe_hw_step.
6632
6633 2016-07-21 Yao Qi <yao.qi@linaro.org>
6634
6635 * linux-low.c (proceed_one_lwp): Declare.
6636 (linux_resume_one_thread): Remove local variable 'step'.
6637 Lift code enqueue signal. Call proceed_one_lwp instead of
6638 linux_resume_one_lwp.
6639
6640 2016-07-21 Yao Qi <yao.qi@linaro.org>
6641
6642 * linux-low.c (linux_resume_one_thread): Call
6643 enqueue_pending_signal.
6644
6645 2016-07-21 Yao Qi <yao.qi@linaro.org>
6646
6647 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6648 * inferiors.c (do_restore_current_thread_cleanup): New function.
6649 (make_cleanup_restore_current_thread): Likewise.
6650 * linux-low.c (install_software_single_step_breakpoints): Call
6651 make_cleanup_restore_current_thread. Switch current_thread to
6652 thread.
6653
6654 2016-07-21 Yao Qi <yao.qi@linaro.org>
6655
6656 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
6657 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
6658 (clone_one_breakpoint): Likewise.
6659 (delete_reinsert_breakpoints): Change parameter to thread.
6660 Callers updated.
6661 (has_reinsert_breakpoints): Likewise.
6662 (uninsert_reinsert_breakpoints): Likewise.
6663 (reinsert_reinsert_breakpoints): Likewise.
6664 * mem-break.h (set_reinsert_breakpoint): Update declaration.
6665 (delete_reinsert_breakpoints): Likewise.
6666 (reinsert_reinsert_breakpoints): Likewise.
6667 (uninsert_reinsert_breakpoints): Likewise.
6668 (has_reinsert_breakpoints): Likewise.
6669
6670 2016-07-21 Yao Qi <yao.qi@linaro.org>
6671
6672 * inferiors.c (get_thread_process): Make parameter const.
6673 * inferiors.h (get_thread_process): Update declaration.
6674 * mem-break.c (clone_all_breakpoints): Remove all parameters.
6675 Add new parameters child_thread and parent_thread. Callers
6676 updated.
6677 * mem-break.h (clone_all_breakpoints): Update declaration.
6678
6679 2016-07-21 Yao Qi <yao.qi@linaro.org>
6680
6681 * mem-break.c (struct breakpoint) <cond_list>: Remove.
6682 <command_list, handler>: Remove.
6683 (struct gdb_breakpoint): New.
6684 (struct other_breakpoint): New.
6685 (struct reinsert_breakpoint): New.
6686 (is_gdb_breakpoint): New function.
6687 (any_persistent_commands): Update command_list if
6688 is_gdb_breakpoint returns true.
6689 (set_breakpoint): Create breakpoints according to their types.
6690 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
6691 (set_gdb_breakpoint_1): Likewise.
6692 (set_gdb_breakpoint): Likewise.
6693 (clear_breakpoint_conditions): Change parameter type to
6694 'struct gdb_breakpoint *'.
6695 (clear_breakpoint_commands): Likewise.
6696 (clear_breakpoint_conditions_and_commands): Likewise.
6697 (add_condition_to_breakpoint): Likewise.
6698 (add_breakpoint_condition): Likewise.
6699 (add_commands_to_breakpoint): Likewise.
6700 (check_breakpoints): Check other_breakpoint.
6701 (clone_one_breakpoint): Clone breakpopint according to its type.
6702 * mem-break.h (struct gdb_breakpoint): Declare.
6703 (set_gdb_breakpoint): Update declaration.
6704 (clear_breakpoint_conditions_and_commands): Likewise.
6705 (add_breakpoint_condition): Likewise.
6706 (add_breakpoint_commands): Likewise.
6707 * server.c (process_point_options): Change parameter type to
6708 'struct gdb_breakpoint *'.
6709
6710 2016-07-21 Yao Qi <yao.qi@linaro.org>
6711
6712 * mem-break.c (set_breakpoint_at): Rename it to ...
6713 (set_breakpoint_type_at): ... it.
6714 (set_breakpoint_at): Call set_breakpoint_type_at.
6715 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
6716 * mem-break.h (set_breakpoint_at): Update comments.
6717
6718 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
6719
6720 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
6721 to buf parameter.
6722 (nios2_store_gregset): Likewise.
6723
6724 2016-07-01 Pedro Alves <palves@redhat.com>
6725 Antoine Tremblay <antoine.tremblay@ericsson.com>
6726
6727 * linux-low.c: Change interface to take the target lwp_info
6728 pointer directly and return void. Handle detaching from a zombie
6729 thread.
6730 (linux_detach_lwp_callback): New function.
6731 (linux_detach): Detach from the leader thread after detaching from
6732 the clone threads.
6733
6734 2016-06-28 Yao Qi <yao.qi@linaro.org>
6735
6736 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
6737 for variable new_offset.
6738 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6739 (aarch64_ftrace_insn_reloc_cb): Likewise.
6740 (aarch64_ftrace_insn_reloc_tb): Likewise.
6741 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
6742 PRIx64 instead of PRIx32.
6743
6744 2016-06-28 Yao Qi <yao.qi@linaro.org>
6745
6746 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
6747 (the_low_target): Install arm_get_syscall_trapinfo.
6748
6749 2016-06-28 Yao Qi <yao.qi@linaro.org>
6750
6751 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
6752 function.
6753 (the_low_target): Install aarch64_get_syscall_trapinfo.
6754
6755 2016-06-28 Yao Qi <yao.qi@linaro.org>
6756
6757 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6758 Callers updated.
6759 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6760 Remove parameter sysno.
6761 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6762 sysret.
6763
6764 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6765
6766 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6767 (s390_emit_ne_goto): Likewise.
6768 (s390_emit_lt_goto): Likewise.
6769 (s390_emit_le_goto): Likewise.
6770 (s390_emit_gt_goto): Likewise.
6771 (s390_emit_ge_goto): Likewise.
6772 (s390x_emit_eq_goto): Likewise.
6773 (s390x_emit_ne_goto): Likewise.
6774 (s390x_emit_lt_goto): Likewise.
6775 (s390x_emit_le_goto): Likewise.
6776 (s390x_emit_gt_goto): Likewise.
6777 (s390x_emit_ge_goto): Likewise.
6778 (s390_emit_ops_impl): Mark variable static.
6779 (s390x_emit_ops): Likewise.
6780
6781 2016-06-17 Yao Qi <yao.qi@linaro.org>
6782
6783 * linux-low.c (handle_extended_wait): Call
6784 uninsert_reinsert_breakpoints for the parent process. Remove
6785 reinsert breakpoints from the child process. Reinsert them to
6786 the parent process when vfork is done.
6787 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6788 (reinsert_reinsert_breakpoints): New function.
6789 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6790 (reinsert_reinsert_breakpoints): Declare.
6791
6792 2016-06-17 Yao Qi <yao.qi@linaro.org>
6793
6794 * linux-low.c (handle_extended_wait): If the parent is doing
6795 step-over, remove the reinsert breakpoints from the forked child.
6796
6797 2016-06-17 Yao Qi <yao.qi@linaro.org>
6798
6799 * linux-low.c (unsuspend_all_lwps): Declare.
6800 (linux_low_filter_event): If thread exited, call finish_step_over.
6801 If step-over is finished, unsuspend other threads.
6802
6803 2016-06-17 Yao Qi <yao.qi@linaro.org>
6804
6805 * linux-low.c (linux_resume_one_lwp_throw): Assert
6806 has_reinsert_breakpoints returns false.
6807 * mem-break.c (delete_disabled_breakpoints): Assert
6808 bp type isn't reinsert_breakpoint.
6809
6810 2016-06-17 Yao Qi <yao.qi@linaro.org>
6811
6812 * linux-low.c (maybe_hw_step): New function.
6813 (linux_resume_one_lwp_throw): Call maybe_hw_step.
6814 (finish_step_over): Switch current_thread to lwp temporarily,
6815 and assert has_reinsert_breakpoints returns true.
6816 (proceed_one_lwp): Call maybe_hw_step.
6817 * mem-break.c (has_reinsert_breakpoints): New function.
6818 * mem-break.h (has_reinsert_breakpoints): Declare.
6819
6820 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6821
6822 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6823
6824 2016-05-17 Yao Qi <yao.qi@linaro.org>
6825
6826 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6827 instead of find_inferior.
6828
6829 2016-05-05 Yao Qi <yao.qi@linaro.org>
6830
6831 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6832 Initialize res to zero.
6833
6834 2016-05-05 Yao Qi <yao.qi@linaro.org>
6835
6836 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6837 to uint32_t.
6838
6839 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6840
6841 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
6842 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
6843 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6844
6845 2016-04-28 Par Olsson <par.olsson@windriver.com>
6846 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * tracepoint.c (write_inferior_int8): New function.
6849 (cmd_qtenable_disable): Write enable flag using
6850 write_inferior_int8.
6851
6852 2016-04-25 Yao Qi <yao.qi@linaro.org>
6853
6854 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
6855 (need_step_over_p): Return zero if the LWP has pending signals
6856 can be delivered on software single step target.
6857
6858 2016-04-25 Yao Qi <yao.qi@linaro.org>
6859
6860 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
6861 return instead of error.
6862
6863 2016-04-22 Yao Qi <yao.qi@linaro.org>
6864
6865 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
6866 to 23.
6867
6868 2016-04-22 Yao Qi <yao.qi@linaro.org>
6869
6870 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
6871 signal when stepping over breakpoint with software single
6872 step.
6873
6874 2016-04-21 Pedro Alves <palves@redhat.com>
6875
6876 * linux-s390-low.c (s390_collect_ptrace_register)
6877 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
6878 add casts.
6879 (s390_check_regset): Use void * instead of gdb_byte *.
6880
6881 2016-04-20 Pedro Alves <palves@redhat.com>
6882
6883 * configure: Renegerate.
6884
6885 2016-04-20 Yao Qi <yao.qi@linaro.org>
6886
6887 * linux-aarch32-low.c: Include "arch/arm-linux.h".
6888 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
6889 number 16.
6890 (arm_store_gregset): Likewise.
6891
6892 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6893
6894 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
6895 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
6896 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
6897 (amd64-avx-mpx-linux.c): New rules.
6898 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
6899 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
6900 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
6901 (srv_amd64_regobj): Add amd64-avx-mpx.o.
6902 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
6903 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
6904 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
6905 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
6906 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
6907 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
6908 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
6909 * linux-x86-low.c (x86_linux_read_description): Add case for
6910 X86_XSTATE_AVX_MPX_MASK.
6911 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
6912 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
6913 init_registers_i386_avx_mpx_linux.
6914 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6915 (initialize_low_tracepoint): Call
6916 init_registers_i386_avx_mpx_linux.
6917 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6918 (initialize_low_tracepoint): Call
6919 init_registers_amd64_avx_mpx_linux.
6920 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
6921 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
6922 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
6923 declarations.
6924
6925 2016-04-18 Pedro Alves <palves@redhat.com>
6926
6927 * configure: Regenerate.
6928
6929 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
6930
6931 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
6932 (aarch64_emit_sub): Likewise.
6933
6934 2016-04-12 Pedro Alves <palves@redhat.com>
6935
6936 * utils.c (prepare_to_throw_exception): Delete.
6937
6938 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
6939
6940 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6941
6942 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6943
6944 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6945
6946 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6947
6948 * linux-aarch64-ipa.c: Add <elf.h> include.
6949 * linux-ppc-ipa.c: Add <elf.h> include.
6950 * linux-s390-ipa.c: Add <elf.h> include.
6951
6952 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6953
6954 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
6955 (get_raw_reg_ptr): Likewise.
6956 (get_trace_state_variable_value_ptr): Likewise.
6957 (set_trace_state_variable_value_ptr): Likewise.
6958 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
6959 char *.
6960
6961 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6962 Marcin Kościelnicki <koriakin@0x04.net>
6963
6964 PR/17221
6965 * linux-ppc-low.c (emit_insns): New function.
6966 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
6967 (ppc_emit_prologue): New function.
6968 (ppc_emit_epilogue): New function.
6969 (ppc_emit_add): New function.
6970 (ppc_emit_sub): New function.
6971 (ppc_emit_mul): New function.
6972 (ppc_emit_lsh): New function.
6973 (ppc_emit_rsh_signed): New function.
6974 (ppc_emit_rsh_unsigned): New function.
6975 (ppc_emit_ext): New function.
6976 (ppc_emit_zero_ext): New function.
6977 (ppc_emit_log_not): New function.
6978 (ppc_emit_bit_and): New function.
6979 (ppc_emit_bit_or): New function.
6980 (ppc_emit_bit_xor): New function.
6981 (ppc_emit_bit_not): New function.
6982 (ppc_emit_equal): New function.
6983 (ppc_emit_less_signed): New function.
6984 (ppc_emit_less_unsigned): New function.
6985 (ppc_emit_ref): New function.
6986 (ppc_emit_const): New function.
6987 (ppc_emit_reg): New function.
6988 (ppc_emit_pop): New function.
6989 (ppc_emit_stack_flush): New function.
6990 (ppc_emit_swap): New function.
6991 (ppc_emit_stack_adjust): New function.
6992 (ppc_emit_call): New function.
6993 (ppc_emit_int_call_1): New function.
6994 (ppc_emit_void_call_2): New function.
6995 (ppc_emit_if_goto): New function.
6996 (ppc_emit_goto): New function.
6997 (ppc_emit_eq_goto): New function.
6998 (ppc_emit_ne_goto): New function.
6999 (ppc_emit_lt_goto): New function.
7000 (ppc_emit_le_goto): New function.
7001 (ppc_emit_gt_goto): New function.
7002 (ppc_emit_ge_goto): New function.
7003 (ppc_write_goto_address): New function.
7004 (ppc_emit_ops_impl): New static variable.
7005 (ppc64v1_emit_prologue): New function.
7006 (ppc64v2_emit_prologue): New function.
7007 (ppc64_emit_epilogue): New function.
7008 (ppc64_emit_add): New function.
7009 (ppc64_emit_sub): New function.
7010 (ppc64_emit_mul): New function.
7011 (ppc64_emit_lsh): New function.
7012 (ppc64_emit_rsh_signed): New function.
7013 (ppc64_emit_rsh_unsigned): New function.
7014 (ppc64_emit_ext): New function.
7015 (ppc64_emit_zero_ext): New function.
7016 (ppc64_emit_log_not): New function.
7017 (ppc64_emit_bit_and): New function.
7018 (ppc64_emit_bit_or): New function.
7019 (ppc64_emit_bit_xor): New function.
7020 (ppc64_emit_bit_not): New function.
7021 (ppc64_emit_equal): New function.
7022 (ppc64_emit_less_signed): New function.
7023 (ppc64_emit_less_unsigned): New function.
7024 (ppc64_emit_ref): New function.
7025 (ppc64_emit_const): New function.
7026 (ppc64v1_emit_reg): New function.
7027 (ppc64v2_emit_reg): New function.
7028 (ppc64_emit_pop): New function.
7029 (ppc64_emit_stack_flush): New function.
7030 (ppc64_emit_swap): New function.
7031 (ppc64v1_emit_call): New function.
7032 (ppc64v2_emit_call): New function.
7033 (ppc64v1_emit_int_call_1): New function.
7034 (ppc64v2_emit_int_call_1): New function.
7035 (ppc64v1_emit_void_call_2): New function.
7036 (ppc64v2_emit_void_call_2): New function.
7037 (ppc64_emit_if_goto): New function.
7038 (ppc64_emit_eq_goto): New function.
7039 (ppc64_emit_ne_goto): New function.
7040 (ppc64_emit_lt_goto): New function.
7041 (ppc64_emit_le_goto): New function.
7042 (ppc64_emit_gt_goto): New function.
7043 (ppc64_emit_ge_goto): New function.
7044 (ppc64v1_emit_ops_impl): New static variable.
7045 (ppc64v2_emit_ops_impl): New static variable.
7046 (ppc_emit_ops): New function.
7047 (linux_low_target): Wire in ppc_emit_ops.
7048
7049 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7050 Marcin Kościelnicki <koriakin@0x04.net>
7051
7052 PR/17221
7053 * Makefile.in: Add powerpc-*-ipa.o
7054 * configure.srv: Add ipa_obj for powerpc*-linux.
7055 * linux-ppc-ipa.c: New file.
7056 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7057 includes.
7058 (PPC_FIELD): New macro.
7059 (PPC_SEXT): New macro.
7060 (PPC_OP6): New macro.
7061 (PPC_BO): New macro.
7062 (PPC_LI): New macro.
7063 (PPC_BD): New macro.
7064 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7065 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7066 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7067 (ppc_get_thread_area): New function.
7068 (is_elfv2_inferior): New function.
7069 (gen_ds_form): New function.
7070 (GEN_STD): New macro.
7071 (GEN_STDU): New macro.
7072 (GEN_LD): New macro.
7073 (GEN_LDU): New macro.
7074 (gen_d_form): New function.
7075 (GEN_ADDI): New macro.
7076 (GEN_ADDIS): New macro.
7077 (GEN_LI): New macro.
7078 (GEN_LIS): New macro.
7079 (GEN_ORI): New macro.
7080 (GEN_ORIS): New macro.
7081 (GEN_LWZ): New macro.
7082 (GEN_STW): New macro.
7083 (GEN_STWU): New macro.
7084 (gen_xfx_form): New function.
7085 (GEN_MFSPR): New macro.
7086 (GEN_MTSPR): New macro.
7087 (GEN_MFCR): New macro.
7088 (GEN_MTCR): New macro.
7089 (GEN_SYNC): New macro.
7090 (GEN_LWSYNC): New macro.
7091 (gen_x_form): New function.
7092 (GEN_OR): New macro.
7093 (GEN_MR): New macro.
7094 (GEN_LWARX): New macro.
7095 (GEN_STWCX): New macro.
7096 (GEN_CMPW): New macro.
7097 (gen_md_form): New function.
7098 (GEN_RLDICL): New macro.
7099 (GEN_RLDICR): New macro.
7100 (gen_i_form): New function.
7101 (GEN_B): New macro.
7102 (GEN_BL): New macro.
7103 (gen_b_form): New function.
7104 (GEN_BNE): New macro.
7105 (GEN_LOAD): New macro.
7106 (GEN_STORE): New macro.
7107 (gen_limm): New function.
7108 (gen_atomic_xchg): New function.
7109 (gen_call): New function.
7110 (ppc_relocate_instruction): New function.
7111 (ppc_install_fast_tracepoint_jump_pad): New function.
7112 (ppc_get_min_fast_tracepoint_insn_len): New function.
7113 (ppc_get_ipa_tdesc_idx): New function.
7114 (the_low_target): Wire in the new functions.
7115 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7116 tdescs.
7117 * linux-ppc-tdesc.h: New file.
7118
7119 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7120
7121 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7122 (alloc_jump_pad_buffer): New function.
7123 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7124 (alloc_jump_pad_buffer): New function.
7125 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7126 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7127 (alloc_jump_pad_buffer): New function.
7128 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7129 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7130 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7131 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7132
7133 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7134
7135 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7136 * linux-amd64-ipa.c: Likewise.
7137 * linux-i386-ipa.c: Likewise.
7138 * linux-s390-ipa.c: Likewise.
7139 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7140 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7141 set_trace_state_variable_value_ptr.
7142 (struct ipa_sym_addresses): Likewise.
7143 (symbol_list): Likewise.
7144 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7145 accessing gdb_collect directly.
7146 (gdb_collect_ptr_type): New typedef.
7147 (get_raw_reg_ptr_type): New typedef.
7148 (get_trace_state_variable_value_ptr_type): New typedef.
7149 (set_trace_state_variable_value_ptr_type): New typedef.
7150 (gdb_collect_ptr): New global.
7151 (get_raw_reg_ptr): New global.
7152 (get_trace_state_variable_value_ptr): New global.
7153 (set_trace_state_variable_value_ptr): New global.
7154 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7155 accessing get_raw_reg directly.
7156 (get_get_tsv_func_addr): Likewise for
7157 get_trace_state_variable_value_ptr.
7158 (get_set_tsv_func_addr): Likewise for
7159 set_trace_state_variable_value_ptr.
7160 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7161
7162 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7163
7164 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7165
7166 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7167
7168 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7169 packets.
7170 (relocate_instruction): Remove own_buf.
7171 * server.c (own_buf): Make global.
7172 (handle_v_requests): Make global.
7173 * server.h (own_buf): New declaration.
7174 (handle_v_requests): New prototype.
7175
7176 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7177
7178 PR 18377
7179 * linux-s390-low.c (add_insns): New function.
7180 (s390_emit_prologue): New function.
7181 (s390_emit_epilogue): New function.
7182 (s390_emit_add): New function.
7183 (s390_emit_sub): New function.
7184 (s390_emit_mul): New function.
7185 (s390_emit_lsh): New function.
7186 (s390_emit_rsh_signed): New function.
7187 (s390_emit_rsh_unsigned): New function.
7188 (s390_emit_ext): New function.
7189 (s390_emit_log_not): New function.
7190 (s390_emit_bit_and): New function.
7191 (s390_emit_bit_or): New function.
7192 (s390_emit_bit_xor): New function.
7193 (s390_emit_bit_not): New function.
7194 (s390_emit_equal): New function.
7195 (s390_emit_less_signed): New function.
7196 (s390_emit_less_unsigned): New function.
7197 (s390_emit_ref): New function.
7198 (s390_emit_if_goto): New function.
7199 (s390_emit_goto): New function.
7200 (s390_write_goto_address): New function.
7201 (s390_emit_litpool): New function.
7202 (s390_emit_const): New function.
7203 (s390_emit_call): New function.
7204 (s390_emit_reg): New function.
7205 (s390_emit_pop): New function.
7206 (s390_emit_stack_flush): New function.
7207 (s390_emit_zero_ext): New function.
7208 (s390_emit_swap): New function.
7209 (s390_emit_stack_adjust): New function.
7210 (s390_emit_set_r2): New function.
7211 (s390_emit_int_call_1): New function.
7212 (s390_emit_void_call_2): New function.
7213 (s390_emit_eq_goto): New function.
7214 (s390_emit_ne_goto): New function.
7215 (s390_emit_lt_goto): New function.
7216 (s390_emit_le_goto): New function.
7217 (s390_emit_gt_goto): New function.
7218 (s390_emit_ge_goto): New function.
7219 (s390x_emit_prologue): New function.
7220 (s390x_emit_epilogue): New function.
7221 (s390x_emit_add): New function.
7222 (s390x_emit_sub): New function.
7223 (s390x_emit_mul): New function.
7224 (s390x_emit_lsh): New function.
7225 (s390x_emit_rsh_signed): New function.
7226 (s390x_emit_rsh_unsigned): New function.
7227 (s390x_emit_ext): New function.
7228 (s390x_emit_log_not): New function.
7229 (s390x_emit_bit_and): New function.
7230 (s390x_emit_bit_or): New function.
7231 (s390x_emit_bit_xor): New function.
7232 (s390x_emit_bit_not): New function.
7233 (s390x_emit_equal): New function.
7234 (s390x_emit_less_signed): New function.
7235 (s390x_emit_less_unsigned): New function.
7236 (s390x_emit_ref): New function.
7237 (s390x_emit_if_goto): New function.
7238 (s390x_emit_const): New function.
7239 (s390x_emit_call): New function.
7240 (s390x_emit_reg): New function.
7241 (s390x_emit_pop): New function.
7242 (s390x_emit_stack_flush): New function.
7243 (s390x_emit_zero_ext): New function.
7244 (s390x_emit_swap): New function.
7245 (s390x_emit_stack_adjust): New function.
7246 (s390x_emit_int_call_1): New function.
7247 (s390x_emit_void_call_2): New function.
7248 (s390x_emit_eq_goto): New function.
7249 (s390x_emit_ne_goto): New function.
7250 (s390x_emit_lt_goto): New function.
7251 (s390x_emit_le_goto): New function.
7252 (s390x_emit_gt_goto): New function.
7253 (s390x_emit_ge_goto): New function.
7254 (s390_emit_ops): New function.
7255 (struct linux_target_ops): Fill in emit_ops hook.
7256
7257 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7258
7259 PR 18377
7260 * Makefile.in: Add s390 IPA files.
7261 * configure.srv: Build IPA for s390.
7262 * linux-s390-ipa.c: New file.
7263 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7264 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7265 (tdesc_s390_linux32): Likewise.
7266 (init_registers_s390_linux32v1): Likewise.
7267 (tdesc_s390_linux32v1): Likewise.
7268 (init_registers_s390_linux32v2): Likewise.
7269 (tdesc_s390_linux32v2): Likewise.
7270 (init_registers_s390_linux64): Likewise.
7271 (tdesc_s390_linux64): Likewise.
7272 (init_registers_s390_linux64v1): Likewise.
7273 (tdesc_s390_linux64v1): Likewise.
7274 (init_registers_s390_linux64v2): Likewise.
7275 (tdesc_s390_linux64v2): Likewise.
7276 (init_registers_s390_te_linux64): Likewise.
7277 (tdesc_s390_te_linux64): Likewise.
7278 (init_registers_s390_vx_linux64): Likewise.
7279 (tdesc_s390_vx_linux64): Likewise.
7280 (init_registers_s390_tevx_linux64): Likewise.
7281 (tdesc_s390_tevx_linux64): Likewise.
7282 (init_registers_s390x_linux64): Likewise.
7283 (tdesc_s390x_linux64): Likewise.
7284 (init_registers_s390x_linux64v1): Likewise.
7285 (tdesc_s390x_linux64v1): Likewise.
7286 (init_registers_s390x_linux64v2): Likewise.
7287 (tdesc_s390x_linux64v2): Likewise.
7288 (init_registers_s390x_te_linux64): Likewise.
7289 (tdesc_s390x_te_linux64): Likewise.
7290 (init_registers_s390x_vx_linux64): Likewise.
7291 (tdesc_s390x_vx_linux64): Likewise.
7292 (init_registers_s390x_tevx_linux64): Likewise.
7293 (tdesc_s390x_tevx_linux64): Likewise.
7294 (have_hwcap_s390_vx): New static variable.
7295 (s390_arch_setup): Fill have_hwcap_s390_vx.
7296 (s390_get_thread_area): New function.
7297 (s390_ft_entry_gpr_esa): New const.
7298 (s390_ft_entry_gpr_zarch): New const.
7299 (s390_ft_entry_misc): New const.
7300 (s390_ft_entry_fr): New const.
7301 (s390_ft_entry_vr): New const.
7302 (s390_ft_main_31): New const.
7303 (s390_ft_main_64): New const.
7304 (s390_ft_exit_fr): New const.
7305 (s390_ft_exit_vr): New const.
7306 (s390_ft_exit_misc): New const.
7307 (s390_ft_exit_gpr_esa): New const.
7308 (s390_ft_exit_gpr_zarch): New const.
7309 (append_insns): New function.
7310 (s390_relocate_instruction): New function.
7311 (s390_install_fast_tracepoint_jump_pad): New function.
7312 (s390_get_min_fast_tracepoint_insn_len): New function.
7313 (s390_get_ipa_tdesc_idx): New function.
7314 (struct linux_target_ops): Wire in the above functions.
7315 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7316 * linux-s390-tdesc.h: New file.
7317
7318 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7319
7320 * linux-s390-low.c (s390_supports_tracepoints): New function.
7321 (struct linux_target_ops): Fill supports_tracepoints hook.
7322
7323 2016-03-18 Yao Qi <yao.qi@linaro.org>
7324
7325 * linux-low.c (lwp_signal_can_be_delivered): New function.
7326 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7327
7328 2016-03-18 Yao Qi <yao.qi@linaro.org>
7329
7330 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7331 0 if signal is enqueued. Remove 'signal' from one debugging
7332 message. Move one debugging message to some lines below.
7333 Remove code setting 'signal' to 0.
7334
7335 2016-03-18 Yao Qi <yao.qi@linaro.org>
7336
7337 * linux-low.c (linux_low_filter_event): Remove redundant
7338 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7339
7340 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7341
7342 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7343 (struct linux_target_ops): Wire in the above.
7344
7345 2016-03-03 Yao Qi <yao.qi@linaro.org>
7346
7347 * linux-low.c: Update comments to start_step_over.
7348
7349 2016-03-03 Yao Qi <yao.qi@linaro.org>
7350
7351 PR server/19736
7352 * linux-low.c (handle_extended_wait): Set child suspended
7353 if event_lwp->bp_reinsert isn't zero.
7354
7355 2016-03-02 Yao Qi <yao.qi@linaro.org>
7356
7357 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
7358 enqueue_pending_signal.
7359
7360 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
7361
7362 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
7363 is actually loaded.
7364
7365 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7366
7367 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
7368 (s390_regmap_3264) [!__s390x__]: New global.
7369 (s390_collect_ptrace_register): Skip map entries containing -1.
7370 (s390_supply_ptrace_register): Ditto.
7371 (s390_fill_gprs_high): New function.
7372 (s390_store_gprs_high): New function.
7373 (s390_regsets): Add NT_S390_HIGH_GPRS.
7374 (s390_get_hwcap): Enable on 31-bit.
7375 (have_hwcap_s390_high_gprs): Enable on 31-bit.
7376 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
7377 Detect NT_S390_HIGH_GPRS.
7378 (s390_usrregs_info_3264): Enable on 31-bit.
7379 (s390_regs_info): Enable regs_info_3264 on 31-bit.
7380 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
7381
7382 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
7383
7384 PR gdb/13808
7385 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
7386 * configure.srv: Ditto.
7387 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
7388 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
7389 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
7390 (init_registers_amd64_linux): Remove prototype.
7391 (tdesc_amd64_linux): Remove declaration.
7392 (get_ipa_tdesc): New function.
7393 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7394 initialize remaining tdescs.
7395 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
7396 (init_registers_i386_linux): Remove prototype.
7397 (tdesc_i386_linux): Remove declaration.
7398 (get_ipa_tdesc): New function.
7399 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
7400 initialize remaining tdescs.
7401 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
7402 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
7403 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
7404 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
7405 (x86_get_ipa_tdesc_idx): New function.
7406 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
7407 * linux-x86-tdesc.h: New file.
7408 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
7409 (target_get_ipa_tdesc_idx): New macro.
7410 * tracepoint.c (ipa_tdesc_idx): New macro.
7411 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
7412 (symbol_list): Add ipa_tdesc_idx.
7413 (cmd_qtstart): Write ipa_tdesc_idx in the target.
7414 (ipa_tdesc): Remove.
7415 (ipa_tdesc_idx): New variable.
7416 (get_context_regcache): Use get_ipa_tdesc.
7417 (gdb_collect): Ditto.
7418 (gdb_probe): Ditto.
7419 * tracepoint.h (get_ipa_tdesc): New prototype.
7420 (ipa_tdesc): Remove.
7421
7422 2016-02-24 Pedro Alves <palves@redhat.com>
7423
7424 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
7425 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
7426 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
7427 Factor out common code between the USE_SIGTRAP_SIGINFO and
7428 !USE_SIGTRAP_SIGINFO blocks.
7429 (linux_low_filter_event): Call save_stop_reason instead of
7430 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
7431 Update comments.
7432 (linux_wait_1): Update comments.
7433
7434 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
7435
7436 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
7437 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
7438 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
7439 ppc_insert_point, ppc_remove_point.
7440
7441 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
7442
7443 * linux-s390-low.c (s390_supports_z_point_type): New function.
7444 (struct linux_target_ops): Wire s390_supports_z_point_type in.
7445
7446 2016-02-16 Yao Qi <yao.qi@linaro.org>
7447
7448 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
7449 PC. Get pc from regcache_read_pc.
7450
7451 2016-02-12 Yao Qi <yao.qi@linaro.org>
7452
7453 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
7454 or linux_get_pc_32bit.
7455 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
7456
7457 2016-02-12 Yao Qi <yao.qi@linaro.org>
7458
7459 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
7460 arm_linux_get_next_pcs_fixup.
7461
7462 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7463
7464 * tracepoint.c (x_tracepoint_action_download): Change
7465 write_inferior_data_ptr to write_inferior_data_pointer.
7466 (cmd_qtstart): Likewise.
7467 (write_inferior_data_ptr): Remove.
7468 (download_agent_expr): Change write_inferior_data_ptr to
7469 write_inferior_data_pointer.
7470 (download_tracepoint_1): Likewise.
7471 (download_tracepoint): Likewise.
7472 (download_trace_state_variables): Likewise.
7473
7474 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
7475 Marcin Kościelnicki <koriakin@0x04.net>
7476
7477 * tracepoint.c (struct tracepoint_action_ops): Remove.
7478 (struct tracepoint_action): Remove ops.
7479 (m_tracepoint_action_download, r_tracepoint_action_download)
7480 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
7481 size and offset accordingly.
7482 (m_tracepoint_action_ops, r_tracepoint_action_ops)
7483 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
7484 (tracepoint_action_send, tracepoint_action_download): New functions.
7485 Helpers for trace action handlers.
7486 (add_tracepoint_action): Remove setup actions ops.
7487 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
7488
7489 2016-02-10 Yao Qi <yao.qi@linaro.org>
7490
7491 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
7492
7493 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7494
7495 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7496 to AC_OUTPUT.
7497 * configure: Regenerate.
7498
7499 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7500
7501 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
7502 void * to gdb_byte *.
7503 * linux-low.c (siginfo_fixup): Likewise.
7504 (linux_xfer_siginfo): Likewise.
7505 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
7506 Likewise.
7507 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
7508
7509 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7510
7511 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
7512 to srv_tgtobj.
7513 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
7514 to srv_tgtobj.
7515 * linux-x86-low.c [__x86_64__]: Include
7516 "nat/amd64-linux-siginfo.h".
7517 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7518 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7519 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7520 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7521 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7522 (cpt_si_fd, si_timerid, si_overrun): Move from
7523 nat/amd64-linux-siginfo.c.
7524 * Makefile.in (amd64-linux-siginfo.o:): New rule.
7525
7526 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7527
7528 * server.c (skip_to_semicolon): Remove.
7529 (process_point_options): Use strchrnul instead of
7530 skip_to_semicolon.
7531
7532 2016-01-26 Yao Qi <yao.qi@linaro.org>
7533
7534 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
7535 * linux-low.c (install_software_single_step_breakpoints): Don't
7536 call regcache_read_pc.
7537 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
7538 argument pc.
7539
7540 2016-01-26 Yao Qi <yao.qi@linaro.org>
7541
7542 * linux-low.c (install_software_single_step_breakpoints): Call
7543 regcache_read_pc instead of get_pc.
7544
7545 2016-01-26 Yao Qi <yao.qi@linaro.org>
7546
7547 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
7548 (unblock_async_io): Rename to ...
7549 (block_unblock_async_io): ... it. New function.
7550 (enable_async_io): Don't install SIGIO handler. Unblock it
7551 instead.
7552 (disable_async_io): Don't ignore SIGIO. Block it instead.
7553 (initialize_async_io): Install SIGIO handler. Don't call
7554 unblock_async_io.
7555
7556 2016-01-26 Yao Qi <yao.qi@linaro.org>
7557
7558 * remote-utils.c (getpkt): If the buffer isn't empty, and the
7559 first character is '\003', call *the_target->request_interrupt.
7560
7561 2016-01-25 Yao Qi <yao.qi@linaro.org>
7562
7563 * remote-utils.c (new_thread_notify): Remove.
7564 (dead_thread_notify): Likewise.
7565 * remote-utils.h (new_thread_notify): Remove declaration.
7566 (dead_thread_notify): Likewise.
7567
7568 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
7569
7570 * gdb.trace/pending.exp: Fix expected message on continue.
7571
7572 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
7573
7574 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
7575 it works properly on big-endian machines where sizeof (CORE_ADDR)
7576 != sizeof (void *).
7577
7578 2016-01-21 Pedro Alves <palves@redhat.com>
7579
7580 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
7581 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
7582 * configure: Regenerate.
7583
7584 2016-01-21 Yao Qi <yao.qi@linaro.org>
7585
7586 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
7587 is_thumb and set it according to CPSR saved on the stack.
7588 (get_next_pcs_syscall_next_pc): Pass is_thumb to
7589 arm_sigreturn_next_pc.
7590
7591 2016-01-18 Yao Qi <yao.qi@linaro.org>
7592
7593 * linux-low.c (linux_set_pc_64bit): New function.
7594 (linux_get_pc_64bit): New function.
7595 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
7596 Declare.
7597 * linux-sparc-low.c (debug_threads): Remove declaration.
7598 (sparc_get_pc): Remove.
7599 (the_low_target): Use linux_get_pc_64bit instead of
7600 sparc_get_pc.
7601 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
7602 (the_low_target): Use linux_get_pc_64bit and
7603 linux_set_pc_64bit.
7604
7605 2016-01-18 Yao Qi <yao.qi@linaro.org>
7606
7607 * linux-arm-low.c (debug_threads): Remove declaration.
7608 (arm_get_pc, arm_set_pc): Remove.
7609 (the_low_target): Use linux_get_pc_32bit and
7610 linux_set_pc_32bit.
7611 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
7612 (the_low_target): Use linux_get_pc_32bit and
7613 linux_set_pc_32bit.
7614 * linux-cris-low.c (debug_threads): Remove declaration.
7615 (cris_get_pc, cris_set_pc,): Remove.
7616 (the_low_target): Use linux_get_pc_32bit and
7617 linux_set_pc_32bit.
7618 * linux-crisv32-low.c (debug_threads): Remove declaration.
7619 (cris_get_pc, cris_set_pc): Remove.
7620 (the_low_target): Use linux_get_pc_32bit and
7621 linux_set_pc_32bit.
7622 * linux-low.c: Include inttypes.h.
7623 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
7624 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
7625 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
7626 (the_low_target): Use linux_get_pc_32bit and
7627 linux_set_pc_32bit.
7628 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
7629 (the_low_target): Use linux_get_pc_32bit and
7630 linux_set_pc_32bit.
7631 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
7632 (the_low_target): Use linux_get_pc_32bit and
7633 linux_set_pc_32bit.
7634 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
7635 (the_low_target): Use linux_get_pc_32bit and
7636 linux_set_pc_32bit.
7637 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
7638 (the_low_target): Use linux_get_pc_32bit and
7639 linux_set_pc_32bit.
7640
7641 2016-01-18 Gary Benson <gbenson@redhat.com>
7642
7643 * configure.ac (AC_FUNC_FORK): New check.
7644 * config.in: Regenerate.
7645 * configure: Likewise.
7646
7647 2016-01-14 Yao Qi <yao.qi@linaro.org>
7648
7649 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
7650 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
7651 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
7652 arm_get_next_pcs_ctor.
7653
7654 2016-01-12 Josh Stone <jistone@redhat.com>
7655 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7656
7657 * inferiors.h: Include "gdb_vecs.h".
7658 (struct process_info): Add syscalls_to_catch.
7659 * inferiors.c (remove_process): Free syscalls_to_catch.
7660 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
7661 syscall_return stops.
7662 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
7663 * server.c (handle_general_set): Handle QCatchSyscalls.
7664 (handle_query): Report support for QCatchSyscalls.
7665 * target.h (struct target_ops): Add supports_catch_syscall.
7666 (target_supports_catch_syscall): New macro.
7667 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
7668 (struct lwp_info): Add syscall_state.
7669 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
7670 Maintain syscall_state and syscalls_to_catch across exec.
7671 (get_syscall_trapinfo): New function, proxy to the_low_target.
7672 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
7673 (linux_low_filter_event): Toggle syscall_state entry/return for
7674 syscall traps, and set it ignored for all others.
7675 (gdb_catching_syscalls_p): New function.
7676 (gdb_catch_this_syscall_p): New function.
7677 (linux_wait_1): Handle SYSCALL_SIGTRAP.
7678 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
7679 (linux_supports_catch_syscall): New function.
7680 (linux_target_ops): Install it.
7681 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
7682 (the_low_target): Install it.
7683
7684 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7685
7686 * acinclude.m4: Include new ../warning.m4 file.
7687 * configure: Regenerated.
7688 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
7689
7690 2016-01-12 Mike Frysinger <vapier@gentoo.org>
7691
7692 * ax.c (is_goto_target): Mark static.
7693 * linux-low.c (register_addr): Likewise.
7694 (linux_fetch_registers, linux_store_registers): Likewise.
7695 * mem-break.c (any_persistent_commands): Fix old prototype.
7696 (add_commands_to_breakpoint): Mark static.
7697 * regcache.c (find_register_by_name): Delete unused func.
7698 * remote-utils.c (hex_or_minus_one): Mark static.
7699 * server.c (monitor_show_help): Mark static.
7700 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
7701 handle_v_requests): Likewise.
7702
7703 2016-01-12 Pedro Alves <palves@redhat.com>
7704
7705 Remove use of the registered trademark symbol throughout.
7706
7707 2016-01-08 Yao Qi <yao.qi@linaro.org>
7708
7709 * remote-utils.c (getpkt): If c is '\003', call target hook
7710 request_interrupt.
7711
7712 2016-01-06 Yao Qi <yao.qi@linaro.org>
7713
7714 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
7715 linux-aarch32-low.c.
7716 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7717 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7718 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7719 (thumb2_breakpoint): Declare.
7720 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
7721 linux-aarch32-low.h.
7722 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7723 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
7724 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7725
7726 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7727
7728 * gdbreplay.c (gdbreplay_version): Change copyright year in
7729 version message.
7730 * server.c (gdbserver_version): Likewise.
7731
7732 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
7733
7734 * server.c (crc32_table): Delete.
7735 (crc32): Use libiberty's xcrc32 function.
7736
7737 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7738
7739 * lynx-low.c (lynx_delete_thread_callback): New function.
7740 (lynx_mourn): Properly delete our process and all of its
7741 threads. Remove call to clear_inferiors.
7742
7743 2015-12-22 Joel Brobecker <brobecker@adacore.com>
7744
7745 * target.c (thread_search_callback): Add check that
7746 the thread_stopped target callback is not NULL before
7747 calling it.
7748
7749 2015-12-21 Yao Qi <yao.qi@linaro.org>
7750
7751 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
7752 arm breakpoint.
7753
7754 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7755
7756 * server.c (handle_query): Call target_supports_software_single_step.
7757
7758 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7759
7760 * linux-low.c (single_step): New function.
7761 (linux_resume_one_lwp_throw): Call single_step.
7762 (start_step_over): Likewise.
7763
7764 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7765
7766 * Makefile.in (SFILES): Append arch/arm-linux.c,
7767 arch/arm-get-next-pcs.c.
7768 (arm-linux.o): New rule.
7769 (arm-get-next-pcs.o): New rule.
7770 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7771 arm-linux.o.
7772 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7773 to linux-aarch32-low.c.
7774 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7775 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7776 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7777 (thumb2_breakpoint_len): Likewise.
7778 (arm_is_thumb_mode): Make non-static.
7779 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7780 from linux-aarch32-low.c.
7781 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7782 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7783 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7784 (thumb2_breakpoint_len): Likewise.
7785 (arm_is_thumb_mode): New declaration.
7786 * linux-arm-low.c: Include arch/arm-linux.h
7787 aarch/arm-get-next-pcs.h, sys/syscall.h.
7788 (get_next_pcs_ops): New struct.
7789 (get_next_pcs_addr_bits_remove): New function.
7790 (get_next_pcs_is_thumb): New function.
7791 (get_next_pcs_read_memory_unsigned_integer): Likewise.
7792 (arm_sigreturn_next_pc): Likewise.
7793 (get_next_pcs_syscall_next_pc): Likewise.
7794 (arm_gdbserver_get_next_pcs): Likewise.
7795 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
7796 Initialize.
7797 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7798 * server.h: Include gdb_vecs.h.
7799
7800 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7801
7802 * Makefile.in (SFILES): Append common/common-regcache.c.
7803 (OBS): Append common-regcache.o.
7804 (common-regcache.o): New rule.
7805 * regcache.c (init_register_cache): Initialize cache to
7806 REG_UNAVAILABLE.
7807 (regcache_raw_read_unsigned): New function.
7808 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7809 register_status enum.
7810
7811 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7812
7813 * linux-aarch64-low.c (the_low_targets): Rename
7814 breakpoint_reinsert_addr to get_next_pcs.
7815 * linux-arm-low.c (the_low_targets): Likewise.
7816 * linux-bfin-low.c (the_low_targets): Likewise.
7817 * linux-cris-low.c (the_low_targets): Likewise.
7818 * linux-crisv32-low.c (the_low_targets): Likewise.
7819 * linux-low.c (can_software_single_step): Likewise.
7820 (install_software_single_step_breakpoints): New function.
7821 (start_step_over): Use install_software_single_step_breakpoints.
7822 * linux-low.h: New CORE_ADDR vector.
7823 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
7824 get_next_pcs.
7825 * linux-mips-low.c (the_low_targets): Likewise.
7826 * linux-nios2-low.c (the_low_targets): Likewise.
7827 * linux-sparc-low.c (the_low_targets): Likewise.
7828
7829 2015-12-17 Pedro Alves <palves@redhat.com>
7830
7831 * linux-low.c (linux_kill_one_lwp): Remove references to
7832 LinuxThreads.
7833 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7834 to 'kill'.
7835 (linux_init_signals): Delete.
7836 (initialize_low): Adjust.
7837 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7838
7839 2015-12-16 Pedro Alves <palves@redhat.com>
7840
7841 * configure.ac (compiler warning flags): When testing a
7842 -Wno-foo option, check whether -Wfoo works instead.
7843 * configure: Regenerate.
7844
7845 2015-12-11 Don Breazeal <donb@codesourcery.com>
7846
7847 * server.c (process_serial_event): Don't exit from gdbserver
7848 in remote mode if there are still active inferiors.
7849
7850 2015-12-11 Yao Qi <yao.qi@linaro.org>
7851
7852 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
7853 arm_breakpoint_at if the process is 32-bit.
7854
7855 2015-12-11 Yao Qi <yao.qi@linaro.org>
7856
7857 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
7858 arm breakpoint.
7859
7860 2015-12-07 Yao Qi <yao.qi@linaro.org>
7861
7862 * configure.srv: Append arm.o to srv_tgtobj for
7863 aarch64*-*-linux* target.
7864 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
7865 from linux-arm-low.c.
7866 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7867 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7868 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7869 (thumb2_breakpoint_len): Likewise.
7870 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
7871 (arm_breakpoint_kinds): Likewise.
7872 (arm_breakpoint_kind_from_pc): Likewise.
7873 (arm_sw_breakpoint_from_kind): Likewise.
7874 (arm_breakpoint_kind_from_current_state): Likewise.
7875 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
7876 (arm_sw_breakpoint_from_kind): Declare.
7877 (arm_breakpoint_kind_from_current_state): Declare.
7878 (arm_breakpoint_at): Declare.
7879 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
7880 arm_sw_breakpoint_from_kind if process is 32-bit.
7881 (aarch64_breakpoint_kind_from_pc): New function.
7882 (aarch64_breakpoint_kind_from_current_state): New function.
7883 (the_low_target): Initialize fields breakpoint_kind_from_pc
7884 and breakpoint_kind_from_current_state.
7885 * linux-arm-low.c (arm_breakpoint_kinds): Move to
7886 linux-aarch32-low.c.
7887 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
7888 (arm_breakpoint, arm_breakpoint_len): Likewise.
7889 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
7890 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7891 (arm_is_thumb_mode): Likewise.
7892 (arm_breakpoint_at): Likewise.
7893 (arm_breakpoint_kind_from_pc): Likewise.
7894 (arm_sw_breakpoint_from_kind): Likewise.
7895 (arm_breakpoint_kind_from_current_state): Likewise.
7896
7897 Revert:
7898 2015-08-04 Yao Qi <yao.qi@linaro.org>
7899
7900 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7901 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7902 * server.c (extended_protocol): Remove "static".
7903 * server.h (extended_protocol): Declare it.
7904
7905 2015-12-04 Josh Stone <jistone@redhat.com>
7906
7907 * target.h (struct target_ops) <arch_setup>: Rename to ...
7908 (struct target_ops) <post_create_inferior>: ... this.
7909 (target_arch_setup): Rename to ...
7910 (target_post_create_inferior): ... this, calling post_create_inferior.
7911 * server.c (start_inferior): Update target_arch_setup calls to
7912 target_post_create_inferior.
7913 * linux-low.c (linux_low_ptrace_options): Forward declare.
7914 (linux_arch_setup): Update its comment for general use.
7915 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
7916 (struct linux_target_ops): Use linux_post_create_inferior.
7917 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
7918 to post_create_inferior.
7919 * nto-low.c (struct nto_target_ops): Likewise.
7920 * spu-low.c (struct spu_target_ops): Likewise.
7921 * win32-low.c (struct win32_target_ops): Likewise.
7922
7923 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
7924
7925 * linux-arm-low.c: Remove duplicate arch/arm.h include.
7926
7927 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7928
7929 * linux-arm-low.c (arm_reinsert_addr): Remove function.
7930 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
7931 * linux-cris-low.c (cris_reinsert_addr> Remove function.
7932 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7933 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
7934 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7935 * linux-mips-low.c (mips_reinsert_addr): Remove function.
7936 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7937 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
7938 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7939 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
7940 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7941
7942 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7943
7944 * linux-low.c (linux_look_up_symbols): Don't call
7945 linux_supports_traceclone.
7946 * linux-low.h (thread_db_init): Remove use_events argument.
7947 * thread-db.c (thread_db_use_event): Remove global variable.
7948 (struct thread_db) <td_thr_event_enable_p>: Remove field.
7949 (struct thread_db) <td_create_bp>: Remove field.
7950 (thread_db_create_event): Remove function.
7951 (thread_db_enable_reporting): Likewise.
7952 (find_one_thread): Don't check for thread_db_use_events.
7953 (attach_thread): Likewise.
7954 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
7955 (try_thread_db_load_1): Don't check for thread_db_use_events.
7956 (thread_db_init): Remove use_events argument and thread events
7957 handling.
7958 (remove_thread_event_breakpoints): Remove function.
7959 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7960
7961 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7962
7963 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7964 New function.
7965 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7966 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
7967 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7968 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
7969 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
7970 Initialize.
7971 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7972 New function.
7973 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7974 * linux-low.c (can_hardware_single_step): Use
7975 supports_hardware_single_step.
7976 (can_software_single_step): New function.
7977 (start_step_over): Call can_software_single_step.
7978 (linux_supports_hardware_single_step): New function.
7979 (struct target_ops) <supports_software_single_step>: Initialize.
7980 * linux-low.h (struct linux_target_ops)
7981 <supports_hardware_single_step>: Initialize.
7982 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
7983 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7984 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
7985 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
7986 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
7987 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7988 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
7989 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7990 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
7991 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
7992 Initialize.
7993 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7994 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7995 Initialize.
7996 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7997 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7998 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7999 New function.
8000 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8001 * target.h (struct target_ops): <supports_software_single_step>:
8002 New field.
8003 (target_supports_software_single_step): New macro.
8004
8005 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8006
8007 * linux-low.c (linux_wait_1): Fix pc advance condition.
8008 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8009 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8010
8011 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8012
8013 * linux-arm-low.c (arm_is_thumb_mode): New function.
8014 (arm_breakpoint_at): Use arm_is_thumb_mode.
8015 (arm_breakpoint_kind_from_current_state): New function.
8016 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8017 Initialize.
8018 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8019 (linux_breakpoint_kind_from_current_state): New function.
8020 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8021 * linux-low.h (struct linux_target_ops)
8022 <breakpoint_kind_from_current_state>: New field.
8023 * target.h (struct target_ops): Likewise.
8024 (target_breakpoint_kind_from_current_state): New macro.
8025
8026 2015-11-30 Pedro Alves <palves@redhat.com>
8027
8028 * linux-low.c (linux_resume): Wake up the event loop before
8029 returning.
8030
8031 2015-11-30 Pedro Alves <palves@redhat.com>
8032
8033 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8034 check.
8035 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8036 to -1.
8037 * target.c (struct thread_search): New structure.
8038 (thread_search_callback): New function.
8039 (prev_general_thread): New global.
8040 (prepare_to_access_memory, done_accessing_memory): New functions.
8041 * target.h (prepare_to_access_memory, done_accessing_memory):
8042 Replace macros with function declarations.
8043
8044 2015-11-30 Pedro Alves <palves@redhat.com>
8045
8046 PR 14618
8047 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8048 report TARGET_WAITKIND_NO_RESUMED.
8049 * remote-utils.c (prepare_resume_reply): Handle
8050 TARGET_WAITKIND_NO_RESUMED.
8051 * server.c (report_no_resumed): New global.
8052 (handle_query) <qSupported>: Handle "no-resumed+". Report
8053 "no-resumed+" support.
8054 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8055 return error if the client doesn't support no-resumed events.
8056 (push_stop_notification): New function.
8057 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8058 events if the client supports them.
8059
8060 2015-11-30 Pedro Alves <palves@redhat.com>
8061
8062 * linux-low.c (thread_still_has_status_pending_p): Don't check
8063 vCont;t here.
8064 (lwp_resumed): New function.
8065 (status_pending_p_callback): Return early if the LWP is not
8066 supposed to be resumed.
8067
8068 2015-11-30 Pedro Alves <palves@redhat.com>
8069
8070 * linux-low.c (handle_extended_wait): Assert that the LWP's
8071 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8072 thread create events, leave the new child's status pending.
8073 (linux_low_filter_event): If GDB wants to hear about thread exit
8074 events, leave the LWP marked dead and don't delete it.
8075 (linux_wait_for_event_filtered): Don't check for thread exit.
8076 (filter_exit_event): New function.
8077 (linux_wait_1): Use it, when returning an exit event.
8078 (linux_resume_one_lwp_throw): Assert that the LWP's
8079 waitstatus is TARGET_WAITKIND_IGNORE.
8080 * remote-utils.c (prepare_resume_reply): Handle
8081 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8082 * server.c (report_thread_events): New global.
8083 (handle_general_set): Handle QThreadEvents.
8084 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8085 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8086 TARGET_WAITKIND_THREAD_EXITED.
8087 * server.h (report_thread_events): Declare.
8088
8089 2015-11-30 Pedro Alves <palves@redhat.com>
8090
8091 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8092 the thread's last_resume_kind was resume_stop.
8093
8094 2015-11-30 Pedro Alves <palves@redhat.com>
8095
8096 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8097 before returning.
8098
8099 2015-11-30 Pedro Alves <palves@redhat.com>
8100
8101 * server.c (handle_v_requests): Handle vCtrlC.
8102
8103 2015-11-30 Pedro Alves <palves@redhat.com>
8104
8105 * gdbthread.h (find_any_thread_of_pid): Declare.
8106 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8107 functions.
8108 * server.c (handle_query): If current_thread is NULL, look for
8109 another thread of the selected process.
8110
8111 2015-11-26 Daniel Colascione <dancol@dancol.org>
8112 Simon Marchi <simon.marchi@ericsson.com>
8113
8114 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8115 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8116 name in reply.
8117 * target.h (struct target_ops) <thread_name>: New field.
8118 (target_thread_name): New macro.
8119
8120 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8121
8122 * regcache.h (regcache_invalidate_pid): Add declaration.
8123 * regcache.c (regcache_invalidate_pid): New function, extracted
8124 from regcache_invalidate.
8125 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8126 Add trivial documentation comment.
8127 * lynx-low.c: Use regcache_invalidate_pid instead of
8128 regcache_invalidate.
8129
8130 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8131
8132 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8133 and Elf64_auxv_t if the target is Android.
8134
8135 2015-11-22 Doug Evans <xdje42@gmail.com>
8136
8137 * target.h: #include <sys/types.h>.
8138
8139 2015-11-19 Pedro Alves <palves@redhat.com>
8140
8141 * linux-low.c (linux_process_qsupported): Change prototype.
8142 Adjust.
8143 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8144 Change prototype.
8145 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8146 and adjust to loop over all features.
8147 * server.c (handle_query) <qSupported>: Adjust to call
8148 target_process_qsupported once, passing it a vector of unprocessed
8149 features.
8150 * target.h (struct target_ops) <process_qsupported>: Change
8151 prototype.
8152 (target_process_qsupported): Adjust.
8153
8154 2015-11-19 Pedro Alves <palves@redhat.com>
8155
8156 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8157 mode.
8158 * configure: Regenerate.
8159
8160 2015-11-19 Pedro Alves <palves@redhat.com>
8161
8162 * configure: Regenerate.
8163
8164 2015-11-19 Yao Qi <yao.qi@linaro.org>
8165
8166 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8167 type to uint32_t.
8168
8169 2015-11-19 Yao Qi <yao.qi@linaro.org>
8170
8171 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8172 (struct aarch64_operand): Move enum out.
8173
8174 2015-11-19 Yao Qi <yao.qi@linaro.org>
8175
8176 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8177 struct user_fpsimd_state *.
8178 (aarch64_store_fpregset): Likewise.
8179
8180 2015-11-19 Yao Qi <yao.qi@linaro.org>
8181
8182 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8183 struct user_pt_regs *.
8184 (aarch64_store_gregset): Likewise.
8185
8186 2015-11-18 Pedro Alves <palves@redhat.com>
8187
8188 * Makefile.in (all_object_files): Add $IPA_OBJS.
8189
8190 2015-11-17 Pedro Alves <palves@redhat.com>
8191
8192 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8193 GDB_SIGNAL_0 and gdb_signal_to_string.
8194
8195 2015-11-17 Pedro Alves <palves@redhat.com>
8196
8197 * win32-low.c (handle_output_debug_string): Remove parameter.
8198 (win32_kill): Remove our_status local and adjust call to
8199 handle_output_debug_string.
8200 (get_child_debug_event): Adjust call to
8201 handle_output_debug_string.
8202
8203 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8204
8205 * linux-mips-low.c (mips_fill_gregset): Add cast.
8206 (mips_store_gregset): Likewise.
8207 (mips_fill_fpregset): Likewise.
8208 (mips_store_fpregset): Likewise.
8209
8210 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8211
8212 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8213 priv.
8214
8215 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8216
8217 * linux-mips-low.c (mips_linux_new_thread): Change type of
8218 watch_type to enum target_hw_bp_type.
8219
8220 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8221
8222 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8223 Change return type to arm_hwbp_type.
8224
8225 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8226
8227 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8228 (arm_store_gregset): Likewise.
8229 * linux-arm-low.c (arm_get_hwcap): Likewise.
8230 (arm_read_description): Likewise.
8231
8232 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8233
8234 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8235
8236 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8237
8238 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8239 (ppc_fill_vsxregset): Likewise.
8240 (ppc_store_vsxregset): Likewise.
8241 (ppc_fill_vrregset): Likewise.
8242 (ppc_store_vrregset): Likewise.
8243 (ppc_fill_evrregset): Likewise.
8244 (ppc_store_evrregset): Likewise.
8245
8246 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8247
8248 * linux-ppc-low.c (ppc_usrregs_info): Remove
8249 forward-declaration.
8250 (ppc_arch_setup): Move lower in file.
8251
8252 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8253
8254 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8255 (ps_pdwrite): Likewise.
8256
8257 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8258
8259 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8260 to after assert checks.
8261
8262 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8263
8264 * proc-service.c (ps_pdread): Add/adjust casts.
8265 (ps_pdwrite): Add/adjust casts.
8266
8267 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8268
8269 * server.c (handle_search_memory_1): Cast return value of
8270 memmem.
8271
8272 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8273
8274 * server.c (write_qxfer_response): Change type of data to
8275 gdb_byte *.
8276
8277 2015-10-29 Pedro Alves <palves@redhat.com>
8278
8279 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8280
8281 2015-10-29 Pedro Alves <palves@redhat.com>
8282
8283 * tracepoint.c (clear_installed_tracepoints): Add casts.
8284
8285 2015-10-29 Pedro Alves <palves@redhat.com>
8286
8287 * server.c (handle_v_cont, process_serial_event): Add enum
8288 gdb_signal casts to signal parsing code.
8289
8290 2015-10-29 Pedro Alves <palves@redhat.com>
8291
8292 * linux-low.h (NULL_REGSET): Define.
8293 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8294 * linux-arm-low.c (arm_regsets): Likewise.
8295 * linux-crisv32-low.c (cris_regsets): Likewise.
8296 * linux-m68k-low.c (m68k_regsets): Likewise.
8297 * linux-mips-low.c (mips_regsets): Likewise.
8298 * linux-nios2-low.c (nios2_regsets): Likewise.
8299 * linux-ppc-low.c (ppc_regsets): Likewise.
8300 * linux-s390-low.c (s390_regsets): Likewise.
8301 * linux-sh-low.c (sh_regsets): Likewise.
8302 * linux-sparc-low.c (sparc_regsets): Likewise.
8303 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8304 * linux-tile-low.c (tile_regsets): Likewise.
8305 * linux-x86-low.c (x86_regsets): Likewise.
8306 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8307
8308 2015-10-29 Pedro Alves <palves@redhat.com>
8309
8310 * linux-low.h (NULL_REGSET): Define.
8311 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8312 * linux-arm-low.c (arm_regsets): Likewise.
8313 * linux-crisv32-low.c (cris_regsets): Likewise.
8314 * linux-m68k-low.c (m68k_regsets): Likewise.
8315 * linux-mips-low.c (mips_regsets): Likewise.
8316 * linux-nios2-low.c (nios2_regsets): Likewise.
8317 * linux-ppc-low.c (ppc_regsets): Likewise.
8318 * linux-s390-low.c (s390_regsets): Likewise.
8319 * linux-sh-low.c (sh_regsets): Likewise.
8320 * linux-sparc-low.c (sparc_regsets): Likewise.
8321 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8322 * linux-tile-low.c (tile_regsets): Likewise.
8323 * linux-x86-low.c (x86_regsets): Likewise.
8324 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8325
8326 2015-10-26 Doug Evans <dje@google.com>
8327
8328 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8329
8330 2015-10-26 Doug Evans <dje@google.com>
8331
8332 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8333
8334 2015-10-26 Doug Evans <dje@google.com>
8335
8336 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8337 for debug_printf.
8338 (attach_thread, find_new_threads_callback): Ditto.
8339
8340 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8341
8342 * mem-break.h (set_breakpoint_data): Remove.
8343
8344 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8345
8346 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
8347 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8348 (initialize_low): Remove set_breakpoint_data call.
8349 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
8350 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
8351 (initialize_low): Remove set_breakpoint_data call.
8352 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
8353 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
8354 (initialize_low): Remove set_breakpoint_data call.
8355
8356 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8357
8358 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
8359 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
8360 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
8361 * target.h (target_breakpoint_kind_from_pc): New macro.
8362
8363 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
8364
8365 * linux-low.c (default_breakpoint_kind_from_pc): New function.
8366 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
8367 the default breakpoint kind.
8368
8369 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8370
8371 * linux-arm-low.c (arm_supports_z_point_type): Add software
8372 breakpoint support.
8373
8374 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8375
8376 * linux-arm-low.c: Refactor breakpoint definitions.
8377 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
8378 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
8379
8380 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8381
8382 * Makefile.in: Add arm.c/o.
8383 * configure.srv: Likewise.
8384 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
8385 (arm_breakpoint_kind_from_pc): New function.
8386 (arm_sw_breakpoint_from_kind): Return proper kind.
8387 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
8388
8389 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8390
8391 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
8392 removal.
8393 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
8394 (struct raw_breakpoint) <size>: Remove.
8395 (struct raw_breakpoint) <kind>: Add.
8396 (bp_size): New function.
8397 (bp_opcode): Likewise.
8398 (find_raw_breakpoint_at): Adjust for kind.
8399 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
8400 (remove_memory_breakpoint): Adjust for kind call bp_size.
8401 (set_raw_breakpoint_at): Adjust for kind.
8402 (set_breakpoint): Likewise.
8403 (set_breakpoint_at): Call breakpoint_kind_from_pc.
8404 (delete_raw_breakpoint): Adjust for kind.
8405 (delete_breakpoint): Likewise.
8406 (find_gdb_breakpoint): Likewise.
8407 (set_gdb_breakpoint_1): Likewise.
8408 (set_gdb_breakpoint): Likewise.
8409 (delete_gdb_breakpoint_1): Likewise.
8410 (delete_gdb_breakpoint): Likewise.
8411 (uninsert_raw_breakpoint): Likewise.
8412 (reinsert_raw_breakpoint): Likewise.
8413 (set_breakpoint_data): Remove.
8414 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
8415 (check_mem_read): Adjust for kind call bp_size.
8416 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
8417 (clone_one_breakpoint): Adjust for kind.
8418 * mem-break.h (set_gdb_breakpoint): Likewise.
8419 (delete_gdb_breakpoint): Likewise.
8420 * server.c (process_serial_event): Likewise.
8421
8422 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8423
8424 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
8425 (struct linux_target_ops) <breakpoint>: Remove.
8426 (struct linux_target_ops) <breakpoint_len>: Remove.
8427 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8428 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8429 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
8430 (arm_sw_breakpoint_from_kind): New function.
8431 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
8432 (struct linux_target_ops) <breakpoint>: Remove.
8433 (struct linux_target_ops) <breakpoint_len>: Remove.
8434 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8435 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8436 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
8437 (struct linux_target_ops) <breakpoint>: Remove.
8438 (struct linux_target_ops) <breakpoint_len>: Remove.
8439 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8440 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8441 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
8442 (struct linux_target_ops) <breakpoint>: Remove.
8443 (struct linux_target_ops) <breakpoint_len>: Remove.
8444 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8445 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8446 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
8447 and sw_breakpoint_from_kind to increment the pc.
8448 (linux_breakpoint_kind_from_pc): New function.
8449 (linux_sw_breakpoint_from_kind): New function.
8450 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
8451 (initialize_low): Call breakpoint_kind_from_pc and
8452 sw_breakpoint_from_kind to replace breakpoint_data/len.
8453 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
8454 New field.
8455 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
8456 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
8457 (struct linux_target_ops) <breakpoint>: Remove.
8458 (struct linux_target_ops) <breakpoint_len>: Remove.
8459 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8460 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8461 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
8462 (struct linux_target_ops) <breakpoint>: Remove.
8463 (struct linux_target_ops) <breakpoint_len>: Remove.
8464 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8465 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8466 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
8467 (struct linux_target_ops) <breakpoint>: Remove.
8468 (struct linux_target_ops) <breakpoint_len>: Remove.
8469 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8470 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8471 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
8472 (struct linux_target_ops) <breakpoint>: Remove.
8473 (struct linux_target_ops) <breakpoint_len>: Remove.
8474 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8475 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8476 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
8477 (struct linux_target_ops) <breakpoint>: Remove.
8478 (struct linux_target_ops) <breakpoint_len>: Remove.
8479 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8480 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8481 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
8482 (struct linux_target_ops) <breakpoint>: Remove.
8483 (struct linux_target_ops) <breakpoint_len>: Remove.
8484 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8485 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8486 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
8487 (struct linux_target_ops) <breakpoint>: Remove.
8488 (struct linux_target_ops) <breakpoint_len>: Remove.
8489 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8490 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8491 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
8492 (struct linux_target_ops) <breakpoint>: Remove.
8493 (struct linux_target_ops) <breakpoint_len>: Remove.
8494 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8495 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8496 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
8497 (struct linux_target_ops) <breakpoint>: Remove.
8498 (struct linux_target_ops) <breakpoint_len>: Remove.
8499 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8500 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8501 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
8502 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
8503 (struct linux_target_ops) <breakpoint>: Remove.
8504 (struct linux_target_ops) <breakpoint_len>: Remove.
8505 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8506 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8507 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
8508 (struct linux_target_ops) <breakpoint>: Remove.
8509 (struct linux_target_ops) <breakpoint_len>: Remove.
8510 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
8511 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
8512
8513 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
8514
8515 * linux-cris-low.c (cris_get_pc): Remove void arg.
8516
8517 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8518
8519 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
8520 variable name.
8521
8522 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
8523
8524 * inferiors.c (thread_pid_matches_callback): New function.
8525 (find_thread_process): New function.
8526 (remove_thread): Reset current_thread.
8527 (remove_process): Assert threads have been removed first.
8528
8529 2015-10-15 Yao Qi <yao.qi@linaro.org>
8530
8531 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
8532 if it is 3.
8533 (aarch64_remove_point): Likewise.
8534 * regcache.c (regcache_register_size): New function.
8535
8536 2015-10-12 Yao Qi <yao.qi@linaro.org>
8537
8538 * linux-aarch64-low.c: Update all callers as emit_load_store
8539 is renamed to aarch64_emit_load_store.
8540
8541 2015-10-12 Yao Qi <yao.qi@linaro.org>
8542
8543 * linux-aarch64-low.c: Update all callers of function renaming
8544 from emit_insn to aarch64_emit_insn.
8545
8546 2015-10-12 Yao Qi <yao.qi@linaro.org>
8547
8548 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
8549 arch/aarch64-insn.h.
8550 (struct aarch64_memory_operand): Likewise.
8551 (ENCODE): Likewise.
8552 (emit_insn): Move to arch/aarch64-insn.c.
8553 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
8554 (emit_load_store): Move to arch/aarch64-insn.c.
8555 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
8556 (can_encode_int32): Remove.
8557
8558 2015-10-12 Yao Qi <yao.qi@linaro.org>
8559
8560 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
8561 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
8562 (aarch64_relocate_instruction): Likewise.
8563 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
8564 (struct aarch64_insn_visitor): Likewise.
8565
8566 2015-10-12 Yao Qi <yao.qi@linaro.org>
8567
8568 * linux-aarch64-low.c (struct aarch64_insn_data): New.
8569 (struct aarch64_insn_visitor): New.
8570 (struct aarch64_insn_relocation_data): New.
8571 (aarch64_ftrace_insn_reloc_b): New function.
8572 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8573 (aarch64_ftrace_insn_reloc_cb): Likewise.
8574 (aarch64_ftrace_insn_reloc_tb): Likewise.
8575 (aarch64_ftrace_insn_reloc_adr): Likewise.
8576 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
8577 (aarch64_ftrace_insn_reloc_others): Likewise.
8578 (visitor): New.
8579 (aarch64_relocate_instruction): Use visitor.
8580
8581 2015-10-12 Yao Qi <yao.qi@linaro.org>
8582
8583 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
8584 int. Add argument buf.
8585 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
8586 aarch64_relocate_instruction.
8587
8588 2015-10-12 Yao Qi <yao.qi@linaro.org>
8589
8590 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
8591 argument insn. Remove local variable insn. Don't call
8592 target_read_uint32.
8593 (aarch64_install_fast_tracepoint_jump_pad): Call
8594 target_read_uint32.
8595
8596 2015-09-30 Yao Qi <yao.qi@linaro.org>
8597
8598 * linux-aarch64-low.c (emit_movk): Shorten a long line.
8599 (emit_load_store_pair): Likewise.
8600
8601 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8602
8603 * dll.c (match_dll): Add cast(s).
8604 (unloaded_dll): Likewise.
8605 * linux-low.c (second_thread_of_pid_p): Likewise.
8606 (delete_lwp_callback): Likewise.
8607 (count_events_callback): Likewise.
8608 (select_event_lwp_callback): Likewise.
8609 (linux_set_resume_request): Likewise.
8610 * server.c (accumulate_file_name_length): Likewise.
8611 (emit_dll_description): Likewise.
8612 (handle_qxfer_threads_worker): Likewise.
8613 (visit_actioned_threads): Likewise.
8614 * thread-db.c (any_thread_of): Likewise.
8615 * tracepoint.c (same_process_p): Likewise.
8616 (match_blocktype): Likewise.
8617 (build_traceframe_info_xml): Likewise.
8618
8619 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
8620
8621 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
8622 assignment.
8623 (gdb_unparse_agent_expr): Likewise.
8624 * hostio.c (require_data): Likewise.
8625 (handle_pread): Likewise.
8626 * linux-low.c (disable_regset): Likewise.
8627 (fetch_register): Likewise.
8628 (store_register): Likewise.
8629 (get_dynamic): Likewise.
8630 (linux_qxfer_libraries_svr4): Likewise.
8631 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
8632 (set_fast_tracepoint_jump): Likewise.
8633 (uninsert_fast_tracepoint_jumps_at): Likewise.
8634 (reinsert_fast_tracepoint_jumps_at): Likewise.
8635 (validate_inserted_breakpoint): Likewise.
8636 (clone_agent_expr): Likewise.
8637 * regcache.c (init_register_cache): Likewise.
8638 * remote-utils.c (putpkt_binary_1): Likewise.
8639 (decode_M_packet): Likewise.
8640 (decode_X_packet): Likewise.
8641 (look_up_one_symbol): Likewise.
8642 (relocate_instruction): Likewise.
8643 (monitor_output): Likewise.
8644 * server.c (handle_search_memory): Likewise.
8645 (handle_qxfer_exec_file): Likewise.
8646 (handle_qxfer_libraries): Likewise.
8647 (handle_qxfer): Likewise.
8648 (handle_query): Likewise.
8649 (handle_v_cont): Likewise.
8650 (handle_v_run): Likewise.
8651 (captured_main): Likewise.
8652 * target.c (write_inferior_memory): Likewise.
8653 * thread-db.c (try_thread_db_load_from_dir): Likewise.
8654 * tracepoint.c (init_trace_buffer): Likewise.
8655 (add_tracepoint_action): Likewise.
8656 (add_traceframe): Likewise.
8657 (add_traceframe_block): Likewise.
8658 (cmd_qtdpsrc): Likewise.
8659 (cmd_qtdv): Likewise.
8660 (cmd_qtstatus): Likewise.
8661 (response_source): Likewise.
8662 (response_tsv): Likewise.
8663 (cmd_qtnotes): Likewise.
8664 (gdb_collect): Likewise.
8665 (initialize_tracepoint): Likewise.
8666
8667 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8668
8669 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
8670 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
8671 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
8672 <NOP>: New.
8673 (enum aarch64_condition_codes): New enum.
8674 (w0): New static global.
8675 (fp): Likewise.
8676 (lr): Likewise.
8677 (struct aarch64_memory_operand) <type>: New
8678 MEMORY_OPERAND_POSTINDEX type.
8679 (postindex_memory_operand): New helper function.
8680 (emit_ret): New function.
8681 (emit_load_store_pair): New function, factored out of emit_stp
8682 with support for MEMORY_OPERAND_POSTINDEX.
8683 (emit_stp): Rewrite using emit_load_store_pair.
8684 (emit_ldp): New function.
8685 (emit_load_store): Likewise.
8686 (emit_ldr): Mention post-index instruction in comment.
8687 (emit_ldrh): New function.
8688 (emit_ldrb): New function.
8689 (emit_ldrsw): Mention post-index instruction in comment.
8690 (emit_str): Likewise.
8691 (emit_subs): New function.
8692 (emit_cmp): Likewise.
8693 (emit_and): Likewise.
8694 (emit_orr): Likewise.
8695 (emit_orn): Likewise.
8696 (emit_eor): Likewise.
8697 (emit_mvn): Likewise.
8698 (emit_lslv): Likewise.
8699 (emit_lsrv): Likewise.
8700 (emit_asrv): Likewise.
8701 (emit_mul): Likewise.
8702 (emit_sbfm): Likewise.
8703 (emit_sbfx): Likewise.
8704 (emit_ubfm): Likewise.
8705 (emit_ubfx): Likewise.
8706 (emit_csinc): Likewise.
8707 (emit_cset): Likewise.
8708 (emit_nop): Likewise.
8709 (emit_ops_insns): New helper function.
8710 (emit_pop): Likewise.
8711 (emit_push): Likewise.
8712 (aarch64_emit_prologue): New function.
8713 (aarch64_emit_epilogue): Likewise.
8714 (aarch64_emit_add): Likewise.
8715 (aarch64_emit_sub): Likewise.
8716 (aarch64_emit_mul): Likewise.
8717 (aarch64_emit_lsh): Likewise.
8718 (aarch64_emit_rsh_signed): Likewise.
8719 (aarch64_emit_rsh_unsigned): Likewise.
8720 (aarch64_emit_ext): Likewise.
8721 (aarch64_emit_log_not): Likewise.
8722 (aarch64_emit_bit_and): Likewise.
8723 (aarch64_emit_bit_or): Likewise.
8724 (aarch64_emit_bit_xor): Likewise.
8725 (aarch64_emit_bit_not): Likewise.
8726 (aarch64_emit_equal): Likewise.
8727 (aarch64_emit_less_signed): Likewise.
8728 (aarch64_emit_less_unsigned): Likewise.
8729 (aarch64_emit_ref): Likewise.
8730 (aarch64_emit_if_goto): Likewise.
8731 (aarch64_emit_goto): Likewise.
8732 (aarch64_write_goto_address): Likewise.
8733 (aarch64_emit_const): Likewise.
8734 (aarch64_emit_call): Likewise.
8735 (aarch64_emit_reg): Likewise.
8736 (aarch64_emit_pop): Likewise.
8737 (aarch64_emit_stack_flush): Likewise.
8738 (aarch64_emit_zero_ext): Likewise.
8739 (aarch64_emit_swap): Likewise.
8740 (aarch64_emit_stack_adjust): Likewise.
8741 (aarch64_emit_int_call_1): Likewise.
8742 (aarch64_emit_void_call_2): Likewise.
8743 (aarch64_emit_eq_goto): Likewise.
8744 (aarch64_emit_ne_goto): Likewise.
8745 (aarch64_emit_lt_goto): Likewise.
8746 (aarch64_emit_le_goto): Likewise.
8747 (aarch64_emit_gt_goto): Likewise.
8748 (aarch64_emit_ge_got): Likewise.
8749 (aarch64_emit_ops_impl): New static global variable.
8750 (aarch64_emit_ops): New target function, return
8751 &aarch64_emit_ops_impl.
8752 (struct linux_target_ops): Install it.
8753
8754 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8755
8756 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
8757 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8758 aarch64-ipa.o.
8759 * linux-aarch64-ipa.c: New file.
8760 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8761 and endian.h.
8762 (aarch64_get_thread_area): New target method.
8763 (extract_signed_bitfield): New helper function.
8764 (aarch64_decode_ldr_literal): New function.
8765 (enum aarch64_opcodes): New enum.
8766 (struct aarch64_register): New struct.
8767 (struct aarch64_operand): New struct.
8768 (x0): New static global.
8769 (x1): Likewise.
8770 (x2): Likewise.
8771 (x3): Likewise.
8772 (x4): Likewise.
8773 (w2): Likewise.
8774 (ip0): Likewise.
8775 (sp): Likewise.
8776 (xzr): Likewise.
8777 (aarch64_register): New helper function.
8778 (register_operand): Likewise.
8779 (immediate_operand): Likewise.
8780 (struct aarch64_memory_operand): New struct.
8781 (offset_memory_operand): New helper function.
8782 (preindex_memory_operand): Likewise.
8783 (enum aarch64_system_control_registers): New enum.
8784 (ENCODE): New macro.
8785 (emit_insn): New helper function.
8786 (emit_b): New function.
8787 (emit_bcond): Likewise.
8788 (emit_cb): Likewise.
8789 (emit_tb): Likewise.
8790 (emit_blr): Likewise.
8791 (emit_stp): Likewise.
8792 (emit_ldp_q_offset): Likewise.
8793 (emit_stp_q_offset): Likewise.
8794 (emit_load_store): Likewise.
8795 (emit_ldr): Likewise.
8796 (emit_ldrsw): Likewise.
8797 (emit_str): Likewise.
8798 (emit_ldaxr): Likewise.
8799 (emit_stxr): Likewise.
8800 (emit_stlr): Likewise.
8801 (emit_data_processing_reg): Likewise.
8802 (emit_data_processing): Likewise.
8803 (emit_add): Likewise.
8804 (emit_sub): Likewise.
8805 (emit_mov): Likewise.
8806 (emit_movk): Likewise.
8807 (emit_mov_addr): Likewise.
8808 (emit_mrs): Likewise.
8809 (emit_msr): Likewise.
8810 (emit_sevl): Likewise.
8811 (emit_wfe): Likewise.
8812 (append_insns): Likewise.
8813 (can_encode_int32_in): New helper function.
8814 (aarch64_relocate_instruction): New function.
8815 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
8816 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
8817 (struct linux_target_ops): Install aarch64_get_thread_area,
8818 aarch64_install_fast_tracepoint_jump_pad and
8819 aarch64_get_min_fast_tracepoint_insn_len.
8820
8821 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8822
8823 * Makefile.in (aarch64-insn.o): New rule.
8824 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8825
8826 2015-09-21 Yao Qi <yao.qi@linaro.org>
8827
8828 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8829
8830 2015-09-21 Yao Qi <yao.qi@linaro.org>
8831
8832 * tracepoint.c (max_jump_pad_size): Remove.
8833
8834 2015-09-18 Yao Qi <yao.qi@linaro.org>
8835
8836 * linux-aarch64-low.c: Don't include sys/uio.h.
8837 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8838
8839 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
8840
8841 * tracepoint.c (eval_result_type): Change prototype.
8842 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8843
8844 2015-09-15 Pedro Alves <palves@redhat.com>
8845
8846 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
8847 Check whether to report exec events instead of checking whether
8848 multiprocess is enabled.
8849
8850 2015-09-15 Pedro Alves <palves@redhat.com>
8851
8852 PR remote/18965
8853 * remote-utils.c (prepare_resume_reply): Merge
8854 TARGET_WAITKIND_VFORK_DONE switch case with the
8855 TARGET_WAITKIND_FORKED case.
8856
8857 2015-09-15 Yao Qi <yao.qi@linaro.org>
8858
8859 * server.c (handle_query): Check string comparison using
8860 "else if" instead of "if".
8861
8862 2015-09-15 Yao Qi <yao.qi@linaro.org>
8863
8864 * server.c (vCont_supported): New global variable.
8865 (handle_query): Set vCont_supported to 1 if "vContSupported+"
8866 matches. Append ";vContSupported+" to own_buf.
8867 (handle_v_requests): Append ";s;S" to own_buf if target supports
8868 hardware single step or vCont_supported is false.
8869 (capture_main): Set vCont_supported to zero.
8870
8871 2015-09-15 Yao Qi <yao.qi@linaro.org>
8872
8873 * linux-low.c (linux_supports_conditional_breakpoints): Rename
8874 it to ...
8875 (linux_supports_hardware_single_step): ... New function.
8876 (linux_target_ops): Update.
8877 * lynx-low.c (lynx_target_ops): Set field
8878 supports_hardware_single_step to target_can_do_hardware_single_step.
8879 * nto-low.c (nto_target_ops): Likewise.
8880 * spu-low.c (spu_target_ops): Likewise.
8881 * win32-low.c (win32_target_ops): Likewise.
8882 * target.c (target_can_do_hardware_single_step): New function.
8883 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8884 Remove. <supports_hardware_single_step>: New field.
8885 (target_supports_conditional_breakpoints): Remove.
8886 (target_supports_hardware_single_step): New macro.
8887 (target_can_do_hardware_single_step): Declare.
8888 * server.c (handle_query): Use target_supports_hardware_single_step
8889 instead of target_supports_conditional_breakpoints.
8890
8891 2015-09-15 Yao Qi <yao.qi@linaro.org>
8892
8893 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
8894 function.
8895 (struct linux_target_ops the_low_target): Install
8896 aarch64_linux_siginfo_fixup.
8897
8898 2015-09-11 Don Breazeal <donb@codesourcery.com>
8899 Luis Machado <lgustavo@codesourcery.com>
8900
8901 * linux-low.c (linux_mourn): Static declaration.
8902 (linux_arch_setup): Move in front of
8903 handle_extended_wait.
8904 (linux_arch_setup_thread): New function.
8905 (handle_extended_wait): Handle exec events. Call
8906 linux_arch_setup_thread. Make event_lwp argument a
8907 pointer-to-a-pointer.
8908 (check_zombie_leaders): Do not check stopped threads.
8909 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
8910 (linux_low_filter_event): Add lwp and thread for exec'ing
8911 non-leader thread if leader thread has been deleted.
8912 Refactor code into linux_arch_setup_thread and call it.
8913 Pass child lwp pointer by reference to handle_extended_wait.
8914 (linux_wait_for_event_filtered): Update comment.
8915 (linux_wait_1): Prevent clobbering exec event status.
8916 (linux_supports_exec_events): New function.
8917 (linux_target_ops) <supports_exec_events>: Initialize new member.
8918 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
8919 new member.
8920 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
8921 * server.c (report_exec_events): New global variable.
8922 (handle_query): Handle qSupported query for exec-events feature.
8923 (captured_main): Initialize report_exec_events.
8924 * server.h (report_exec_events): Declare new global variable.
8925 * target.h (struct target_ops) <supports_exec_events>: New
8926 member.
8927 (target_supports_exec_events): New macro.
8928 * win32-low.c (win32_target_ops) <supports_exec_events>:
8929 Initialize new member.
8930
8931 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
8932
8933 * linux-low.c (linux_low_enable_btrace): Remove.
8934 (linux_target_ops): Replace linux_low_enable_btrace with
8935 linux_enable_btrace.
8936
8937 2015-09-03 Yao Qi <yao.qi@linaro.org>
8938
8939 * linux-aarch64-low.c (aarch64_insert_point): Call
8940 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8941 returns true.
8942
8943 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8944
8945 * linux-low.c (check_stopped_by_breakpoint): Use
8946 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8947
8948 2015-08-27 Pedro Alves <palves@redhat.com>
8949
8950 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8951
8952 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8953
8954 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8955 the XNEW-family equivalent.
8956 (compile_bytecodes): Likewise.
8957 * dll.c (loaded_dll): Likewise.
8958 * event-loop.c (append_callback_event): Likewise.
8959 (create_file_handler): Likewise.
8960 (create_file_event): Likewise.
8961 * hostio.c (handle_open): Likewise.
8962 * inferiors.c (add_thread): Likewise.
8963 (add_process): Likewise.
8964 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
8965 * linux-arm-low.c (arm_new_process): Likewise.
8966 (arm_new_thread): Likewise.
8967 * linux-low.c (add_to_pid_list): Likewise.
8968 (linux_add_process): Likewise.
8969 (handle_extended_wait): Likewise.
8970 (add_lwp): Likewise.
8971 (enqueue_one_deferred_signal): Likewise.
8972 (enqueue_pending_signal): Likewise.
8973 (linux_resume_one_lwp_throw): Likewise.
8974 (linux_resume_one_thread): Likewise.
8975 (linux_read_memory): Likewise.
8976 (linux_write_memory): Likewise.
8977 * linux-mips-low.c (mips_linux_new_process): Likewise.
8978 (mips_linux_new_thread): Likewise.
8979 (mips_add_watchpoint): Likewise.
8980 * linux-x86-low.c (initialize_low_arch): Likewise.
8981 * lynx-low.c (lynx_add_process): Likewise.
8982 * mem-break.c (set_raw_breakpoint_at): Likewise.
8983 (set_breakpoint): Likewise.
8984 (add_condition_to_breakpoint): Likewise.
8985 (add_commands_to_breakpoint): Likewise.
8986 (clone_agent_expr): Likewise.
8987 (clone_one_breakpoint): Likewise.
8988 * regcache.c (new_register_cache): Likewise.
8989 * remote-utils.c (look_up_one_symbol): Likewise.
8990 * server.c (queue_stop_reply): Likewise.
8991 (start_inferior): Likewise.
8992 (queue_stop_reply_callback): Likewise.
8993 (handle_target_event): Likewise.
8994 * spu-low.c (fetch_ppc_memory): Likewise.
8995 (store_ppc_memory): Likewise.
8996 * target.c (set_target_ops): Likewise.
8997 * thread-db.c (thread_db_load_search): Likewise.
8998 (try_thread_db_load_1): Likewise.
8999 * tracepoint.c (add_tracepoint): Likewise.
9000 (add_tracepoint_action): Likewise.
9001 (create_trace_state_variable): Likewise.
9002 (cmd_qtdpsrc): Likewise.
9003 (cmd_qtro): Likewise.
9004 (add_while_stepping_state): Likewise.
9005 * win32-low.c (child_add_thread): Likewise.
9006 (get_image_name): Likewise.
9007
9008 2015-08-25 Yao Qi <yao.qi@linaro.org>
9009
9010 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9011
9012 2015-08-25 Yao Qi <yao.qi@linaro.org>
9013
9014 * Makefile.in (aarch64-linux.o): New rule.
9015 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9016 srv_tgtobj.
9017 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9018 (aarch64_init_debug_reg_state): Make it extern.
9019 (aarch64_linux_prepare_to_resume): Remove.
9020
9021 2015-08-25 Yao Qi <yao.qi@linaro.org>
9022
9023 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9024 lwp_arch_private_info and ptid_of_lwp.
9025
9026 2015-08-25 Yao Qi <yao.qi@linaro.org>
9027
9028 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9029 Find proc_info by find_process_pid. All callers updated.
9030
9031 2015-08-25 Yao Qi <yao.qi@linaro.org>
9032
9033 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9034 Remove.
9035 (debug_reg_change_callback): Remove.
9036 (aarch64_notify_debug_reg_change): Remove.
9037
9038 2015-08-25 Yao Qi <yao.qi@linaro.org>
9039
9040 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9041 Call current_lwp_ptid.
9042
9043 2015-08-25 Yao Qi <yao.qi@linaro.org>
9044
9045 * linux-aarch64-low.c (debug_reg_change_callback): Use
9046 debug_printf.
9047
9048 2015-08-25 Yao Qi <yao.qi@linaro.org>
9049
9050 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9051
9052 2015-08-25 Yao Qi <yao.qi@linaro.org>
9053
9054 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9055
9056 2015-08-25 Yao Qi <yao.qi@linaro.org>
9057
9058 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9059 the code.
9060
9061 2015-08-25 Yao Qi <yao.qi@linaro.org>
9062
9063 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9064 Remove.
9065 (debug_reg_change_callback): Remove argument entry and add argument
9066 lwp. Remove local variable thread. Don't print thread id in the
9067 debugging output. Don't check whether pid of thread equals to pid.
9068 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9069 iterate_over_lwps instead find_inferior.
9070
9071 2015-08-24 Pedro Alves <palves@redhat.com>
9072
9073 * inferiors.c (get_first_process): New function.
9074 * inferiors.h (get_first_process): New declaration.
9075 * remote-utils.c (read_ptid): Default to the first process in the
9076 list, instead of to the current thread's process.
9077
9078 2015-08-24 Pedro Alves <palves@redhat.com>
9079
9080 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9081 * event-loop.c: Likewise.
9082 * remote-utils.c: Likewise.
9083 * tracepoint.c: Likewise.
9084
9085 2015-08-24 Pedro Alves <palves@redhat.com>
9086
9087 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9088 ptid_get_lwp.
9089
9090 2015-08-21 Pedro Alves <palves@redhat.com>
9091
9092 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9093 instead of literal 1.
9094
9095 2015-08-21 Pedro Alves <palves@redhat.com>
9096
9097 * tdesc.c (default_description): Explicitly zero-initialize.
9098
9099 2015-08-21 Pedro Alves <palves@redhat.com>
9100
9101 PR gdb/18749
9102 * inferiors.c (remove_thread): Discard any pending stop reply for
9103 this thread.
9104 * server.c (remove_all_on_match_pid): Rename to ...
9105 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9106 instead of a pid.
9107 (discard_queued_stop_replies): Change parameter to a ptid. Now
9108 extern.
9109 (handle_v_kill, kill_inferior_callback, captured_main)
9110 (process_serial_event): Adjust.
9111 * server.h (discard_queued_stop_replies): Declare.
9112
9113 2015-08-21 Pedro Alves <palves@redhat.com>
9114
9115 * linux-low.c (wait_for_sigstop): Always switch to no thread
9116 selected if the previously current thread dies.
9117 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9118 process instead of the current thread's.
9119 * remote-utils.c (input_interrupt): Don't check if there's no
9120 current thread.
9121 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9122 current thread to the general thread fails, error out.
9123 (handle_qxfer_auxv, handle_qxfer_libraries)
9124 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9125 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9126 (handle_query): Check if there's a thread selected instead of
9127 checking whether there's any thread in the thread list.
9128 (handle_qxfer_threads, handle_qxfer_btrace)
9129 (handle_qxfer_btrace_conf): Don't error out early if there's no
9130 thread in the thread list.
9131 (handle_v_cont, myresume): Don't set the current thread to the
9132 continue thread.
9133 (process_serial_event) <Hg handling>: Also set thread_id if the
9134 previous general thread is still alive.
9135 (process_serial_event) <g/G handling>: If setting the current
9136 thread to the general thread fails, error out.
9137 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9138 thread's lwp instead of the current thread's.
9139 * target.c (set_desired_thread): If the desired thread was not
9140 found, leave the current thread pointing to NULL. Return an int
9141 (boolean) indicating success.
9142 * target.h (set_desired_thread): Change return type to int.
9143
9144 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9145
9146 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9147 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9148 #includes.
9149 (ps_get_thread_area): New function.
9150
9151 2015-08-19 Gary Benson <gbenson@redhat.com>
9152
9153 * hostio.c (handle_pread): Do not attempt to read more data
9154 than hostio_reply_with_data can fit in a packet.
9155
9156 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9157
9158 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9159
9160 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9161
9162 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9163
9164 2015-08-06 Pedro Alves <palves@redhat.com>
9165
9166 * tracepoint.c (expr_eval_result): Now an int.
9167
9168 2015-08-06 Pedro Alves <palves@redhat.com>
9169
9170 * gdbthread.h (struct regcache): Forward declare.
9171 (struct thread_info) <regcache_data>: Now a struct regcache
9172 pointer.
9173 * inferiors.c (inferior_regcache_data)
9174 (set_inferior_regcache_data): Now work with struct regcache
9175 pointers.
9176 * inferiors.h (struct regcache): Forward declare.
9177 (inferior_regcache_data, set_inferior_regcache_data): Now work
9178 with struct regcache pointers.
9179 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9180 (free_register_cache_thread): Remove struct regcache pointer
9181 casts.
9182
9183 2015-08-06 Pedro Alves <palves@redhat.com>
9184
9185 * server.c (captured_main): On error, print the exception message
9186 to stderr, and if run_once is set, throw a quit.
9187
9188 2015-08-06 Pedro Alves <palves@redhat.com>
9189
9190 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9191 the current thread.
9192
9193 2015-08-06 Pedro Alves <palves@redhat.com>
9194
9195 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9196 reading beyond the passed in buffer length.
9197
9198 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9199
9200 * tracepoint.c (symbol_list) <required>: Remove.
9201
9202 2015-08-06 Pedro Alves <palves@redhat.com>
9203
9204 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9205 count if stopping and suspending threads.
9206 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9207 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9208 (linux_detach): Complete an ongoing step-over.
9209 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9210 throughout.
9211 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9212 (linux_wait_1): If passing a signal to the inferior after
9213 finishing a step-over, unsuspend and re-resume all lwps. If we
9214 see a single-step event but the thread should be continuing, don't
9215 pass the trap to gdb.
9216 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9217 internal_error instead of gdb_assert.
9218 (enqueue_pending_signal): New function.
9219 (check_ptrace_stopped_lwp_gone): Add debug output.
9220 (start_step_over): Use internal_error instead of gdb_assert.
9221 (complete_ongoing_step_over): New function.
9222 (linux_resume_one_thread): Don't resume a suspended thread.
9223 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9224 it stepping.
9225
9226 2015-08-06 Pedro Alves <palves@redhat.com>
9227
9228 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9229 (linux_thread_alive): Use lwp_is_marked_dead.
9230 (extended_event_reported): Delete.
9231 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9232 instead of extended_event_reported.
9233 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9234 as well.
9235 (lwp_is_marked_dead): New function.
9236 (lwp_running): Use lwp_is_marked_dead.
9237 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9238 comment.
9239
9240 2015-08-06 Pedro Alves <palves@redhat.com>
9241
9242 * linux-low.c (linux_wait_1): Move fork event output out of the
9243 !report_to_gdb check. Pass event_child->waitstatus to
9244 target_waitstatus_to_string instead of ourstatus.
9245
9246 2015-08-04 Yao Qi <yao.qi@linaro.org>
9247
9248 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9249 if current_thread is 32 bit.
9250
9251 2015-08-04 Yao Qi <yao.qi@linaro.org>
9252
9253 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9254 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9255 * server.c (extended_protocol): Remove "static".
9256 * server.h (extended_protocol): Declare it.
9257
9258 2015-08-04 Yao Qi <yao.qi@linaro.org>
9259
9260 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9261 both aarch64 and aarch32.
9262 (aarch64_set_pc): Likewise.
9263
9264 2015-08-04 Yao Qi <yao.qi@linaro.org>
9265
9266 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9267 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9268 arm-with-neon.xml to srv_xmlfiles.
9269 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9270 (is_64bit_tdesc): New function.
9271 (aarch64_linux_read_description): New function.
9272 (aarch64_arch_setup): Call aarch64_linux_read_description.
9273 (regs_info): Rename to regs_info_aarch64.
9274 (aarch64_regs_info): Return right regs_info.
9275 (initialize_low_arch): Call initialize_low_arch_aarch32.
9276
9277 2015-08-04 Yao Qi <yao.qi@linaro.org>
9278
9279 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9280 * linux-aarch32-low.c: New file.
9281 * linux-aarch32-low.h: New file.
9282 * linux-arm-low.c (arm_fill_gregset): Move it to
9283 linux-aarch32-low.c.
9284 (arm_store_gregset): Likewise.
9285 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9286 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9287 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9288 (regs_info): Rename to regs_info_arm.
9289 (arm_regs_info): Return regs_info_aarch32 if
9290 have_ptrace_getregset is 1 and target description is
9291 arm_with_neon or arm_with_vfpv3.
9292 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9293 Call initialize_low_arch_aarch32 instead.
9294
9295 2015-08-04 Yao Qi <yao.qi@linaro.org>
9296
9297 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9298 * linux-low.c: ... here.
9299 * linux-low.h (have_ptrace_getregset): Declare it.
9300
9301 2015-08-04 Pedro Alves <palves@redhat.com>
9302
9303 * thread-db.c (struct thread_db): Use new typedefs.
9304 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9305 CHK calls.
9306 (disable_thread_event_reporting): Cast result of dlsym to
9307 destination function pointer type.
9308 (thread_db_mourn): Use td_ta_delete_ftype.
9309
9310 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9311
9312 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9313 arch variant.
9314 (CDX_BREAKPOINT): Define for R2.
9315 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9316 (the_low_target): Add comments.
9317
9318 2015-07-30 Yao Qi <yao.qi@linaro.org>
9319
9320 * linux-arm-low.c (arm_hwcap): Remove it.
9321 (arm_read_description): New local variable arm_hwcap. Don't
9322 set arm_hwcap to zero.
9323
9324 2015-07-30 Yao Qi <yao.qi@linaro.org>
9325
9326 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9327 Use regcache->tdesc instead.
9328 (arm_store_wmmxregset): Likewise.
9329 (arm_fill_vfpregset): Likewise.
9330 (arm_store_vfpregset): Likewise.
9331
9332 2015-07-30 Yao Qi <yao.qi@linaro.org>
9333
9334 * linux-arm-low.c: Include arch/arm.h.
9335 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9336 (arm_store_gregset): Likewise.
9337
9338 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9339
9340 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9341 ptrace's 4th parameter.
9342
9343 2015-07-27 Yao Qi <yao.qi@linaro.org>
9344
9345 * configure.srv (case aarch64*-*-linux*): Don't set
9346 srv_linux_usrregs.
9347
9348 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
9349
9350 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
9351 sys/ptrace.h.
9352 * linux-arm-low.c: Likewise.
9353 * linux-cris-low.c: Likewise.
9354 * linux-crisv32-low.c: Likewise.
9355 * linux-low.c: Likewise.
9356 * linux-m68k-low.c: Likewise.
9357 * linux-mips-low.c: Likewise.
9358 * linux-nios2-low.c: Likewise.
9359 * linux-s390-low.c: Likewise.
9360 * linux-sparc-low.c: Likewise.
9361 * linux-tic6x-low.c: Likewise.
9362 * linux-tile-low.c: Likewise.
9363 * linux-x86-low.c: Likewise.
9364
9365 2015-07-24 Pedro Alves <palves@redhat.com>
9366
9367 * config.in: Regenerate.
9368 * configure: Regenerate.
9369
9370 2015-07-24 Pedro Alves <palves@redhat.com>
9371
9372 * acinclude.m4: Include ../ptrace.m4.
9373 * configure.ac: Call GDB_AC_PTRACE.
9374 * config.in, configure: Regenerate.
9375
9376 2015-07-24 Yao Qi <yao.qi@linaro.org>
9377
9378 * linux-low.c (linux_create_inferior): Remove setting to
9379 proc->priv->new_inferior.
9380 (linux_attach): Likewise.
9381 (linux_low_filter_event): Likewise.
9382 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
9383
9384 2015-07-24 Yao Qi <yao.qi@linaro.org>
9385
9386 * linux-low.c (linux_arch_setup): New function.
9387 (linux_low_filter_event): If proc->tdesc is NULL and
9388 proc->attached is true, call the_low_target.arch_setup.
9389 Otherwise, keep status pending, and return.
9390 (linux_resume_one_lwp_throw): Don't call get_pc if
9391 thread->while_stepping isn't NULL. Don't call
9392 get_thread_regcache if proc->tdesc is NULL.
9393 (need_step_over_p): Return 0 if proc->tdesc is NULL.
9394 (linux_target_ops): Install arch_setup.
9395 * server.c (start_inferior): Call the_target->arch_setup.
9396 * target.h (struct target_ops) <arch_setup>: New field.
9397 (target_arch_setup): New marco.
9398 * lynx-low.c (lynx_target_ops): Update.
9399 * nto-low.c (nto_target_ops): Update.
9400 * spu-low.c (spu_target_ops): Update.
9401 * win32-low.c (win32_target_ops): Update.
9402
9403 2015-07-24 Yao Qi <yao.qi@linaro.org>
9404
9405 * linux-low.c (linux_add_process): Don't set
9406 proc->priv->new_inferior.
9407 (linux_create_inferior): Set proc->priv->new_inferior to 1.
9408 (linux_attach): Likewise.
9409
9410 2015-07-24 Yao Qi <yao.qi@linaro.org>
9411
9412 * server.c (start_inferior): Code refactor.
9413
9414 2015-07-24 Yao Qi <yao.qi@linaro.org>
9415
9416 * server.c (process_serial_event): Set general_thread.
9417
9418 2015-07-21 Yao Qi <yao.qi@linaro.org>
9419
9420 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
9421 aarch64_linux_get_debug_reg_capacity.
9422
9423 2015-07-17 Yao Qi <yao.qi@linaro.org>
9424
9425 * Makefile.in (aarch64-linux-hw-point.o): New rule.
9426 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
9427 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
9428 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
9429 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
9430 (AARCH64_HWP_ALIGNMENT): Likewise.
9431 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
9432 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
9433 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
9434 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
9435 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
9436 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
9437 (struct aarch64_debug_reg_state): Likewise.
9438 (struct arch_lwp_info): Likewise.
9439 (aarch64_align_watchpoint): Likewise.
9440 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
9441 (aarch64_watchpoint_length): Likewise.
9442 (aarch64_point_encode_ctrl_reg): Likewise
9443 (aarch64_point_is_aligned): Likewise.
9444 (aarch64_align_watchpoint): Likewise.
9445 (aarch64_linux_set_debug_regs):
9446 (aarch64_dr_state_insert_one_point): Likewise.
9447 (aarch64_dr_state_remove_one_point): Likewise.
9448 (aarch64_handle_breakpoint): Likewise.
9449 (aarch64_handle_aligned_watchpoint): Likewise.
9450 (aarch64_handle_unaligned_watchpoint): Likewise.
9451 (aarch64_handle_watchpoint): Likewise.
9452
9453 2015-07-17 Yao Qi <yao.qi@linaro.org>
9454
9455 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
9456 and don't aarch64_get_debug_reg_state. All callers update.
9457 (aarch64_handle_aligned_watchpoint): Likewise.
9458 (aarch64_handle_unaligned_watchpoint): Likewise.
9459 (aarch64_handle_watchpoint): Likewise.
9460 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
9461 (aarch64_remove_point): Likewise.
9462
9463 2015-07-17 Yao Qi <yao.qi@linaro.org>
9464
9465 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
9466 debug_printf.
9467 (aarch64_handle_unaligned_watchpoint): Likewise.
9468
9469 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9470
9471 Revert the previous 3 commits:
9472 Move gdb_regex* to common/
9473 Move linux_find_memory_regions_full & co.
9474 gdbserver build-id attribute generator
9475
9476 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9477 Jan Kratochvil <jan.kratochvil@redhat.com>
9478
9479 gdbserver build-id attribute generator.
9480 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
9481 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
9482 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
9483 (find_phdr): New.
9484 (get_dynamic): Use find_pdhr to traverse program headers.
9485 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
9486 (compare_mapping_entry_range, struct find_memory_region_callback_data)
9487 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
9488 (get_hex_build_id): New.
9489 (linux_qxfer_libraries_svr4): Add optional build-id attribute
9490 to reply XML document.
9491
9492 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9493 Jan Kratochvil <jan.kratochvil@redhat.com>
9494
9495 * target.c: Include target/target-utils.h and fcntl.h.
9496 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
9497 (target_fileio_read_stralloc): New functions.
9498
9499 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9500
9501 * Makefile.in (OBS): Add gdb_regex.o.
9502 (gdb_regex.o): New.
9503 * config.in: Rebuilt.
9504 * configure: Rebuilt.
9505
9506 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
9507 Jan Kratochvil <jan.kratochvil@redhat.com>
9508
9509 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
9510 * Makefile.in (OBS): Add target-utils.o.
9511 (linux-maps.o, target-utils.o): New.
9512 * configure.srv (srv_linux_obj): Add linux-maps.o.
9513
9514 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
9515
9516 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
9517 function, return 1.
9518 (the_low_target): Install it.
9519
9520 2015-07-14 Pedro Alves <palves@redhat.com>
9521
9522 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
9523 Instead, ignore ECHILD, and throw an error for other errnos.
9524
9525 2015-07-10 Pedro Alves <palves@redhat.com>
9526
9527 * event-loop.c (struct callback_event) <data>: Change type to
9528 gdb_client_data instance instead of gdb_client_data pointer.
9529 (append_callback_event): Adjust.
9530
9531 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
9532
9533 * linux-aarch64-low.c: Add comments for each linux_target_ops
9534 method. Remove comments already covered in target_ops and
9535 linux_target_ops definitions.
9536 (the_low_target): Add comments for each unimplemented method.
9537
9538 2015-07-09 Yao Qi <yao.qi@linaro.org>
9539
9540 * linux-aarch64-low.c (aarch64_regmap): Remove.
9541 (aarch64_usrregs_info): Remove.
9542 (regs_info): Set field usrregs to NULL.
9543
9544 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
9545
9546 * linux-low.c: Include "rsp-low.h"
9547 (linux_low_encode_pt_config, linux_low_encode_raw): New.
9548 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
9549 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
9550 (handle_btrace_enable_pt): New.
9551 (handle_btrace_general_set): Support "pt".
9552 (handle_btrace_conf_general_set): Support "pt:size".
9553
9554 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9555
9556 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
9557 Z_PACKET_SW_BP.
9558
9559 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
9560
9561 * linux-aarch64-low.c: Remove comment about endianness.
9562 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
9563 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
9564 memcmp.
9565
9566 2015-06-24 Gary Benson <gbenson@redhat.com>
9567
9568 * linux-i386-ipa.c (stdint.h): Do not include.
9569 * lynx-i386-low.c (stdint.h): Likewise.
9570 * lynx-ppc-low.c (stdint.h): Likewise.
9571 * mem-break.c (stdint.h): Likewise.
9572 * thread-db.c (stdint.h): Likewise.
9573 * tracepoint.c (stdint.h): Likewise.
9574 * win32-low.c (stdint.h): Likewise.
9575
9576 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
9577
9578 * server.c (write_qxfer_response): Update call to
9579 remote_escape_output.
9580
9581 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
9582 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 Merge multiple hex conversions.
9585 * gdbreplay.c (tohex): Rename to 'fromhex'.
9586 (logchar): Use fromhex.
9587
9588 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9589
9590 * server.c (handle_qxfer_libraries): Set `version' attribute for
9591 <library-list>.
9592
9593 2015-06-10 Gary Benson <gbenson@redhat.com>
9594
9595 * target.h (struct target_ops) <multifs_open>: New field.
9596 <multifs_unlink>: Likewise.
9597 <multifs_readlink>: Likewise.
9598 * linux-low.c (nat/linux-namespaces.h): New include.
9599 (linux_target_ops): Initialize the_target->multifs_open,
9600 the_target->multifs_unlink and the_target->multifs_readlink.
9601 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
9602 * hostio.c (hostio_fs_pid): New static variable.
9603 (hostio_handle_new_gdb_connection): New function.
9604 (handle_setfs): Likewise.
9605 (handle_open): Use the_target->multifs_open as appropriate.
9606 (handle_unlink): Use the_target->multifs_unlink as appropriate.
9607 (handle_readlink): Use the_target->multifs_readlink as
9608 appropriate.
9609 (handle_vFile): Handle vFile:setfs packets.
9610 * server.c (handle_query): Call hostio_handle_new_gdb_connection
9611 after target_handle_new_gdb_connection.
9612
9613 2015-06-10 Gary Benson <gbenson@redhat.com>
9614
9615 * configure.ac (AC_CHECK_FUNCS): Add setns.
9616 * config.in: Regenerate.
9617 * configure: Likewise.
9618 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
9619 (linux-namespaces.o): New rule.
9620 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
9621
9622 2015-06-09 Gary Benson <gbenson@redhat.com>
9623
9624 * hostio.c (handle_open): Process mode argument with
9625 fileio_to_host_mode.
9626
9627 2015-06-01 Yao Qi <yao.qi@linaro.org>
9628
9629 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9630 * linux-x86-low.c: Likewise.
9631
9632 2015-05-28 Don Breazeal <donb@codesourcery.com>
9633
9634 * linux-low.c (handle_extended_wait): Initialize
9635 thread_info.last_resume_kind for new fork children.
9636
9637 2015-05-15 Pedro Alves <palves@redhat.com>
9638
9639 * target.h (target_handle_new_gdb_connection): Rewrite using if
9640 wrapped in do/while.
9641
9642 2015-05-14 Joel Brobecker <brobecker@adacore.com>
9643
9644 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
9645 * configure, config.in: Regenerate.
9646 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
9647 Declare typedef.
9648
9649 2015-05-12 Don Breazeal <donb@codesourcery.com>
9650
9651 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
9652 PTRACE_EVENT_VFORK_DONE.
9653 (linux_low_ptrace_options, extended_event_reported): Add vfork
9654 events.
9655 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
9656 and "vforkdone" for RSP 'T' Stop Reply Packet.
9657 * server.h (report_vfork_events): Declare
9658 global variable.
9659
9660 2015-05-12 Don Breazeal <donb@codesourcery.com>
9661
9662 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
9663 (the_low_target) <new_fork>: Initialize new member.
9664 * linux-arm-low.c (arm_new_fork): New function.
9665 (the_low_target) <new_fork>: Initialize new member.
9666 * linux-low.c (handle_extended_wait): Call new target function
9667 new_fork.
9668 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
9669 * linux-mips-low.c (mips_add_watchpoint): New function
9670 extracted from mips_insert_point.
9671 (the_low_target) <new_fork>: Initialize new member.
9672 (mips_linux_new_fork): New function.
9673 (mips_insert_point): Call mips_add_watchpoint.
9674 * linux-x86-low.c (x86_linux_new_fork): New function.
9675 (the_low_target) <new_fork>: Initialize new member.
9676
9677 2015-05-12 Don Breazeal <donb@codesourcery.com>
9678
9679 * linux-low.c (handle_extended_wait): Implement return value,
9680 rename argument 'event_child' to 'event_lwp', handle
9681 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
9682 (linux_low_ptrace_options): New function.
9683 (linux_low_filter_event): Call linux_low_ptrace_options,
9684 use different argument fo linux_enable_event_reporting,
9685 use return value from handle_extended_wait.
9686 (extended_event_reported): New function.
9687 (linux_wait_1): Call extended_event_reported and set
9688 status to report fork events.
9689 (linux_write_memory): Add pid to debug message.
9690 (reset_lwp_ptrace_options_callback): New function.
9691 (linux_handle_new_gdb_connection): New function.
9692 (linux_target_ops): Initialize new structure member.
9693 * linux-low.h (struct lwp_info) <waitstatus>: New member.
9694 * lynx-low.c: Initialize new structure member.
9695 * remote-utils.c (prepare_resume_reply): Implement stop reason
9696 "fork" for "T" stop message.
9697 * server.c (handle_query): Call handle_new_gdb_connection.
9698 * server.h (report_fork_events): Declare global flag.
9699 * target.h (struct target_ops) <handle_new_gdb_connection>:
9700 New member.
9701 (target_handle_new_gdb_connection): New macro.
9702 * win32-low.c: Initialize new structure member.
9703
9704 2015-05-12 Don Breazeal <donb@codesourcery.com>
9705
9706 * mem-break.c (APPEND_TO_LIST): Define macro.
9707 (clone_agent_expr): New function.
9708 (clone_one_breakpoint): New function.
9709 (clone_all_breakpoints): New function.
9710 * mem-break.h: Declare new functions.
9711
9712 2015-05-12 Don Breazeal <donb@codesourcery.com>
9713
9714 * linux-low.c (linux_supports_fork_events): New function.
9715 (linux_supports_vfork_events): New function.
9716 (linux_target_ops): Initialize new structure members.
9717 (initialize_low): Call linux_check_ptrace_features.
9718 * lynx-low.c (lynx_target_ops): Initialize new structure
9719 members.
9720 * server.c (report_fork_events, report_vfork_events):
9721 New global flags.
9722 (handle_query): Add new features to qSupported packet and
9723 response.
9724 (captured_main): Initialize new global variables.
9725 * target.h (struct target_ops) <supports_fork_events>:
9726 New member.
9727 <supports_vfork_events>: New member.
9728 (target_supports_fork_events): New macro.
9729 (target_supports_vfork_events): New macro.
9730 * win32-low.c (win32_target_ops): Initialize new structure
9731 members.
9732
9733 2015-05-12 Gary Benson <gbenson@redhat.com>
9734
9735 * server.c (handle_qxfer_exec_file): Use current process
9736 if annex is empty.
9737
9738 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9739
9740 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
9741 Remove HAVE_PTRACE_GETREGS conditionals.
9742 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
9743 instead of PTRACE_GETREGS and PTRACE_SETREGS.
9744
9745 2015-05-08 Yao Qi <yao.qi@linaro.org>
9746
9747 * linux-low.c (linux_supports_conditional_breakpoints): New
9748 function.
9749 (linux_target_ops): Install new target method.
9750 * lynx-low.c (lynx_target_ops): Install NULL hook for
9751 supports_conditional_breakpoints.
9752 * nto-low.c (nto_target_ops): Likewise.
9753 * spu-low.c (spu_target_ops): Likewise.
9754 * win32-low.c (win32_target_ops): Likewise.
9755 * server.c (handle_query): Check
9756 target_supports_conditional_breakpoints.
9757 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9758 New field.
9759 (target_supports_conditional_breakpoints): New macro.
9760
9761 2015-05-06 Pedro Alves <palves@redhat.com>
9762
9763 PR server/18081
9764 * server.c (start_inferior): If the process exits, mourn it.
9765
9766 2015-04-21 Gary Benson <gbenson@redhat.com>
9767
9768 * hostio.c (fileio_open_flags_to_host): Factored out to
9769 fileio_to_host_openflags in common/fileio.c. Single use
9770 updated.
9771
9772 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9773
9774 * linux-xtensa-low.c (xtensa_fill_gregset)
9775 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9776 XCHAL_HAVE_LOOP.
9777
9778 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9779
9780 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9781 (regs_info): Replace usrregs pointer with NULL.
9782
9783 2015-04-17 Gary Benson <gbenson@redhat.com>
9784
9785 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9786 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9787 * server.c (handle_qxfer_exec_file): New function.
9788 (qxfer_packets): Add exec-file entry.
9789 (handle_query): Report qXfer:exec-file:read as supported packet.
9790
9791 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9792
9793 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9794
9795 2015-04-09 Gary Benson <gbenson@redhat.com>
9796
9797 * hostio-errno.c (errno_to_fileio_error): Remove function.
9798 Update caller to use remote_fileio_to_fio_error.
9799
9800 2015-04-09 Yao Qi <yao.qi@linaro.org>
9801
9802 * linux-low.c (linux_insert_point): Call
9803 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
9804 (linux_remove_point): Call remove_memory_breakpoint if type is
9805 raw_bkpt_type_sw.
9806 * linux-x86-low.c (x86_insert_point): Don't call
9807 insert_memory_breakpoint.
9808 (x86_remove_point): Don't call remove_memory_breakpoint.
9809
9810 2015-04-01 Pedro Alves <palves@redhat.com>
9811 Cleber Rosa <crosa@redhat.com>
9812
9813 * server.c (gdbserver_usage): Reorganize and extend the usage
9814 message.
9815
9816 2015-03-24 Pedro Alves <palves@redhat.com>
9817
9818 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
9819 output. Also dump TRAP_TRACE.
9820 (linux_low_filter_event): In debug output, distinguish a
9821 resume_stop SIGSTOP from a delayed SIGSTOP.
9822
9823 2015-03-24 Gary Benson <gbenson@redhat.com>
9824
9825 * linux-x86-low.c (x86_linux_new_thread): Moved to
9826 nat/x86-linux.c.
9827 (x86_linux_prepare_to_resume): Likewise.
9828
9829 2015-03-24 Gary Benson <gbenson@redhat.com>
9830
9831 * Makefile.in (x86-linux-dregs.o): New rule.
9832 * configure.srv: Add x86-linux-dregs.o to relevant targets.
9833 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
9834 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9835 (x86_linux_dr_get): Likewise.
9836 (x86_linux_dr_set): Likewise.
9837 (update_debug_registers_callback): Likewise.
9838 (x86_linux_dr_set_addr): Likewise.
9839 (x86_linux_dr_get_addr): Likewise.
9840 (x86_linux_dr_set_control): Likewise.
9841 (x86_linux_dr_get_control): Likewise.
9842 (x86_linux_dr_get_status): Likewise.
9843 (x86_linux_update_debug_registers): Likewise.
9844
9845 2015-03-24 Gary Benson <gbenson@redhat.com>
9846
9847 * linux-x86-low.c (x86_linux_update_debug_registers):
9848 New function, factored out from...
9849 (x86_linux_prepare_to_resume): ...this.
9850
9851 2015-03-24 Gary Benson <gbenson@redhat.com>
9852
9853 * linux-x86-low.c (x86_linux_dr_get): Update comments.
9854 (x86_linux_dr_set): Likewise.
9855 (update_debug_registers_callback): Likewise.
9856 (x86_linux_dr_set_addr): Likewise.
9857 (x86_linux_dr_get_addr): Likewise.
9858 (x86_linux_dr_set_control): Likewise.
9859 (x86_linux_dr_get_control): Likewise.
9860 (x86_linux_dr_get_status): Likewise.
9861 (x86_linux_prepare_to_resume): Likewise.
9862
9863 2015-03-24 Gary Benson <gbenson@redhat.com>
9864
9865 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
9866 Use perror_with_name. Pass string through gettext.
9867 (x86_linux_dr_set): Likewise.
9868
9869 2015-03-24 Gary Benson <gbenson@redhat.com>
9870
9871 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
9872 (x86_linux_dr_set_addr): ...this.
9873 (x86_dr_low_get_addr): Rename to...
9874 (x86_linux_dr_get_addr): ...this.
9875 (x86_dr_low_set_control): Rename to...
9876 (x86_linux_dr_set_control): ...this.
9877 (x86_dr_low_get_control): Rename to...
9878 (x86_linux_dr_get_control): ...this.
9879 (x86_dr_low_get_status): Rename to...
9880 (x86_linux_dr_get_status): ...this.
9881 (x86_dr_low): Update with new function names.
9882
9883 2015-03-24 Gary Benson <gbenson@redhat.com>
9884
9885 * Makefile.in (x86-linux.o): New rule.
9886 * configure.srv: Add x86-linux.o to relevant targets.
9887 * linux-low.c (lwp_set_arch_private_info): New function.
9888 (lwp_arch_private_info): Likewise.
9889 * linux-x86-low.c: Include nat/x86-linux.h.
9890 (arch_lwp_info): Removed structure.
9891 (update_debug_registers_callback):
9892 Use lwp_set_debug_registers_changed.
9893 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9894 and lwp_set_debug_registers_changed.
9895 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9896
9897 2015-03-24 Gary Benson <gbenson@redhat.com>
9898
9899 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
9900 * linux-arm-low.c (arm_new_thread): Likewise.
9901 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
9902 * linux-mips-low.c (mips_linux_new_thread): Likewise.
9903 * linux-x86-low.c (x86_linux_new_thread): Likewise.
9904 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
9905
9906 2015-03-24 Gary Benson <gbenson@redhat.com>
9907
9908 * linux-low.c (ptid_of_lwp): New function.
9909 (lwp_is_stopped): Likewise.
9910 (lwp_stop_reason): Likewise.
9911 * linux-x86-low.c (update_debug_registers_callback):
9912 Use lwp_is_stopped.
9913 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9914 lwp_stop_reason.
9915
9916 2015-03-24 Gary Benson <gbenson@redhat.com>
9917
9918 * linux-low.h (linux_stop_lwp): Remove declaration.
9919
9920 2015-03-24 Gary Benson <gbenson@redhat.com>
9921
9922 * linux-low.h: Include nat/linux-nat.h.
9923 * linux-low.c (iterate_over_lwps_args): New structure.
9924 (iterate_over_lwps_filter): New function.
9925 (iterate_over_lwps): Likewise.
9926 * linux-x86-low.c (update_debug_registers_callback):
9927 Update signature to what iterate_over_lwps expects.
9928 Remove PID check that iterate_over_lwps now performs.
9929 (x86_dr_low_set_addr): Use iterate_over_lwps.
9930 (x86_dr_low_set_control): Likewise.
9931
9932 2015-03-24 Gary Benson <gbenson@redhat.com>
9933
9934 * linux-x86-low.c (x86_debug_reg_state): New function.
9935 (x86_linux_prepare_to_resume): Use the above.
9936
9937 2015-03-24 Gary Benson <gbenson@redhat.com>
9938
9939 * linux-low.c (current_lwp_ptid): New function.
9940 * linux-x86-low.c: Include nat/linux-nat.h.
9941 (x86_dr_low_get_addr): Use current_lwp_ptid.
9942 (x86_dr_low_get_control): Likewise.
9943 (x86_dr_low_get_status): Likewise.
9944
9945 2015-03-20 Pedro Alves <palves@redhat.com>
9946
9947 * tracepoint.c (cmd_qtstatus): Make "str" const.
9948
9949 2015-03-20 Pedro Alves <palves@redhat.com>
9950
9951 * server.c (handle_general_set): Make "req_str" const.
9952
9953 2015-03-19 Pedro Alves <palves@redhat.com>
9954
9955 * linux-low.c (linux_resume_one_lwp): Rename to ...
9956 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9957 instead call perror_with_name.
9958 (check_ptrace_stopped_lwp_gone): New function.
9959 (linux_resume_one_lwp): Reimplement as wrapper around
9960 linux_resume_one_lwp_throw that swallows errors if the LWP is
9961 gone.
9962
9963 2015-03-19 Pedro Alves <palves@redhat.com>
9964
9965 * linux-low.c (count_events_callback, select_event_lwp_callback):
9966 No longer check whether the thread has resume_stop as last resume
9967 kind.
9968
9969 2015-03-19 Pedro Alves <palves@redhat.com>
9970
9971 * linux-low.c (count_events_callback, select_event_lwp_callback):
9972 Use the lwp's status_pending_p field, not the thread's.
9973
9974 2015-03-19 Pedro Alves <palves@redhat.com>
9975
9976 * linux-low.c (select_event_lwp_callback): Update comments to
9977 no longer mention SIGTRAP.
9978
9979 2015-03-18 Gary Benson <gbenson@redhat.com>
9980
9981 * server.c (handle_query): Do not report vFile:fstat as supported.
9982
9983 2015-03-11 Gary Benson <gbenson@redhat.com>
9984
9985 * hostio.c (sys/types.h): New include.
9986 (sys/stat.h): Likewise.
9987 (common-remote-fileio.h): Likewise.
9988 (handle_fstat): New function.
9989 (handle_vFile): Handle vFile:fstat packets.
9990
9991 2015-03-11 Gary Benson <gbenson@redhat.com>
9992
9993 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9994 struct stat.st_blocks and struct stat.st_blksize.
9995 * configure: Regenerate.
9996 * config.in: Likewise.
9997 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9998 (OBS): Add common-remote-fileio.o.
9999 (common-remote-fileio.o): New rule.
10000
10001 2015-03-09 Pedro Alves <palves@redhat.com>
10002
10003 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10004 'struct sockaddr' pointer in 'accept' call.
10005
10006 2015-03-09 Pedro Alves <palves@redhat.com>
10007
10008 Revert:
10009 2015-03-07 Pedro Alves <palves@redhat.com>
10010 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10011 or <winsock2.h> here. Instead include "gdb_socket.h".
10012 (remote_open): Use union gdb_sockaddr_u.
10013 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10014 or <winsock2.h> here. Instead include "gdb_socket.h".
10015 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10016 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10017 or <sys/un.h>.
10018 (init_named_socket, gdb_agent_helper_thread): Use union
10019 gdb_sockaddr_u.
10020
10021 2015-03-07 Pedro Alves <palves@redhat.com>
10022
10023 * configure.ac (build_warnings): Move
10024 -Wdeclaration-after-statement to the C-specific set.
10025 * configure: Regenerate.
10026
10027 2015-03-07 Pedro Alves <palves@redhat.com>
10028
10029 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10030 or <winsock2.h> here. Instead include "gdb_socket.h".
10031 (remote_open): Use union gdb_sockaddr_u.
10032 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10033 or <winsock2.h> here. Instead include "gdb_socket.h".
10034 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10035 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10036 or <sys/un.h>.
10037 (init_named_socket, gdb_agent_helper_thread): Use union
10038 gdb_sockaddr_u.
10039
10040 2015-03-07 Pedro Alves <palves@redhat.com>
10041
10042 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10043 instead.
10044
10045 2015-03-06 Yao Qi <yao.qi@linaro.org>
10046
10047 * linux-aarch64-low.c (aarch64_insert_point): Use
10048 show_debug_regs as a boolean.
10049 (aarch64_remove_point): Likewise.
10050
10051 2015-03-05 Pedro Alves <palves@redhat.com>
10052
10053 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10054 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10055 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10056 * nto-low.c (nto_target_ops): Likewise.
10057 * spu-low.c (spu_target_ops): Likewise.
10058 * win32-low.c (win32_target_ops): Likewise.
10059
10060 2015-03-04 Pedro Alves <palves@redhat.com>
10061
10062 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10063 Decide whether a breakpoint triggered based on the SIGTRAP's
10064 siginfo.si_code.
10065 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10066 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10067 (linux_low_filter_event): Check for breakpoints before checking
10068 watchpoints.
10069 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10070 siginfo.si_code.
10071 (linux_stopped_by_sw_breakpoint)
10072 (linux_supports_stopped_by_sw_breakpoint)
10073 (linux_stopped_by_hw_breakpoint)
10074 (linux_supports_stopped_by_hw_breakpoint): New functions.
10075 (linux_target_ops): Install new target methods.
10076
10077 2015-03-04 Pedro Alves <palves@redhat.com>
10078
10079 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10080 * server.c (swbreak_feature, hwbreak_feature): New globals.
10081 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10082 (captured_main): Clear swbreak_feature and hwbreak_feature.
10083 * server.h (swbreak_feature, hwbreak_feature): Declare.
10084 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10085 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10086 supports_stopped_by_hw_breakpoint>: New fields.
10087 (target_supports_stopped_by_sw_breakpoint)
10088 (target_stopped_by_sw_breakpoint)
10089 (target_supports_stopped_by_hw_breakpoint)
10090 (target_stopped_by_hw_breakpoint): Declare.
10091
10092 2015-03-04 Pedro Alves <palves@redhat.com>
10093
10094 enum lwp_stop_reason -> enum target_stop_reason
10095 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10096 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10097 (linux_wait_1, stuck_in_jump_pad_callback)
10098 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10099 (linux_stopped_by_watchpoint):
10100 * linux-low.h (enum lwp_stop_reason): Delete.
10101 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10102 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10103
10104 2015-03-04 Yao Qi <yao.qi@linaro.org>
10105
10106 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10107
10108 2015-03-03 Gary Benson <gbenson@redhat.com>
10109
10110 * hostio.c (handle_vFile): Fix prefix lengths.
10111
10112 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10113
10114 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10115 ptr_bits.
10116
10117 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10118
10119 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10120 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10121 (clean): Add "rm -f" for above C files.
10122 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10123 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10124 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10125 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10126 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10127 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10128 (init_registers_s390x_vx_linux64)
10129 (init_registers_s390x_tevx_linux64)
10130 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10131 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10132 declarations.
10133 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10134 (s390_store_vxrs_high): New functions.
10135 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10136 NT_S390_VXRS_HIGH.
10137 (s390_arch_setup): Add logic for selecting one of the new target
10138 descriptions. Activate the new vector regsets if applicable.
10139 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10140 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10141 and init_registers_s390x_tevx_linux64.
10142
10143 2015-03-01 Pedro Alves <palves@redhat.com>
10144
10145 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10146 parameter.
10147
10148 2015-02-27 Pedro Alves <palves@redhat.com>
10149
10150 * linux-x86-low.c (u_debugreg_offset): New function.
10151 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10152
10153 2015-02-27 Pedro Alves <palves@redhat.com>
10154
10155 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10156 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10157 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10158 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10159 (ps_lsetfpregs, ps_getpid)
10160 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10161 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10162 (ps_lsetxregs, ps_plog): Declare.
10163
10164 2015-02-27 Pedro Alves <palves@redhat.com>
10165
10166 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10167 IP_AGENT_EXPORT_FUNC.
10168 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10169 IP_AGENT_EXPORT_FUNC.
10170 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10171 (IP_AGENT_EXPORT): Delete.
10172 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10173 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10174 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10175 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10176 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10177 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10178 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10179 (traceframe_read_count, traceframe_write_count)
10180 (traceframes_created, trace_state_variables, get_raw_reg)
10181 (get_trace_state_variable_value, set_trace_state_variable_value)
10182 (ust_loaded, helper_thread_id, cmd_buf): Use
10183 IPA_SYM_EXPORTED_NAME.
10184 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10185 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10186 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10187 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10188 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10189 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10190 EXTERN_C_PUSH/EXTERN_C_POP.
10191 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10192 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10193 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10194 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10195 (traceframe_write_count, traceframe_read_count)
10196 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10197 (about_to_request_buffer_space, get_trace_state_variable_value)
10198 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10199 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10200 EXTERN_C_PUSH/EXTERN_C_POP.
10201 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10202 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10203 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10204 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10205 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10206 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10207 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10208 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10209 Define.
10210 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10211 (IP_AGENT_EXPORT_VAR_DECL): Define.
10212 (tracing): Declare.
10213 (gdb_agent_get_raw_reg): Declare.
10214
10215 2015-02-27 Tom Tromey <tromey@redhat.com>
10216 Pedro Alves <palves@redhat.com>
10217
10218 Rename symbols whose names are reserved C++ keywords throughout.
10219
10220 2015-02-27 Pedro Alves <palves@redhat.com>
10221
10222 * Makefile.in (COMPILER): New, get it from autoconf.
10223 (CXX): Get from autoconf instead.
10224 (COMPILE.pre): Use COMPILER.
10225 (CC-LD): Rename to ...
10226 (CC_LD): ... this. Use COMPILER.
10227 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10228 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10229 * acinclude.m4: Include build-with-cxx.m4.
10230 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10231 Disable -Werror by default if building in C++ mode.
10232 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10233 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10234 the C++ compiler. Save/restore CXXFLAGS too.
10235 * configure: Regenerate.
10236
10237 2015-02-27 Pedro Alves <palves@redhat.com>
10238
10239 * acinclude.m4: Include libiberty.m4.
10240 * configure.ac: Call libiberty_INIT.
10241 * config.in, configure: Regenerate.
10242
10243 2015-02-26 Pedro Alves <palves@redhat.com>
10244
10245 * linux-low.c (linux_wait_1): When incrementing the PC past a
10246 program breakpoint always use the_low_target.breakpoint_len as
10247 increment, rather than the maximum between that and
10248 the_low_target.decr_pc_after_break.
10249
10250 2015-02-23 Pedro Alves <palves@redhat.com>
10251
10252 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10253 thread was doing a step-over; always adjust the PC if
10254 we stepped over a permanent breakpoint.
10255 (linux_wait_1): If we stepped over breakpoint that was on top of a
10256 permanent breakpoint, manually advance the PC past it.
10257
10258 2015-02-23 Pedro Alves <palves@redhat.com>
10259
10260 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10261 modes.
10262 (x86_fill_gregset, x86_store_gregset): Use it when handling
10263 $orig_eax.
10264
10265 2015-02-20 Pedro Alves <palves@redhat.com>
10266
10267 * thread-db.c: Include "nat/linux-procfs.h".
10268 (thread_db_init): Skip listing new threads if the kernel supports
10269 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10270
10271 2015-02-20 Pedro Alves <palves@redhat.com>
10272
10273 * linux-low.c (status_pending_p_callback): Use ptid_match.
10274
10275 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10276
10277 PR breakpoints/16812
10278 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10279 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10280 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10281
10282 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10283
10284 PR breakpoints/15956
10285 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10286
10287 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10288
10289 * linux-low.c (linux_low_btrace_conf): Print size.
10290 * server.c (handle_btrace_conf_general_set): New.
10291 (hanle_general_set): Call handle_btrace_conf_general_set.
10292 (handle_query): Report Qbtrace-conf:bts:size as supported.
10293
10294 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10295
10296 * linux-low.c (linux_low_enable_btrace): Update parameters.
10297 (linux_low_btrace_conf): New.
10298 (linux_target_ops)<to_btrace_conf>: Initialize.
10299 * server.c (current_btrace_conf): New.
10300 (handle_btrace_enable): Rename to ...
10301 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
10302 to target_enable_btrace. Update comment. Update users.
10303 (handle_qxfer_btrace_conf): New.
10304 (qxfer_packets): Add btrace-conf entry.
10305 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10306 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10307 (target_ops)<read_btrace_conf>: New.
10308 (target_enable_btrace): Update parameters.
10309 (target_read_btrace_conf): New.
10310
10311 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10312
10313 * server.c (handle_btrace_general_set): Remove call to
10314 target_supports_btrace.
10315 (supported_btrace_packets): New.
10316 (handle_query): Call supported_btrace_packets.
10317 * target.h: include btrace-common.h.
10318 (btrace_target_info): Removed.
10319 (supports_btrace, target_supports_btrace): Update parameters.
10320
10321 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10322
10323 * Makefile.in (SFILES): Add common/btrace-common.c.
10324 (OBS): Add common/btrace-common.o.
10325 (btrace-common.o): Add build rules.
10326 * linux-low: Include btrace-common.h.
10327 (linux_low_read_btrace): Use struct btrace_data. Call
10328 btrace_data_init and btrace_data_fini.
10329
10330 2015-02-06 Pedro Alves <palves@redhat.com>
10331
10332 * thread-db.c (find_new_threads_callback): Add debug output.
10333
10334 2015-02-04 Pedro Alves <palves@redhat.com>
10335
10336 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10337 (resume_stopped_resumed_lwps): New function.
10338 (linux_wait_for_event_filtered): Use it.
10339
10340 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10341
10342 * Makefile.in (SFILES): Add linux-personality.c.
10343 (linux-personality.o): New rule.
10344 * configure.srv (srv_linux_obj): Add linux-personality.o to the
10345 list of objects to be built.
10346 * linux-low.c: Include nat/linux-personality.h.
10347 (linux_create_inferior): Remove code to disable address space
10348 randomization (moved to ../nat/linux-personality.c). Create
10349 cleanup to disable address space randomization.
10350
10351 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10352
10353 * Makefile.in (posix-strerror.o): New rule.
10354 (mingw-strerror.o): Likewise.
10355 * configure: Regenerated.
10356 * configure.ac: Source file ../common/common.host. Initialize new
10357 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
10358
10359 2015-01-14 Yao Qi <yao@codesourcery.com>
10360
10361 * Makefile.in (SFILES): Add nat/ppc-linux.c.
10362 (ppc-linux.o): New rule.
10363 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
10364 * configure.ac: AC_CHECK_FUNCS(getauxval).
10365 * config.in: Re-generated.
10366 * configure: Re-generated.
10367 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
10368 ppc64_64bit_inferior_p
10369
10370 2015-01-14 Yao Qi <yao@codesourcery.com>
10371
10372 * linux-ppc-low.c: Include "nat/ppc-linux.h".
10373 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
10374 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
10375 (PT_ORIG_R3, PT_TRAP): Likewise.
10376 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10377 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10378 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10379
10380 2015-01-10 Joel Brobecker <brobecker@adacore.com>
10381
10382 * i387-fp.c (i387_cache_to_xsave): In look over
10383 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
10384 zmmh_low_space field by use of zmmh_high_space.
10385
10386 2015-01-09 Pedro Alves <palves@redhat.com>
10387
10388 * linux-low.c (step_over_bkpt): Move higher up in the file.
10389 (handle_extended_wait): Don't store the stop_pc here.
10390 (get_stop_pc): Adjust comments and rename to ...
10391 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10392 stopped for a software breakpoint or hardware breakpoint.
10393 (thread_still_has_status_pending_p): New function.
10394 (status_pending_p_callback): Use
10395 thread_still_has_status_pending_p. If the event is no longer
10396 interesting, resume the LWP.
10397 (handle_tracepoints): Add assert.
10398 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
10399 (wstatus_maybe_breakpoint): New function.
10400 (cancel_breakpoint): Delete function.
10401 (check_stopped_by_watchpoint): New function, factored out from
10402 linux_low_filter_event.
10403 (lp_status_maybe_breakpoint): Delete function.
10404 (linux_low_filter_event): Remove filter_ptid argument.
10405 Leave thread group exits pending here. Store the LWP's stop PC.
10406 Always leave events pending.
10407 (linux_wait_for_event_filtered): Pull all events out of the
10408 kernel, and leave them all pending.
10409 (count_events_callback, select_event_lwp_callback): Consider all
10410 events.
10411 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
10412 (select_event_lwp): Only give preference to the stepping LWP in
10413 all-stop mode. Adjust comments.
10414 (ignore_event): New function.
10415 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
10416 references to cancel_breakpoints. Adjust to renames. Also give
10417 equal priority to all LWPs that have had events in non-stop mode.
10418 If reporting a software breakpoint event, unadjust the LWP's PC.
10419 (linux_wait): If linux_wait_1 returned an ignored event, retry.
10420 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
10421 Adjust.
10422 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
10423 (resume_status_pending_p): Use thread_still_has_status_pending_p.
10424 (linux_stopped_by_watchpoint): Adjust.
10425 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
10426 * linux-low.h (enum lwp_stop_reason): New.
10427 (struct lwp_info) <stop_pc>: Adjust comment.
10428 <stopped_by_watchpoint>: Delete field.
10429 <stop_reason>: New field.
10430 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10431 * mem-break.c (software_breakpoint_inserted_here)
10432 (hardware_breakpoint_inserted_here): New function.
10433 * mem-break.h (software_breakpoint_inserted_here)
10434 (hardware_breakpoint_inserted_here): Declare.
10435 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
10436 (cancel_breakpoints): Delete.
10437 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
10438 (upload_fast_traceframes): Remove references to
10439 cancel_breakpoints.
10440
10441 2015-01-09 Pedro Alves <palves@redhat.com>
10442
10443 * thread-db.c (find_new_threads_callback): Ignore thread if the
10444 kernel thread ID is -1.
10445
10446 2015-01-09 Pedro Alves <palves@redhat.com>
10447
10448 * linux-low.c (linux_attach_fail_reason_string): Move to
10449 nat/linux-ptrace.c, and rename.
10450 (linux_attach_lwp): Update comment.
10451 (attach_proc_task_lwp_callback): New function.
10452 (linux_attach): Adjust to rename and use
10453 linux_proc_attach_tgid_threads.
10454 (linux_attach_fail_reason_string): Delete declaration.
10455
10456 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10457
10458 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
10459 * server.c (gdbserver_version): Likewise.
10460
10461 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
10462
10463 * remote-utils.c: Include ctype.h.
10464 (input_interrupt): Explicitly handle the case when the char
10465 received is the NUL byte. Improve the printing of non-ASCII
10466 characters.
10467
10468 2014-12-16 Joel Brobecker <brobecker@adacore.com>
10469
10470 * linux-low.c (linux_low_filter_event): Update call to
10471 linux_enable_event_reporting following the addition of
10472 a new parameter to that function.
10473
10474 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
10475
10476 PR server/17457
10477 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
10478 (AARCH64_FPCR_REGNO): Likewise.
10479 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
10480 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
10481 (aarch64_store_fpregset): Likewise.
10482
10483 2014-12-15 Joel Brobecker <brobecker@adacore.com>
10484
10485 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
10486 Remove FIXME comment about assumption about N.
10487
10488 2014-12-13 Joel Brobecker <brobecker@adacore.com>
10489
10490 * configure.ac: If large-file support is disabled in GDBserver,
10491 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
10492 * configure: Regenerate.
10493
10494 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10495
10496 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
10497 warning upon ENODATA from ptrace.
10498 * linux-s390-low.c (s390_store_tdb): New.
10499 (s390_regsets): Add regset for NT_S390_TDB.
10500
10501 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10502
10503 * linux-low.c (regsets_store_inferior_registers): Skip regsets
10504 without a fill_function.
10505 * linux-s390-low.c (s390_fill_last_break): Remove.
10506 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
10507 (s390_arch_setup): Use regset's size instead of fill_function for
10508 loop end condition.
10509
10510 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10511
10512 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
10513 the regset's store function when ptrace returned an error.
10514 * regcache.c (get_thread_regcache): Invalidate register cache
10515 before fetching inferior's registers.
10516
10517 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10518
10519 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
10520 while-loop as for-loop.
10521 (regsets_store_inferior_registers): Likewise.
10522
10523 2014-11-28 Yao Qi <yao@codesourcery.com>
10524
10525 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
10526 * config.in, configure: Re-generate.
10527 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
10528 is defined.
10529
10530 2014-11-21 Yao Qi <yao@codesourcery.com>
10531
10532 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
10533 (AC_CHECK_HEADERS): Remove malloc.h.
10534 * configure: Re-generated.
10535 * config.in: Re-generated.
10536 * server.h: Don't include alloca.h and malloc.h.
10537 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
10538 Don't include malloc.h.
10539
10540 2014-11-17 Joel Brobecker <brobecker@adacore.com>
10541
10542 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
10543 corresponding ERRNO check in same block.
10544
10545 2014-11-12 Pedro Alves <palves@redhat.com>
10546
10547 * server.c (cont_thread): Update comment.
10548 (start_inferior, attach_inferior): No longer clear cont_thread.
10549 (handle_v_cont): No longer set cont_thread.
10550 (captured_main): Clear cont_thread each time a GDB connects.
10551
10552 2014-11-12 Pedro Alves <palves@redhat.com>
10553
10554 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
10555 thread, and don't resume all threads if the Hc thread has exited.
10556
10557 2014-11-12 Pedro Alves <palves@redhat.com>
10558
10559 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
10560 the process group instead of to a specific LWP.
10561
10562 2014-10-15 Pedro Alves <palves@redhat.com>
10563
10564 PR server/17487
10565 * win32-arm-low.c (arm_set_thread_context): Remove current_event
10566 parameter.
10567 (arm_set_thread_context): Delete.
10568 (the_low_target): Adjust.
10569 * win32-i386-low.c (debug_registers_changed)
10570 (debug_registers_used): Delete.
10571 (update_debug_registers_callback): New function.
10572 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
10573 needing to update their debug registers.
10574 (win32_get_current_dr): New function.
10575 (x86_dr_low_get_addr, x86_dr_low_get_control)
10576 (x86_dr_low_get_status): Fetch the debug register from the thread
10577 record's context.
10578 (i386_initial_stuff): Adjust.
10579 (i386_get_thread_context): Remove current_event parameter. Don't
10580 clear debug_registers_changed nor copy DR values to
10581 debug_reg_state.
10582 (i386_set_thread_context): Delete.
10583 (i386_prepare_to_resume): New function.
10584 (i386_thread_added): Mark the thread as needing to update irs
10585 debug registers.
10586 (the_low_target): Remove i386_set_thread_context and install
10587 i386_prepare_to_resume.
10588 * win32-low.c (win32_get_thread_context): Adjust.
10589 (win32_set_thread_context): Use SetThreadContext
10590 directly.
10591 (win32_prepare_to_resume): New function.
10592 (win32_require_context): New function, factored out from ...
10593 (thread_rec): ... this.
10594 (continue_one_thread): Call win32_prepare_to_resume on each thread
10595 we're about to continue.
10596 (win32_resume): Call win32_prepare_to_resume on the event thread.
10597 * win32-low.h (struct win32_thread_info)
10598 <debug_registers_changed>: New field.
10599 (struct win32_target_ops): Change prototype of set_thread_context,
10600 delete set_thread_context and add prepare_to_resume.
10601 (win32_require_context): New declaration.
10602
10603 2014-10-08 Gary Benson <gbenson@redhat.com>
10604
10605 * server.h: Do not include common-exceptions.h.
10606
10607 2014-10-08 Gary Benson <gbenson@redhat.com>
10608
10609 * server.h: Do not include cleanups.h.
10610
10611 2014-09-30 James Hogan <james.hogan@imgtec.com>
10612
10613 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
10614 mips64-dsp-linux.c.
10615
10616 2014-09-23 Yao Qi <yao@codesourcery.com>
10617
10618 * linux-low.c (lp_status_maybe_breakpoint): New function.
10619 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
10620 (count_events_callback): Likewise.
10621 (select_event_lwp_callback): Likewise.
10622 (cancel_breakpoints_callback): Likewise.
10623
10624 2014-09-19 Don Breazeal <donb@codesourcery.com>
10625
10626 * linux-low.c (handle_extended_wait): Call
10627 linux_ptrace_get_extended_event.
10628 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
10629 linux_is_extended_waitstatus.
10630
10631 2014-09-16 Joel Brobecker <brobecker@adacore.com>
10632
10633 * Makefile.in (CPPFLAGS): Define.
10634 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
10635 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
10636
10637 2014-09-16 Gary Benson <gbenson@redhat.com>
10638
10639 * inferiors.h (current_inferior): Renamed as...
10640 (current_thread): New variable. All uses updated.
10641 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
10642 (maybe_move_out_of_jump_pad): Likewise.
10643 (cancel_breakpoint): Likewise.
10644 (linux_low_filter_event): Likewise.
10645 (wait_for_sigstop): Likewise.
10646 (linux_resume_one_lwp): Likewise.
10647 (need_step_over_p): Likewise.
10648 (start_step_over): Likewise.
10649 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
10650 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
10651 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
10652 and save_inferior as saved_thread.
10653 * regcache.c (get_thread_regcache): Renamed saved_inferior as
10654 saved_thread.
10655 (regcache_invalidate_thread): Likewise.
10656 * remote-utils.c (prepare_resume_reply): Likewise.
10657 * thread-db.c (thread_db_get_tls_address): Likewise.
10658 (disable_thread_event_reporting): Likewise.
10659 (remove_thread_event_breakpoints): Likewise.
10660 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
10661 as saved_thread.
10662 * target.h (set_desired_inferior): Renamed as...
10663 (set_desired_thread): New declaration. All uses updated.
10664 * server.c (myresume): Updated comment to reference thread instead
10665 of inferior.
10666 (handle_serial_event): Likewise.
10667 (handle_target_event): Likewise.
10668
10669 2014-09-12 Tom Tromey <tromey@redhat.com>
10670 Gary Benson <gbenson@redhat.com>
10671
10672 * regcache.h: Include common-regcache.h.
10673 (regcache_read_pc): Don't declare.
10674 * regcache.c (get_thread_regcache_for_ptid): New function.
10675
10676 2014-09-11 Tom Tromey <tromey@redhat.com>
10677 Gary Benson <gbenson@redhat.com>
10678
10679 * symbol.c: New file.
10680 * Makefile.in (SFILES): Add symbol.c.
10681 (OBS): Add symbol.o.
10682
10683 2014-09-11 Gary Benson <gbenson@redhat.com>
10684
10685 * target.c (target_stop_ptid, target_continue_ptid): New
10686 functions.
10687
10688 2014-09-11 Tom Tromey <tromey@redhat.com>
10689 Gary Benson <gbenson@redhat.com>
10690
10691 * target.h: Include target/target.h.
10692 * target.c (target_read_memory, target_read_uint32)
10693 (target_write_memory): New functions.
10694
10695 2014-09-11 Gary Benson <gbenson@redhat.com>
10696
10697 * server.h (debug_hw_points): Don't declare.
10698 * server.c (debug_hw_points): Don't define. Replace all uses
10699 with show_debug_regs.
10700 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
10701 all uses with show_debug_regs.
10702
10703 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10704
10705 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
10706 endianness into account.
10707 (ppc_supply_ptrace_register): Likewise.
10708
10709 2014-09-03 James Hogan <james.hogan@imgtec.com>
10710
10711 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
10712 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
10713
10714 2014-09-03 Gary Benson <gbenson@redhat.com>
10715
10716 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
10717 ALL_DEBUG_ADDRESS_REGISTERS.
10718
10719 2014-09-02 Gary Benson <gbenson@redhat.com>
10720
10721 * i386-low.h: Renamed as...
10722 * x86-low.h: New file. All type, function and variable name
10723 prefixes changed from "i386_" to "x86_". All references updated.
10724 * i386-low.c: Renamed as...
10725 * x86-low.c: New file. All type, function and variable name
10726 prefixes changed from "i386_" to "x86_". All references updated.
10727
10728 2014-09-02 Gary Benson <gbenson@redhat.com>
10729
10730 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
10731 (x86_linux_new_thread): Likewise.
10732
10733 2014-08-29 Gary Benson <gbenson@redhat.com>
10734
10735 * server.h (setjmp.h): Do not include.
10736 (toplevel): Do not declare.
10737 (common-exceptions.h): Include.
10738 (cleanups.h): Likewise.
10739 * server.c (toplevel): Do not define.
10740 (exit_code): New static global.
10741 (detach_or_kill_for_exit_cleanup): New function.
10742 (main): New function. Original main renamed to...
10743 (captured_main): New function.
10744 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
10745
10746 2014-08-29 Gary Benson <gbenson@redhat.com>
10747
10748 * Makefile.in (SFILES): Add common/common-exceptions.c.
10749 (OBS): Add common-exceptions.o.
10750 (common-exceptions.o): New rule.
10751 * utils.c (prepare_to_throw_exception): New function.
10752
10753 2014-08-29 Gary Benson <gbenson@redhat.com>
10754
10755 * config.in: Regenerate.
10756 * configure: Likewise.
10757
10758 2014-08-29 Gary Benson <gbenson@redhat.com>
10759
10760 * Makefile.in (SFILES): Add common/cleanups.c.
10761 (OBS): cleanups.o.
10762 (cleanups.o): New rule.
10763
10764 2014-08-29 Gary Benson <gbenson@redhat.com>
10765
10766 * utils.c (internal_vwarning): New function.
10767
10768 2014-08-28 Gary Benson <gbenson@redhat.com>
10769
10770 * utils.h (fatal): Remove declaration.
10771 * utils.c (fatal): Remove function.
10772
10773 2014-08-28 Gary Benson <gbenson@redhat.com>
10774
10775 * tracepoint.c (gdb_agent_init): Replace fatal with
10776 perror_with_name.
10777 (initialize_tracepoint): Likewise.
10778
10779 2014-08-28 Gary Benson <gbenson@redhat.com>
10780
10781 * remote-utils.c (remote_prepare): Replace fatal with error.
10782
10783 2014-08-28 Gary Benson <gbenson@redhat.com>
10784
10785 * linux-low.c (linux_async): Replace fatal with warning.
10786 Tidy up and return.
10787 (linux_start_non_stop): Return -1 if linux_async failed.
10788
10789 2014-08-28 Gary Benson <gbenson@redhat.com>
10790
10791 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10792 gdb_assert.
10793 (i386_dr_low_get_addr): Remove vague comment.
10794 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10795 gdb_assert.
10796
10797 2014-08-28 Gary Benson <gbenson@redhat.com>
10798
10799 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10800 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10801 internal_error.
10802 (linux_resume_one_lwp): Likewise.
10803 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10804 gdb_assert.
10805 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
10806 with internal_error.
10807 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
10808 (init_register_cache): Replace fatal with gdb_assert_not_reached.
10809 (find_register_by_name): Replace fatal with internal_error.
10810 (find_regno): Likewise.
10811 * tdesc.c (init_target_desc): Replace check with gdb_assert.
10812 * thread-db.c (thread_db_create_event): Likewise.
10813 (thread_db_load_search): Likewise.
10814 (try_thread_db_load_1): Likewise.
10815 * tracepoint.c (get_jump_space_head): Replace fatal with
10816 internal_error.
10817 (claim_trampoline_space): Likewise.
10818 (have_fast_tracepoint_trampoline_buffer): Likewise.
10819 (cmd_qtstart): Likewise.
10820 (stop_tracing): Likewise.
10821 (fast_tracepoint_collecting): Likewise.
10822 (target_malloc): Likewise.
10823 (download_tracepoint): Likewise.
10824 (download_trace_state_variables): Replace check with gdb_assert.
10825 (upload_fast_traceframes): Replace fatal with internal_error.
10826
10827 2014-08-19 Tom Tromey <tromey@redhat.com>
10828 Gary Benson <gbenson@redhat.com>
10829
10830 * Makefile.in (SFILES): Add common/common-debug.c.
10831 (OBS): Add common-debug.o.
10832 (common-debug.o): New rule.
10833 * debug.h (debug_printf): Don't declare.
10834 * debug.c (debug_printf): Renamed and rewritten as...
10835 (debug_vprintf): New function.
10836
10837 2014-08-19 Gary Benson <gbenson@redhat.com>
10838
10839 * utils.h: Do not include print-utils.h.
10840
10841 2014-08-19 Tom Tromey <tromey@redhat.com>
10842 Gary Benson <gbenson@redhat.com>
10843
10844 * server.h: Add static assertion.
10845 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
10846
10847 2014-08-19 Tom Tromey <tromey@redhat.com>
10848 Gary Benson <gbenson@redhat.com>
10849
10850 * Makefile.in (SFILES): Add common/errors.c.
10851 (OBS): Add errors.o.
10852 (IPA_OBS): Add errors-ipa.o.
10853 (errors.o): New rule.
10854 (errors-ipa.o): Likewise.
10855 * utils.h (perror_with_name, error, warning): Don't declare.
10856 * utils.c (warning): Renamed and rewritten as...
10857 (vwarning): New function.
10858 (error): Renamed and rewritten as...
10859 (verror): New function.
10860 (internal_error): Renamed and rewritten as...
10861 (internal_verror): New function.
10862
10863 2014-08-07 Gary Benson <gbenson@redhat.com>
10864
10865 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
10866 * configure: Regenerate.
10867 * config.in: Likewise.
10868 * server.h: Do not include errno.h.
10869 * event-loop.c: Likewise.
10870 * hostio-errno.c: Likewise.
10871 * linux-low.c: Likewise.
10872 * remote-utils.c: Likewise.
10873 * spu-low.c: Likewise.
10874 * utils.c: Likewise.
10875 * gdbreplay.c: Unconditionally include errno.h.
10876
10877 2014-08-07 Gary Benson <gbenson@redhat.com>
10878
10879 * server.h: Do not include string.h.
10880 * event-loop.c: Likewise.
10881 * linux-low.c: Likewise.
10882 * regcache.c: Likewise.
10883 * remote-utils.c: Likewise.
10884 * spu-low.c: Likewise.
10885 * utils.c: Likewise.
10886
10887 2014-08-07 Gary Benson <gbenson@redhat.com>
10888
10889 * server.h: Do not include gdb_assert.h.
10890
10891 2014-08-07 Gary Benson <gbenson@redhat.com>
10892
10893 * server.h: Do not include common-utils.h.
10894
10895 2014-08-07 Gary Benson <gbenson@redhat.com>
10896
10897 * server.h: Do not include ptid.h.
10898 * notif.h: Likewise.
10899
10900 2014-08-07 Gary Benson <gbenson@redhat.com>
10901
10902 * server.h: Do not include gdb_locale.h.
10903
10904 2014-08-07 Gary Benson <gbenson@redhat.com>
10905
10906 * server.h: Do not include gdb/signals.h.
10907 * win32-low.c: Likewise.
10908
10909 2014-08-07 Gary Benson <gbenson@redhat.com>
10910
10911 * server.h: Do not include pathmax.h.
10912
10913 2014-08-07 Gary Benson <gbenson@redhat.com>
10914
10915 * server.h: Do not include libiberty.h.
10916 * linux-bfin-low.c: Likewise.
10917
10918 2014-08-07 Gary Benson <gbenson@redhat.com>
10919
10920 * server.h: Do not include ansidecl.h.
10921
10922 2014-08-07 Gary Benson <gbenson@redhat.com>
10923
10924 * linux-x86-low.c: Do not include stddef.h.
10925 * lynx-ppc-low.c: Likewise.
10926 * tracepoint.c: Likewise.
10927
10928 2014-08-07 Gary Benson <gbenson@redhat.com>
10929
10930 * server.h: Do not include stdarg.h.
10931 * nto-low.c: Likewise.
10932
10933 2014-08-07 Gary Benson <gbenson@redhat.com>
10934
10935 * server.h: Do not include stdlib.h.
10936 * inferiors.c: Likewise.
10937 * linux-low.c: Likewise.
10938 * regcache.c: Likewise.
10939 * spu-low.c: Likewise.
10940 * tracepoint.c: Likewise.
10941 * utils.c: Likewise.
10942
10943 2014-08-07 Gary Benson <gbenson@redhat.com>
10944
10945 * server.h: Do not include stdio.h.
10946 * linux-low.c: Likewise.
10947 * remote-utils.c: Likewise.
10948 * spu-low.c: Likewise.
10949 * utils.c: Likewise.
10950 * wincecompat.c: Likewise.
10951
10952 2014-08-06 Gary Benson <gbenson@redhat.com>
10953
10954 * regcache.c (init_register_cache): Move conditionals inside if.
10955
10956 2014-08-06 Gary Benson <gbenson@redhat.com>
10957
10958 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10959
10960 2014-07-31 Gary Benson <gbenson@redhat.com>
10961
10962 * ax.h: Do not include server.h.
10963 * gdbthread.h: Likewise.
10964 * lynx-low.h: Likewise.
10965 * notif.h: Likewise.
10966
10967 2014-07-30 Gary Benson <gbenson@redhat.com>
10968
10969 * server.h: Include common-defs.h.
10970 Do not include config.h or build-gnulib-gdbserver/config.h.
10971
10972 2014-07-30 Gary Benson <gbenson@redhat.com>
10973
10974 * hostio-errno.c: Move server.h to top of includes list.
10975 * inferiors.c: Likewise.
10976 * linux-x86-low.c: Likewise.
10977 * notif.c: Include server.h.
10978
10979 2014-07-24 Tom Tromey <tromey@redhat.com>
10980 Gary Benson <gbenson@redhat.com>
10981
10982 * server.h (CORE_ADDR): Now unsigned.
10983
10984 2014-07-16 Pedro Alves <palves@redhat.com>
10985
10986 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10987
10988 2014-07-15 Pedro Alves <palves@redhat.com>
10989
10990 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10991 copy.
10992
10993 2014-07-11 Pedro Alves <palves@redhat.com>
10994
10995 * linux-low.c (kill_wait_lwp): New function, based on
10996 kill_one_lwp_callback, but use my_waitpid directly.
10997 (kill_one_lwp_callback, linux_kill): Use it.
10998
10999 2014-06-23 Pedro Alves <palves@redhat.com>
11000
11001 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11002 before setting DR0..DR3.
11003
11004 2014-06-20 Gary Benson <gbenson@redhat.com>
11005
11006 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11007 * configure: Regenerated.
11008 * config.in: Likewise.
11009
11010 2014-06-20 Gary Benson <gbenson@redhat.com>
11011
11012 * Makefile.in (SFILES): Update locations for files moved
11013 from common to nat.
11014 (object file files): Reordered.
11015
11016 2014-06-20 Gary Benson <gbenson@redhat.com>
11017
11018 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11019 (i386_dr_low_set_addr): Likewise.
11020 (i386_dr_low_get_addr): Likewise.
11021 (i386_dr_low_can_set_control): Likewise.
11022 (i386_dr_low_set_control): Likewise.
11023 (i386_dr_low_get_control): Likewise.
11024 (i386_dr_low_get_status): Likewise.
11025 (i386_get_debug_register_length): Likewise.
11026 * linux-x86-low.c (i386_dr_low_set_addr):
11027 Changed signature. Made static.
11028 (i386_dr_low_get_addr): Likewise.
11029 (i386_dr_low_set_control): Likewise.
11030 (i386_dr_low_get_control): Likewise.
11031 (i386_dr_low_get_status): Likewise.
11032 (i386_dr_low): New global variable.
11033 * win32-i386-low.c (i386_dr_low_set_addr):
11034 Changed signature. Made static.
11035 (i386_dr_low_get_addr): Likewise.
11036 (i386_dr_low_set_control): Likewise.
11037 (i386_dr_low_get_control): Likewise.
11038 (i386_dr_low_get_status): Likewise.
11039 (i386_dr_low): New global variable.
11040
11041 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11042
11043 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11044 * Makefile.in (AR, AR_FLAGS): Define.
11045 * configure: Regenerate.
11046
11047 2014-06-19 Gary Benson <gbenson@redhat.com>
11048
11049 * Makefile.in (i386-dregs.o): New rule.
11050 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11051 * i386-low.c (target.h): Remove include.
11052 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11053 (DR_CONTROL_SHIFT): Likewise.
11054 (DR_CONTROL_SIZE): Likewise.
11055 (DR_RW_EXECUTE): Likewise.
11056 (DR_RW_WRITE): Likewise.
11057 (DR_RW_READ): Likewise.
11058 (DR_RW_IORW): Likewise.
11059 (DR_LEN_1): Likewise.
11060 (DR_LEN_2): Likewise.
11061 (DR_LEN_4): Likewise.
11062 (DR_LEN_8): Likewise.
11063 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11064 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11065 (DR_ENABLE_SIZE): Likewise.
11066 (DR_LOCAL_SLOWDOWN): Likewise.
11067 (DR_GLOBAL_SLOWDOWN): Likewise.
11068 (DR_CONTROL_RESERVED): Likewise.
11069 (I386_DR_CONTROL_MASK): Likewise.
11070 (I386_DR_VACANT): Likewise.
11071 (I386_DR_LOCAL_ENABLE): Likewise.
11072 (I386_DR_GLOBAL_ENABLE): Likewise.
11073 (I386_DR_DISABLE): Likewise.
11074 (I386_DR_SET_RW_LEN): Likewise.
11075 (I386_DR_GET_RW_LEN): Likewise.
11076 (I386_DR_WATCH_HIT): Likewise.
11077 (i386_wp_op_t): Likewise.
11078 (i386_show_dr): Likewise.
11079 (i386_length_and_rw_bits): Likewise.
11080 (i386_insert_aligned_watchpoint): Likewise.
11081 (i386_remove_aligned_watchpoint): Likewise.
11082 (i386_handle_nonaligned_watchpoint): Likewise.
11083 i386_update_inferior_debug_regs(): Likewise.
11084 (i386_dr_insert_watchpoint): Likewise.
11085 (i386_dr_remove_watchpoint): Likewise.
11086 (i386_dr_region_ok_for_watchpoint): Likewise.
11087 (i386_dr_stopped_data_address): Likewise.
11088 (i386_dr_stopped_by_watchpoint): Likewise.
11089
11090 2014-06-19 Gary Benson <gbenson@redhat.com>
11091
11092 * i386-low.c (i386_dr_show): Renamed to
11093 i386_show_dr and made static. All uses updated.
11094 (i386_dr_length_and_rw_bits): Renamed to
11095 i386_length_and_rw_bits and made static.
11096 All uses updated.
11097 (i386_dr_insert_aligned_watchpoint): Renamed to
11098 i386_insert_aligned_watchpoint and made static.
11099 All uses updated.
11100 (i386_dr_remove_aligned_watchpoint): Renamed to
11101 i386_remove_aligned_watchpoint and made static.
11102 All uses updated.
11103 (i386_dr_update_inferior_debug_regs): Renamed to
11104 i386_update_inferior_debug_regs and made static.
11105 All uses updated.
11106
11107 2014-06-18 Gary Benson <gbenson@redhat.com>
11108
11109 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11110 (i386_dr_low_can_set_control): Likewise.
11111 (i386_get_debug_register_length): Likewise.
11112 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11113 (i386_dr_low_can_set_control): Likewise.
11114 (i386_get_debug_register_length): Likewise.
11115
11116 2014-06-17 Gary Benson <gbenson@redhat.com>
11117
11118 * i386-low.h (i386-dregs.h): New include.
11119 (DR_FIRSTADDR): Now in i386-dregs.h.
11120 (DR_LASTADDR): Likewise.
11121 (DR_NADDR): Likewise.
11122 (DR_STATUS): Likewise.
11123 (DR_CONTROL): Likewise.
11124 (i386_debug_reg_state): Likewise.
11125 (i386_dr_insert_watchpoint): Likewise.
11126 (i386_dr_remove_watchpoint): Likewise.
11127 (i386_dr_region_ok_for_watchpoint): Likewise.
11128 (i386_dr_stopped_data_address): Likewise.
11129 (i386_dr_stopped_by_watchpoint): Likewise.
11130 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11131
11132 2014-06-18 Gary Benson <gbenson@redhat.com>
11133
11134 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11135 i386_dr_insert_watchpoint.
11136 (i386_low_remove_watchpoint): Renamed to
11137 i386_dr_remove_watchpoint.
11138 (i386_low_region_ok_for_watchpoint): Renamed to
11139 i386_dr_region_ok_for_watchpoint.
11140 (i386_low_stopped_data_address): Renamed to
11141 i386_dr_stopped_data_address.
11142 (i386_low_stopped_by_watchpoint): Renamed to
11143 i386_dr_stopped_by_watchpoint.
11144 * i386-low.c (i386_show_dr): Renamed to
11145 i386_dr_show and made nonstatic. All uses updated.
11146 (i386_length_and_rw_bits): Renamed to
11147 i386_dr_length_and_rw_bits and made nonstatic.
11148 All uses updated.
11149 (i386_insert_aligned_watchpoint): Renamed to
11150 i386_dr_insert_aligned_watchpoint and made nonstatic.
11151 All uses updated.
11152 (i386_remove_aligned_watchpoint): Renamed to
11153 i386_dr_remove_aligned_watchpoint and made nonstatic.
11154 All uses updated.
11155 (i386_update_inferior_debug_regs): Renamed to
11156 i386_dr_update_inferior_debug_regs and made nonstatic.
11157 All uses updated.
11158 (i386_low_insert_watchpoint): Renamed to
11159 i386_dr_insert_watchpoint. All uses updated.
11160 (i386_low_remove_watchpoint): Renamed to
11161 i386_dr_remove_watchpoint. All uses updated.
11162 (i386_low_region_ok_for_watchpoint): Renamed to
11163 i386_dr_region_ok_for_watchpoint. All uses updated.
11164 (i386_low_stopped_data_address): Renamed to
11165 i386_dr_stopped_data_address. All uses updated.
11166 (i386_low_stopped_by_watchpoint): Renamed to
11167 i386_dr_stopped_by_watchpoint. All uses updated.
11168
11169 2014-06-18 Gary Benson <gbenson@redhat.com>
11170
11171 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11172 (i386_dr_low_can_set_control): Likewise.
11173 (i386_insert_aligned_watchpoint): New check.
11174
11175 2014-06-18 Gary Benson <gbenson@redhat.com>
11176
11177 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11178 Renamed to state.
11179
11180 2014-06-18 Gary Benson <gbenson@redhat.com>
11181
11182 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11183 instead of fatal and error.
11184 (i386_handle_nonaligned_watchpoint): Likewise.
11185
11186 2014-06-18 Gary Benson <gbenson@redhat.com>
11187
11188 * i386-low.c (i386_get_debug_register_length): New macro.
11189 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11190 (i386_show_dr): Use debug_printf instead of fprintf. Use
11191 phex to format values.
11192
11193 2014-06-18 Gary Benson <gbenson@redhat.com>
11194
11195 * i386-low.h: Comment changes.
11196 * i386-low.c: Likewise.
11197
11198 2014-06-18 Gary Benson <gbenson@redhat.com>
11199
11200 * i386-low.c: Whitespace changes.
11201
11202 2014-06-12 Tom Tromey <tromey@redhat.com>
11203
11204 * utils.c (freeargv): Remove.
11205
11206 2014-06-12 Tom Tromey <tromey@redhat.com>
11207
11208 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11209 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11210 (parse_debug_format_options): Likewise.
11211 (gdbserver_usage): Likewise.
11212 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11213 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11214 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11215 against libiberty.
11216 ($(LIBGNU)): Depend on libiberty.
11217 (all-lib): Recurse into all subdirs.
11218 (install-only): Invoke "install" target in subdirs.
11219 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11220 targets.
11221 * configure: Rebuild.
11222 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11223 for vasprintf, vsnprintf, or gettimeofday.
11224 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11225 srv_tgtobj.
11226
11227 2014-06-05 Joel Brobecker <brobecker@adacore.com>
11228
11229 * development.sh: Delete.
11230 * Makefile.in (config.status): Adjust dependency on development.sh.
11231 * configure.ac: Adjust development.sh source call.
11232 * configure: Regenerate.
11233
11234 2014-06-02 Pedro Alves <palves@redhat.com>
11235
11236 * ax.c (gdb_free_agent_expr): New function.
11237 * ax.h (gdb_free_agent_expr): New declaration.
11238 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11239 list.
11240 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11241 static.
11242 (clear_breakpoint_conditions_and_commands): New function.
11243 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11244 (clear_breakpoint_conditions_and_commands): New declaration.
11245
11246 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11247
11248 * linux-aarch64-low.c (asm/ptrace.h): Include.
11249
11250 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11251
11252 Fix TLS access for -static -pthread.
11253 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11254 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11255 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11256
11257 2014-05-20 Pedro Alves <palves@redhat.com>
11258
11259 * linux-aarch64-low.c (aarch64_insert_point)
11260 (aarch64_remove_point): No longer check whether the type is
11261 supported here. Adjust to new interface.
11262 (the_low_target): Install aarch64_supports_z_point_type as
11263 supports_z_point_type method.
11264 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11265 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11266 instead of a Z packet char. Adjust.
11267 (arm_supports_z_point_type): New function.
11268 (arm_insert_point, arm_remove_point): Adjust to new interface.
11269 (the_low_target): Install arm_supports_z_point_type.
11270 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11271 (cris_insert_point, cris_remove_point): Adjust to new interface.
11272 Don't check whether the type is supported here.
11273 (the_low_target): Install cris_supports_z_point_type.
11274 * linux-low.c (linux_supports_z_point_type): New function.
11275 (linux_insert_point, linux_remove_point): Adjust to new interface.
11276 * linux-low.h (struct linux_target_ops) <insert_point,
11277 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11278 raw_breakpoint pointer parameter.
11279 <supports_z_point_type>: New method.
11280 * linux-mips-low.c (mips_supports_z_point_type): New function.
11281 (mips_insert_point, mips_remove_point): Adjust to new interface.
11282 Use mips_supports_z_point_type.
11283 (the_low_target): Install mips_supports_z_point_type.
11284 * linux-ppc-low.c (the_low_target): Install NULL as
11285 supports_z_point_type method.
11286 * linux-s390-low.c (the_low_target): Install NULL as
11287 supports_z_point_type method.
11288 * linux-sparc-low.c (the_low_target): Install NULL as
11289 supports_z_point_type method.
11290 * linux-x86-low.c (x86_supports_z_point_type): New function.
11291 (x86_insert_point): Adjust to new insert_point interface. Use
11292 insert_memory_breakpoint. Adjust to new
11293 i386_low_insert_watchpoint interface.
11294 (x86_remove_point): Adjust to remove_point interface. Use
11295 remove_memory_breakpoint. Adjust to new
11296 i386_low_remove_watchpoint interface.
11297 (the_low_target): Install x86_supports_z_point_type.
11298 * lynx-low.c (lynx_target_ops): Install NULL as
11299 supports_z_point_type callback.
11300 * nto-low.c (nto_supports_z_point_type): New.
11301 (nto_insert_point, nto_remove_point): Adjust to new interface.
11302 (nto_target_ops): Install nto_supports_z_point_type.
11303 * mem-break.c: Adjust intro comment.
11304 (struct raw_breakpoint) <raw_type, size>: New fields.
11305 <inserted>: Update comment.
11306 <shlib_disabled>: Delete field.
11307 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11308 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11309 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11310 (raw_bkpt_type_to_target_hw_bp_type): New function.
11311 (find_enabled_raw_code_breakpoint_at): New function.
11312 (find_raw_breakpoint_at): New type and size parameters. Use them.
11313 (insert_memory_breakpoint): New function, based off
11314 set_raw_breakpoint_at.
11315 (remove_memory_breakpoint): New function.
11316 (set_raw_breakpoint_at): Reimplement.
11317 (set_breakpoint): New, based on set_breakpoint_at.
11318 (set_breakpoint_at): Reimplement.
11319 (delete_raw_breakpoint): Go through the_target->remove_point
11320 instead of assuming memory breakpoints.
11321 (find_gdb_breakpoint_at): Delete.
11322 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11323 (find_gdb_breakpoint): New function.
11324 (set_gdb_breakpoint_at): Delete.
11325 (z_type_supported): New function.
11326 (set_gdb_breakpoint_1): New function, loosely based off
11327 set_gdb_breakpoint_at.
11328 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11329 (delete_gdb_breakpoint_at): Delete.
11330 (delete_gdb_breakpoint_1): New function, loosely based off
11331 delete_gdb_breakpoint_at.
11332 (delete_gdb_breakpoint): New function.
11333 (clear_gdb_breakpoint_conditions): Rename to ...
11334 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11335 breakpoint.
11336 (add_condition_to_breakpoint): Make static.
11337 (add_breakpoint_condition): Take a struct breakpoint pointer
11338 instead of an address. Adjust.
11339 (gdb_condition_true_at_breakpoint): Rename to ...
11340 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11341 z_type parameter.
11342 (gdb_condition_true_at_breakpoint): Reimplement.
11343 (add_breakpoint_commands): Take a struct breakpoint pointer
11344 instead of an address. Adjust.
11345 (gdb_no_commands_at_breakpoint): Rename to ...
11346 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
11347 parameter. Return true if no breakpoint was found. Change debug
11348 output.
11349 (gdb_no_commands_at_breakpoint): Reimplement.
11350 (run_breakpoint_commands): Rename to ...
11351 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
11352 and change return type to boolean.
11353 (run_breakpoint_commands): New function.
11354 (gdb_breakpoint_here): Also check for Z1 breakpoints.
11355 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
11356 breakpoint. Go through the_target->remove_point instead of
11357 assuming memory breakpoint.
11358 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
11359 software and hardware breakpoints.
11360 (reinsert_raw_breakpoint): Go through the_target->insert_point
11361 instead of assuming memory breakpoint.
11362 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
11363 software and hardware breakpoints.
11364 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
11365 Check both software and hardware breakpoints.
11366 (validate_inserted_breakpoint): Assert the breakpoint is a
11367 software breakpoint. Set the inserted flag to -1 instead of
11368 setting shlib_disabled.
11369 (delete_disabled_breakpoints): Adjust.
11370 (validate_breakpoints): Only validate software breakpoints.
11371 Adjust to inserted flag change.
11372 (check_mem_read, check_mem_write): Skip breakpoint types other
11373 than software breakpoints. Adjust to inserted flag change.
11374 * mem-break.h (enum raw_bkpt_type): New enum.
11375 (raw_breakpoint, struct process_info): Forward declare.
11376 (Z_packet_to_target_hw_bp_type): Delete declaration.
11377 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
11378 (set_gdb_breakpoint, delete_gdb_breakpoint)
11379 (clear_breakpoint_conditions): New declarations.
11380 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
11381 (breakpoint_inserted_here): Update comment.
11382 (add_breakpoint_condition, add_breakpoint_commands): Replace
11383 address parameter with a breakpoint pointer parameter.
11384 (gdb_breakpoint_here): Update comment.
11385 (delete_gdb_breakpoint_at): Delete.
11386 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
11387 * server.c (process_point_options): Take a struct breakpoint
11388 pointer instead of an address. Adjust.
11389 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
11390 delete_gdb_breakpoint.
11391 * spu-low.c (spu_target_ops): Install NULL as
11392 supports_z_point_type method.
11393 * target.h: Include mem-break.h.
11394 (struct target_ops) <prepare_to_access_memory>: Update comment.
11395 <supports_z_point_type>: New field.
11396 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11397 instead of a char. Also take a raw breakpoint pointer.
11398 * win32-arm-low.c (the_low_target): Install NULL as
11399 supports_z_point_type.
11400 * win32-i386-low.c (i386_supports_z_point_type): New function.
11401 (i386_insert_point, i386_remove_point): Adjust to new interface.
11402 (the_low_target): Install i386_supports_z_point_type.
11403 * win32-low.c (win32_supports_z_point_type): New function.
11404 (win32_insert_point, win32_remove_point): Adjust to new interface.
11405 (win32_target_ops): Install win32_supports_z_point_type.
11406 * win32-low.h (struct win32_target_ops):
11407 <supports_z_point_type>: New method.
11408 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
11409 instead of a char. Also take a raw breakpoint pointer.
11410
11411 2014-05-20 Pedro Alves <palves@redhat.com>
11412
11413 * mem-break.h: Include break-common.h.
11414 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11415 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
11416 (Z_packet_to_target_hw_bp_type): New declaration.
11417 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
11418 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
11419 (Z_PACKET_ACCESS_WP): Delete macros.
11420 (Z_packet_to_hw_type): Delete function.
11421 * i386-low.h: Don't include break-common.h here.
11422 (Z_packet_to_hw_type): Delete declaration.
11423 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
11424 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11425 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
11426 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
11427 * linux-aarch64-low.c: Don't include break-common.h here.
11428 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
11429 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
11430 (Z_packet_to_target_hw_bp_type): Delete function.
11431 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
11432 function.
11433 (mips_insert_point, mips_remove_point): Use
11434 Z_packet_to_target_hw_bp_type.
11435
11436 2014-05-20 Pedro Alves <palves@redhat.com>
11437
11438 * linux-aarch64-low.c: Include break-common.h.
11439 (enum target_point_type): Delete.
11440 (Z_packet_to_point_type): Rename to ...
11441 (Z_packet_to_target_hw_bp_type): ... this, and return a
11442 target_hw_bp_type instead.
11443 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
11444 instead of an enum target_point_type.
11445 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
11446 breakpoint type.
11447 (aarch64_dr_state_insert_one_point)
11448 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
11449 (aarch64_handle_aligned_watchpoint)
11450 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
11451 Take an enum target_hw_bp_type instead of an enum
11452 target_point_type.
11453 (aarch64_supports_z_point_type): New function.
11454 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
11455 use Z_packet_to_target_hw_bp_type.
11456
11457 2014-05-20 Joel Brobecker <brobecker@adacore.com>
11458
11459 * configure.ac: Only use -Werror by default when DEVELOPMENT
11460 is true.
11461 * configure: Regenerate.
11462
11463 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11464
11465 Fix gdbserver qGetTLSAddr for x86_64 -m32.
11466 * linux-x86-low.c (X86_64_USER_REGS): New.
11467 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
11468
11469 2014-04-28 Yao Qi <yao@codesourcery.com>
11470
11471 * Makefile.in (i386-avx512.c): Fix the typo of generated file
11472 name.
11473
11474 2014-04-25 Pedro Alves <palves@redhat.com>
11475
11476 PR server/16255
11477 * linux-low.c (linux_attach_fail_reason_string): New function.
11478 (linux_attach_lwp): Delete.
11479 (linux_attach_lwp_1): Rename to ...
11480 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
11481 argument. Remove "initial" parameter. Return int instead of
11482 void. Don't error or warn here.
11483 (linux_attach): Adjust to call linux_attach_lwp. Call error on
11484 failure to attach to the tgid. Call warning when failing to
11485 attach to an lwp.
11486 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
11487 argument. Remove "initial" parameter. Return int instead of
11488 void. Don't error or warn here.
11489 (linux_attach_fail_reason_string): New declaration.
11490 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
11491 interface change. Use linux_attach_fail_reason_string.
11492
11493 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
11494 Walfred Tedeschi <walfred.tedeschi@intel.com>
11495
11496 * Makefile.in: Added rules to handle new files
11497 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
11498 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
11499 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
11500 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
11501 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
11502 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
11503 x32-avx512-linux.o.
11504 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
11505 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
11506 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
11507 i386/x32-avx512.xml.
11508 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
11509 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
11510 i386/x32-avx512-linux.xml.
11511 * i387-fp.c (num_avx512_k_registers): New constant for number
11512 of K registers.
11513 (num_avx512_zmmh_low_registers): New constant for number of
11514 lower ZMM registers (0-15).
11515 (num_avx512_zmmh_high_registers): New constant for number of
11516 higher ZMM registers (16-31).
11517 (num_avx512_ymmh_registers): New contant for number of higher
11518 YMM registers (ymm16-31 added by avx521 on x86_64).
11519 (num_avx512_xmm_registers): New constant for number of higher
11520 XMM registers (xmm16-31 added by AVX512 on x86_64).
11521 (struct i387_xsave): Add space for AVX512 registers.
11522 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
11523 Add code to handle AVX512 registers.
11524 (i387_xsave_to_cache): Add code to handle AVX512 registers.
11525 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
11526 prototypei from generated file.
11527 (tdesc_amd64_avx512_linux): Likewise.
11528 (init_registers_x32_avx512_linux): Likewise.
11529 (tdesc_x32_avx512_linux): Likewise.
11530 (init_registers_i386_avx512_linux): Likewise.
11531 (tdesc_i386_avx512_linux): Likewise.
11532 (x86_64_regmap): Add AVX512 registers.
11533 (x86_linux_read_description): Add code to handle AVX512 XSTATE
11534 mask.
11535 (initialize_low_arch): Add code to initialize AVX512 registers.
11536
11537 2014-04-23 Pedro Alves <palves@redhat.com>
11538
11539 * mem-break.c (find_gdb_breakpoint_at): Make static.
11540 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
11541
11542 2014-04-23 Pedro Alves <palves@redhat.com>
11543
11544 * i386-low.c: Don't include break-common.h here.
11545 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11546 prototype to take target_hw_bp_type as argument instead of a Z
11547 packet char.
11548 * i386-low.h: Include break-common.h here.
11549 (Z_packet_to_hw_type): Declare.
11550 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
11551 prototypes.
11552 * linux-x86-low.c (x86_insert_point): Convert the packet number to
11553 a target_hw_bp_type before calling i386_low_insert_watchpoint.
11554 (x86_remove_point): Convert the packet number to a
11555 target_hw_bp_type before calling i386_low_remove_watchpoint.
11556 * win32-i386-low.c (i386_insert_point): Convert the packet number
11557 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
11558 (i386_remove_point): Convert the packet number to a
11559 target_hw_bp_type before calling i386_low_remove_watchpoint.
11560
11561 2014-04-23 Pedro Alves <palves@redhat.com>
11562
11563 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
11564
11565 2014-04-10 Pedro Alves <palves@redhat.com>
11566
11567 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
11568 Check if the condition or command is NULL before checking if the
11569 breakpoint is known. On success, return true.
11570 * mem-break.h (add_breakpoint_condition): Document return.
11571 (add_breakpoint_commands): Add describing comment.
11572 * server.c (skip_to_semicolon): New function.
11573 (process_point_options): Use it.
11574
11575 2014-04-09 Pedro Alves <palves@redhat.com>
11576
11577 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
11578 to lwpid_of.
11579
11580 2014-02-27 Pedro Alves <palves@redhat.com>
11581
11582 PR 12702
11583 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
11584 macros.
11585 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
11586 output.
11587 (last_thread_of_process_p): Take a PID argument instead of a
11588 thread pointer.
11589 (linux_wait_for_lwp): Delete.
11590 (num_lwps, check_zombie_leaders, not_stopped_callback): New
11591 functions.
11592 (linux_low_filter_event): New function, party factored out from
11593 linux_wait_for_event.
11594 (linux_wait_for_event): Rename to ...
11595 (linux_wait_for_event_filtered): ... this. Add new filter ptid
11596 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
11597 sigsuspend. Check for zombie leaders.
11598 (linux_wait_for_event): Reimplement as wrapper around
11599 linux_wait_for_event_filtered.
11600 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
11601 a normal or signal exit is seen, it's the whole process exiting.
11602 (wait_for_sigstop): No longer a for_each_inferior callback.
11603 Rewrite on top of linux_wait_for_event_filtered.
11604 (stop_all_lwps): Call wait_for_sigstop directly.
11605 * server.c (resume, handle_target_event): Handle
11606 TARGET_WAITKIND_NO_RESUMED.
11607
11608 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11609
11610 * win32-low.c (psapi_get_dll_name,
11611 * win32_CreateToolhelp32Snapshot): Delete.
11612 (win32_CreateToolhelp32Snapshot, win32_Module32First)
11613 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
11614 Delete.
11615 (handle_load_dll): Add function description.
11616 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
11617
11618 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11619
11620 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
11621 Add comment.
11622 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
11623 base address when calling win32_add_one_solib.
11624 (handle_load_dll): Delete local variable load_addr.
11625 Remove 0x1000 offset applied to DLL base address when calling
11626 win32_add_one_solib.
11627 (handle_unload_dll): Add comment.
11628
11629 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11630
11631 * win32-low.c (win32_add_all_dlls): Renames
11632 win32_ensure_ntdll_loaded. Rewrite function documentation.
11633 Adjust implementation to always load all DLLs.
11634 Add 0x1000 offset to DLL base address when calling
11635 win32_add_one_solib.
11636 (child_initialization_done): New static global.
11637 (do_initial_child_stuff): Set child_initialization_done to
11638 zero during child initialization, and 1 after. Replace call
11639 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
11640 Add comment.
11641 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
11642 (handle_unload_dll): Add function documentation.
11643 (get_child_debug_event): Ignore load and unload DLL events
11644 during child initialization.
11645
11646 2014-02-20 Doug Evans <dje@google.com>
11647
11648 Remove global all_lwps.
11649 * inferiors.h (ptid_of): Move here from linux-low.h.
11650 (pid_of, lwpid_of): Ditto.
11651 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
11652 parameter is a struct thread_info * now.
11653 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
11654 directly. Pass &all_threads to find_inferior instead of &all_lwps.
11655 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
11656 directly.
11657 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
11658 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
11659 * linux-arm-low.c (update_registers_callback): Update, "entry"
11660 parameter is a struct thread_info * now.
11661 Fetch lwpid from current_inferior directly.
11662 (arm_insert_point): Pass &all_threads to find_inferior instead of
11663 &all_lwps.
11664 (arm_remove_point): Ditto.
11665 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
11666 (arm_prepare_to_resume): Fetch pid from thread.
11667 (arm_read_description): Fetch lwpid from current_inferior directly.
11668 * linux-low.c (all_lwps): Delete.
11669 (delete_lwp): Delete call to remove_inferior.
11670 (handle_extended_wait): Fetch lwpid from thread.
11671 (add_lwp): Don't set lwp->entry.id. Remove call to
11672 add_inferior_to_list.
11673 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
11674 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
11675 (kill_one_lwp_callback): Ditto.
11676 (linux_kill): Don't dereference NULL pointer.
11677 Fetch ptid,lwpid from thread.
11678 (get_detach_signal): Fetch ptid from thread.
11679 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
11680 Simplify call to regcache_invalidate_thread.
11681 (delete_lwp_callback): Update, "entry" parameter is a
11682 struct thread_info * now. Fetch pid from thread.
11683 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
11684 (status_pending_p_callback): Update, "entry" parameter is a
11685 struct thread_info * now. Fetch ptid from thread.
11686 (find_lwp_pid): Update, "entry" parameter is a
11687 struct thread_info * now.
11688 (linux_wait_for_lwp): Fetch pid from thread.
11689 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
11690 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
11691 (enqueue_one_deferred_signal): Fetch lwpid from thread.
11692 (dequeue_one_deferred_signal): Ditto.
11693 (cancel_breakpoint): Fetch ptid from current_inferior.
11694 (linux_wait_for_event): Pass &all_threads to find_inferior,
11695 not &all_lwps. Fetch ptid, lwpid from thread.
11696 (count_events_callback): Update, "entry" parameter is a
11697 struct thread_info * now.
11698 (select_singlestep_lwp_callback): Ditto.
11699 (select_event_lwp_callback): Ditto.
11700 (cancel_breakpoints_callback): Ditto.
11701 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
11702 not &all_lwps.
11703 (select_event_lwp): Ditto. Fetch ptid from event_thread.
11704 (unsuspend_one_lwp): Update, "entry" parameter is a
11705 struct thread_info * now.
11706 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
11707 not &all_lwps.
11708 (linux_stabilize_threads): Ditto. And for for_each_inferior.
11709 Fetch lwpid from thread, not lwp.
11710 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
11711 Pass &all_threads to find_inferior, not &all_lwps.
11712 (send_sigstop): Fetch lwpid from thread, not lwp.
11713 (send_sigstop_callback): Update, "entry" parameter is a
11714 struct thread_info * now.
11715 (suspend_and_send_sigstop_callback): Ditto.
11716 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
11717 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
11718 struct thread_info * now.
11719 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
11720 from thread, lwp.
11721 (lwp_running): Update, "entry" parameter is a
11722 struct thread_info * now.
11723 (stop_all_lwps): Fetch ptid from thread.
11724 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
11725 (linux_resume_one_lwp): Fetch lwpid from thread.
11726 (linux_set_resume_request): Update, "entry" parameter is a
11727 struct thread_info * now. Fetch pid, lwpid from thread.
11728 (resume_status_pending_p): Update, "entry" parameter is a
11729 struct thread_info * now.
11730 (need_step_over_p): Ditto. Fetch lwpid from thread.
11731 (start_step_over): Fetch lwpid from thread.
11732 (linux_resume_one_thread): Update, "entry" parameter is a
11733 struct thread_info * now. Fetch lwpid from thread.
11734 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
11735 (proceed_one_lwp): Update, "entry" parameter is a
11736 struct thread_info * now. Fetch lwpid from thread.
11737 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
11738 struct thread_info * now.
11739 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
11740 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
11741 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
11742 directly.
11743 (regsets_store_inferior_registers): Ditto.
11744 (fetch_register, store_register): Ditto.
11745 (linux_read_memory, linux_write_memory): Ditto.
11746 (linux_request_interrupt): Ditto.
11747 (linux_read_auxv): Ditto.
11748 (linux_xfer_siginfo): Ditto.
11749 (linux_qxfer_spu): Ditto.
11750 (linux_qxfer_libraries_svr4): Ditto.
11751 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
11752 moved to inferiors.h.
11753 (get_lwp): Delete.
11754 (get_thread_lwp): Update.
11755 (struct lwp_info): Delete member "entry". Simplify comment for
11756 member "thread".
11757 (all_lwps): Delete.
11758 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11759 current_inferior directly.
11760 (update_watch_registers_callback): Update, "entry" parameter is a
11761 struct thread_info * now. Fetch pid from thread.
11762 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11763 (mips_insert_point): Fetch lwpid from current_inferior.
11764 Pass &all_threads to find_inferior, not &all_lwps.
11765 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11766 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11767 directly.
11768 (mips_stopped_data_address): Ditto.
11769 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11770 directly.
11771 * linux-tile-low.c (tile_arch_setup): Ditto.
11772 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11773 (update_debug_registers_callback): Update, "entry" parameter is a
11774 struct thread_info * now. Fetch pid from thread.
11775 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11776 Pass &all_threads to find_inferior, not &all_lwps.
11777 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11778 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11779 Pass &all_threads to find_inferior, not &all_lwps.
11780 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11781 (i386_dr_low_get_status): Ditto.
11782 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11783 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11784 (x86_linux_read_description): Ditto.
11785 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11786
11787 2014-02-20 Doug Evans <dje@google.com>
11788
11789 * inferiors.c (get_first_inferior): Fix buglet.
11790
11791 2014-02-19 Doug Evans <dje@google.com>
11792
11793 * gdbthread.h (add_thread): Change result type to struct thread_info *.
11794 * inferiors.c (add_thread): Change result type to struct thread_info *.
11795 All callers updated.
11796 (add_lwp): Call add_thread here instead of in callers.
11797 All callers updated.
11798 * linux-low.h (get_lwp_thread): Rewrite.
11799 (struct lwp_info): New member "thread".
11800
11801 2014-02-19 Doug Evans <dje@google.com>
11802
11803 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11804 All callers updated.
11805
11806 2014-02-19 Doug Evans <dje@google.com>
11807
11808 * inferiors.c (add_thread): Fix whitespace.
11809
11810 2014-02-19 Doug Evans <dje@google.com>
11811
11812 * dll.c (clear_dlls): Replace accessing list implemention details
11813 with API function.
11814 * gdbthread.h (get_first_thread): Declare.
11815 * inferiors.c (for_each_inferior_with_data): New function.
11816 (get_first_thread): New function.
11817 (find_thread_ptid): Simplify.
11818 (get_first_inferior): New function.
11819 (clear_list): Delete.
11820 (one_inferior_p): New function.
11821 (clear_inferior_list): New function.
11822 (clear_inferiors): Update.
11823 * inferiors.h (for_each_inferior_with_data): Declare.
11824 (clear_inferior_list): Declare.
11825 (one_inferior_p): Declare.
11826 (get_first_inferior): Declare.
11827 * linux-low.c (linux_wait_for_event): Replace accessing list
11828 implemention details with API function.
11829 * server.c (target_running): Ditto.
11830 (accumulate_file_name_length): New function.
11831 (emit_dll_description): New function.
11832 (handle_qxfer_libraries): Replace accessing list implemention
11833 details with API function.
11834 (handle_qxfer_threads_worker): New function.
11835 (handle_qxfer_threads_proper): Replace accessing list implemention
11836 details with API function.
11837 (handle_query): Ditto.
11838 (visit_actioned_threads_callback_ftype): New typedef.
11839 (visit_actioned_threads_data): New struct.
11840 (visit_actioned_threads): Rewrite to be find_inferior callback.
11841 (resume): Call find_inferior.
11842 (handle_status): Replace accessing list implemention
11843 details with API function.
11844 (process_serial_event): Replace accessing list implemention details
11845 with API function.
11846 * target.c (set_desired_inferior): Replace accessing list implemention
11847 details with API function.
11848 * tracepoint.c (same_process_p): New function.
11849 (gdb_agent_about_to_close): Replace accessing list implemention
11850 details with API function.
11851 * win32-low.c (child_delete_thread): Replace accessing list
11852 implemention details with API function.
11853 (match_dll_by_basename): New function.
11854 (dll_is_loaded_by_basename): New function.
11855 (win32_ensure_ntdll_loaded): Replace accessing list implemention
11856 details call to dll_is_loaded_by_basename.
11857
11858 2014-02-19 Doug Evans <dje@google.com>
11859
11860 * dll.h (struct dll_info): Add comment.
11861 * gdbthread.h (struct thread_info): Add comment.
11862 (current_ptid): Simplify.
11863 * inferiors.c (add_process): Update.
11864 (remove_process): Update.
11865 * inferiors.h (struct process_info): Rename member "head" to "entry".
11866 * linux-low.c (delete_lwp): Update.
11867 (add_lwp): Update.
11868 (last_thread_of_process_p): Update.
11869 (kill_one_lwp_callback, linux_kill): Update.
11870 (status_pending_p_callback): Update.
11871 (wait_for_sigstop): Update. Simplify read of ptid.
11872 (start_step_over): Update.
11873 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
11874 (get_lwp_thread): Update.
11875 (struct lwp_info): Rename member "head" to "entry".
11876 * regcache.h (inferior_list_entry): Delete.
11877 * server.c (kill_inferior_callback): Update.
11878 (detach_or_kill_inferior_callback): Update.
11879 (print_started_pid): Update.
11880 (print_attached_pid): Update.
11881 (process_serial_event): Simplify read of ptid.
11882 * thread-db.c (thread_db_create_event): Update.
11883 (thread_db_get_tls_address): Update.
11884 * win32-low.c (current_inferior_ptid): Simplify.
11885
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target.h (struct target_ops) <supports_btrace>: Add target_ops
11889 argument.
11890 (target_supports_btrace): Update.
11891
11892 2014-02-14 Yao Qi <yao@codesourcery.com>
11893
11894 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
11895 (rsp-low-ipa.o): New target.
11896
11897 2014-02-12 Tom Tromey <tromey@redhat.com>
11898
11899 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
11900 convert_ascii_to_int.
11901 * regcache.c (registers_to_string): Likewise.
11902 * remote-utils.c (decode_M_packet): Likewise.
11903 * server.c (process_serial_event): Likewise.
11904
11905 2014-02-12 Tom Tromey <tromey@redhat.com>
11906
11907 * server.c (handle_query, handle_v_run): Use hex2bin, not
11908 unhexify.
11909 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
11910
11911 2014-02-12 Tom Tromey <tromey@redhat.com>
11912
11913 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
11914 convert_int_to_ascii.
11915 * regcache.c (registers_to_string, collect_register_as_string):
11916 Likewise.
11917 * remote-utils.c (look_up_one_symbol, relocate_instruction):
11918 Likewise.
11919 * server.c (process_serial_event): Likewise.
11920 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
11921 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
11922
11923 2014-02-12 Tom Tromey <tromey@redhat.com>
11924
11925 * remote-utils.c (look_up_one_symbol, monitor_output): Use
11926 bin2hex, not hexify.
11927 * tracepoint.c (cmd_qtstatus): Likewise.
11928
11929 2014-02-12 Tom Tromey <tromey@redhat.com>
11930
11931 * remote-utils.c (monitor_output): Pass explicit length to
11932 hexify.
11933
11934 2014-02-12 Tom Tromey <tromey@redhat.com>
11935
11936 * tracepoint.c: Include rsp-low.h.
11937 * server.c: Include rsp-low.h.
11938 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
11939 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
11940 declare.
11941 * remote-utils.c: Include rsp-low.h.
11942 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
11943 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
11944 (convert_int_to_ascii, convert_ascii_to_int): Move to
11945 common/rsp-low.c.
11946 * regcache.c: Include rsp-low.h.
11947 * ax.c: Include rsp-low.h.
11948 * Makefile.in (SFILES): Add common/rsp-low.c.
11949 (OBS): Add rsp-low.o.
11950 (rsp-low.o): New target.
11951
11952 2014-02-12 Tom Tromey <tromey@redhat.com>
11953
11954 * utils.h (pulongest, plongest, phex_nz): Don't declare.
11955 Include print-utils.h.
11956 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11957 (plongest, thirty_two, phex_nz): Remove.
11958 * Makefile.in (SFILES): Add common/print-utils.c.
11959 (OBS): Add print-utils.o.
11960 (print-utils-ipa.o): New target.
11961 (print-utils.o): New target.
11962 (IPA_OBJS): Add print-utils-ipa.o.
11963
11964 2014-02-06 Tom Tromey <tromey@redhat.com>
11965
11966 * Makefile.in (SFILES): Fix indentation.
11967
11968 2014-02-05 Doug Evans <dje@google.com>
11969
11970 * linux-low.c (linux_wait_for_event): Improve comment.
11971 (linux_wait_1): Keep current_inferior in sync with event_child.
11972
11973 2014-01-22 Doug Evans <dje@google.com>
11974
11975 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11976
11977 2014-01-22 Doug Evans <dje@google.com>
11978
11979 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
11980 * configure: Regenerate.
11981 * config.in: Regenerate.
11982 * Makefile.in (SFILES): Add debug.c.
11983 (OBS): Add debug.o.
11984 * debug.c: New file.
11985 * debug.h: New file.
11986 * linux-aarch64-low.c (*): Update all debugging printfs to use
11987 debug_printf instead of fprintf.
11988 * linux-arm-low.c (*): Ditto.
11989 * linux-cris-low.c (*): Ditto.
11990 * linux-crisv32-low.c (*): Ditto.
11991 * linux-m32r-low.c (*): Ditto.
11992 * linux-sparc-low.c (*): Ditto.
11993 * linux-x86.c (*): Ditto.
11994 * linux-low.c (*): Ditto.
11995 (linux_wait_1): Add calls to debug_enter, debug_exit.
11996 (linux_wait): Remove redundant debugging printf.
11997 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11998 (linux_resume, unstop_all_lwps): Ditto.
11999 * mem-break.c (*): Update all debugging printfs to use
12000 debug_printf instead of fprintf.
12001 * remote-utils.c (*): Ditto.
12002 * thread-db.c (*): Ditto.
12003 * server.c #include <ctype.h>, "gdb_vecs.h".
12004 (debug_threads): Moved to debug.c.
12005 (*): Update all debugging printfs to use debug_printf instead of
12006 fprintf.
12007 (start_inferior): Replace call to fflush with call to debug_flush.
12008 (monitor_show_help): Mention set debug-format.
12009 (parse_debug_format_options): New function.
12010 (handle_monitor_command): Handle "monitor set debug-format".
12011 (gdbserver_usage): Mention --debug-format.
12012 (main): Parse --debug-format.
12013 * server.h (debug_threads): Declaration moved to debug.h.
12014 #include "debug.h".
12015 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12016 trace_debug_1 that uses debug_printf.
12017 (tracepoint_look_up_symbols): Update all debugging printfs to use
12018 debug_printf instead of fprintf.
12019
12020 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12021
12022 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12023 sys/ptrace.h.
12024
12025 2014-01-17 Pedro Alves <palves@redhat.com>
12026
12027 PR build/16445
12028 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12029 defined after including gdb_proc_service.h.
12030
12031 2014-01-16 Doug Evans <dje@google.com>
12032
12033 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12034 (match_dll): Use it.
12035
12036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12037
12038 * target.h (target_ops) <read_btrace>: Change parameters and
12039 return type to allow error reporting.
12040 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12041 trace reading errors on.
12042 * linux-low.c (linux_low_read_btrace): Pass trace reading
12043 errors on.
12044 (linux_low_disable_btrace): New.
12045
12046 2014-01-15 Doug Evans <dje@google.com>
12047
12048 * inferiors.c (thread_id_to_gdb_id): Delete.
12049 * inferiors.h (thread_id_to_gdb_id): Delete.
12050
12051 2014-01-13 Eli Zaretskii <eliz@gnu.org>
12052
12053 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12054 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12055 versions.
12056
12057 2014-01-08 Pedro Alves <palves@redhat.com>
12058
12059 * server.c (handle_status): Don't discard previous queued stop
12060 replies or thread's pending status here.
12061 (main) <disconnection>: Do it here instead.
12062
12063 2014-01-08 Pedro Alves <palves@redhat.com>
12064
12065 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12066 * server.c (visit_actioned_threads, handle_pending_status): New
12067 function.
12068 (handle_v_cont): Factor out parts to ...
12069 (resume): ... this new function. If in all-stop, and a thread
12070 being resumed has a pending status, report it without actually
12071 resuming.
12072 (myresume): Adjust to use the new 'resume' function.
12073 (clear_pending_status_callback, set_pending_status_callback)
12074 (find_status_pending_thread_callback): New functions.
12075 (handle_status): Handle the case of multiple threads having
12076 interesting statuses to report. Report threads' real last signal
12077 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12078 with an interesting thread to report the status for, instead of
12079 always reporting the status of the first thread.
12080
12081 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12082
12083 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12084 * gdbreplay.c (gdbreplay_version): Likewise.
12085
12086 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12087
12088 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12089 iov.iov_len with the real length in use.
12090
12091 2013-12-13 Joel Brobecker <brobecker@adacore.com>
12092
12093 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12094 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12095 for all targets that use win32-low.c.
12096 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12097 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12098
12099 2013-12-13 Pedro Alves <palves@redhat.com>
12100
12101 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12102 if equal to TARGET_WAITKIND_LOADED.
12103 * win32-low.c (cached_status): New static global.
12104 (win32_wait): Add declaration.
12105 (do_initial_child_stuff): Flush all initial pending debug events
12106 up to the initial breakpoint.
12107 (win32_wait): If CACHED_STATUS was set, return that instead
12108 of doing a real wait. Remove the code resuming the execution
12109 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12110 during the initial phase. Also remove the code changing
12111 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12112 TARGET_WAITKIND_STOPPED.
12113
12114 2013-12-11 Yao Qi <yao@codesourcery.com>
12115
12116 * notif.c (handle_notif_ack): Return 0 if no notification
12117 matches.
12118
12119 2013-11-20 Doug Evans <dje@google.com>
12120
12121 * linux-low.c (linux_set_resume_request): Fix comment.
12122
12123 2013-11-20 Doug Evans <dje@google.com>
12124
12125 * linux-low.c (resume_status_pending_p): Tweak comment.
12126
12127 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12128
12129 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12130 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12131 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12132 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12133 (srv_amd64_regobj): Add amd64-mpx.o.
12134 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12135 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12136 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12137 * i387-fp.c (num_pl_bnd_register) Added constant.
12138 (num_pl_bnd_cfg_registers) Added constant.
12139 (struct i387_xsave) Added reserved area and MPX fields.
12140 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12141 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12142 function.
12143 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12144 (init_registers_amd64_mpx_linux): Declare new function.
12145 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12146 (x86_64_regmap): Add MPX registers.
12147 (x86_linux_read_description): Add MPX case.
12148 (initialize_low_arch): Initialize MPX targets.
12149
12150 2013-11-18 Tom Tromey <tromey@redhat.com>
12151
12152 * configure: Rebuild.
12153 * configure.ac: Don't check for stdlib.h.
12154 * gdbreplay.c: Unconditionally include stdlib.h.
12155
12156 2013-11-18 Tom Tromey <tromey@redhat.com>
12157
12158 * config.in: Rebuild.
12159 * configure: Rebuild.
12160 * configure.ac: Don't use AC_HEADER_DIRENT.
12161
12162 2013-11-18 Tom Tromey <tromey@redhat.com>
12163
12164 * server.h: Don't check HAVE_STRING_H.
12165 * gdbreplay.c: Don't check HAVE_STRING_H.
12166 * configure: Rebuild.
12167
12168 2013-11-18 Tom Tromey <tromey@redhat.com>
12169
12170 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12171 LIBGNU.
12172
12173 2013-11-08 Tom Tromey <tromey@redhat.com>
12174
12175 * configure, config.in: Rebuild.
12176 * configure.ac: Remove unused configury.
12177
12178 2013-11-08 Tom Tromey <tromey@redhat.com>
12179
12180 * acinclude.m4: Include common.m4, codeset.m4.
12181 * configure, config.in: Rebuild.
12182 * configure.ac: Use GDB_AC_COMMON.
12183
12184 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12185
12186 * linux-s390-low.c (HWCAP_S390_TE): New define.
12187 (s390_arch_setup): Consider the TE field in the HWCAP for
12188 determining 'have_regset_tdb'.
12189
12190 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12191
12192 PR gdb/16014
12193 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12194 call to sizeof.
12195
12196 2013-10-02 Pedro Alves <palves@redhat.com>
12197
12198 * server.c (process_serial_event): Don't output "GDBserver
12199 exiting" if GDB is connected through stdio.
12200 * target.c (mywait): Likewise, be silent if GDB is connected
12201 through stdio.
12202
12203 2013-10-01 Joel Brobecker <brobecker@adacore.com>
12204
12205 * lynx-low.c (lynx_add_threads_after_attach): New function.
12206 (lynx_attach): Remove call to add_thread. Add call to
12207 lynx_add_threads_after_attach instead.
12208
12209 2013-09-28 Mike Frysinger <vapier@gentoo.org>
12210
12211 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12212 * config.in, configure: Regenerated.
12213
12214 2013-09-18 Yao Qi <yao@codesourcery.com>
12215
12216 PR server/15959
12217 * server.c (start_inferior): Clear 'resume_info'.
12218
12219 2013-09-16 Jiong Wang <jiwang@tilera.com>
12220
12221 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12222 for each register.
12223
12224 2013-09-16 Jiong Wang <jiwang@tilera.com>
12225
12226 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12227 linux-tile-low.o to srv_tgtobj.
12228
12229 2013-09-16 Will Newton <will.newton@linaro.org>
12230
12231 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12232 out regs.
12233
12234 2013-09-06 Pedro Alves <palves@redhat.com>
12235
12236 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12237 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12238 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12239 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12240 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12241 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12242
12243 2013-09-06 Pedro Alves <palves@redhat.com>
12244
12245 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12246 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12247
12248 2013-09-06 Pedro Alves <palves@redhat.com>
12249
12250 * linux-amd64-ipa.c: Include tracepoint.h.
12251 * linux-i386-ipa.c: Include tracepoint.h.
12252
12253 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12254
12255 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12256 (ps_get_thread_area): New function.
12257
12258 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12259
12260 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12261 (initialize_low_arch): Call init_registers_crisv32 rather than
12262 init_register_crisv32.
12263
12264 2013-09-05 Pedro Alves <palves@redhat.com>
12265
12266 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12267 to ...
12268 * hostio.h: ... this new file.
12269 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12270 win32-low.c: Include hostio.h.
12271
12272 2013-09-05 Pedro Alves <palves@redhat.com>
12273
12274 * server.h (gdb_client_data, handler_func, callback_handler_func)
12275 (delete_file_handler, add_file_handler, append_callback_event)
12276 (delete_callback_event, start_event_loop, initialize_event_loop):
12277 Move to event-loop.h and include it.
12278 * event-loop.h: New file.
12279
12280 2013-09-05 Pedro Alves <palves@redhat.com>
12281
12282 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12283 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12284 (loaded_dll, unloaded_dll): Move to ...
12285 * dll.h: ... this new file.
12286 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12287
12288 2013-09-05 Pedro Alves <palves@redhat.com>
12289
12290 * server.h (current_process, get_thread_process, all_processes)
12291 (add_inferior_to_list, for_each_inferior, current_inferior)
12292 (remove_inferior, add_process, remove_process, find_process_pid)
12293 (have_started_inferiors_p, have_attached_inferiors_p)
12294 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12295 (clear_inferiors, find_inferior, find_inferior_id)
12296 (inferior_target_data, set_inferior_target_data)
12297 (inferior_regcache_data, set_inferior_regcache_data): Move to
12298 inferiors.h, and include it.
12299 * inferiors.h: New file.
12300
12301 2013-09-05 Pedro Alves <palves@redhat.com>
12302
12303 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12304 Move ...
12305 * ax.h: ... here.
12306
12307 2013-09-05 Pedro Alves <palves@redhat.com>
12308
12309 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12310 tracepoint.h.
12311 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12312 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12313 (handle_tracepoint_general_set, handle_tracepoint_query)
12314 (tracepoint_finished_step, tracepoint_was_hit)
12315 (release_while_stepping_state_list, current_traceframe)
12316 (in_readonly_region, traceframe_read_mem)
12317 (fetch_traceframe_registers, traceframe_read_sdata)
12318 (traceframe_read_info, struct fast_tpoint_collect_status)
12319 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12320 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12321 (supply_fast_tracepoint_registers)
12322 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12323 (ipa_tdesc, claim_trampoline_space)
12324 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12325 (agent_mem_read, agent_get_trace_state_variable_value)
12326 (agent_set_trace_state_variable_value, agent_tsv_read)
12327 (agent_mem_read_string, get_raw_reg_func_addr)
12328 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12329 * tracepoint.h: ... this new file.
12330
12331 2013-09-05 Pedro Alves <palves@redhat.com>
12332
12333 * server.h (perror_with_name, error, fatal, warning, paddress)
12334 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12335 include it.
12336 * utils.h: New file.
12337
12338 2013-09-05 Pedro Alves <palves@redhat.com>
12339
12340 * server.h (remote_debug, noack_mode, transport_is_reliable)
12341 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12342 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12343 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
12344 (write_enn, initialize_async_io, enable_async_io)
12345 (disable_async_io, check_remote_input_interrupt_request)
12346 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
12347 (dead_thread_notify, prepare_resume_reply)
12348 (decode_address_to_semicolon, decode_address, decode_m_packet)
12349 (decode_M_packet, decode_X_packet, decode_xfer_write)
12350 (decode_search_memory_packet, unhexify, hexify)
12351 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
12352 (look_up_one_symbol, relocate_instruction)
12353 (monitor_output): Move to remote-utils.h, and include it.
12354 * remote-utils.h: New file.
12355
12356 2013-09-05 Pedro Alves <palves@redhat.com>
12357
12358 * server.h (_): Delete.
12359
12360 2013-09-02 Pedro Alves <palves@redhat.com>
12361
12362 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
12363 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
12364 allocated.
12365 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
12366
12367 2013-09-02 Pierre Muller <muller@sourceware.org>
12368
12369 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
12370 or WriteProcessMemory complete successfully and handle
12371 ERROR_PARTIAL_COPY error.
12372
12373 2013-09-02 Pedro Alves <palves@redhat.com>
12374
12375 * server.c (gdb_read_memory): Return -1 on traceframe memory read
12376 error instead of EIO.
12377
12378 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12379
12380 PR server/15604
12381 * linux-low.c: Include filestuff.h.
12382 (linux_create_inferior) <pid == 0>: Call close_most_fds.
12383 * lynx-low.c: Include filestuff.h.
12384 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
12385 * server.c: Include filestuff.h.
12386 (main): Call notice_open_fds.
12387 * spu-low.c: Include filestuff.h.
12388 (spu_create_inferior) <pid == 0>: Call close_most_fds.
12389
12390 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
12391
12392 * Makefile.in: Explain why ../target and ../nat are not
12393 listed as include file search paths.
12394 (linux-waitpid.o): New object file rule.
12395 * configure.srv (srv_native_linux_obj): New variable.
12396 Replace all occurrences of linux native object files with
12397 $srv_native_linux_obj.
12398 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
12399 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
12400 (linux_enable_event_reporting): Remove declaration.
12401 (my_waitpid): Moved to common/linux-waitpid.c.
12402 (linux_wait_for_event): Pass ptid when calling
12403 linux_enable_event_reporting.
12404 (linux_supports_tracefork_flag): Remove.
12405 (linux_enable_event_reporting): Likewise.
12406 (linux_tracefork_grandchild): Remove.
12407 (STACK_SIZE): Moved to common/linux-ptrace.c.
12408 (linux_tracefork_child): Remove.
12409 (linux_test_for_tracefork): Remove.
12410 (linux_look_up_symbols): Call linux_supports_traceclone.
12411 (initialize_low): Remove call to linux_test_for_tracefork.
12412 * linux-low.h (PTRACE_TYPE_ARG3): Move to
12413 common/linux-ptrace.h.
12414 (PTRACE_TYPE_ARG4): Likewise.
12415 Include linux-ptrace.h.
12416
12417 2013-08-21 Pedro Alves <palves@redhat.com>
12418
12419 * config.in: Renegerate.
12420
12421 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
12422
12423 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
12424 (SFILES): Remove $(srcdir)/common/target-common.c and
12425 add $(srcdir)/target/waitstatus.c.
12426 (OBS): Remove target-common.o and add waitstatus.o.
12427 (server_h): Remove $(srcdir)/../common/target-common.h and
12428 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
12429 and $(srcdir)/../target/waitstatus.h.
12430 (target-common.o): Remove.
12431 (waitstatus.o): New target object file.
12432 * target.h: Do not include target-common.h and
12433 include target/resume.h, target/wait.h and
12434 target/waitstatus.h.
12435
12436 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
12437
12438 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12439 to PTRACE_TYPE_ARG3.
12440 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
12441 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
12442 PTRACE_TYPE_ARG4.
12443 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
12444 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
12445
12446 2013-07-27 Jie Zhang <jie@codesourcery.com>
12447 Daniel Jacobowitz <dan@codesourcery.com>
12448 Yao Qi <yao@codesourcery.com>
12449
12450 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
12451 (mips-linux-watch.o): New rule.
12452 (mips_linux_watch_h): New variable.
12453 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
12454 srv_tgtobj.
12455 * linux-mips-low.c: Include mips-linux-watch.h.
12456 (struct arch_process_info, struct arch_lwp_info): New.
12457 (update_watch_registers_callback): New function.
12458 (mips_linux_new_process, mips_linux_new_thread) New functions.
12459 (mips_linux_prepare_to_resume, mips_insert_point): New
12460 functions.
12461 (mips_remove_point, mips_stopped_by_watchpoint): New
12462 functions.
12463 (rsp_bp_type_to_target_hw_bp_type): New function.
12464 (mips_stopped_data_address): New function.
12465 (the_low_target): Add watchpoint support functions.
12466
12467 2013-07-27 Yao Qi <yao@codesourcery.com>
12468
12469 * i386-low.c: Include break-common.h.
12470 (enum target_hw_bp_type): Remove.
12471
12472 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
12473
12474 * Makefile.in (SFILES): /common/target-common.c.
12475 (OBS): Add target-common.o.
12476 (server_h): Add $(srcdir)/../common/target-common.h.
12477 (target-common.o): New target.
12478 * server.c (queue_stop_reply_callback): Free
12479 status string after use.
12480 * target.c (target_waitstatus_to_string): Remove.
12481 * target.h: Include target-common.h.
12482 (resume_kind): Likewise.
12483 (target_waitkind): Likewise.
12484 (target_waitstatus): Likewise.
12485 (TARGET_WNOHANG): Likewise.
12486
12487 2013-07-04 Yao Qi <yao@codesourcery.com>
12488
12489 * Makefile.in (host_alias): Use @host_noncanonical@.
12490 (target_alias): Use @target_noncanonical@.
12491 * configure.ac: Use ACX_NONCANONICAL_TARGET and
12492 ACX_NONCANONICAL_HOST.
12493 * configure: Regenerated.
12494
12495 Revert:
12496 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12497
12498 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12499 * configure: Rebuild.
12500 * Makefile.in (version_host, version_target): Get from configure.
12501 (version.c): Use $(version_host) and $(version_target).
12502
12503 2013-07-03 Pedro Alves <palves@redhat.com>
12504
12505 * Makefile.in (config.status): Depend on development.sh.
12506 * acinclude.m4: Include libmcheck.m4.
12507 * configure: Regenerate.
12508
12509 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12510
12511 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
12512 attribute inside the parentheses.
12513 (winapi_DebugSetProcessKillOnExit): Ditto.
12514 (winapi_DebugBreakProcess): Ditto.
12515 (winapi_GenerateConsoleCtrlEvent): Ditto.
12516
12517 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
12518
12519 * notif.h (notif_event): Add a dummy member to avoid compiler
12520 errors.
12521
12522 2013-07-01 Pedro Alves <palves@redhat.com>
12523
12524 * hostio.c (HOSTIO_PATH_MAX): Define.
12525 (require_filename, handle_open, handle_unlink, handle_readlink):
12526 Use it.
12527
12528 2013-07-01 Pedro Alves <palves@redhat.com>
12529
12530 * server.h: Include "pathmax.h".
12531 * linux-low.c: Don't include sys/param.h.
12532 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
12533 MAXPATHLEN.
12534 * win32-low.c: Don't include sys/param.h.
12535 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
12536
12537 2013-07-01 Pedro Alves <palves@redhat.com>
12538
12539 * event-loop.c: Don't check HAVE_UNISTD_H before including
12540 <unistd.h>.
12541 * gdbreplay.c: Likewise.
12542 * remote-utils.c: Likewise.
12543 * server.c: Likewise.
12544 * configure.ac: Don't check for unistd.h.
12545 * configure: Regenerate.
12546
12547 2013-06-28 Tom Tromey <tromey@redhat.com>
12548
12549 * Makefile.in (version.c): Use version.in, not
12550 common/version.in.
12551
12552 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
12553
12554 * configure.ac (version_host, version_target): Set and AC_SUBST them.
12555 * configure: Rebuild.
12556 * Makefile.in (version_host, version_target): Get from configure.
12557 (version.c): Use $(version_host) and $(version_target).
12558
12559 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12560
12561 Fix trace-status to output user name without trailing colon.
12562 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
12563
12564 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
12565
12566 Fix trace-status to output proper start-time and stop-time.
12567 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
12568 output start time and stop time in hex as gdb expects.
12569
12570 2013-06-26 Pedro Alves <pedro@codesourcery.com>
12571
12572 * tracepoint.c (build_traceframe_info_xml): Output trace state
12573 variables present in the trace buffer.
12574
12575 2013-06-24 Tom Tromey <tromey@redhat.com>
12576
12577 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
12578 create-version.sh.
12579 (version.o): Remove.
12580 * gdbreplay.c: Include version.h.
12581 (version, host_name): Don't declare.
12582 * server.h: Include version.h.
12583 (version, host_name): Don't declare.
12584
12585 2013-06-12 Pedro Alves <palves@redhat.com>
12586
12587 * linux-x86-low.c (linux_is_elf64): Delete global.
12588 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
12589 with local linux_pid_exe_is_elf_64_file use.
12590
12591 2013-06-11 Pedro Alves <palves@redhat.com>
12592
12593 * linux-low.c (regset_disabled, disable_regset): New functions.
12594 (regsets_fetch_inferior_registers)
12595 (regsets_store_inferior_registers): Use them.
12596 (initialize_regsets_info); Don't allocate the disabled_regsets
12597 array here.
12598 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
12599 comment.
12600
12601 2013-06-11 Pedro Alves <palves@redhat.com>
12602
12603 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
12604 xmalloc.
12605
12606 2013-06-11 Pedro Alves <palves@redhat.com>
12607
12608 * linux-x86-low.c (initialize_low_arch): Call
12609 init_registers_x32_avx_linux.
12610
12611 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12612
12613 Fix compatibility with Android Bionic.
12614 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
12615 it is not empty.
12616
12617 2013-06-07 Pedro Alves <palves@redhat.com>
12618
12619 PR server/14823
12620 * Makefile.in (OBS): Add tdesc.o.
12621 (IPA_OBJS): Add tdesc-ipa.o.
12622 (tdesc-ipa.o): New rule.
12623 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
12624 interface.
12625 * linux-low.c (new_inferior): Delete.
12626 (disabled_regsets, num_regsets): Delete.
12627 (linux_add_process): Adjust to set the new per-process
12628 new_inferior flag.
12629 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
12630 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
12631 was a stop. When calling arch_setup, switch the current inferior
12632 to the thread that got an event.
12633 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
12634 (regsets_fetch_inferior_registers)
12635 (regsets_store_inferior_registers): New regsets_info parameter.
12636 Adjust to use it.
12637 (linux_register_in_regsets): New regs_info parameter. Adjust to
12638 use it.
12639 (register_addr, fetch_register, store_register): New usrregs_info
12640 parameter. Adjust to use it.
12641 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
12642 parameter regs_info. Adjust to use it.
12643 (linux_fetch_registers): Get the current inferior's regs_info, and
12644 adjust to use it.
12645 (linux_store_registers): Ditto.
12646 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
12647 (initialize_low): Don't initialize the target_regsets here. Call
12648 initialize_low_arch.
12649 * linux-low.h (target_regsets): Delete declaration.
12650 (struct regsets_info): New.
12651 (struct usrregs_info): New.
12652 (struct regs_info): New.
12653 (struct process_info_private) <new_inferior>: New field.
12654 (struct linux_target_ops): Delete the num_regs, regmap, and
12655 regset_bitmap fields. New field regs_info.
12656 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
12657 * i387-fp.c (num_xmm_registers): Delete.
12658 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
12659 calls to new interface.
12660 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
12661 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
12662 Infer the number of xmm registers from the regcache's target
12663 description.
12664 * i387-fp.h (num_xmm_registers): Delete.
12665 * inferiors.c (add_thread): Don't install the thread's regcache
12666 here.
12667 * proc-service.c (gregset_info): Fetch the current inferior's
12668 regs_info. Adjust to use it.
12669 * regcache.c: Include tdesc.h.
12670 (register_bytes, reg_defs, num_registers)
12671 (gdbserver_expedite_regs): Delete.
12672 (get_thread_regcache): If the thread doesn't have a regcache yet,
12673 create one, instead of aborting gdbserver.
12674 (regcache_invalidate_one): Rename to ...
12675 (regcache_invalidate_thread): ... this.
12676 (regcache_invalidate_one): New.
12677 (regcache_invalidate): Only invalidate registers of the current
12678 process.
12679 (init_register_cache): Add target_desc parameter, and use it.
12680 (new_register_cache): Ditto. Assert the target description has a
12681 non zero registers_size.
12682 (regcache_cpy): Add assertions. Adjust.
12683 (realloc_register_cache, set_register_cache): Delete.
12684 (registers_to_string, registers_from_string): Adjust.
12685 (find_register_by_name, find_regno, find_register_by_number)
12686 (register_cache_size): Add target_desc parameter, and use it.
12687 (free_register_cache_thread, free_register_cache_thread_one)
12688 (regcache_release, register_cache_size): New.
12689 (register_size): Add target_desc parameter, and use it.
12690 (register_data, supply_register, supply_register_zeroed)
12691 (supply_regblock, supply_register_by_name, collect_register)
12692 (collect_register_as_string, collect_register_by_name): Adjust.
12693 * regcache.h (struct target_desc): Forward declare.
12694 (struct regcache) <tdesc>: New field.
12695 (init_register_cache, new_register_cache): Add target_desc
12696 parameter.
12697 (regcache_invalidate_thread): Declare.
12698 (regcache_invalidate_one): Delete declaration.
12699 (regcache_release): Declare.
12700 (find_register_by_number, register_cache_size, register_size)
12701 (find_regno): Add target_desc parameter.
12702 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
12703 declarations.
12704 * remote-utils.c: Include tdesc.h.
12705 (outreg, prepare_resume_reply): Adjust.
12706 * server.c: Include tdesc.h.
12707 (gdbserver_xmltarget): Delete declaration.
12708 (get_features_xml, process_serial_event): Adjust.
12709 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
12710 declare.
12711 (struct process_info) <tdesc>: New field.
12712 (ipa_tdesc): Declare.
12713 * tdesc.c: New file.
12714 * tdesc.h: New file.
12715 * tracepoint.c: Include tdesc.h.
12716 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
12717 (get_context_regcache): Adjust to pass ipa_tdesc down.
12718 (do_action_at_tracepoint): Adjust to get the register cache size
12719 from the context regcache's description.
12720 (traceframe_walk_blocks): Adjust to get the register cache size
12721 from the current trace frame's description.
12722 (traceframe_get_pc): Adjust to get current trace frame's
12723 description and pass it down.
12724 (gdb_collect): Adjust to get the register cache size from the
12725 IPA's description.
12726 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
12727 (gdbserver_xmltarget): Delete.
12728 (initialize_low_tracepoint): Set the ipa's target description.
12729 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
12730 (initialize_low_tracepoint): Set the ipa's target description.
12731 * linux-x86-low.c: Include tdesc.h.
12732 [__x86_64__] (is_64bit_tdesc): New.
12733 (ps_get_thread_area, x86_get_thread_area): Use it.
12734 (i386_cannot_store_register): Rename to ...
12735 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
12736 (i386_cannot_fetch_register): Rename to ...
12737 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
12738 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
12739 to new interface.
12740 (target_regsets): Rename to ...
12741 (x86_regsets): ... this.
12742 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
12743 interface.
12744 (x86_siginfo_fixup): Use is_64bit_tdesc.
12745 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
12746 (tdesc_x32_avx_linux, tdesc_x32_linux)
12747 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
12748 Declare.
12749 (x86_linux_update_xmltarget): Delete.
12750 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
12751 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
12752 (AMD64_LINUX_USER64_CS): New.
12753 (x86_linux_read_description): New, based on
12754 x86_linux_update_xmltarget.
12755 (same_process_callback): New.
12756 (x86_arch_setup_process_callback): New.
12757 (x86_linux_update_xmltarget): New.
12758 (x86_regsets_info): New.
12759 (amd64_linux_regs_info): New.
12760 (i386_linux_usrregs_info): New.
12761 (i386_linux_regs_info): New.
12762 (x86_linux_regs_info): New.
12763 (x86_arch_setup): Reimplement.
12764 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12765 (x86_emit_ops): Ditto.
12766 (the_low_target): Adjust. Install x86_linux_regs_info,
12767 x86_cannot_fetch_register, and x86_cannot_store_register.
12768 (initialize_low_arch): New.
12769 * linux-ia64-low.c (tdesc_ia64): Declare.
12770 (ia64_fetch_register): Adjust.
12771 (ia64_usrregs_info, regs_info): New globals.
12772 (ia64_regs_info): New function.
12773 (the_low_target): Adjust.
12774 (initialize_low_arch): New function.
12775 * linux-sparc-low.c (tdesc_sparc64): Declare.
12776 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12777 Adjust.
12778 (sparc_arch_setup): New function.
12779 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12780 (the_low_target): Adjust.
12781 (initialize_low_arch): New function.
12782 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12783 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12784 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12785 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12786 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12787 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12788 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12789 (tdesc_powerpc_isa205_vsx64l): Declare.
12790 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12791 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
12792 (ppc_set_pc, ppc_get_hwcap): Adjust.
12793 (ppc_usrregs_info): Forward declare.
12794 (!__powerpc64__) ppc_regmap_adjusted: New global.
12795 (ppc_arch_setup): Adjust to the current process'es target
12796 description.
12797 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
12798 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
12799 (ppc_store_evrregset): Adjust.
12800 (target_regsets): Rename to ...
12801 (ppc_regsets): ... this, and make static.
12802 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
12803 (ppc_regs_info): New function.
12804 (the_low_target): Adjust.
12805 (initialize_low_arch): New function.
12806 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
12807 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
12808 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
12809 (tdesc_s390x_linux64v2): Declare.
12810 (s390_collect_ptrace_register, s390_supply_ptrace_register)
12811 (s390_fill_gregset, s390_store_last_break): Adjust.
12812 (target_regsets): Rename to ...
12813 (s390_regsets): ... this, and make static.
12814 (s390_get_pc, s390_set_pc): Adjust.
12815 (s390_get_hwcap): New target_desc parameter, and use it.
12816 [__s390x__] (have_hwcap_s390_high_gprs): New global.
12817 (s390_arch_setup): Adjust to set the current process'es target
12818 description. Don't adjust the regmap.
12819 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
12820 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
12821 (regs_info_3264): New globals.
12822 (s390_regs_info): New function.
12823 (the_low_target): Adjust.
12824 (initialize_low_arch): New function.
12825 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
12826 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
12827 [__mips64] (init_registers_mips_linux)
12828 (init_registers_mips_dsp_linux): Delete defines.
12829 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
12830 (have_dsp): New global.
12831 (mips_read_description): New, based on mips_arch_setup.
12832 (mips_arch_setup): Reimplement.
12833 (get_usrregs_info): New function.
12834 (mips_cannot_fetch_register, mips_cannot_store_register)
12835 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
12836 (mips_fill_fpregset, mips_store_fpregset): Adjust.
12837 (target_regsets): Rename to ...
12838 (mips_regsets): ... this, and make static.
12839 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
12840 (dsp_regs_info, regs_info): New globals.
12841 (mips_regs_info): New function.
12842 (the_low_target): Adjust.
12843 (initialize_low_arch): New function.
12844 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
12845 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
12846 Declare.
12847 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
12848 (arm_read_description): New, with bits factored from
12849 arm_arch_setup.
12850 (arm_arch_setup): Reimplement.
12851 (target_regsets): Rename to ...
12852 (arm_regsets): ... this, and make static.
12853 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
12854 (arm_regs_info): New function.
12855 (the_low_target): Adjust.
12856 (initialize_low_arch): New function.
12857 * linux-m68k-low.c (tdesc_m68k): Declare.
12858 (target_regsets): Rename to ...
12859 (m68k_regsets): ... this, and make static.
12860 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
12861 (m68k_regs_info): New function.
12862 (m68k_arch_setup): New function.
12863 (the_low_target): Adjust.
12864 (initialize_low_arch): New function.
12865 * linux-sh-low.c (tdesc_sharch): Declare.
12866 (target_regsets): Rename to ...
12867 (sh_regsets): ... this, and make static.
12868 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
12869 (sh_regs_info, sh_arch_setup): New functions.
12870 (the_low_target): Adjust.
12871 (initialize_low_arch): New function.
12872 * linux-bfin-low.c (tdesc_bfin): Declare.
12873 (bfin_arch_setup): New function.
12874 (bfin_usrregs_info, regs_info): New globals.
12875 (bfin_regs_info): New function.
12876 (the_low_target): Adjust.
12877 (initialize_low_arch): New function.
12878 * linux-cris-low.c (tdesc_cris): Declare.
12879 (cris_arch_setup): New function.
12880 (cris_usrregs_info, regs_info): New globals.
12881 (cris_regs_info): New function.
12882 (the_low_target): Adjust.
12883 (initialize_low_arch): New function.
12884 * linux-cris-low.c (tdesc_crisv32): Declare.
12885 (cris_arch_setup): New function.
12886 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
12887 (cris_regs_info): New function.
12888 (the_low_target): Adjust.
12889 (initialize_low_arch): New function.
12890 * linux-m32r-low.c (tdesc_m32r): Declare.
12891 (m32r_arch_setup): New function.
12892 (m32r_usrregs_info, regs_info): New globals.
12893 (m32r_regs_info): Adjust.
12894 (initialize_low_arch): New function.
12895 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
12896 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
12897 (tic6x_usrregs_info): Forward declare.
12898 (tic6x_read_description): New function, based on ...
12899 (tic6x_arch_setup): ... this. Reimplement.
12900 (target_regsets): Rename to ...
12901 (tic6x_regsets): ... this, and make static.
12902 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
12903 (tic6x_regs_info): New function.
12904 (the_low_target): Adjust.
12905 (initialize_low_arch): New function.
12906 * linux-xtensa-low.c (tdesc_xtensa): Declare.
12907 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
12908 (target_regsets): Rename to ...
12909 (xtensa_regsets): ... this, and make static.
12910 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
12911 globals.
12912 (xtensa_arch_setup, xtensa_regs_info): New functions.
12913 (the_low_target): Adjust.
12914 (initialize_low_arch): New function.
12915 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
12916 (nios2_arch_setup): Set the current process'es tdesc.
12917 (target_regsets): Rename to ...
12918 (nios2_regsets): ... this.
12919 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
12920 (nios2_regs_info): New function.
12921 (the_low_target): Adjust.
12922 (initialize_low_arch): New function.
12923 * linux-aarch64-low.c (tdesc_aarch64): Declare.
12924 (aarch64_arch_setup): Set the current process'es tdesc.
12925 (target_regsets): Rename to ...
12926 (aarch64_regsets): ... this.
12927 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
12928 (aarch64_regs_info): New function.
12929 (the_low_target): Adjust.
12930 (initialize_low_arch): New function.
12931 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
12932 globals.
12933 (target_regsets): Rename to ...
12934 (tile_regsets): ... this.
12935 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
12936 (tile_regs_info): New function.
12937 (tile_arch_setup): Set the current process'es tdesc.
12938 (the_low_target): Adjust.
12939 (initialize_low_arch): New function.
12940 * spu-low.c (tdesc_spu): Declare.
12941 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
12942 * win32-arm-low.c (tdesc_arm): Declare.
12943 (arm_arch_setup): New function.
12944 (the_low_target): Install arm_arch_setup instead of
12945 init_registers_arm.
12946 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
12947 (init_windows_x86): Rename to ...
12948 (i386_arch_setup): ... this. Set `win32_tdesc'.
12949 (the_low_target): Adjust.
12950 * win32-low.c (win32_tdesc): New global.
12951 (child_add_thread): Don't create the thread cache here.
12952 (do_initial_child_stuff): Set the new process'es tdesc.
12953 * win32-low.h (struct target_desc): Forward declare.
12954 (win32_tdesc): Declare.
12955 * lynx-i386-low.c (tdesc_i386): Declare global.
12956 (lynx_i386_arch_setup): Set `lynx_tdesc'.
12957 * lynx-low.c (lynx_tdesc): New global.
12958 (lynx_add_process): Set the new process'es tdesc.
12959 * lynx-low.h (struct target_desc): Forward declare.
12960 (lynx_tdesc): Declare global.
12961 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
12962 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
12963 * nto-low.c (nto_tdesc): New global.
12964 (do_attach): Set the new process'es tdesc.
12965 * nto-low.h (struct target_desc): Forward declare.
12966 (nto_tdesc): Declare.
12967 * nto-x86-low.c (tdesc_i386): Declare.
12968 (nto_x86_arch_setup): Set `nto_tdesc'.
12969
12970 2013-06-04 Gary Benson <gbenson@redhat.com>
12971
12972 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
12973 to qSupported response when appropriate.
12974 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
12975 with nonzero-length annex.
12976 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
12977 arguments supplied in annex.
12978
12979 2013-05-31 Doug Evans <dje@google.com>
12980
12981 PR server/15594
12982 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12983 64 bits in 64-cross-32 environment.
12984
12985 2013-05-28 Pedro Alves <palves@redhat.com>
12986
12987 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
12988 (aarch64-without-fpu.c): Delete rule.
12989 * configure.srv (aarch64*-*-linux*): Remove references to
12990 aarch64-without-fpu.o and aarch64-without-fpu.xml.
12991 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12992 declaration.
12993
12994 2013-05-24 Pedro Alves <palves@redhat.com>
12995
12996 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12997 instead of strchr/decode_address. Error if the range isn't split
12998 with a ','. Don't assume there's be a ':' in the action.
12999
13000 2013-05-23 Yao Qi <yao@codesourcery.com>
13001 Pedro Alves <palves@redhat.com>
13002
13003 * linux-low.c (lwp_in_step_range): New function.
13004 (linux_wait_1): If the thread was range stepping and stopped
13005 outside the stepping range, report the stop to GDB. Otherwise,
13006 continue stepping. Add range stepping debug output.
13007 (linux_set_resume_request): Copy the step range from the resume
13008 request to the lwp.
13009 (linux_supports_range_stepping): New.
13010 (linux_target_ops) <supports_range_stepping>: Set to
13011 linux_supports_range_stepping.
13012 * linux-low.h (struct linux_target_ops)
13013 <supports_range_stepping>: New field.
13014 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13015 * linux-x86-low.c (x86_supports_range_stepping): New.
13016 (the_low_target) <supports_range_stepping>: Set to
13017 x86_supports_range_stepping.
13018 * server.c (handle_v_cont): Handle 'r' action.
13019 (handle_v_requests): Append ";r" if the target supports range
13020 stepping.
13021 * target.h (struct thread_resume) <step_range_start,
13022 step_range_end>: New fields.
13023 (struct target_ops) <supports_range_stepping>:
13024 New field.
13025 (target_supports_range_stepping): New macro.
13026
13027 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13028
13029 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13030 confusion in comment.
13031
13032 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13033
13034 * lynx-low.c (struct process_info_private): New type.
13035 (lynx_add_process): New function.
13036 (lynx_create_inferior, lynx_attach): Replace calls to
13037 add_process by calls to lynx_add_process.
13038 (lynx_resume): If PTID is null, then try using
13039 current_process()->private->last_wait_event_ptid.
13040 Add comments.
13041 (lynx_clear_inferiors): Delete. The contents of that function
13042 has been inlined in lynx_mourn;
13043 (lynx_wait_1): Save the ptid in the process's private data.
13044 (lynx_mourn): Free the process' private data. Replace call
13045 to lynx_clear_inferiors by call to clear_inferiors.
13046
13047 2013-05-17 Yao Qi <yao@codesourcery.com>
13048
13049 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13050 the right place.
13051
13052 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
13053
13054 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13055 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13056 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13057 PT_TEXT_END_ADDR guards. Update comments.
13058 (linux_target_op) <read_offsets>: Conditionally define to
13059 linux_read_offsets if the target is UCLIBC and if it defines
13060 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13061
13062 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13063 Andrew Jenner <andrew@codesourcery.com>
13064
13065 * Makefile.in (SFILES): Add linux-nios2-low.c.
13066 (clean): Add action to delete nios2-linux.c.
13067 (nios2-linux.c): New rule.
13068 * configure.srv: Add nios2*-*-linux*.
13069 * linux-nios2-low.c: New.
13070
13071 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13072
13073 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13074
13075 2013-04-25 Hui Zhu <hui@codesourcery.com>
13076
13077 PR gdb/15186
13078 * ax.c (ax_printf): Add fflush.
13079
13080 2013-04-22 Tom Tromey <tromey@redhat.com>
13081
13082 * Makefile.in (SFILES): Add filestuff.c.
13083 (OBS): Add filestuff.o.
13084 (filestuff.o): New target.
13085 * config.in, configure: Rebuild.
13086 * configure.ac: Check for fdwalk, pipe2.
13087
13088 2013-04-17 Pedro Alves <palves@redhat.com>
13089
13090 * configure.ac (USE_THREAD_DB): Delete variable.
13091 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13092 Don't AC_SUBST USE_THREAD_DB.
13093 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13094 * config.in, configure: Regenerate.
13095
13096 2013-04-16 Pedro Alves <palves@redhat.com>
13097
13098 * linux-low.h (struct lwp_info) <thread_known>: Move under
13099 the USE_THREAD_DB #ifdef.
13100
13101 2013-04-16 Pedro Alves <palves@redhat.com>
13102
13103 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13104 (linux-low.o): Delete rule.
13105 * linux-low.h: Always include "gdb_thread_db.h" instead of
13106 conditionally including thread_db.h.
13107 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13108 HAVE_THREAD_DB_H.
13109
13110 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13111
13112 * Makefile.in (install-only): Fix make install regression.
13113
13114 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13115
13116 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13117 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13118 installation.
13119 * gdbserver.1: Remove.
13120
13121 2013-03-22 Pedro Alves <palves@redhat.com>
13122
13123 * linux-low.c (handle_extended_wait): Don't call
13124 linux_enable_event_reporting.
13125
13126 2013-03-15 Tony Theodore <tonyt@logyst.com>
13127
13128 PR build/9098:
13129 * Makefile.in (SHELL): Use @SHELL@.
13130
13131 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13132
13133 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13134 compiler warning.
13135
13136 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13137
13138 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13139 Remove extraneous NULL element.
13140
13141 2013-03-13 Yao Qi <yao@codesourcery.com>
13142
13143 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13144 'V' block in trace frame.
13145
13146 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13147
13148 * target.h (struct target_ops): Add btrace ops.
13149 (target_supports_btrace): New macro.
13150 (target_enable_btrace): New macro.
13151 (target_disable_btrace): New macro.
13152 (target_read_btrace): New macro.
13153 * gdbthread.h (struct thread_info): Add btrace field.
13154 * server.c: Include btrace-common.h.
13155 (handle_btrace_general_set): New function.
13156 (handle_btrace_enable): New function.
13157 (handle_btrace_disable): New function.
13158 (handle_general_set): Call handle_btrace_general_set.
13159 (handle_qxfer_btrace): New function.
13160 (struct qxfer qxfer_packets[]): Add btrace entry.
13161 * inferiors.c (remove_thread): Disable btrace.
13162 * linux-low: Include linux-btrace.h.
13163 (linux_low_enable_btrace): New function.
13164 (linux_low_read_btrace): New function.
13165 (linux_target_ops): Add btrace ops.
13166 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13167 Add srv_linux_btrace=yes.
13168 (x86_64-*-linux*): Add linux-btrace.o.
13169 Add srv_linux_btrace=yes.
13170 * configure.ac: Define HAVE_LINUX_BTRACE.
13171 * config.in: Regenerated.
13172 * configure: Regenerated.
13173
13174 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13175
13176 * server.c (handle_qxfer): Preserve error message if -3 is
13177 returned.
13178 (qxfer): Document the -3 return value.
13179
13180 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13181
13182 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13183 (linux_btrace_h): New variable.
13184 (linux-btrace.o): New rule.
13185
13186 2013-03-08 Stan Shebs <stan@codesourcery.com>
13187 Hafiz Abid Qadeer <abidh@codesourcery.com>
13188
13189 * tracepoint.c (trace_buffer_size): New global.
13190 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13191 (init_trace_buffer): Change to one-argument function. Allocate
13192 trace buffer memory.
13193 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13194 handle QTBuffer:size packet.
13195 (cmd_bigqtbuffer_size): New function.
13196 (initialize_tracepoint): Call init_trace_buffer with
13197 DEFAULT_TRACE_BUFFER_SIZE.
13198 * server.c (handle_query): Add QTBuffer:size in the
13199 supported packets.
13200
13201 2013-03-07 Yao Qi <yao@codesourcery.com>
13202
13203 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13204 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13205 of -1.
13206 (cmd_qtsp): Adjust condition. Do post increment.
13207 Set cur_action and cur_step_action back to 0.
13208
13209 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13210
13211 PR server/15236
13212 * linux-low.c (linux_write_memory): Return early success if LEN is
13213 zero.
13214
13215 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
13216
13217 * configure.srv: Add x86_64-*-cygwin* as target.
13218
13219 2013-02-28 Tom Tromey <tromey@redhat.com>
13220
13221 * configure.ac: Invoke AC_SYS_LARGEFILE.
13222 * configure, config.in: Rebuild.
13223
13224 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
13225
13226 * win32-low.c: Throughout, fix format strings and casts of
13227 printf-like functions to avoid type related warnings on all
13228 platforms.
13229 (get_child_debug_event): Print dwDebugEventCode as hex since
13230 that's how it's usually documented.
13231
13232 2013-02-28 Yao Qi <yao@codesourcery.com>
13233
13234 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13235 pulongest.
13236
13237 2013-02-27 Jiong Wang <jiwang@tilera.com>
13238
13239 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13240 (reg-tilegx32.c): New rule.
13241 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13242 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13243 different register info initializer according to elf class.
13244 (init_registers_tilgx32): New function. The tilegx32 register info
13245 initializer.
13246 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13247 (tile_store_gregset): Likewise.
13248
13249 2013-02-27 Yao Qi <yao@codesourcery.com>
13250
13251 * server.c (process_point_options): Print debug message when
13252 debug_threads is true.
13253
13254 2013-02-26 Yao Qi <yao@codesourcery.com>
13255
13256 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13257
13258 2013-02-19 Pedro Alves <palves@redhat.com>
13259 Kai Tietz <ktietz@redhat.com>
13260
13261 PR gdb/15161
13262
13263 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13264 instead of strtoul to extract address from packet.
13265 (process_serial_event) <'z'>: Likewise.
13266
13267 2013-02-18 Yao Qi <yao@codesourcery.com>
13268
13269 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13270
13271 2013-02-14 Pedro Alves <palves@redhat.com>
13272
13273 Plug memory leak.
13274
13275 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13276 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13277
13278 2013-02-14 Pedro Alves <palves@redhat.com>
13279
13280 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13281
13282 2013-02-14 Pedro Alves <palves@redhat.com>
13283
13284 * tracepoint.c (save_string): Delete.
13285 (add_tracepoint_action): Use savestring instead of save_string.
13286
13287 2013-02-12 Pedro Alves <palves@redhat.com>
13288
13289 * linux-xtensa-low.c: Ditto.
13290 * xtensa-xtregs.c: Ditto.
13291
13292 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13293
13294 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13295 thread_db.
13296
13297 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13298
13299 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13300 aarch64_num_wp_regs and aarch64_num_bp_regs to
13301 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13302
13303 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13304
13305 * linux-aarch64-low.c (ps_get_thread_area): Replace
13306 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13307
13308 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13309 Marcus Shawcroft <marcus.shawcroft@arm.com>
13310 Nigel Stephens <nigel.stephens@arm.com>
13311 Yufeng Zhang <yufeng.zhang@arm.com>
13312
13313 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13314 (aarch64.c, aarch64-without-fpu.c): New targets.
13315 * configure.srv (aarch64*-*-linux*): New.
13316 * linux-aarch64-low.c: New file.
13317
13318 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13319
13320 * linux-low.c (handle_extended_wait, linux_create_inferior)
13321 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13322 (dequeue_one_deferred_signal, linux_resume_one_thread)
13323 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13324 (linux_tracefork_grandchild, linux_test_for_tracefork)
13325 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13326 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13327 where the argument is 0.
13328
13329 2013-01-25 Yao Qi <yao@codesourcery.com>
13330
13331 * event-loop.c: Include "queue.h".
13332 (gdb_event_p): New typedef.
13333 (struct gdb_event) <next_event>: Remove.
13334 (event_queue): Change to QUEUE(gdb_event_p).
13335 (async_queue_event): Remove.
13336 (gdb_event_xfree): New.
13337 (initialize_event_loop): New.
13338 (process_event): Use API from QUEUE.
13339 (wait_for_event): Likewise.
13340 * server.c (main): Call initialize_event_loop.
13341 * server.h (initialize_event_loop): Declare.
13342
13343 2013-01-18 Yao Qi <yao@codesourcery.com>
13344
13345 * ax.h (struct eval_agent_expr_context): New.
13346 (gdb_eval_agent_expr): Update declaration.
13347 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
13348 TFRAME. Add new argument CTX.
13349 * server.h (struct eval_agent_expr_context): Declare.
13350 (agent_mem_read, agent_tsv_read): Update declaration.
13351 (agent_mem_read_string): Likewise.
13352 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
13353 (add_traceframe_block): Add new argument TPOINT.
13354 Increase TPOINT->traceframe_usage.
13355 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
13356 eval_tracepoint_agent_expr.
13357 (condition_true_at_tracepoint): Likewise.
13358 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
13359 (agent_mem_read_string, agent_tsv_read): Likewise.
13360
13361 2013-01-16 Yao Qi <yao@codesourcery.com>
13362
13363 * linux-low.c (linux_resume_one_lwp): Don't check
13364 'lwp->bp_reinsert != 0'.
13365
13366 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13367 Pedro Alves <palves@redhat.com>
13368
13369 * lynx-low.c (ptrace_request_to_str): Define a temporary
13370 macro and use it to simplify this function's implementation.
13371
13372 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13373
13374 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
13375 sets errno.
13376
13377 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13378
13379 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
13380
13381 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13382
13383 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
13384
13385 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13386
13387 * lynx-low.c (lynx_resume): Use the resume_info parameter
13388 to determine the ptid for the lynx_ptrace call, unless
13389 it is equal to minus_one_ptid, in which case we use the
13390 ptid of the current_inferior.
13391 (lynx_wait_1): After having received a thread create/exit
13392 event, resume the inferior's execution using the signaling
13393 thread's ptid, rather than the old ptid.
13394
13395 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13396
13397 * lynx-low.c (lynx_resume): Delete variable ret.
13398
13399 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13400
13401 * gdbreplay.c (gdbreplay_version): Update copyright year.
13402 * server.c (gdbserver_version): Likewise.
13403
13404 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13405
13406 * lynx-low.c (lynx_wait_1): Add debug trace before adding
13407 new thread.
13408
13409 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13410
13411 * lynx-low.c (ptrace_request_to_str): Add handling for
13412 PTRACE_GETTRACESIG.
13413
13414 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13415
13416 * lynx-low.c (lynx_attach): Delete variable new_process.
13417
13418 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13419
13420 * lynx-low.c (lynx_create_inferior): Delete variable
13421 new_process.
13422
13423 2012-12-17 Joel Brobecker <brobecker@adacore.com>
13424
13425 * lynx-low.c (ptrace_request_to_str): Do not handle
13426 PTRACE_GETTHREADLIST if this macro does not exist.
13427
13428 2012-12-15 Yao Qi <yao@codesourcery.com>
13429
13430 * Makefile.in (OBS): Add notif.o.
13431 * notif.c, notif.h: New.
13432 * server.c: Include "notif.h".
13433 (struct vstop_notif) <next>: Remove.
13434 <base>: New field.
13435 (queue_stop_reply): Update.
13436 (push_event, send_next_stop_reply): Remove.
13437 (discard_queued_stop_replies): Update.
13438 (notif_stop): New variable.
13439 (handle_v_stopped): Remove.
13440 (handle_v_requests): Don't call handle_v_stopped. Call
13441 handle_ack_notif instead.
13442 (queue_stop_reply_callback): Call notif_event_enque instead
13443 of queue_stop_reply.
13444 (handle_status): Don't call send_next_stop_reply, call
13445 notif_write_event instead.
13446 (kill_inferior_callback): Likewise.
13447 (detach_or_kill_inferior_callback): Likewise.
13448 (main): Call initialize_notif.
13449 (process_serial_event): Call QUEUE_is_empty.
13450 (handle_target_event): Call notif_push instead of push event.
13451 * server.h (push_event): Remove declaration.
13452
13453 2012-12-10 Tom Tromey <tromey@redhat.com>
13454
13455 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
13456 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
13457 macros.
13458 (.c.o): Rewrite.
13459 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
13460 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
13461 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
13462 (amd64-linux-ipa.o, ax.o): Rewrite.
13463 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
13464 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
13465 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
13466 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
13467 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
13468 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
13469 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
13470 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
13471 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
13472 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
13473 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
13474 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
13475 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
13476 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
13477 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
13478 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
13479 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
13480 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
13481 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
13482 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
13483 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
13484 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
13485 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
13486 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
13487 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
13488 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
13489 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
13490 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
13491 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
13492 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
13493 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
13494 (reg-tilegx.o): Remove.
13495 (all_object_files): New macro.
13496 Include .deps files.
13497 * aclocal.m4, configure: Rebuild.
13498 * acinclude.m4: Include depstand.m4, lead-dot.m4.
13499 * configure.ac: Invoke ZW_CREATE_DEPDIR,
13500 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
13501
13502 2012-12-05 Tom Tromey <tromey@redhat.com>
13503
13504 PR gdb/14917:
13505 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
13506
13507 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
13508
13509 * configure.ac: Check for linux/perf_event.h.
13510 * config.in: Regenerated.
13511 * configure: Regenerated.
13512
13513 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
13514
13515 * hostio.c (handle_readlink): Decrease buffer size
13516 parameter passed to readlink by one byte.
13517
13518 2012-11-26 Yao Qi <yao@codesourcery.com>
13519
13520 * configure.ac (build_warnings): Append '-Wempty-body'.
13521 * configure: Regenerated.
13522 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
13523 body.
13524
13525 2012-11-15 Pierre Muller <muller@sourceware.org>
13526
13527 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
13528 * config.in: Regenerate.
13529 * configure: Regenerate.
13530 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
13531 Use "gdb_wait.h" header instead of <sys/wait.h> header.
13532 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13533 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
13534 header.
13535 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
13536 instead of <sys/wait.h> header.
13537 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
13538
13539 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
13540
13541 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
13542 (various make rules): Remove -DGDBSERVER
13543
13544 2012-11-09 Yao Qi <yao@codesourcery.com>
13545
13546 * spu-low.c (current_ptid): Move it to ..
13547 * gdbthread.h: ... here. New.
13548 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
13549 * server.c (myresume, process_serial_event): Likewise.
13550 * thread-db.c (thread_db_find_new_threads): Likewise.
13551 * tracepoint.c (run_inferior_command): Likewise.
13552
13553 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
13554
13555 * server.c (handle_search_memory_1): Include access length in
13556 warning message.
13557
13558 2012-09-05 Michael Brandt <michael.brandt@axis.com>
13559
13560 * linux-crisv32-low.c: Fix compile errors.
13561
13562 2012-09-04 Yao Qi <yao@codesourcery.com>
13563
13564 * tracepoint.c (cmd_qtsv): Adjust debug message.
13565 Don't check CUR_TPOINT.
13566
13567 2012-08-28 Yao Qi <yao@codesourcery.com>
13568
13569 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
13570 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
13571 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
13572 Remove declarations of xmalloc, xreallloc, xstrdup and
13573 freeargv.
13574 * Makefile.in (libiberty_h): New.
13575 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
13576 (linux-bfin-low.o): Append dependency 'libiberty.h'.
13577
13578 2012-08-23 Yao Qi <yao@codesourcery.com>
13579
13580 * server.h: Remove declaration of 'xsnprintf'.
13581
13582 2012-08-22 Keith Seitz <keiths@redhat.com>
13583
13584 * server.h: Include build-gnulib-gbserver/config.h.
13585 * gdbreplay.c: Likewise.
13586
13587 2012-08-08 Doug Evans <dje@google.com>
13588
13589 * Makefile.in (SFILES): Add gdb_vecs.c.
13590 (OBS): Add gdb_vecs.o.
13591 (gdb_vecs_h, host_defs_h): New variables.
13592 (thread-db.o): Add $(gdb_vecs_h) dependency.
13593 (gdb_vecs.o): New rule.
13594 * thread-db.c: #include "gdb_vecs.h".
13595 (thread_db_load_search): Use a vector to iterate over path elements.
13596 Handle text appearing after "$pdir".
13597
13598 * configure.ac: Add check for strstr.
13599 * config.in: Regenerate.
13600 * configure: Regenerate.
13601
13602 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13603
13604 * hostio.c (handle_pread): If pread fails, fall back to attempting
13605 lseek/read.
13606 (handle_pwrite): Likewise for pwrite.
13607
13608 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13609
13610 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
13611 between unsupported TYPE and unimplementable ADDR/LEN combination.
13612 (arm_insert_point): Act on new return value.
13613
13614 2012-07-31 Pedro Alves <palves@redhat.com>
13615
13616 * server.c (process_point_options): Only skip tokens if we find
13617 one that is unrecognized. Don't treat 'X' specially while
13618 skipping unrecognized tokens.
13619
13620 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13621
13622 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
13623 to 4-byte-align HW breakpoint addresses for Thumb.
13624
13625 2012-07-27 Yao Qi <yao@codesourcery.com>
13626
13627 PR remote/14161.
13628
13629 * server.h: Declare gdb_agent_about_to_close.
13630 * target.c (kill_inferior): Include "agent.h".
13631 New. Send command 'kill'.
13632 * target.h (kill_inferior): Removed macro.
13633 * tracepoint.c (gdb_agent_about_to_close): New.
13634 (gdb_agent_helper_thread): Handle command 'close'.
13635 Wait endlessly until the inferior stops.
13636 Install gdb_agent_remove_socket to atexit hook.
13637 (agent_socket_name): New static variable.
13638 (gdb_agent_socket_init): Replace local variable 'name' with
13639 'agent_socket_name'.
13640 (gdb_agent_remove_socket): New.
13641
13642 2012-07-27 Yao Qi <yao@codesourcery.com>
13643
13644 * server.c (process_point_options): Stop at 'X' when parsing.
13645
13646 2012-07-19 Michael Eager <eager@eagercon.com>
13647
13648 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
13649 to hw_execute.
13650 * linux-x86-low.c (x86_insert_point, x86_remove_point):
13651 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
13652 hardware breakpoint.
13653
13654 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13655
13656 * gdbserver/linux-low.c (initialize_low): Call
13657 linux_ptrace_init_warnings.
13658
13659 2012-07-02 Doug Evans <dje@google.com>
13660
13661 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
13662 pointer to int.
13663
13664 2012-07-02 Stan Shebs <stan@codesourcery.com>
13665
13666 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
13667 (ax.o): Add it to build rule.
13668 (ax-ipa.o): Ditto.
13669 (OBS): Add format.o.
13670 (IPA_OBS): Add format.o.
13671 * server.c (handle_query): Claim support for breakpoint commands.
13672 (process_point_options): Add command case.
13673 (process_serial_event): Leave running if there are printfs in
13674 effect.
13675 * mem-break.h (any_persistent_commands): Declare.
13676 (add_breakpoint_commands): Declare.
13677 (gdb_no_commands_at_breakpoint): Declare.
13678 (run_breakpoint_commands): Declare.
13679 * mem-break.c (struct point_command_list): New struct.
13680 (struct breakpoint): New field command_list.
13681 (any_persistent_commands): New function.
13682 (add_commands_to_breakpoint): New function.
13683 (add_breakpoint_commands): New function.
13684 (gdb_no_commands_at_breakpoint): New function.
13685 (run_breakpoint_commands): New function.
13686 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
13687 locally.
13688 * ax.c: Include format.h.
13689 (ax_printf): New function.
13690 (gdb_eval_agent_expr): Add printf opcode.
13691
13692 2012-06-13 Yao Qi <yao@codesourcery.com>
13693
13694 * server.c (start_inferior): Remove duplicated writes to fields
13695 'last_resume_kind' and 'last_status' of 'current_inferior'.
13696
13697 2012-06-12 Yao Qi <yao@codesourcery.com>
13698 Pedro Alves <palves@redhat.com>
13699
13700 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
13701 comment.
13702 * server.c (handle_v_cont): Extend comment.
13703
13704 2012-06-11 Yao Qi <yao@codesourcery.com>
13705
13706 * linux-low.c (linux_attach): Add 'static'.
13707
13708 2012-06-06 Yao Qi <yao@codesourcery.com>
13709
13710 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
13711
13712 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
13713
13714 Fix gcc -flto compilation warning.
13715 * server.c (main): Make variable multi_mode and attach volatile.
13716
13717 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13718
13719 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
13720 if the platform doesn't know about it.
13721
13722 2012-05-30 Jeff Kenton <jkenton@tilera.com>
13723
13724 * Makefile.in (SFILES): Add linux-tile-low.c.
13725 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
13726 * configure.srv: Handle tilegx-*-linux*.
13727 * linux-tile-low.c: New file.
13728
13729 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13730
13731 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
13732
13733 2012-05-24 Pedro Alves <palves@redhat.com>
13734
13735 PR gdb/7205
13736
13737 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
13738
13739 2012-05-24 Pedro Alves <palves@redhat.com>
13740
13741 PR gdb/7205
13742
13743 Replace target_signal with gdb_signal throughout.
13744
13745 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
13746
13747 * linux-low.c (linux_store_registers): Avoid the copying sequence
13748 when no data has been retrieved by ptrace.
13749
13750 2012-05-22 Will Deacon <will.deacon@arm.com>
13751
13752 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
13753 Include asm/ptrace.h.
13754 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
13755 already defined.
13756
13757 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13758
13759 * linux-low.c (linux_store_registers): Don't re-retrieve data
13760 with ptrace that has already been obtained from /proc. Always
13761 copy any data retrieved with ptrace to the buffer supplied.
13762
13763 2012-05-11 Yao Qi <yao@codesourcery.com>
13764 Pedro Alves <palves@redhat.com>
13765
13766 * linux-low.c (enum stopping_threads_kind): New.
13767 (stopping_threads): Change type to `enum stopping_threads_kind'.
13768 (handle_extended_wait): If stopping and suspending threads, leave
13769 the new_lwp suspended too.
13770 (linux_wait_for_event): Adjust.
13771 (stop_all_lwps): Set `stopping_threads' to
13772 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13773 whether we're suspending threads or just stopping them. Assert no
13774 recursion happens.
13775
13776 2012-04-29 Yao Qi <yao@codesourcery.com>
13777
13778 * server.h: Move some code to ...
13779 * gdbthread.h: ... here. New.
13780 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13781 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13782 (nto-low.o, win32-low.o): Likewise.
13783 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13784 * regcache.c, remote-utils.c, server.c: Likewise.
13785 * target.c, tracepoint.c, win32-low.c: Likewise.
13786
13787 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13788
13789 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13790 (PTRACE_ARG4_TYPE): Likewise.
13791 (PTRACE_XFER_TYPE): Likewise.
13792 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
13793 ptrace to PTRACE_ARG3_TYPE.
13794 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
13795 (PTRACE_ARG4_TYPE): Likewise.
13796 (PTRACE_XFER_TYPE): Likewise.
13797 (linux_detach_one_lwp): Cast fourth argument of
13798 ptrace to long then PTRACE_ARG4_TYPE.
13799 (regsets_fetch_inferior_registers): Cast third argument of
13800 ptrace to long then PTRACE_ARG3_TYPE.
13801 (regsets_store_inferior_registers): Likewise.
13802
13803 2012-04-20 Pedro Alves <palves@redhat.com>
13804
13805 * configure: Regenerate.
13806
13807 2012-04-19 Pedro Alves <palves@redhat.com>
13808
13809 * Makefile.in (GNULIB_BUILDDIR): New.
13810 (LIBGNU, INCGNU, GNULIB_H): Adjust.
13811 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
13812 (all, install-only, uninstall, clean-info, all-lib, clean): No
13813 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
13814 (maintainer-clean realclean distclean): Use subdir_do.
13815 (subdir_do): New.
13816 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
13817 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
13818 * acinclude.m4: Include acx_configure_dir.m4.
13819 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
13820 calls. Call AC_PROG_RANLIB. Configure gnulib using
13821 ACX_CONFIGURE_DIR.
13822 (GNULIB): New.
13823 (GNULIB_STDINT_H): Adjust.
13824 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
13825 * gdbreplay.c: Include build-gnulib/config.h.
13826 * server.h: Likewise.
13827 * aclocal.m4: Regenerate.
13828 * config.in: Regenerate.
13829 * configure: Regenerate.
13830
13831 2012-04-19 Pedro Alves <palves@redhat.com>
13832
13833 * Makefile.in (LIBGNU, INCGNU): Adjust.
13834 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
13835 (all, install-only, uninstall, clean-info, all-lib, clean)
13836 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
13837 * configure.ac: Adjust AC_OUTPUT output.
13838 * aclocal.m4: Regenerate.
13839 * configure: Regenerate.
13840
13841 2012-04-19 Pedro Alves <palves@redhat.com>
13842
13843 * Makefile.in (generated_files): New.
13844 (server_h): Remove the explicit dependency on config.h, and depend
13845 on $generated_files.
13846
13847 2012-04-19 Pedro Alves <palves@redhat.com>
13848
13849 * Makefile.in (INCGNU): Add -Ignulib.
13850
13851 2012-04-19 Pedro Alves <palves@redhat.com>
13852
13853 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
13854 (INCGNU): ... this, and spell out -I here.
13855 (GNULIB_LIB): Rename to ...
13856 (LIBGNU): ... this.
13857 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
13858
13859 2012-04-19 Pedro Alves <palves@redhat.com>
13860
13861 * config.in: Regenerate.
13862
13863 2012-04-19 Pedro Alves <palves@redhat.com>
13864
13865 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
13866 * server.h (memmem): Remove declaration.
13867 * config.in: Regenerate.
13868 * configure: Regenerate.
13869
13870 2012-04-19 Yao Qi <yao@codesourcery.com>
13871
13872 * Makefile.in (SFILES): Add common/vec.c.
13873 (OBS): Add vec.o.
13874 (vec.o): New rule.
13875
13876 2012-04-19 Yao Qi <yao@codesourcery.com>
13877
13878 * remote-utils.c (prepare_resume_reply): Replace with macro
13879 target_core_of_thread.
13880 * server.c (handle_qxfer_threads_proper): Likewise.
13881 * target.h (traget_core_of_thread): New macro.
13882
13883 2012-04-18 Pedro Alves <palves@redhat.com>
13884
13885 * aclocal.m4: Regenerate.
13886 * configure: Regenerate.
13887
13888 2012-04-16 Yao Qi <yao@codesourcery.com>
13889
13890 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
13891 duplicated on address.
13892
13893 2012-04-16 Yao Qi <yao@codesourcery.com>
13894
13895 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
13896 (struct tracepoint_action_ops) <send>: New field.
13897 (m_tracepoint_action_send, r_tracepoint_action_send): New.
13898 (agent_expr_send, x_tracepoint_action_send): New.
13899 (l_tracepoint_action_send): New.
13900 (cmd_qtdp): Download and install tracepoint
13901 according to `use_agent'.
13902 (run_inferior_command): Add one more parameter `len'.
13903 Update callers.
13904 (tracepoint_send_agent): New.
13905 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
13906
13907 2012-04-16 Yao Qi <yao@codesourcery.com>
13908
13909 * tracepoint.c (download_tracepoints): Moved to ...
13910 (cmd_qtstart): ... here.
13911
13912 2012-04-14 Yao Qi <yao@codesourcery.com>
13913
13914 * tracepoint.c: Include inttypes.h.
13915 (struct collect_memory_action): Use sized types.
13916 (struct tracepoint): Likewise.
13917 (cmd_qtdp, stop_tracing): Update print specifiers.
13918 (cmd_qtp, response_tracepoint): Likewise.
13919 (collect_data_at_tracepoint): Likewise.
13920 (collect_data_at_step): Likewise.
13921
13922 2012-04-14 Yao Qi <yao@codesourcery.com>
13923
13924 Import gnulib module inttypes.
13925 * aclocal.m4, config.in, configure: Regenerated.
13926
13927 2012-04-14 Yao Qi <yao@codesourcery.com>
13928
13929 * Makefile.in (maintainer-clean, realclean, distclean): Remove
13930 Makefile and config.status at last.
13931
13932 2012-04-13 Yao Qi <yao@codesourcery.com>
13933
13934 * tracepoint.c: Include stdint.h unconditionally.
13935
13936 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13937
13938 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
13939 on BFD_HAVE_SYS_PROCFS_TYPE.
13940 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
13941 * configure: Regenerate.
13942 * config.in: Likewise.
13943
13944 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13945
13946 * Makefile.in (clean): Also remove x32.c x32-linux.c
13947 x32-avx.c x32-avx-linux.c.
13948 (x32.o): New target.
13949 (x32.c): Likewise.
13950 (x32-linux.o): Likewise.
13951 (x32-linux.c): Likewise.
13952 (x32-avx.o): Likewise.
13953 (x32-avx.c): Likewise.
13954 (x32-avx-linux.o): Likewise.
13955 (x32-avx-linux.c): Likewise.
13956
13957 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
13958 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
13959 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
13960 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
13961 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
13962 i386/x32-avx-linux.xml.
13963
13964 * linux-x86-low.c (init_registers_x32_linux): New prototype.
13965 (init_registers_x32_avx_linux): Likwise.
13966 (x86_linux_update_xmltarget): Call init_registers_x32_linux
13967 or init_registers_x32_avx_linux if linux_is_elf64 is false.
13968
13969 2012-04-13 Pedro Alves <palves@redhat.com>
13970
13971 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
13972 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
13973 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
13974 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
13975 the sub-make.
13976
13977 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13978
13979 * linux-x86-low.c (compat_x32_clock_t): New.
13980 (compat_x32_siginfo_t): Likewise.
13981 (compat_x32_siginfo_from_siginfo): Likewise.
13982 (siginfo_from_compat_x32_siginfo): Likewise.
13983 (linux_is_elf64): Likewise.
13984 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
13985 and siginfo_from_compat_x32_siginfo for x32.
13986 (x86_arch_setup): Set linux_is_elf64.
13987
13988 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13989
13990 PR gdb/13969
13991 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13992 e_machine field.
13993 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13994 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13995 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13996 compatible with process.
13997
13998 2012-04-12 Yao Qi <yao@codesourcery.com>
13999
14000 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14001 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14002 (install-only, install-info, clean): Handle sub dir gnulib.
14003 (all-lib, am--refresh): New targets.
14004 (memmem.o): Remove target.
14005 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14006 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14007 (AC_REPLACE_FUNCS): Remove memmem.
14008 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14009 (AC_OUTPUT): Generate Makefile in gnulib/.
14010 * aclocal.m4, config.in, configure: Regenerated.
14011
14012 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14013
14014 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14015
14016 2012-04-05 Pedro Alves <palves@redhat.com>
14017
14018 -Werror=strict-aliasing
14019
14020 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14021 pointer.
14022
14023 2012-04-04 Pedro Alves <palves@redhat.com>
14024
14025 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14026 (sparc_store_gregset_from_stack, sparc_store_gregset)
14027 (sparc_breakpoint_at): Fix formatting.
14028
14029 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14030
14031 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14032 are available.
14033 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14034 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14035 * config.in: Regenerate.
14036 * configure: Likewise.
14037
14038 2012-03-29 Pedro Alves <palves@redhat.com>
14039
14040 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14041 Correct ptrace arguments.
14042
14043 2012-03-28 Pedro Alves <palves@redhat.com>
14044
14045 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14046 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14047 (IA64_FR1_REGNUM): New defines.
14048 (ia64_fetch_register): New.
14049 (the_low_target): Install it.
14050 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14051 field.
14052 * linux-low.c (linux_fetch_registers): Try the
14053 the_low_target.fetch_register hook first.
14054
14055 * linux-arm-low.c (the_low_target): Adjust.
14056 * linux-bfin-low.c (the_low_target): Adjust.
14057 * linux-cris-low.c (the_low_target): Adjust.
14058 * linux-crisv32-low.c (the_low_target): Adjust.
14059 * linux-m32r-low.c (the_low_target): Adjust.
14060 * linux-m68k-low.c (the_low_target): Adjust.
14061 * linux-mips-low.c (the_low_target): Adjust.
14062 * linux-ppc-low.c (the_low_target): Adjust.
14063 * linux-s390-low.c (the_low_target): Adjust.
14064 * linux-sh-low.c (the_low_target): Adjust.
14065 * linux-sparc-low.c (the_low_target): Adjust.
14066 * linux-tic6x-low.c (the_low_target): Adjust.
14067 * linux-x86-low.c (the_low_target): Adjust.
14068 * linux-xtensa-low.c (the_low_target): Adjust.
14069
14070 2012-03-26 Pedro Alves <palves@redhat.com>
14071
14072 * server.c (handle_qxfer_libraries): Don't bail early if
14073 the_target->qxfer_libraries_svr4 is not NULL.
14074
14075 2012-03-26 Pedro Alves <palves@redhat.com>
14076
14077 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14078
14079 2012-03-23 Pedro Alves <palves@redhat.com>
14080
14081 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14082 "library-list-svr4" element's start tag when the the DSO list is
14083 empty.
14084
14085 2012-03-23 Pedro Alves <palves@redhat.com>
14086
14087 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14088 a variable whose type size is the same as the inferior's pointer
14089 size.
14090
14091 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14092
14093 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14094 struct siginfo.
14095 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14096 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14097 * linux-low.h: Include <signal.h>.
14098 (struct siginfo): Remove forward declaration.
14099 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14100 struct siginfo.
14101
14102 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14103
14104 * .gitignore: Ignore more files.
14105
14106 2012-03-19 Pedro Alves <palves@redhat.com>
14107 Jan Kratochvil <jan.kratochvil@redhat.com>
14108
14109 * server.c (cont_thread, general_thread): Add describing comments.
14110 (start_inferior): Clear `cont_thread'.
14111 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14112 of a process.
14113
14114 2012-03-15 Yao Qi <yao@codesourcery.com>
14115
14116 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14117 handling to ...
14118 (cmd_qtdp): ... here.
14119
14120 2012-03-15 Yao Qi <yao@codesourcery.com>
14121
14122 * tracepoint.c (struct tracepoint_action_ops): New.
14123 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14124 (m_tracepoint_action_download): New.
14125 (r_tracepoint_action_download): New.
14126 (x_tracepoint_action_download): New.
14127 (l_tracepoint_action_download): New.
14128 (add_tracepoint_action): Install `action->ops' according type.
14129 (download_tracepoint_1): Move code `download' function pointer
14130 of various tracepoint_action_ops.
14131
14132 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14133
14134 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14135 linux_ptrace_attach_warnings.
14136
14137 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14138
14139 * Makefile.in (linux-ptrace.o): New.
14140 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14141 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14142 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14143 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14144 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14145 of these targets.
14146 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14147
14148 2012-03-08 Yao Qi <yao@codesourcery.com>
14149 Pedro Alves <palves@redhat.com>
14150
14151 Fix PR server/13392.
14152 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14153 offset of JMP insn.
14154 * tracepoint.c (remove_tracepoint): New.
14155 (cmd_qtdp): Call remove_tracepoint when failed to install.
14156
14157 2012-03-07 Pedro Alves <palves@redhat.com>
14158
14159 * linux-low.c (get_detach_signal): New.
14160 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14161 Pass on pending signals to PTRACE_DETACH. Check the result of the
14162 ptrace call.
14163 * server.c (program_signals, program_signals_p): New.
14164 (handle_general_set): Handle QProgramSignals.
14165 * server.h (program_signals, program_signals_p): Declare.
14166
14167 2012-03-05 Pedro Alves <palves@redhat.com>
14168 Jan Kratochvil <jan.kratochvil@redhat.com>
14169
14170 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14171 New comment why.
14172
14173 2012-03-03 Yao Qi <yao@codesourcery.com>
14174
14175 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14176 agent_look_up_symbols.
14177
14178 2012-03-03 Yao Qi <yao@codesourcery.com>
14179
14180 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14181 (linux-x86-low.o): Likewise.
14182 * server.h: Remove in_process_agent_loaded.
14183 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14184 common/agent.c.
14185 Update callers.
14186
14187 2012-03-03 Yao Qi <yao@codesourcery.com>
14188
14189 * tracepoint.c (gdb_agent_capability): New global.
14190 (in_process_agent_loaded_ust): Renamed to
14191 `in_process_agent_supports_ust'.
14192 Update callers.
14193 (in_process_agent_supports_ust): Call agent_capability_check.
14194 (clear_installed_tracepoints): Assert that agent supports
14195 agent.
14196
14197 2012-03-03 Yao Qi <yao@codesourcery.com>
14198
14199 * linux-low.c (linux_supports_agent): New.
14200 (linux_target_ops): Initialize field `supports_agent' with
14201 linux_supports_agent.
14202 * target.h (struct target_ops) <supports_agent>: New.
14203 (target_supports_agent): New macro.
14204 * server.c (handle_general_set): Handle packet 'QAgent'.
14205 (handle_query): Send `QAgent+'.
14206 * Makefile.in (server.o): Depends on agent.h.
14207
14208 2012-03-03 Yao Qi <yao@codesourcery.com>
14209
14210 * Makefile.in (OBS): Add agent.o.
14211 Add new rule for agent.o.
14212 Track dependence of tracepoint.c on agent.h.
14213 * tracepoint.c (run_inferior_command_1):
14214 (run_inferior_command): Call agent_run_command.
14215 (gdb_ust_connect_sync_socket): Deleted. Move it to
14216 common/agent.c.
14217 (resume_thread, stop_thread): Likewise.
14218 (gdb_ust_socket_init): Renamed to ...
14219 (gdb_agent_socket_init): ... New.
14220 (gdb_ust_thread): Renamed to ...
14221 (gdb_agent_helper_thread): ... New.
14222 (gdb_ust_init): Move some code to ...
14223 (gdb_agent_init): ... here. New.
14224 [HAVE_UST]: Call gdb_ust_init.
14225 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14226 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14227 * config.in, configure: Regenerated.
14228
14229 2012-03-02 Pedro Alves <palves@redhat.com>
14230
14231 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14232 * linux-low.c (struct simple_pid_list): New.
14233 (stopped_pids): New a struct simple_pid_list pointer.
14234 (add_to_pid_list, pull_pid_from_list): New.
14235 (handle_extended_wait): Don't assume the first signal new children
14236 report is SIGSTOP. Adjust call to pull_pid_from_list.
14237 (linux_wait_for_lwp): Adjust.
14238
14239 2012-03-02 Yao Qi <yao@codesourcery.com>
14240
14241 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14242 debug log.
14243
14244 2012-03-02 Yao Qi <yao@codesourcery.com>
14245
14246 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14247 `stop_pc' and `tpoint'. Update caller.
14248
14249 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14250
14251 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14252 * linux-low.c (use_linux_regsets): New macro.
14253 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14254 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14255 (linux_register_in_regsets): New function.
14256 (usr_fetch_inferior_registers): Skip registers covered by
14257 regsets.
14258 (usr_store_inferior_registers): Likewise.
14259 (usr_fetch_inferior_registers): New macro.
14260 (usr_store_inferior_registers): Likewise.
14261 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14262 (linux_store_registers): Likewise.
14263 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14264 prototype.
14265 (init_registers_mips64_dsp_linux): Likewise.
14266 (init_registers_mips_linux): New macro.
14267 (init_registers_mips_dsp_linux): Likewise.
14268 (mips_dsp_num_regs): Likewise.
14269 (DSP_BASE, DSP_CONTROL): New fallback macros.
14270 (mips_base_regs): New macro.
14271 (mips_regmap): Use it. Fix the size.
14272 (mips_dsp_regmap): New variable.
14273 (mips_dsp_regset_bitmap): Likewise.
14274 (mips_arch_setup): New function.
14275 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14276 than mips_regmap.
14277 (mips_cannot_store_register): Likewise.
14278 (the_low_target): Update .arch_setup, .num_regs and .regmap
14279 initializers. Add .regset_bitmap initializer.
14280 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14281 initializer.
14282 * linux-bfin-low.c (the_low_target): Likewise.
14283 * linux-cris-low.c (the_low_target): Likewise.
14284 * linux-crisv32-low.c (the_low_target): Likewise.
14285 * linux-ia64-low.c (the_low_target): Likewise.
14286 * linux-m32r-low.c (the_low_target): Likewise.
14287 * linux-m68k-low.c (the_low_target): Likewise.
14288 * linux-ppc-low.c (the_low_target): Likewise.
14289 * linux-s390-low.c (the_low_target): Likewise.
14290 * linux-sh-low.c (the_low_target): Likewise.
14291 * linux-sparc-low.c (the_low_target): Likewise.
14292 * linux-tic6x-low.c (the_low_target): Likewise.
14293 * linux-x86-low.c (the_low_target): Likewise.
14294 * linux-xtensa-low.c (the_low_target): Likewise.
14295 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14296 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14297 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14298 srv_xmlfiles.
14299 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14300 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14301
14302 2012-02-29 Yao Qi <yao@codesourcery.com>
14303 Pedro Alves <palves@redhat.com>
14304
14305 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14306 `step_over_finished' is true.
14307
14308 2012-02-27 Pedro Alves <palves@redhat.com>
14309
14310 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14311 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14312
14313 2012-02-27 Pedro Alves <palves@redhat.com>
14314
14315 PR server/9684
14316 * linux-low.c (pid_is_stopped): New.
14317 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14318
14319 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
14320
14321 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14322 of conditions.
14323
14324 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14325
14326 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14327
14328 2012-02-24 Luis Machado <lgustavo@codesourcery>
14329
14330 * server.c (handle_query): Advertise support for target-side
14331 breakpoint condition evaluation.
14332 (process_point_options): New function.
14333 (process_serial_event): When inserting a breakpoint, check for
14334 a target-side condition that should be evaluated.
14335
14336 * mem-break.c: Include regcache.h and ax.h.
14337 (point_cond_list_t): New data structure.
14338 (breakpoint) <cond_list>: New field.
14339 (find_gdb_breakpoint_at): Make non-static.
14340 (delete_gdb_breakpoint_at): Clear any target-side
14341 conditions.
14342 (clear_gdb_breakpoint_conditions): New function.
14343 (add_condition_to_breakpoint): Likewise.
14344 (add_breakpoint_condition): Likewise.
14345 (gdb_condition_true_at_breakpoint): Likewise.
14346 (gdb_breakpoint_here): Return result directly instead
14347 of going through a local variable.
14348
14349 * mem-break.h (find_gdb_breakpoint_at): New prototype.
14350 (clear_gdb_breakpoint_conditions): Likewise.
14351 (add_breakpoint_condition): Likewise.
14352 (gdb_condition_true_at_breakpoint): Likewise.
14353
14354 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
14355 (need_step_over_p): Take target-side breakpoint condition into
14356 consideration.
14357
14358 2012-02-24 Luis Machado <lgustavo@codesourcery>
14359
14360 * server.h: Include tracepoint.h.
14361 (agent_mem_read, agent_get_trace_state_variable_value,
14362 agent_set_trace_state_variable_value,
14363 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
14364 get_set_tsv_func_addr): New prototypes.
14365
14366 * ax.h: New include file.
14367 * ax.c: New source file.
14368
14369 * tracepoint.c: Include ax.h.
14370 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
14371 agent_expr, eval_result_type): Move to ax.h.
14372 (parse_agent_expr): Rename to ...
14373 (gdb_parse_agent_expr): ... this, make it non-static and move
14374 to ax.h.
14375 (unparse_agent_expr) Rename to ...
14376 (gdb_unparse_agent_expr): ... this, make it non-static and move
14377 to ax.h.
14378 (eval_agent_expr): Rename to ...
14379 (eval_tracepoint_agent_expr): ... this.
14380 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
14381 forward declarations.
14382 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
14383 (agent_get_trace_state_variable_value): New function.
14384 (agent_set_trace_state_variable_value): New function.
14385 (cmd_qtdp): Call gdb_parse_agent_expr (...).
14386 (response_tracepoint): Call gdb_unparse_agent_expr (...).
14387 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
14388 (condition_true_at_tracepoint): Likewise.
14389 (parse_agent_expr): Rename to ...
14390 (gdb_parse_agent_expr): ... this and move to ax.c.
14391 (unparse_agent_expr): Rename to ...
14392 (gdb_unparse_agent_expr): ... this and move to ax.c.
14393 (gdb_agent_op_name): Move to ax.c.
14394 (eval_agent_expr): Rename to ...
14395 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
14396 and move to ax.c.
14397 (eval_tracepoint_agent_expr): New function.
14398 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
14399 non-static.
14400 (current_insn_ptr, emit_error, struct bytecode_address): Move to
14401 ax.c.
14402 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
14403 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
14404 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
14405 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
14406 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
14407 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
14408 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
14409 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
14410 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
14411 (compile_bytecodes): Remove forward declaration.
14412 (is_goto_target): Move to ax.c.
14413 (compile_bytecodes): Move to ax.c and call
14414 agent_get_trace_state_variable_value (...) and
14415 agent_set_trace_state_variable_value (...).
14416
14417 * Makefile.in: Update ax.c and IPA dependencies.
14418
14419 2012-02-24 Pedro Alves <palves@redhat.com>
14420
14421 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
14422 (cmd_bigqtbuffer_circular): ... this. Only handle
14423 'QTBuffer:circular:'.
14424 (handle_tracepoint_general_set): Adjust.
14425
14426 2012-02-16 Yao Qi <yao@codesourcery.com>
14427
14428 * inferiors.c: Move code to ...
14429 * dll.c: .... here. New.
14430 * server.h: Declare clear_dlls.
14431 * Makefile.in (SFILES): Add dll.c.
14432 (OBS): Add dll.o
14433 (dll.o): New rule.
14434
14435 2012-02-11 Yao Qi <yao@codesourcery.com>
14436
14437 * server.c: (handle_monitor_command): Add a new parameter
14438 `own_buf'.
14439 (handle_query): Update caller.
14440
14441 2012-02-09 Joel Brobecker <brobecker@adacore.com>
14442
14443 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
14444 * configure, config.in: Regenerate.
14445 * hostio.c: Provide an alternate implementation if HAVE_READLINK
14446 is not defined.
14447
14448 2012-02-02 Pedro Alves <palves@redhat.com>
14449
14450 Try SIGKILL first, then PTRACE_KILL.
14451 * linux-low.c (linux_kill_one_lwp): New.
14452 (linux_kill_one_lwp): Rename to ...
14453 (kill_one_lwp_callback): ... this. Use the new
14454 linux_kill_one_lwp.
14455
14456 2012-02-02 Pedro Alves <palves@redhat.com>
14457
14458 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
14459 inferior.
14460
14461 2012-01-27 Pedro Alves <palves@redhat.com>
14462
14463 * linux-low.c (linux_child_pid_to_exec_file): Delete.
14464 (elf_64_file_p): Make static.
14465 (linux_pid_exe_is_elf_64_file): New.
14466 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
14467 Delete declarations.
14468 (linux_pid_exe_is_elf_64_file): Declare.
14469 * linux-x86-low.c (x86_arch_setup): Use
14470 linux_pid_exe_is_elf_64_file.
14471
14472 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14473
14474 * linux-low.c (linux_wait_for_event_1): Rename to ...
14475 (linux_wait_for_event): ... here and merge it with former
14476 linux_wait_for_event - new variable wait_ptid, use it.
14477 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
14478
14479 2012-01-23 Pedro Alves <palves@redhat.com>
14480
14481 * server.c (main): Avoid yet another case of infinite loop while
14482 detaching/killing after a longjmp.
14483
14484 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14485
14486 Code cleanup.
14487 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
14488
14489 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
14490
14491 * hostio.c (handle_readlink): New function.
14492 (handle_vFile): Call it to handle "vFile:readlink" packets.
14493
14494 2012-01-20 Pedro Alves <palves@redhat.com>
14495 Ulrich Weigand <ulrich.weigand@linaro.org>
14496
14497 * server.c (handle_v_requests): Only support vAttach and vRun to
14498 start multiple processes when in extended protocol mode.
14499
14500 2012-01-17 Pedro Alves <palves@redhat.com>
14501
14502 * tracepoint.c (initialize_tracepoint): Use mmap instead of
14503 memalign plus mprotect to allocate the scratch buffer.
14504
14505 2012-01-13 Pedro Alves <palves@redhat.com>
14506
14507 * server.c (attach_inferior): Clear `cont_thread'.
14508
14509 2012-01-13 Pedro Alves <palves@redhat.com>
14510
14511 * server.c (main): Avoid infinite loop while detaching/killing
14512 after a longjmp.
14513
14514 2012-01-09 Doug Evans <dje@google.com>
14515
14516 * server.c (start_inferior): Set last_ptid in --wrapper case.
14517
14518 2012-01-06 Yao Qi <yao@codesourcery.com>
14519
14520 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
14521 defined.
14522 [IN_PROCESS_AGENT] (debug_agent): New global variable.
14523
14524 2012-01-04 Yao Qi <yao@codesourcery.com>
14525
14526 * tracepoint.c (cmd_qtdp): Print debug message
14527 for static tracepoint.
14528
14529 2012-01-04 Yao Qi <yao@codesourcery.com>
14530
14531 * tracepoint.c (trace_vdebug): Differentiate debug message
14532 between gdbserver and IPA.
14533
14534 2012-01-03 Yao Qi <yao@codesourcery.com>
14535
14536 * tracepoint.c (tracepoint_was_hit): Don't collect for
14537 static tracepoint.
14538
14539 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14540
14541 * terminal.h: Reformat copyright header.
14542
14543 2012-01-02 Joel Brobecker <brobecker@adacore.com>
14544
14545 * server.c (gdbserver_version): Update copyright year.
14546 * gdbreplay.c (gdbreplay_version): Likewise.
14547
14548 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
14549
14550 * linux-low.c (linux_create_inferior): Put empty if clause for write.
14551
14552 Revert:
14553 2011-12-18 Hui Zhu <teawater@gmail.com>
14554 * linux-low.c (linux_create_inferior): Save return value to ret.
14555
14556 2011-12-18 Hui Zhu <teawater@gmail.com>
14557
14558 * linux-low.c (linux_create_inferior): Save return value to ret.
14559
14560 2011-12-16 Doug Evans <dje@google.com>
14561
14562 * linux-low.c (linux_create_inferior): If stdio connection,
14563 redirect stdin from /dev/null, stdout to stderr.
14564 * remote-utils.c (remote_is_stdio): New static global.
14565 (remote_connection_is_stdio): New function.
14566 (remote_prepare): Handle stdio connection.
14567 (remote_open): Ditto.
14568 (remote_close): Don't close stdin for stdio connections.
14569 (read_prim,write_prim): New functions. Replace all calls to
14570 read/write to these.
14571 * server.c (main): Watch for "-" argument. Move call to
14572 remote_prepare before start_inferior.
14573 * server.h (STDIO_CONNECTION_NAME): New macro.
14574 (remote_connection_is_stdio): Declare.
14575
14576 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
14577 in debugging output.
14578
14579 2011-12-15 Yao Qi <yao@codesourcery.com>
14580
14581 * tracepoint.c: Include sys/syscall.h.
14582 (gdb_ust_thread): Remove preprocessor conditional.
14583
14584 2011-12-14 Pedro Alves <pedro@codesourcery.com>
14585
14586 * linux-low.c (linux_detach_one_lwp): Call
14587 the_low_target.prepare_to_resume before detaching.
14588
14589 2011-12-14 Yao Qi <yao@codesourcery.com>
14590
14591 * tracepoint.c (gdb_ust_thread): Don't ignore return value
14592 of write.
14593
14594 2011-12-14 Yao Qi <yao@codesourcery.com>
14595
14596 * i386-low.c (i386_low_stopped_data_address): Initialize local
14597 variable `control'.
14598
14599 2011-12-13 Pedro Alves <pedro@codesourcery.com>
14600
14601 PR remote/13492
14602
14603 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
14604 DR_CONTROL unless necessary. Extend comments.
14605 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
14606 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
14607
14608 2011-12-13 Yao Qi <yao@codesourcery.com>
14609
14610 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
14611 macros.
14612 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
14613
14614 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
14615
14616 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
14617 Print new debug message for such case.
14618
14619 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14620
14621 Fix overlapping memcpy.
14622 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
14623 the read_inferior_memory transfer.
14624 (delete_fast_tracepoint_jump): New variable buf. Use it for the
14625 write_inferior_memory transfer.
14626 (set_fast_tracepoint_jump): New variable buf. Use it for the
14627 read_inferior_memory and write_inferior_memory transfers.
14628 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
14629 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
14630 Use it for the write_inferior_memory transfer.
14631 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
14632 buffers.
14633
14634 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14635
14636 * linux-low.c (fetch_register, store_register): Make code
14637 consistent, fix formatting.
14638
14639 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
14640
14641 * linux-low.c (usr_store_inferior_registers): Factor out code
14642 to handle individual registers into...
14643 (store_register): ... this new function.
14644
14645 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
14646
14647 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
14648 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
14649 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
14650 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
14651 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
14652 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
14653 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
14654 (srv_xmlfiles): Add new XML files.
14655
14656 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
14657 and <sys/uio.h>.
14658 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
14659 (init_registers_s390_linux32v1): Add prototype.
14660 (init_registers_s390_linux32v2): Likewise.
14661 (init_registers_s390_linux64v1): Likewise.
14662 (init_registers_s390_linux64v2): Likewise.
14663 (init_registers_s390x_linux64v1): Likewise.
14664 (init_registers_s390x_linux64v2): Likewise.
14665 (s390_num_regs): Increment to 52.
14666 (s390_regmap): Add orig_r2 register.
14667 (s390_num_regs_3264): Increment to 68.
14668 (s390_regmap_3264): Add orig_r2 register.
14669 (s390_collect_ptrace_register): Handle orig_r2 register.
14670 (s390_supply_ptrace_register): Likewise.
14671 (s390_fill_last_break): New function.
14672 (s390_store_last_break): Likewise.
14673 (s390_fill_system_call): New function.
14674 (s390_store_system_call): Likewise.
14675 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
14676 register sets.
14677 (s390_check_regset): New function.
14678 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
14679 NT_S390_SYSTEM_CALL regsets and use appropriate description.
14680 Update target_regsets for available register sets.
14681
14682 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
14683 Jan Kratochvil <jan.kratochvil@redhat.com>
14684
14685 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
14686 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
14687 New.
14688 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
14689 * linux-low.h (struct process_info_private): New member r_debug.
14690 * server.c (handle_qxfer_libraries): Call
14691 the_target->qxfer_libraries_svr4.
14692 (handle_qxfer_libraries_svr4): New function.
14693 (qxfer_packets): New entry "libraries-svr4".
14694 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
14695 * target.h (struct target_ops): New member qxfer_libraries_svr4.
14696 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
14697 PACKET_qXfer_libraries_svr4.
14698
14699 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
14700
14701 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
14702 PSW address/mask between 8-byte and 16-byte formats.
14703 (s390_supply_ptrace_register): Likewise.
14704 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
14705 basic addressing mode bit.
14706
14707 2011-11-24 Stan Shebs <stan@codesourcery.com>
14708
14709 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
14710
14711 2011-11-17 Stan Shebs <stan@codesourcery.com>
14712
14713 * tracepoint.c (struct tracepoint): New field traceframe_usage.
14714 (tracing_start_time): New global.
14715 (tracing_stop_time): New global.
14716 (tracing_user_name): New global.
14717 (tracing_notes): New global.
14718 (tracing_stop_note): New global.
14719 (cmd_qtstart): Set traceframe_usage, start_time.
14720 (stop_tracing): Set stop_time.
14721 (cmd_qtstatus): Report additional status.
14722 (cmd_qtp): New function.
14723 (handle_tracepoint_query): Call it.
14724 (cmd_qtnotes): New function.
14725 (handle_tracepoint_general_set): Call it.
14726 (get_timestamp): Rename from tsv_get_timestamp.
14727
14728 2011-11-14 Stan Shebs <stan@codesourcery.com>
14729 Kwok Cheung Yeung <kcy@codesourcery.com>
14730
14731 * linux-x86-low.c (small_jump_insn): New.
14732 (i386_install_fast_tracepoint_jump_pad): Add arguments for
14733 trampoline and error message, build a trampoline and issue a small
14734 jump instruction to it.
14735 (x86_install_fast_tracepoint_jump_pad): Add arguments for
14736 trampoline and error message.
14737 (x86_get_min_fast_tracepoint_insn_len): New.
14738 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
14739 * linux-low.h (struct linux_target_ops): Add arguments to
14740 install_fast_tracepoint_jump_pad operation, add new operation.
14741 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
14742 arguments.
14743 (linux_get_min_fast_tracepoint_insn_len): New function.
14744 (linux_target_op): Add new operation.
14745 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
14746 (gdb_trampoline_buffer_end): Ditto.
14747 (gdb_trampoline_buffer_error): Ditto.
14748 (struct ipa_sym_addresses): Add fields for new IPA variables.
14749 (symbol_list): Add entries for new IPA variables.
14750 (struct tracepoint): Add fields to hold the address range of the
14751 trampoline used by the tracepoint.
14752 (trampoline_buffer_head): New static variable.
14753 (trampoline_buffer_tail): Ditto.
14754 (claim_trampoline_space): New function.
14755 (have_fast_tracepoint_trampoline_buffer): New function.
14756 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14757 structure.
14758 (install_fast_tracepoint): Ditto, also add error buffer argument.
14759 (cmd_qtminftpilen): New function.
14760 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14761 (fast_tracepoint_from_trampoline_address): New function.
14762 (fast_tracepoint_collecting): Handle trampoline as part of jump
14763 pad space.
14764 (set_trampoline_buffer_space): New function.
14765 (initialize_tracepoint): Initialize new IPA variables.
14766 * target.h (struct target_ops): Add arguments to
14767 install_fast_tracepoint_jump_pad operation, add new
14768 get_min_fast_tracepoint_insn_len operation.
14769 (target_get_min_fast_tracepoint_insn_len): New.
14770 (install_fast_tracepoint_jump_pad): Add arguments.
14771 * server.h (IPA_BUFSIZ): Define.
14772 * linux-i386-ipa.c: Include extra header files.
14773 (initialize_fast_tracepoint_trampoline_buffer): New function.
14774 (initialize_low_tracepoint): Call it.
14775 * server.h (set_trampoline_buffer_space): Declare.
14776 (claim_trampoline_space): Ditto.
14777 (have_fast_tracepoint_trampoline_buffer): Ditto.
14778
14779 2011-11-14 Yao Qi <yao@codesourcery.com>
14780
14781 * server.c (handle_query): Handle InstallInTrace for qSupported.
14782 * tracepoint.c (add_tracepoint): Sort list.
14783 (install_tracepoint, download_tracepoint): New.
14784 (cmd_qtdp): Call them to install and download tracepoints.
14785 (sort_tracepoints): Removed.
14786 (cmd_qtstart): Update.
14787
14788 2011-11-14 Yao Qi <yao@codesourcery.com>
14789
14790 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14791 * mem-break.h: Declare.
14792 * tracepoint.c (cmd_qtstart): Move some code to ...
14793 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
14794 New.
14795 (download_tracepoints): Move some code to ...
14796 (download_tracepoint_1): ... here. New.
14797
14798 2011-11-08 Yao Qi <yao@codesourcery.com>
14799
14800 * remote-utils.c (relocate_instruction): A comment fix.
14801
14802 2011-11-07 Joel Brobecker <brobecker@adacore.com>
14803
14804 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
14805 (i386_dr_low_get_control, i386_dr_low_get_status): Use
14806 dr_status_mirror and dr_control_mirror from debug_reg_state.
14807 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
14808 (i386_initial_stuff): Remove use of deleted globals.
14809 (i386_get_thread_context, i386_set_thread_context,
14810 i386_thread_added): Use dr_status_mirror and dr_control_mirror
14811 from debug_reg_state.
14812
14813 2011-11-05 Yao Qi <yao@codesourcery.com>
14814
14815 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14816 address as TPOINT's.
14817
14818 2011-11-02 Stan Shebs <stan@codesourcery.com>
14819
14820 * tracepoint.c (agent_mem_read_string): New function.
14821 (eval_agent_expr): Call it for tracenz.
14822 * server.c (handle_query): Report support for tracenz.
14823
14824 2011-11-02 Yao Qi <yao@codesourcery.com>
14825
14826 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14827
14828 2011-11-02 Yao Qi <yao@codesourcery.com>
14829
14830 * target.h: Fix a typo in comment.
14831
14832 2011-10-31 Pedro Alves <pedro@codesourcery.com>
14833
14834 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
14835 clobber the breakpoints' shadows with fast tracepoint jumps.
14836 * mem-break.h (check_mem_write): Add `myaddr' parameter.
14837 * target.c (write_inferior_memory): Also pass MYADDR down to
14838 check_mem_write.
14839
14840 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14841
14842 * configure.ac: Check support for personality routine.
14843 * configure: Regenerate.
14844 * config.in: Likewise.
14845 * linux-low.c: Include <sys/personality.h>.
14846 Define ADDR_NO_RANDOMIZE if necessary.
14847 (linux_create_inferior): Disable address space randomization when
14848 forking inferior, if requested.
14849 (linux_supports_disable_randomization): New function.
14850 (linux_target_ops): Install it.
14851 * server.h (disable_randomization): Declare.
14852 * server.c (disable_randomization): New global variable.
14853 (handle_general_set): Handle QDisableRandomization.
14854 (handle_query): Likewise for qSupported.
14855 (main): Support --disable-randomization and --no-disable-randomization
14856 command line arguments.
14857 * target.h (struct target_ops): Add supports_disable_randomization.
14858 (target_supports_disable_randomization): New macro.
14859
14860 2011-09-29 Mike Frysinger <vapier@gentoo.org>
14861
14862 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
14863 ifdef check.
14864 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
14865 [!PT_GETDSBT] (target_loadmap): New definition.
14866 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
14867 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
14868 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
14869 and PT_GETDSBT to LINUX_LOADMAP.
14870 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
14871 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
14872
14873 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14874
14875 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
14876 (arm_linux_hwbp_cap): New static variable.
14877 (arm_linux_get_hwbp_cap): Replace by ...
14878 (arm_linux_init_hwbp_cap): ... this new function.
14879 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
14880 (arm_linux_get_hw_watchpoint_count): Likewise.
14881 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14882 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
14883 (arm_prepare_to_resume): Use perror_with_name instead of error.
14884
14885 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14886
14887 * linux-arm-low.c: Include <signal.h>.
14888 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
14889 (struct arm_linux_hwbp_cap): New data type.
14890 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
14891 (struct arm_linux_hw_breakpoint): New data type.
14892 (MAX_BPTS, MAX_WPTS): Define.
14893 (struct arch_process_info, struct arch_lwp_info): New data types.
14894 (arm_linux_get_hwbp_cap): New function.
14895 (arm_linux_get_hw_breakpoint_count): Likewise.
14896 (arm_linux_get_hw_watchpoint_count): Likewise.
14897 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14898 (arm_hwbp_control_initialize): Likewise.
14899 (arm_hwbp_control_is_enabled): Likewise.
14900 (arm_hwbp_control_is_initialized): Likewise.
14901 (arm_hwbp_control_disable): Likewise.
14902 (arm_linux_hw_breakpoint_equal): Likewise.
14903 (arm_linux_hw_point_initialize): Likewise.
14904 (struct update_registers_data): New data structure.
14905 (update_registers_callback: New function.
14906 (arm_insert_point): Likewise.
14907 (arm_remove_point): Likewise.
14908 (arm_stopped_by_watchpoint): Likewise.
14909 (arm_stopped_data_address): Likewise.
14910 (arm_new_process): Likewise.
14911 (arm_new_thread): Likewise.
14912 (arm_prepare_to_resume): Likewise.
14913 (the_low_target): Register arm_insert_point, arm_remove_point,
14914 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
14915 arm_new_thread, and arm_prepare_to_resume.
14916
14917 2011-09-15 Stan Shebs <stan@codesourcery.com>
14918
14919 * server.h (struct emit_ops): Add compare-goto fields.
14920 * tracepoint.c (gdb_agent_op_sizes): New table.
14921 (emit_eq_goto): New function.
14922 (emit_ne_goto): New function.
14923 (emit_lt_goto): New function.
14924 (emit_le_goto): New function.
14925 (emit_gt_goto): New function.
14926 (emit_ge_goto): New function.
14927 (is_goto_target): New function.
14928 (compile_bytecodes): Recognize special cases of compare-goto
14929 combinations and call specialized emitters for them.
14930 * linux-x86-low.c (amd64_emit_eq_goto): New function.
14931 (amd64_emit_ne_goto): New function.
14932 (amd64_emit_lt_goto): New function.
14933 (amd64_emit_le_goto): New function.
14934 (amd64_emit_gt_goto): New function.
14935 (amd64_emit_ge_goto): New function.
14936 (amd64_emit_ops): Add the new functions.
14937 (i386_emit_eq_goto): New function.
14938 (i386_emit_ne_goto): New function.
14939 (i386_emit_lt_goto): New function.
14940 (i386_emit_le_goto): New function.
14941 (i386_emit_gt_goto): New function.
14942 (i386_emit_ge_goto): New function.
14943 (i386_emit_ops): Add the new functions.
14944
14945 2011-09-08 Stan Shebs <stan@codesourcery.com>
14946
14947 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14948 (i386_emit_epilogue): Restore %ebx.
14949
14950 2011-08-31 Jie Zhang <jzhang918@gmail.com>
14951
14952 * server.c (step_thread): Remove definition.
14953 (process_serial_event): Don't handle Hs.
14954 * server.h (step_thread): Remove declaration.
14955 * target.c (set_desired_inferior): Remove use of step_thread.
14956
14957 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14958
14959 * linux-low.c: Include linux-procfs.h.
14960 (linux_attach_lwp_1): Update comments.
14961 (linux_attach): Scan for existing threads when attaching to a
14962 process that is the tgid.
14963 * Makefile.in: Update dependencies.
14964
14965 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14966
14967 * configure.srv: Add linux-procfs.o dependencies.
14968
14969 2011-08-14 Yao Qi <yao@codesourcery.com>
14970
14971 * target.h (struct target_ops): Fix indent.
14972 * win32-low.c (win32_target_ops): Fix comment.
14973
14974 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
14975 Yao Qi <yao@codesourcery.com>
14976
14977 * Makefile.in (clean): Remove tic6x-*.c files.
14978 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
14979 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
14980 (tic6x-c64xp-linux.c): Likewise.
14981 * configure.srv: Add support for tic6x-*-uclinux.
14982 * linux-tic6x-low.c: New.
14983 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
14984
14985 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
14986 Yao Qi <yao@codesourcery.com>
14987
14988 * target.h (struct target_ops): Add read_loadmap.
14989 * linux-low.c (struct target_loadseg): New type.
14990 (struct target_loadmap): New type.
14991 (linux_read_loadmap): New function.
14992 (linux_target_ops): Add linux_read_loadmap.
14993 * server.c (handle_query): Support qXfer:fdpic:read packet.
14994 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14995 to NULL.
14996
14997 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14998
14999 * win32-low.c: Include <stdint.h>.
15000
15001 2011-07-22 Pedro Alves <pedro@codesourcery.com>
15002
15003 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15004 to the inferior here.
15005 (i386_remove_aligned_watchpoint): Ditto.
15006 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15007 fit part of the watchpoint in the debug registers.
15008 (i386_update_inferior_debug_regs): New.
15009 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15010 registers, and only update the inferior on success.
15011 (i386_low_remove_watchpoint): Ditto.
15012
15013 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15014
15015 * linux-low.c (compare_ints, unique, list_threads, show_process,
15016 linux_core_of_thread): Delete.
15017 (linux_target_ops): Change linux_core_of_thread to
15018 linux_common_core_of_thread.
15019 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15020 * utils.c (malloc_failure): Change type of argument.
15021 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15022 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15023 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15024 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15025 (IPA_OBJS): Add common-utils-ipa.o.
15026 (ptid_h, linux_osdata_h): New macros.
15027 (server_h): Add common/common-utils.h, common/xml-utils.h,
15028 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15029 common/ptid.h.
15030 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15031 ptid.o, buffer.o): New rules.
15032 (linux-low.o): Add common/linux-osdata.h as a dependency.
15033 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15034 * configure.ac: Add AC_HEADER_DIRENT check.
15035 * config.in: Regenerate.
15036 * configure: Regenerate.
15037 * remote-utils.c (xml_escape_text): Delete.
15038 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15039 buffer_xml_printf): Move to common/buffer.c.
15040 * server.c (main): Remove call to initialize_inferiors.
15041 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15042 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15043 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15044 internal_error, gdb_assert, gdb_assert_fail): Delete.
15045 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15046 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15047 common/buffer.h.
15048 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15049 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15050 initialize_inferiors): Delete.
15051
15052 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15053
15054 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15055 symbol error.
15056
15057 2011-05-31 Pedro Alves <pedro@codesourcery.com>
15058
15059 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15060 assertion.
15061 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15062
15063 2011-05-26 Yao Qi <yao@codesourcery.com>
15064
15065 * Makefile.in (thread-db.o): Track dependence to
15066 common/gdb_thread_db.h.
15067 * thread-db.c: include gdb_thread_db.h from right place.
15068
15069 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15070
15071 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15072 __FILE__ and __LINE__ to internal_error.
15073
15074 2011-05-13 Doug Evans <dje@google.com>
15075
15076 * thread-db.c (try_thread_db_load_from_sdir): New function.
15077 (try_thread_db_load_from_dir): New function.
15078 (thread_db_load_search): Handle $sdir, ignore $pdir.
15079 Remove trying of system directories if search of
15080 libthread-db-search-path fails, that is now done via $sdir.
15081
15082 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15083
15084 * server.c (handle_query): Add EnableDisableTracepoints to the list
15085 of supported features.
15086 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15087 tracepoints.
15088 (cmd_qtenable_disable): New.
15089 (cmd_qtstart): Install tracepoints even if disabled.
15090 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15091 receiving a QTEnable or QTDisable packet.
15092 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15093 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15094 tracepoints.
15095 (gdb_probe): Skip data collection if static tracepoint is disabled.
15096
15097 2011-05-10 Doug Evans <dje@google.com>
15098
15099 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15100
15101 2011-05-04 Doug Evans <dje@google.com>
15102
15103 * linux-low.c (linux_join): Skip process lookup.
15104 * spu-low.c (spu_join): Ditto.
15105 * server.c (join_inferiors_callback): Delete.
15106 (process_serial_event): For 'D' packet (detach) call join_inferior
15107 directly.
15108
15109 2011-05-04 Joseph Myers <joseph@codesourcery.com>
15110
15111 * README: Don't mention xscale*-*-linux*.
15112 * configure.srv (xscale*-*-linux*): Don't handle target.
15113
15114 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15115
15116 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15117 casting pointers.
15118 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15119 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15120 (i386_emit_void_call_2): Likewise.
15121
15122 2011-04-26 Yao Qi <yao@codesourcery.com>
15123
15124 * linux-low.c: Move common macros to linux-ptrace.h.
15125 Include linux-ptrace.h.
15126 * Makefile.in (linux_ptrace_h): New.
15127 (linux-low.o): Depends on linux-ptrace.h.
15128
15129 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15130
15131 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15132 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15133 (remote_prepare): New function with most of the TCP code from ...
15134 (remote_open): ... here. Detect PORT here unconditionally. Move also
15135 setting transport_is_reliable.
15136 * server.c (run_once): New variable.
15137 (gdbserver_usage): Document it.
15138 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15139 the first run if RUN_ONCE.
15140 * server.h (run_once, remote_prepare): New declarations.
15141
15142 2011-04-19 Tom Tromey <tromey@redhat.com>
15143
15144 * win32-low.c (handle_load_dll): Remove duplicate "the".
15145
15146 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15147
15148 Remove support for old Cygwin 1.5 versions.
15149 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15150 function to avoid warning.
15151 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15152 warning.
15153
15154 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15155
15156 * gdbserver/server.h (Macro _): Define it if not available.
15157
15158 2011-03-14 Michael Snyder <msnyder@vmware.com>
15159
15160 * hostio.c (handle_close): Remove unnecessary null test.
15161
15162 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15163
15164 * Makefile.in (maintainer-clean realclean distclean): Remove
15165 "make ... subdir_do" command.
15166
15167 2011-03-10 Michael Snyder <msnyder@vmware.com>
15168
15169 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15170
15171 * server.c (handle_v_run): Free alloced buffer on early return.
15172
15173 2011-03-09 Yao Qi <yao@codesourcery.com>
15174
15175 Revert:
15176 2011-03-04 Yao Qi <yao@codesourcery.com>
15177
15178 * Makefile.in: Remove GNU make feature --directory.
15179
15180 2011-03-05 Yao Qi <yao@codesourcery.com>
15181
15182 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15183 (subdir_do): New make target. Copied from gdb/Makefile.
15184 (maintainer-clean, realclean, distclean, clean): Call corresponding
15185 make targets in common/Makefile.
15186
15187 2011-02-11 Yao Qi <yao@codesourcery.com>
15188
15189 * configure.ac: Call AC_PROG_RANLIB.
15190 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15191 * configure: Regenerate.
15192
15193 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15194
15195 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15196
15197 2011-03-06 Yao Qi <yao@codesourcery.com>
15198
15199 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15200
15201 2011-03-05 Yao Qi <yao@codesourcery.com>
15202
15203 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15204 (subdir_do): New make target. Copied from gdb/Makefile.
15205 (maintainer-clean, realclean, distclean, clean): Call corresponding
15206 make targets in common/Makefile.
15207
15208 2011-03-04 Yao Qi <yao@codesourcery.com>
15209
15210 * Makefile.in: Remove GNU make feature --directory.
15211
15212 2011-03-04 Michael Snyder <msnyder@vmware.com>
15213
15214 * server.c (queue_stop_reply): Call xmalloc not malloc.
15215
15216 2011-03-02 Michael Snyder <msnyder@vmware.com>
15217
15218 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15219
15220 2011-02-28 Michael Snyder <msnyder@vmware.com>
15221
15222 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15223 (cmd_qtframe): Ditto.
15224 (cmd_qtbuffer): Ditto.
15225 (cmd_bigqtbuffer): Ditto.
15226
15227 * utils.c (decimal2str): Initialize 'width' to nine, then
15228 don't mess with it.
15229
15230 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15231
15232 * hostio.c (require_data): Free *data, not data.
15233
15234 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15235
15236 * hostio.c (require_data): Use free, not xfree.
15237
15238 2011-02-27 Michael Snyder <msnyder@vmware.com>
15239
15240 * server.c (handle_query): Discard unused value.
15241
15242 * hostio.c (require_data): Free malloc memory before returning
15243 error.
15244
15245 2011-02-26 Michael Snyder <msnyder@vmware.com>
15246
15247 * linux-low.c (list_threads): Call closedir for dirent.
15248
15249 2011-02-27 Michael Snyder <msnyder@vmware.com>
15250
15251 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15252 a case statement falls through.
15253
15254 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15255
15256 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15257 in comparison.
15258
15259 2011-02-26 Michael Snyder <msnyder@vmware.com>
15260
15261 * utils.c (decimal2str): Eliminate dead code and dead param.
15262 (pulongest): Drop dead param from call to decimal2str.
15263 (plongest): Ditto.
15264
15265 2011-02-24 Joel Brobecker <brobecker@adacore.com>
15266
15267 Revert the following patch (not approved yet):
15268 2011-02-21 Hui Zhu <teawater@gmail.com>
15269 * tracepoint.c (tp_printf): New function.
15270 (eval_agent_expr): Handle gdb_agent_op_printf.
15271
15272 2011-02-21 Hui Zhu <teawater@gmail.com>
15273
15274 * tracepoint.c (tp_printf): New function.
15275 (eval_agent_expr): Handle gdb_agent_op_printf.
15276
15277 2011-02-18 Tom Tromey <tromey@redhat.com>
15278
15279 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15280 (tracepoint.o): Likewise.
15281 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15282 (gdb_agent_op_names): Likewise.
15283
15284 2011-02-18 Tom Tromey <tromey@redhat.com>
15285
15286 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15287 gdb_agent_op_rot>: New constants.
15288 (gdb_agent_op_names): Add pick and roll.
15289 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15290 cases.
15291
15292 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15293
15294 * aclocal.m4: Regenerated with aclocal-1.11.1.
15295
15296 2011-02-14 Pedro Alves <pedro@codesourcery.com>
15297
15298 * server.c (handle_qxfer_traceframe_info): New.
15299 (qxfer_packets): Register "traceframe-info".
15300 (handle_query): Report support for qXfer:traceframe-info:read+.
15301 * tracepoint.c (match_blocktype): New.
15302 (traceframe_find_block_type): Rename to ...
15303 (traceframe_walk_blocks): ... this. Add callback filter argument,
15304 and use it.
15305 (traceframe_find_block_type): New, reimplemented on top of
15306 traceframe_walk_blocks.
15307 (build_traceframe_info_xml): New.
15308 (traceframe_read_info): New.
15309 * server.h (traceframe_read_info): Declare.
15310
15311 2011-02-11 Yao Qi <yao@codesourcery.com>
15312
15313 * configure.ac: Call AC_PROG_RANLIB.
15314 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15315 * configure: Regenerate.
15316
15317 2011-02-07 Pedro Alves <pedro@codesourcery.com>
15318
15319 * server.c (gdb_read_memory): Change return semantics to allow
15320 partial transfers.
15321 (handle_search_memory_1): Adjust.
15322 (process_serial_event) <'m' packet>: Handle partial transfers.
15323 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15324
15325 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15326
15327 * regcache.c (init_register_cache): Initialize
15328 regcache->register_status.
15329 (free_register_cache): Release regcache->register_status.
15330 (regcache_cpy): Copy register_status.
15331 (registers_to_string): Print 'x's for unavailable registers.
15332 (supply_register): Mark the register's status valid or
15333 unavailable, depending on whether a buffer was passed in or not.
15334 (supply_register_zeroed): New.
15335 (supply_regblock): Mark the registers' status valid or
15336 unavailable, depending on whether a buffer was passed in or not.
15337 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15338 (struct regcache): New `register_status' field.
15339 (supply_register_zeroed): Declare.
15340 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15341 supply_register_zeroed, rather than passing a NULL buffer to
15342 supply_register.
15343 * tracepoint.c (fetch_traceframe_registers): Update comment.
15344
15345 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15346
15347 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
15348 buffer explicit.
15349
15350 2011-01-25 Pedro Alves <pedro@codesourcery.com>
15351
15352 * server.h (decode_xfer_write): Change prototype.
15353 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
15354 and don't extract the annex here.
15355 * server.c (decode_xfer_read): Remove `annex' parameter,
15356 and don't extract the annex here.
15357 (decode_xfer): New.
15358 (struct qxfer): New.
15359 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
15360 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
15361 (handle_qxfer_statictrace): New functions, abstracted out from
15362 handle_query, and made to use the struct qxfer interface.
15363 (handle_threads_qxfer_proper): Rename to ...
15364 (handle_qxfer_threads_proper): ... this.
15365 (handle_threads_qxfer): Rename to ...
15366 (handle_qxfer_threads): ... this. Adjust.
15367 (qxfer_packets): New array.
15368 (handle_qxfer): New function.
15369 (handle_query): Use handle_qxfer.
15370
15371 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
15372
15373 * gdbreplay.c: Shorten lines of >= 80 columns.
15374 * linux-low.c: Ditto.
15375 * linux-ppc-low.c: Ditto.
15376 * linux-s390-low.c: Ditto.
15377 * linux-sparc-low.c: Ditto.
15378 * linux-x86-low.c: Ditto.
15379 * linux-xtensa-low.c: Ditto.
15380 * mem-break.c: Ditto.
15381 * nto-low.c: Ditto.
15382 * regcache.h: Ditto.
15383 * remote-utils.c: Ditto.
15384 * server.c: Ditto.
15385 * server.h: Ditto.
15386 * thread-db.c: Ditto.
15387 * tracepoint.c: Ditto.
15388 * utils.c: Ditto.
15389 * win32-low.h: Ditto.
15390
15391 2011-01-05 Joel Brobecker <brobecker@adacore.com>
15392
15393 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
15394 update.
15395
15396 2011-01-01 Joel Brobecker <brobecker@adacore.com>
15397
15398 * server.c (gdbserver_version): Update copyright year in version
15399 output.
15400 * gdbreplay.c (gdbreplay_version): Ditto.
15401
15402 2010-12-29 Jie Zhang <jie.zhang@analog.com>
15403
15404 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
15405 * linux-bfin-low.c: New file.
15406 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
15407 PT_DATA_ADDR for BFIN targets.
15408 * Makefile.in (SFILES): Add linux-bfin-low.c.
15409 (clean): Remove reg-bfin.c.
15410 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
15411 * README: Mention supported Blackfin targets.
15412
15413 2010-12-23 Mike Frysinger <vapier@gentoo.org>
15414
15415 * .gitignore: New file.
15416
15417 2010-11-16 Mike Frysinger <vapier@gentoo.org>
15418
15419 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
15420
15421 2010-10-22 Jie Zhang <jie@codesourcery.com>
15422
15423 * Makefile.in: Add FLAGS_TO_PASS variable.
15424 (install): Remove dependency of install-only and recursively
15425 invoke make for install-only.
15426
15427 2010-10-04 Doug Evans <dje@google.com>
15428
15429 * Makefile.in (uninstall): Use $(DESTDIR).
15430
15431 2010-09-24 Pedro Alves <pedro@codesourcery.com>
15432
15433 PR gdb/11842
15434
15435 * linux-x86-low.c (compat_siginfo_from_siginfo)
15436 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
15437 si_code is < 0. Check for si_code == SI_TIMER before checking for
15438 si_code < 0.
15439
15440 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15441
15442 * lynx-i386-low.c: New file.
15443 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
15444
15445 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15446
15447 * lynx-low.c (ptrace_request_to_str): Remove handling for
15448 request values that have been removed in LynxOS 5.x.
15449
15450 2010-09-13 Joel Brobecker <brobecker@adacore.com>
15451
15452 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
15453 <ptrace.h>
15454
15455 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
15456
15457 * configure.ac: Add --enable-inprocess-agent option.
15458 * configure: Rebuilt.
15459
15460 2010-09-06 Yao Qi <yao@codesourcery.com>
15461
15462 * linux-low.c (linux_kill): Remove unused variable.
15463 (linux_stabilize_threads): Likewise.
15464 * server.c (start_inferior): Likewise.
15465 (queue_stop_reply_callback): Likewise.
15466 * tracepoint.c (do_action_at_tracepoint): Likewise.
15467
15468 2010-09-06 Yao Qi <yao@codesourcery.com>
15469
15470 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
15471 on return.
15472
15473 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15474
15475 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
15476
15477 2010-09-06 Pedro Alves <pedro@codesourcery.com>
15478
15479 * Makefile.in (install-only): Replace $IPA_DEPFILES with
15480 "$(IPA_DEPFILES)".
15481
15482 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15483
15484 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
15485 gdbserver/lynx-ppc-low.c: New files.
15486 * Makefile.in (lynx_low_h): New variable.
15487 (lynx-low.o, lynx-ppc-low.o): New rules.
15488 * configure.ac: On LynxOS, link with -lnetinet.
15489 * configure.srv: Add handling of powerpc-*-lynxos* targets.
15490 * configure: regenerate.
15491
15492 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15493
15494 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
15495 * configure.ac: Add check for vasprintf and vsnprintf.
15496 * configure, config.in: Regenerate.
15497 * server.h (vasprintf, vsnprintf): Add conditional declarations.
15498
15499 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15500
15501 * gdbreplay.c: Move include of alloca.h up, next to include of
15502 malloc.h.
15503 * server.h: Add include of malloc.h.
15504 * mem-break.c: Remove include of malloc.h.
15505 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
15506
15507 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15508
15509 * Makefile.in (memmem.o): Build with -Wno-error.
15510
15511 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15512
15513 * utils.c (xsnprintf): Make non-static.
15514 * server.h: Add xsnprintf declaration.
15515 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
15516 replace calls to snprintf by calls to xsnprintf throughout.
15517
15518 2010-09-01 Joel Brobecker <brobecker@adacore.com>
15519
15520 * configure.ac: Add configure check for alloca.
15521 * configure, config.in: Regenerate.
15522 * server.h: Include alloca.h if it exists.
15523 * gdbreplay.c: Include alloca.h if it exists.
15524
15525 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15526
15527 * linux-low.c (__SIGRTMIN): Define if not already defined.
15528 (linux_create_inferior): Check for __ANDROID__ rather than
15529 __SIGRTMIN.
15530 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
15531 are already deferred.
15532 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
15533 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
15534 stopped and already has a pending signal to report.
15535 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
15536 a pending signal to report or is moving out of a jump pad.
15537 (linux_init_signals): Check for __ANDROID__ rather than
15538 __SIGRTMIN.
15539
15540 2010-08-28 Pedro Alves <pedro@codesourcery.com>
15541
15542 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
15543 debug_threads check. Avoid a linear search when not doing debug
15544 output.
15545
15546 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15547
15548 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
15549 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
15550 (struct file_handler) <fd>: Change type to gdb_fildes_t.
15551 (process_event): Change local fd's type to gdb_fildes_t.
15552 (create_file_handler): Adjust prototype.
15553 (delete_file_handler): Adjust prototype.
15554 (handle_file_event): Adjust prototype. Use pfildes.
15555 (create_file_event): Adjsut prototype.
15556 * remote-utils.c (remote_desc, listen_desc): Change type to
15557 gdb_fildes_t.
15558 * server.h: New gdb_fildes_t typedef.
15559 [USE_WIN32API]: Include winsock2.h.
15560 (delete_file_handler, add_file_handler): Adjust prototypes.
15561 (pfildes): Declare.
15562 * utils.c (pfildes): New.
15563
15564 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15565
15566 * configure.ac (build_warnings): Add -Wno-char-subscripts.
15567 * configure: Regenerate.
15568
15569 2010-08-27 Pedro Alves <pedro@codesourcery.com>
15570
15571 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
15572 (linux_done_accessing_memory): ... this.
15573 (linux_target_ops): Adjust.
15574 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
15575 * nto-low.c (nto_target_ops): Adjust comment.
15576 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
15577 * spu-low.c (spu_target_ops): Adjust comment.
15578 * target.h (target_ops): Rename unprepare_to_access_memory field
15579 to done_accessing_memory.
15580 (unprepare_to_access_memory): Rename to ...
15581 (done_accessing_memory): ... this.
15582
15583 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15584
15585 * linux-low.c (linux_prepare_to_access_memory): New.
15586 (linux_unprepare_to_access_memory): New.
15587 (linux_target_ops): Install them.
15588 * server.c (read_memory): Rename to ...
15589 (gdb_read_memory): ... this. Use
15590 prepare_to_access_memory/prepare_to_access_memory.
15591 (write_memory): Rename to ...
15592 (gdb_write_memory): ... this. Use
15593 prepare_to_access_memory/prepare_to_access_memory.
15594 (handle_search_memory_1): Adjust.
15595 (process_serial_event): Adjust.
15596 * target.h (struct target_ops): New fields
15597 prepare_to_access_memory and unprepare_to_access_memory.
15598 (prepare_to_access_memory, unprepare_to_access_memory): New.
15599 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
15600 prepare_to_access_memory/prepare_to_access_memory.
15601 * nto-low.c (nto_target_ops): Adjust.
15602 * spu-low.c (spu_target_ops): Adjust.
15603 * win32-low.c (win32_target_ops): Adjust.
15604
15605 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15606
15607 * Makefile.in (WARN_CFLAGS): Get it from configure.
15608 (WERROR_CFLAGS): New.
15609 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
15610 * configure.ac: Introduce --enable-werror, which adds -Werror to
15611 the compiler command line. Enabled by default. Disable with
15612 --disable-werror. Add -Wdeclaration-after-statement
15613 Wpointer-arith and -Wformat-nonliteral to warning flags.
15614 * configure: Regenerate.
15615
15616 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15617
15618 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
15619
15620 2010-08-26 Pedro Alves <pedro@codesourcery.com>
15621
15622 * gdbreplay.c (remote_error): New.
15623 (gdbchar): New.
15624 (expect): Use gdbchar. Check for error reading from GDB.
15625 Clarify sync error output.
15626 (play): Check for errors writing to GDB.
15627 * linux-low.c (sigchld_handler): Really ignore `write' errors.
15628 * remote-utils.c (getpkt): Check for errors writing to the remote
15629 descriptor.
15630
15631 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15632
15633 * linux-low.c (linux_wait_1): Move non-debugging code out of
15634 `debug_threads' control.
15635
15636 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15637
15638 * linux-low.c (linux_wait_1): Don't set last_status here.
15639 * server.c (push_event, queue_stop_reply_callback): Assert we're
15640 not pushing a TARGET_WAITKIND_IGNORE event.
15641 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
15642 (myresume, handle_target_event): Set the thread's last_resume_kind
15643 and last_status from the target returned status.
15644
15645 2010-08-25 Pedro Alves <pedro@codesourcery.com>
15646
15647 PR threads/10729
15648
15649 * linux-x86-low.c (update_debug_registers_callback): New.
15650 (i386_dr_low_set_addr): Use it.
15651 (i386_dr_low_get_addr): New.
15652 (i386_dr_low_set_control): Use update_debug_registers_callback.
15653 (i386_dr_low_get_control): New.
15654 (i386_dr_low_get_status): Adjust.
15655 * linux-low.c (linux_stop_lwp): New.
15656 * linux-low.h (linux_stop_lwp): Declare.
15657
15658 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
15659 argument instead of a i386_debug_reg_state.
15660 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
15661 a i386_debug_reg_state.
15662 (i386_insert_aligned_watchpoint): Adjust.
15663 (i386_remove_aligned_watchpoint): Adjust.
15664 (i386_low_stopped_data_address): Read the debug registers from the
15665 inferior instead of from the mirrors.
15666 * i386-low.h (struct i386_debug_reg_state): Extend comment.
15667 (i386_dr_low_get_addr): Declare.
15668 (i386_dr_low_get_control): Declare.
15669 (i386_dr_low_get_status): Change prototype.
15670
15671 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
15672 (i386_dr_low_get_addr): New.
15673 (i386_dr_low_get_control): New.
15674 (i386_dr_low_get_status): Adjust prototype. Return
15675 dr_status_mirror.
15676 (i386_initial_stuff): Clear dr_status_mirror and
15677 dr_control_mirror.
15678 (i386_get_thread_context): Adjust.
15679 (i386_set_thread_context): Adjust.
15680 (i386_thread_added): Adjust.
15681
15682 2010-08-24 Pedro Alves <pedro@codesourcery.com>
15683
15684 * linux-low.h (linux_thread_area): Delete declaration.
15685
15686 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
15687
15688 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
15689 after its termination.
15690
15691 2010-08-09 Pedro Alves <pedro@codesourcery.com>
15692
15693 * linux-low.c (gdb_wants_lwp_stopped): Delete.
15694 (gdb_wants_all_stopped): Delete.
15695 (linux_wait_1): Don't call them.
15696 * server.c (handle_v_cont): Tag all threads as want-stopped.
15697 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
15698 stopped as "client-wants-stopped".
15699
15700 2010-07-31 Pedro Alves <pedro@codesourcery.com>
15701
15702 * Makefile.in (signals_h): New.
15703 (server_h): Depend on it.
15704 (server.o): Don't depend on $(signals_def).
15705 (signals.o): Depend on $(signals_def).
15706
15707 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
15708
15709 * Makefile.in (signals_def): New.
15710 (server_h): Append include/gdb/signals.h and signals_def.
15711 (server.o): Append signals_def.
15712
15713 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15714
15715 * server.c (handle_target_event): Use target_signal_to_host for
15716 resume_info.sig initialization.
15717 * target.h (struct thread_resume) <sig>: New comment.
15718
15719 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
15720
15721 * server.c (handle_query): strcpy() the returned string from paddress()
15722 instead of sprintf().
15723 * utils.c (paddress): Return phex_nz().
15724
15725 2010-07-07 Joel Brobecker <brobecker@adacore.com>
15726
15727 * server.c (handle_v_cont): Call mourn_inferior if process
15728 just exited.
15729 (myresume): Likewise.
15730
15731 2010-07-01 Pedro Alves <pedro@codesourcery.com>
15732
15733 Static tracepoints, and integration with UST.
15734
15735 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
15736 * mem-break.c (uninsert_all_breakpoints)
15737 (reinsert_all_breakpoints): New.
15738 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
15739 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
15740 (gdb_agent_ust_loaded, helper_thread_id)
15741 (gdb_agent_helper_thread_id): New macros.
15742 (struct ipa_sym_addresses): Add addr_ust_loaded,
15743 addr_helper_thread_id, addr_cmd_buf.
15744 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
15745 (in_process_agent_loaded_ust): New.
15746 (write_e_ust_not_loaded): New.
15747 (maybe_write_ipa_ust_not_loaded): New.
15748 (struct collect_static_trace_data_action): New.
15749 (enum tracepoint_type) <static_tracepoint>: New.
15750 (struct tracepoint) <handle>: Mention static tracepoints.
15751 (struct static_tracepoint_ctx): New.
15752 (CMD_BUF_SIZE): New.
15753 (add_tracepoint_action): Handle static tracepoint actions.
15754 (unprobe_marker_at): New.
15755 (clear_installed_tracepoints): Handle static tracepoints.
15756 (cmd_qtdp): Handle static tracepoints.
15757 (probe_marker_at): New.
15758 (cmd_qtstart): Handle static tracepoints.
15759 (response_tracepoint): Handle static tracepoints.
15760 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15761 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15762 (get_context_regcache): Handle static tracepoints.
15763 (do_action_at_tracepoint): Handle static tracepoint actions.
15764 (traceframe_find_block_type): Handle static trace data blocks.
15765 (traceframe_read_sdata): New.
15766 (download_tracepoints): Download static tracepoint actions.
15767 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15768 (GDB_PROBE_NAME): New.
15769 (ust_ops): New.
15770 (GET_UST_SYM): New.
15771 (USTF): New.
15772 (dlsym_ust): New.
15773 (ust_marker_to_static_tracepoint): New.
15774 (gdb_probe): New.
15775 (collect_ust_data_at_tracepoint): New.
15776 (gdb_ust_probe): New.
15777 (UNIX_PATH_MAX, SOCK_DIR): New.
15778 (gdb_ust_connect_sync_socket): New.
15779 (resume_thread, stop_thread): New.
15780 (run_inferior_command): New.
15781 (init_named_socket): New.
15782 (gdb_ust_socket_init): New.
15783 (cstr_to_hexstr): New.
15784 (next_st): New.
15785 (first_marker, next_marker): New.
15786 (response_ust_marker): New.
15787 (cmd_qtfstm, cmd_qtsstm): New.
15788 (unprobe_marker_at, probe_marker_at): New.
15789 (cmd_qtstmat, gdb_ust_thread): New.
15790 (gdb_ust_init): New.
15791 (initialize_tracepoint_ftlib): Call gdb_ust_init.
15792 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
15793 (ST_REGENTRY): New.
15794 (x86_64_st_collect_regmap): New.
15795 (X86_64_NUM_ST_COLLECT_GREGS): New.
15796 (AMD64_RIP_REGNUM): New.
15797 (supply_static_tracepoint_registers): New.
15798 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
15799 (ST_REGENTRY): New.
15800 (i386_st_collect_regmap): New.
15801 (i386_NUM_ST_COLLECT_GREGS): New.
15802 (supply_static_tracepoint_registers): New.
15803 * server.c (handle_query): Handle qXfer:statictrace:read.
15804 <qSupported>: Report support for StaticTracepoints, and
15805 qXfer:statictrace:read features.
15806 * server.h (traceframe_read_sdata)
15807 (supply_static_tracepoint_registers): Declare.
15808 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
15809 (unpack_varlen_hex): Include in IPA build.
15810 * Makefile.in (ustlibs, ustinc): New.
15811 (IPA_OBJS): Add remote-utils-ipa.o.
15812 ($(IPA_LIB)): Link -ldl and -lpthread.
15813 (UST_CFLAGS): New.
15814 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15815 * config.in, configure: Regenerate.
15816
15817 2010-06-20 Ian Lance Taylor <iant@google.com>
15818 Pedro Alves <pedro@codesourcery.com>
15819
15820 * linux-x86-low.c (always_true): Delete.
15821 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
15822 trying to fool the compiler with always_true.
15823
15824 2010-06-20 Pedro Alves <pedro@codesourcery.com>
15825
15826 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15827 conditions in gdbserver.
15828
15829 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15830
15831 * spu-low.c (spu_read_memory): Wrap around local store limit.
15832 (spu_write_memory): Likewise.
15833
15834 2010-06-15 Pedro Alves <pedro@codesourcery.com>
15835
15836 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
15837 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
15838 LONGEST uses.
15839 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15840 uses.
15841 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15842 uses with LONGEST uses.
15843
15844 2010-06-14 Stan Shebs <stan@codesourcery.com>
15845 Pedro Alves <pedro@codesourcery.com>
15846
15847 Bytecode compiler.
15848
15849 * linux-x86-low.c: Include limits.h.
15850 (add_insns): New.
15851 (always_true): New.
15852 (EMIT_ASM): New.
15853 (EMIT_ASM32): New.
15854 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
15855 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
15856 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
15857 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
15858 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
15859 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
15860 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
15861 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
15862 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
15863 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
15864 (amd64_emit_void_call_2): New.
15865 (amd64_emit_ops): New.
15866 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
15867 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
15868 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
15869 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
15870 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
15871 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
15872 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
15873 (i386_emit_call, i386_emit_reg, i386_emit_pop)
15874 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
15875 (i386_emit_stack_adjust, i386_emit_int_call_1)
15876 (i386_emit_void_call_2): New.
15877 (i386_emit_ops): New.
15878 (x86_emit_ops): New.
15879 (the_low_target): Install x86_emit_ops.
15880 * server.h (struct emit_ops): New.
15881 (get_raw_reg_func_addr): Declare.
15882 (current_insn_ptr, emit_error): Declare.
15883 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
15884 (set_trace_state_variable_value): New defines.
15885 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
15886 addr_get_trace_state_variable_value and
15887 addr_set_trace_state_variable_value.
15888 (symbol_list): New fields for get_raw_reg,
15889 get_trace_state_variable_value and set_trace_state_variable_value.
15890 (condfn): New typedef.
15891 (struct tracepoint): New field `compiled_cond'.
15892 (do_action_at_tracepoint): Clear compiled_cond.
15893 (get_trace_state_variable_value, set_trace_state_variable_value):
15894 Export in the IPA.
15895 (condition_true_at_tracepoint): If there's a compiled condition,
15896 run that.
15897 (current_insn_ptr, emit_error): New globals.
15898 (struct bytecode_address): New.
15899 (get_raw_reg_func_addr): New.
15900 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
15901 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
15902 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
15903 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
15904 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
15905 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
15906 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
15907 (compile_tracepoint_condition, compile_bytecodes): New.
15908 * target.h (emit_ops): Forward declare.
15909 (struct target_ops): New field emit_ops.
15910 (target_emit_ops): New.
15911 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
15912 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
15913 * linux-low.c (linux_emit_ops): New.
15914 (linux_target_ops): Install it.
15915 * linux-low.h (struct linux_target_ops): New field emit_ops.
15916
15917 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
15918
15919 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
15920 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
15921
15922 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15923 Stan Shebs <stan@codesourcery.com>
15924
15925 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
15926 (all): Depend on $(extra_libraries).
15927 (install-only): Install the IPA.
15928 (IPA_OBJS, IPA_LIB): New.
15929 (clean): Remove the IPA lib.
15930 (IPAGENT_CFLAGS): New.
15931 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
15932 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
15933 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
15934 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
15935 * configure.ac: Check for atomic builtins support in the compiler.
15936 (IPA_DEPFILES, extra_libraries): Define.
15937 * configure.srv (ipa_obj): Add description.
15938 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
15939 (i[34567]86-*-linux*): Set ipa_obj.
15940 (x86_64-*-linux*): Set ipa_obj.
15941 * linux-low.c (stabilizing_threads): New.
15942 (supports_fast_tracepoints): New.
15943 (linux_detach): Stabilize threads before detaching.
15944 (handle_tracepoints): Handle internal tracing breakpoints. Assert
15945 the lwp is either not stabilizing, or is moving out of a jump pad.
15946 (linux_fast_tracepoint_collecting): New.
15947 (maybe_move_out_of_jump_pad): New.
15948 (enqueue_one_deferred_signal): New.
15949 (dequeue_one_deferred_signal): New.
15950 (linux_wait_for_event_1): If moving out of a jump pad, defer
15951 pending signals to later.
15952 (linux_stabilize_threads): New.
15953 (linux_wait_1): Check if threads need moving out of jump pads, and
15954 do it if so.
15955 (stuck_in_jump_pad_callback): New.
15956 (move_out_of_jump_pad_callback): New.
15957 (lwp_running): New.
15958 (linux_resume_one_lwp): Handle moving out of jump pads.
15959 (linux_set_resume_request): Dequeue deferred signals.
15960 (need_step_over_p): Also step over fast tracepoint jumps.
15961 (start_step_over): Also uninsert fast tracepoint jumps.
15962 (finish_step_over): Also reinsert fast tracepoint jumps.
15963 (linux_install_fast_tracepoint_jump): New.
15964 (linux_target_ops): Install linux_stabilize_threads and
15965 linux_install_fast_tracepoint_jump_pad.
15966 * linux-low.h (linux_target_ops) <get_thread_area,
15967 install_fast_tracepoint_jump_pad>: New fields.
15968 (struct lwp_info) <collecting_fast_tracepoint,
15969 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
15970 (linux_get_thread_area): Declare.
15971 * linux-x86-low.c (jump_insn): New.
15972 (x86_get_thread_area): New.
15973 (append_insns): New.
15974 (push_opcode): New.
15975 (amd64_install_fast_tracepoint_jump_pad): New.
15976 (i386_install_fast_tracepoint_jump_pad): New.
15977 (x86_install_fast_tracepoint_jump_pad): New.
15978 (the_low_target): Install x86_get_thread_area and
15979 x86_install_fast_tracepoint_jump_pad.
15980 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
15981 (struct fast_tracepoint_jump): New.
15982 (fast_tracepoint_jump_insn): New.
15983 (fast_tracepoint_jump_shadow): New.
15984 (find_fast_tracepoint_jump_at): New.
15985 (fast_tracepoint_jump_here): New.
15986 (delete_fast_tracepoint_jump): New.
15987 (set_fast_tracepoint_jump): New.
15988 (uninsert_fast_tracepoint_jumps_at): New.
15989 (reinsert_fast_tracepoint_jumps_at): New.
15990 (set_breakpoint_at): Use write_inferior_memory.
15991 (uninsert_raw_breakpoint): Use write_inferior_memory.
15992 (check_mem_read): Mask out fast tracepoint jumps.
15993 (check_mem_write): Mask out fast tracepoint jumps.
15994 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15995 (set_fast_tracepoint_jump): Declare.
15996 (delete_fast_tracepoint_jump)
15997 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15998 (reinsert_fast_tracepoint_jumps_at): Declare.
15999 * regcache.c: Don't compile many functions when building the
16000 in-process agent library.
16001 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16002 the register buffer in the heap.
16003 (free_register_cache): If the register buffer isn't owned by the
16004 regcache, don't free it.
16005 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16006 pre-existing register caches.
16007 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16008 type.
16009 (convert_ascii_to_int): : Constify `from' parameter type.
16010 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16011 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16012 the needed buffer in-place.
16013 (relocate_instruction): New.
16014 * server.c (handle_query) <qSymbols>: If the target supports
16015 tracepoints, give it a chance of looking up symbols. Report
16016 support for fast tracepoints.
16017 (handle_status): Stabilize threads.
16018 (process_serial_event): Adjust.
16019 * server.h (struct fast_tracepoint_jump): Forward declare.
16020 (struct process_info) <fast_tracepoint_jumps>: New field.
16021 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16022 (decode_X_packet, decode_M_packet): Adjust.
16023 (relocate_instruction): Declare.
16024 (in_process_agent_loaded): Declare.
16025 (tracepoint_look_up_symbols): Declare.
16026 (struct fast_tpoint_collect_status): Declare.
16027 (fast_tracepoint_collecting): Declare.
16028 (force_unlock_trace_buffer): Declare.
16029 (handle_tracepoint_bkpts): Declare.
16030 (initialize_low_tracepoint)
16031 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16032 * target.h (struct target_ops) <stabilize_threads,
16033 install_fast_tracepoint_jump_pad>: New fields.
16034 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16035 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16036 [HAVE_STDINT_H]: Include stdint.h.
16037 (trace_debug_1): Rename to ...
16038 (trace_vdebug): ... this.
16039 (trace_debug): Rename to ...
16040 (trace_debug_1): ... this. Add `level' parameter.
16041 (trace_debug): New.
16042 (ATTR_USED, ATTR_NOINLINE): New.
16043 (IP_AGENT_EXPORT): New.
16044 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16045 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16046 (about_to_request_buffer_space, trace_buffer_is_full)
16047 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16048 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16049 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16050 (traceframe_write_count, traceframes_created)
16051 (trace_state_variables)
16052 New renaming defines.
16053 (struct ipa_sym_addresses): New.
16054 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16055 (symbol_list): New.
16056 (ipa_sym_addrs): New.
16057 (all_tracepoint_symbols_looked_up): New.
16058 (in_process_agent_loaded): New.
16059 (write_e_ipa_not_loaded): New.
16060 (maybe_write_ipa_not_loaded): New.
16061 (tracepoint_look_up_symbols): New.
16062 (debug_threads) [IN_PROCESS_AGENT]: New.
16063 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16064 (UNKNOWN_SIDE_EFFECTS): New.
16065 (stop_tracing): New.
16066 (flush_trace_buffer): New.
16067 (stop_tracing_bkpt): New.
16068 (flush_trace_buffer_bkpt): New.
16069 (read_inferior_integer): New.
16070 (read_inferior_uinteger): New.
16071 (read_inferior_data_pointer): New.
16072 (write_inferior_data_pointer): New.
16073 (write_inferior_integer): New.
16074 (write_inferior_uinteger): New.
16075 (struct collect_static_trace_data_action): Delete.
16076 (enum tracepoint_type): New.
16077 (struct tracepoint) <type>: New field `type'.
16078 <actions_str, step_actions, step_actions_str>: Only include in
16079 GDBserver.
16080 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16081 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16082 (tracepoints): Use IP_AGENT_EXPORT.
16083 (last_tracepoint): Don't include in the IPA.
16084 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16085 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16086 (alloced_trace_state_variables): New.
16087 (trace_state_variables): Use IP_AGENT_EXPORT.
16088 (traceframe_t): Delete unused variable.
16089 (circular_trace_buffer): Don't include in the IPA.
16090 (trace_buffer_start): Delete.
16091 (struct trace_buffer_control): New.
16092 (trace_buffer_free): Delete.
16093 (struct ipa_trace_buffer_control): New.
16094 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16095 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16096 New.
16097 (trace_buffer_ctrl): New.
16098 (TRACE_BUFFER_CTRL_CURR): New.
16099 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16100 Reimplement as macros.
16101 (trace_buffer_wrap): Delete.
16102 (traceframe_write_count, traceframe_read_count)
16103 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16104 (struct tracepoint_hit_ctx) <type>: New field.
16105 (struct fast_tracepoint_ctx): New.
16106 (memory_barrier): New.
16107 (cmpxchg): New.
16108 (record_tracepoint_error): Update atomically in the IPA.
16109 (clear_inferior_trace_buffer): New.
16110 (about_to_request_buffer_space): New.
16111 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16112 updating the same buffer.
16113 (add_tracepoint): Default the tracepoint's type to trap
16114 tracepoint, and orig_size to -1.
16115 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16116 internal variables.
16117 (create_trace_state_variable): New parameter `gdb'. Handle it.
16118 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16119 (cmd_qtdp): Handle fast tracepoints.
16120 (cmd_qtdv): Adjust.
16121 (max_jump_pad_size): New.
16122 (gdb_jump_pad_head): New.
16123 (get_jump_space_head): New.
16124 (claim_jump_space): New.
16125 (sort_tracepoints): New.
16126 (MAX_JUMP_SIZE): New.
16127 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16128 IPA.
16129 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16130 support. Upload fast traceframes, and delete internal IPA
16131 breakpoints.
16132 (stop_tracing_handler): New.
16133 (flush_trace_buffer_handler): New.
16134 (cmd_qtstop): Upload fast tracepoints.
16135 (response_tracepoint): Handle fast tracepoints.
16136 (tracepoint_finished_step): Upload fast traceframes. Set the
16137 tracepoint hit context's tracepoint type.
16138 (handle_tracepoint_bkpts): New.
16139 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16140 type. Add comment about fast tracepoints.
16141 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16142 non-existing action_str field.
16143 (get_context_regcache): Handle fast tracepoints.
16144 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16145 to the regcache.
16146 (fast_tracepoint_from_jump_pad_address): New.
16147 (fast_tracepoint_from_ipa_tpoint_address): New.
16148 (collecting_t): New.
16149 (force_unlock_trace_buffer): New.
16150 (fast_tracepoint_collecting): New.
16151 (collecting): New.
16152 (gdb_collect): New.
16153 (write_inferior_data_ptr): New.
16154 (target_tp_heap): New.
16155 (target_malloc): New.
16156 (download_agent_expr): New.
16157 (UALIGN): New.
16158 (download_tracepoints): New.
16159 (download_trace_state_variables): New.
16160 (upload_fast_traceframes): New.
16161 (IPA_FIRST_TRACEFRAME): New.
16162 (IPA_NEXT_TRACEFRAME_1): New.
16163 (IPA_NEXT_TRACEFRAME): New.
16164 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16165 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16166 (gdb_jump_pad_buffer_end): New.
16167 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16168 (initialize_tracepoint): Adjust.
16169 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16170 buffer. Initialize the low module.
16171 * utils.c (PREFIX, TOOLNAME): New.
16172 (malloc_failure): Use PREFIX.
16173 (error): In the IPA, an error causes an exit.
16174 (fatal, warning): Use PREFIX.
16175 (internal_error): Use TOOLNAME.
16176 (NUMCELLS): Increase to 10.
16177 * configure, config.in: Regenerate.
16178
16179 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16180
16181 * server.c (handle_query) <qSupported>: Do two passes over the
16182 qSupported string to avoid nesting strtok.
16183
16184 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16185
16186 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16187 (CDEPS): New.
16188 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16189 -Wl,--dynamic-list.
16190 * configure: Regenerate.
16191 * proc-service.list: New.
16192
16193 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16194
16195 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16196 New comment.
16197
16198 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16199
16200 * gdbreplay.c (remote_open): Check error return from socket() call by
16201 its equality to -1 not by it being negative.
16202 * remote-utils.c (remote_open): Likewise.
16203
16204 2010-05-23 Pedro Alves <pedro@codesourcery.com>
16205
16206 * config.h: Regenerate.
16207
16208 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16209
16210 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16211 doesn't provide PTRACE_GET_THREAD_AREA.
16212
16213 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16214
16215 * linux-m68k-low.c: Include <asm/ptrace.h>
16216 (ps_get_thread_area): Implement.
16217
16218 2010-05-03 Doug Evans <dje@google.com>
16219
16220 * event-loop.c (struct callback_event): New struct.
16221 (callback_list): New global.
16222 (append_callback_event, delete_callback_event): New functions.
16223 (process_callback): New function.
16224 (start_event_loop): Call it.
16225 * remote-utils.c (NOT_SCHEDULED): Define.
16226 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16227 moved out of readchar.
16228 (readchar): Rewrite. Call reschedule before returning.
16229 (reset_readchar): New function.
16230 (remote_close): Call it.
16231 (process_remaining, reschedule): New functions.
16232 * server.h (callback_handler_func): New typedef.
16233 (append_callback_event, delete_callback_event): Declare.
16234
16235 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16236
16237 * proc-service.c (ps_pglobal_lookup): Use
16238 thread_db_look_up_one_symbol.
16239 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16240 parameter. Use it instead of all_symbols_looked_up.
16241 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16242 field.
16243 (all_symbols_looked_up): Don't declare.
16244 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16245 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16246 field.
16247 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16248 Set all_symbols_looked_up here.
16249 (thread_db_look_up_one_symbol): New.
16250 (thread_db_get_tls_address): Adjust.
16251 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16252 thread_db object on the heap, and tentatively set it in the
16253 process structure.
16254 (thread_db_init): Don't set all_symbols_looked_up here.
16255 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16256
16257 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16258
16259 * linux-low.c (linux_kill, linux_detach): Adjust.
16260 (status_pending_p_callback): Remove redundant statement. Check
16261 for !TARGET_WAITIKIND_IGNORE, instead of
16262 TARGET_WAITKIND_STOPPED.
16263 (handle_tracepoints): Make sure LWP is locked. Adjust.
16264 (linux_wait_for_event_1): Adjust.
16265 (linux_cancel_breakpoints): New.
16266 (unsuspend_one_lwp): New.
16267 (unsuspend_all_lwps): New.
16268 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16269 (send_sigstop_callback): Change return type to int, add new
16270 `except' parameter and handle it.
16271 (suspend_and_send_sigstop_callback): New.
16272 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16273 pass them down. If SUSPEND, also increment the lwp's suspend
16274 count.
16275 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16276 (need_step_over_p): Don't consider suspended LWPs.
16277 (start_step_over): Adjust.
16278 (proceed_one_lwp): Change return type to int, add new `except'
16279 parameter and handle it.
16280 (unsuspend_and_proceed_one_lwp): New.
16281 (proceed_all_lwps): Use find_inferior instead of
16282 for_each_inferior.
16283 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16284 also decrement the suspend count of LWPs. Pass `except' down,
16285 instead of hacking its suspend count.
16286 (linux_pause_all): Add `freeze' parameter. Adjust.
16287 (linux_unpause_all): New.
16288 (linux_target_ops): Install linux_unpause_all.
16289 * server.c (handle_status): Adjust.
16290 * target.h (struct target_ops): New fields `unpause_all' and
16291 `cancel_breakpoints'. Add new parameter to `pause_all'.
16292 (pause_all): Add new `freeze' parameter.
16293 (unpause_all): New.
16294 (cancel_breakpoints): New.
16295 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16296 cancel breakpoints.
16297 (cmd_qtstart): Pause threads.
16298 (stop_tracing): Pause threads, and cancel breakpoints.
16299 * win32-low.c (win32_target_ops): Adjust.
16300
16301 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16302
16303 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16304 the inferior right away from here...
16305 (linux_wait_1): ... to here, and adjust to check the thread's
16306 last_resume_kind instead of the lwp's step or stop_expected flags.
16307
16308 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16309
16310 * README: Use consistent `GDB' and `GDBserver' spellings.
16311
16312 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16313
16314 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16315 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16316 (linux_detach_one_lwp): Assume the lwp is stopped.
16317 (any_thread_of): Delete.
16318 (linux_detach): Stop all lwps here. Don't blindly delete all
16319 breakpoints.
16320 (delete_lwp_callback): New.
16321 (linux_mourn): Delete all lwps of the process that is gone.
16322 (linux_wait_1): Don't delete the last lwp of the process here.
16323 * mem-break.h (mark_breakpoints_out): Declare.
16324 * mem-break.c (mark_breakpoints_out): New.
16325 (free_all_breakpoints): Use it.
16326 * server.c (handle_target_event): If the process is gone, mark
16327 breakpoints out.
16328 * thread-db.c (struct thread_db) <create_bp>: New field.
16329 (thread_db_enable_reporting): Fix prototype. Store a thread event
16330 breakpoint reference in the thread_db struct.
16331 (thread_db_load_search): Clear the thread_db object.
16332 (try_thread_db_load_1): Ditto.
16333 (switch_to_process): New.
16334 (disable_thread_event_reporting): Use it.
16335 (remove_thread_event_breakpoints): New.
16336 (thread_db_detach, thread_db_mourn): Use it.
16337
16338 2010-05-01 Pedro Alves <pedro@codesourcery.com>
16339
16340 * linux-low.c (linux_enable_event_reporting): New.
16341 (linux_wait_for_event_1, handle_extended_wait): Use it.
16342
16343 2010-04-30 Pedro Alves <pedro@codesourcery.com>
16344
16345 * linux-low.c (linux_kill_one_lwp, linux_kill)
16346 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
16347 (send_sigstop): Take an lwp_info as parameter instead. Queue a
16348 SIGSTOP even if the LWP is stopped.
16349 (send_sigstop_callback): New.
16350 (stop_all_lwps): Use send_sigstop_callback instead.
16351 (linux_resume_one_thread): Adjust.
16352 (proceed_one_lwp): Still proceed an LWP that the client has
16353 requested to stop, if we haven't reported it as stopped yet. Make
16354 sure that LWPs the client want stopped, have a pending SIGSTOP.
16355
16356 2010-04-26 Doug Evans <dje@google.com>
16357
16358 * server.c (handle_general_set): Make static.
16359
16360 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
16361 Print received char after testing for error/eof instead of before.
16362 (input_interrupt): Tweak comment.
16363
16364 2010-04-23 Doug Evans <dje@google.com>
16365
16366 * server.c (start_inferior): Print inferior argv if --debug.
16367
16368 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
16369
16370 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
16371 * nto-x86-low.c: Include server.h
16372
16373 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
16374
16375 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
16376 be consistent with other sources of this directory.
16377 (init_registers_amd64): Correct name of source file of this function
16378 in the comment.
16379
16380 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16381
16382 * configure.srv (x86_64-*-mingw*): New configuration for Windows
16383 64-bit executables.
16384
16385 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16386
16387 * win32-i386-low.c: Add 64-bit support.
16388 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
16389 (init_registers_amd64): Declare.
16390 (mappings): Add 64-bit version of array.
16391 (init_windows_x86): New function.
16392 (the_low_target): Change init_arch field to init_windows_x86.
16393
16394 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16395
16396 * win32-low.c: Adapt to support also 64-bit architecture.
16397 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
16398 (get_image_name): Use SIZE_T type for local variable `done'.
16399 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
16400 (toolhelp_get_dll_name): Idem.
16401 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
16402 Use uintptr_t typecast to avoid warning.
16403 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
16404 (handle_exception): Use phex_nz to avoid warning.
16405 (win32_wait): Remove unused local variable `process'.
16406
16407 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
16408
16409 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
16410 `amd64-avx.o'.
16411
16412 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
16413
16414 * configure.ac: Use `ws2_32' library for srv_mingw.
16415 * configure: Regenerate.
16416 * gdbreplay.c: Include winsock2.h instead of winsock.h.
16417 * remote-utils.c: Likewise.
16418
16419 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
16420
16421 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
16422 if __x86_64__ is defined.
16423
16424 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16425
16426 * configure: Regenerate.
16427
16428 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
16429
16430 * server.c (handle_query): Handle 'qGetTIBAddr' query.
16431 * target.h (target_ops): New get_tib_address field.
16432 * win32-low.h (win32_thread_info): Add thread_local_base field.
16433 * win32-low.c (child_add_thread): Add tlb argument.
16434 Set thread_local_base field to TLB.
16435 (get_child_debug_event): Adapt to child_add_thread change.
16436 (win32_get_tib_address): New function.
16437 (win32_target_ops): Set get_tib_address field to
16438 win32_get_tib_address.
16439 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
16440
16441 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16442
16443 * linux-low.c (linux_mourn): Also remove the process.
16444 * server.c (handle_target_event): Don't remove the process here.
16445 * nto-low.c (nto_mourn): New.
16446 (nto_target_ops): Install it.
16447 * spu-low.c (spu_mourn): New.
16448 (spu_target_ops): Install it.
16449 * win32-low.c (win32_mourn): New.
16450 (win32_target_ops): Install it.
16451
16452 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16453
16454 * server.h (buffer_xml_printf): Remove redundant `;'.
16455
16456 2010-04-12 Pedro Alves <pedro@codesourcery.com>
16457
16458 * regcache.c (set_register_cache): Invalidate regcaches before
16459 changing the register cache layout.
16460 (regcache_invalidate_one): Allow a NULL regcache.
16461 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
16462 regcaches before changing the register cache layout or the target
16463 regsets.
16464
16465 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
16466
16467 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
16468 variable warning on Linux/x86-64.
16469
16470 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16471
16472 GDBserver disconnected tracing support.
16473
16474 * linux-low.c (linux_remove_process): Delete.
16475 (add_lwp): Don't set last_resume_kind here.
16476 (linux_kill): Use `mourn'.
16477 (linux_detach): Use `thread_db_detach', and `mourn'.
16478 (linux_mourn): New.
16479 (linux_attach_lwp_1): Adjust comment.
16480 (linux_attach): last_resume_kind moved the thread_info; adjust.
16481 (status_pending_p_callback): Adjust.
16482 (linux_wait_for_event_1): Adjust.
16483 (count_events_callback, select_singlestep_lwp_callback)
16484 (select_event_lwp_callback, cancel_breakpoints_callback)
16485 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
16486 (proceed_one_lwp): Adjust.
16487 (linux_async): Add debug output.
16488 (linux_thread_stopped): New.
16489 (linux_pause_all): New.
16490 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
16491 linux_pause_all.
16492 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
16493 (thread_db_free): Delete declaration.
16494 (thread_db_detach, thread_db_mourn): Declare.
16495 * thread-db.c (thread_db_init): Use thread_db_mourn.
16496 (thread_db_free): Delete, split in two.
16497 (disable_thread_event_reporting): New.
16498 (thread_db_detach): New.
16499 (thread_db_mourn): New.
16500
16501 * server.h (struct thread_info) <last_resume_kind>: New field.
16502 <attached>: Add comment.
16503 <gdb_detached>: New field.
16504 (handler_func): Change return type to int.
16505 (handle_serial_event, handle_target_event): Ditto.
16506 (gdb_connected): Declare.
16507 (tracing): Delete.
16508 (disconnected_tracing): Declare.
16509 (stop_tracing): Declare.
16510
16511 * server.c (handle_query) <qSupported>: Report support for
16512 disconnected tracing.
16513 (queue_stop_reply_callback): Account for running threads.
16514 (gdb_wants_thread_stopped): New.
16515 (gdb_wants_all_threads_stopped): New.
16516 (gdb_reattached_process): New.
16517 (handle_status): Clear the `gdb_detached' flag of all processes.
16518 In all-stop, stop all threads.
16519 (main): Be sure to leave tfind mode. Handle disconnected tracing.
16520 (process_serial_event): If the remote connection breaks, or if an
16521 exit was forced with "monitor exit", force an event loop exit.
16522 Handle disconnected tracing on detach.
16523 (handle_serial_event): Adjust.
16524 (handle_target_event): If GDB isn't connected, forward events back
16525 to the inferior, unless the last process exited, in which case,
16526 exit gdbserver. Adjust interface.
16527
16528 * remote-utils.c (remote_open): Don't block in accept. Instead
16529 register an event loop source on the listen socket file
16530 descriptor. Refactor bits into ...
16531 (listen_desc): ... this new global.
16532 (gdb_connected): ... this new function.
16533 (enable_async_notification): ... this new function.
16534 (handle_accept_event): ... this new function.
16535 (remote_close): Clear remote_desc.
16536
16537 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
16538
16539 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
16540 New fields.
16541 (mourn_inferior): Define.
16542 (target_process_qsupported): Avoid the dangling else problem.
16543 (thread_stopped): Define.
16544 (pause_all): Define.
16545 (target_waitstatus_to_string): Declare.
16546 * target.c (target_waitstatus_to_string): New.
16547
16548 * tracepoint.c (tracing): Make extern.
16549 (disconnected_tracing): New.
16550 (stop_tracing): Make extern. Handle tracing stops due to GDB
16551 disconnecting.
16552 (cmd_qtdisconnected): New.
16553 (cmd_qtstatus): Report disconnected tracing status in trace reply.
16554 (handle_tracepoint_general_set): Handle QTDisconnected.
16555
16556 * event-loop.c (event_handler_func): Change return type to int.
16557 (process_event): Bail out if the event handler wants the event
16558 loop to stop.
16559 (handle_file_event): Ditto.
16560 (start_event_loop): Bail out if the event handler wants the event
16561 loop to stop.
16562
16563 * nto-low.c (nto_target_ops): Adjust.
16564 * spu-low.c (spu_wait): Don't remove the process here.
16565 (spu_target_ops): Adjust.
16566 * win32-low.c (win32_wait): Don't remove the process here.
16567 (win32_target_ops): Adjust.
16568
16569 2010-04-11 Pedro Alves <pedro@codesourcery.com>
16570
16571 * regcache.c (realloc_register_cache): Invalidate inferior's
16572 regcache before recreating it.
16573
16574 2010-04-09 Pedro Alves <pedro@codesourcery.com>
16575
16576 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
16577
16578 2010-04-09 Stan Shebs <stan@codesourcery.com>
16579 Pedro Alves <pedro@codesourcery.com>
16580
16581 * server.h (LONGEST): New.
16582 (struct thread_info) <while_stepping>: New field.
16583 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
16584 Declare.
16585 (initialize_tracepoint, handle_tracepoint_general_set)
16586 (handle_tracepoint_query, tracepoint_finished_step)
16587 (tracepoint_was_hit, release_while_stepping_state_list):
16588 (current_traceframe): Declare.
16589 * server.c (handle_general_set): Handle tracepoint packets.
16590 (read_memory): New.
16591 (write_memory): New.
16592 (handle_search_memory_1): Use read_memory.
16593 (handle_query): Report support for conditional tracepoints, trace
16594 state variables, and tracepoint sources. Handle tracepoint
16595 queries.
16596 (main): Initialize the tracepoints module.
16597 (process_serial_event): Handle traceframe reads/writes.
16598
16599 * linux-low.c (handle_tracepoints): New.
16600 (linux_wait_1): Call it.
16601 (linux_resume_one_lwp): Handle while-stepping.
16602 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
16603 (linux_target_ops): Install them.
16604 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
16605 New field.
16606 * linux-x86-low.c (x86_supports_tracepoints): New.
16607 (the_low_target). Install it.
16608
16609 * mem-break.h (delete_breakpoint): Declare.
16610 * mem-break.c (delete_breakpoint): Make external.
16611
16612 * target.h (struct target_ops): Add `supports_tracepoints',
16613 `read_pc', and `write_pc' fields.
16614 (target_supports_tracepoints): Define.
16615 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
16616 (phex_nz): New.
16617
16618 * regcache.h (struct regcache) <registers_owned>: New field.
16619 (init_register_cache, regcache_cpy): Declare.
16620 (regcache_read_pc, regcache_write_pc): Declare.
16621 (register_cache_size): Declare.
16622 (supply_regblock): Declare.
16623 * regcache.c (init_register_cache): New.
16624 (new_register_cache): Use it.
16625 (regcache_cpy): New.
16626 (register_cache_size): New.
16627 (supply_regblock): New.
16628 (regcache_read_pc, regcache_write_pc): New.
16629
16630 * tracepoint.c: New.
16631
16632 * Makefile.in (OBS): Add tracepoint.o.
16633 (tracepoint.o): New rule.
16634
16635 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
16636
16637 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
16638 (i386-mmx.o): New.
16639 (i386-mmx.c): Likewise.
16640 (i386-mmx-linux.o): Likewise.
16641 (i386-mmx-linux.c): Likewise.
16642
16643 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
16644 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
16645 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
16646 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
16647
16648 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
16649 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
16650 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
16651
16652 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
16653
16654 * Makefile.in (clean): Updated.
16655 (i386-avx.o): New.
16656 (i386-avx.c): Likewise.
16657 (i386-avx-linux.o): Likewise.
16658 (i386-avx-linux.c): Likewise.
16659 (amd64-avx.o): Likewise.
16660 (amd64-avx.c): Likewise.
16661 (amd64-avx-linux.o): Likewise.
16662 (amd64-avx-linux.c): Likewise.
16663
16664 * configure.srv (srv_i386_regobj): Add i386-avx.o.
16665 (srv_i386_linux_regobj): Add i386-avx-linux.o.
16666 (srv_amd64_regobj): Add amd64-avx.o.
16667 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
16668 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
16669 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
16670 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
16671 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
16672 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
16673 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
16674
16675 * i387-fp.c: Include "i386-xstate.h".
16676 (i387_xsave): New.
16677 (i387_cache_to_xsave): Likewise.
16678 (i387_xsave_to_cache): Likewise.
16679 (x86_xcr0): Likewise.
16680
16681 * i387-fp.h (i387_cache_to_xsave): Likewise.
16682 (i387_xsave_to_cache): Likewise.
16683 (x86_xcr0): Likewise.
16684
16685 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
16686 * linux-crisv32-low.c (target_regsets): Likewise.
16687 * linux-m68k-low.c (target_regsets): Likewise.
16688 * linux-mips-low.c (target_regsets): Likewise.
16689 * linux-ppc-low.c (target_regsets): Likewise.
16690 * linux-s390-low.c (target_regsets): Likewise.
16691 * linux-sh-low.c (target_regsets): Likewise.
16692 * linux-sparc-low.c (target_regsets): Likewise.
16693 * linux-xtensa-low.c (target_regsets): Likewise.
16694
16695 * linux-low.c: Include <sys/uio.h>.
16696 (regsets_fetch_inferior_registers): Support nt_type.
16697 (regsets_store_inferior_registers): Likewise.
16698 (linux_process_qsupported): New.
16699 (linux_target_ops): Add linux_process_qsupported.
16700
16701 * linux-low.h (regset_info): Add nt_type.
16702 (linux_target_ops): Add process_qsupported.
16703
16704 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
16705 and <sys/uio.h>.
16706 (init_registers_i386_avx_linux): New.
16707 (init_registers_amd64_avx_linux): Likewise.
16708 (xmltarget_i386_linux_no_xml): Likewise.
16709 (xmltarget_amd64_linux_no_xml): Likewise.
16710 (PTRACE_GETREGSET): Likewise.
16711 (PTRACE_SETREGSET): Likewise.
16712 (x86_fill_xstateregset): Likewise.
16713 (x86_store_xstateregset): Likewise.
16714 (use_xml): Likewise.
16715 (x86_linux_update_xmltarget): Likewise.
16716 (x86_linux_process_qsupported): Likewise.
16717 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
16718 (x86_arch_setup): Don't call init_registers_amd64_linux nor
16719 init_registers_i386_linux here. Call
16720 x86_linux_update_xmltarget.
16721 (the_low_target): Add x86_linux_process_qsupported.
16722
16723 * server.c (handle_query): Call target_process_qsupported.
16724
16725 * target.h (target_ops): Add process_qsupported.
16726 (target_process_qsupported): New.
16727
16728 2010-04-03 Pedro Alves <pedro@codesourcery.com>
16729
16730 * inferiors.c (add_thread): Set last_status kind to
16731 TARGET_WAITKIND_IGNORE.
16732 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
16733 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
16734 (linux_wait_1): Move `thread' local definition to block that uses
16735 it. Don't NULL initialize `event_child'.
16736 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
16737 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
16738 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
16739
16740 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16741
16742 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
16743 an extended waitstatus, or by a watchpoint.
16744 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
16745 thread was stepping or has been stopped by a watchpoint.
16746
16747 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16748
16749 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
16750 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
16751 of another, then delete the previous, and validate all
16752 breakpoints.
16753 (validate_inserted_breakpoint): New.
16754 (delete_disabled_breakpoints): New.
16755 (validate_breakpoints): New.
16756 (check_mem_read): Validate breakpoints before trusting their
16757 shadow. Delete disabled breakpoints.
16758 (check_mem_write): Validate breakpoints before trusting they
16759 should be inserted. Delete disabled breakpoints.
16760 * mem-break.h (validate_breakpoints):
16761 * server.c (handle_query): Validate breakpoints when we see a
16762 qSymbol query.
16763
16764 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16765
16766 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16767 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16768 if we could tell there's a GDB breakpoint at stop_pc.
16769 (need_step_over_p): Don't do a step over if we find a GDB
16770 breakpoint at the resume PC.
16771
16772 * mem-break.c (struct raw_breakpoint): New.
16773 (enum bkpt_type): New type `gdb_breakpoint'.
16774 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16775 fields. New field `raw'.
16776 (find_raw_breakpoint_at): New.
16777 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16778 breakpoint instead.
16779 (set_breakpoint_at): Adjust.
16780 (delete_raw_breakpoint): New.
16781 (release_breakpoint): New.
16782 (delete_breakpoint): Rename to...
16783 (delete_breakpoint_1): ... this. Add proc parameter. Use
16784 release_breakpoint. Return ENOENT.
16785 (delete_breakpoint): Reimplement.
16786 (find_breakpoint_at): Delete.
16787 (find_gdb_breakpoint_at): New.
16788 (delete_breakpoint_at): Delete.
16789 (set_gdb_breakpoint_at): New.
16790 (delete_gdb_breakpoint_at): New.
16791 (gdb_breakpoint_here): New.
16792 (set_reinsert_breakpoint): Use release_breakpoint.
16793 (uninsert_breakpoint): Rename to ...
16794 (uninsert_raw_breakpoint): ... this.
16795 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
16796 (reinsert_raw_breakpoint): Change parameter type to
16797 raw_breakpoint.
16798 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16799 instead.
16800 (check_breakpoints): Adjust. Use release_breakpoint.
16801 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
16802 (breakpoint_inserted_here): Ditto.
16803 (check_mem_read): Adjust to iterate over raw breakpoints instead.
16804 Don't trust the breakpoint's shadow if it is not inserted.
16805 (check_mem_write): Adjust to iterate over raw breakpoints instead.
16806 (delete_all_breakpoints): Adjust.
16807 (free_all_breakpoints): Mark all breakpoints as uninserted, and
16808 use delete_breakpoint_1.
16809
16810 * mem-break.h (breakpoints_supported): Delete declaration.
16811 (set_gdb_breakpoint_at): Declare.
16812 (gdb_breakpoint_here): Declare.
16813 (delete_breakpoint_at): Delete.
16814 (delete_gdb_breakpoint_at): Declare.
16815
16816 * server.h (struct raw_breakpoint): Forward declare.
16817 (struct process_info): New field `raw_breakpoints'.
16818
16819 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16820 breakpoints.
16821
16822 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16823
16824 * linux-low.c (status_pending_p_callback): Fix comment.
16825 (linux_wait_for_event_1): Move most of the internal breakpoint
16826 handling from here...
16827 (linux_wait_1): ... to here.
16828 (count_events_callback): New.
16829 (select_singlestep_lwp_callback): New.
16830 (select_event_lwp_callback): New.
16831 (cancel_breakpoints_callback): New.
16832 (select_event_lwp): New.
16833 (linux_wait_1): Simplify internal breakpoint handling. Give equal
16834 priority to all LWPs that have had events that should be reported
16835 to the client. Cancel breakpoints when about to reporting the
16836 event to the client, not while stopping lwps. No longer cancel
16837 finished single-steps here.
16838 (cancel_finished_single_step): Delete.
16839 (cancel_finished_single_steps): Delete.
16840
16841 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16842
16843 * mem-break.c (enum bkpt_type): New.
16844 (struct breakpoint): New field `type'.
16845 (set_breakpoint_at): Change return type to struct breakpoint
16846 pointer. Set type to `other_breakpoint' by default.
16847 (delete_breakpoint): Rewrite, supporting more than one breakpoint
16848 in the breakpoint list.
16849 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
16850 (reinsert_breakpoint): Rename to ...
16851 (reinsert_raw_breakpoint): ... this.
16852 (reinsert_breakpoints_at): Adjust.
16853 * mem-break.h (struct breakpoint): Declare.
16854 (set_breakpoint_at): Change return type to struct breakpoint
16855 pointer.
16856
16857 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16858
16859 * server.c (handle_query): Assign, not compare.
16860
16861 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16862
16863 Teach linux gdbserver to step-over-breakpoints.
16864
16865 * linux-low.c (can_hardware_single_step): New.
16866 (supports_breakpoints): New.
16867 (handle_extended_wait): If stopping threads, read the stop pc of
16868 the new cloned LWP.
16869 (get_pc): New.
16870 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
16871 low target doesn't support retrieving the PC.
16872 (add_lwp): Set last_resume_kind to resume_continue.
16873 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
16874 (linux_attach): Don't clear stop_expected. Set the lwp's
16875 last_resume_kind to resume_stop.
16876 (linux_detach_one_lwp): Don't check for removed breakpoints.
16877 (check_removed_breakpoint): Delete.
16878 (status_pending_p): Rename to ...
16879 (status_pending_p_callback): ... this. Don't check for removed
16880 breakpoints. Don't consider threads that are stopped from GDB's
16881 perspective.
16882 (linux_wait_for_lwp): Always read the stop_pc here.
16883 (cancel_breakpoint): New.
16884 (step_over_bkpt): New global.
16885 (linux_wait_for_event_1): Implement stepping over breakpoints.
16886 (gdb_wants_lwp_stopped): New.
16887 (gdb_wants_all_stopped): New.
16888 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
16889 single-step traps here. Store the thread's last reported target
16890 wait status.
16891 (send_sigstop): Don't clear stop_expected. Always set it,
16892 instead.
16893 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
16894 (cancel_finished_single_step): New.
16895 (cancel_finished_single_steps): New.
16896 (wait_for_sigstop): Don't cancel finished single-step traps here.
16897 (linux_resume_one_lwp): Don't check for removed breakpoints.
16898 Don't set `step' on non-hardware step archs.
16899 (linux_set_resume_request): Ignore resume_stop requests if already
16900 stopping or stopped. Set the lwp's last_resume_kind.
16901 (resume_status_pending_p): Don't check for removed breakpoints.
16902 (need_step_over_p): New.
16903 (start_step_over): New.
16904 (finish_step_over): New.
16905 (linux_resume_one_thread): Always queue a sigstop for resume_stop
16906 requests. Clear the thread's last reported target waitstatus.
16907 Don't use the `suspended' flag. Don't consider pending breakpoints.
16908 (linux_resume): Start a step-over if necessary.
16909 (proceed_one_lwp): New.
16910 (proceed_all_lwps): New.
16911 (unstop_all_lwps): New.
16912 * linux-low.h (struct lwp_info): Rewrite comment for the
16913 `suspended' flag. Add the `stop_pc' field. Delete the
16914 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
16915 Add `'last_resume_kind' and `need_step_over' fields.
16916 * inferiors.c (struct thread_info): Delete, moved elsewhere.
16917 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
16918 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
16919 (set_raw_breakpoint_at): New.
16920 (set_breakpoint_at): Rewrite to use it.
16921 (reinsert_breakpoint_handler): Delete.
16922 (set_reinsert_breakpoint): New.
16923 (reinsert_breakpoint_by_bp): Delete.
16924 (delete_reinsert_breakpoints): New.
16925 (uninsert_breakpoint): Rewrite.
16926 (uninsert_breakpoints_at): New.
16927 (reinsert_breakpoint): Rewrite.
16928 (reinsert_breakpoints_at): New.
16929 (check_breakpoints): Rewrite.
16930 (breakpoint_here): New.
16931 (breakpoint_inserted_here): New.
16932 (check_mem_read): Adjust.
16933 * mem-break.h (breakpoints_supported, breakpoint_here)
16934 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
16935 (reinsert_breakpoint_by_bp): Delete declaration.
16936 (delete_reinsert_breakpoints): Declare.
16937 (reinsert_breakpoint): Delete declaration.
16938 (reinsert_breakpoints_at): Declare.
16939 (uninsert_breakpoint): Delete declaration.
16940 (uninsert_breakpoints_at): Declare.
16941 (check_breakpoints): Adjust prototype.
16942 * server.h: Adjust include order.
16943 (struct thread_info): Declare here. Add a `last_status' field.
16944
16945 2010-03-23 Michael Snyder <msnyder@vmware.com>
16946
16947 * server.c (crc32): New function.
16948 (handle_query): Add handling for 'qCRC:' request.
16949
16950 2010-03-23 Pedro Alves <pedro@codesourcery.com>
16951
16952 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16953 lwp had been stopped by a watchpoint.
16954
16955 2010-03-16 Pedro Alves <pedro@codesourcery.com>
16956
16957 * server.h (internal_error): Declare.
16958 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16959 * utils.c (internal_error): New function.
16960
16961 2010-03-15 Andreas Schwab <schwab@redhat.com>
16962
16963 * configure.srv: Fix typo setting srv_regobj.
16964
16965 2010-03-15 Pedro Alves <pedro@codesourcery.com>
16966
16967 * linux-low.c (fetch_register): Avoid passing a non string literal
16968 format to `error'.
16969 (usr_store_inferior_registers): Ditto.
16970
16971 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16972
16973 * linux-low.c (linux_write_memory): Bail out early if peeking
16974 memory failed.
16975
16976 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16977
16978 * linux-low.h (struct lwp_info): New fields
16979 `stopped_by_watchpoint' and `stopped_data_address'.
16980 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
16981 here, and cache them in the lwp object.
16982 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
16983 directly.
16984 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16985 field.
16986 (linux_stopped_by_watchpoint): Rewrite.
16987 (linux_stopped_data_address): Rewrite.
16988
16989 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
16990
16991 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16992 switching the current inferior, not before.
16993
16994 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16995
16996 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16997 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16998 i386-linux.c and amd64-linux.c.
16999 (reg-i386.o): Removed.
17000 (reg-i386.c): Likewise.
17001 (reg-i386-linux.o): Likewise.
17002 (reg-i386-linux.c): Likewise.
17003 (reg-x86-64.o): Likewise.
17004 (reg-x86-64.c): Likewise.
17005 (reg-x86-64-linux.o): Likewise.
17006 (reg-x86-64-linux.c): Likewise.
17007 (i386.o): New.
17008 (i386.c): Likewise.
17009 (i386-linux.o): Likewise.
17010 (i386-linux.c): Likewise.
17011 (amd64.o): Likewise.
17012 (amd64.c): Likewise.
17013 (amd64-linux.o): Likewise.
17014 (amd64-linux.c): Likewise.
17015
17016 * configure.srv (srv_i386_regobj): New.
17017 (srv_i386_linux_regobj): Likewise.
17018 (srv_amd64_regobj): Likewise.
17019 (srv_amd64_linux_regobj): Likewise.
17020 (srv_i386_32bit_xmlfiles): Likewise.
17021 (srv_i386_64bit_xmlfiles): Likewise.
17022 (srv_i386_xmlfiles): Likewise.
17023 (srv_amd64_xmlfiles): Likewise.
17024 (srv_i386_linux_xmlfiles): Likewise.
17025 (srv_amd64_linux_xmlfiles): Likewise.
17026 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17027 srv_xmlfiles to $srv_i386_xmlfiles.
17028 (i[34567]86-*-mingw32ce*): Likewise.
17029 (i[34567]86-*-mingw*): Likewise.
17030 (i[34567]86-*-nto*): Likewise.
17031 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17032 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17033 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17034 (x86_64-*-linux*): Likewise.
17035
17036 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17037 (init_registers_amd64_linux): New.
17038 (x86_arch_setup): Replace init_registers_x86_64_linux with
17039 init_registers_amd64_linux.
17040
17041 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17042
17043 * configure.ac: Check for libdl. If it is not available link against
17044 static libthread_db.
17045 * configure: Regenerate.
17046
17047 2010-02-22 Pedro Alves <pedro@codesourcery.com>
17048
17049 PR9605
17050
17051 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17052 handing a read watchpoint.
17053 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17054
17055 2010-02-12 Doug Evans <dje@google.com>
17056
17057 * linux-low.c (linux_supports_tracefork_flag): Document.
17058 (linux_look_up_symbols): Add comment.
17059
17060 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17061
17062 * regcache.c (supply_register): Clear regcache if buf is NULL.
17063
17064 2010-02-02 Nicolas Roche <roche@sourceware.org>
17065 Joel Brobecker <brobecker@adacore.com>
17066
17067 * inferiors.c (find_inferior): Add function documentation.
17068 (unloaded_dll): Handle the case where the unloaded dll has not
17069 been previously registered in the dll list.
17070
17071 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17072
17073 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17074 (thumb2_breakpoint): New.
17075 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17076
17077 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17078
17079 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17080 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17081 breakpoints.
17082
17083 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17084
17085 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17086
17087 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17088
17089 * linux-s390-low.c (s390_collect_ptrace_register)
17090 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17091
17092 2010-01-21 Doug Evans <dje@google.com>
17093
17094 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17095 (PTRACE_ARG4_TYPE): New macro.
17096 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17097 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17098 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17099 (usr_store_inferior_registers): Ditto.
17100 (linux_read_memory, linux_write_memory): Ditto.
17101 (linux_test_for_tracefork): Ditto.
17102
17103 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17104 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17105
17106 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17107
17108 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17109 target.
17110
17111 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17112
17113 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17114 prototype to take a regcache. Adjust.
17115
17116 2010-01-20 Pedro Alves <pedro@codesourcery.com>
17117
17118 * regcache.h (struct thread_info): Forward declare.
17119 (struct regcache): New.
17120 (new_register_cache): Adjust prototype.
17121 (get_thread_regcache): Declare.
17122 (free_register_cache): Adjust prototype.
17123 (registers_to_string, registers_from_string): Ditto.
17124 (supply_register, supply_register_by_name, collect_register)
17125 (collect_register_as_string, collect_register_by_name): Ditto.
17126 * regcache.c (struct inferior_regcache_data): Delete.
17127 (get_regcache): Rename to ...
17128 (get_thread_regcache): ... this. Adjust. Switch inferior before
17129 fetching registers.
17130 (regcache_invalidate_one): Adjust.
17131 (regcache_invalidate): Fix prototype.
17132 (new_register_cache): Return the new register cache.
17133 (free_register_cache): Change prototype.
17134 (realloc_register_cache): Adjust.
17135 (registers_to_string): Change prototype to take a regcache. Adjust.
17136 (registers_from_string): Ditto.
17137 (register_data): Ditto.
17138 (supply_register): Ditto.
17139 (supply_register_by_name): Ditto.
17140 (collect_register): Ditto.
17141 (collect_register_as_string): Ditto.
17142 (collect_register_by_name): Ditto.
17143 * server.c (process_serial_event): Adjust.
17144 * linux-low.h (regset_fill_func, regset_store_func): Change
17145 prototype.
17146 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17147 Change prototype.
17148 * linux-low.c (get_stop_pc): Adjust.
17149 (check_removed_breakpoint): Adjust.
17150 (linux_wait_for_event): Adjust.
17151 (linux_resume_one_lwp): Adjust.
17152 (fetch_register): Add regcache parameter. Adjust.
17153 (usr_store_inferior_registers): Ditto.
17154 (regsets_fetch_inferior_registers): Ditto.
17155 (regsets_store_inferior_registers): Ditto.
17156 (linux_fetch_registers, linux_store_registers): Ditto.
17157 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17158 regcache. Adjust.
17159 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17160 Ditto.
17161 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17162 prototype to take a regcache.
17163 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17164 * remote-utils.c (convert_ascii_to_int, outreg)
17165 (prepare_resume_reply): Change prototype to take a regcache.
17166 Adjust.
17167 * target.h (struct target_ops) <fetch_registers, store_registers>:
17168 Change prototype to take a regcache.
17169 (fetch_inferior_registers, store_inferior_registers): Change
17170 prototype to take a regcache. Adjust.
17171 * proc-service.c (ps_lgetregs): Adjust.
17172 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17173 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17174 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17175 take a regcache. Adjust.
17176 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17177 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17178 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17179 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17180 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17181 (cris_cannot_fetch_register):
17182 (cris_breakpoint_at): Change prototype to take a regcache.
17183 Adjust.
17184 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17185 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17186 to take a regcache. Adjust.
17187 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17188 Adjust.
17189 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17190 take a regcache. Adjust.
17191 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17192 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17193 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17194 * linux-mips-low.c (mips_get_pc):
17195 (mips_set_pc): Change prototype to take a regcache. Adjust.
17196 (mips_reinsert_addr): Adjust.
17197 (mips_collect_register): Change prototype to take a regcache.
17198 Adjust.
17199 (mips_supply_register):
17200 (mips_collect_register_32bit, mips_supply_register_32bit)
17201 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17202 (mips_store_fpregset): Ditto.
17203 * linux-ppc-low.c (ppc_supply_ptrace_register)
17204 (ppc_supply_ptrace_register): Ditto.
17205 (parse_spufs_run): Adjust.
17206 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17207 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17208 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17209 take a regcache. Adjust.
17210 * linux-s390-low.c (s390_collect_ptrace_register)
17211 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17212 (s390_set_pc): Change prototype to take a regcache. Adjust.
17213 (s390_arch_setup): Adjust.
17214 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17215 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17216 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17217 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17218 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17219 regcache. Adjust.
17220 (sparc_breakpoint_at): Adjust.
17221 * linux-xtensa-low.c (xtensa_fill_gregset):
17222 (xtensa_store_gregset):
17223 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17224 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17225 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17226 prototype to take a regcache. Adjust.
17227 * win32-arm-low.c (arm_fetch_inferior_register)
17228 (arm_store_inferior_register): Change prototype to take a
17229 regcache. Adjust.
17230 * win32-i386-low.c (i386_fetch_inferior_register)
17231 (i386_store_inferior_register): Change prototype to take a
17232 regcache. Adjust.
17233 * win32-low.c (child_fetch_inferior_registers)
17234 (child_store_inferior_registers): Change prototype to take a
17235 regcache. Adjust.
17236 (win32_wait): Adjust.
17237 (win32_fetch_inferior_registers): Change prototype to take a
17238 regcache. Adjust.
17239 (win32_store_inferior_registers): Adjust.
17240 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17241 store_inferior_register>: Change prototype to take a regcache.
17242
17243 2010-01-20 Doug Evans <dje@google.com>
17244
17245 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17246 #ifdef.
17247 (linux_wait_for_event1, linux_init_signals): Ditto.
17248 (W_STOPCODE): Provide definition if missing.
17249
17250 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17251
17252 * linux-low.c (linux_core_of_thread): New.
17253 (compare_ints, show_process, list_threads): New.
17254 (linux_qxfer_osdata): Report threads and cores.
17255 (linux_target_op): Register linux_core_of_thread.
17256 * remote-utils.c (prepare_resume_reply): Report the core.
17257 (buffer_xml_printf): Support %d specifier.
17258 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17259 New.
17260 (handle_query): Handle qXfer:threads. Announce availability
17261 thereof.
17262 * target.h (struct target_ops): New field core_of_thread.
17263
17264 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17265
17266 * Makefile.in (clean): Remove new generated files.
17267 (reg-s390.o, reg-s390.c): Remove rules.
17268 (reg-s390x.o, reg-s390x.c): Likewise.
17269 (s390-linux32.o, s390-linux32.c): Add rules.
17270 (s390-linux64.o, s390-linux64.c): Likewise.
17271 (s390x-linux64.o, s390x-linux64.c): Likewise.
17272 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17273 * linux-s390-low.c: Include <elf.h>.
17274 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17275 (init_registers_s390): Remove prototype.
17276 (init_registers_s390x): Likewise.
17277 (init_registers_s390_linux32): Add prototype.
17278 (init_registers_s390_linux64): Likewise.
17279 (init_registers_s390x_linux64): Likewise.
17280 (s390_num_regs_3264): New define.
17281 (s390_regmap_3264): New global variable.
17282 (s390_cannot_fetch_register): Remove obsolete check.
17283 (s390_cannot_store_register): Likewise.
17284 (s390_collect_ptrace_register): Handle upper/lower register halves.
17285 (s390_supply_ptrace_register): Likewise.
17286 (s390_fill_gregset): Update to register number changes.
17287 (s390_get_hwcap): New routine.
17288 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17289 Install appropriate regmap and register set.
17290
17291 2010-01-01 Joel Brobecker <brobecker@adacore.com>
17292
17293 * server.c (gdbserver_version): Update copyright year to 2010.
17294 * gdbreplay.c (gdbreplay_version): Likewise.
17295
17296 2009-12-28 Doug Evans <dje@google.com>
17297
17298 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17299 elf/external.h. Include <elf.h> instead but only if necessary.
17300
17301 2009-12-28 Pedro Alves <pedro@codesourcery.com>
17302
17303 * linux-low.c (linux_remove_process): Remove `detaching'
17304 parameter. Don't release/detach from thread_db here.
17305 (linux_kill): Release/detach from thread_db here, ...
17306 (linux_detach): ... and here, before actually detaching.
17307 (linux_wait_1): ... and here, when a process exits.
17308 * thread-db.c (any_thread_of): New.
17309 (thread_db_free): Switch the current inferior to a thread of the
17310 passed in process.
17311
17312 2009-12-21 Doug Evans <dje@google.com>
17313
17314 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17315
17316 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17317 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17318 warning ifndef __NR_tkill. Move setting of errno there too.
17319 Delete unnecessary resetting of errno after syscall.
17320 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17321
17322 * configure.ac: Check for dladdr.
17323 * config.in: Regenerate.
17324 * configure: Regenerate.
17325 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17326 (try_thread_db_load): Update.
17327
17328 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17329
17330 2009-12-18 Doug Evans <dje@google.com>
17331
17332 * event-loop.c: Include unistd.h if it exists.
17333
17334 * linux-low.c (my_waitpid): Move definition away from being in
17335 between linux_tracefork_child/linux_test_for_tracefork.
17336
17337 * gdb_proc_service.h (psaddr_t): Fix type.
17338 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17339 signature to match glibc.
17340
17341 2009-12-16 Doug Evans <dje@google.com>
17342
17343 * linux-low.c (linux_read_memory): Fix argument to read.
17344
17345 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17346
17347 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
17348 events, don't leave current_inferior pointing at null.
17349
17350 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17351
17352 * win32-low.c (LOG): Delete.
17353 (OUTMSG): Output to stderr.
17354 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
17355 on compile time LOG macro.
17356 (win32_wait): Fix debug output.
17357
17358 2009-11-26 Pedro Alves <pedro@codesourcery.com>
17359
17360 * win32-low.c (win32_add_one_solib): If the dll name is
17361 "ntdll.dll", prepend the system directory to the dll path.
17362
17363 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
17364
17365 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
17366
17367 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
17368 Vladimir Prus <vladimir@codesourcery.com>
17369
17370 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
17371 * configure.ac: Check for __mcoldfire__ and set
17372 gdb_cv_m68k_is_coldfire.
17373 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
17374 reg-cf.o and reg-m68k.o.
17375 * configure: Regenerated.
17376
17377 2009-11-16 Pedro Alves <pedro@codesourcery.com>
17378
17379 * linux-low.c (linux_remove_process): Add `detaching' parameter.
17380 Pass it to thread_db_free.
17381 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
17382 proper `detaching' argument to linux_remove_process.
17383 * linux-low.h (thread_db_free): Add `detaching' parameter.
17384 * thread-db.c (thread_db_init): Pass false as `detaching' argument
17385 to thread_db_free.
17386 (thread_db_free): Add `detaching' parameter. Only
17387 call td_ta_clear_event if detaching from process.
17388
17389 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17390
17391 * thread-db.c (thread_db_free): Fix typo.
17392
17393 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
17394
17395 PR gdb/10838
17396 * thread-db.c (thread_db_free): Call td_ta_clear_event.
17397
17398 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
17399
17400 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
17401 with an i686 compiler.
17402 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
17403 needed.
17404 * configure: Rebuilt.
17405
17406 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
17407
17408 PR gdb/10783
17409
17410 * server.c (handle_search_memory_1): Correct read_addr initialization
17411 in loop for searching subsequent chunks.
17412
17413 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
17414
17415 * configure.ac: New --with-libthread-db option.
17416 * thread-db.c: Allow direct dependence on libthread_db.
17417 (thread_db_free): Adjust.
17418 * config.in: Regenerate.
17419 * configure: Likewise.
17420
17421 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
17422
17423 PR gdb/10757
17424 * thread-db.c (attach_thread): New function.
17425 (maybe_attach_thread): Return success/failure.
17426 (find_new_threads_callback): Adjust.
17427 (thread_db_find_new_threads): Loop until no new threads.
17428
17429 2009-10-13 Pedro Alves <pedro@codesourcery.com>
17430
17431 * proc-service.c (ps_lgetregs): Formatting.
17432
17433 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
17434
17435 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
17436 * configure.ac: Adjust.
17437 * linux-low.h (struct process_info_private): Move members to struct
17438 thread_db.
17439 (thread_db_free, thread_db_handle_monitor_command): New prototype.
17440 * linux-low.c (linux_remove_process): Adjust.
17441 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
17442 * server.c (handle_query): Move code ...
17443 (handle_monitor_command): ... here. New function.
17444 * target.h (struct target_ops): New member.
17445 * thread-db.c (struct thread_db): New.
17446 (libthread_db_search_path): New variable.
17447 (thread_db_create_event, thread_db_enable_reporting)
17448 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
17449 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
17450 (try_thread_db_load_1, dladdr_to_soname): New functions.
17451 (try_thread_db_load, thread_db_load_search): New functions.
17452 (thread_db_init): Search for libthread_db.
17453 (thread_db_free): New function.
17454 (thread_db_handle_monitor_command): Likewise.
17455 * config.in: Regenerate.
17456 * configure: Regenerate.
17457
17458 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
17459
17460 * spu-low.c (spu_kill): Wait for inferior to terminate.
17461 Call clear_inferiors.
17462 (spu_detach): Call clear_inferiors.
17463
17464 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17465
17466 * aclocal.m4: Regenerate.
17467 * config.in: Likewise.
17468 * configure: Likewise.
17469
17470 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17471
17472 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
17473 (parse_spufs_run): New function.
17474 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
17475 (ppc_breakpoint_at): Handle SPU breakpoints.
17476
17477 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17478
17479 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
17480 (SPUFS_MAGIC): Define.
17481 (spu_enumerate_spu_ids): New function.
17482 (linux_qxfer_spu): New function.
17483 (linux_target_ops): Install linux_qxfer_spu.
17484
17485 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
17486
17487 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
17488 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
17489 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
17490 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
17491 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
17492 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
17493 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
17494 (init_registers_powerpc_cell32l): Add prototype.
17495 (init_registers_powerpc_cell64l): Likewise.
17496 (ppc_arch_setup): Detect Cell/B.E. architecture.
17497
17498 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17499
17500 * Makefile.in (datarootdir): New variable.
17501
17502 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17503
17504 * linux-low.c (linux_write_memory): Update debugging output.
17505 * Makefile.in (clean): Add new descriptions.
17506 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
17507 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
17508 * configure.srv: Add new files for arm*-*-linux*.
17509 * linux-arm-low.c: Add new declarations.
17510 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
17511 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
17512 (HWCAP_VFPv3D16): New.
17513 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
17514 instead of __IWMMXT__.
17515 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
17516 (arm_arch_setup): New.
17517 (target_regsets): Remove #ifdef. Add VFP regset.
17518 (the_low_target): Use arm_arch_setup.
17519
17520 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
17521
17522 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
17523 the main thread again.
17524
17525 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
17526
17527 Adding Neutrino gdbserver.
17528 * configure: Regenerated.
17529 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
17530 * configure.srv (i[34567]86-*-nto*): New target.
17531 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
17532 * remote-utils.c [__QNX__]: Include sys/iomgr.h
17533 (nto_comctrl) [__QNX__]: New function.
17534 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
17535
17536 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
17537
17538 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
17539 srv_tgtobj.
17540
17541 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
17542 Pedro Alves <pedro@codesourcery.com>
17543
17544 * win32-i386-low.c (i386_get_thread_context): Handle systems that
17545 don't support CONTEXT_EXTENDED_REGISTERS.
17546 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
17547 (the_low_target): Install them.
17548 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
17549 failing with ERROR_PIPE_NOT_CONNECTED.
17550
17551 2009-06-30 Doug Evans <dje@google.com>
17552 Pierre Muller <muller@ics.u-strasbg.fr>
17553
17554 Add h/w watchpoint support to x86-linux, win32-i386.
17555 * Makefile.in (SFILES): Add i386-low.c
17556 (i386_low_h): Define.
17557 (i386-low.o): Add dependencies.
17558 (linux-x86-low.o): Add i386-low.h dependency.
17559 (win32-i386-low.o): Ditto.
17560 * i386-low.c: New file.
17561 * i386-low.h: New file.
17562 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
17563 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
17564 * linux-low.c (linux_add_process): Initialize arch_private.
17565 (linux_remove_process): Free arch_private.
17566 (add_lwp): Initialize arch_private.
17567 (delete_lwp): Free arch_private.
17568 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
17569 provided.
17570 * linux-low.h (process_info_private): New member arch_private.
17571 (lwp_info): New member arch_private.
17572 (linux_target_ops): New members new_process, new_thread,
17573 prepare_to_resume.
17574 (ptid_of): New macro.
17575 * linux-x86-low.c: Include stddef.h, i386-low.h.
17576 (arch_process_info): New struct.
17577 (arch_lwp_info): New struct.
17578 (x86_linux_dr_get, x86_linux_dr_set): New functions.
17579 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17580 (i386_dr_low_get_status): New function.
17581 (x86_insert_point, x86_remove_point): New functions.
17582 (x86_stopped_by_watchpoint): New function.
17583 (x86_stopped_data_address): New function.
17584 (x86_linux_new_process, x86_linux_new_thread): New functions.
17585 (x86_linux_prepare_to_resume): New function.
17586 (the_low_target): Add entries for insert_point, remove_point,
17587 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
17588 prepare_to_resume.
17589 * server.c (debug_hw_points): New global.
17590 (monitor_show_help): Document set debug-hw-points.
17591 (handle_query): Process "set debug-hw-points".
17592 * server.h (debug_hw_points): Declare.
17593 (paddress): Declare.
17594 * utils.c (NUMCELLS, CELLSIZE): New macros.
17595 (get_sell, xsnprintf, paddress): New functions.
17596 * win32-arm-low.c (the_low_target): Add entries for insert_point,
17597 remove_point, stopped_by_watchpoint, stopped_data_address.
17598 * win32-i386-low.c: Include i386-low.h.
17599 (debug_reg_state): Replaces dr.
17600 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
17601 (i386_dr_low_get_status): New function.
17602 (i386_insert_point, i386_remove_point): New functions.
17603 (i386_stopped_by_watchpoint): New function.
17604 (i386_stopped_data_address): New function.
17605 (i386_initial_stuff): Update.
17606 (get_thread_context,set_thread_context,i386_thread_added): Update.
17607 (the_low_target): Add entries for insert_point,
17608 remove_point, stopped_by_watchpoint, stopped_data_address.
17609 * win32-low.c (win32_insert_watchpoint): New function.
17610 (win32_remove_watchpoint): New function.
17611 (win32_stopped_by_watchpoint): New function.
17612 (win32_stopped_data_address): New function.
17613 (win32_target_ops): Add entries for insert_watchpoint,
17614 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
17615 * win32-low.h (win32_target_ops): New members insert_point,
17616 remove_point, stopped_by_watchpoint, stopped_data_address.
17617
17618 2009-06-25 Pedro Alves <pedro@codesourcery.com>
17619
17620 * server.c (process_serial_event): Re-return unsupported, not
17621 error, if the type isn't recognized. Re-allow supporting only
17622 insert or remove packets. Also call require_running for
17623 breakpoints. Add missing break statement to default case. Tidy.
17624 * target.h (struct target_ops): Rename insert_watchpoint to
17625 insert_point, and remove_watchpoint to remove_point.
17626
17627 * linux-low.h (struct linux_target_ops): Likewise.
17628 * linux-low.c (linux_insert_watchpoint): Rename to ...
17629 (linux_insert_point): ... this. Adjust.
17630 (linux_remove_watchpoint): Rename to ...
17631 (linux_remove_point): ... this. Adjust.
17632 (linux_target_ops): Adjust.
17633 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
17634 (cris_insert_point): ... this.
17635 (cris_remove_watchpoint): Rename to ...
17636 (cris_remove_point): ... this.
17637 (the_low_target): Adjust.
17638
17639 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
17640
17641 * server.c (handle_v_kill): Pass signal_pid to
17642 kill_inferior if multi_process is zero.
17643
17644 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
17645
17646 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
17647 * target.h (target_ops): Comment for *_watchpoint to make it clear
17648 the functions can get types '0' and '1'.
17649
17650 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
17651
17652 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
17653 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
17654 * regcache.c (get_regcache): Likewise.
17655 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
17656 * win32-low.c (child_fetch_inferior_registers): Remove check for
17657 regno 0.
17658
17659 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
17660 Pedro Alves <pedro@codesourcery.com>
17661
17662 * target.h (struct target_ops) <supports_multi_process>: New
17663 callback.
17664 (target_supports_multi_process): New.
17665 * server.c (handle_query): Even if GDB reports support, only
17666 enable multi-process if the target also supports it. Report
17667 multi-process support only if the target backend supports it.
17668 * linux-low.c (linux_supports_multi_process): New function.
17669 (linux_target_ops): Install it as target_supports_multi_process
17670 callback.
17671
17672 2009-05-24 Doug Evans <dje@google.com>
17673
17674 Global renaming of find_thread_pid to find_thread_ptid.
17675 * server.h (find_thread_ptid): Renamed from find_thread_pid.
17676 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
17677 All callers updated.
17678
17679 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
17680 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
17681 directly.
17682
17683 * linux-low.c (get_stop_pc): Print pc if debug_threads.
17684 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
17685 (linux_resume_one_lwp): Ditto.
17686
17687 2009-05-23 Doug Evans <dje@google.com>
17688
17689 * linux-low.c (linux_resume_one_lwp): Change type of first arg
17690 from struct inferior_list_entry * to struct lwp_info *.
17691 All callers updated.
17692
17693 2009-05-13 Doug Evans <dje@google.com>
17694
17695 * linux-x86-low.c: Don't include assert.h.
17696 (x86_siginfo_fixup): Use fatal, not assert.
17697 (x86_arch_setup): Fix comment.
17698
17699 2009-05-12 Doug Evans <dje@google.com>
17700
17701 Biarch support for i386/amd64 gdbserver.
17702 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
17703 Add linux-x86-low.c.
17704 (linux-i386-low.o, linux-x86-64-low.o): Delete.
17705 (linux-x86-low.o): Add.
17706 * linux-x86-64-low.c: Delete.
17707 * linux-i386-low.c: Delete.
17708 * linux-x86-low.c: New file.
17709 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
17710 linux-x86-low.o.
17711 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
17712 linux-x86-low.o.
17713 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
17714 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
17715 (linux_child_pid_to_exec_file): New function.
17716 (elf_64_header_p, elf_64_file_p): New functions.
17717 (siginfo_fixup): New function.
17718 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
17719 give target a chance to convert layout.
17720 * linux-low.h (linux_target_ops): New member siginfo_fixup.
17721 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
17722
17723 2009-05-07 Doug Evans <dje@google.com>
17724
17725 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
17726 (regsets_store_inferior_registers): Ditto.
17727
17728 2009-05-06 Pedro Alves <pedro@codesourcery.com>
17729
17730 PR server/10048
17731
17732 * linux-low.c (must_set_ptrace_flags): Delete.
17733 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
17734 of the global.
17735 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
17736 `lwp->must_set_ptrace_flags' instead.
17737 (linux_wait_for_event_1): Set ptrace options here.
17738 (linux_wait_1): ... not here.
17739
17740 2009-04-30 Doug Evans <dje@google.com>
17741
17742 * inferiors.c (started_inferior_callback): New function.
17743 (attached_inferior_callback): New function.
17744 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
17745 * server.c (print_started_pid, print_attached_pid): New functions.
17746 (detach_or_kill_for_exit): New function.
17747 (main): Call it instead of for_each_inferior (kill_inferior_callback).
17748 * server.h (have_started_inferiors_p): Declare.
17749 (have_attached_inferiors_p): Declare.
17750
17751 * inferiors.c (remove_process): Fix memory leak, free process.
17752 * linux-low.c (linux_remove_process): New function.
17753 (linux_kill): Call it instead of remove_process.
17754 (linux_detach, linux_wait_1): Ditto.
17755
17756 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17757
17758 * configure.srv: Add x86 Windows CE target.
17759
17760 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17761
17762 * inferiors.c (get_thread_process): Make global.
17763 * server.h (get_thread_process): Add prototype.
17764 * thread-db.c (find_one_thread): Use get_thread_process
17765 instead of current_process.
17766 (thread_db_get_tls_address): Do not crash if called when
17767 thread layer is not yet initialized.
17768
17769 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17770
17771 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17772 * spu-low.c (current_tid): Rename to ...
17773 (current_ptid): ... this.
17774 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17775 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17776 ptid_get_lwp (current_ptid) instead of current_tid.
17777 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17778 instead of current_tid. Use find_process_pid to verify pid
17779 argument is valid. Pass proper argument to remove_process.
17780 (spu_thread_alive): Compare current_ptid instead of current_tid.
17781 (spu_resume): Likewise.
17782
17783 2009-04-02 Pedro Alves <pedro@codesourcery.com>
17784
17785 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17786 variable.
17787
17788 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17789
17790 Implement the multiprocess extensions, and add linux multiprocess
17791 support.
17792
17793 * server.h (ULONGEST): Declare.
17794 (struct ptid, ptid_t): New.
17795 (minus_one_ptid, null_ptid): Declare.
17796 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17797 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
17798 (struct inferior_list_entry): Change `id' type from unsigned from
17799 to ptid_t.
17800 (struct sym_cache, struct breakpoint, struct
17801 process_info_private): Forward declare.
17802 (struct process_info): Declare.
17803 (current_process): Declare.
17804 (all_processes): Declare.
17805 (initialize_inferiors): Declare.
17806 (add_thread): Adjust to use ptid_t.
17807 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
17808 (add_process, remove_process, find_thread_pid): Declare.
17809 (find_inferior_id): Adjust to use ptid_t.
17810 (cont_thread, general_thread, step_thread): Change type to ptid_t.
17811 (multi_process): Declare.
17812 (push_event): Adjust to use ptid_t.
17813 (read_ptid, write_ptid): Declare.
17814 (prepare_resume_reply): Adjust to use ptid_t.
17815 (clear_symbol_cache): Declare.
17816 * inferiors.c (all_processes): New.
17817 (null_ptid, minus_one_ptid): New.
17818 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17819 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
17820 (add_thread): Change unsigned long to ptid. Remove gdb_id
17821 parameter. Adjust.
17822 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
17823 (gdb_id_to_thread): Rename to ...
17824 (find_thread_pid): ... this. Change unsigned long to ptid.
17825 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
17826 (loaded_dll, pull_pid_from_list): Adjust.
17827 (add_process, remove_process, find_process_pid)
17828 (get_thread_process, current_process, initialize_inferiors): New.
17829 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
17830 (struct target_waitstatus) <related_pid>: Ditto.
17831 (struct target_ops) <kill, detach>: Add `pid' argument. Change
17832 return type to int.
17833 (struct target_ops) <join>: Add `pid' argument.
17834 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
17835 (struct target_ops) <wait>: Add `ptid' field. Change return type
17836 to ptid.
17837 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
17838 (mywait): Add `ptid' argument. Change return type to ptid_t.
17839 (target_pid_to_str): Declare.
17840 * target.c (set_desired_inferior): Adjust to use ptids.
17841 (mywait): Add new `ptid' argument. Adjust.
17842 (target_pid_to_str): New.
17843 * mem-break.h (free_all_breakpoints): Declare.
17844 * mem-break.c (breakpoints): Delelete.
17845 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
17846 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
17847 to use per-process breakpoint list.
17848 (free_all_breakpoints): New.
17849 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
17850 (symbol_cache, all_symbols_looked_up): Delete.
17851 (hexchars): New.
17852 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
17853 read_ptid): New.
17854 (prepare_resume_reply): Change ptid argument's type from unsigned
17855 long to ptid_t. Adjust. Implement W;process and X;process.
17856 (free_sym_cache, clear_symbol_cache): New.
17857 (look_up_one_symbol): Adjust to per-process symbol cache. *
17858 * server.c (cont_thread, general_thread, step_thread): Change type
17859 to ptid_t.
17860 (attached): Delete.
17861 (multi_process): New.
17862 (last_ptid): Change type to ptid_t.
17863 (struct vstop_notif) <ptid>: Change type to ptid_t.
17864 (queue_stop_reply, push_event): Change `ptid' argument's type to
17865 ptid_t.
17866 (discard_queued_stop_replies): Add `pid' argument.
17867 (start_inferior): Adjust to use ptids. Adjust to mywait interface
17868 changes. Don't reference the `attached' global.
17869 (attach_inferior): Adjust to mywait interface changes.
17870 (handle_query): Adjust to use ptids. Parse GDB's qSupported
17871 features. Handle and report "multiprocess+". Handle
17872 "qAttached:PID".
17873 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
17874 changes.
17875 (handle_v_kill): New.
17876 (handle_v_stopped): Adjust to use target_pid_to_str.
17877 (handle_v_requests): Allow multiple attaches and runs when
17878 multiprocess extensions are in effect. Handle "vKill".
17879 (myresume): Adjust to use ptids.
17880 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
17881 (handle_status): Adjust to discard_queued_stop_replies interface
17882 change.
17883 (first_thread_of, kill_inferior_callback)
17884 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
17885 (main): Call initialize_inferiors. Adjust to use ptids, killing
17886 and detaching from all inferiors. Handle multiprocess packet
17887 variants.
17888 * linux-low.h: Include gdb_proc_service.h.
17889 (struct process_info_private): New.
17890 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
17891 <lwpid_of>: Use ptid_get_lwp.
17892 (get_lwp_thread): Adjust.
17893 (struct lwp_info): Add `dead' member.
17894 (find_lwp_pid): Declare.
17895 * linux-low.c (thread_db_active): Delete.
17896 (new_inferior): Adjust comment.
17897 (inferior_pid): Delete.
17898 (linux_add_process): New.
17899 (handle_extended_wait): Adjust.
17900 (add_lwp): Change unsigned long to ptid.
17901 (linux_create_inferior): Add process to processes table. Adjust
17902 to use ptids. Don't set new_inferior here.
17903 (linux_attach_lwp): Rename to ...
17904 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
17905 it. Adjust to use ptids.
17906 (linux_attach_lwp): New.
17907 (linux_attach): Add process to processes table. Don't set
17908 new_inferior here.
17909 (struct counter): New.
17910 (second_thread_of_pid_p, last_thread_of_process_p): New.
17911 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
17912 multiple processes.
17913 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
17914 processes. Remove process from process table.
17915 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
17916 to multiple processes.
17917 (any_thread_of): New.
17918 (linux_detach): Add `pid' argument, and handle it. Remove process
17919 from processes table.
17920 (linux_join): Add `pid' argument. Handle it.
17921 (linux_thread_alive): Change unsighed long argument to ptid_t.
17922 Consider dead lwps as not being alive.
17923 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
17924 threads we're not interested in.
17925 (same_lwp, find_lwp_pid): New.
17926 (linux_wait_for_lwp): Change `pid' argument's type from int to
17927 ptid_t. Adjust.
17928 (linux_wait_for_event): Rename to ...
17929 (linux_wait_for_event_1): ... this. Change `pid' argument's type
17930 from int to ptid_t. Adjust.
17931 (linux_wait_for_event): New.
17932 (linux_wait_1): Add `ptid' argument. Change return type to
17933 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
17934 that exit from the process table.
17935 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
17936 Adjust.
17937 (mark_lwp_dead): New.
17938 (wait_for_sigstop): Adjust to use ptids. If a process exits while
17939 stopping all threads, mark its main lwp as dead.
17940 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
17941 ptids.
17942 (fetch_register, usr_store_inferior_registers)
17943 (regsets_fetch_inferior_registers)
17944 (regsets_store_inferior_registers, linux_read_memory)
17945 (linux_write_memory): Inline `inferior_pid'.
17946 (linux_look_up_symbols): Adjust to use per-process
17947 `thread_db_active'.
17948 (linux_request_interrupt): Adjust to use ptids.
17949 (linux_read_auxv): Inline `inferior_pid'.
17950 (initialize_low): Don't reference thread_db_active.
17951 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
17952 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
17953 (ps_getpid): Return the pid of the current inferior.
17954 * thread-db.c (proc_handle, thread_agent): Delete.
17955 (thread_db_create_event, thread_db_enable_reporting): Adjust to
17956 per-process data.
17957 (find_one_thread): Change argument type to ptid_t. Adjust to
17958 per-process data.
17959 (maybe_attach_thread): Adjust to per-process data and ptids.
17960 (thread_db_find_new_threads): Ditto.
17961 (thread_db_init): Ditto.
17962 * spu-low.c (spu_create_inferior, spu_attach): Add process to
17963 processes table. Adjust to use ptids.
17964 (spu_kill, spu_detach): Adjust interface. Remove process from
17965 processes table.
17966 (spu_join, spu_thread_alive): Adjust interface.
17967 (spu_wait): Adjust interface. Remove process from processes
17968 table. Adjust to use ptids.
17969 * win32-low.c (current_inferior_tid): Delete.
17970 (current_inferior_ptid): New.
17971 (debug_event_ptid): New.
17972 (thread_rec): Take a ptid. Adjust.
17973 (child_add_thread): Add `pid' argument. Adjust to use ptids.
17974 (child_delete_thread): Ditto.
17975 (do_initial_child_stuff): Add `attached' argument. Add process to
17976 processes table.
17977 (child_fetch_inferior_registers, child_store_inferior_registers):
17978 Adjust.
17979 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
17980 (win32_attach): Pass 1 to do_initial_child_stuff.
17981 (win32_kill): Adjust interface. Remove process from processes
17982 table.
17983 (win32_detach): Ditto.
17984 (win32_join): Adjust interface.
17985 (win32_thread_alive): Take a ptid.
17986 (win32_resume): Adjust to use ptids.
17987 (get_child_debug_event): Ditto.
17988 (win32_wait): Adjust interface. Remove exiting process from
17989 processes table.
17990
17991 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17992
17993 Non-stop mode support.
17994
17995 * server.h (non_stop): Declare.
17996 (gdb_client_data, handler_func): Declare.
17997 (delete_file_handler, add_file_handler, start_event_loop):
17998 Declare.
17999 (handle_serial_event, handle_target_event, push_event)
18000 (putpkt_notif): Declare.
18001 * target.h (enum resume_kind): New.
18002 (struct thread_resume): Replace `step' field by `kind' field.
18003 (TARGET_WNOHANG): Define.
18004 (struct target_ops) <wait>: Add `options' argument.
18005 <supports_non_stop, async, start_non_stop>: New fields.
18006 (target_supports_non_stop, target_async): New.
18007 (start_non_stop): Declare.
18008 (mywait): Add `options' argument.
18009 * target.c (mywait): Add `options' argument. Print child exit
18010 notifications here.
18011 (start_non_stop): New.
18012 * server.c (non_stop, own_buf, mem_buf): New globals.
18013 (struct vstop_notif): New.
18014 (notif_queue): New global.
18015 (queue_stop_reply, push_event, discard_queued_stop_replies)
18016 (send_next_stop_reply): New.
18017 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18018 interface changes.
18019 (attach_inferior): In non-stop mode, don't wait for the target
18020 here.
18021 (handle_general_set): Handle QNonStop.
18022 (handle_query): When handling qC, return the current general
18023 thread, instead of the first thread of the list.
18024 (handle_query): If the backend supports non-stop mode, include
18025 QNonStop+ in the qSupported query response.
18026 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18027 and non-stop mode.
18028 (handle_v_attach, handle_v_run): Handle non-stop mode.
18029 (handle_v_stopped): New.
18030 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18031 (myresume): Adjust to use resume_kind. Handle non-stop.
18032 (queue_stop_reply_callback): New.
18033 (handle_status): Handle non-stop mode.
18034 (main): Clear non_stop flag on reconnection. Use the event-loop.
18035 Refactor serial protocol handling from here ...
18036 (process_serial_event): ... to this new function. When GDB
18037 selects any thread, select one here. In non-stop mode, wait until
18038 GDB acks all pending events before exiting.
18039 (handle_serial_event, handle_target_event): New.
18040 * remote-utils.c (remote_open): Install remote_desc in the event
18041 loop.
18042 (remote_close): Remove remote_desc from the event loop.
18043 (putpkt_binary): Rename to...
18044 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18045 (putpkt_binary): New as wrapper around putpkt_binary_1.
18046 (putpkt_notif): New.
18047 (prepare_resume_reply): In non-stop mode, don't change the
18048 general_thread.
18049 * event-loop.c: New.
18050 * Makefile.in (OBJ): Add event-loop.o.
18051 (event-loop.o): New rule.
18052
18053 * linux-low.h (pid_of): Moved here.
18054 (lwpid_of): New.
18055 (get_lwp_thread): Use lwpid_of.
18056 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18057 * linux-low.c (pid_of): Delete.
18058 (inferior_pid): Use lwpid_of.
18059 (linux_event_pipe): New.
18060 (target_is_async_p): New.
18061 (delete_lwp): New.
18062 (handle_extended_wait): Use lwpid_of.
18063 (add_lwp): Don't set lwpid field.
18064 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18065 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18066 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18067 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18068 first. Adjust to linux_wait_for_event interface changes. Use
18069 lwpid_of.
18070 (linux_detach): Don't delete the main lwp here.
18071 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18072 (status_pending_p): Don't consider explicitly suspended lwps.
18073 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18074 pointer. Add OPTIONS argument. Change return type to int. Use
18075 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18076 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18077 pointer. Add status pointer argument. Return a pid instead of a
18078 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18079 changes. In non-stop mode, don't switch to a random thread.
18080 (linux_wait): Rename to...
18081 (linux_wait_1): ... this. Add target_options argument, and handle
18082 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18083 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18084 clean exit and signal exit code. Don't stop all threads in
18085 non-stop mode. In all-stop mode, only stop all threads when
18086 reporting a stop to GDB. Handle explicit thread stop requests.
18087 (async_file_flush, async_file_mark): New.
18088 (linux_wait): New.
18089 (send_sigstop): Use lwpid_of.
18090 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18091 interface changes. In non-stop mode, don't switch to a random
18092 thread.
18093 (linux_resume_one_lwp): Use lwpid_of.
18094 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18095 (linux_resume_one_thread): ... this. Handle resume_stop. In
18096 non-stop mode, don't look for pending flag in all threads.
18097 (resume_status_pending_p): Don't consider explicitly suspended
18098 threads.
18099 (my_waitpid): Reimplement. Emulate __WALL.
18100 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18101 Use lwpid_of.
18102 (sigchld_handler, linux_supports_non_stop, linux_async)
18103 (linux_start_non_stop): New.
18104 (linux_target_ops): Register linux_supports_non_stop, linux_async
18105 and linux_start_non_stop.
18106 (initialize_low): Install SIGCHLD handler.
18107 * thread-db.c (thread_db_create_event, find_one_thread)
18108 (thread_db_get_tls_address): Use lwpid_of.
18109 * win32-low.c (win32_detach): Adjust to use resume_kind.
18110 (win32_wait): Add `options' argument.
18111 * spu-low.c (spu_resume): Adjust to use resume_kind.
18112 (spu_wait): Add `options' argument.
18113
18114 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18115
18116 Decouple target code from remote protocol.
18117
18118 * target.h (enum target_waitkind): New.
18119 (struct target_waitstatus): New.
18120 (struct target_ops) <wait>: Return an unsigned long. Take a
18121 target_waitstatus pointer instead of a char pointer.
18122 (mywait): Likewise.
18123 * target.c (mywait): Change prototype to return an unsigned long.
18124 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18125 * server.h (thread_from_wait, old_thread_from_wait): Delete
18126 declarations.
18127 (prepare_resume_reply): Change prototype to take a
18128 target_waitstatus.
18129 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18130 (last_status, last_ptid): New.
18131 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18132 pid instead of a signal.
18133 (attach_inferior): Remove "status" and "signal" parameters.
18134 Adjust.
18135 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18136 not as an address.
18137 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18138 (handle_v_requests, myresume): Remove "status" and "signal"
18139 parameters. Adjust.
18140 (handle_status): New.
18141 (main): Delete local `status'. Adjust.
18142 * remote-utils.c: Include target.h.
18143 (prepare_resume_reply): Change prototype to take a
18144 target_waitstatus. Adjust.
18145
18146 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18147 interface.
18148 * spu-low.c (spu_wait): Adjust.
18149 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18150 Delete.
18151 (win32_wait): Adjust.
18152
18153 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18154
18155 * target.h (struct thread_resume): Delete leave_stopped member.
18156 (struct target_ops): Add a `n' argument to the `resume' callback.
18157 * server.c (start_inferior): Adjust.
18158 (handle_v_cont, myresume): Adjust.
18159 * linux-low.c (check_removed_breakpoint): Adjust to resume
18160 interface change, and to removed leave_stopped field.
18161 (resume_ptr): Delete.
18162 (struct thread_resume_array): New.
18163 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18164 resume interface change.
18165 (linux_continue_one_thread, linux_queue_one_thread)
18166 (resume_status_pending_p): Check if the resume field is NULL
18167 instead of checking the leave_stopped member.
18168 (linux_resume): Adjust to the target resume interface change.
18169 * spu-low.c (spu_resume): Adjust to the target resume interface
18170 change.
18171 * win32-low.c (win32_detach, win32_resume): Ditto.
18172
18173 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18174
18175 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18176 flag.
18177 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18178 pending.
18179 (linux_continue_one_thread): Only preserve the stepping flag if
18180 there's a pending breakpoint.
18181
18182 2009-03-31 Pedro Alves <pedro@codesourcery.com>
18183
18184 * server.c (main): After the inferior having exited, call
18185 remote_close before exiting gdbserver.
18186
18187 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18188
18189 Fix size of FPSCR in Power 7 processors.
18190 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18191 (PPC_FEATURE_HAS_DFP): New #define.
18192 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18193 size of the FPSCR.
18194
18195 2009-03-23 Pedro Alves <pedro@codesourcery.com>
18196
18197 * server.c (handle_query) Whitespace and formatting.
18198
18199 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18200
18201 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18202 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18203 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18204 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18205 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18206 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18207 Makefile.in, configure.ac: Fix whitespace throughout.
18208 * configure: Regenerate.
18209
18210 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18211
18212 * inferiors.c (find_inferior): Make it safe for the callback
18213 function to delete the currently iterated inferior.
18214
18215 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18216
18217 * Makefile.in (linuw_low_h): Move higher.
18218 (thread-db.o): Depend on $(linux_low_h).
18219
18220 2009-03-17 Pedro Alves <pedro@codesourcery.com>
18221
18222 Rename "process" to "lwp" throughout.
18223
18224 * linux-low.c (all_processes): Rename to...
18225 (all_lwps): ... this.
18226 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18227 (add_process): Rename to ...
18228 (add_lwp): ... this. Adjust.
18229 (linux_create_inferior): Adjust.
18230 (linux_attach_lwp): Adjust.
18231 (linux_attach): Adjust.
18232 (linux_kill_one_process): Rename to ...
18233 (linux_kill_one_lwp): ... this. Adjust.
18234 (linux_kill): Adjust.
18235 (linux_detach_one_process): Rename to ...
18236 (linux_detach_one_lwp): ... this. Adjust.
18237 (linux_detach): Adjust.
18238 (check_removed_breakpoint): Adjust.
18239 (status_pending_p): Adjust.
18240 (linux_wait_for_process): Rename to ...
18241 (linux_wait_for_lwp): ... this. Adjust.
18242 (linux_wait_for_event): Adjust.
18243 (send_sigstop): Adjust.
18244 (wait_for_sigstop): Adjust.
18245 (stop_all_processes): Rename to ...
18246 (stop_all_lwps): ... this.
18247 (linux_resume_one_process): Rename to ...
18248 (linux_resume_one_lwp): ... this. Adjust.
18249 (linux_set_resume_request, linux_continue_one_thread)
18250 (linux_queue_one_thread, resume_status_pending_p)
18251 (usr_store_inferior_registers, regsets_store_inferior_registers)
18252 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18253 Adjust.
18254 * linux-low.h (get_process): Rename to ...
18255 (get_lwp): ... this. Adjust.
18256 (get_thread_process): Rename to ...
18257 (get_thread_lwp): ... this. Adjust.
18258 (get_process_thread): Rename to ...
18259 (get_lwp_thread): ... this. Adjust.
18260 (struct process_info): Rename to ...
18261 (struct lwp_info): ... this.
18262 (all_processes): Rename to ...
18263 (all_lwps): ... this.
18264 * proc-service.c (ps_lgetregs): Adjust.
18265 * thread-db.c (thread_db_create_event, find_one_thread)
18266 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18267
18268 2009-03-14 Pedro Alves <pedro@codesourcery.com>
18269
18270 * server.c (handle_query): Handle "qAttached".
18271
18272 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18273
18274 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18275 GPLv3, update license URL.
18276
18277 2009-03-01 Doug Evans <dje@google.com>
18278
18279 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
18280 (server_h): Add gdb_signals.h.
18281 (signals.o): Update.
18282 * server.h (target_signal_from_host,target_signal_to_host_p)
18283 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18284
18285 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18286
18287 * remote-utils.c (getpkt): Also generate remote-debug
18288 information if noack_mode is set.
18289
18290 2009-02-06 Pedro Alves <pedro@codesourcery.com>
18291
18292 * server.c (handle_query): Report qXfer:siginfo:read and
18293 qXfer:siginfo:write as supported and handle them.
18294 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18295 * linux-low.c (linux_xfer_siginfo): New.
18296 (linux_target_ops): Set it.
18297
18298 2009-01-26 Pedro Alves <pedro@codesourcery.com>
18299
18300 * server.c (gdbserver_usage): Mention --remote-debug.
18301 (main): Accept '--remote-debug' switch.
18302
18303 2009-01-18 Doug Evans <dje@google.com>
18304
18305 * regcache.c (new_register_cache): No need to check result of xcalloc.
18306 * server.c (handle_search_memory): Back out calls to xmalloc,
18307 result is checked and error is returned to user upon failure.
18308 (handle_query): Ditto. Add more checks for result of malloc.
18309 (handle_v_cont): Check result of malloc, report error back to
18310 user upon failure.
18311 (handle_v_run): Ditto. Call freeargv.
18312 * server.h (freeargv): Declare.
18313 * utils.c (freeargv): New fn.
18314
18315 2009-01-15 Doug Evans <dje@google.com>
18316
18317 * gdbreplay.c (perror_with_name): Make arg const char *.
18318 * server.h (target_signal_to_name): Make return type const char *.
18319 * thread-db.c (thread_db_err_str): Make return type const char *.
18320 * utils.c (perror_with_name): Make arg const char *.
18321
18322 2009-01-14 Pedro Alves <pedro@codesourcery.com>
18323
18324 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18325 when handling a EXIT_PROCESS_DEBUG_EVENT.
18326
18327 2009-01-06 Joel Brobecker <brobecker@adacore.com>
18328
18329 * gdbreplay.c (gdbreplay_version): Update copyright year.
18330 * server.c (gdbserver_version): Likewise.
18331
18332 2009-01-05 Doug Evans <dje@google.com>
18333
18334 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
18335 (handle_extended_wait): Improve comment.
18336
18337 2008-12-13 Doug Evans <dje@google.com>
18338
18339 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18340 * server.h (ATTR_MALLOC): New macro.
18341 (xmalloc,xcalloc,xstrdup): Declare.
18342 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18343 * inferiors.c: Ditto.
18344 * linux-low.c: Ditto.
18345 * mem-break.c: Ditto.
18346 * regcache.c: Ditto.
18347 * remote-utils.c: Ditto.
18348 * server.c: Ditto.
18349 * target.c: Ditto.
18350 * win32-low.c: Ditto.
18351
18352 2008-12-12 Doug Evans <dje@google.com>
18353
18354 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
18355 in debugging printf.
18356
18357 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
18358
18359 2008-12-09 Doug Evans <dje@google.com>
18360
18361 * linux-low.h (struct process_info): Delete member tid, unused.
18362 * thread-db.c (find_one_thread): Update.
18363 (maybe_attach_thread): Update.
18364
18365 2008-12-02 Pedro Alves <pedro@codesourcery.com>
18366
18367 * target.h (struct target_ops): Add qxfer_osdata member.
18368 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
18369 and dirent.h.
18370 (linux_qxfer_osdata): New functions.
18371 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
18372 callback.
18373 * server.c (handle_query): Handle "qXfer:osdata:read:".
18374 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
18375 (buffer_xml_printf): New functions.
18376 * server.h (struct buffer): New.
18377 (buffer_grow_str, buffer_grow_str0): New macros.
18378 (buffer_grow, buffer_free, buffer_init, buffer_finish)
18379 (buffer_xml_printf): Declare.
18380
18381 2008-11-24 Doug Evans <dje@google.com>
18382
18383 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
18384
18385 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
18386
18387 * server.c (handle_v_run): Always use the supplied argument list.
18388
18389 2008-11-19 Bob Wilson <bob.wilson@acm.org>
18390
18391 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
18392 (xtensa_regmap_table): Add entry for scompare1.
18393
18394 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
18395
18396 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
18397 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
18398 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
18399 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
18400 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
18401 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
18402 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
18403 XML target descriptions.
18404 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
18405 when inferior is running on an ISA 2.05 or later processor. Add
18406 special case to return offset for full 64-bit slot of FPSCR when
18407 in 32-bits.
18408
18409 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
18410
18411 * Makefile.in (SFILES, clean): Added sparc64 files.
18412 (reg-sparc64.o, reg-sparc64.c): New.
18413 * configure.srv (sparc*-*-linux*): New configuration.
18414 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
18415 syscall arguments for SPARC.
18416 (regsets_store_inferior_registers): Likewise.
18417 * linux-sparc-low.c: New file.
18418
18419 2008-10-21 Doug Evans <dje@google.com>
18420
18421 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
18422 (READLINE_DIR,READLINE_DEP): Delete.
18423 (INTERNAL_CFLAGS): Update.
18424 (LINTFLAGS): Update.
18425
18426 2008-10-10 Pedro Alves <pedro@codesourcery.com>
18427
18428 * server.c (handle_v_run): If GDB didn't specify an argv, use the
18429 whole argv from the last run, not just argv[0].
18430
18431 2008-09-08 Pedro Alves <pedro@codesourcery.com>
18432
18433 * regcache.c (new_register_cache): Return NULL if the register
18434 cache size isn't known yet.
18435 (free_register_cache): Avoid dereferencing a NULL regcache.
18436
18437 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18438
18439 * configure.srv: Merge MIPS and MIPS64.
18440
18441 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
18442
18443 * Makefile.in (uninstall): Apply $(EXEEXT) too.
18444
18445 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
18446
18447 * Makefile.in: Add required vsx dependencies.
18448
18449 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
18450 Declare init_registers_powerpc_vsx32l.
18451 Declare init_registers_powerpc_vsx64l.
18452 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
18453 (ppc_arch_setup): Check for VSX in hwcap.
18454 (ppc_fill_vsxregset): New function.
18455 (ppc_store_vsxregset): New function.
18456 Add new VSX entry in regset_info target_regsets.
18457
18458 * configure.srv: Add new VSX dependencies.
18459
18460 2008-08-12 Pedro Alves <pedro@codesourcery.com>
18461
18462 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
18463 (remote_open): Set or clear transport_is_reliable.
18464 (putpkt_binary): Don't expect acks in noack mode.
18465 (getpkt): Don't send ack/nac in noack mode.
18466 * server.c (handle_general_set): Handle QStartNoAckMode.
18467 (handle_query): If connected by tcp pass QStartNoAckMode+ in
18468 qSupported.
18469 (main): Reset noack_mode on every connection.
18470 * server.h (noack_mode): Declare.
18471
18472 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18473
18474 * Makefile.in (GDBREPLAY_OBS): New variable.
18475 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
18476
18477 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
18478 Daniel Jacobowitz <dan@codesourcery.com>
18479
18480 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
18481 (usr_store_inferior_registers): Likewise.
18482 (regsets_store_inferior_registers): Likewise.
18483
18484 2008-07-31 Rolf Jansen <rj@surtec.com>
18485 Pedro Alves <pedro@codesourcery.com>
18486
18487 * configure.ac: Check for memmem declaration.
18488 * server.c [HAVE_MALLOC_H]: Include malloc.h.
18489 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
18490 (disable_packet_qfThreadInfo): Unconditionally compile.
18491 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
18492 * configure, config.in: Regenerate.
18493
18494 2008-07-28 Doug Kwan <dougkwan@google.com>
18495
18496 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
18497 (linux_write_memory): Remove declaration of errno.
18498
18499 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
18500
18501 * linux-low.c (handle_extended_wait): Do not use "status"
18502 variable uninitialized.
18503
18504 2008-07-07 Pedro Alves <pedro@codesourcery.com>
18505
18506 * server.c (handle_v_attach): Inhibit reporting dll changes.
18507
18508 2008-06-27 Pedro Alves <pedro@codesourcery.com>
18509
18510 * remote-utils.c (prepare_resume_reply): If requested, don't
18511 output "thread:TID" in the T stop reply.
18512
18513 * server.c (disable_packet_vCont, disable_packet_Tthread)
18514 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
18515 (handle_query): If requested, disable support for qC, qfThreadInfo
18516 and qsThreadInfo.
18517 (handle_v_requests): If requested, disable support for vCont.
18518 (gdbserver_show_disableable): New.
18519 (main): Handle --disable-packet and --disable-packet=LIST.
18520
18521 * server.h (disable_packet_vCont, disable_packet_Tthread)
18522 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
18523
18524 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
18525
18526 * server.c (gdbserver_usage): Mention --version.
18527
18528 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
18529
18530 * Makefile.in (gdbreplay.o): New rule.
18531
18532 2008-06-06 Joseph Myers <joseph@codesourcery.com>
18533
18534 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
18535 message, not gdbserver.
18536
18537 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
18538 Nathan Sidwell <nathan@codesourcery.com>
18539 Joseph Myers <joseph@codesourcery.com>
18540
18541 * acinclude.m4: Include ../../config/acx.m4.
18542 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
18543 * configure, config.in: Regenerate.
18544 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
18545 * server.c (gdbserver_version): Print PKGVERSION.
18546 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
18547 (main): Adjust gdbserver_usage calls.
18548 * gdbreplay.c (version, host_name): Add declarations.
18549 (gdbreplay_version, gdbreplay_usage): New.
18550 (main): Accept --version and --help options.
18551
18552 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
18553
18554 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
18555 (arm_breakpoint_at): Handle Thumb.
18556 (the_low_target): Add comment.
18557
18558 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
18559
18560 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
18561
18562 2008-05-09 Doug Evans <dje@google.com>
18563
18564 * server.h (decode_search_memory_packet): Declare.
18565 * remote-utils.c (decode_search_memory_packet): New fn.
18566 * server.c (handle_search_memory_1): New fn.
18567 (handle_search_memory): New fn.
18568 (handle_query): Process qSearch:memory packets.
18569
18570 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
18571
18572 * regcache.c (registers_length): Remove.
18573 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
18574 full register packet.
18575 * regcache.h (registers_length): Remove prototype.
18576 * server.h (PBUFSIZ): Define to 16384.
18577
18578 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
18579
18580 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
18581 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
18582 powerpc-64l.o, and powerpc-altivec64l.o.
18583 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
18584 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
18585 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
18586 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
18587 rs6000/power-linux.xml, and rs6000/power64-linux.xml
18588 to srv_xmlfiles.
18589
18590 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
18591 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
18592 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
18593 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
18594 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
18595 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
18596 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
18597 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
18598 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
18599 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
18600 (clean): Update.
18601
18602 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
18603 (init_registers_powerpc_32l): ... this new prototype.
18604 (init_registers_powerpc_32): Remove, replace by ...
18605 (init_registers_powerpc_altivec32l): ... this new prototype.
18606 (init_registers_powerpc_e500): Remove, replace by ...
18607 (init_registers_powerpc_e500l): ... this new prototype.
18608 (init_registers_ppc64): Remove, replace by ...
18609 (init_registers_powerpc_64l): ... this new prototype.
18610 (init_registers_powerpc_64): Remove, replace by ...
18611 (init_registers_powerpc_altivec64l): ... this new prototype.
18612 (ppc_num_regs): Set to 73.
18613 (PT_ORIG_R3, PT_TRAP): Define if necessary.
18614 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
18615 (ppc_cannot_store_register): Handle orig_r3 and trap.
18616 (ppc_arch_setup): Update init_registers_... calls.
18617 (ppc_fill_gregset): Handle orig_r3 and trap.
18618
18619 * inferiors.c (clear_inferiors): Reset current_inferior.
18620
18621 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
18622
18623 * acinclude.m4: Add override.m4.
18624 * configure: Regenerate.
18625
18626 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18627
18628 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
18629 initial call to init_register_ppc64.
18630
18631 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
18632
18633 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
18634 single powerpc*-*-linux* case.
18635 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
18636
18637 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18638
18639 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
18640 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
18641 from reg_xmlfiles.
18642 * linux-ppc-low.c: Include <elf.h>.
18643 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
18644 (ppc_hwcap): New global variable.
18645 (ppc_regmap): Remove __SPE__ #ifdef sections.
18646 (ppc_regmap_e500): New global variable.
18647 (ppc_cannot_store_register): Update __SPE__ special case.
18648 (ppc_get_hwcap): New function.
18649 (ppc_arch_setup): Use it to determine whether inferior supports
18650 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
18651 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
18652 Do not access registers if target does not support AltiVec.
18653 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
18654 Do not access registers if target does not support SPE.
18655 (target_regsets): Unconditionally include AltiVec and SPE regsets.
18656
18657 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
18658
18659 * linux-low.c (disabled_regsets, num_regsets): New.
18660 (use_regsets_p): Delete.
18661 (linux_wait_for_process): Clear disabled_regsets.
18662 (regsets_fetch_inferior_registers): Check and set it.
18663 (regsets_store_inferior_registers): Likewise.
18664 (linux_fetch_registers, linux_store_registers): Do not use
18665 use_regsets_p.
18666 (initialize_low): Allocate disabled_regsets.
18667
18668 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
18669
18670 * Makefile.in (LIBOBJS): New.
18671 (OBS): Use LIBOBJS.
18672 (memmem.o): New rule.
18673 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
18674 * configure: Regenerated.
18675
18676 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18677
18678 * server.c (handle_query): Never return "unsupported" for
18679 qXfer:features:read queries.
18680
18681 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
18682
18683 * server.c (get_features_xml): Fix inverted condition.
18684 (handle_query): Always support qXfer:feature:read.
18685
18686 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
18687
18688 * server.c (wrapper_argv): New.
18689 (start_inferior): Handle wrapper_argv. If set, expect an extra
18690 trap.
18691 (gdbserver_usage): Document --wrapper.
18692 (main): Parse --wrapper.
18693
18694 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18695
18696 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
18697 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
18698 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
18699 (ppc_set_pc): Likewise.
18700 (ppc_arch_setup): New function.
18701 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
18702 of collect_register.
18703 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
18704
18705 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18706
18707 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
18708 instead of linux-ppc64-low.o.
18709 * linux-ppc64-low.c: Remove file.
18710 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
18711 (linux-ppc64-low.o): Remove rule.
18712
18713 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
18714 (init_registers_powerpc_64): Likewise.
18715 (ppc_regmap): Conditionally define depending on __powerpc64__.
18716 (ppc_cannot_store_register): Do not special-case "fpscr" when
18717 compiled on __powerpc64__.
18718 (ppc_collect_ptrace_register): New function.
18719 (ppc_supply_ptrace_register): New function.
18720 (ppc_breakpoint): Change type to "unsigned int".
18721 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
18722 (the_low_target): Conditionally provide initializers for the
18723 arch_setup member depending on __powerpc64__. Install
18724 collect_ptrace_register and supply_ptrace_register members.
18725
18726 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
18727
18728 * regcache.h (gdbserver_xmltarget): Add extern declaration.
18729 * server.c (gdbserver_xmltarget): Define.
18730 (get_features_xml): Use it to replace "target.xml" and arch_string.
18731
18732 * configure.srv: Remove srv_xmltarget. Add XML files that were
18733 mentioned there to srv_xmlfiles instead. Remove conditional tests
18734 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
18735 srv_xmlfiles and srv_regobj to include all possible choices.
18736 * configure.ac (srv_xmltarget): Remove.
18737 (srv_xmlfiles): Do not add "target.xml".
18738 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
18739 checks for supplementary target information.
18740 * configure: Regenerate.
18741 * Makefile.in (XML_TARGET): Remove.
18742 (target.xml): Remove rule.
18743 (clean): Do not clean up target.xml.
18744 (.PRECIOUS): Do not mention target.xml.
18745
18746 * target.h (struct target_ops): Remove arch_string member.
18747 * linux-low.c (linux_arch_string): Remove.
18748 (linux_target_ops): Remove arch_string initializer.
18749 * linux-low.h (struct linux_target_ops): Remove arch_string member.
18750 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
18751 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
18752 * spu-low.c (spu_arch_string): Remove.
18753 (spu_target_ops): Remove arch_string initializer.
18754 * win32-low.c (win32_arch_string): Remove.
18755 (win32_target_ops): Remove arch_string initializer.
18756 * win32-low.h (struct win32_target_ops): Remove arch_string member.
18757 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18758 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18759
18760 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18761
18762 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18763 by collect_ptrace_register and supply_ptrace_register hooks.
18764 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18765 instead of checking for the_low_target.left_pad_xfer.
18766 (usr_store_inferior_registers): Use collect_ptrace_register callback
18767 instead of checking for the_low_target.left_pad_xfer.
18768
18769 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18770 (s390_supply_ptrace_register): Likewise.
18771 (s390_fill_gregset): Call s390_collect_ptrace_register.
18772 (the_low_target): Update.
18773
18774 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18775 (ppc_supply_ptrace_register): Likewise.
18776 (the_low_target): Update.
18777
18778 * linux-i386-low.c (the_low_target): Update.
18779 * linux-x86-64-low.c (the_low_target): Update.
18780
18781 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18782
18783 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18784 reg-s390.o and reg-s390x.o.
18785
18786 * linux-low.c (new_inferior): New global variable.
18787 (linux_create_inferior, linux_attach): Set it.
18788 (linux_wait_for_process): Call the_low_target.arch_setup after the
18789 target has stopped for the first time.
18790 (initialize_low): Do not call the_low_target.arch_setup.
18791
18792 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
18793 (s390_set_pc): Likewise.
18794 (s390_arch_setup): New function.
18795 (the_low_target): Use s390_arch_setup as arch_setup routine.
18796
18797 * regcache.c (realloc_register_cache): New function.
18798 (set_register_cache): Call it for each existing regcache.
18799
18800 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18801
18802 * server.h (init_registers): Remove prototype.
18803
18804 * linux-low.h (struct linux_target_ops): Add arch_setup field.
18805 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
18806 instead of init_registers ().
18807 * linux-arm-low.c (init_registers_arm): Add prototype.
18808 (init_registers_arm_with_iwmmxt): Likewise.
18809 (the_low_target): Add initializer for arch_setup field.
18810 * linux-cris-low.c (init_registers_cris): Add prototype.
18811 (the_low_target): Add initializer for arch_setup field.
18812 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
18813 (the_low_target): Add initializer for arch_setup field.
18814 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
18815 (the_low_target): Add initializer for arch_setup field.
18816 * linux-ia64-low.c (init_registers_ia64): Add prototype.
18817 (the_low_target): Add initializer for arch_setup field.
18818 * linux-m32r-low.c (init_registers_m32r): Add prototype.
18819 (the_low_target): Add initializer for arch_setup field.
18820 * linux-m68k-low.c (init_registers_m68k): Add prototype.
18821 (the_low_target): Add initializer for arch_setup field.
18822 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
18823 (init_registers_mips64_linux): Likewise.
18824 (the_low_target): Add initializer for arch_setup field.
18825 * linux-ppc-low.c (init_registers_ppc): Add prototype.
18826 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
18827 (the_low_target): Add initializer for arch_setup field.
18828 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
18829 (init_registers_powerpc_64): Likewise.
18830 (the_low_target): Add initializer for arch_setup field.
18831 * linux-s390-low.c (init_registers_s390): Add prototype.
18832 (init_registers_s390x): Likewise.
18833 (the_low_target): Add initializer for arch_setup field.
18834 * linux-sh-low.c (init_registers_sh): Add prototype.
18835 (the_low_target): Add initializer for arch_setup field.
18836 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
18837 (the_low_target): Add initializer for arch_setup field.
18838 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
18839 (the_low_target): Add initializer for arch_setup field.
18840
18841 * win32-low.h (struct win32_target_ops): Add arch_setup field.
18842 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
18843 instead of init_registers ().
18844 * win32-arm-low.c (init_registers_arm): Add prototype.
18845 (the_low_target): Add initializer for arch_setup field.
18846 * win32-i386-low.c (init_registers_i386): Add prototype.
18847 (the_low_target): Add initializer for arch_setup field.
18848
18849 * spu-low.c (init_registers_spu): Add prototype.
18850 (initialize_low): Call initialie_registers_spu () instead of
18851 initialize_registers ().
18852
18853 2008-02-19 Pedro Alves <pedro@codesourcery.com>
18854
18855 * server.c (handle_v_requests): When handling the vRun and vAttach
18856 packets, if already debugging a process, don't kill it. Return an
18857 error instead.
18858
18859 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
18860
18861 * server.c (handle_query): Correct length check.
18862
18863 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
18864
18865 * win32-low.c (do_initial_child_stuff): Add process handle
18866 parameter. Set current_process_handle and current_process_id from the
18867 parameters. Clear globals.
18868 (win32_create_inferior): Don't set current_process_handle and
18869 current_process_id here. Instead pass them on the call to
18870 do_initial_child_stuff.
18871 (win32_attach): Likewise.
18872 (win32_clear_inferiors): New.
18873 (win32_kill): Don't close the current process handle or the
18874 current thread handle here. Instead call win32_clear_inferiors.
18875 (win32_detach): Don't open a new handle to the process. Call
18876 win32_clear_inferiors.
18877 (win32_join): Don't rely on current_process_handle; open a new
18878 handle using the process id.
18879 (win32_wait): Call win32_clear_inferiors when the inferior process
18880 has exited.
18881
18882 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
18883
18884 * server.c (monitor_show_help): Add "exit".
18885
18886 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
18887
18888 * Makefile.in (SFILES): Add linux-xtensa-low.c.
18889 (clean): Add reg-xtensa.c.
18890 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
18891 * configure.srv (xtensa*-*-linux*) New target.
18892 * linux-xtensa-low.c: New.
18893 * xtensa-xtregs.c: New.
18894
18895 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
18896
18897 * hostio.c: Don't include errno.h.
18898 (errno_to_fileio_errno): Move to hostio-errno.
18899 * hostio.c: (hostio_error): Remove the error parameter. Defer the
18900 error number outputting to the target->hostio_last_error callback.
18901 (hostio_packet_error): Use FILEIO_EINVAL directly.
18902 (handle_open, handle_pread, hostio_error, handle_unlink): Update
18903 calls to hostio_error.
18904 * hostio-errno.c: New.
18905 * server.h (hostio_last_error_from_errno): Declare.
18906 * target.h (target_ops): Add hostio_last_error member.
18907 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
18908 as hostio_last_error handler.
18909 * spu-low.c (spu_target_ops): Likewise.
18910 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
18911 (wince_hostio_last_error): New functions.
18912 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
18913 as hostio_last_error handler.
18914 (win32_target_ops) [!_WIN32_WCE]: Register
18915 hostio_last_error_from_errno as hostio_last_error handler.
18916 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
18917 (hostio-errno.o): New rule.
18918 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
18919 * configure.srv (srv_hostio_err_objs): New variable. Default to
18920 hostio-errno.o.
18921 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
18922 * configure: Regenerate.
18923
18924 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18925
18926 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
18927 (linux_kill, linux_detach): Clean up the process list.
18928 * remote-utils.c (remote_open): Improve port number parsing.
18929 (putpkt_binary, input_interrupt): Only send interrupts if the target
18930 is running.
18931 * server.c (extended_protocol): Make static.
18932 (attached): Define earlier.
18933 (exit_requested, response_needed, program_argv): New variables.
18934 (target_running): New.
18935 (start_inferior): Clear attached here.
18936 (attach_inferior): Set attached here.
18937 (require_running): Define.
18938 (handle_query): Use require_running and target_running. Implement
18939 "monitor exit".
18940 (handle_v_attach, handle_v_run): New.
18941 (handle_v_requests): Use require_running. Handle vAttach and vRun.
18942 (gdbserver_usage): Update.
18943 (main): Redo argument parsing. Handle --debug and --multi. Handle
18944 --attach along with other options or after the port. Save
18945 program_argv. Support no initial program. Resynchronize
18946 communication with GDB after an error. Handle "monitor exit".
18947 Use require_running and target_running. Always allow the extended
18948 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
18949 restart in extended mode.
18950 * README: Refer to the GDB manual. Update --attach usage.
18951
18952 2007-12-20 Andreas Schwab <schwab@suse.de>
18953
18954 * linux-low.c (STACK_SIZE): Define.
18955 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18956 (linux_test_for_tracefork): Likewise.
18957
18958 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18959
18960 * linux-low.c (linux_wait_for_event): Update messages. Do not
18961 reinsert auto-delete breakpoints.
18962 * mem-break.c (struct breakpoint): Change return type of handler to
18963 int.
18964 (set_breakpoint_at): Update handler type.
18965 (reinsert_breakpoint_handler): Return 1 instead of calling
18966 delete_breakpoint.
18967 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18968 setting a new one.
18969 (check_breakpoints): Delete auto-delete breakpoints and return 2.
18970 * mem-break.h (set_breakpoint_at): Update handler type.
18971 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
18972 * win32-low.c (auto_delete_breakpoint): New.
18973 (get_child_debug_event): Use it.
18974
18975 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18976
18977 * configure.ac: Check for pread and pwrite.
18978 * hostio.c (handle_pread): Fall back to lseek and read.
18979 (handle_pwrite): Fall back to lseek and write.
18980 * config.in, configure: Regenerated.
18981
18982 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18983
18984 * server.c (myresume): Add own_buf argument.
18985 (main): Update calls.
18986
18987 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18988
18989 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
18990 * remote-utils.c (remote_open): Do not call disable_async_io.
18991 (block_async_io): Delete.
18992 (unblock_async_io): Make static.
18993 (initialize_async_io): New.
18994 * server.c (handle_v_cont): Handle async I/O here.
18995 (myresume): Likewise. Move other common resume tasks here...
18996 (main): ... from here. Call initialize_async_io. Disable async
18997 I/O before the main loop.
18998 * server.h (initialize_async_io): Declare.
18999 (block_async_io, unblock_async_io): Delete prototypes.
19000 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19001
19002 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19003
19004 * remote-utils.c (readchar): Allow binary data in received messages.
19005
19006 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19007
19008 * win32-low.c (attaching): New global.
19009 (win32_create_inferior): Clear the `attaching' global.
19010 (win32_attach): Set the `attaching' global.
19011 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19012 attaching. Only set a breakpoint at the entry point if not
19013 attaching.
19014
19015 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19016
19017 * server.c (main): Don't report dll events on the initial
19018 connection on attaches.
19019
19020 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19021
19022 * server.c (main): Relax numerical bases supported for the pid of
19023 the --attach command line argument.
19024
19025 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19026
19027 * win32-low.c (win32_attach): Call OpenProcess before
19028 DebugActiveProcess, not after. Add last error output to error
19029 call.
19030
19031 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19032
19033 * win32-low.c (win32_get_thread_context)
19034 (win32_set_thread_context): New functions.
19035 (thread_rec): Use win32_get_thread_context.
19036 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19037 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19038 field.
19039
19040 2007-12-03 Leo Zayas
19041 Pedro Alves <pedro_alves@portugalmail.pt>
19042
19043 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19044 global variables.
19045 (child_add_thread): Minor cleanup.
19046 (child_continue): Resume artificially suspended threads before
19047 calling ContinueDebugEvent.
19048 (suspend_one_thread): New.
19049 (fake_breakpoint_event): New.
19050 (get_child_debug_event): Change return type to int. Check here if
19051 gdb sent an interrupt request. If a soft interrupt was requested,
19052 fake a breakpoint event. Return 0 if there is no event to handle,
19053 and 1 otherwise.
19054 (win32_wait): Don't check here if gdb sent an interrupt request.
19055 Ensure there is a valid event to handle.
19056 (win32_request_interrupt): Add soft interruption method as last
19057 resort.
19058
19059 2007-12-03 Leo Zayas
19060 Pedro Alves <pedro_alves@portugalmail.pt>
19061
19062 * win32-low.h (win32_thread_info): Add descriptions to the
19063 structure members. Replace `suspend_count' counter by a
19064 `suspended' flag.
19065 * win32-low.c (thread_rec): Update condition of when to get the
19066 context from the inferior. Rely on ContextFlags being set if it
19067 has already been retrieved. Only suspend the inferior thread if
19068 we haven't already. Warn if that fails.
19069 (continue_one_thread): s/suspend_count/suspended/. Only call
19070 ResumeThread once. Warn if that fails.
19071
19072 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19073
19074 * win32-low.c (win32_wait): Don't read from the inferior when it
19075 has already exited.
19076
19077 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19078
19079 * Makefile.in (win32_low_h): New variable.
19080 (win32-low.o): Add dependency on $(win32_low_h).
19081 (win32-arm-low.o, win32-i386-low.o): New rules.
19082
19083 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19084
19085 * hostio.c: Correct copyright year.
19086
19087 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19088
19089 * Makefile.in (OBS): Add hostio.o.
19090 (hostio.o): New rule.
19091 * server.h (handle_vFile): Declare.
19092 * hostio.c: New file.
19093 * server.c (handle_v_requests): Take packet_len and new_packet_len
19094 for binary packets. Call handle_vFile.
19095 (main): Update call to handle_v_requests.
19096
19097 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19098
19099 * linux-low.c: Include <sched.h>.
19100
19101 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19102
19103 * linux-low.c (linux_tracefork_grandchild): New.
19104 (linux_tracefork_child): Use clone.
19105 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19106
19107 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19108
19109 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19110
19111 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19112
19113 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19114
19115 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19116
19117 * inferiors.c (change_inferior_id): Delete.
19118 (add_pid_to_list, pull_pid_from_list): New.
19119 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19120 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19121 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19122 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19123 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19124 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19125 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19126 (using_threads): Always set to 1.
19127 (handle_extended_wait): New.
19128 (add_process): Do not set TID.
19129 (linux_create_inferior): Set must_set_ptrace_flags.
19130 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19131 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19132 (linux_thread_alive): Rename TID argument to LWPID.
19133 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19134 (linux_wait_for_event): Do not use TID or check using_threads. Update
19135 call to dead_thread_notify. Call handle_extended_wait.
19136 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19137 (send_sigstop): Delete sigstop_sent.
19138 (wait_for_sigstop): Avoid TID.
19139 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19140 (linux_test_for_tracefork): New.
19141 (linux_lookup_signals): Use thread_db_active and
19142 linux_supports_tracefork_flag.
19143 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19144 * linux-low.h (get_process_thread): Avoid TID.
19145 (struct process_ifo): Move thread_known and tid to the end. Remove
19146 sigstop_sent.
19147 (linux_attach_lwp, thread_db_init): Update prototypes.
19148 * server.h (change_inferior_id): Delete prototype.
19149 (add_pid_to_list, pull_pid_from_list): New prototypes.
19150 * thread-db.c (thread_db_use_events): New.
19151 (find_first_thread): Rename to...
19152 (find_one_thread): ...this. Update callers and messages. Do not
19153 call fatal. Check thread_db_use_events. Do not call
19154 change_inferior_id or new_thread_notify.
19155 (maybe_attach_thread): Update. Do not call new_thread_notify.
19156 (thread_db_init): Set thread_db_use_events. Check use_events.
19157 * utils.c (fatal, warning): Correct message prefix.
19158
19159 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19160
19161 * Makefile.in (clean): Remove new files.
19162 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19163 (powerpc-64.o, powerpc-64.c): New rules.
19164 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19165 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19166 with SPE.
19167 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19168 SPE targets.
19169 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19170 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19171 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19172 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19173 (target_regsets): Add AltiVec and SPE register sets.
19174 * configure.ac: Check for AltiVec and SPE.
19175 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19176 (ppc_fill_vrregset, ppc_store_vrregset): New.
19177 (target_regsets): Add AltiVec register set.
19178 * configure: Regenerated.
19179
19180 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19181
19182 * linux-low.c (O_LARGEFILE): Define.
19183 (linux_read_memory): Use /proc/PID/mem.
19184 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19185 * configure, config.in: Regenerated.
19186
19187 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19188
19189 * linux-low.c (linux_wait_for_event): Do not pass signals while
19190 single-stepping.
19191
19192 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19193
19194 * win32-low.c (create_process): New.
19195 (win32_create_inferior): Use create_process instead of
19196 CreateProcess. If create_process failed retry appending an ".exe"
19197 suffix. Store the GetLastError result immediatelly after
19198 create_process calls and use it on the call to error.
19199
19200 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19201
19202 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19203
19204 2007-08-23 Joel Brobecker <brobecker@adacore.com>
19205
19206 * configure.ac: Switch license to GPLv3.
19207
19208 2007-08-01 Michael Snyder <msnyder@access-company.com>
19209
19210 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19211
19212 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19213
19214 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19215 typedef.
19216 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19217 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19218 CloseToolhelp32Snapshot.
19219 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19220 CloseToolhelp32Snapshot.
19221
19222 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
19223
19224 * server.c (main): Check for inferior exit before main loop.
19225
19226 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19227
19228 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19229 instead of on tmp_desc.
19230
19231 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19232 Daniel Jacobowitz <dan@codesourcery.com>
19233
19234 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19235 (add_thread): Minor cleanups.
19236 (clear_inferiors): Move lower in the file. Clear the DLL
19237 list.
19238 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19239 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19240 (xml_escape_text): New.
19241 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19242 for qSupported.
19243 (handle_v_cont): Report errors.
19244 (gdbserver_version): Update.
19245 (main): Correct size of own_buf. Do not report initial DLL events.
19246 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19247 (unloaded_dll, xml_escape_text): New.
19248 * win32-low.c (enum target_waitkind): Update comments.
19249 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19250 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19251 (win32_EnumProcessModules, win32_GetModuleInformation)
19252 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19253 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19254 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19255 (win32_Module32First, win32_Module32Next, load_toolhelp)
19256 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19257 (get_child_debug_event): Handle DLL events.
19258 (win32_wait): Likewise.
19259
19260 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19261
19262 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19263 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19264
19265 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19266
19267 * win32-low.c (handle_output_debug_string): Ignore event if not
19268 waiting.
19269
19270 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19271
19272 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19273
19274 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19275
19276 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19277
19278 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19279
19280 * inferiors.c (change_inferior_id): Add comment.
19281 * linux-low.c (check_removed_breakpoint): Add an early
19282 prototype. Improve debug output.
19283 (linux_attach): Doc update.
19284 (linux_detach_one_process, linux_detach): Clean up before releasing
19285 each process.
19286 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19287 * linux-low.h (struct process_info): Doc improvement.
19288 * mem-break.c (delete_all_breakpoints): New.
19289 * mem-break.h (delete_all_breakpoints): New prototype.
19290 * thread-db.c (find_first_thread): New.
19291 (thread_db_create_event): Call it instead of
19292 thread_db_find_new_threads. Clean up unused variables.
19293 (maybe_attach_thread): Remove first thread handling.
19294 (thread_db_find_new_threads): Use find_first_thread.
19295 (thread_db_get_tls_address): Likewise.
19296
19297 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19298
19299 * thread-db.c (thread_db_find_new_threads): Add prototype.
19300 (thread_db_create_event): Check for the main thread before adding
19301 a new thread.
19302 (maybe_attach_thread): Only enable event reporting if TID == 0.
19303 (thread_db_get_tls_address): Check for new threads.
19304
19305 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19306
19307 * linux-low.c (linux_create_inferior): Try execv before execvp.
19308 * spu-low.c (spu_create_inferior): Likewise.
19309
19310 2007-06-13 Mike Frysinger <vapier@gentoo.org>
19311
19312 * linux-low.c (linux_create_inferior): Change execv to execvp.
19313 * spu-low.c (spu_create_inferior): Likewies.
19314
19315 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19316
19317 * Makefile.in (clean): Clean new files instead of deleted ones.
19318 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19319 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19320 rules.
19321 * configure.srv: Specify XML files and new regformats for MIPS and
19322 MIPS64 GNU/Linux.
19323 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19324 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19325 an entry for the restart register.
19326 (mips_cannot_fetch_register, mips_cannot_store_register)
19327 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19328 register names to match the XML descriptions.
19329 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19330 restart register instead of $0.
19331
19332 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19333 Markus Deuling <deuling@de.ibm.com>
19334
19335 * remote-utils.c (decode_xfer_write): New function.
19336 * server.h (decode_xfer_write): Add prototype.
19337 * server.c (handle_query): Add PACKET_LEN argument. Support
19338 qXfer:spu:read and qXfer:spu:write packets.
19339 (main): Pass packet_len to handle_query.
19340 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19341 * target.h (target_ops): Add qxfer_spu.
19342
19343 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19344
19345 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
19346 accessing non-seekable spufs files.
19347
19348 2007-05-16 Markus Deuling <deuling@de.ibm.com>
19349
19350 * server.c (handle_query): Add reply for qC packet.
19351
19352 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19353 Leo Zayas <lerele@champenstudios@com>
19354
19355 * server.h (check_remote_input_interrupt_request): New function.
19356 * remote_utils.c (INVALID_DESCRIPTOR): New define.
19357 (remote_desc): Initialize with INVALID_DESCRIPTOR.
19358 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
19359 (check_remote_input_interrupt_request): New function.
19360 * server.h (check_remote_input_interrupt_request): Declare.
19361 * win32-low.c (winapi_DebugBreakProcess,
19362 winapi_GenerateConsoleCtrlEvent): New typedefs.
19363 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
19364 to 250 ms.
19365 (win32_wait): Check for remote interrupt request
19366 with check_remote_input_interrupt_request.
19367 (win32_request_interrupt): New function.
19368 (win32_target_op): Set request_interrupt to win32_request_interrupt.
19369
19370 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19371
19372 * win32-low.c (debug_registers_changed,
19373 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
19374 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
19375 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
19376 (thread_rec): Get context using the low target.
19377 (child_add_thread): Call thread_added on the low target,
19378 which does the same thing.
19379 (regptr): Delete.
19380 (do_initial_child_stuff): Remove debug registers references.
19381 Set context using the low target. Resume threads after
19382 setting the contexts.
19383 (child_continue): Remove dead variable. Remove debug
19384 registers references.
19385 (child_fetch_inferior_registers): Go through the low target.
19386 (do_child_store_inferior_registers): Remove.
19387 (child_store_inferior_registers): Go through the low target.
19388 (win32_resume): Remove debug registers references.
19389 Set context using the low target.
19390 (handle_exception): Change return type to void. Don't record
19391 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
19392 first chance exception.
19393 (get_child_debug_event): Change return type to void. Remove
19394 goto loop. Always return after waiting for debug event.
19395 (win32_wait): Convert to switch statement. Handle spurious
19396 events.
19397
19398 * win32-i386-low.c (debug_registers_changed,
19399 debug_registers_used): New.
19400 (initial_stuff): Rename to ...
19401 (i386_initial_stuff): ... this. Clear debug registers
19402 state variables.
19403 (store_debug_registers): Delete.
19404 (i386_get_thread_context): New.
19405 (load_debug_registers): Delete.
19406 (i386_set_thread_context): New.
19407 (i386_thread_added): New.
19408 (single_step): Rename to ...
19409 (i386_single_step): ... this.
19410 (do_fetch_inferior_registers): Rename to ...
19411 (i386_fetch_inferior_register): ... this.
19412 (i386_store_inferior_register): New.
19413 (the_low_target): Adapt to new interface.
19414
19415 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
19416 (arm_get_thread_context): New.
19417 (arm_set_thread_context): New.
19418 (regptr): New.
19419 (do_fetch_inferior_registers): Rename to ...
19420 (arm_fetch_inferior_register): ... this.
19421 (arm_store_inferior_register): New.
19422 (arm_wince_breakpoint): Reimplement as unsigned long.
19423 (arm_wince_breakpoint_len): Define.
19424 (the_low_target): Adapt to new interface.
19425
19426 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
19427 load_debug_registers. Add get_thread_context, set_thread_context,
19428 thread_added and store_inferior_register. Rename
19429 fetch_inferior_registers to fetch_inferior_register.
19430 (regptr): Remove declaration.
19431
19432 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19433
19434 * linux-low.c (linux_detach): Change return type to int. Return 0.
19435 * spu-low.c (spu_detach): Likewise.
19436
19437 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19438
19439 * target.h (target_ops): Change return type of detach to int.
19440 Add join.
19441 (join_inferior): New.
19442 * server.c (main): Don't skip detach support on mingw32.
19443 If the inferior doesn't support detaching return error.
19444 Call join_inferior instead of using waitpid.
19445 * linux-low.c (linux_join): New.
19446 (linux_target_op): Add linux_join.
19447 * spu-low.c (spu_join): New.
19448 (spu_target_ops): Add spu_join.
19449 * win32-low.c (win32_detach): Adapt to new interface.
19450 Reopen current_process_handle before detaching. Issue a child
19451 resume before detaching.
19452 (win32_join): New.
19453 (win32_target_op): Add win32_join.
19454
19455 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19456
19457 * win32-low.c (win32-attach): Fix return value.
19458 * target.h (target_ops): Describe ATTACH return values.
19459
19460 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19461
19462 * win32-low.c (GETPROCADDRESS): Define.
19463 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
19464 (winapi_DebugSetProcessKillOnExit): Likewise.
19465 (win32_create_inferior): Force usage of ansi CreateProcessA.
19466 (win32_attach): Use GETPROCADDRESS.
19467 (win32_detach): Likewise.
19468
19469 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
19470
19471 * win32-low.c (win32_wait): Don't use WSTOPSIG.
19472
19473 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
19474
19475 * win32-low.c: Commit leftover changes from 2007-03-29.
19476
19477 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19478
19479 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
19480 fields short instead of int. Add explicit padding.
19481 (i387_cache_to_fsave): Remove unnecessary casts.
19482 (i387_fsave_to_cache): Doc fix.
19483 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
19484
19485 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
19486
19487 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
19488 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
19489
19490 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19491
19492 * configure.srv (arm*-*-mingw32ce*): Move near the other
19493 arm targets.
19494
19495 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
19496
19497 * configure.ac: Add errno checking.
19498 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
19499 sys/file.h and malloc.h.
19500 (AC_CHECK_DECLS): Add perror.
19501 (srv_mingwce): Handle.
19502 * configure.srv (i[34567]86-*-cygwin*): Add
19503 win32-i386-low.o to srv_tgtobj.
19504 (i[34567]86-*-mingw*): Likewise.
19505 (arm*-*-mingw32ce*): Add case.
19506 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19507 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
19508 [__MINGW32CE__] (strerror): New function.
19509 [__MINGW32CE__] (errno): Define to GetLastError.
19510 [__MINGW32CE__] (COUNTOF): New macro.
19511 (remote_open): Remove extra close call.
19512 * mem-break.c (delete_breakpoint_at): New function.
19513 * mem-break.h (delete_breakpoint_at): Declare.
19514 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
19515 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
19516 [USE_WIN32API] (read, write): Add char* casts.
19517 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
19518 * server.h: Include wincecompat.h on Windows CE.
19519 [HAVE_ERRNO_H]: Check.
19520 (perror): Declare if not declared.
19521 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
19522 (perror_with_name): Remove errno declaration.
19523 * wincecompat.h: New.
19524 * wincecompat.c: New.
19525 * win32-low.h: New.
19526 * win32-arm-low.c: New.
19527 * win32-i386-low.c: New.
19528 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
19529 (OUTMSG2): Make it safe.
19530 (_T): New macro.
19531 (COUNTOF): New macro.
19532 (NUM_REGS): Get it from the low target.
19533 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
19534 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
19535 (thread_rec): Let low target handle debug registers.
19536 (child_add_thread): Likewise.
19537 (child_init_thread_list): Likewise.
19538 (continue_one_thread): Likewise.
19539 (regptr): New.
19540 (do_child_fetch_inferior_registers): Move to ...
19541 * win32-i386-low.c: ... here, and rename to ...
19542 (do_fetch_inferior_registers): ... this.
19543 * win32-low.c (child_fetch_inferior_registers):
19544 Go through the low target.
19545 (do_child_store_inferior_registers): Use regptr.
19546 (strwinerror): New function.
19547 (win32_create_inferior): Handle Windows CE.
19548 Use strwinerror instead of strerror on Windows error
19549 codes. Add program to the error output.
19550 Don't close the main thread handle on Windows CE.
19551 (win32_attach): Use coredll.dll on Windows CE.
19552 (win32_kill): Close current process and current
19553 thread handles.
19554 (win32_detach): Use coredll.dll on Windows CE.
19555 (win32_resume): Let low target handle debug registers, and
19556 step request.
19557 (handle_exception): Add/Remove initial breakpoint. Avoid
19558 non-existant WSTOPSIG on Windows CE.
19559 (win32_read_inferior_memory): Cast to remove warning.
19560 (win32_arch_string): Go through the low target.
19561 (initialize_low): Call set_breakpoint_data with the low
19562 target's breakpoint.
19563 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
19564 FOP_REGNUM, mappings): Move to ...
19565 * win32-i386-low.c: ... here.
19566 * win32-low.c (win32_thread_info): Move to ...
19567 * win32-low.h: ... here.
19568 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
19569 win32-arm-low.c and wincecompat.c.
19570 (all:): Add $EXEEXT.
19571 (install-only:): Likewise.
19572 (gdbserver:): Likewise.
19573 (gdbreplay:): Likewise.
19574 * config.in: Regenerate.
19575 * configure: Regenerate.
19576
19577 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19578
19579 * win32-low.c: Rename typedef thread_info to
19580 win32_thread_info throughout.
19581
19582 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
19583
19584 * win32-i386-low.c: Rename to ...
19585 * win32-low.c: ... this.
19586 * configure.srv: Replace win32-i386-low.o with win32-low.o.
19587 * Makefile.in: Likewise.
19588
19589 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
19590
19591 * remote-utils.c (monitor_output): Constify msg parameter.
19592 * server.h (monitor_output): Likewise.
19593 * win32-i386-low.c (handle_output_debug_string): New.
19594 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
19595 handle_output_debug_string.
19596 (get_child_debug_event): Likewise.
19597
19598 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
19599
19600 * server.c (main): Correct strtoul check.
19601
19602 2007-03-27 Jon Ringle <jon@ringle.org>
19603
19604 * linux-low.c: Check __ARCH_HAS_MMU__ also.
19605
19606 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
19607
19608 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
19609
19610 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
19611
19612 * terminal.h: Check HAVE_SGTTY_H.
19613
19614 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
19615
19616 * remote-utils.c (remote_open): Print out the assigned port number.
19617
19618 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
19619
19620 * remote-utils.c (monitor_output): New function.
19621 * server.c (debug_threads): Define here.
19622 (monitor_show_help): New function.
19623 (handle_query): Handle qRcmd.
19624 (main): Do not handle 'd' packet.
19625 * server.h (debug_threads, remote_debug, monitor_output): Declare.
19626 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
19627 of debug_threads.
19628
19629 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19630
19631 * Makefile.in (EXEEXT): New.
19632 (clean): Use $(EXEEXT).
19633
19634 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19635
19636 * target.h (target_ops): Rename send_signal to request_interrupt,
19637 and remove enum target_signal parameter.
19638 * linux-low.c (linux_request_interrupt): Rename from
19639 linux_send_signal, and always send SIGINT.
19640 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
19641 and always send SIGINT.
19642 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
19643 of send_signal.
19644 (input_interrupt): Likewise.
19645
19646 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
19647
19648 * server.c (get_features_xml): Check if target implemented
19649 arch_string.
19650 * win32-i386-low.c (win32_arch_string): New.
19651 (win32_target_ops): Add win32_arch_string as arch_string member.
19652
19653 2007-02-22 Markus Deuling <deuling@de.ibm.com>
19654
19655 * spu-low.c (spu_arch_string): New.
19656 (spu_target_ops): Add spu_arch_string.
19657
19658 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
19659
19660 * remote-utils.c: Remove HAVE_TERMINAL_H check.
19661 * configure.ac: Do not check for terminal.h.
19662 * configure, config.in: Regenerated.
19663
19664 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19665
19666 * Makefile.in (OBS): Add $(XML_BUILTIN).
19667 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
19668 (clean): Update.
19669 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
19670 (arm-with-iwmmxt.c): New.
19671 * config.in, configure: Regenerate.
19672 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
19673 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
19674 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
19675 (arm*-*-linux*): Add iWMMXt and regset support.
19676 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
19677 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
19678 (arm_store_wmmxregset, target_regsets): New.
19679 * server.c (get_features_xml): Take annex argument. Check builtin
19680 XML documents.
19681 (handle_query): Handle multiple annexes.
19682
19683 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19684
19685 * remote-utils.c [USE_WIN32API] (read, write): Define.
19686 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
19687 write.
19688
19689 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
19690
19691 * linux-i386-low.c (the_low_target): Set arch_string.
19692 * linux-x86-64-low.c (the_low_target): Likewise.
19693 * linux-low.c (linux_arch_string): New.
19694 (linux_target_ops): Add it.
19695 * linux-low.h (struct linux_target_ops): Add arch_string.
19696 * server.c (write_qxfer_response): Use const void * for DATA.
19697 (get_features_xml): New.
19698 (handle_query): Handle qXfer:features:read. Report it for qSupported.
19699 * target.h (struct target_ops): Add arch_string method.
19700
19701 2007-01-03 Denis Pilat <denis.pilat@st.com>
19702 Daniel Jacobowitz <dan@codesourcery.com>
19703
19704 * linux-low.c (linux_kill): Handle being called with no threads.
19705 * win32-i386-low.c (win32_kill): Likewise.
19706 (get_child_debug_event): Clear current_process_handle.
19707
19708 2006-12-30 Denis PILAT <denis.pilat@st.com>
19709 Daniel Jacobowitz <dan@codesourcery.com>
19710
19711 * remote-utils.c (remote_open): Check the type of specified
19712 serial port devices before opening them.
19713 * server.c (main): Kill the inferior if an error occurs during
19714 the first remote_open.
19715
19716 2006-12-05 Markus Deuling <deuling@de.ibm.com>
19717
19718 * README: Update supported targets.
19719
19720 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
19721
19722 * Makefile.in (clean): Remove reg-mips64.c.
19723 (reg-mips64.c, reg-mips64.o): New rules.
19724 * configure.srv: Handle mips64. Include regset support for mips.
19725 * linux-mips-low.c (union mips_register): New.
19726 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
19727 (mips_breakpoint, mips_breakpoint_at): Use int.
19728 (mips_collect_register, mips_supply_register)
19729 (mips_collect_register_32bit, mips_supply_register_32bit)
19730 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19731 (mips_store_fpregset, target_regsets): New.
19732 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
19733
19734 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
19735
19736 * configure.srv: Add target "spu*-*-*".
19737 * Makefile.in (clean): Remove reg-spu.c.
19738 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
19739 * spu-low.c: New file.
19740
19741 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19742
19743 * configure.ac: Correct td_thr_tls_get_addr test.
19744 * configure: Regenerated.
19745
19746 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
19747
19748 * linux-low.c (linux_wait_for_event): Reformat. Use the
19749 pass_signals array.
19750 * remote-utils.c (decode_address_to_semicolon): New.
19751 * server.c (pass_signals, handle_general_set): New.
19752 (handle_query): Mention QPassSignals for qSupported.
19753 (main): Call handle_general_set.
19754 * server.h (pass_signals, decode_address_to_semicolon): New.
19755
19756 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19757
19758 * server.c (handle_query): Correct error handling for read_auxv.
19759
19760 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19761
19762 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19763 and srv_linux_thread_db to yes.
19764 * linux-s390-low.c (s390_fill_gregset): New function.
19765 (target_regsets): Define data structure.
19766
19767 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19768
19769 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19770 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19771 * config.in, configure: Regenerated.
19772 * inferiors.c (gdb_id_to_thread): New function.
19773 (gdb_id_to_thread_id): Use it.
19774 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19775 * linux-low.h (struct process_info): Add th member.
19776 (thread_db_get_tls_address): New prototype.
19777 * remote-utils.c (decode_address): Make non-static.
19778 * server.c (handle_query): Handle qGetTLSAddr.
19779 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19780 * target.h (struct target_ops): Add get_tls_address.
19781 * thread-db.c (maybe_attach_thread): Save the thread handle.
19782 (thread_db_get_tls_address): New.
19783
19784 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19785
19786 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19787 (linux_resume_one_process): Take a siginfo_t *. Update all
19788 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19789 (struct pending_signals): Add a siginfo_t.
19790 (linux_wait_for_process): Always set last_status.
19791 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
19792 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
19793 * linux-low.h (struct process_info): Add last_status.
19794
19795 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19796
19797 * remote-utils.c (try_rle): New function.
19798 (putpkt_binary): Use it.
19799
19800 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19801
19802 * Makefile.in (clean): Clean reg-x86-64-linux.c.
19803 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
19804 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
19805 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
19806 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
19807 point registers.
19808
19809 2006-08-08 Richard Sandiford <richard@codesourcery.com>
19810
19811 * server.c (terminal_fd): New variable.
19812 (old_foreground_pgrp): Likewise.
19813 (restore_old_foreground_pgrp): New function.
19814 (start_inferior): Record the terminal file descriptor in terminal_fd
19815 and its original foreground group in old_foreground_pgrp. Register
19816 restore_old_foreground_pgrp with atexit().
19817
19818 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19819
19820 * server.c (handle_query): Correct qPart to qXfer.
19821
19822 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19823
19824 * configure.ac: Check for more headers which are missing on
19825 Windows. Automatically supply -lwsock32 and USE_WIN32API.
19826 * configure.srv: Add Cygwin and mingw32.
19827 * remote-utils.c: Don't include headers unconditionally which
19828 are missing on mingw32. Include <winsock.h> for mingw32.
19829 (remote_open): Adjust for mingw32 support. Flush
19830 standard error after writing to it.
19831 (remote_close, putpkt_binary, input_interrupt, block_async_io)
19832 (unblock_async_io, enable_async_io, disable_async_io)
19833 (readchar, getpkt): Update for Winsock support.
19834 (prepare_resume_reply): Expect a protocol signal number.
19835 * server.c: Disable <sys/wait.h> on mingw32.
19836 (start_inferior): Adjust for mingw32 support. Flush
19837 standard error after writing to it.
19838 (attach_inferior): Likewise. Use protocol signal
19839 numbers.
19840 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19841 and names.
19842 * win32-i386-low.c: New file.
19843 * Makefile.in (XM_CLIBS): Set.
19844 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
19845 (win32-i386-low.o): New dependency rule.
19846 * linux-low.c (linux_wait): Use target signal numbers.
19847 * target.h (struct target_ops): Doc fix.
19848 * server.h (target_signal_to_name): New prototype.
19849 * gdbreplay.c: Don't include headers unconditionally which
19850 are missing on mingw32. Include <winsock.h> for mingw32.
19851 (remote_close, remote_open): Adjust for Winsock support.
19852 * configure, config.in: Regenerated.
19853
19854 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19855
19856 * server.c (decode_xfer_read, write_qxfer_response): New.
19857 (handle_query): Take a packet length argument. Handle
19858 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
19859 the qSupported response.
19860 (main): Update call to handle_query.
19861
19862 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
19863
19864 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
19865 (putpkt_binary): Renamed from putpkt and adjusted for binary
19866 data.
19867 (putpkt): New wrapper for putpkt_binary.
19868 (readchar): Don't mask off the high bit.
19869 (decode_X_packet): New function.
19870 * server.c (main): Call putpkt_binary if a handler sets the packet
19871 length. Save the length of the incoming packet. Handle 'X'.
19872 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
19873
19874 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
19875
19876 * server.c (handle_query): Handle qSupported.
19877
19878 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19879
19880 * remote-utils.c (all_symbols_looked_up): New variable.
19881 (look_up_one_symbol): Check it.
19882 * server.h (look_up_one_symbol): New declaration.
19883 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
19884
19885 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19886
19887 * Makefile.in (linux-arm-low.o): Update dependencies.
19888 * linux-arm-low.c: Include "gdb_proc_service.h".
19889 (PTRACE_GET_THREAD_AREA): Define.
19890 (ps_get_thread_area): New function.
19891
19892 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
19893
19894 * configure.srv (m68k*-*-uclinux*): New target.
19895 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
19896 (linux_resume_one_process): Remove extraneous cast.
19897 (linux_read_offsets): New.
19898 (linux_target_op): Add linux_read_offsets on mmuless systems.
19899 * server.c (handle_query): Add qOffsets logic.
19900 * target.h (struct target_ops): Add read_offsets.
19901
19902 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19903
19904 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
19905 (PTRACE_GET_THREAD_AREA): Define.
19906 (ps_get_thread_area): New function.
19907 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
19908 (linux-x86-64-low.o): Update.
19909
19910 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19911
19912 * configure.ac: Remove checks for prfpregset_t.
19913 * gdb_proc_service.h: New file.
19914 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
19915 new "gdb_proc_service.h".
19916 * proc-service.c: Likewise.
19917 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
19918 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
19919 * Makefile.in (gdb_proc_service_h): Updated.
19920 * configure, config.in: Regenerated.
19921
19922 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19923
19924 * remote-utils.c (prepare_resume_reply): Move declaration
19925 of gdb_id_from_wait to the top of the block.
19926
19927 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
19928
19929 * linux-low.c (regsets_store_inferior_registers): Read the regset
19930 from the target before filling it.
19931
19932 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19933
19934 * server.c (attach_inferior): Return SIGTRAP for a successful
19935 attach.
19936
19937 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19938
19939 * Makefile.in (OBS): Add version.o.
19940 (STAGESTUFF): Delete.
19941 (version.o): Add dependencies.
19942 (version.c): Replace rule.
19943 (clean): Remove version.c.
19944 * server.c (gdbserver_version): New.
19945 (gdbserver_usage): Use printf.
19946 (main): Handle --version and --help.
19947 * server.h (version, host_name): Add declarations.
19948
19949 2005-12-23 Eli Zaretskii <eliz@gnu.org>
19950
19951 * linux-arm-low.c:
19952 * linux-arm-low.c:
19953 * inferiors.c:
19954 * i387-fp.h:
19955 * i387-fp.c:
19956 * gdbreplay.c:
19957 * regcache.c:
19958 * proc-service.c:
19959 * mem-break.h:
19960 * mem-break.c:
19961 * linux-x86-64-low.c:
19962 * linux-sh-low.c:
19963 * linux-s390-low.c:
19964 * linux-ppc64-low.c:
19965 * linux-ppc-low.c:
19966 * linux-mips-low.c:
19967 * linux-m68k-low.c:
19968 * linux-m32r-low.c:
19969 * linux-low.h:
19970 * linux-low.c:
19971 * linux-ia64-low.c:
19972 * linux-i386-low.c:
19973 * linux-crisv32-low.c:
19974 * thread-db.c:
19975 * terminal.h:
19976 * target.h:
19977 * target.c:
19978 * server.h:
19979 * server.c:
19980 * remote-utils.c:
19981 * regcache.h:
19982 * utils.c:
19983 * Makefile.in:
19984 * configure.ac:
19985 * gdbserver.1: Add (C) after Copyright. Update the FSF
19986 address.
19987
19988 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19989
19990 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
19991 (arm_breakpoint_at): Recognize both breakpoints.
19992 (the_low_target): Use the correct breakpoint instruction.
19993
19994 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19995
19996 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19997 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19998 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19999 (the_low_target): Update.
20000
20001 2005-10-25 Andreas Schwab <schwab@suse.de>
20002
20003 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20004
20005 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20006 (ia64_num_regs): Reduce to 462.
20007
20008 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20009
20010 * acinclude.m4: Correct quoting.
20011 * aclocal.m4: Regenerated.
20012
20013 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20014 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20015 (thread_db_init): Call thread_db_err_str.
20016 * configure.ac: Check for TD_VERSION.
20017 * config.in, configure: Regenerated.
20018
20019 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20020
20021 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20022
20023 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20024
20025 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20026 is not available. Define HAVE_PTRACE_GETREGS if it is.
20027 * config.in, configure: Regenerated.
20028 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20029 * linux-i386-low.c, linux-m68k-low.c: Update to use
20030 HAVE_PTRACE_GETREGS.
20031 * linux-low.c (regsets_fetch_inferior_registers)
20032 (regsets_store_inferior_registers): Only return 0 if we processed
20033 GENERAL_REGS.
20034 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20035 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20036
20037 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20038
20039 * inferiors.c (struct thread_info): Add gdb_id.
20040 (add_thread): Add gdb_id argument.
20041 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20042 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20043 calls to add_thread.
20044 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20045 * server.c (handle_query): Use thread_to_gdb_id.
20046 (handle_v_cont, main): Use gdb_id_to_thread_id.
20047 * server.h (add_thread): Update prototype.
20048 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20049 prototypes.
20050
20051 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20052
20053 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20054 left-padded registers.
20055 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20056 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20057
20058 2005-07-01 Steve Ellcey <sje@cup.hp.com>
20059
20060 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20061 * configure: Regenerate.
20062 * config.in: Regenerate.
20063 * server.h (NEED_DECLARATION_STRERROR):
20064 Replace with !HAVE_DECL_STRERROR.
20065
20066 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20067
20068 * linux-low.c (linux_wait, linux_send_signal): Don't test
20069 an unsigned long variable for > 0 if it could be MAX_ULONG.
20070 * server.c (myresume): Likewise.
20071 * target.c (set_desired_inferior): Likewise.
20072
20073 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20074
20075 * configure.ac: Simplify and improve check for socklen_t.
20076 * configure, config.in: Regenerate.
20077
20078 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20079
20080 * acconfig.h: Remove.
20081 * configure.ac: Add a test for socklen_t. Use three-argument
20082 AC_DEFINE throughout.
20083 * config.in: Regenerated using autoheader 2.59.
20084 * configure: Regenerated.
20085
20086 * gdbreplay.c (socklen_t): Provide a default.
20087 (remote_open): Use socklen_t.
20088 * remote-utils.c (socklen_t): Provide a default.
20089 (remote_open): Use socklen_t.
20090 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20091 unsigned char.
20092
20093 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20094 char for buffers.
20095 * linux-low.c (linux_read_memory, linux_write_memory)
20096 (linux_read_auxv): Likewise.
20097 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20098 (check_mem_write): Likewise.
20099 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20100 Likewise.
20101 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20102 (registers_from_string, register_data): Likewise.
20103 * server.c (handle_query, main): Likewise.
20104 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20105 (decode_M_packet): Likewise.
20106 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20107 * target.h (struct target_ops): Update read_memory, write_memory,
20108 and read_auxv.
20109 (read_inferior_memory, write_inferior_memory): Update.
20110 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20111 to unsigned char *.
20112 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20113 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20114 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20115 linux-s390-low.c, linux-sh-low.c: Update for changes in
20116 read_inferior_memory and the_low_target->breakpoint.
20117
20118 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20119
20120 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20121 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20122 * configure.srv: Add powerpc64-*-linux*.
20123 * linux-ppc64-low.c: New file.
20124
20125 2005-05-23 Orjan Friberg <orjanf@axis.com>
20126
20127 * linux-cris-low.c: New file with support for CRIS.
20128 * linux-crisv32-low.c: Ditto for CRISv32.
20129 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20130 (clean): Add reg-cris.c and reg-crisv32.c.
20131 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
20132 reg-crisv32.o, and reg-crisv32.c to make rules.
20133 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20134 recognized targets.
20135
20136 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20137
20138 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20139 of sizeof (PTRACE_XFER_TYPE).
20140 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20141
20142 2005-05-12 Orjan Friberg <orjanf@axis.com>
20143
20144 * target.h (struct target_ops): Add insert_watchpoint,
20145 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20146 pointers for hardware watchpoint support.
20147 * linux-low.h (struct linux_target_ops): Ditto.
20148 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20149 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20150 to linux_target_ops.
20151 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20152 reply packet.
20153 * server.c (main): Recognize 'Z' and 'z' packets.
20154
20155 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20156
20157 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20158 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20159 (the_low_target): Add new members.
20160
20161 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20162
20163 * proc-service.c (ps_lgetregs): Search all_processes instead of
20164 all_threads.
20165
20166 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20167
20168 * server.c (start_inferior): Change return type to int.
20169 (attach_inferior): Change sigptr to int *.
20170 (handle_v_cont, handle_v_requests): Change signal to int *.
20171 (main): Change signal to int.
20172
20173 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
20174
20175 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20176 * configure.srv: Add m32r*-*-linux*.
20177 * linux-m32r-low.c: New file.
20178
20179 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20180
20181 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20182
20183 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20184
20185 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20186 Take unsigned long arguments for PIDs.
20187 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20188 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20189 (wait_for_sigstop, linux_resume_one_process)
20190 (regsets_fetch_inferior_registers, linux_send_signal)
20191 (linux_read_auxv): Likewise. Update the types of variables holding
20192 PIDs. Update format string specifiers.
20193 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20194 * remote-utils.c (prepare_resume_reply): Likewise.
20195 * server.c (cont_thread, general_thread, step_thread)
20196 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20197 unsigned long.
20198 (handle_query): Update format specifiers.
20199 (handle_v_cont, main): Use strtoul for thread IDs.
20200 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20201 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20202 (general_thread, step_thread, thread_from_wait)
20203 (old_thread_from_wait): Update.
20204 * target.h (struct thread_resume): Use unsigned long for THREAD.
20205 (struct target_ops): Use unsigned long for arguments to attach and
20206 thread_alive.
20207
20208 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20209
20210 * acinclude.m4: Include bfd/bfd.m4 directly.
20211 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20212 <agriffis@toolchain.org>.
20213 * aclocal.m4, configure: Regenerated.
20214
20215 2005-01-07 Andrew Cagney <cagney@gnu.org>
20216
20217 * configure.ac: Rename configure.in, require autoconf 2.59.
20218 * configure: Re-generate.
20219
20220 2004-12-08 Daniel Jacobowitz <dan@debian.org>
20221
20222 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20223 LIBS when finished.
20224 * aclocal.m4: Regenerated.
20225 * configure: Regenerated.
20226
20227 2004-11-21 Andreas Schwab <schwab@suse.de>
20228
20229 * linux-m68k-low.c (m68k_num_gregs): Define.
20230 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20231 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20232 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20233 (m68k_breakpoint_at): New. Add to the_low_target.
20234
20235 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20236 srv_linux_thread_db to yes.
20237
20238 2004-10-20 Joel Brobecker <brobecker@gnat.com>
20239
20240 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20241 (ARCH_SET_FS): Likewise.
20242 (ARCH_GET_FS): Likewise.
20243 (ARCH_GET_GS): Likewise.
20244
20245 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20246
20247 * linux-i386-low.c (ps_get_thread_area): New.
20248 * linux-x86-64-low.c (ps_get_thread_area): New.
20249 * linux-low.c: Include <sys/syscall.h>.
20250 (linux_kill_one_process): Don't kill the first thread here.
20251 (linux_kill): Kill the first thread here.
20252 (kill_lwp): New function.
20253 (send_sigstop, linux_send_signal): Use it.
20254 * proc-service.c: Clean up #ifdefs.
20255 (fpregset_info): Delete.
20256 (ps_lgetregs): Update and enable implementation.
20257 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20258 implementations.
20259 * remote-utils.c (struct sym_cache, symbol_cache): New.
20260 (input_interrupt): Print a clearer message.
20261 (async_io_enabled): New variable.
20262 (enable_async_io, disable_async_io): Use it. Update comments.
20263 (look_up_one_symbol): Use the symbol cache.
20264 * thread-db.c (thread_db_look_up_symbols): New function.
20265 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20266
20267 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20268
20269 * configure.in: Test for -rdynamic.
20270 * configure: Regenerated.
20271 * Makefile (INTERNAL_LDFLAGS): New.
20272 (gdbserver, gdbreplay): Use it.
20273
20274 2004-09-02 Andrew Cagney <cagney@gnu.org>
20275
20276 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20277
20278 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
20279
20280 * linux-low.c (linux_wait): Clear all_processes list also.
20281
20282 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20283
20284 * linux-low.c: Include <errno.h>. Remove extern declaration of
20285 errno.
20286
20287 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20288
20289 * gdbreplay.c, server.h, utils.c: Update copyright years.
20290
20291 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20292
20293 * server.c (main): Print child status or termination signal from
20294 variable 'signal', not 'sig'.
20295
20296 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20297
20298 * linux-low.c (linux_read_memory): Change return type to
20299 int. Check for and return error from ptrace().
20300 * target.c (read_inferior_memory): Change return type to int. Pass
20301 back return status from the_target->read_memory().
20302 * target.h (struct target_ops): Adapt *read_memory() prototype.
20303 Update comment.
20304 (read_inferior_memory): Adapt prototype.
20305 * server.c (main): Return an error packet if
20306 read_inferior_memory() returns an error.
20307
20308 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
20309
20310 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20311 Unify with other clean targets.
20312
20313 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20314
20315 * server.c (handle_v_cont): Call set_desired_inferior.
20316
20317 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20318
20319 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20320
20321 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20322
20323 * linux-low.c (linux_wait): Unblock async I/O.
20324 (linux_resume): Block and enable async I/O.
20325 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20326 * server.h (block_async_io, unblock_async_io): Add prototypes.
20327
20328 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20329
20330 * remote-utils.c (remote_open): Print a status notice after
20331 opening a TCP port.
20332 * server.c (attach_inferior): Print a status notice after
20333 attaching.
20334
20335 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20336
20337 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20338
20339 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
20340
20341 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20342 error packet.
20343 * server.c, target.h: Update copyright years.
20344
20345 2004-02-25 Roland McGrath <roland@redhat.com>
20346
20347 * target.h (struct target_ops): New member `read_auxv'.
20348 * server.c (handle_query): Handle qPart:auxv:read: query using that.
20349 * linux-low.c (linux_read_auxv): New function.
20350 (linux_target_ops): Initialize `read_auxv' member to that.
20351
20352 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20353
20354 Committed by Jim Blandy <jimb@redhat.com>.
20355
20356 * linux-s390-low.c (s390_num_regs): Update.
20357 (s390_regmap): Remove control registers. Use __s390x__ predefine
20358 instead of GPR_SIZE to distiguish s390 and s390x targets.
20359
20360 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
20361
20362 * linux-low.c: Update copyright year.
20363 (check_removed_breakpoint): Clear pending_is_breakpoint.
20364 (linux_set_resume_request, linux_queue_one_thread)
20365 (resume_status_pending_p): New functions.
20366 (linux_continue_one_thread): Use process->resume.
20367 (linux_resume): Only resume threads if there are no pending events.
20368 * linux-low.h (struct process_info): Add resume request
20369 pointer.
20370
20371 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
20372
20373 * regcache.c (new_register_cache): Clear the allocated register
20374 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
20375
20376 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
20377
20378 * linux-low.c (linux_resume): Take a struct thread_resume *
20379 argument.
20380 (linux_wait): Update call.
20381 (resume_ptr): New static variable.
20382 (linux_continue_one_thread): Renamed from
20383 linux_continue_one_process. Use resume_ptr.
20384 (linux_resume): Use linux_continue_one_thread.
20385 * server.c (handle_v_cont, handle_v_requests): New functions.
20386 (myresume): New function.
20387 (main): Handle 'v' case.
20388 * target.h (struct thread_resume): New type.
20389 (struct target_ops): Change argument of "resume" to struct
20390 thread_resume *.
20391 (myresume): Delete macro.
20392
20393 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
20394
20395 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
20396 (uninstall): Support DESTDIR.
20397
20398 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
20399
20400 * configure.srv: Add xscale*linux copy of arm*linux entry.
20401
20402 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
20403
20404 * linux-arm-low.c (arm_reinsert_addr): New function.
20405 (the_low_target): Add arm_reinsert_addr.
20406
20407 2003-07-08 Mark Kettenis <kettenis@gnu.org>
20408
20409 * mem-break.c: Remove whitespace at end of file.
20410
20411 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20412
20413 * configure.in: Check whether we need to prototype strerror.
20414 * server.h: Optionally prototype strerror.
20415 * gdbreplay.c (perror_with_name): Use strerror.
20416 * linux-low.c (linux_attach_lwp): Use strerror.
20417 * utils.c (perror_with_name): Use strerror.
20418 * config.in, configure: Regenerated.
20419
20420 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
20421
20422 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
20423 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
20424
20425 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
20426
20427 * Makefile.in (SFILES): Update.
20428 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
20429 low-sun3.c: Remove files.
20430
20431 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
20432
20433 * linux-low.c: Move comment to linux_thread_alive where it belonged.
20434 (linux_detach_one_process, linux_detach): New functions.
20435 (linux_target_ops): Add linux_detach.
20436 * server.c (main): Handle 'D' packet.
20437 * target.h (struct target_ops): Add "detach" member.
20438 (detach_inferior): Define.
20439
20440 2003-06-13 Mark Kettenis <kettenis@gnu.org>
20441
20442 From Kelley Cook <kelleycook@wideopenwest.com>:
20443 * configure.srv: Accept i[34567]86 variants.
20444
20445 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
20446
20447 * linux-low.c (linux_wait_for_event): Correct comment typos.
20448 (linux_resume_one_process): Call check_removed_breakpoint.
20449 (linux_send_signal): New function.
20450 (linux_target_ops): Add linux_send_signal.
20451 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
20452 of kill.
20453 * target.h (struct target_ops): Add send_signal.
20454
20455 2003-05-29 Jim Blandy <jimb@redhat.com>
20456
20457 * linux-low.c (usr_store_inferior_registers): Transfer buf in
20458 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
20459 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
20460 away part of the register's value.
20461
20462 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
20463
20464 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
20465 (linux_wait_for_event, linux_init_signals): Likewise.
20466
20467 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
20468
20469 * configure.in: Check for stdlib.h.
20470 * configure: Regenerated.
20471 * config.in: Regenerated.
20472
20473 2003-01-04 Andreas Schwab <schwab@suse.de>
20474
20475 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
20476
20477 2003-01-02 Andrew Cagney <ac131313@redhat.com>
20478
20479 * Makefile.in: Remove obsolete code.
20480
20481 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
20482
20483 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
20484 defined(PT_FPR0_HI).
20485
20486 2002-11-17 Stuart Hughes <seh@zee2.com>
20487
20488 * linux-arm-low.c (arm_num_regs): Increase.
20489 (arm_regmap): Include status register.
20490
20491 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
20492
20493 * linux-low.c (register_addr): Remove incorrect -1 check.
20494
20495 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
20496
20497 * linux-low.c (linux_create_inferior): Call setpgid. Return
20498 the new PID.
20499 (unstopped_p, linux_signal_pid): Remove.
20500 (linux_target_ops): Remove linux_signal_pid.
20501 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
20502 global instead of target method.
20503 * target.h (struct target_ops): Remove signal_pid. Update comment
20504 for create_inferior.
20505 * server.c (signal_pid): New variable.
20506 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
20507 gdbserver. Set the child to be the foreground process group.
20508 (attach_inferior): Set signal_pid.
20509
20510 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
20511
20512 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
20513
20514 2002-08-20 Jim Blandy <jimb@redhat.com>
20515
20516 * Makefile.in (LDFLAGS): Allow the configure script to establish a
20517 default for this.
20518
20519 2002-08-01 Andrew Cagney <cagney@redhat.com>
20520
20521 * Makefile.in: Make chill references obsolete.
20522
20523 2002-07-24 Kevin Buettner <kevinb@redhat.com>
20524
20525 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
20526 * configure: Regenerate.
20527 * config.in: Regenerate.
20528
20529 2002-07-09 David O'Brien <obrien@FreeBSD.org>
20530
20531 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
20532 (perror_with_name, remote_close, remote_open, expect, play): Static.
20533
20534 2002-07-04 Michal Ludvig <mludvig@suse.cz>
20535
20536 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
20537 byte offsets instead of an array of indexes.
20538 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
20539
20540 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
20541
20542 * regcache.c: Add comment.
20543
20544 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
20545
20546 * thread-db.c: New file.
20547 * proc-service.c: New file.
20548 * acinclude.m4: New file.
20549 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
20550 proc-service.o, and thread-db.o.
20551 (linux-low.o): Add USE_THREAD_DB.
20552 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
20553 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
20554 * aclocal.m4: Regenerated.
20555 * config.in: Regenerated.
20556 * configure: Regenerated.
20557 * configure.in: Check for proc_service.h, sys/procfs.h,
20558 thread_db.h, and linux/elf.h headrs.
20559 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
20560 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
20561 Check for -lthread_db and thread support.
20562 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
20563 PowerPC, and SuperH.
20564 * i387-fp.c: Constify arguments.
20565 * i387-fp.h: Likewise.
20566 * inferiors.c: (struct thread_info): Renamed from
20567 `struct inferior_info'. Remove PID member. Use generic inferior
20568 list header. All uses updated.
20569 (inferiors, signal_pid): Removed.
20570 (all_threads): New variable.
20571 (get_thread): Define.
20572 (add_inferior_to_list): New function.
20573 (for_each_inferior): New function.
20574 (change_inferior_id): New function.
20575 (add_inferior): Removed.
20576 (remove_inferior): New function.
20577 (add_thread): New function.
20578 (free_one_thread): New function.
20579 (remove_thread): New function.
20580 (clear_inferiors): Use for_each_inferior and free_one_thread.
20581 (find_inferior): New function.
20582 (find_inferior_id): New function.
20583 (inferior_target_data): Update argument type.
20584 (set_inferior_target_data): Likewise.
20585 (inferior_regcache_data): Likewise.
20586 (set_inferior_regcache_data): Likewise.
20587 * linux-low.c (linux_bp_reinsert): Remove.
20588 (all_processes, stopping_threads, using_thrads)
20589 (struct pending_signals, debug_threads, pid_of): New.
20590 (inferior_pid): Replace with macro.
20591 (struct inferior_linux_data): Remove.
20592 (get_stop_pc, add_process): New functions.
20593 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
20594 Use add_process and add_thread.
20595 (linux_attach_lwp): New function, based on old linux_attach. Use
20596 add_process and add_thread. Set stop_expected for new threads.
20597 (linux_attach): New function.
20598 (linux_kill_one_process): New function.
20599 (linux_kill): Kill all LWPs.
20600 (linux_thread_alive): Use find_inferior_id.
20601 (check_removed_breakpoints, status_pending_p): New functions.
20602 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
20603 Update. Use WNOHANG. Wait for cloned processes also. Update process
20604 struct for the found process.
20605 (linux_wait_for_event): New function.
20606 (linux_wait): Use it. Support LWPs.
20607 (send_sigstop, wait_for_sigstop, stop_all_processes)
20608 (linux_resume_one_process, linux_continue_one_process): New functions.
20609 (linux_resume): Support LWPs.
20610 (REGISTER_RAW_SIZE): Remove.
20611 (fetch_register): Use register_size instead. Call supply_register.
20612 (usr_store_inferior_registers): Likewise. Call collect_register.
20613 Fix recursive case.
20614 (regsets_fetch_inferior_registers): Improve error message.
20615 (regsets_store_inferior_registers): Add debugging.
20616 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
20617 (unstopped_p, linux_signal_pid): New functions.
20618 (linux_target_ops): Add linux_signal_pid.
20619 (linux_init_signals): New function.
20620 (initialize_low): Call it. Initialize using_threads.
20621 * regcache.c (inferior_regcache_data): Add valid
20622 flag.
20623 (get_regcache): Fetch registers lazily. Add fetch argument
20624 and update all callers.
20625 (regcache_invalidate_one, regcache_invalidate): New
20626 functions.
20627 (new_register_cache): Renamed from create_register_cache.
20628 Return the new regcache.
20629 (free_register_cache): Change argument to a void *.
20630 (registers_to_string, registers_from_string): Call get_regcache
20631 with fetch flag set.
20632 (register_data): Make static. Pass fetch flag to get_regcache.
20633 (supply_register): Call get_regcache with fetch flag clear.
20634 (collect_register): Call get_regcache with fetch flag set.
20635 (collect_register_as_string): New function.
20636 * regcache.h: Update.
20637 * remote-utils.c (putpkt): Flush after debug output and use
20638 stderr.
20639 Handle input interrupts while waiting for an ACK.
20640 (input_interrupt): Use signal_pid method.
20641 (getpkt): Flush after debug output and use stderr.
20642 (outreg): Use collect_register_as_string.
20643 (new_thread_notify, dead_thread_notify): New functions.
20644 (prepare_resume_reply): Check using_threads. Set thread_from_wait
20645 and general_thread.
20646 (look_up_one_symbol): Flush after debug output.
20647 * server.c (step_thread, server_waiting): New variables.
20648 (start_inferior): Don't use signal_pid. Update call to mywait.
20649 (attach_inferior): Update call to mywait.
20650 (handle_query): Handle qfThreadInfo and qsThreadInfo.
20651 (main): Don't fetch/store registers explicitly. Use
20652 set_desired_inferior. Support proposed ``Hs'' packet. Update
20653 calls to mywait.
20654 * server.h: Update.
20655 (struct inferior_list, struct_inferior_list_entry): New.
20656 * target.c (set_desired_inferior): New.
20657 (write_inferior_memory): Constify.
20658 (mywait): New function.
20659 * target.h: Update.
20660 (struct target_ops): New signal_pid method.
20661 (mywait): Removed macro, added prototype.
20662
20663 * linux-low.h (regset_func): Removed.
20664 (regset_fill_func, regset_store_func): New.
20665 (enum regset_type): New.
20666 (struct regset_info): Add type field. Use new operation types.
20667 (struct linux_target_ops): stop_pc renamed to get_pc.
20668 Add decr_pc_after_break and breakpoint_at.
20669 (get_process, get_thread_proess, get_process_thread)
20670 (strut process_info, all_processes, linux_attach_lwp)
20671 (thread_db_init): New.
20672
20673 * linux-arm-low.c (arm_get_pc, arm_set_pc,
20674 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
20675 (the_low_target): Add new members.
20676 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
20677 (i386_store_fpxregset): Constify.
20678 (target_regsets): Add new kind identifier.
20679 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
20680 (i386_set_pc): Add debugging.
20681 (i386_breakpoint_at): New function.
20682 (the_low_target): Add new members.
20683 * linux-mips-low.c (mips_get_pc, mips_set_pc)
20684 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
20685 (mips_breakpoint_at): New.
20686 (the_low_target): Add new members.
20687 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
20688 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
20689 (the_low_target): Add new members.
20690 * linux-sh-low.c (sh_get_pc, sh_set_pc)
20691 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
20692 (the_low_target): Add new members.
20693 * linux-x86-64-low.c (target_regsets): Add new kind
20694 identifier.
20695
20696 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
20697
20698 From Martin Pool <mbp@samba.org>:
20699 * server.c (gdbserver_usage): New function.
20700 (main): Call it.
20701
20702 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
20703
20704 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
20705 stop_at -> stop_pc.
20706
20707 2002-05-04 Andrew Cagney <ac131313@redhat.com>
20708
20709 * Makefile.in: Remove obsolete code.
20710
20711 2002-04-24 Michal Ludvig <mludvig@suse.cz>
20712
20713 * linux-low.c (regsets_fetch_inferior_registers),
20714 (regsets_store_inferior_registers): Removed cast to int from
20715 ptrace() calls.
20716 * regcache.h: Added declaration of struct inferior_info.
20717
20718 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20719
20720 * inferiors.c (struct inferior_info): Add regcache_data.
20721 (add_inferior): Call create_register_cache.
20722 (clear_inferiors): Call free_register_cache.
20723 (inferior_regcache_data, set_inferior_regcache_data): New functions.
20724 * regcache.c (struct inferior_regcache_data): New.
20725 (registers): Remove.
20726 (get_regcache): New function.
20727 (create_register_cache, free_register_cache): New functions.
20728 (set_register_cache): Don't initialize the register cache here.
20729 (registers_to_string, registers_from_string, register_data): Call
20730 get_regcache.
20731 * regcache.h: Add prototypes.
20732 * server.h: Likewise.
20733
20734 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
20735
20736 * mem-break.c: New file.
20737 * mem-break.h: New file.
20738 * Makefile.in: Add mem-break.o rule; update server.h
20739 dependencies.
20740 * inferiors.c (struct inferior_info): Add target_data
20741 member.
20742 (clear_inferiors): Free target_data member if set.
20743 (inferior_target_data, set_inferior_target_data): New functions.
20744 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
20745 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
20746 * linux-low.c (linux_bp_reinsert): New variable.
20747 (struct inferior_linux_data): New.
20748 (linux_create_inferior): Use set_inferior_target_data.
20749 (linux_attach): Likewise. Call add_inferior.
20750 (linux_wait_for_one_inferior): New function.
20751 (linux_wait): Call it.
20752 (linux_write_memory): Add const.
20753 (initialize_low): Call set_breakpoint_data.
20754 * linux-low.h (struct linux_target_ops): Add breakpoint
20755 handling members.
20756 * server.c (attach_inferior): Remove extra add_inferior
20757 call.
20758 * server.h: Include mem-break.h. Update inferior.c
20759 prototypes.
20760 * target.c (read_inferior_memory)
20761 (write_inferior_memory): New functions.
20762 * target.h (read_inferior_memory)
20763 (write_inferior_memory): Change macros to prototypes.
20764 (struct target_ops): Update comments. Add const to write_memory
20765 definition.
20766
20767 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
20768
20769 * linux-low.c (usr_store_inferior_registers): Support
20770 registers which are allowed to fail to store.
20771 * linux-low.h (linux_target_ops): Likewise.
20772 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20773 (ppc_cannot_store_register): FPSCR may not be storable.
20774
20775 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20776
20777 * server.h: Include <string.h> if HAVE_STRING_H.
20778 * ChangeLog: Correct paths in last ChangeLog entry.
20779
20780 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20781
20782 * linux-low.h: Remove obsolete prototypes.
20783 (struct linux_target_ops): New.
20784 (extern the_low_target): New.
20785 * linux-low.c (num_regs, regmap): Remove declarations.
20786 (register_addr): Use the_low_target explicitly.
20787 (fetch_register): Likewise.
20788 (usr_fetch_inferior_registers): Likewise.
20789 (usr_store_inferior_registers): Likewise.
20790 * linux-arm-low.c (num_regs): Remove.
20791 (arm_num_regs): Define.
20792 (arm_regmap): Renamed from regmap, made static.
20793 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
20794 made static.
20795 (arm_cannot_store_register): Renamed from cannot_store_register,
20796 made static.
20797 (the_low_target): New.
20798 * linux-i386-low.c (num_regs): Remove.
20799 (i386_num_regs): Define.
20800 (i386_regmap): Renamed from regmap, made static.
20801 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
20802 made static.
20803 (i386_cannot_store_register): Renamed from cannot_store_register,
20804 made static.
20805 (the_low_target): New.
20806 * linux-ia64-low.c (num_regs): Remove.
20807 (ia64_num_regs): Define.
20808 (ia64_regmap): Renamed from regmap, made static.
20809 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
20810 made static.
20811 (ia64_cannot_store_register): Renamed from cannot_store_register,
20812 made static.
20813 (the_low_target): New.
20814 * linux-m68k-low.c (num_regs): Remove.
20815 (m68k_num_regs): Define.
20816 (m68k_regmap): Renamed from regmap, made static.
20817 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
20818 made static.
20819 (m68k_cannot_store_register): Renamed from cannot_store_register,
20820 made static.
20821 (the_low_target): New.
20822 * linux-mips-low.c (num_regs): Remove.
20823 (mips_num_regs): Define.
20824 (mips_regmap): Renamed from regmap, made static.
20825 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
20826 made static.
20827 (mips_cannot_store_register): Renamed from cannot_store_register,
20828 made static.
20829 (the_low_target): New.
20830 * linux-ppc-low.c (num_regs): Remove.
20831 (ppc_num_regs): Define.
20832 (ppc_regmap): Renamed from regmap, made static.
20833 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
20834 made static.
20835 (ppc_cannot_store_register): Renamed from cannot_store_register,
20836 made static.
20837 (the_low_target): New.
20838 * linux-s390-low.c (num_regs): Remove.
20839 (s390_num_regs): Define.
20840 (s390_regmap): Renamed from regmap, made static.
20841 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
20842 made static.
20843 (s390_cannot_store_register): Renamed from cannot_store_register,
20844 made static.
20845 (the_low_target): New.
20846 * linux-sh-low.c (num_regs): Remove.
20847 (sh_num_regs): Define.
20848 (sh_regmap): Renamed from regmap, made static.
20849 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
20850 made static.
20851 (sh_cannot_store_register): Renamed from cannot_store_register,
20852 made static.
20853 (the_low_target): New.
20854 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
20855 (the_low_target): New.
20856
20857 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20858
20859 * Makefile.in: Add stamp-h target.
20860 * configure.in: Create stamp-h.
20861 * configure: Regenerated.
20862
20863 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20864
20865 * inferiors.c: New file.
20866 * target.c: New file.
20867 * target.h: New file.
20868 * Makefile.in: Add target.o and inferiors.o. Update
20869 dependencies.
20870 * linux-low.c (inferior_pid): New static variable,
20871 moved from server.c.
20872 (linux_create_inferior): Renamed from create_inferior.
20873 Call add_inferior. Return 0 on success instead of a PID.
20874 (linux_attach): Renamed from myattach.
20875 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
20876 (linux_thread_alive): Renamed from mythread_alive.
20877 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
20878 child dies.
20879 (linux_resume): Renamed from myresume. Add missing ``return 0''.
20880 (regsets_store_inferior_registers): Correct error message.
20881 Add missing ``return 0''.
20882 (linux_fetch_registers): Renamed from fetch_inferior_registers.
20883 (linux_store_registers): Renamed from store_inferior_registers.
20884 (linux_read_memory): Renamed from read_inferior_memory.
20885 (linux_write_memory): Renamed from write_inferior_memory.
20886 (linux_target_ops): New structure.
20887 (initialize_low): Call set_target_ops ().
20888 * remote-utils.c (unhexify): New function.
20889 (hexify): New function.
20890 (input_interrupt): Send signals to ``signal_pid''.
20891 * server.c (inferior_pid): Remove.
20892 (start_inferior): Update create_inferior call.
20893 (attach_inferior): Call add_inferior.
20894 (handle_query): New function.
20895 (main): Call handle_query for `q' packets.
20896 * server.h: Include "target.h". Remove obsolete prototypes.
20897 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
20898
20899 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20900
20901 * Makefile.in: Add WARN_CFLAGS. Update configury
20902 dependencies.
20903 * configure.in: Check for <string.h>
20904 * configure: Regenerate.
20905 * config.in: Regenerate.
20906 * gdbreplay.c: Include needed system headers.
20907 (remote_open): Remove strchr prototype.
20908 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
20909 * regcache.c (supply_register): Change buf argument to const void *.
20910 (supply_register_by_name): Likewise.
20911 (collect_register): Change buf argument to void *.
20912 (collect_register_by_name): Likewise.
20913 * regcache.h: Add missing prototypes.
20914 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
20915 * server.c (handle_query): New function.
20916 (attached): New static variable, moved out of main.
20917 (main): Quiet longjmp clobber warnings.
20918 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
20919 * utils.c (error): Remove NORETURN.
20920 (fatal): Likewise.
This page took 0.465733 seconds and 4 git commands to generate.