gdbserver: turn target op 'handle_new_gdb_connection' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's handle_new_gdb_connection op into a
4 method of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target op.
7 (class process_target): Add the target op.
8 (target_handle_new_gdb_connection): Update the macro.
9 * target.cc (process_target::handle_new_gdb_connection): Define.
10
11 Update the derived classes and callers below.
12
13 * linux-low.cc (linux_target_ops): Update.
14 (linux_handle_new_gdb_connection): Turn into ...
15 (linux_process_target::handle_new_gdb_connection): ... this.
16 * linux-low.h (class linux_process_target): Update.
17 * lynx-low.cc (lynx_target_ops): Update.
18 * nto-low.cc (nto_target_ops): Update.
19 * win32-low.cc (win32_target_ops): Update.
20
21 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
22
23 Turn process_stratum_target's supports_fork_events,
24 supports_vfork_events, and supports_exec_events ops into methods
25 of process_target.
26
27 * target.h (struct process_stratum_target): Remove the target ops.
28 (class process_target): Add the target ops.
29 (target_supports_fork_events): Update the macro.
30 (target_supports_vfork_events): Update the macro.
31 (target_supports_exec_events): Update the macro.
32 * target.cc (process_target::supports_fork_events): Define.
33 (process_target::supports_vfork_events): Define.
34 (process_target::supports_exec_events): Define.
35
36 Update the derived classes and callers below.
37
38 * linux-low.cc (linux_target_ops): Update.
39 (linux_supports_fork_events): Turn into ...
40 (linux_process_target::supports_fork_events): ... this.
41 (linux_supports_vfork_events): Turn into ...
42 (linux_process_target::supports_vfork_events): ... this.
43 (linux_supports_exec_events): Turn into ...
44 (linux_process_target::supports_exec_events): ... this.
45 * linux-low.h (class linux_process_target): Update.
46 * lynx-low.cc (lynx_target_ops): Update.
47 * nto-low.cc (nto_target_ops): Update.
48 * win32-low.cc (win32_target_ops): Update.
49
50 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 Turn process_stratum_target's supports_multi_process op into a
53 method of process_target.
54
55 * target.h (struct process_stratum_target): Remove the target op.
56 (class process_target): Add the target op.
57 * target.cc (process_target::supports_multi_process): Define.
58 (target_supports_multi_process): Update.
59
60 Update the derived classes and callers below.
61
62 * linux-low.cc (linux_target_ops): Update.
63 (linux_supports_multi_process): Turn into ...
64 (linux_process_target::supports_multi_process): ... this.
65 * linux-low.h (class linux_process_target): Update.
66 * lynx-low.cc (lynx_target_ops): Update.
67 * nto-low.cc (nto_target_ops): Update.
68 * win32-low.cc (win32_target_ops): Update.
69
70 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
71
72 Turn process_stratum_target's supports_non_stop, async, and
73 start_non_stop ops into methods of process_target.
74
75 * target.h (struct process_stratum_target): Remove the target ops.
76 (class process_target): Add the target ops.
77 (target_supports_non_stop): Update the macro.
78 (target_async): Update the macro.
79 (start_non_stop): Remove declaration.
80 * target.cc (process_target::supports_non_stop): Define.
81 (process_target::async): Define.
82 (process_target::start_non_stop): Define.
83 (start_non_stop): Remove.
84
85 Update the derived classes and callers below.
86
87 * server.cc (handle_qxfer_siginfo): Update.
88 (handle_query): Update.
89 * linux-low.cc (linux_target_ops): Update.
90 (linux_supports_non_stop): Turn into ...
91 (linux_process_target::supports_non_stop): ... this.
92 (linux_async): Turn into ...
93 (linux_process_target::async): ... this.
94 (linux_start_non_stop): Turn into ...
95 (linux_process_target::start_non_stop): ... this.
96 * linux-low.h (class linux_process_target): Update.
97 * lynx-low.cc (lynx_target_ops): Update.
98 * nto-low.cc (nto_target_ops): Update.
99 (nto_supports_non_stop): Remove; rely on the default behavior
100 instead.
101 * win32-low.cc (win32_target_ops): Update.
102
103 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
104
105 Turn process_stratum_target's qxfer_siginfo op into a method of
106 process_target.
107
108 * target.h (struct process_stratum_target): Remove the target op.
109 (class process_target): Add the target op. Also add
110 'supports_qxfer_siginfo'.
111 * target.cc (process_target::qxfer_siginfo): Define.
112 (process_target::supports_qxfer_siginfo): Define.
113
114 Update the derived classes and callers below.
115
116 * server.cc (handle_qxfer_siginfo): Update.
117 (handle_query): Update.
118 * linux-low.cc (linux_target_ops): Update.
119 (linux_process_target::supports_qxfer_siginfo): Define.
120 (linux_xfer_siginfo): Turn into ...
121 (linux_process_target::qxfer_siginfo): ... this.
122 * linux-low.h (class linux_process_target): Update.
123 * lynx-low.cc (lynx_target_ops): Update.
124 * nto-low.cc (nto_target_ops): Update.
125 * win32-low.cc (win32_target_ops): Update.
126
127 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
128
129 Turn process_stratum_target's qxfer_osdata op into a method of
130 process_target.
131
132 * target.h (struct process_stratum_target): Remove the target op.
133 (class process_target): Add the target op. Also add
134 'supports_qxfer_osdata'.
135 * target.cc (process_target::qxfer_osdata): Define.
136 (process_target::supports_qxfer_osdata): Define.
137
138 Update the derived classes and callers below.
139
140 * server.cc (handle_qxfer_osdata): Update.
141 (handle_query): Update.
142 * linux-low.cc (linux_target_ops): Update.
143 (linux_process_target::supports_qxfer_osdata): Define.
144 (linux_qxfer_osdata): Turn into ...
145 (linux_process_target::qxfer_osdata): ... this.
146 * linux-low.h (class linux_process_target): Update.
147 * lynx-low.cc (lynx_target_ops): Update.
148 * nto-low.cc (nto_target_ops): Update.
149 * win32-low.cc (win32_target_ops): Update.
150
151 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
152
153 Turn process_stratum_target's hostio_last_error op into a
154 method of process_target.
155
156 * target.h (struct process_stratum_target): Remove the target op.
157 (class process_target): Add the target op.
158 * target.cc: Add "hostio.h" to includes.
159 (process_target::hostio_last_error): Define.
160
161 Update the derived classes and callers below.
162
163 * hostio.cc (hostio_error): Update.
164 * linux-low.cc: Remove "hostio.h" from includes.
165 (linux_target_ops): Update.
166 * lynx-low.cc (lynx_target_ops): Update.
167 * nto-low.cc (nto_target_ops): Update.
168 * win32-low.h (class win32_process_target): Update.
169 * win32-low.cc (win32_target_ops): Update.
170 (wince_hostio_last_error): Turn into ...
171 (win32_process_target::hostio_last_error): ... this.
172
173 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
174
175 Turn process_stratum_target's get_tls_address op into a method of
176 process_target.
177
178 * target.h (struct process_stratum_target): Remove the target op.
179 (class process_target): Add the target op. Also add
180 'supports_get_tls_address'.
181 * target.cc (process_target::get_tls_address): Define.
182 (process_target::supports_get_tls_address): Define.
183
184 Update the derived classes and callers below.
185
186 * server.cc (handle_query): Update.
187 * linux-low.cc (linux_target_ops): Update.
188 (linux_process_target::supports_get_tls_address): Define.
189 (linux_process_target::get_tls_address): Define.
190 * linux-low.h (class linux_process_target): Update.
191 * lynx-low.cc (lynx_target_ops): Update.
192 * nto-low.cc (nto_target_ops): Update.
193 * win32-low.cc (win32_target_ops): Update.
194
195 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
196
197 Turn process_stratum_target's read_offsets op into a method of
198 process_target.
199
200 * target.h (struct process_stratum_target): Remove the target op.
201 (class process_target): Add the target op. Also add
202 'supports_read_offsets'.
203 * target.cc (process_target::read_offsets): Define.
204 (process_target::supports_read_offsets): Define.
205
206 Update the derived classes and callers below.
207
208 * server.cc (handle_query): Update.
209 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
210 (linux_target_ops): Update.
211 (linux_process_target::supports_read_offsets): Define.
212 (linux_read_offsets): Turn into ...
213 (linux_process_target::read_offsets): ... this.
214 * linux-low.h (class linux_process_target): Update.
215 * lynx-low.cc (lynx_target_ops): Update.
216 * nto-low.cc (nto_target_ops): Update.
217 * win32-low.cc (win32_target_ops): Update.
218
219 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
220
221 Turn process_stratum_target's stopped_by_watchpoint and
222 stopped_data_address ops into methods of process_target.
223
224 * target.h (struct process_stratum_target): Remove the target ops.
225 (class process_target): Add the target ops.
226 * target.cc (process_target::stopped_by_watchpoint): Define.
227 (process_target::stopped_data_address): Define.
228
229 Update the derived classes and callers below.
230
231 * remote-utils.cc (prepare_resume_reply): Update.
232 * linux-low.cc (linux_target_ops): Update.
233 (linux_stopped_by_watchpoint): Turn into ...
234 (linux_process_target::stopped_by_watchpoint): ... this.
235 (linux_stopped_data_address): Turn into ...
236 (linux_process_target::stopped_data_address): ... this.
237 * linux-low.h (class linux_process_target): Update.
238 * lynx-low.cc (lynx_target_ops): Update.
239 * nto-low.cc (nto_target_ops): Update.
240 (nto_stopped_by_watchpoint): Turn into ...
241 (nto_process_target::stopped_by_watchpoint): ... this.
242 (nto_stopped_data_address): Turn into ...
243 (nto_process_target::stopped_data_address): ... this.
244 * nto-low.h (class nto_process_target): Update.
245 * win32-low.cc (win32_target_ops): Update.
246 (win32_stopped_by_watchpoint): Turn into ...
247 (win32_process_target::stopped_by_watchpoint): ... this.
248 (win32_stopped_data_address): Turn into ...
249 (win32_process_target::stopped_data_address): ... this.
250 * win32-low.h (class win32_process_target): Update.
251
252 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
253
254 Turn process_stratum_target's supports_hardware_single_step op into
255 a method of process_target.
256
257 * target.h (struct process_stratum_target): Remove the target op.
258 (class process_target): Add the target op.
259 (target_supports_hardware_single_step): Update the macro.
260 (target_can_do_hardware_single_step): Remove declaration.
261 * target.cc (process_target::supports_hardware_single_step): Define.
262 (target_can_do_hardware_single_step): Remove.
263
264 Update the derived classes and callers below.
265
266 * linux-low.h (class linux_process_target): Update.
267 * linux-low.cc (linux_target_ops): Update.
268 (linux_supports_hardware_single_step): Turn into ...
269 (linux_process_target::supports_hardware_single_step): ... this.
270 * lynx-low.h (class lynx_process_target): Update.
271 * lynx-low.cc (lynx_target_ops): Update.
272 (lynx_process_target::supports_hardware_single_step): Define.
273 * nto-low.h (class nto_process_target): Update.
274 * nto-low.cc (nto_target_ops): Update.
275 (nto_process_target::supports_hardware_single_step): Define.
276 * win32-low.h (class win32_process_target): Update.
277 * win32-low.cc (win32_target_ops): Update.
278 (win32_process_target::supports_hardware_single_step): Define.
279
280 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
281
282 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
283 ops into methods of process_target.
284
285 * target.h (struct process_stratum_target): Remove the target ops.
286 (class process_target): Add the target ops.
287 (target_stopped_by_hw_breakpoint): Update the macro.
288 (target_supports_stopped_by_hw_breakpoint): Update the macro.
289 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
290 (process_target::supports_stopped_by_hw_breakpoint): Define.
291
292 Update the derived classes and callers below.
293
294 * linux-low.cc (linux_target_ops): Update.
295 (linux_stopped_by_hw_breakpoint): Turn into ...
296 (linux_process_target::stopped_by_hw_breakpoint): ... this.
297 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
298 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
299 * linux-low.h (class linux_process_target): Update.
300 * lynx-low.cc (lynx_target_ops): Update.
301 * nto-low.cc (nto_target_ops): Update.
302 * win32-low.cc (win32_target_ops): Update.
303
304 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
305
306 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
307 ops into methods of process_target.
308
309 * target.h (struct process_stratum_target): Remove the target ops.
310 (class process_target): Add the target ops.
311 (target_stopped_by_sw_breakpoint): Update the macro.
312 (target_supports_stopped_by_sw_breakpoint): Update the macro.
313 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
314 (process_target::supports_stopped_by_sw_breakpoint): Define.
315
316 Update the derived classes and callers below.
317
318 * linux-low.cc (linux_target_ops): Update.
319 (linux_stopped_by_sw_breakpoint): Turn into ...
320 (linux_process_target::stopped_by_sw_breakpoint): ... this.
321 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
322 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
323 * linux-low.h (class linux_process_target): Update.
324 * lynx-low.cc (lynx_target_ops): Update.
325 * nto-low.cc (nto_target_ops): Update.
326 * win32-low.cc (win32_target_ops): Update.
327
328 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
329
330 Turn process_stratum_target's insert_point and remove_point ops
331 into methods of process_target.
332
333 * target.h (struct process_stratum_target): Remove the target ops.
334 (class process_target): Add the target ops.
335 * target.cc (process_target::insert_point): Define.
336 (process_target::remove_point): Define.
337
338 Update the derived classes and callers below.
339
340 * mem-break.cc (set_raw_breakpoint_at): Update.
341 (delete_raw_breakpoint): Update.
342 (uninsert_raw_breakpoint): Update.
343 (reinsert_raw_breakpoint): Update.
344 * linux-low.cc (linux_target_ops): Update.
345 (linux_insert_point): Turn into ...
346 (linux_process_target::insert_point): ... this.
347 (linux_remove_point): Turn into ...
348 (linux_process_target::remove_point): ... this.
349 * linux-low.h (class linux_process_target): Update.
350 * lynx-low.cc (lynx_target_ops): Update.
351 * nto-low.cc (nto_target_ops): Update.
352 (nto_insert_point): Turn into ...
353 (nto_process_target::insert_point): ... this.
354 (nto_remove_point): Turn into ...
355 (nto_process_target::remove_point): ... this.
356 * nto-low.h (class nto_process_target): Update.
357 * win32-low.cc (win32_target_ops): Update.
358 (win32_insert_point): Turn into ...
359 (win32_process_target::insert_point): ... this.
360 (win32_remove_point): Turn into ...
361 (win32_process_target::remove_point): ... this.
362 * win32-low.h (class win32_process_target): Update.
363
364 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365
366 Turn process_stratum_target's supports_z_point_type op into a
367 method of process_target.
368
369 * target.h (struct process_stratum_target): Remove the target op.
370 (class process_target): Add the target op.
371 * target.cc (process_target::supports_z_point_type): Define.
372
373 Update the derived classes and callers below.
374
375 * mem-break.cc (z_type_supported): Update.
376 * linux-low.cc (linux_target_ops): Update.
377 (linux_supports_z_point_type): Turn into ...
378 (linux_process_target::supports_z_point_type): ... this.
379 * linux-low.h (class linux_process_target): Update.
380 * lynx-low.cc (lynx_target_ops): Update.
381 * nto-low.cc (nto_target_ops): Update.
382 (nto_supports_z_point_type): Turn into ...
383 (nto_process_target::supports_z_point_type): ... this.
384 * nto-low.h (class nto_process_target): Update.
385 * win32-low.cc (win32_target_ops): Update.
386 (win32_supports_z_point_type): Turn into ...
387 (win32_process_target::supports_z_point_type): ... this.
388 * win32-low.h (class win32_process_target): Update.
389
390 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
391
392 Turn process_stratum_target's read_auxv op into a method of
393 process_target.
394
395 * target.h (class process_stratum_target): Remove the target op.
396 (struct process_target): Add the target op. Also add
397 'supports_read_auxv'.
398 * target.cc (process_target::read_auxv): Define.
399 (process_target::supports_read_auxv): Define.
400
401 Update the derived classes and callers below.
402
403 * server.cc (handle_qxfer_auxv): Update.
404 (handle_query): Update.
405 * linux-low.cc (linux_target_ops): Update.
406 (linux_process_target::supports_read_auxv): Define.
407 (linux_read_auxv): Turn into ...
408 (linux_process_target::read_auxv): ... this.
409 * linux-low.h (class linux_process_target): Update.
410 * lynx-low.cc (lynx_target_ops): Update.
411 * nto-low.cc (nto_target_ops): Update.
412 (nto_process_target::supports_read_auxv): Define.
413 (nto_read_auxv): Turn into ...
414 (nto_process_target::read_auxv): ... this.
415 * nto-low.h (class nto_process_target): Update.
416 * win32-low.cc (win32_target_ops): Update.
417
418 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
419
420 Turn process_stratum_target's request_interrupt op into a method of
421 process_target.
422
423 * target.h (struct process_stratum_target): Remove the target op.
424 (class process_target): Add the target op.
425
426 Update the derived classes and callers below.
427
428 * remote-utils.cc (putpkt_binary_1): Update.
429 (input_interrupt): Update.
430 (getpkt): Update.
431 * server.cc (handle_v_requests): Update.
432 * linux-low.cc (linux_target_ops): Update.
433 (linux_request_interrupt): Turn into ...
434 (linux_process_target::request_interrupt): ... this.
435 * linux-low.h (class linux_process_target): Update.
436 * lynx-low.cc (lynx_target_ops): Update.
437 (lynx_request_interrupt): Turn into ...
438 (lynx_process_target::request_interrupt): ... this.
439 * lynx-low.h (class lynx_process_target): Update.
440 * nto-low.cc (nto_target_ops): Update.
441 (nto_request_interrupt): Turn into ...
442 (nto_process_target::request_interrupt): ... this.
443 * nto-low.h (class nto_process_target): Update.
444 * win32-low.cc (win32_target_ops): Update.
445 (win32_request_interrupt): Turn into ...
446 (win32_process_target::request_interrupt): ... this.
447 * win32-low.h (class win32_process_target): Update.
448
449 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 Turn process_stratum_target's look_up_symbols op into a method of
452 process_target.
453
454 * target.h (struct process_stratum_target): Remove the target op.
455 (class process_target): Add the target op.
456 * target.cc (process_target::look_up_symbols): Define.
457
458 Update the derived classes and callers below.
459
460 * server.cc (handle_query): Update.
461 * linux-low.cc (linux_target_ops): Update.
462 (linux_look_up_symbols): Turn into ...
463 (linux_process_target::look_up_symbols): ... this.
464 * linux-low.h (class linux_process_target): Update.
465 * lynx-low.cc (lynx_target_ops): Update.
466 * nto-low.cc (nto_target_ops): Update.
467 * win32-low.cc (win32_target_ops): Update.
468
469 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
470
471 Turn process_stratum_target's read_memory and write_memory
472 ops into methods of process_target.
473
474 * target.h (struct process_stratum_target): Remove the target ops.
475 (class process_target): Add the target ops.
476
477 Update the derived classes and callers below.
478
479 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
480 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
481 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
482 (arm_get_syscall_trapinfo): Update.
483 * linux-cris-low.cc (cris_breakpoint_at): Update.
484 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
485 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
486 * linux-mips-low.cc (mips_breakpoint_at): Update.
487 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
488 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
489 * linux-sh-low.cc (sh_breakpoint_at): Update.
490 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
491 (sparc_store_gregset_from_stack): Update.
492 (sparc_breakpoint_at): Update.
493 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
494 * linux-tile-low.cc (tile_breakpoint_at): Update.
495 * linux-x86-low.cc (x86_breakpoint_at): Update.
496 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
497 * mem-brea.cc (insert_memory_breakpoint): Update.
498 (validate_inserted_breakpoint): Update.
499 * target.cc (read_inferior_memory): Update.
500 (target_write_memory): Update.
501 * linux-low.cc (linux_target_ops): Update.
502 (linux_read_memory): Make a wrapper around the read_memory target
503 op call.
504 (linux_process_target::read_memory): Rename from linux_read_memory.
505 (linux_write_memory): Turn into ...
506 (linux_process_target::write_memory): ... this.
507 * linux-low.h (class linux_process_target): Update.
508 * lynx-low.cc (lynx_target_ops): Update.
509 (lynx_read_memory): Turn into ...
510 (lynx_process_target::read_memory): ... this.
511 (lynx_write_memory): Turn into ...
512 (lynx_process_target::write_memory): ... this.
513 * lynx-low.h (class lynx_process_target): Update.
514 * nto-low.cc (nto_target_ops): Update.
515 (nto_read_memory): Turn into ...
516 (nto_process_target::read_memory): ... this.
517 (nto_write_memory): Turn into ...
518 (nto_process_target::write_memory): ... this.
519 * nto-low.h (class nto_process_target): Update.
520 * win32-low.cc (win32_target_ops): Update.
521 (win32_read_inferior_memory): Turn into ...
522 (win32_process_target::read_memory): ... this.
523 (win32_write_inferior_memory): Turn into ...
524 (win32_process_target::write_memory): ... this.
525 * win32-low.h (class win32_process_target): Update.
526
527 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
528
529 Turn process_stratum_target's prepare_to_access_memory and
530 done_accessing_memory ops into methods of process_target.
531
532 * target.h (struct process_stratum_target): Remove the target ops.
533 (class process_target): Add the target ops.
534 * target.cc (process_target::prepare_to_access_memory): Define.
535 (process_target::done_accessing_memory): Define.
536 (prepare_to_access_memory): Update.
537 (done_accessing_memory): Update.
538
539 Update the derived classes and callers below.
540
541 * linux-low.cc (linux_target_ops): Update.
542 (linux_prepare_to_access_memory): Turn into ...
543 (linux_process_target::prepare_to_access_memory): ... this.
544 (linux_done_accessing_memory): Turn into ...
545 (linux_process_target::done_accessing_memory): ... this.
546 * linux-low.h (class linux_process_target): Update.
547 * lynx-low.cc (lynx_target_ops): Update.
548 * nto-low.cc (nto_target_ops): Update.
549 * win32-low.cc (win32_target_ops): Update.
550
551 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552
553 Turn process_stratum_target's fetch_registers and store_registers
554 ops into methods of process_target.
555
556 * target.h (struct process_stratum_target): Remove the target ops.
557 (class process_target): Add the target ops.
558 (fetch_inferior_registers): Update the macro.
559 (store_inferior_registers): Update the macro.
560
561 Update the derived classes and callers below.
562
563 * linux-low.cc (linux_target_ops): Update.
564 (linux_fetch_registers): Turn into ...
565 (linux_process_target::fetch_registers): ... this.
566 (linux_store_registers): Turn into ...
567 (linux_process_target::store_registers): ... this.
568 * linux-low.h (class linux_process_target): Update.
569 * lynx-low.cc (lynx_target_ops): Update.
570 (lynx_fetch_registers): Turn into ...
571 (lynx_process_target::fetch_registers): ... this.
572 (lynx_store_registers): Turn into ...
573 (lynx_process_target::store_registers): ... this.
574 * lynx-low.h (class lynx_process_target): Update.
575 * nto-low.cc (nto_target_ops): Update.
576 (nto_fetch_registers): Turn into ...
577 (nto_process_target::fetch_registers): ... this.
578 (nto_store_registers): Turn into ...
579 (nto_process_target::store_registers): ... this.
580 * nto-low.h (class nto_process_target): Update.
581 * win32-low.cc (win32_target_ops): Update.
582 (win32_fetch_inferior_registers): Turn into ...
583 (win32_process_target::fetch_registers): ... this.
584 (win32_store_inferior_registers): Turn into ...
585 (win32_process_target::store_registers): ... this.
586 * win32-low.h (class win32_process_target): Update.
587
588 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
589
590 Turn process_stratum_target's wait op into a method of
591 process_target.
592
593 * target.h (struct process_stratum_target): Remove the target op.
594 (class process_target): Add the target op.
595
596 Update the derived classes and callers below.
597
598 * target.cc (target_wait): Update.
599 * linux-low.cc (linux_target_ops): Update.
600 (linux_wait): Turn into ...
601 (linux_process_target::wait): ... this.
602 * linux-low.h (class linux_process_target): Update.
603 * lynx-low.cc (lynx_target_ops): Update.
604 (lynx_wait): Turn into ...
605 (lynx_process_target::wait): ... this.
606 * lynx-low.h (class lynx_process_target): Update.
607 * nto-low.cc (nto_target_ops): Update.
608 (nto_wait): Turn into ...
609 (nto_process_target::wait): ... this.
610 * nto-low.h (class nto_process_target): Update.
611 * win32-low.cc (win32_target_ops): Update.
612 (win32_wait): Turn into ...
613 (win32_process_target::wait): ... this.
614 (do_initial_child_stuff): Update.
615 * win32-low.h (class win32_process_target): Update.
616
617 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
618
619 Turn process_stratum_target's resume op into a method of
620 process_target.
621
622 * target.h (struct process_stratum_target): Remove the target op.
623 (class process_target): Add the target op.
624
625 Update the derived classes and callers below.
626
627 * server.cc (resume): Update.
628 * target.cc (target_stop_and_wait): Update.
629 (target_continue_no_signal): Update.
630 (target_continue): Update.
631 * linux-low.cc (linux_target_ops): Update.
632 (linux_resume): Turn into ...
633 (linux_process_target::resume): ... this.
634 * linux-low.h (class linux_process_target): Update.
635 * lynx-low.cc (lynx_target_ops): Update.
636 (lynx_resume): Turn into ...
637 (lynx_process_target::resume): ... this.
638 * lynx-low.h (class lynx_process_target): Update.
639 * nto-low.cc (nto_target_ops): Update.
640 (nto_resume): Turn into ...
641 (nto_process_target::resume): ... this.
642 * nto-low.h (class nto_process_target): Update.
643 * win32-low.cc (win32_target_ops): Update.
644 (win32_resume): Turn into ...
645 (win32_process_target::resume): ... this.
646 (win32_process_target::detach): Update.
647 (do_initial_child_stuff): Update.
648 * win32-low.h (class win32_process_target): Update.
649
650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
651
652 Turn process_stratum_target's thread_alive op into a method of
653 process_target.
654
655 * target.h (struct process_stratum_target): Remove the target op.
656 (class process_target): Add the target op.
657 (mythread_alive): Update the macro.
658
659 Update the derived classes and callers below.
660
661 * linux-low.cc (linux_target_ops): Update.
662 (linux_thread_alive): Turn into ...
663 (linux_process_target::thread_alive): ... this.
664 (wait_for_sigstop): Update.
665 * linux-low.h (class linux_process_target): Update.
666 * lynx-low.cc (lynx_target_ops): Update.
667 (lynx_thread_alive): Turn into ...
668 (lynx_process_target::thread_alive): ... this.
669 * lynx-low.h (class lynx_process_target): Update.
670 * nto-low.cc (nto_target_ops): Update.
671 (nto_thread_alive): Turn into ...
672 (nto_process_target::thread_alive): ... this.
673 * nto-low.h (class nto_process_target): Update.
674 * win32-low.cc (win32_target_ops): Update.
675 (win32_thread_alive): Turn into ...
676 (win32_process_target::thread_alive): ... this.
677 * win32-low.h (class win32_process_target): Update.
678
679 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
680
681 Turn process_stratum_target's join op into a method of
682 process_target.
683
684 * target.h (struct process_stratum_target): Remove the target op.
685 (class process_target): Add the target op.
686 (join_inferior): Update the macro.
687
688 Update the derived classes and callers below.
689
690 * linux-low.cc (linux_target_ops): Update.
691 (linux_join): Turn into ...
692 (linux_process_target::join): ... this.
693 * linux-low.h (class linux_process_target): Update.
694 * lynx-low.cc (lynx_target_ops): Update.
695 (lynx_join): Turn into ...
696 (lynx_process_target::join): ... this.
697 * lynx-low.h (class lynx_process_target): Update.
698 * nto-low.cc (nto_target_ops): Update.
699 (nto_process_target::join): Define.
700 * nto-low.h (class nto_process_target): Update.
701 * win32-low.cc (win32_target_ops): Update.
702 (win32_join): Turn into ...
703 (win32_process_target::join): ... this.
704 * win32-low.h (class win32_process_target): Update.
705
706 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
707
708 Turn process_stratum_target's mourn op into a method of
709 process_target.
710
711 * target.h (struct process_stratum_target): Remove the target op.
712 (class process_target): Add the target op.
713
714 Update the derived classes and callers below.
715
716 * target.cc (target_mourn_inferior): Update.
717 * linux-low.cc (linux_target_ops): Update.
718 (linux_mourn): Turn into ...
719 (linux_process_target::mourn): ... this.
720 (handle_extended_wait): Update.
721 (linux_process_target::kill): Update.
722 (linux_process_target::detach): Update.
723 * linux-low.h (class linux_process_target): Update.
724 * lynx-low.cc (lynx_target_ops): Update.
725 (lynx_mourn): Turn into ...
726 (lynx_process_target::mourn): ... this.
727 * lynx-low.h (class lynx_process_target): Update.
728 * nto-low.cc (nto_target_ops): Update.
729 (nto_mourn): Turn into ...
730 (nto_process_target::mourn): ... this.
731 * nto-low.h (class nto_process_target): Update.
732 * win32-low.cc (win32_target_ops): Update.
733 (win32_mourn): Turn into ...
734 (win32_process_target::mourn): ... this.
735 * win32-low.h (class win32_process_target): Update.
736
737 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
738
739 Turn process_stratum_target's detach op into a method of
740 process_target.
741
742 * target.h (struct process_stratum_target): Remove the target op.
743 (class process_target): Add the target op.
744 (detach_inferior): Update the macro.
745
746 Update the derived classes and callers below.
747
748 * linux-low.cc (linux_target_ops): Update.
749 (linux_detach): Turn into ...
750 (linux_process_target::detach): ... this.
751 * linux-low.h (class linux_process_target): Update.
752 * lynx-low.cc (lynx_target_ops): Update.
753 (lynx_detach): Turn into ...
754 (lynx_process_target::detach): ... this.
755 * lynx-low.h (class lynx_process_target): Update.
756 * nto-low.cc (nto_target_ops): Update.
757 (nto_detach): Turn into ...
758 (nto_process_target::detach): ... this.
759 * nto-low.h (class nto_process_target): Update.
760 * win32-low.cc (win32_target_ops): Update.
761 (win32_detach): Turn into ...
762 (win32_process_target::detach): ... this.
763 * win32-low.h (class win32_process_target): Update.
764
765 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
766
767 Turn process_stratum_target's kill op into a method of
768 process_target.
769
770 * target.h (struct process_stratum_target): Remove the target op.
771 (class process_target): Add the target op.
772
773 Update the derived classes and callers below.
774
775 * target.cc (kill_inferior): Update.
776 * linux-low.cc (linux_target_ops): Update.
777 (linux_kill): Turn into ...
778 (linux_process_target::kill): ... this.
779 * linux-low.h (class linux_process_target): Update.
780 * lynx-low.cc (lynx_target_ops): Update.
781 (lynx_kill): Turn into ...
782 (lynx_process_target::kill): ... this.
783 * lynx-low.h (class lynx_process_target): Update.
784 * nto-low.cc (nto_target_ops): Update.
785 (nto_kill): Turn into ...
786 (nto_process_target::kill): ... this.
787 * nto-low.h (class nto_process_target): Update.
788 * win32-low.cc (win32_target_ops): Update.
789 (win32_kill): Turn into ...
790 (win32_process_target::kill): ... this.
791 * win32-low.h (class win32_process_target): Update.
792
793 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
794
795 Turn process_stratum_target's attach op into a method of
796 process_target.
797
798 * target.h (struct process_stratum_target): Remove the target op.
799 (class process_target): Add the target op.
800 (myattach): Update the macro.
801
802 Update the derived classes and callers below.
803
804 * linux-low.cc (linux_target_ops): Update.
805 (linux_attach): Turn into ...
806 (linux_process_target::attach): ... this.
807 * linux-low.h (class linux_process_target): Update.
808 * lynx-low.cc (lynx_target_ops): Update.
809 (lynx_attach): Turn into ...
810 (lynx_process_target::attach): ... this.
811 * lynx-low.h (class lynx_process_target): Update.
812 * nto-low.cc (nto_target_ops): Update.
813 (nto_attach): Turn into ...
814 (nto_process_target::attach): ... this.
815 * nto-low.h (class nto_process_target): Update.
816 * win32-low.cc (win32_target_ops): Update.
817 (win32_attach): Turn into ...
818 (win32_process_target::attach): ... this.
819 * win32-low.h (class win32_process_target): Update.
820
821 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
822
823 Turn process_stratum_target's post_create_inferior op into a method
824 of process_target.
825
826 * target.h (struct process_stratum_target): Remove the target op.
827 (class process_target): Add the target op.
828 (target_post_create_inferior): Update the macro.
829 * target.cc (process_target::post_create_inferior): Define.
830
831 Update the derived classes and callers below.
832
833 * linux-low.cc (linux_target_ops): Update.
834 (linux_post_create_inferior): Turn into ...
835 (linux_process_target::post_create_inferior): ... this.
836 * linux-low.h (class linux_process_target): Update.
837 * lynx-low.cc (lynx_target_ops): Update.
838 * nto-low.cc (nto_target_ops): Update.
839 * win32-low.cc (win32_target_ops): Update.
840
841 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842
843 Turn process_stratum_target's create_inferior op into a method of
844 process_target.
845
846 * target.h (struct process_stratum_target): Remove the target op.
847 (class process_target): Add the target op.
848 (create_inferior): Rename the macro to ...
849 (target_create_inferior): ... this.
850
851 Update the derived classes and callers below.
852
853 * server.cc (handle_v_run): Update.
854 (captured_main): Update.
855 (process_serial_event): Update.
856 * linux-low.cc (linux_target_ops): Update.
857 (linux_create_inferior): Turn into ...
858 (linux_process_target::create_inferior): ... this.
859 * linux-low.h (class linux_process_target): Update.
860 * lynx-low.cc (lynx_target_ops): Update.
861 (lynx_create_inferior): Turn into ...
862 (lynx_process_target::create_inferior): ... this.
863 * lynx-low.h (class lynx_process_target): Update.
864 * nto-low.cc (nto_target_ops): Update.
865 (nto_create_inferior): Turn into ...
866 (nto_process_target::create_inferior): ... this.
867 * nto-low.h (class nto_process_target): Update.
868 * win32-low.cc (win32_target_ops): Update.
869 (win32_create_inferior): Turn into ...
870 (win32_process_target::create_inferior): ... this.
871 * win32-low.h (class win32_process_target): Update.
872
873 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 * target.h (class process_target): New class definition.
876 (struct process_stratum_target) <pt>: New field with type
877 'process_target*'.
878 * linux-low.h (class linux_process_target): Define as a derived
879 class of 'process_target'.
880 * linux-low.cc (linux_target_ops): Add a linux_process_target*
881 as the 'pt' field.
882 * lynx-low.h (class lynx_process_target): Define as a derived
883 class of 'process_target'.
884 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
885 as the 'pt' field.
886 * nto-low.h (class nto_process_target): Define as a derived
887 class of 'process_target'.
888 * nto-low.cc (nto_target_ops): Add an nto_process_target*
889 as the 'pt' field.
890 * win32-low.h (class win32_process_target): Define as a derived
891 class of 'process_target'.
892 * win32-low.cc (win32_target_ops): Add a win32_process_target*
893 as the 'pt' field.
894
895 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * configure: Regenerate.
898
899 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
900 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * linux-riscv-low.cc: New file.
903 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
904 and nat/riscv-linux-tdesc.c.
905 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
906 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
907 Define.
908
909 2020-02-14 Tom Tromey <tom@tromey.com>
910
911 * acinclude.m4: Don't include acx_configure_dir.m4.
912 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
913 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
914 (all, install-only, uninstall, clean-info, clean)
915 (maintainer-clean): Don't recurse.
916 (subdir_do, all-lib): Remove.
917 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
918 (GNULIB_H): Remove.
919 (generated_files): Update.
920 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
921 * configure: Rebuild.
922 * configure.ac: Don't configure gnulib or libiberty.
923 (GNULIB): Update.
924
925 2020-02-14 Eli Zaretskii <eliz@gnu.org>
926
927 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
928 preparing the command line for CreateProcess.
929 (win32_create_inferior): Reflect the program name in debugging
930 output that shows the process and its command line.
931
932 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
933
934 * Makefile.in: Rename source files from .c to .cc.
935 * %.c: Rename to %.cc.
936 * configure.ac: Rename server.c to server.cc.
937 * configure: Re-generate.
938
939 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
940
941 * Makefile.in: Rename gdbsupport source files from .c to .cc.
942
943 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
944
945 * win32-low.c (win32_create_inferior): Set signal_pid.
946
947 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
948 Pedro Alves <palves@redhat.com>
949
950 Skip building gdbserver in a cross-configuration.
951 * configure.srv: Set $gdbserver_host depending on whether $target
952 is $host. Use $gdbserver_host instead of $host.
953
954 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
955
956 * configure: Re-generate.
957
958 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
959
960 * configure: Re-generate.
961
962 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
963
964 * acinclude.m4: Update warning.m4 path.
965
966 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
967
968 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
969 (handle_exception): Set siginfo_er.
970 (win32_xfer_siginfo): New function.
971
972 2020-02-07 Tom Tromey <tom@tromey.com>
973 Pedro Alves <palves@redhat.com>
974
975 * README: Update build documentation.
976 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
977 host, not target.
978 * configure.ac: Update paths.
979 * configure: Rebuild.
980 * acinclude.m4: Update paths.
981 * Makefile.in: Update include paths.
982 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
983 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
984 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
985 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
986 (%-generated.c): Update paths.
987 * Move entire directory from ../gdb/gdbserver.
988
989 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
990
991 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
992
993 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
994
995 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
996 assignment instead of srv_linux_obj.
997
998 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
999
1000 * server.c (handle_qxfer_libraries): Write segment-address with
1001 paddress.
1002
1003 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1004
1005 * Makefile.in (install-strip): New target.
1006 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1007 * aclocal.m4: Regenerate.
1008 * configure: Regenerate.
1009 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1010
1011 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1012
1013 * Makefile.in (SFILES): Adjust paths to point to real files.
1014 (OBS): Move waitstatus.o to target/waitstatus.o.
1015 (TAGS): Transform paths appropriately.
1016 (%.o): Rename to...
1017 (nat/%.o): ... this pattern rule.
1018 (%.o): Rename to...
1019 (target/%.o): ... this pattern rule.
1020 * configure.srv: Adjust paths throughout to include nat/ prefix
1021 with the revant files.
1022 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1023 * configure: Regenerate.
1024
1025 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1026
1027 * Makefile.in (TAGS): Remove config files from the recipe.
1028
1029 2020-01-14 Tom Tromey <tom@tromey.com>
1030
1031 * configure: Rebuild.
1032 * configure.ac: Remove any checks that were added to common.m4.
1033 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1034 lib-link.m4.
1035
1036 2020-01-14 Tom Tromey <tom@tromey.com>
1037
1038 * server.h: Include config.h.
1039 * gdbreplay.c: Include config.h.
1040 * configure: Rebuild.
1041 * configure.ac: Don't source common.host.
1042 * acinclude.m4: Update path.
1043 * Makefile.in (INCSUPPORT): New variable.
1044 (INCLUDE_CFLAGS): Add INCSUPPORT.
1045 (SFILES): Update paths.
1046 (version-generated.c): Update path to create-version.sh.
1047 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1048
1049 2020-01-14 Tom Tromey <tom@tromey.com>
1050
1051 * configure.ac (LIBS): Use WIN32APILIBS.
1052 (USE_WIN32API): Don't define.
1053 * configure: Rebuild.
1054
1055 2020-01-14 Tom Tromey <tom@tromey.com>
1056
1057 * configure: Rebuild.
1058
1059 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1060
1061 * Makefile.in (%-generated.c): Remove rule for files from
1062 regformats/i386.
1063
1064 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1065
1066 * configure: Re-generate.
1067
1068 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1071 Define to static.
1072 * tracepoint.c (stop_tracing, flush_trace_buffer,
1073 about_to_request_buffer_space, get_trace_state_variable_value,
1074 set_trace_state_variable_value, gdb_collect): Add declaration.
1075
1076 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1077
1078 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1079 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1080 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1081 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1082 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1083 static.
1084
1085 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1086
1087 * inferiors.c: Include gdbsupport/common-inferior.h.
1088
1089 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * hostio-errno.c: Include hostio.h.
1092
1093 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1094
1095 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1096 prerequisite.
1097
1098 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1101 * linux-arm-tdesc.h: Include arch/arm.h.
1102
1103 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1106
1107 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1108
1109 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1110 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1111
1112 2020-01-10 Pedro Alves <palves@redhat.com>
1113
1114 * fork-child.c (post_fork_inferior): Pass target down to
1115 startup_inferior.
1116 * inferiors.c (switch_to_thread): Add process_stratum_target
1117 parameter.
1118 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1119 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1120 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1121 * remote-utils.c (prepare_resume_reply): Pass the target to
1122 switch_to_thread.
1123 * target.c (the_target): Now a process_stratum_target.
1124 (done_accessing_memory): Pass the target to switch_to_thread.
1125 (set_target_ops): Ajust to use process_stratum_target.
1126 * target.h (struct target_ops): Rename to ...
1127 (struct process_stratum_target): ... this.
1128 (the_target, set_target_ops): Adjust.
1129 (prepare_to_access_memory): Adjust comment.
1130 * win32-low.c (child_xfer_memory): Adjust to use
1131 process_stratum_target.
1132 (win32_target_ops): Now a process_stratum_target.
1133
1134 2020-01-06 Eli Zaretskii <eliz@gnu.org>
1135 Pedro Alves <palves@redhat.com>
1136
1137 * win32-low.c (get_child_debug_event): Extract the fatal exception
1138 from the exit status and convert to the equivalent Posix signal
1139 number.
1140 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1141 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1142
1143 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
1144
1145 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1146
1147 2020-01-01 Joel Brobecker <brobecker@adacore.com>
1148
1149 * server.c (gdbserver_version): Change copyright year to 2020.
1150 * gdbreplay.c (gdbreplay_version): Likewise.
1151
1152 2019-12-19 Christian Biesinger <cbiesinger@google.com>
1153
1154 * configure: Regenerate.
1155 * configure.ac: Quote variable arguments of test.
1156
1157 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1158
1159 * Makefile.in: Fix build with GNU Make 3.81
1160
1161 2019-12-16 Tom Tromey <tromey@adacore.com>
1162
1163 * server.c (get_exec_file): Constify result.
1164
1165 2019-12-10 Christian Biesinger <cbiesinger@google.com>
1166
1167 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1168 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1169 * config.in: Regenerate.
1170 * configure: Regenerate.
1171 * configure.ac: Don't check for strerror.
1172 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1173 Call safe_strerror instead of strerror.
1174 * server.h (strerror): Remove this now-unnecessary declaration.
1175 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1176 strerror.
1177 (gdb_agent_helper_thread): Likewise.
1178 * utils.c (perror_with_name): Likewise.
1179
1180 2019-11-26 Tom Tromey <tom@tromey.com>
1181
1182 * configure, config.in: Rebuild.
1183
1184 2019-11-26 Tom Tromey <tom@tromey.com>
1185
1186 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1187 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1188 gdb_sigmask.
1189 * configure, config.in: Rebuild.
1190
1191 2019-11-26 Tom Tromey <tom@tromey.com>
1192
1193 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1194 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1195 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1196 * acinclude.m4: Include ax_pthread.m4.
1197 * config.in, configure: Rebuild.
1198
1199 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1200
1201 * debug.c (debug_set_output): Call safe_strerror instead of
1202 strerror.
1203 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1204 (linux_kill_one_lwp): Likewise.
1205 (linux_detach_one_lwp): Likewise.
1206 (linux_wait_for_event_filtered): Likewise.
1207 (store_register): Likewise.
1208 * lynx-low.c (lynx_attach): Likewise.
1209 * mem-break.c (insert_memory_breakpoint): Likewise.
1210 (remove_memory_breakpoint): Likewise.
1211 (delete_fast_tracepoint_jump): Likewise.
1212 (set_fast_tracepoint_jump): Likewise.
1213 (uninsert_fast_tracepoint_jumps_at): Likewise.
1214 (reinsert_fast_tracepoint_jumps_at): Likewise.
1215 * nto-low.c (nto_xfer_memory): Likewise.
1216 (nto_resume): Likewise.
1217
1218 2019-11-20 Luis Machado <luis.machado@linaro.org>
1219
1220 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1221 instead of register count.
1222 * tdesc.c (tdesc_contains_feature): New function.
1223 * tdesc.h (tdesc_contains_feature): New prototype.
1224
1225 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1226
1227 * Makefile.in: Add safe-strerror.c.
1228 * configure: Regenerate.
1229 * configure.ac: Don't source common.host.
1230
1231 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1232
1233 * config.in: Regenerate.
1234 * configure: Regenerate.
1235
1236 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * ax.c (ax_printf): Handle size_t_arg.
1239
1240 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1241
1242 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1243 * mi/mi-main.c (output_cores): Likewise.
1244 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1245 (linux_xfer_osdata_modules): Likewise.
1246 * remote.c (register_remote_support_xml): Likewise.
1247 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1248 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1249
1250 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1251
1252 * configure: Regenerate.
1253 * configure.ac: Remove check for strerror_r.
1254
1255 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1256
1257 * config.in: Regenerate.
1258 * configure: Regenerate.
1259 * configure.ac: Also check for strerror_r.
1260
1261 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1262
1263 * ax.h (debug_agent): Remove duplicate declaration.
1264
1265 2019-10-26 Tom de Vries <tdevries@suse.de>
1266
1267 * linux-aarch64-low.c: Fix typos in comments.
1268 * linux-arm-low.c: Same.
1269 * linux-low.c: Same.
1270 * linux-ppc-low.c: Same.
1271 * proc-service.c: Same.
1272 * regcache.h: Same.
1273 * server.c: Same.
1274 * tracepoint.c: Same.
1275 * win32-low.c: Same.
1276
1277 2019-10-25 Tom Tromey <tromey@adacore.com>
1278
1279 * utils.c (xstrdup): Remove.
1280
1281 2019-10-23 Tom Tromey <tom@tromey.com>
1282
1283 * configure, config.in: Rebuild.
1284
1285 2019-10-23 Tom Tromey <tom@tromey.com>
1286
1287 * configure: Rebuild.
1288 * acinclude.m4: Use m4_include, not sinclude.
1289
1290 2019-10-17 Tom Tromey <tromey@adacore.com>
1291
1292 * configure: Rebuild.
1293 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1294 in AC_CONFIG_FILES invocation.
1295 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1296 invocation.
1297
1298 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1299
1300 * server.c: Include xml-builtin.h.
1301 (get_xml_features): Don't declare xml_builtins here.
1302
1303 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * Makefile.in: Remove references to vec-ipa.o.
1306
1307 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * Makefile.in: Remove references to vec.c.
1310
1311 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1312
1313 * server.c (server_waiting): Change to bool.
1314 (extended_protocol): Likewise.
1315 (response_needed): Likewise.
1316 (exit_requested): Likewise.
1317 (run_once): Likewise.
1318 (report_no_resumed): Likewise.
1319 (non_stop): Likewise.
1320 (disable_packet_vCont): Likewise.
1321 (disable_packet_Tthread): Likewise.
1322 (disable_packet_qC): Likewise.
1323 (disable_packet_qfThreadInfo): Likewise.
1324 (handle_general_set): Update.
1325 (handle_detach): Update.
1326 (handle_monitor_command): Update.
1327 (handle_query): Update.
1328 (captured_main): Update.
1329 (process_serial_event): Update.
1330 * server.h (server_waiting): Change to bool.
1331 (disable_packet_vCont): Likewise.
1332 (disable_packet_Tthread): Likewise.
1333 (disable_packet_qC): Likewise.
1334 (disable_packet_qfThreadInfo): Likewise.
1335 (run_once): Likewise.
1336 (non_stop): Likewise.
1337 * target.c (target_stop_and_wait): Update.
1338
1339 2019-10-02 Tom Tromey <tromey@adacore.com>
1340
1341 * Makefile.in (SFILES): Add common-inferior.c.
1342 (OBS): Add common-inferior.o.
1343 * server.c (startup_with_shell): Don't define.
1344
1345 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * linux-low.c (linux_low_read_btrace): Update for change to
1348 std::vector.
1349
1350 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1351
1352 * debug.c (debug_threads): Remove comment in favor of the header.
1353 * debug.h (using_threads): Add declaration.
1354 (debug_threads): Add comment.
1355 * linux-aarch64-low.c: Include debug.h and remove declaration of
1356 debug_threads.
1357 * nto-low.c: Likewise.
1358 * remote-utils.c: Likewise.
1359 * thread-db.c: Likewise.
1360
1361 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1362
1363 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1364 and powerpc-cell64l-ipa.o.
1365 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1366 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1367 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1368 (spu*-*-*): Remove.
1369
1370 * spu-low.c: Remove file.
1371
1372 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1373 (parse_spufs_run): Remove.
1374 (ppc_get_pc): Remove Cell/B.E. support.
1375 (ppc_set_pc): Likewise.
1376 (ppc_breakpoint_at): Likewise.
1377 (ppc_arch_setup): Likewise.
1378 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1379 tdesc_powerpc_cell32l.
1380 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1381 or init_registers_powerpc_cell32l.
1382 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1383 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1384 or init_registers_powerpc_cell32l.
1385 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1386 (init_registers_powerpc_cell32l): Remove prototype.
1387 (init_registers_powerpc_cell64l): Likewise.
1388
1389 * target.h (struct target_ops): Remove qxfer_spu member.
1390 * server.c (handle_qxfer_spu): Remove.
1391 (qxfer_packets): Remove entry for "spu".
1392 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1393 * linux-low.c (SPUFS_MAGIC): Remove.
1394 (spu_enumerate_spu_ids): Remove.
1395 (linux_qxfer_spu): Remove.
1396 (linux_target_ops): Remove qxfer_spu member.
1397 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1398 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1399 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1400
1401 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1402
1403 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1404 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1405 * config.in: Regenerate.
1406 * configure: Regenerate.
1407
1408 2019-08-15 Tom Tromey <tromey@adacore.com>
1409
1410 * target.c (target_write_memory): Use gdb::byte_vector.
1411
1412 2019-08-15 Tom Tromey <tromey@adacore.com>
1413
1414 * tracepoint.c (write_inferior_data_pointer)
1415 (write_inferior_integer, write_inferior_int8)
1416 (write_inferior_uinteger, m_tracepoint_action_download)
1417 (r_tracepoint_action_download, x_tracepoint_action_download)
1418 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1419 (download_agent_expr, download_tracepoint_1)
1420 (download_trace_state_variables, upload_fast_traceframes): Update.
1421 * server.c (gdb_write_memory): Update.
1422 * remote-utils.c (relocate_instruction): Update.
1423 * proc-service.c (ps_pdwrite): Update.
1424 * mem-break.c (remove_memory_breakpoint)
1425 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1426 (uninsert_fast_tracepoint_jumps_at)
1427 (reinsert_fast_tracepoint_jumps_at): Update.
1428 * linux-x86-low.c (append_insns)
1429 (i386_install_fast_tracepoint_jump_pad)
1430 (amd64_write_goto_address, i386_write_goto_address): Update.
1431 * linux-s390-low.c (append_insns, s390_write_goto_address):
1432 Update.
1433 * linux-ppc-low.c (ppc_relocate_instruction)
1434 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1435 (ppc_write_goto_address): Update.
1436 * linux-aarch64-low.c (append_insns): Update.
1437 * target.h (struct target_ops): Update.
1438 (write_inferior_memory): Don't declare.
1439 * target.c (target_write_memory): Rename from
1440 write_inferior_memory. Remove old target_write_memory.
1441
1442 2019-08-15 Tom Tromey <tromey@adacore.com>
1443
1444 * target.c (write_inferior_memory): Use std::vector.
1445
1446 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1447
1448 PR build/24886
1449 * configure.ac: Drop enable-libmcheck support.
1450 * configure, config.in: Rebuild.
1451 * acinclude.m4: Don't include it.
1452
1453 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1454
1455 * configure.srv: Remove Arm xml files.
1456
1457 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1458
1459 * configure.srv: Add new files. Remove xml generated files.
1460 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1461 registers.
1462 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1463 * linux-aarch32-tdesc.c: New file.
1464 * linux-aarch32-tdesc.h: New file.
1465 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1466 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1467 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1468 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1469 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1470 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1471 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1472 (arm_read_description): Call arm_linux_read_description.
1473 (initialize_low_arch): Don't init registers.
1474 * linux-arm-tdesc.c: New file.
1475 * linux-arm-tdesc.h: New file.
1476
1477 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1478
1479 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
1480 Move counter inside for.
1481 (arm_read_description): Check ptrace earlier.
1482 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
1483
1484 2019-07-09 Tom Tromey <tom@tromey.com>
1485
1486 * configure: Rebuild.
1487 * configure.ac: Change common to gdbsupport.
1488 * acinclude.m4: Change common to gdbsupport.
1489 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
1490 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
1491 common to gdbsupport.
1492 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
1493 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
1494 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
1495 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
1496 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
1497 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
1498 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
1499 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
1500 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
1501 common to gdbsupport.
1502
1503 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1504
1505 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
1506 defines.
1507 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
1508
1509 2019-07-04 Alan Hayward <alan.hayward@arm.com>
1510
1511 * configure.srv: Remove legacy xml.
1512 * linux-aarch64-low.c (initialize_low_arch): Remove
1513 initialize_low_tdesc call.
1514 * linux-aarch64-tdesc-selftest.c: Remove file.
1515 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
1516 * linux-x86-low.c (initialize_low_arch): Remove
1517 initialize_low_tdesc call.
1518 * linux-x86-tdesc-selftest.c: Remove file.
1519 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
1520
1521 2019-06-20 Tom de Vries <tdevries@suse.de>
1522
1523 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
1524 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
1525
1526 2019-06-19 Tom de Vries <tdevries@suse.de>
1527
1528 * debug.h (debug_write): Change return type to ssize_t.
1529 * debug.c (debug_write): Same.
1530
1531 2019-06-14 Tom Tromey <tom@tromey.com>
1532
1533 * configure.ac: Use new path to gnulib.
1534 * configure: Rebuild.
1535 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1536 to gnulib.
1537
1538 2019-06-11 Tom Tromey <tom@tromey.com>
1539
1540 * Makefile.in (SFILES): Add alloc.c.
1541 (OBS): Add alloc.o.
1542 (IPA_OBJS): Add alloc-ipa.o.
1543 (alloc-ipa.o): New target.
1544 (%.o: ../%.c): New pattern rule.
1545
1546 2019-06-10 Tom Tromey <tromey@adacore.com>
1547
1548 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1549 end warning with a newline.
1550 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1551 newline.
1552 * thread-db.c (attach_thread): Don't end warning with a newline.
1553 (thread_db_notice_clone): Likewise.
1554 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1555 newline.
1556 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1557 end warning with a newline.
1558
1559 2019-06-04 Pedro Alves <palves@redhat.com>
1560
1561 * server.c (captured_main): Use make_unique_xstrdup.
1562
1563 2019-06-02 Tom Tromey <tom@tromey.com>
1564
1565 * gdbreplay.c (fromhex): Remove.
1566 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1567
1568 2019-05-29 Tom Tromey <tromey@adacore.com>
1569
1570 * configure: Rebuild.
1571
1572 2019-05-06 Kevin Buettner <kevinb@redhat.com>
1573
1574 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1575 sign extension code on 32-bit builds.
1576
1577 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1578
1579 * remote-utils.c:
1580 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1581
1582 2019-04-19 Tom Tromey <tom@tromey.com>
1583
1584 * server.c (struct vstop_notif): Derive from notif_event.
1585 <base>: Remove.
1586 (queue_stop_reply): Update.
1587 (remove_all_on_match_ptid): Change type. Rewrite.
1588 (discard_queued_stop_replies): Rewrite.
1589 (in_queued_stop_replies_ptid): Change type.
1590 (in_queued_stop_replies): Rewrite.
1591 (notif_stop): Update.
1592 (queue_stop_reply_callback): Update.
1593 (captured_main): Don't call initialize_notif.
1594 (push_stop_notification): Update.
1595 * notif.c (notif_write_event, handle_notif_ack)
1596 (notif_event_enque, notif_push): Update.
1597 (notif_event_xfree, initialize_notif): Remove.
1598 * notif.h (struct notif_event): Include <list>, not
1599 "common/queue.h".
1600 (struct notif_server) <queue>: Now a std::list.
1601 (notif_event_p): Remove typedef.
1602 (initialize_notif): Don't declare.
1603 (struct notif_event): Add virtual destructor.
1604
1605 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1606
1607 * ax.c (ax_vdebug): Call debug_printf.
1608 * debug.c (debug_write): New function.
1609 * debug.h (debug_write): New declaration.
1610 * linux-low.c (sigchld_handler): Call debug_write.
1611
1612 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1613
1614 * debug.c (debug_set_output): New function.
1615 (debug_vprintf): Send output to debug_file.
1616 (debug_flush): Likewise.
1617 * debug.h (debug_set_output): New declaration.
1618 * server.c (handle_monitor_command): Add debug-file option.
1619 (captured_main): Likewise.
1620
1621 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1622
1623 * debug.c (remote_debug): Add definition.
1624 * debug.h (remote_debug): Add declaration.
1625 * hostio.c (remote_debug): Remove declaration.
1626 * remote-utils.c (struct ui_file): Likewise.
1627 (remote_debug): Likewise.
1628 * remote-utils.h (remote_debug): Likewise,
1629 * server.c (remote_debug): Remove definition.
1630
1631 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1632
1633 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1634 when using a 64-bit gdbserver.
1635
1636 2019-04-09 Tom Tromey <tromey@adacore.com>
1637
1638 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1639
1640 2019-04-08 Tom Tromey <tom@tromey.com>
1641
1642 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1643 throw.
1644 (linux_resume_one_lwp): Likewise.
1645
1646 2019-04-08 Tom Tromey <tom@tromey.com>
1647
1648 * gdbreplay.c: Update.
1649 * linux-low.c: Update.
1650 * server.c: Update.
1651
1652 2019-04-08 Tom Tromey <tom@tromey.com>
1653
1654 * server.c: Use C++ exception handling.
1655 * linux-low.c: Use C++ exception handling.
1656 * gdbreplay.c: Use C++ exception handling.
1657
1658 2019-04-08 Tom Tromey <tom@tromey.com>
1659
1660 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1661 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1662 (captured_main, main): Update.
1663 * gdbreplay.c (main): Update.
1664
1665 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1666
1667 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1668 value in argument pointer, return 1 if the entry is found and 0
1669 otherwise. Move comment.
1670 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1671 * linux-low.h (linux_get_auxv): Declare.
1672 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1673
1674 2019-04-05 Tom Tromey <tromey@adacore.com>
1675
1676 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1677 variables.
1678
1679 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1680
1681 * linux-low.c (AT_HWCAP2): Add define if not already included.
1682
1683 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1684
1685 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1686 (aarch64_arch_setup): Call linux_get_hwcap.
1687 * linux-arm-low.c (arm_get_hwcap): Remove function.
1688 (arm_read_description): Call linux_get_hwcap.
1689 * linux-low.c (linux_get_auxv): New function.
1690 (linux_get_hwcap): Likewise.
1691 (linux_get_hwcap2): Likewise.
1692 * linux-low.h (linux_get_hwcap): New declaration.
1693 (linux_get_hwcap2): Likewise.
1694 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1695 (ppc_arch_setup): Call linux_get_hwcap.
1696 * linux-s390-low.c (s390_get_hwcap): Remove function.
1697 (s390_arch_setup): Call linux_get_hwcap.
1698
1699 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1700 Jiong Wang <jiong.wang@arm.com>
1701
1702 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1703 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1704 to fail.
1705 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1706
1707 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1708 Jiong Wang <jiong.wang@arm.com>
1709
1710 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1711 (aarch64_get_hwcap): New function.
1712 (aarch64_arch_setup): Read APIA hwcap.
1713
1714 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1715 Jiong Wang <jiong.wang@arm.com>
1716
1717 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1718 (initialize_low_tracepoint): Likewise.
1719 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1720 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1721 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1722 (aarch64_linux_read_description): Likewise.
1723 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1724
1725 2019-03-12 John Baldwin <jhb@FreeBSD.org>
1726
1727 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1728 i386_create_target_description for 'segments' parameter.
1729 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1730 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1731 * win32-i386-low.c (i386_arch_setup): Likewise.
1732
1733 2019-03-12 Tom Tromey <tromey@adacore.com>
1734
1735 * linux-low.c (iterate_over_lwps): Update.
1736
1737 2019-03-06 Tom Tromey <tom@tromey.com>
1738
1739 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1740 (captured_main): Use SCOPE_EXIT.
1741
1742 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1743
1744 * configure.srv: Use '$enable_unittest' instead of '$development'
1745 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1746 case.
1747
1748 2019-02-27 Tom Tromey <tromey@adacore.com>
1749
1750 * gdbreplay.c (logchar): Handle \r\n.
1751
1752 2019-02-07 Alan Hayward <alan.hayward@arm.com>
1753
1754 * linux-low.c (linux_attach): Add process before lwp.
1755 * server.c (attach_inferior): Check if already attached.
1756
1757 2019-02-07 Tom Tromey <tom@tromey.com>
1758
1759 * x86-tdesc.h: Rename include guard.
1760 * x86-low.h: Add include guard.
1761 * wincecompat.h: Rename include guard.
1762 * win32-low.h: Add include guard.
1763 * utils.h: Rename include guard.
1764 * tracepoint.h: Rename include guard.
1765 * tdesc.h: Rename include guard.
1766 * target.h: Rename include guard.
1767 * server.h: Rename include guard.
1768 * remote-utils.h: Rename include guard.
1769 * regcache.h: Rename include guard.
1770 * nto-low.h: Rename include guard.
1771 * notif.h: Add include guard.
1772 * mem-break.h: Rename include guard.
1773 * lynx-low.h: Add include guard.
1774 * linux-x86-tdesc.h: Add include guard.
1775 * linux-s390-tdesc.h: Add include guard.
1776 * linux-ppc-tdesc-init.h: Add include guard.
1777 * linux-low.h: Add include guard.
1778 * linux-aarch64-tdesc.h: Add include guard.
1779 * linux-aarch32-low.h: Add include guard.
1780 * inferiors.h: Rename include guard.
1781 * i387-fp.h: Rename include guard.
1782 * hostio.h: Rename include guard.
1783 * gdbthread.h: Rename include guard.
1784 * gdb_proc_service.h: Rename include guard.
1785 * event-loop.h: Rename include guard.
1786 * dll.h: Rename include guard.
1787 * debug.h: Rename include guard.
1788 * ax.h: Rename include guard.
1789
1790 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1791
1792 PR gdb/23985
1793 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1794 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1795
1796 2019-01-25 Tom Tromey <tom@tromey.com>
1797
1798 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1799
1800 2019-01-25 Tom Tromey <tom@tromey.com>
1801
1802 * win32-low.c: Fix common/ includes.
1803 * win32-i386-low.c: Fix common/ includes.
1804 * tracepoint.c: Fix common/ includes.
1805 * thread-db.c: Fix common/ includes.
1806 * target.h: Fix common/ includes.
1807 * symbol.c: Fix common/ includes.
1808 * spu-low.c: Fix common/ includes.
1809 * server.h: Fix common/ includes.
1810 * server.c: Fix common/ includes.
1811 * remote-utils.c: Fix common/ includes.
1812 * regcache.h: Fix common/ includes.
1813 * regcache.c: Fix common/ includes.
1814 * nto-x86-low.c: Fix common/ includes.
1815 * notif.h: Fix common/ includes.
1816 * mem-break.h: Fix common/ includes.
1817 * lynx-low.c: Fix common/ includes.
1818 * lynx-i386-low.c: Fix common/ includes.
1819 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1820 * linux-x86-low.c: Fix common/ includes.
1821 * linux-low.c: Fix common/ includes.
1822 * inferiors.h: Fix common/ includes.
1823 * i387-fp.c: Fix common/ includes.
1824 * hostio.c: Fix common/ includes.
1825 * hostio-errno.c: Fix common/ includes.
1826 * gdbthread.h: Fix common/ includes.
1827 * gdbreplay.c: Fix common/ includes.
1828 * fork-child.c: Fix common/ includes.
1829 * event-loop.c: Fix common/ includes.
1830 * ax.c:
1831 (enum gdb_agent_op): Fix common/ includes.
1832
1833 2019-01-21 Tom Tromey <tom@tromey.com>
1834
1835 * tracepoint.c: Fix includes.
1836 * remote-utils.c: Fix includes.
1837 * linux-x86-low.c: Fix includes.
1838
1839 2019-01-01 Joel Brobecker <brobecker@adacore.com>
1840
1841 * gdbreplay.c (gdbreplay_version): Update copyright year in
1842 version message.
1843 * server.c (gdbserver_version): Likewise.
1844
1845 2018-12-05 Alan Hayward <alan.hayward@arm.com>
1846
1847 * linux-low.c (add_lwp): Switch ordering.
1848
1849 2018-11-29 Tom Tromey <tom@tromey.com>
1850
1851 * win32-low.c (win32_join): Take pid, not process.
1852 * target.h (struct target_ops) <join>: Change argument type.
1853 (join_inferior): Change argument name.
1854 * spu-low.c (spu_join): Take pid, not process.
1855 * server.c (handle_detach): Preserve pid before destroying
1856 process.
1857 * lynx-low.c (lynx_join): Take pid, not process.
1858 * linux-low.c (linux_join): Take pid, not process.
1859
1860 2018-11-23 Alan Hayward <alan.hayward@arm.com>
1861
1862 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1863 (aarch64_cannot_fetch_register): Likewise.
1864 (struct linux_target_ops): Update references.
1865
1866 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1867
1868 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1869
1870 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1871
1872 * configure.srv (ipa_ppc_linux_regobj): Add
1873 powerpc-isa207-htm-vsx32l-ipa.o and
1874 powerpc-isa207-htm-vsx64l-ipa.o.
1875 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1876 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1877 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1878 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1879 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1880 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1881 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1882 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1883 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1884 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1885 (init_registers_powerpc_isa207_htm_vsx32l)
1886 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1887 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1888 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1889 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1890 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1891 (ppc_store_tm_ctarregset): New functions.
1892 (ppc_regsets): Add entries for HTM regsets.
1893 (ppc_arch_setup): Set htm in features struct when needed. Set
1894 sizes for the HTM regsets.
1895 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1896 (initialize_low_arch): Call
1897 init_registers_powerpc_isa207_htm_vsx32l and
1898 init_registers_powerpc_isa207_htm_vsx64l.
1899 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1900 PPC_TDESC_ISA207_HTM_VSX.
1901 (initialize_low_tracepoint): Call
1902 init_registers_powerpc_isa207_htm_vsx32l and
1903 init_registers_powerpc_isa207_htm_vsx64l.
1904
1905 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1906
1907 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
1908 rs6000/power-linux-pmu.xml to srv_xmlfiles.
1909 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
1910 (ppc_store_pmuregset): New functions.
1911 (ppc_regsets): Add entries for ebb and pmu regsets.
1912 (ppc_arch_setup): Set isa207 in features struct if the ebb and
1913 pmu regsets are available. Set sizes for these regsets.
1914
1915 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1916
1917 * configure.srv (ipa_ppc_linux_regobj): Add
1918 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
1919 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
1920 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
1921 rs6000/powerpc-isa207-vsx32l.xml, and
1922 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
1923 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1924 <PPC_TDESC_ISA207_VSX>: New enum value.
1925 (init_registers_powerpc_isa207_vsx32l): Declare.
1926 (init_registers_powerpc_isa207_vsx64l): Declare.
1927 * linux-ppc-low.c (ppc_fill_tarregset): New function.
1928 (ppc_store_tarregset): New function.
1929 (ppc_regsets): Add entry for the TAR regset.
1930 (ppc_arch_setup): Set isa207 in features struct when needed. Set
1931 size for the TAR regsets.
1932 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
1933 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
1934 and init_registers_powerpc_isa207_vsx64l.
1935 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
1936 (initialize_low_tracepoint): Call
1937 init_registers_powerpc_isa207_vsx32l and
1938 init_registers_powerpc_isa207_vsx64l.
1939
1940 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1941 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1942
1943 * configure.srv (ipa_ppc_linux_regobj): Add
1944 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1945 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1946 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1947 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1948 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1949 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1950 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1951 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1952 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1953 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1954 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1955 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1956 (ppc_hwcap): Add comment.
1957 (ppc_hwcap2): New global.
1958 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1959 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1960 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1961 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1962 when needed. Set sizes for the the DSCR and PPR regsets.
1963 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1964 (initialize_low_arch): Call
1965 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1966 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1967 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1968 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1969 (initialize_low_tracepoint): Call
1970 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1971 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1972
1973 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1974
1975 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1976
1977 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1978 Simon Marchi <simark@simark.ca>
1979
1980 * acinclude.m4: Include "../selftest.m4".
1981 * configure: Regenerate.
1982 * configure.ac: Use "GDB_AC_SELFTEST".
1983 * configure.srv: Use "$enable_unittests" instead of
1984 "$development" when checking whether unit tests have been
1985 enabled.
1986 * server.c (captured_main): Update message informing that
1987 selftests have been disabled.
1988
1989 2018-10-04 Tom Tromey <tom@tromey.com>
1990
1991 * configure: Rebuild.
1992
1993 2018-10-04 Tom Tromey <tom@tromey.com>
1994
1995 * server.c (handle_status): Rename inner "thread".
1996 (process_serial_event): Declare "res" in 'm' case.
1997 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1998 (iterate_over_lwps): Rename inner "thread".
1999 (linux_qxfer_libraries_svr4): Rename inner "len".
2000 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2001
2002 2018-10-01 Gary Benson <gbenson@redhat.com>
2003
2004 * gdb_proc_service.h: Moved common code to
2005 common/gdb_proc_service.h.
2006
2007 2018-10-01 Gary Benson <gbenson@redhat.com>
2008
2009 * gdb_proc_service.h: Synchronize comments and whitespace with
2010 GDB's version of this file.
2011
2012 2018-09-25 Tom Tromey <tom@tromey.com>
2013
2014 * configure: Rebuild.
2015 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2016
2017 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2020 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2021 ($(IPA_LIB)): Sort IPA_OBJS.
2022
2023 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * Makefile.in: Remove references to $(ADD_DEPS).
2026
2027 2018-09-16 Tom Tromey <tom@tromey.com>
2028
2029 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2030 variables.
2031 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2032 variables.
2033
2034 2018-09-05 Tom Tromey <tom@tromey.com>
2035
2036 * configure: Rebuild.
2037
2038 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 PR build/23399
2041 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2042
2043 2018-08-27 Tom Tromey <tom@tromey.com>
2044
2045 PR build/23087:
2046 * configure: Rebuild.
2047
2048 2018-08-27 Tom Tromey <tom@tromey.com>
2049
2050 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2051 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2052 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2053 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2054 (s390x_emit_stack_adjust): Add casts to unsigned char.
2055
2056 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2057
2058 PR gdb/23374
2059 PR gdb/23375
2060 * server.h (struct client_state) <disable_randomization>:
2061 Initialize to 1.
2062
2063 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2064
2065 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2066 variable.
2067 (mips_supply_ptrace_register): Likewise.
2068
2069 2018-07-22 Tom Tromey <tom@tromey.com>
2070
2071 * configure: Rebuild.
2072
2073 2018-07-22 Tom Tromey <tom@tromey.com>
2074
2075 * win32-low.c (win32_create_inferior): Remove unused variables.
2076 * gdbreplay.c (remote_open): Remove unused variable.
2077 * remote-utils.c (remote_prepare): Remove unused variable.
2078 * x86-tdesc.h (X86_TDESC_H): Define.
2079 (amd64_expedite_regs): Define conditionally.
2080 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2081 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2082 * remote-utils.c (readchar): Remove unused variable.
2083
2084 2018-07-13 Pedro Alves <palves@redhat.com>
2085
2086 * linux-low.c (linux_kill): Change parameter to process_info
2087 pointer instead of pid. Adjust.
2088 * lynx-low.c (lynx_kill): Likewise.
2089 * nto-low.c (nto_kill): Likewise.
2090 * spu-low.c (spu_kill): Likewise.
2091 * win32-low.c (win32_kill): Likewise.
2092 * server.c (handle_v_kill, kill_inferior_callback)
2093 (detach_or_kill_for_exit): Adjust.
2094 * target.c (kill_inferior): Change parameter to process_info
2095 pointer instead of pid. Adjust.
2096 * target.h (struct target_ops) <kill>: Change parameter to
2097 process_info pointer instead of pid. Adjust all implementations
2098 and callers.
2099 (kill_inferior): Likewise.
2100
2101 2018-07-13 Pedro Alves <palves@redhat.com>
2102
2103 * linux-low.c (linux_detach, linux_join): Change parameter to
2104 process_info pointer instead of pid. Adjust.
2105 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2106 * nto-low.c (nto_detach): Likewise.
2107 * spu-low.c (spu_detach, spu_join): Likewise.
2108 * win32-low.c (win32_detach, win32_join): Likewise.
2109 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2110 * target.h (struct target_ops) <detach, join>: Change parameter to
2111 process_info pointer instead of pid. Adjust all implementations
2112 and callers.
2113 (detach_inferior, join_inferior): Rename 'pid' parameter to
2114 'proc'.
2115
2116 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2117 Jan Kratochvil <jan.kratochvil@redhat.com>
2118 Paul Fertser <fercerpav@gmail.com>
2119 Tsutomu Seki <sekiriki@gmail.com>
2120
2121 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2122 (OBS): Add 'common/netstuff.o'.
2123 (GDBREPLAY_OBS): Likewise.
2124 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2125 (remote_open): Implement support for IPv6
2126 connections.
2127 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2128 and 'wspiapi.h'.
2129 (handle_accept_event): Accept connections from IPv6 sources.
2130 (remote_prepare): Handle IPv6-style hostnames; implement
2131 support for IPv6 connections.
2132 (remote_open): Implement support for printing connections from
2133 IPv6 sources.
2134
2135 2018-07-11 Pedro Alves <palves@redhat.com>
2136
2137 PR gdb/23377
2138 * mem-break.c (any_persistent_commands): Add process_info
2139 parameter and use it instead of relying on the current process.
2140 Change return type to bool.
2141 * mem-break.h (any_persistent_commands): Add process_info
2142 parameter and change return type to bool.
2143 * server.c (handle_detach): Remove require_running_or_return call.
2144 Look up the process_info for the process we're about to detach.
2145 If not found, return back error to GDB. Adjust
2146 any_persistent_commands call to pass down a process pointer.
2147
2148 2018-07-11 Pedro Alves <palves@redhat.com>
2149
2150 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2151 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2152 instead of collect_register_by_name.
2153 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2154 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2155
2156 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2157 Pedro Alves <palves@redhat.com>
2158
2159 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2160
2161 2018-07-03 Tom Tromey <tom@tromey.com>
2162
2163 * linux-low.c: Update.
2164 * lynx-low.c: Update.
2165 * mem-break.c: Update.
2166 * nto-low.c: Update.
2167 * remote-utils.c: Update.
2168 * server.c: Update.
2169 * spu-low.c: Update.
2170 * target.c: Update.
2171 * win32-low.c: Update.
2172
2173 2018-07-03 Tom Tromey <tom@tromey.com>
2174
2175 * server.c: Update.
2176
2177 2018-07-03 Tom Tromey <tom@tromey.com>
2178
2179 * linux-low.c: Update.
2180
2181 2018-07-03 Tom Tromey <tom@tromey.com>
2182
2183 * target.c: Update.
2184
2185 2018-07-03 Tom Tromey <tom@tromey.com>
2186
2187 * linux-low.c: Update.
2188 * linux-mips-low.c: Update.
2189 * lynx-low.c: Update.
2190 * nto-low.c: Update.
2191 * remote-utils.c: Update.
2192 * server.c: Update.
2193 * spu-low.c: Update.
2194 * target.c: Update.
2195 * thread-db.c: Update.
2196
2197 2018-07-03 Tom Tromey <tom@tromey.com>
2198
2199 * linux-low.c: Update.
2200 * linux-mips-low.c: Update.
2201 * lynx-low.c: Update.
2202 * mem-break.c: Update.
2203 * nto-low.c: Update.
2204 * remote-utils.c: Update.
2205 * server.c: Update.
2206 * spu-low.c: Update.
2207 * target.c: Update.
2208 * tracepoint.c: Update.
2209
2210 2018-07-03 Tom Tromey <tom@tromey.com>
2211
2212 * linux-low.c: Update.
2213 * linux-ppc-low.c: Update.
2214 * linux-x86-low.c: Update.
2215 * proc-service.c: Update.
2216 * server.c: Update.
2217 * spu-low.c: Update.
2218 * thread-db.c: Update.
2219 * win32-low.c: Update.
2220
2221 2018-07-03 Tom Tromey <tom@tromey.com>
2222
2223 * linux-low.c: Update.
2224 * lynx-low.c: Update.
2225 * nto-low.c: Update.
2226 * remote-utils.c: Update.
2227 * spu-low.c: Update.
2228 * thread-db.c: Update.
2229 * win32-low.c: Update.
2230
2231 2018-06-29 Joel Brobecker <brobecker@adacore.com>
2232
2233 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2234 parameter in call to 'amd64_create_target_description'.
2235
2236 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2237
2238 * x86-tdesc.h: Remove executable permission flag.
2239
2240 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2241
2242 * configure.ac: Remove AC_PREREQ, add missing quoting.
2243 * configure: Re-generate.
2244 * config.in: Re-generate.
2245 * aclocal.m4: Re-generate.
2246
2247 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2248
2249 * tracepoint.h (current_traceframe): Remove declaration.
2250
2251 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2252
2253 * linux-aarch64-low.c (is_sve_tdesc): New function.
2254 (aarch64_sve_regs_copy_to_regcache): Likewise.
2255 (aarch64_sve_regs_copy_from_regcache): Likewise.
2256 (aarch64_regs_info): Add SVE checks.
2257 (initialize_low_arch): Initialize SVE.
2258
2259 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2260
2261 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2262
2263 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2264
2265 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2266 (initialize_low_tracepoint): Likewise
2267 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2268 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2269 param.
2270 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2271 checks.
2272 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2273
2274 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2275
2276 * server.h (PBUFSIZ): Increase size
2277
2278 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2279
2280 * regcache.c (regcache::raw_compare): New function.
2281 * regcache.h (regcache::raw_compare): New declaration.
2282
2283 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2284
2285 * regcache.c (new_register_cache): Use new.
2286 (free_register_cache): Use delete.
2287 (register_data): Use const.
2288 (supply_register): Move body inside regcache.
2289 (regcache::raw_supply): New override function.
2290 (collect_register): Move body inside regcache.
2291 (regcache::raw_collect): New override function.
2292 (regcache::get_register_status): New override function.
2293 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2294
2295 2018-06-09 Tom Tromey <tom@tromey.com>
2296
2297 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2298 declare queue.
2299 (event_queue): Use std::queue.
2300 (gdb_event_xfree): Remove.
2301 (initialize_event_loop, process_event, wait_for_event): Update.
2302
2303 2018-06-08 Stan Cox <scox@redhat.com>
2304
2305 * win32-low.c (win32_create_inferior): last_ptid and last_status
2306 moved to client_state.
2307
2308 2018-06-08 Pedro Alves <palves@redhat.com>
2309
2310 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2311 common/common-exceptions.o, common/common-utils.o,
2312 common/errors.o, common/print-utils.o and utils.o.
2313 * gdbreplay.c: Include "common-defs.h" instead of the two
2314 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2315 string.h or alloca.h.
2316 (perror_with_name): Delete.
2317 (remote_open): Use xstrdup instead of strdup.
2318 (main): Rename to ...
2319 (captured_main): ... this.
2320 (main): New.
2321
2322 2018-06-08 Tom Tromey <tom@tromey.com>
2323
2324 * linux-low.c (linux_low_read_btrace): Update.
2325
2326 2018-06-04 Stan Cox <scox@redhat.com>
2327
2328 * server.h (struct client_state): New.
2329 * server.c (cont_thread, general_thread, multi_process)
2330 (report_fork_events, report_vfork_events, report_exec_events)
2331 (report_thread_events, swbreak_feature, hwbreak_feature)
2332 (vCont_supported, disable_randomization, pass_signals)
2333 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2334 Moved to client_state.
2335 * remote-utils.c (remote_debug, noack_mode)
2336 (transport_is_reliable): Moved to client_state.
2337 * tracepoint.c (current_traceframe): Moved to client_state.
2338
2339 Update all callers.
2340 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2341 linux-low.c, remote-utils.h, target.c: Use client_state.
2342
2343 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2344
2345 * configure.srv: Add new c/h file.
2346
2347 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2348
2349 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2350 null VQ.
2351
2352 2018-05-25 Maciej W. Rozycki <macro@mips.com>
2353
2354 * gdb.arch/mips-fpregset-core.exp: New test.
2355 * gdb.arch/mips-fpregset-core.c: New test source.
2356
2357 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2358
2359 PR server/23198
2360 * hostio.c (require_int): Do not report overflow for integers
2361 between 0xfffffff and 0x7fffffff.
2362
2363 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2364
2365 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2366 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2367 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2368 functions.
2369 (the_low_target): Wire them.
2370
2371 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2372
2373 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2374 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2375 mode. Call collect_register_by_name with vscr using
2376 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2377 (ppc_store_vrregset): Add and set vscr_offset variable as in
2378 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2379 vscr_offset.
2380
2381 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2382
2383 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2384 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2385 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2386
2387 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2388
2389 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2390 (ppc_store_vsxregset): Likewise.
2391 (ppc_fill_vrregset): Likewise.
2392 (ppc_store_vrregset): Likewise.
2393 (ppc_fill_evrregset): Likewise.
2394 (ppc_store_evrregset): Likewise.
2395 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2396 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2397 needed.
2398
2399 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2400
2401 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2402 wordsize of the inferior. Call ppc_linux_target_wordsize.
2403
2404 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2405
2406 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2407 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2408 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2409 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2410 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2411 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2412 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2413 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2414 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2415 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2416 (tdesc_powerpc_e500l): Remove.
2417 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2418 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2419 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2420 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2421 linux-ppc-tdesc.h.
2422 (ppc_arch_setup): Remove target description matching code. Fill a
2423 ppc_linux_features struct and call ppc_linux_match_description
2424 with it.
2425
2426 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2427
2428 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2429 width of the requested register exceeds the width of the
2430 `ptrace' data type.
2431 (mips_cannot_store_register): Likewise.
2432
2433 2018-05-21 Maciej W. Rozycki <macro@mips.com>
2434
2435 * linux-mips-low.c (mips_fetch_register): New function. Update
2436 preceding comment.
2437 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2438 (the_low_target): Wire `mips_fetch_register'.
2439
2440 2018-05-10 Joel Brobecker <brobecker@adacore.com>
2441
2442 * lynx-i386-low.c (LYNXOS_178): New macro.
2443 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2444 the layout on LynxOS-178.
2445 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2446 handle floating point registers that are not supported by
2447 LynxOS-178.
2448
2449 2018-05-10 Tom Tromey <tom@tromey.com>
2450
2451 * configure: Rebuild.
2452
2453 2018-05-10 Joel Brobecker <brobecker@adacore.com>
2454
2455 PR server/23158:
2456 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2457 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2458 Use it to set the expedite_regs field in the given tdesc.
2459 * x86-tdesc.h: New file.
2460 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2461 Adjust following the addition of the new expedite_regs parameter
2462 to init_target_desc.
2463 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2464 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2465 (i386_linux_read_description, amd64_linux_read_description):
2466 Adjust following the addition of the new expedite_regs parameter
2467 to init_target_desc.
2468 * lynx-i386-low.c: #include "x86-tdesc.h".
2469 (lynx_i386_arch_setup): Adjust following the addition of the new
2470 expedite_regs parameter to init_target_desc.
2471 * nto-x86-low.c: #include "x86-tdesc.h".
2472 (nto_x86_arch_setup): Adjust following the addition of the new
2473 expedite_regs parameter to init_target_desc.
2474 * win32-i386-low.c: #include "x86-tdesc.h".
2475 (i386_arch_setup): Adjust following the addition of the new
2476 expedite_regs parameter to init_target_desc.
2477
2478 2018-05-10 Joel Brobecker <brobecker@adacore.com>
2479
2480 PR server/23158:
2481 * win32-low.c (win32_create_inferior): Add call to my_wait
2482 setting last_status global.
2483
2484 2018-05-10 Joel Brobecker <brobecker@adacore.com>
2485
2486 PR server/23158:
2487 * win32-low.c (create_process): Only call gdb_tilde_expand if
2488 inferior_cwd is not NULL.
2489
2490 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
2493 registers to the cache if their values have changed.
2494 (i387_xsave_to_cache): Provide default values for x87 control
2495 registers when these features are available, but disabled.
2496 * regcache.c (supply_register_by_name_zeroed): New function.
2497 * regcache.h (supply_register_by_name_zeroed): Declare new
2498 function.
2499
2500 2018-05-07 Tom Tromey <tom@tromey.com>
2501
2502 * configure: Rebuild.
2503
2504 2018-05-04 Tom Tromey <tom@tromey.com>
2505
2506 * configure: Rebuild.
2507
2508 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2509 Pedro Alves <palves@redhat.com>
2510
2511 * linux-aarch64-low.c (aarch64_stopped_data_address):
2512 Likewise.
2513
2514 2018-04-27 Tom Tromey <tom@tromey.com>
2515
2516 * configure: Rebuild.
2517
2518 2018-04-23 Tom Tromey <tom@tromey.com>
2519
2520 * configure: Rebuild.
2521
2522 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
2523
2524 * Makefile.in (depcomp): Add "..".
2525 (all_deps_files): New and use it.
2526
2527 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2528
2529 * configure.srv (aarch64*-*-linux*): Don't include xml.
2530 (i[34567]86-*-cygwin*): Likewise.
2531 (i[34567]86-*-linux*): Likewise.
2532 (i[34567]86-*-lynxos*): Likewise.
2533 (i[34567]86-*-mingw32ce*): Likewise.
2534 (i[34567]86-*-mingw*): Likewise.
2535 (i[34567]86-*-nto*): Likewise.
2536 (tic6x-*-uclinux): Likewise.
2537 (x86_64-*-linux*): Likewise.
2538 (x86_64-*-mingw*): Likewise.
2539 (x86_64-*-cygwin*): Likewise.
2540
2541 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2542
2543 * tdesc.c: Remove xml parameter.
2544
2545 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2546
2547 * server.c (get_features_xml): Remove cast.
2548 * tdesc.c (void target_desc::accept): Fill in function.
2549 (tdesc_get_features_xml): Remove old xml creation.
2550 (print_xml_feature::visit_pre): Add xml vistor.
2551 * tdesc.h (struct target_desc): Make xmltarget mutable.
2552 (tdesc_get_features_xml): Remove declaration.
2553
2554 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2555
2556 * tdesc.c (tdesc_architecture_name): Add new function.
2557 (tdesc_osabi_name): Likewise.
2558 (tdesc_get_features_xml): Use new functions.
2559
2560 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2561
2562 * tdesc.c (tdesc_create_flags): Remove.
2563 (tdesc_add_flag): Likewise.
2564 (tdesc_named_type): Likewise.
2565 (tdesc_create_union): Likewise.
2566 (tdesc_create_struct): Likewise.
2567 (tdesc_create_vector): Likewise.
2568 (tdesc_add_bitfield): Likewise.
2569 (tdesc_add_field): Likewise.
2570 (tdesc_set_struct_size): Likewise.
2571
2572 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2573
2574 * tdesc.c (~target_desc): Remove implictly deleted items.
2575 (init_target_desc): Iterate all features.
2576 (tdesc_get_features_xml): Use vector.
2577 (tdesc_create_feature): Create feature.
2578 * tdesc.h (tdesc_feature) Remove
2579 (target_desc): Add features.
2580
2581 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2582
2583 * Makefile.in: Add common/tdesc.c
2584 * tdesc.c (init_target_desc): init all reg_defs from register
2585 vector.
2586 (tdesc_create_reg): Create tdesc_reg.
2587 * tdesc.h (tdesc_feature): Add register vector.
2588
2589 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * tdesc.h (struct target_desc) <features>: Change type to
2592 std::vector<std::string>.
2593 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2594 changes.
2595 (tdesc_get_features_xml): Likewise.
2596 (tdesc_create_feature): Likewise.
2597
2598 2018-03-26 Alan Hayward <alan.hayward@arm.com>
2599
2600 * regcache.c (find_register_by_number): Return a ref.
2601 (find_regno): Use references.
2602 (register_size): Likewise.
2603 (register_data): Likewise.
2604 * tdesc.c (target_desc::~target_desc): Remove free calls.
2605 (target_desc::operator==): Use std::vector compare.
2606 (init_target_desc): Use reference.
2607 (tdesc_create_reg): Use reg constructors.
2608 * tdesc.h (struct target_desc): Replace pointer with object.
2609
2610 2018-03-23 Alan Hayward <alan.hayward@arm.com>
2611
2612 * regcache.c (find_register_by_number): Make static.
2613 (find_regno): Use find_register_by_number
2614 * regcache.h (struct reg): Remove declaration.
2615
2616 2018-03-23 Alan Hayward <alan.hayward@arm.com>
2617
2618 * tdesc.c (target_desc::~target_desc): Move to here.
2619 (target_desc::operator==): Likewise.
2620 * tdesc.h (target_desc::~target_desc): Move from here.
2621 (target_desc::operator==): Likewise.
2622
2623 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2624
2625 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2626
2627 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2628
2629 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2630 S390_TDESC_GS.
2631 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2632 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2633 and init_registers_s390_gs_linux64.
2634
2635 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2636
2637 * linux-s390-low.c (s390_fill_gs): Remove function.
2638 (s390_fill_gsbc): Remove function.
2639 (s390_regsets): Set fill functions for the guarded storage regsets
2640 to NULL.
2641
2642 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2643
2644 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2645 the word size. Add comment.
2646 (s390_get_wordsize): New function.
2647 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2648 pswm with it. Instead, use s390_get_wordsize to determine the
2649 word size first and derive the correct tdesc from that directly.
2650
2651 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2652
2653 * Makefile.in: Include silent-rules.mk.
2654 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2655 (COMPILE): Add ECHO_CXX.
2656 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2657 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2658 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2659 (version-generated.c): Add ECHO_GEN.
2660 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2661 (IPAGENT_COMPILE): Add ECHO_CXX.
2662 (%-generated.c): Add ECHO_REGDAT.
2663
2664 2018-03-14 Tom Tromey <tom@tromey.com>
2665
2666 PR cli/14977:
2667 * ax.c (ax_printf): Special case for NULL.
2668
2669 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * linux-low.c (linux_qxfer_libraries_svr4): Use
2672 xml_escape_text_append.
2673
2674 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2675
2676 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2677
2678 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2679
2680 * server.c (handle_general_set): Remove unnecessary xstrdup.
2681
2682 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * server.c (parse_debug_format_options): Adjust to
2685 delim_string_to_char_ptr_vec changes.
2686 * thread-db.c (thread_db_load_search): Adjust to
2687 dirnames_to_char_ptr_vec changes.
2688
2689 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2690
2691 * target.h (target_enable_btrace, target_disable_btrace)
2692 (target_read_btrace, target_read_btrace_conf): Turn macro into
2693 inline function. Throw error if target method is not defined.
2694 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2695 check for btrace target method. Be prepared to handle exceptions
2696 from btrace target methods.
2697
2698 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2699
2700 * server.c (captured_main): Change order of error message printed
2701 when the current working directory cannot be found.
2702
2703 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2704
2705 * server.c: Include "filenames.h" and "pathstuff.h".
2706 (program_name): Delete variable.
2707 (program_path): New anonymous class.
2708 (get_exec_wrapper): Use "program_path" instead of
2709 "program_name".
2710 (handle_v_run): Likewise.
2711 (captured_main): Likewise.
2712 (process_serial_event): Likewise.
2713
2714 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2715
2716 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2717 (OBJS): Add "pathstuff.o".
2718 * server.c (current_directory): New global variable.
2719 (captured_main): Initialize "current_directory".
2720
2721 2018-02-26 Alan Hayward <alan.hayward@arm.com>
2722
2723 * tdesc.c: Use common/tdesc.h.
2724 * tdesc.h: Likewise.
2725
2726 2018-02-20 Alan Hayward <alan.hayward@arm.com>
2727 Simon Marchi <simon.marchi@ericsson.com>
2728
2729 * Makefile.in: Switch order of make rules.
2730
2731 2018-02-19 Alan Hayward <alan.hayward@arm.com>
2732
2733 * Makefile.in: Add common directory in build.
2734 * configure.ac: Add common reference.
2735 * configure: Regenerate.
2736
2737 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2738
2739 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2740 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2741 * spu-low.c (spu_target_ops): Likewise.
2742 * win32-low.c (win32_target_ops): Likewise.
2743 * server.c (supported_btrace_packets): Report packets unconditionally.
2744 * target.h (target_ops) <supports_btrace>: Remove.
2745 (target_supports_btrace): Remove.
2746
2747 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2748
2749 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2750 (handle_btrace_disable): Change return type to void. Use exceptions
2751 to report errors.
2752 (handle_btrace_general_set): Catch exception and copy message to
2753 return message.
2754
2755 2018-02-08 Tom Tromey <tom@tromey.com>
2756
2757 * linux-low.c (install_software_single_step_breakpoints): Use
2758 make_scoped_restore.
2759 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2760 (do_restore_current_thread_cleanup): Remove.
2761 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2762 declare.
2763
2764 2018-02-08 Tom Tromey <tom@tromey.com>
2765
2766 * mem-break.c (set_raw_breakpoint_at): Use
2767 gdb::unique_xmalloc_ptr.
2768
2769 2018-01-30 Pedro Alves <palves@redhat.com>
2770
2771 PR gdb/13211
2772 * target.c (target_terminal::terminal_state): Rename to ...
2773 (target_terminal::m_terminal_state): ... this.
2774
2775 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2776
2777 * linux-low.c (handle_extended_wait): Surround call to
2778 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2779
2780 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2781
2782 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2783 linux_ptrace_attach_fail_reason_string now returning an
2784 std::string.
2785 (linux_attach): Likewise.
2786 * thread-db.c (attach_thread): Likewise.
2787
2788 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2789
2790 PR gdb/21559
2791 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2792 checking for fs_base/gs_base fields in struct user_regs_struct.
2793 * configure: Regenerate.
2794
2795 2018-01-16 Yao Qi <yao.qi@linaro.org>
2796
2797 PR gdb/18749
2798 * linux-low.c (fetch_register): Call supply_register instead of
2799 error.
2800
2801 2018-01-08 Yao Qi <yao.qi@linaro.org>
2802 Simon Marchi <simon.marchi@ericsson.com>
2803
2804 * Makefile.in (OBS): Remove selftest.o.
2805 * configure.ac: Set srv_selftest_objs if $development is true.
2806 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2807 * configure: Re-generated.
2808 * server.c (captured_main): Wrap variable selftest_filter with
2809 GDB_SELF_TEST.
2810
2811 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2812
2813 * server.c (parse_debug_format_options): Return std::string.
2814 (handle_monitor_command, captured_main): Adjust.
2815
2816 2018-01-05 Pedro Alves <palves@redhat.com>
2817
2818 PR gdb/18653
2819 * server.c (captured_main): Pass quiet=false to
2820 save_original_signals_state.
2821
2822 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2823
2824 * gdbreplay.c (gdbreplay_version): Update copyright year in
2825 version message.
2826 * server.c (gdbserver_version): Likewise.
2827
2828 2017-12-08 Tom Tromey <tom@tromey.com>
2829
2830 * ax.c (ax_printf): Update.
2831
2832 2017-12-07 Yao Qi <yao.qi@linaro.org>
2833
2834 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2835 aarch64_linux_read_description.
2836 * linux-amd64-ipa.c (idx2mask): New array.
2837 (get_ipa_tdesc): Move idx2mask out.
2838 (initialize_low_tracepoint): Initialize target descriptions.
2839 * linux-i386-ipa.c (idx2mask): New array.
2840 (get_ipa_tdesc): Move idx2mask out.
2841 (initialize_low_tracepoint): Initialize target descriptions.
2842
2843 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 * tdesc.c (struct tdesc_type): Change return type.
2846 (tdesc_add_flag): Change parameter type.
2847 (tdesc_add_bitfield): Likewise.
2848 (tdesc_add_field): Likewise.
2849 (tdesc_set_struct_size): Likewise.
2850
2851 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2852
2853 * regcache.c (registers_to_string): Remove unused variable.
2854
2855 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * inferiors.c (for_each_inferior_with_data): Remove.
2858 * inferiors.h (for_each_inferior_with_data): Remove.
2859 * server.c (handle_qxfer_threads_worker): Change parameter type.
2860 (handle_qxfer_threads_proper): Use for_each_thread.
2861
2862 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * inferiors.c (for_each_inferior): Remove.
2865 (clear_inferiors): Use for_each_thread.
2866 * inferiors.h (for_each_inferior): Remove.
2867 * linux-low.c (linux_wait_for_event_filtered): Use
2868 for_each_thread.
2869 (linux_stabilize_threads): Likewise.
2870 * regcache.c (regcache_release): Likewise.
2871 * server.c (gdb_wants_all_threads_stopped): Likewise.
2872 (clear_pending_status_callback): Remove.
2873 (handle_status): Use for_each_thread.
2874 (captured_main): Likewise.
2875 * win32-low.c (child_init_thread_list): Likewise.
2876 (win32_clear_inferiors): Likewise.
2877 (fake_breakpoint_event): Likewise.
2878
2879 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2880
2881 * inferiors.h (find_inferior): Remove.
2882 * inferiors.c (find_inferior): Remove.
2883
2884 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2885
2886 * linux-low.c (resume_status_pending_p): Update comment.
2887 (need_step_over_p): Update comment.
2888
2889 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2890
2891 * linux-low.c (proceed_one_lwp): Return void, change parameter
2892 type.
2893 (unsuspend_and_proceed_one_lwp): Likewise.
2894 (proceed_all_lwps): Use for_each_thread.
2895 (unstop_all_lwps): Likewise.
2896
2897 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2898
2899 * linux-low.c (linux_resume_one_thread): Return void, take
2900 parameter directly.
2901 (linux_resume): Use for_each_thread.
2902
2903 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2904
2905 * linux-low.c (send_sigstop_callback): Return void, change
2906 parameter type. Rename to...
2907 (send_sigstop): ... this.
2908 (suspend_and_send_sigstop_callback): Return void, change parameter
2909 type. Rename to...
2910 (suspend_and_send_sigstop): ... this.
2911 (stop_all_lwps): Use for_each_thread.
2912
2913 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2914
2915 * linux-low.c (lwp_running): Return bool, remove unused
2916 argument.
2917 (linux_stabilize_threads): Use find_thread.
2918
2919 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * linux-low.c (select_singlestep_lwp_callback): Remove.
2922 (count_events_callback): Remove.
2923 (select_event_lwp_callback): Remove.
2924 (select_event_lwp): Use find_thread/for_each_thread.
2925
2926 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * linux-low.c (not_stopped_callback): Return bool, take filter
2929 argument directly.
2930 (linux_wait_for_event_filtered): Use find_thread.
2931 (linux_wait_1): Likewise.
2932
2933 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2934
2935 * linux-low.c (same_lwp): Remove.
2936 (find_lwp_pid): Use find_thread.
2937
2938 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * linux-low.c (delete_lwp_callback): Remove.
2941 (linux_mourn): Use for_each_thread.
2942
2943 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2944
2945 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2946 args parameter, don't check for pid.
2947 (linux_detach): Use for_each_thread.
2948
2949 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2950
2951 * linux-low.c (struct counter): Remove.
2952 (second_thread_of_pid_p): Remove.
2953 (last_thread_of_process_p): Use find_thread.
2954
2955 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2956
2957 * inferiors.c (find_inferior_in_random): Remove.
2958 * inferiors.h (find_inferior_in_random): Remove.
2959 * linux-low.c (status_pending_p_callback): Return bool, accept
2960 parameter ptid directly.
2961 (linux_wait_for_event_filtered): Use find_thread_in_random.
2962 (linux_wait_1): Likewise.
2963
2964 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * inferiors.c (find_inferior_id): Remove.
2967 (find_thread_ptid): Move implemention from find_inferior_id to
2968 here.
2969 * inferiors.h (find_inferior_id): Remove.
2970 * server.c (handle_status): Use find_thread_ptid.
2971 (process_serial_event): Likewise.
2972 * thread-db.c (find_one_thread): Likewise.
2973 (thread_db_thread_handle): Likewise.
2974 * win32-low.c (thread_rec): Likewise.
2975 (child_delete_thread): Likewise.
2976 (win32_thread_alive): Likewise.
2977 (get_child_debug_event): Likewise.
2978
2979 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2980
2981 * linux-mips-low.c (update_watch_registers_callback): Return
2982 void, remove pid_p parameter, don't check for pid.
2983 (mips_insert_point, mips_remove_point): Use for_each_thread.
2984
2985 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2986
2987 * lynx.low (lynx_delete_thread_callback): Remove.
2988 (lynx_mourn): Use for_each_thread.
2989
2990 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2991
2992 * regcache.c (regcache_invalidate_one): Remove.
2993 (regcache_invalidate_pid): use for_each_thread.
2994
2995 2017-11-26 Tom Tromey <tom@tromey.com>
2996
2997 * linux-low.c (linux_create_inferior): Update.
2998
2999 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3000
3001 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3002
3003 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3004
3005 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3006 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3007 * linux-aarch64-tdesc-selftest.c: New file.
3008 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3009
3010 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3011
3012 * configure.srv: Add new file.
3013 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3014 * linux-aarch64-tdesc-selftest.c: New file.
3015 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3016
3017 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3018
3019 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3020 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3021 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3022
3023 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3024
3025 * configure.srv: Add new files.
3026 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3027 aarch64_linux_read_description.
3028 * linux-aarch64-low.c (aarch64_linux_read_description):
3029 Merge with aarch64_arch_setup.
3030 (aarch64_arch_setup): Call aarch64_linux_read_description.
3031 * linux-aarch64-tdesc.c: New file.
3032 * linux-aarch64-tdesc.h: New file.
3033
3034 2017-11-24 Yao Qi <yao.qi@linaro.org>
3035
3036 * configure.srv: Set $srv_regobj for tic6x-linux.
3037 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3038 (tic6x_read_description): Move some code to tic6x_arch_setup.
3039 (tic6x_tdesc_test): New function.
3040 (initialize_low_arch): Call selftests::register_test.
3041
3042 2017-11-22 Yao Qi <yao.qi@linaro.org>
3043
3044 * remote-utils.c (prepare_resume_reply): Use memcpy.
3045
3046 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3047
3048 * linux-low.c (kill_one_lwp_callback): Return void, take
3049 argument directly, don't filter on pid.
3050 (linux_kill): Use for_each_thread.
3051
3052 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3053
3054 * linux-low.c (need_step_over_p): Return bool, remove dummy
3055 argument.
3056 (linux_resume, proceed_all_lwps): Use find_thread.
3057
3058 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3059
3060 * linux-low.c (resume_status_pending_p): Return bool, remove
3061 flag_p argument.
3062 (linux_resume): Use find_thread.
3063
3064 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3065
3066 * linux-low.c (struct thread_resume_array): Remove.
3067 (linux_set_resume_request): Return void, take arguments
3068 directly.
3069 (linux_resume): Use for_each_thread.
3070
3071 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3072
3073 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3074 return bool, remove data argument.
3075 (linux_stabilize_threads): Use find_thread.
3076
3077 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3078
3079 * linux-low.c (unsuspend_one_lwp): Remove.
3080 (unsuspend_all_lwps): Use for_each_thread, inline code from
3081 unsuspend_one_lwp.
3082
3083 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3084
3085 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3086 * linux-low.c (struct iterate_over_lwps_args): Remove.
3087 (iterate_over_lwps_filter): Remove.
3088 (iterate_over_lwps): Use find_thread.
3089
3090 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3091
3092 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3093 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3094 code from reset_lwp_ptrace_options_callback.
3095
3096 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3097
3098 * linux-arm-low.c (struct update_registers_data): Remove.
3099 (update_registers_callback): Return void, take arguments
3100 directly, don't check thread's pid.
3101 (arm_insert_point, arm_remove_point): Use for_each_thread.
3102
3103 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3104
3105 * win32-low.c (continue_one_thread): Return void, take argument
3106 directly.
3107 (child_continue): Use for_each_thread.
3108
3109 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3110
3111 * win32-i386-low.c (update_debug_registers_callback): Rename
3112 to ...
3113 (update_debug_registers): ... this, return void, remove pid_p arg.
3114 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3115
3116 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3117
3118 * inferiors.h (struct process_info): Add constructor, initialize
3119 fields..
3120 <syscalls_to_catch>: Change type to std::vector<int>.
3121 * inferiors.c (add_process): Allocate process_info with new.
3122 (remove_process): Free process_info with delete.
3123 * linux-low.c (handle_extended_wait): Adjust.
3124 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3125 * server.c (handle_general_set): Adjust.
3126
3127 2017-11-16 Pedro Alves <palves@redhat.com>
3128
3129 * remote-utils.c (remote_close): Block SIGIO signals instead of
3130 uninstalling the SIGIO handler.
3131
3132 2017-11-16 Alan Hayward <alan.hayward@arm.com>
3133
3134 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3135
3136 2017-11-16 Yao Qi <yao.qi@linaro.org>
3137
3138 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3139 (tic6x_store_gregset): Likewise.
3140 (tic6x_usrregs_info): Move it up.
3141
3142 2017-11-15 Alan Hayward <alan.hayward@arm.com>
3143
3144 * Makefile.in: Update arch rules.
3145 * configure.srv: Explicitly mark arch/ files.
3146
3147 2017-11-13 Andreas Schwab <schwab@suse.de>
3148
3149 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3150 function.
3151 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3152
3153 2017-11-06 Pedro Alves <palves@redhat.com>
3154
3155 * config.in, configure: Regenerate.
3156
3157 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3158
3159 * target.c (struct thread_search): Remove.
3160 (thread_search_callback): Remove.
3161 (prepare_to_access_memory): Use for_each_thread instead of
3162 find_inferior. Inline code from thread_search_callback.
3163
3164 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3165
3166 * server.c (struct visit_actioned_threads_data): Remove.
3167 (visit_actioned_threads): Change prototype to take arguments
3168 directly.
3169 (resume): Use find_thread instead of find_inferior.
3170
3171 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3172
3173 * server.c (queue_stop_reply_callback): Change prototype, return
3174 void.
3175 (find_status_pending_thread_callback): Remove.
3176 (handle_status): Replace find_inferior with find_thread and
3177 for_each_thread.
3178
3179 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3180
3181 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3182 with REGNO.
3183 (aarch64_store_gregset): Likewise.
3184 (aarch64_fill_fpregset): Likewise.
3185 (aarch64_store_fpregset): Likewise.
3186
3187 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3188
3189 * gdbthread.h (find_thread, for_each_thread): New functions.
3190 * inferiors.c (thread_of_pid): Remove.
3191 (find_any_thread_of_pid): Use find_thread.
3192 * linux-low.c (num_lwps): Use for_each_thread.
3193
3194 2017-10-17 Yao Qi <yao.qi@linaro.org>
3195
3196 * Makefile.in: Remove one rule.
3197 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3198
3199 2017-10-17 Yao Qi <yao.qi@linaro.org>
3200
3201 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3202 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3203
3204 2017-10-17 Yao Qi <yao.qi@linaro.org>
3205
3206 * configure.srv: Rename arm.o with arch/arm.o.
3207
3208 2017-10-17 Yao Qi <yao.qi@linaro.org>
3209
3210 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3211 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3212 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3213 (arch-i386.o, arch-amd64.o): Remove rules.
3214 (arch/%.o): New rule.
3215 Update POSTCOMPILE and COMPILE.pre.
3216 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3217 * configure: Re-generated.
3218 * configure.srv: Replace arch-i386.o with arch/i386.o.
3219 Replace arch-amd64.o with arch/amd64.o.
3220
3221 2017-10-16 Yao Qi <yao.qi@linaro.org>
3222
3223 * configure: Regenerated.
3224
3225 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3226
3227 * inferiors.h: (struct inferior_list): Remove.
3228 (struct inferior_list_entry); Remove.
3229 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3230 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3231 get_first_inferior): Remove.
3232 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3233 find_inferior_id, find_inferior_in_random): Change signature.
3234 * inferiors.c (all_threads): Change type to
3235 std::list<thread_info *>.
3236 (get_thread): Remove macro.
3237 (find_inferior, find_inferior_id): Change signature, implement
3238 using find_thread.
3239 (find_inferior_in_random): Change signature, implement using
3240 find_thread_in_random.
3241 (for_each_inferior, for_each_inferior_with_data): Change
3242 signature, implement using for_each_thread.
3243 (add_inferior_to_list, remove_inferior): Remove.
3244 (add_thread, get_first_thread, thread_of_pid,
3245 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3246 (get_first_inferior, one_inferior_p, clear_inferior_list):
3247 Remove.
3248 (clear_inferiors, get_thread_process): Update.
3249 * gdbthread.h: Include <list>.
3250 (struct thread_info) <entry>: Remove field.
3251 <id>: New field.
3252 (all_threads): Change type to std::list<thread_info *>.
3253 (get_first_inferior): Add doc.
3254 (find_thread, for_each_thread, find_thread_in_random): New
3255 functions.
3256 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3257 * linux-arm-low.c (update_registers_callback): Update.
3258 * linux-low.c (second_thread_of_pid_p): Update.
3259 (kill_one_lwp_callback, linux_detach_lwp_callback,
3260 delete_lwp_callback, status_pending_p_callback, same_lwp,
3261 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3262 iterate_over_lwps, not_stopped_callback,
3263 resume_stopped_resumed_lwps, count_events_callback,
3264 select_singlestep_lwp_callback, select_event_lwp_callback,
3265 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3266 suspend_and_send_sigstop_callback, wait_for_sigstop,
3267 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3268 lwp_running, linux_set_resume_request, resume_status_pending_p,
3269 need_step_over_p, start_step_over, linux_resume_one_thread,
3270 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3271 reset_lwp_ptrace_options_callback): Update.
3272 * linux-mips-low.c (update_watch_registers_callback): Update.
3273 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3274 Update.
3275 (free_register_cache_thread_one): Remove.
3276 (regcache_release): Update.
3277 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3278 handle_qxfer_threads_worker): Update.
3279 (handle_query): Update, use list iterator.
3280 (visit_actioned_threads, handle_pending_status,
3281 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3282 clear_pending_status_callback, set_pending_status_callback,
3283 find_status_pending_thread_callback, handle_status,
3284 process_serial_event): Update.
3285 * target.c (thread_search_callback): Update.
3286 * thread-db.c (thread_db_get_tls_address): Update.
3287 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3288 Update.
3289 * win32-i386-low.c (update_debug_registers_callback): Update.
3290 * win32-low.c (delete_thread_info, child_delete_thread,
3291 continue_one_thread, suspend_one_thread,
3292 get_child_debug_event): Adjust.
3293
3294 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3295
3296 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3297 * inferiors.h: Include <list>.
3298 (struct process_info) <entry>: Remove field.
3299 <pid>: New field.
3300 (pid_of): Change macro to function.
3301 (ptid_of, lwpid_of): Remove macro.
3302 (all_processes): Change type to std::list<process_info *>.
3303 (ALL_PROCESSES): Remove macro.
3304 (for_each_process, find_process): New function.
3305 * inferiors.c (all_processes): Change type to
3306 std::list<process_info *>.
3307 (find_thread_process): Adjust.
3308 (add_process): Likewise.
3309 (remove_process): Likewise.
3310 (find_process_pid): Likewise.
3311 (get_first_process): Likewise.
3312 (started_inferior_callback): Remove.
3313 (have_started_inferiors_p): Adjust.
3314 (attached_inferior_callback): Remove.
3315 (have_attached_inferiors_p): Adjust.
3316 * linux-low.c (check_zombie_leaders): Likewise.
3317 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3318 (x86_linux_update_xmltarget): Adjust.
3319 * server.c (handle_query): Likewise.
3320 (gdb_reattached_process): Remove.
3321 (handle_status): Adjust.
3322 (kill_inferior_callback): Likewise.
3323 (detach_or_kill_inferior): Remove.
3324 (print_started_pid): Likewise.
3325 (print_attached_pid): Likewise.
3326 (detach_or_kill_for_exit): Update.
3327 (process_serial_event): Likewise.
3328 * linux-arm-low.c (arm_new_fork): Likewise.
3329
3330 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3331
3332 * dll.h: Include <list>.
3333 (struct dll_info): Add constructor.
3334 <entry>: Remove field.
3335 (all_dlls): Change type to std::list<dll_info>.
3336 * dll.c: Include <algorithm>.
3337 (get_dll): Remove macro.
3338 (all_dlls): Change type to std::list<dll_info *>.
3339 (free_one_dll): Remove.
3340 (match_dll): Likewise.
3341 (loaded_dll): Adjust.
3342 (unloaded_dll): Adjust to all_dlls type change, use
3343 std::find_if. Inline code from match_dll.
3344 (clear_dlls): Adjust to all_dlls type change.
3345 * server.c (emit_dll_description): Remove.
3346 (handle_qxfer_libraries): Adjust to all_dlls type change,
3347 integrate emit_dll_description's functionality.
3348
3349 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3350
3351 * linux-low.h (struct linux_target_ops) <delete_process>: New
3352 field.
3353 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3354 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3355 (struct linux_target_ops): Add delete_process callback.
3356 * linux-arm-low.c (arm_delete_process): New.
3357 (struct linux_target_ops): Add delete_process callback.
3358 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3359 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3360 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3361 * linux-mips-low.c (mips_linux_delete_process): New.
3362 (struct linux_target_ops): Add delete_process callback.
3363 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3364 * linux-s390-low.c (struct linux_target_ops): Likewise.
3365 * linux-sh-low.c (struct linux_target_ops): Likewise.
3366 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3367 * linux-tile-low.c (struct linux_target_ops): Likewise.
3368 * linux-x86-low.c (x86_linux_delete_process): New.
3369 (struct linux_target_ops): Add delete_process callback.
3370 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3371
3372 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3373
3374 * linux-aarch64-low.c (the_low_target): Add thread delete
3375 callback.
3376 * linux-arm-low.c (arm_delete_thread): New function.
3377 (the_low_target): Add thread delete callback.
3378 * linux-bfin-low.c (the_low_target): Likewise.
3379 * linux-crisv32-low.c (the_low_target): Likewise.
3380 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3381 set.
3382 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3383 field.
3384 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3385 * linux-mips-low.c (mips_linux_delete_thread): New function.
3386 (the_low_target): Add thread delete callback.
3387 * linux-ppc-low.c (the_low_target): Likewise.
3388 * linux-s390-low.c (the_low_target): Likewise.
3389 * linux-sh-low.c (the_low_target): Likewise.
3390 * linux-tic6x-low.c (the_low_target): Likewise.
3391 * linux-tile-low.c (the_low_target): Likewise.
3392 * linux-x86-low.c (the_low_target): Likewise.
3393 * linux-xtensa-low.c (the_low_target): Likewise.
3394
3395 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3396
3397 * win32-low.c: Include "common-inferior.h".
3398
3399 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3400
3401 * inferiors.c (set_inferior_cwd): New function.
3402 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3403 (handle_query): Inform that QSetWorkingDir is supported.
3404 * win32-low.c (create_process): Pass the inferior's cwd to
3405 CreateProcess.
3406
3407 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3408
3409 * inferiors.c (current_inferior_cwd): New global variable.
3410 (get_inferior_cwd): New function.
3411 * inferiors.h (struct process_info) <cwd>: New field.
3412
3413 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3414
3415 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3416 (OBS): Add gdb_tilde_expand.o.
3417
3418 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3419
3420 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3421 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3422
3423 2017-09-29 Pedro Alves <palves@redhat.com>
3424
3425 * ax.c (gdb_parse_agent_expr): Constify.
3426 * ax.h (gdb_parse_agent_expr): Constify.
3427 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3428 Constify.
3429 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3430 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3431 * remote-utils.h (read_ptid): Constify.
3432 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3433 (process_point_options, process_serial_event): Constify.
3434 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3435 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3436 (cmd_qtbuffer): Constify.
3437
3438 2017-09-29 Pedro Alves <palves@redhat.com>
3439
3440 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3441 fails.
3442
3443 2017-09-29 Pedro Alves <palves@redhat.com>
3444
3445 * linux-low.c (handle_extended_wait): Pass parent thread instead
3446 of process to thread_db_notice_clone.
3447 * linux-low.h (thread_db_notice_clone): Replace parent process
3448 parameter with parent thread parameter.
3449 * thread-db.c (find_one_thread): Add comment.
3450 (thread_db_notice_clone): Replace parent process parameter with
3451 parent thread parameter. Temporarily switch to the parent thread.
3452
3453 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3454
3455 * gdbthread.h: Include "common-gdbthread.h".
3456 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3457 "if" when validating the ptid.
3458 * remote-utils.c: Include "gdbthread.h".
3459 (prepare_resume_reply): Use "switch_to_thread".
3460 * target.c (done_accessing_memory): Likewise.
3461
3462 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3463
3464 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3465 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3466 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3467 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3468 s390x-gs-linux64-ipa.o to ipa_obj.
3469 * linux-s390-low.c (HWCAP_S390_GS): New define.
3470 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3471 New functions.
3472 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3473 (s390_arch_setup): Check for guarded-storage support and choose
3474 appropriate tdesc.
3475 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3476 init_registers_s390x_gs_linux64.
3477 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3478 enum value.
3479 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
3480 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
3481
3482 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
3483
3484 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
3485
3486 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3487
3488 * linux-low.h (struct lwp_info): Add new field, thread_handle.
3489 (thread_db_thread_handle): Declare.
3490 * linux-low.c (linux_target_ops): Initialize thread_handle.
3491 * server.c (handle_qxfer_threads_worker): Add support for
3492 "handle" attribute.
3493 * target.h (struct target_ops): Add new function pointer,
3494 thread_handle.
3495 (target_thread_handle): Define.
3496 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
3497 field in lwp.
3498 (thread_db_thread_handle): New function.
3499
3500 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3501
3502 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
3503 * linux-low.h (thread_db_notice_clone): Declare.
3504 * thread-db.c (thread_db_notice_clone): New function.
3505
3506 2017-09-21 Pedro Alves <palves@redhat.com>
3507
3508 * server.c (gdb_read_memory, handle_status, process_serial_event)
3509 (handle_serial_event, handle_target_event): Adjust to
3510 set_desired_thread prototype change.
3511 * target.c (set_desired_thread): Remove 'use_general' parameter
3512 and adjust.
3513 * target.h (set_desired_thread): Remove 'use_general' parameter.
3514
3515 2017-09-20 Tom Tromey <tom@tromey.com>
3516
3517 * target.c (target_terminal::terminal_state): Define.
3518 (target_terminal::init): Rename from target_terminal_init.
3519 (target_terminal::inferior): Rename from
3520 target_terminal_inferior.
3521 (target_terminal::ours): Rename from target_terminal_ours.
3522 (target_terminal::ours_for_output, target_terminal::info): New.
3523
3524 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3525
3526 * server.c (accumulate_file_name_length): Remove.
3527 (emit_dll_description): Adjust to std::string change.
3528 (handle_qxfer_libraries): Use std::string to hold document.
3529
3530 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3531
3532 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3533 return type of xml_escape_text.
3534 * server.c (emit_dll_description): Likewise.
3535
3536 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3537
3538 * server.c (captured_main): Accept argument for --selftest.
3539 Update run_tests call.
3540 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3541 when registering selftests.
3542
3543 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3544
3545 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3546 instead of "VEC" for "target_desc.reg_defs".
3547 (regcache_cpy): Likewise.
3548 (registers_to_string): Likewise.
3549 (registers_from_string): Likewise.
3550 (find_regno): Likewise.
3551 (supply_regblock): Likewise.
3552 (regcache_raw_read_unsigned): Likewise.
3553 * tdesc.c (init_target_desc): Likewise.
3554 (tdesc_create_reg): Likewise.
3555 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3556 (struct target_desc) <reg_defs>: Convert to "std::vector".
3557 (target_desc): Do not initialize "reg_defs".
3558 (~target_desc): Update code to use "std::vector" instead of "VEC"
3559 for "target_desc.reg_defs".
3560 (operator==): Likewise.
3561
3562 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3563
3564 * inferiors.h (thread_to_gdb_id): Remove.
3565 * inferiors.c (thread_to_gdb_id): Remove.
3566 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3567 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3568 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3569 Likewise.
3570 * nto-low.c (nto_fetch_registers, nto_store_registers,
3571 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3572
3573 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3574
3575 * inferiors.h (gdb_id_to_thread_id): Remove.
3576 * inferiors.c (gdb_id_to_thread_id): Remove.
3577 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3578 removal. Move pid declaration closer to where it's used.
3579
3580 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3581
3582 * server.c (handle_detach): New function.
3583 (process_serial_event): Move code out, call handle_detach.
3584
3585 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3586
3587 * server.c (require_running): Rename to ...
3588 (require_running_or_return): ... this ...
3589 (require_running_or_break): ... and this.
3590 (handle_query, process_serial_event): Adjust.
3591
3592 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3593
3594 * linux-low.c (linux_set_resume_request): Remove unused
3595 variables.
3596
3597 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3598
3599 * server.c (first_thread_of): Remove.
3600 (process_serial_event): Replace usage of first_thread_of with
3601 find_any_thread_of_pid.
3602 * tracepoint.c (same_process_p): Remove.
3603 (gdb_agent_about_to_close): Replace usage of same_process_p with
3604 find_any_thread_of_pid.
3605 * linux-x86-low.c (same_process_callback): Remove.
3606 (x86_arch_setup_process_callback): Replace usage of
3607 same_process_callback with find_any_thread_of_pid.
3608 * thread-db.c (any_thread_of): Remove.
3609 (switch_to_process): Replace usage of any_thread_of with
3610 find_any_thread_of_pid.
3611 * inferiors.c (thread_pid_matches_callback): Remove.
3612 (find_thread_process): Adjust to use find_any_thread_of_pid.
3613
3614 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3615
3616 * regcache.c (get_thread_regcache): Guard calls to "memset"
3617 with "!VEC_empty".
3618
3619 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3620
3621 * linux-low.c (handle_extended_wait): Use
3622 "allocate_target_description" instead of "XNEW".
3623 * linux-x86-low.c (initialize_low_arch): Likewise.
3624
3625 2017-09-05 Yao Qi <yao.qi@linaro.org>
3626
3627 * configure.srv (srv_i386_regobj): Remove.
3628 (srv_amd64_regobj): Remove.
3629 (srv_regobj): Set it to "" for x86 non-linux targets.
3630 * linux-x86-tdesc.c (i386_linux_read_description):
3631 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3632 (init_registers_i386): Remove the declaration.
3633 (tdesc_i386): Remove the declaration.
3634 (lynx_i386_arch_setup): Call i386_create_target_description.
3635 * nto-x86-low.c: Likewise.
3636 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3637 [!__x86_64__]: include arch/i386.h.
3638 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3639
3640 2017-09-05 Yao Qi <yao.qi@linaro.org>
3641
3642 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3643 i386/amd64-XXX-linux from it.
3644
3645 2017-09-05 Yao Qi <yao.qi@linaro.org>
3646
3647 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3648 false.
3649 (ipa_amd64_linux_regobj): Remove.
3650 (ipa_x32_linux_regobj): Remove.
3651
3652 2017-09-05 Yao Qi <yao.qi@linaro.org>
3653
3654 * Makefile.in (arch-amd64.o): New rule.
3655 * configure.srv: Append arch-amd64.o.
3656 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3657 (get_ipa_tdesc): Call amd64_linux_read_description.
3658 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3659 and init_registers_amd64_XXX.
3660 * linux-x86-low.c (x86_linux_read_description): Call
3661 amd64_linux_read_description.
3662 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3663 (initialize_low_arch): Don't call init_registers_x32_XXX and
3664 init_registers_amd64_XXX.
3665 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3666 and tdesc_amd64_XXX.
3667 [__x86_64__] (amd64_tdesc_test): New function.
3668 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3669 and init_registers_amd64_XXX.
3670 * linux-x86-tdesc.c: Include arch/amd64.h.
3671 (xcr0_to_tdesc_idx): New function.
3672 (i386_linux_read_description): New function.
3673 (amd64_get_ipa_tdesc_idx): New function.
3674 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3675 (amd64_get_ipa_tdesc): Declare.
3676
3677 2017-09-05 Yao Qi <yao.qi@linaro.org>
3678
3679 * configure.srv (srv_i386_linux_xmlfiles): Remove
3680 i386/i386-XXX-linux.xml from it.
3681
3682 2017-09-05 Yao Qi <yao.qi@linaro.org>
3683
3684 * configure.srv: Set srv_i386_linux_regobj empty if $development
3685 is false.
3686 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3687 initialize_low_tdesc.
3688 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3689 with #if initialize_low_tdesc.
3690 * linux-x86-tdesc-selftest.c: New file.
3691 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3692
3693 2017-09-05 Yao Qi <yao.qi@linaro.org>
3694
3695 * Makefile.in (arch-i386.o): New rule.
3696 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3697 (x86_64-*-linux*): Likewise.
3698 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3699 include arch/i386.h.
3700 (i386_linux_read_description): Remove code and call
3701 i386_create_target_description.
3702 * tdesc.c (allocate_target_description): New function.
3703 * tdesc.h (set_tdesc_architecture): Remove declaration.
3704 (set_tdesc_osabi): Likewise.
3705
3706 2017-09-05 Yao Qi <yao.qi@linaro.org>
3707
3708 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3709 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3710 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3711 .xmltarget.
3712 * server.c (get_features_xml): Call tdesc_get_features_xml.
3713 * tdesc.c (set_tdesc_architecture): New function.
3714 (set_tdesc_osabi): New function.
3715 (tdesc_get_features_xml): New function.
3716 (tdesc_create_feature): Add an argument.
3717 * tdesc.h (struct target_desc) <features>: New field.
3718 <arch, osabi>: New field.
3719 (~target_desc): xfree features, arch, and osabi.
3720 (target_desc::oerator==): Don't compare .xmltarget.
3721 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3722 (set_tdesc_osabi): Likewise.
3723 (tdesc_get_features_xml): Likewise.
3724
3725 2017-09-05 Yao Qi <yao.qi@linaro.org>
3726
3727 * linux-x86-tdesc.c: Include selftest.h.
3728 (i386_tdesc_test): New function.
3729 (initialize_low_tdesc): Call selftests::register_test.
3730 * tdesc.h: Include regdef.h.
3731 (target_desc): Override operator == and !=.
3732
3733 2017-09-05 Yao Qi <yao.qi@linaro.org>
3734
3735 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3736 (ipa_obj): Likewise.
3737 * linux-i386-ipa.c: Include common/x86-xstate.h
3738 (get_ipa_tdesc): Call i386_linux_read_description.
3739 (initialize_low_tracepoint): Don't call init_registers_XXX
3740 functions, call initialize_low_tdesc instead.
3741 * linux-x86-low.c (x86_linux_read_description): Call
3742 i386_linux_read_description.
3743 (initialize_low_arch): Don't call init_registers_i386_XXX
3744 functions, call initialize_low_tdesc.
3745 * linux-x86-tdesc.c: New file.
3746 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3747 (i386_get_ipa_tdesc_idx): Declare.
3748 (i386_get_ipa_tdesc): Declare.
3749 (initialize_low_tdesc): Declare.
3750
3751 2017-09-05 Yao Qi <yao.qi@linaro.org>
3752
3753 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3754 instead of 0.
3755
3756 2017-09-05 Yao Qi <yao.qi@linaro.org>
3757
3758 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3759 * regcache.c (get_thread_regcache): Use VEC_length.
3760 (init_register_cache): Likewise.
3761 (regcache_cpy): Likewise.
3762 (registers_to_string): Iterate reg_defs via VEC_iterate.
3763 (find_regno): Likewise.
3764 (find_register_by_number): Use VEC_index.
3765 (register_size): Call find_register_by_number.
3766 (register_data): Call find_register_by_number.
3767 (supply_regblock): Use VEC_length.
3768 (regcache_raw_read_unsigned): Likewise.
3769 * tdesc.c (init_target_desc): Iterate reg_defs via
3770 VEC_iterate.
3771 (default_description): Update initializer.
3772 (copy_target_description): Don't update field num_registers.
3773 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3774 <num_registers>: Remove.
3775
3776 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3777
3778 * Makefile.in (.SECONDARY): Define target.
3779
3780 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3781
3782 * linux-low.c (linux_wait_1): Adjust.
3783 * server.c (queue_stop_reply_callback): Adjust.
3784
3785 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3786
3787 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3788 QEnvironmentUnset and QEnvironmentReset packets.
3789 (handle_query): Inform remote that QEnvironmentHexEncoded,
3790 QEnvironmentUnset and QEnvironmentReset are supported.
3791
3792 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3793
3794 * inferiors.h (inferior_target_data): Rename to ...
3795 (thread_target_data): ... this.
3796 (inferior_regcache_data): Rename to ...
3797 (thread_regcache_data): ... this.
3798 (set_inferior_regcache_data): Rename to ...
3799 (set_thread_regcache_data): ... this.
3800 * inferiors.c (inferior_target_data): Rename to ...
3801 (thread_target_data): ... this.
3802 (inferior_regcache_data): Rename to ...
3803 (thread_regcache_data): ... this.
3804 (set_inferior_regcache_data): Rename to ...
3805 (set_thread_regcache_data): ... this.
3806 (free_one_thread): Update.
3807 * linux-low.h (get_thread_lwp): Update.
3808 * regcache.c (get_thread_regcache): Update.
3809 (regcache_invalidate_thread): Update.
3810 (free_register_cache_thread): Update.
3811 * win32-i386-low.c (update_debug_registers_callback): Update.
3812 (win32_get_current_dr): Update.
3813 * win32-low.c (thread_rec): Update.
3814 (delete_thread_info): Update.
3815 (continue_one_thread): Update.
3816 (suspend_one_thread): Update.
3817
3818 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3819
3820 * inferiors.c (set_inferior_target_data): Remove.
3821 * inferiors.h (set_inferior_target_data): Remove.
3822
3823 2017-08-18 Yao Qi <yao.qi@linaro.org>
3824
3825 * Makefile.in (OBS): Add selftest.o.
3826 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3827 * configure, config.in: Re-generated.
3828 * server.c: Include common/sefltest.h.
3829 (captured_main): Handle option --selftest.
3830
3831 2017-08-09 Yao Qi <yao.qi@linaro.org>
3832
3833 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3834 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3835 i386-avx-mpx.o and i386-mmx.o.
3836 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3837 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3838 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3839 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3840 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3841 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3842 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3843 i386/amd64-avx-mpx.xml.
3844
3845 2017-08-09 Yao Qi <yao.qi@linaro.org>
3846
3847 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3848 and x32-avx-avx512.o.
3849 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3850 i386/x32-avx-avx512.xml.
3851
3852 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3853
3854 * tracepoint.h (enum class fast_tpoint_collect_result): New
3855 enumeration.
3856 (fast_tracepoint_collecting): Change return type to
3857 fast_tpoint_collect_result.
3858 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3859 * linux-low.h: Include tracepoint.h.
3860 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3861 fast_tpoint_collect_result.
3862 * linux-low.c (handle_tracepoints): Adjust.
3863 (linux_fast_tracepoint_collecting): Change return type to
3864 fast_tpoint_collect_result.
3865 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3866 linux_wait_1, stuck_in_jump_pad_callback,
3867 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3868 proceed_one_lwp): Adjust to type change.
3869
3870 2017-07-10 Yao Qi <yao.qi@linaro.org>
3871
3872 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3873
3874 2017-06-29 Yao Qi <yao.qi@linaro.org>
3875
3876 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3877 Remove.
3878 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3879
3880 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3881
3882 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3883
3884 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3885
3886 * linux-low.c (linux_create_inferior): Adjust code to access the
3887 environment information via 'gdb_environ' class.
3888 * lynx-low.c (lynx_create_inferior): Likewise.
3889 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3890 (get_environ): Return a pointer to 'our_environ'.
3891 (captured_main): Initialize 'our_environ'.
3892 * server.h (get_environ): Adjust prototype.
3893 * spu-low.c (spu_create_inferior): Adjust code to access the
3894 environment information via 'gdb_environ' class.
3895
3896 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3897
3898 * linux-low.c (linux_read_memory, linux_write_memory): Remove
3899 usage of "register" keyword.
3900
3901 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3902
3903 * configure: Re-generate.
3904
3905 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3906
3907 * configure: Re-generate.
3908
3909 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3910
3911 * Makefile.in (COMPILE.pre): Add "-x c++".
3912
3913 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
3914
3915 * fork-child.c: Conditionally include <signal.h>.
3916
3917 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3918
3919 * server.c (handle_general_set): Handle new packet
3920 "QStartupWithShell".
3921 (handle_query): Add "QStartupWithShell" to the list of supported
3922 packets.
3923 (gdbserver_usage): Add help text explaining the
3924 new "--startup-with-shell" and "--no-startup-with-shell" CLI
3925 options.
3926 (captured_main): Recognize and act upon the presence of the new
3927 CLI options.
3928
3929 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3930 Pedro Alves <palves@redhat.com>
3931
3932 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
3933 * configure: Regenerate.
3934 * configure.srv (srv_linux_obj): Add "fork-child.o" and
3935 "fork-inferior.o".
3936 (i[34567]86-*-lynxos*): Likewise.
3937 (spu*-*-*): Likewise.
3938 * fork-child.c: New file.
3939 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3940 and "environ.h".
3941 (linux_ptrace_fun): New function.
3942 (linux_create_inferior): Adjust function prototype to reflect
3943 change on "target.h". Adjust function code to use
3944 "fork_inferior".
3945 (linux_request_interrupt): Delete "signal_pid".
3946 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3947 (lynx_ptrace_fun): New function.
3948 (lynx_create_inferior): Adjust function prototype to reflect
3949 change on "target.h". Adjust function code to use
3950 "fork_inferior".
3951 * nto-low.c (nto_create_inferior): Adjust function prototype and
3952 code to reflect change on "target.h". Update comments.
3953 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3954 "common-terminal.h" and "environ.h".
3955 (terminal_fd): Moved to fork-child.c.
3956 (old_foreground_pgrp): Likewise.
3957 (restore_old_foreground_pgrp): Likewise.
3958 (last_status): Make it global.
3959 (last_ptid): Likewise.
3960 (our_environ): New variable.
3961 (startup_with_shell): Likewise.
3962 (program_name): Likewise.
3963 (program_argv): Rename to...
3964 (program_args): ...this.
3965 (wrapper_argv): New variable.
3966 (start_inferior): Delete function.
3967 (get_exec_wrapper): New function.
3968 (get_exec_file): Likewise.
3969 (get_environ): Likewise.
3970 (prefork_hook): Likewise.
3971 (post_fork_inferior): Likewise.
3972 (postfork_hook): Likewise.
3973 (postfork_child_hook): Likewise.
3974 (handle_v_run): Update code to deal with arguments coming from the
3975 remote host. Update calls from "start_inferior" to
3976 "create_inferior".
3977 (captured_main): Likewise. Initialize environment variable. Call
3978 "have_job_control".
3979 * server.h (post_fork_inferior): New prototype.
3980 (get_environ): Likewise.
3981 (last_status): Declare.
3982 (last_ptid): Likewise.
3983 (signal_pid): Likewise.
3984 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3985 (spu_ptrace_fun): New function.
3986 (spu_create_inferior): Adjust function prototype to reflect change
3987 on "target.h". Adjust function code to use "fork_inferior".
3988 * target.c (target_terminal_init): New function.
3989 (target_terminal_inferior): Likewise.
3990 (target_terminal_ours): Likewise.
3991 * target.h: Include <vector>.
3992 (struct target_ops) <create_inferior>: Update prototype.
3993 (create_inferior): Update macro.
3994 * utils.c (gdb_flush_out_err): New function.
3995 * win32-low.c (win32_create_inferior): Adjust function prototype
3996 and code to reflect change on "target.h".
3997
3998 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3999
4000 * inferiors.c (switch_to_thread): New function.
4001
4002 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4003
4004 * Makefile.in (SFILE): Add "common/job-control.c".
4005 (OBS): Add "job-control.o".
4006
4007 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4008
4009 * Makefile: Remove "@host_makefile_frag@".
4010
4011 2017-05-05 Pedro Alves <palves@redhat.com>
4012
4013 * configure: Regenerate.
4014
4015 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4016
4017 * configure: Regenerate.
4018
4019 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4020
4021 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4022 software_single_step change of return type to
4023 std::vector<CORE_ADDR>.
4024 * linux-low.c (install_software_single_step_breakpoints):
4025 Likewise.
4026 * linux-low.h (install_software_single_step_breakpoints):
4027 Likewise.
4028
4029 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4030
4031 * remote-utils.c: Include "gdb_termios.h" instead of
4032 "terminal.h".
4033 * terminal.h: Delete file.
4034
4035 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4036
4037 * server.c: Include <vector>.
4038 <program_argv, wrapper_argv>: Convert to std::vector.
4039 (start_inferior): Rewrite function to use C++.
4040 (handle_v_run): Likewise. Update code that calculates the argv
4041 based on the vRun packet; use C++.
4042 (captured_main): Likewise.
4043
4044 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4045
4046 * server.c (handle_v_cont): Initialize thread_resume::thread
4047 with null_ptid.
4048
4049 2017-04-05 Pedro Alves <palves@redhat.com>
4050
4051 * configure: Regenerate.
4052
4053 2017-04-05 Pedro Alves <palves@redhat.com>
4054
4055 * gdbreplay.c (sync_error): Constify.
4056 * linux-x86-low.c (push_opcode): Constify.
4057
4058 2017-04-05 Pedro Alves <palves@redhat.com>
4059
4060 * win32-low.c (get_child_debug_event)
4061 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4062 Report TARGET_WAITKIND_SPURIOUS instead.
4063
4064 2017-04-05 Pedro Alves <palves@redhat.com>
4065
4066 * remote-utils.c (remote_prepare, remote_open): Constify.
4067 * remote-utils.h (remote_prepare, remote_open): Constify.
4068 * server.c (captured_main): Constify 'port' handling.
4069
4070 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4071
4072 * Makefile.in (clean): Clear .deps.
4073
4074 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * .gitignore: Remove generated files, replace with wildcard.
4077 * (clean): Replace removal of generated files with wildcard.
4078 (version.c): Replace with...
4079 (version-generated.c): ...this.
4080 (xml-builtin.c): Replace with...
4081 (xml-builtin-generated.c): ...this.
4082 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4083 (%.c: *regformats*): Replace with...
4084 (%-generated.c: *regformats*): ...this.
4085
4086 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4087
4088 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4089 (xtensa_fill_gregset): Call collect_register_by_name for
4090 threadptr register.
4091 (xtensa_store_gregset): Call supply_register_by_name for
4092 threadptr register.
4093
4094 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4095
4096 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4097 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4098 (xtensa_store_gregset): Call supply_register for all registers in
4099 a0_regnum..a0_regnum + C0_NREGS range.
4100
4101 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4102
4103 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4104 (ax-ipa.o: ax.c): Remove.
4105 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4106 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4107 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4108 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4109 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4110
4111 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4114 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4115 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4116 (errors-ipa.o: ../common/errors.c): Remove.
4117 (format-ipa.o: ../common/format.c): Remove.
4118 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4119
4120 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4121
4122 * Makefile.in (%-ipa.o: %.c): New rule.
4123 (tracepoint-ipa.o: tracepoint.c): Remove.
4124 (utils-ipa.o: utils.c): Remove.
4125 (remote-utils-ipa.o: remote-utils.c): Remove.
4126 (regcache-ipa.o: regcache.c): Remove.
4127 (i386-linux-ipa.o: i386-linux.c): Remove.
4128 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4129 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4130 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4131 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4132 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4133 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4134 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4135 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4136 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4137 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4138 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4139 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4140 (aarch64-ipa.o: aarch64.c): Remove.
4141 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4142 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4143 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4144 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4145 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4146 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4147 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4148 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4149 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4150 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4151 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4152 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4153 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4154 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4155 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4156 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4157 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4158 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4159 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4160 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4161 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4162 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4163 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4164 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4165 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4166 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4167 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4168 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4169 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4170 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4171 (tdesc-ipa.o: tdesc.c): Remove.
4172 (x32-linux-ipa.o: x32-linux.c): Remove.
4173 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4174 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4175
4176 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4177
4178 * Makefile.in (%.o: ../arch/%.c): New rule.
4179 (arm.o: ../arch/arm.c): Remove.
4180 (arm-linux.o: ../arch/arm-linux.c): Remove.
4181 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4182 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4183
4184 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4185
4186 * Makefile.in (%.o: ../nat/%.c): New rule.
4187 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4188 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4189 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4190 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4191 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4192 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4193 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4194 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4195 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4196 (linux-personality.o: ../nat/linux-personality.c): Remove.
4197 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4198 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4199 (x86-linux.o: ../nat/x86-linux.c): Remove.
4200 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4201 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4202
4203 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4204
4205 * Makefile.in (%.o: ../common/%.c): New rule.
4206 (signals.o: ../common/signals.c): Remove.
4207 (print-utils.o: ../common/print-utils.c): Remove.
4208 (rsp-low.o: ../common/rsp-low.c): Remove.
4209 (common-utils.o: ../common/common-utils.c): Remove.
4210 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4211 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4212 (vec.o: ../common/vec.c): Remove.
4213 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4214 (xml-utils.o: ../common/xml-utils.c): Remove.
4215 (ptid.o: ../common/ptid.c): Remove.
4216 (buffer.o: ../common/buffer.c): Remove.
4217 (format.o: ../common/format.c): Remove.
4218 (filestuff.o: ../common/filestuff.c): Remove.
4219 (agent.o: ../common/agent.c): Remove.
4220 (errors.o: ../common/errors.c): Remove.
4221 (environ.o: ../common/environ.c): Remove.
4222 (common-debug.o: ../common/common-debug.c): Remove.
4223 (cleanups.o: ../common/cleanups.c): Remove.
4224 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4225 (fileio.o: ../common/fileio.c): Remove.
4226 (common-regcache.o: ../common/common-regcache.c): Remove.
4227 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4228 (new-op.o: ../common/new-op.c): Remove.
4229 (btrace-common.o: ../common/btrace-common.c): Remove.
4230
4231 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4232
4233 * Makefile.in (%.o: ../target/%.c): New rule.
4234 (waitstatus.o: ../target/waitstatus.c): Remove.
4235
4236 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4237
4238 * Makefile.in
4239 (%.c: ../regformats/%.dat,
4240 (%.c: ../regformats/arm/%.dat,
4241 (%.c: ../regformats/i386/%.dat,
4242 (%.c: ../regformats/rs6000/%.dat): New rules.
4243 (aarch64.c): Remove.
4244 (reg-arm.c): Remove.
4245 (arm-with-iwmmxt.c): Remove.
4246 (arm-with-vfpv2.c): Remove.
4247 (arm-with-vfpv3.c): Remove.
4248 (arm-with-neon.c): Remove.
4249 (reg-bfin.c): Remove.
4250 (reg-cris.c): Remove.
4251 (reg-crisv32.c): Remove.
4252 (i386.c): Remove.
4253 (i386-linux.c): Remove.
4254 (i386-avx.c): Remove.
4255 (i386-avx-linux.c): Remove.
4256 (i386-avx-avx512.c): Remove.
4257 (i386-avx-avx512-linux.c): Remove.
4258 (i386-mpx.c): Remove.
4259 (i386-mpx-linux.c): Remove.
4260 (i386-avx-mpx-avx512-pku.c): Remove.
4261 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4262 (i386-avx-mpx.c): Remove.
4263 (i386-avx-mpx-linux.c): Remove.
4264 (i386-mmx.c): Remove.
4265 (i386-mmx-linux.c): Remove.
4266 (reg-ia64.c): Remove.
4267 (reg-m32r.c): Remove.
4268 (reg-m68k.c): Remove.
4269 (reg-cf.c): Remove.
4270 (mips-linux.c): Remove.
4271 (mips-dsp-linux.c): Remove.
4272 (mips64-linux.c): Remove.
4273 (mips64-dsp-linux.c): Remove.
4274 (nios2-linux.c): Remove.
4275 (powerpc-32.c): Remove.
4276 (powerpc-32l.c): Remove.
4277 (powerpc-altivec32l.c): Remove.
4278 (powerpc-cell32l.c): Remove.
4279 (powerpc-vsx32l.c): Remove.
4280 (powerpc-isa205-32l.c): Remove.
4281 (powerpc-isa205-altivec32l.c): Remove.
4282 (powerpc-isa205-vsx32l.c): Remove.
4283 (powerpc-e500l.c): Remove.
4284 (powerpc-64l.c): Remove.
4285 (powerpc-altivec64l.c): Remove.
4286 (powerpc-cell64l.c): Remove.
4287 (powerpc-vsx64l.c): Remove.
4288 (powerpc-isa205-64l.c): Remove.
4289 (powerpc-isa205-altivec64l.c): Remove.
4290 (powerpc-isa205-vsx64l.c): Remove.
4291 (s390-linux32.c): Remove.
4292 (s390-linux32v1.c): Remove.
4293 (s390-linux32v2.c): Remove.
4294 (s390-linux64.c): Remove.
4295 (s390-linux64v1.c): Remove.
4296 (s390-linux64v2.c): Remove.
4297 (s390-te-linux64.c): Remove.
4298 (s390-vx-linux64.c): Remove.
4299 (s390-tevx-linux64.c): Remove.
4300 (s390x-linux64.c): Remove.
4301 (s390x-linux64v1.c): Remove.
4302 (s390x-linux64v2.c): Remove.
4303 (s390x-te-linux64.c): Remove.
4304 (s390x-vx-linux64.c): Remove.
4305 (s390x-tevx-linux64.c): Remove.
4306 (tic6x-c64xp-linux.c): Remove.
4307 (tic6x-c64x-linux.c): Remove.
4308 (tic6x-c62x-linux.c): Remove.
4309 (reg-sh.c): Remove.
4310 (reg-sparc64.c): Remove.
4311 (reg-spu.c): Remove.
4312 (amd64.c): Remove.
4313 (amd64-linux.c): Remove.
4314 (amd64-avx.c): Remove.
4315 (amd64-avx-linux.c): Remove.
4316 (amd64-avx-avx512.c): Remove.
4317 (amd64-avx-avx512-linux.c): Remove.
4318 (amd64-mpx.c): Remove.
4319 (amd64-mpx-linux.c): Remove.
4320 (amd64-avx-mpx-avx512-pku.c): Remove.
4321 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4322 (amd64-avx-mpx.c): Remove.
4323 (amd64-avx-mpx-linux.c): Remove.
4324 (x32.c): Remove.
4325 (x32-linux.c): Remove.
4326 (x32-avx.c): Remove.
4327 (x32-avx-linux.c): Remove.
4328 (x32-avx-avx512.c): Remove.
4329 (x32-avx-avx512-linux.c): Remove.
4330 (reg-xtensa.c): Remove.
4331 (reg-tilegx.c): Remove.
4332 (reg-tilegx32.c): Remove.
4333
4334 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4335
4336 * Makefile.in (SFILES): Add "common/environ.c".
4337 (OBJS): Add "common/environ.h".
4338
4339 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4340
4341 * configure.ac: Check if the fs_base and gs_base members of
4342 `struct user_regs_struct' exist.
4343 * config.in: Regenerated.
4344 * configure: Likewise.
4345
4346 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4347
4348 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4349 target_read_memory.
4350 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4351 (get_next_pcs_syscall_next_pc): Likewise.
4352
4353 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
4354
4355 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4356 * nto-x86-low.c: Likewise.
4357
4358 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4359
4360 * Makefile.in: Include disable-implicit-rules.mk.
4361
4362 2016-11-23 Pedro Alves <palves@redhat.com>
4363
4364 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4365 (debug_vprintf): Use std::chrono::steady_clock instead of
4366 gettimeofday. Use '.' instead of ':'.
4367 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4368 (get_timestamp): Use std::chrono::steady_clock instead of
4369 gettimeofday.
4370
4371 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4372
4373 * Makefile.in: Fix whitespace formatting.
4374
4375 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4376
4377 * Makefile.in (SFILES, OBS): Flatten list and order
4378 alphabetically.
4379
4380 2016-11-23 Pedro Alves <palves@redhat.com>
4381
4382 * event-loop.c (handle_file_event): Use warning.
4383 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4384 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4385 Use warning.
4386
4387 2016-11-23 Pedro Alves <palves@redhat.com>
4388
4389 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4390 output.
4391 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4392 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4393 debug_printf and debug_flush for debug output.
4394 * server.c (handle_general_set): Likewise.
4395 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4396 output.
4397
4398 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4399
4400 * Makefile.in (.c.o): Replace rule with ...
4401 (%.o: %.c): ... this one.
4402
4403 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4404
4405 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4406 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4407 make.
4408 * configure.ac: Remove checks for the make program.
4409 * configure: Re-generate.
4410
4411 2016-10-28 Pedro Alves <palves@redhat.com>
4412
4413 * Makefile.in (CXX_DIALECT): Get from configure.
4414 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4415 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4416 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4417 * config.in: Regenerate.
4418 * configure: Regenerate.
4419
4420 2016-10-27 Yao Qi <yao.qi@linaro.org>
4421
4422 * linux-low.c (linux_supports_range_stepping): Return true if
4423 can_software_single_step return true.
4424
4425 2016-10-27 Yao Qi <yao.qi@linaro.org>
4426
4427 * inferiors.c (find_inferior_in_random): New function.
4428 * inferiors.h (find_inferior_in_random): Declare.
4429 * linux-low.c (linux_wait_for_event_filtered): Call
4430 find_inferior_in_random instead of find_inferior.
4431
4432 2016-10-27 Yao Qi <yao.qi@linaro.org>
4433
4434 * linux-low.c (linux_wait_1): If single-step breakpoints are
4435 inserted, remove them.
4436
4437 2016-10-26 Pedro Alves <palves@redhat.com>
4438
4439 * linux-low.c (handle_extended_wait): Link parent/child fork
4440 threads.
4441 (linux_wait_1): Unlink them.
4442 (linux_set_resume_request): Ignore resume requests for
4443 already-resumed and unhandled fork child threads.
4444 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4445 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4446 New functions.
4447 (handle_v_requests) <vCont>: Don't call require_running.
4448 * server.h (in_queued_stop_replies): New declaration.
4449
4450 2016-10-24 Yao Qi <yao.qi@linaro.org>
4451
4452 PR server/20733
4453 * linux-aarch64-low.c (append_insns): Cast the return value to
4454 'uint32_t *'.
4455
4456 2016-10-10 Yao Qi <yao.qi@linaro.org>
4457
4458 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4459
4460 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4461
4462 * target.c (target_supports_multi_process): New function, moved
4463 from...
4464 * target.h (target_supports_multi_process): ... here. Remove
4465 macro.
4466
4467 2016-10-05 Tom Tromey <tom@tromey.com>
4468
4469 PR remote/20655:
4470 * tracepoint.c (handle_tracepoint_bkpts): Check
4471 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4472
4473 2016-10-05 Yao Qi <yao.qi@linaro.org>
4474
4475 * configure.srv: Update the path of arm-*.xml files.
4476
4477 2016-10-05 Terry Guo <terry.guo@arm.com>
4478 Yao Qi <yao.qi@linaro.org>
4479
4480 * Makefile.in: Adjust the path of rules.
4481 * configure.srv: Update the path of xml files.
4482 * regformats/arm-with-iwmmxt.dat: Regenerated.
4483 * regformats/arm-with-neon.dat: Likewise.
4484 * regformats/arm-with-vfpv2.dat: Likewise.
4485 * regformats/arm-with-vfpv3.dat Likewise.
4486
4487 2016-09-30 Yao Qi <yao.qi@linaro.org>
4488
4489 PR gdbserver/20627
4490 * target.c (target_stop_and_wait): Don't call
4491 target_continue_no_signal, use resume_stop instead.
4492
4493 2016-09-26 Yao Qi <yao.qi@linaro.org>
4494
4495 * linux-low.c (linux_wait_1): Call debug_exit.
4496
4497 2016-09-23 Pedro Alves <palves@redhat.com>
4498
4499 * Makefile.in (SFILES): Add common/new-op.c.
4500 (OBS): Add common/new-op.o.
4501 (new-op.o): New rule.
4502
4503 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4504
4505 * .gitinore: Ignore more files.
4506
4507 2016-09-21 Yao Qi <yao.qi@linaro.org>
4508
4509 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
4510 23.
4511
4512 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4513
4514 * server.c (start_inferior): Call target_mourn_inferior instead of
4515 mourn_inferior; pass ptid_t argument to it.
4516 (resume): Likewise.
4517 (handle_target_event): Likewise.
4518 * target.c (target_mourn_inferior): New function.
4519 * target.h (mourn_inferior): Delete macro.
4520
4521 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4522
4523 * linux-low.c (lwp_is_stepping): New function.
4524
4525 2016-09-06 Carl Love <cel@us.ibm.com>
4526
4527 * server.c (start_inferior): Fixed comment, requested comment change
4528 didn't get updated correctly. Removed reference to ptrace () call as
4529 it is only true on Linux systems.
4530
4531 2016-09-06 Carl Love <cel@us.ibm.com>
4532
4533 * server.c (start_inferior): Do not call
4534 function target_post_create_inferior () if the
4535 inferior process has already exited.
4536
4537 2016-09-05 Pedro Alves <palves@redhat.com>
4538
4539 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4540 (COMPILE.pre, CC_LD): Use CXX directly.
4541 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4542 * acinclude.m4: Don't include build-with-cxx.m4.
4543 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4544 * configure: Regenerate.
4545
4546 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4547
4548 PR gdb/19495
4549 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4550 call writing data to own_buf.
4551
4552 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4553
4554 * target.c (mywait): Call target_wait instead of
4555 the_target->wait.
4556 (target_wait): New function.
4557
4558 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4559
4560 * server.c (start_inferior): New variable 'ptid'. Replace calls
4561 to the_target->resume by target_continue{,_no_signal}, depending
4562 on the case.
4563 * target.c (target_stop_and_wait): Call target_continue_no_signal
4564 instead of the_target->resume.
4565 (target_continue): New function.
4566
4567 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4568
4569 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4570
4571 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4572
4573 PR server/20491
4574 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4575 ps_prochandle.
4576 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4577 * linux-arm-low.c (ps_get_thread_area): Likewise.
4578 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4579 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4580 * linux-mips-low.c (ps_get_thread_area): Likewise.
4581 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4582 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4583 * linux-x86-low.c (ps_get_thread_area): Likewise.
4584 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4585
4586 2016-08-19 Pedro Alves <palves@redhat.com>
4587
4588 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4589
4590 2016-08-19 Pedro Alves <palves@redhat.com>
4591
4592 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4593 comment. Use memcpy instead of casting through unsigned long.
4594
4595 2016-08-19 Pedro Alves <palves@redhat.com>
4596
4597 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4598 allocating around 0x80000000.
4599
4600 2016-08-19 Pedro Alves <palves@redhat.com>
4601
4602 PR gdb/20415
4603 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4604 (x32-avx512-linux-ipa.o): New rules.
4605 * configure.ac (x86_64-*-linux*): New x32 check.
4606 * configure.srv (ipa_x32_linux_regobj): New.
4607 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4608 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4609 descriptions.
4610 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4611 descriptions.
4612 * configure: Regenerate.
4613
4614 2016-08-09 Pedro Alves <palves@redhat.com>
4615
4616 PR gdb/18653
4617 * Makefile.in (OBS): Add signals-state-save-restore.o.
4618 (signals-state-save-restore.o): New rule.
4619 * config.in: Regenerate.
4620 * configure: Regenerate.
4621 * linux-low.c: Include "signals-state-save-restore.h".
4622 (linux_create_inferior): Call
4623 restore_original_signals_state.
4624 * server.c: Include "dispositions-save-restore.h".
4625 (captured_main): Call save_original_signals_state.
4626
4627 2016-08-05 Pedro Alves <palves@redhat.com>
4628
4629 * configure: Regenerate.
4630
4631 2016-08-04 Yao Qi <yao.qi@linaro.org>
4632
4633 * linux-low.c (regsets_fetch_inferior_registers): Check
4634 errno is ESRCH or not.
4635
4636 2016-08-02 Yao Qi <yao.qi@linaro.org>
4637
4638 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4639 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4640 (thread_db_load_search): Update.
4641 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4642 td_ta_set_event and td_ta_event_getmsg.
4643
4644 2016-07-26 Pedro Alves <palves@redhat.com>
4645
4646 PR server/20414
4647 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4648 of unsigned long for 64-bit registers and use uint32_t instead of
4649 unsigned int for 32-bit registers.
4650
4651 2016-07-26 Pedro Alves <palves@redhat.com>
4652
4653 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4654 to 'ptrace'.
4655
4656 2016-07-21 Tom Tromey <tom@tromey.com>
4657
4658 * configure: Rebuild.
4659
4660 2016-07-21 Yao Qi <yao.qi@linaro.org>
4661
4662 * mem-break.c (find_gdb_breakpoint): Cast bp to
4663 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4664
4665 2016-07-21 Yao Qi <yao.qi@linaro.org>
4666
4667 * server.c (handle_v_requests): Support s and S actions
4668 if target_supports_software_single_step return true.
4669
4670 2016-07-21 Yao Qi <yao.qi@linaro.org>
4671
4672 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4673 is resume_step, call maybe_hw_step.
4674 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4675 and unstop them.
4676 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4677 breakpoints or not.
4678 (proceed_one_lwp): If resume request is resume_step, install
4679 reinsert breakpoints and call maybe_hw_step.
4680
4681 2016-07-21 Yao Qi <yao.qi@linaro.org>
4682
4683 * linux-low.c (proceed_one_lwp): Declare.
4684 (linux_resume_one_thread): Remove local variable 'step'.
4685 Lift code enqueue signal. Call proceed_one_lwp instead of
4686 linux_resume_one_lwp.
4687
4688 2016-07-21 Yao Qi <yao.qi@linaro.org>
4689
4690 * linux-low.c (linux_resume_one_thread): Call
4691 enqueue_pending_signal.
4692
4693 2016-07-21 Yao Qi <yao.qi@linaro.org>
4694
4695 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4696 * inferiors.c (do_restore_current_thread_cleanup): New function.
4697 (make_cleanup_restore_current_thread): Likewise.
4698 * linux-low.c (install_software_single_step_breakpoints): Call
4699 make_cleanup_restore_current_thread. Switch current_thread to
4700 thread.
4701
4702 2016-07-21 Yao Qi <yao.qi@linaro.org>
4703
4704 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4705 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4706 (clone_one_breakpoint): Likewise.
4707 (delete_reinsert_breakpoints): Change parameter to thread.
4708 Callers updated.
4709 (has_reinsert_breakpoints): Likewise.
4710 (uninsert_reinsert_breakpoints): Likewise.
4711 (reinsert_reinsert_breakpoints): Likewise.
4712 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4713 (delete_reinsert_breakpoints): Likewise.
4714 (reinsert_reinsert_breakpoints): Likewise.
4715 (uninsert_reinsert_breakpoints): Likewise.
4716 (has_reinsert_breakpoints): Likewise.
4717
4718 2016-07-21 Yao Qi <yao.qi@linaro.org>
4719
4720 * inferiors.c (get_thread_process): Make parameter const.
4721 * inferiors.h (get_thread_process): Update declaration.
4722 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4723 Add new parameters child_thread and parent_thread. Callers
4724 updated.
4725 * mem-break.h (clone_all_breakpoints): Update declaration.
4726
4727 2016-07-21 Yao Qi <yao.qi@linaro.org>
4728
4729 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4730 <command_list, handler>: Remove.
4731 (struct gdb_breakpoint): New.
4732 (struct other_breakpoint): New.
4733 (struct reinsert_breakpoint): New.
4734 (is_gdb_breakpoint): New function.
4735 (any_persistent_commands): Update command_list if
4736 is_gdb_breakpoint returns true.
4737 (set_breakpoint): Create breakpoints according to their types.
4738 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4739 (set_gdb_breakpoint_1): Likewise.
4740 (set_gdb_breakpoint): Likewise.
4741 (clear_breakpoint_conditions): Change parameter type to
4742 'struct gdb_breakpoint *'.
4743 (clear_breakpoint_commands): Likewise.
4744 (clear_breakpoint_conditions_and_commands): Likewise.
4745 (add_condition_to_breakpoint): Likewise.
4746 (add_breakpoint_condition): Likewise.
4747 (add_commands_to_breakpoint): Likewise.
4748 (check_breakpoints): Check other_breakpoint.
4749 (clone_one_breakpoint): Clone breakpopint according to its type.
4750 * mem-break.h (struct gdb_breakpoint): Declare.
4751 (set_gdb_breakpoint): Update declaration.
4752 (clear_breakpoint_conditions_and_commands): Likewise.
4753 (add_breakpoint_condition): Likewise.
4754 (add_breakpoint_commands): Likewise.
4755 * server.c (process_point_options): Change parameter type to
4756 'struct gdb_breakpoint *'.
4757
4758 2016-07-21 Yao Qi <yao.qi@linaro.org>
4759
4760 * mem-break.c (set_breakpoint_at): Rename it to ...
4761 (set_breakpoint_type_at): ... it.
4762 (set_breakpoint_at): Call set_breakpoint_type_at.
4763 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4764 * mem-break.h (set_breakpoint_at): Update comments.
4765
4766 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4767
4768 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4769 to buf parameter.
4770 (nios2_store_gregset): Likewise.
4771
4772 2016-07-01 Pedro Alves <palves@redhat.com>
4773 Antoine Tremblay <antoine.tremblay@ericsson.com>
4774
4775 * linux-low.c: Change interface to take the target lwp_info
4776 pointer directly and return void. Handle detaching from a zombie
4777 thread.
4778 (linux_detach_lwp_callback): New function.
4779 (linux_detach): Detach from the leader thread after detaching from
4780 the clone threads.
4781
4782 2016-06-28 Yao Qi <yao.qi@linaro.org>
4783
4784 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4785 for variable new_offset.
4786 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4787 (aarch64_ftrace_insn_reloc_cb): Likewise.
4788 (aarch64_ftrace_insn_reloc_tb): Likewise.
4789 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4790 PRIx64 instead of PRIx32.
4791
4792 2016-06-28 Yao Qi <yao.qi@linaro.org>
4793
4794 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4795 (the_low_target): Install arm_get_syscall_trapinfo.
4796
4797 2016-06-28 Yao Qi <yao.qi@linaro.org>
4798
4799 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4800 function.
4801 (the_low_target): Install aarch64_get_syscall_trapinfo.
4802
4803 2016-06-28 Yao Qi <yao.qi@linaro.org>
4804
4805 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4806 Callers updated.
4807 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4808 Remove parameter sysno.
4809 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4810 sysret.
4811
4812 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4813
4814 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4815 (s390_emit_ne_goto): Likewise.
4816 (s390_emit_lt_goto): Likewise.
4817 (s390_emit_le_goto): Likewise.
4818 (s390_emit_gt_goto): Likewise.
4819 (s390_emit_ge_goto): Likewise.
4820 (s390x_emit_eq_goto): Likewise.
4821 (s390x_emit_ne_goto): Likewise.
4822 (s390x_emit_lt_goto): Likewise.
4823 (s390x_emit_le_goto): Likewise.
4824 (s390x_emit_gt_goto): Likewise.
4825 (s390x_emit_ge_goto): Likewise.
4826 (s390_emit_ops_impl): Mark variable static.
4827 (s390x_emit_ops): Likewise.
4828
4829 2016-06-17 Yao Qi <yao.qi@linaro.org>
4830
4831 * linux-low.c (handle_extended_wait): Call
4832 uninsert_reinsert_breakpoints for the parent process. Remove
4833 reinsert breakpoints from the child process. Reinsert them to
4834 the parent process when vfork is done.
4835 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4836 (reinsert_reinsert_breakpoints): New function.
4837 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4838 (reinsert_reinsert_breakpoints): Declare.
4839
4840 2016-06-17 Yao Qi <yao.qi@linaro.org>
4841
4842 * linux-low.c (handle_extended_wait): If the parent is doing
4843 step-over, remove the reinsert breakpoints from the forked child.
4844
4845 2016-06-17 Yao Qi <yao.qi@linaro.org>
4846
4847 * linux-low.c (unsuspend_all_lwps): Declare.
4848 (linux_low_filter_event): If thread exited, call finish_step_over.
4849 If step-over is finished, unsuspend other threads.
4850
4851 2016-06-17 Yao Qi <yao.qi@linaro.org>
4852
4853 * linux-low.c (linux_resume_one_lwp_throw): Assert
4854 has_reinsert_breakpoints returns false.
4855 * mem-break.c (delete_disabled_breakpoints): Assert
4856 bp type isn't reinsert_breakpoint.
4857
4858 2016-06-17 Yao Qi <yao.qi@linaro.org>
4859
4860 * linux-low.c (maybe_hw_step): New function.
4861 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4862 (finish_step_over): Switch current_thread to lwp temporarily,
4863 and assert has_reinsert_breakpoints returns true.
4864 (proceed_one_lwp): Call maybe_hw_step.
4865 * mem-break.c (has_reinsert_breakpoints): New function.
4866 * mem-break.h (has_reinsert_breakpoints): Declare.
4867
4868 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4869
4870 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4871
4872 2016-05-17 Yao Qi <yao.qi@linaro.org>
4873
4874 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4875 instead of find_inferior.
4876
4877 2016-05-05 Yao Qi <yao.qi@linaro.org>
4878
4879 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4880 Initialize res to zero.
4881
4882 2016-05-05 Yao Qi <yao.qi@linaro.org>
4883
4884 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4885 to uint32_t.
4886
4887 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4888
4889 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4890 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4891 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4892
4893 2016-04-28 Par Olsson <par.olsson@windriver.com>
4894 Simon Marchi <simon.marchi@ericsson.com>
4895
4896 * tracepoint.c (write_inferior_int8): New function.
4897 (cmd_qtenable_disable): Write enable flag using
4898 write_inferior_int8.
4899
4900 2016-04-25 Yao Qi <yao.qi@linaro.org>
4901
4902 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
4903 (need_step_over_p): Return zero if the LWP has pending signals
4904 can be delivered on software single step target.
4905
4906 2016-04-25 Yao Qi <yao.qi@linaro.org>
4907
4908 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
4909 return instead of error.
4910
4911 2016-04-22 Yao Qi <yao.qi@linaro.org>
4912
4913 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
4914 to 23.
4915
4916 2016-04-22 Yao Qi <yao.qi@linaro.org>
4917
4918 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
4919 signal when stepping over breakpoint with software single
4920 step.
4921
4922 2016-04-21 Pedro Alves <palves@redhat.com>
4923
4924 * linux-s390-low.c (s390_collect_ptrace_register)
4925 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
4926 add casts.
4927 (s390_check_regset): Use void * instead of gdb_byte *.
4928
4929 2016-04-20 Pedro Alves <palves@redhat.com>
4930
4931 * configure: Renegerate.
4932
4933 2016-04-20 Yao Qi <yao.qi@linaro.org>
4934
4935 * linux-aarch32-low.c: Include "arch/arm-linux.h".
4936 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
4937 number 16.
4938 (arm_store_gregset): Likewise.
4939
4940 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4941
4942 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4943 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4944 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4945 (amd64-avx-mpx-linux.c): New rules.
4946 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4947 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4948 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4949 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4950 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4951 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4952 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4953 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4954 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4955 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4956 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4957 * linux-x86-low.c (x86_linux_read_description): Add case for
4958 X86_XSTATE_AVX_MPX_MASK.
4959 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4960 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4961 init_registers_i386_avx_mpx_linux.
4962 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4963 (initialize_low_tracepoint): Call
4964 init_registers_i386_avx_mpx_linux.
4965 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4966 (initialize_low_tracepoint): Call
4967 init_registers_amd64_avx_mpx_linux.
4968 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4969 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4970 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4971 declarations.
4972
4973 2016-04-18 Pedro Alves <palves@redhat.com>
4974
4975 * configure: Regenerate.
4976
4977 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4978
4979 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4980 (aarch64_emit_sub): Likewise.
4981
4982 2016-04-12 Pedro Alves <palves@redhat.com>
4983
4984 * utils.c (prepare_to_throw_exception): Delete.
4985
4986 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4987
4988 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4989
4990 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4991
4992 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4993
4994 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4995
4996 * linux-aarch64-ipa.c: Add <elf.h> include.
4997 * linux-ppc-ipa.c: Add <elf.h> include.
4998 * linux-s390-ipa.c: Add <elf.h> include.
4999
5000 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5001
5002 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5003 (get_raw_reg_ptr): Likewise.
5004 (get_trace_state_variable_value_ptr): Likewise.
5005 (set_trace_state_variable_value_ptr): Likewise.
5006 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5007 char *.
5008
5009 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5010 Marcin Kościelnicki <koriakin@0x04.net>
5011
5012 PR/17221
5013 * linux-ppc-low.c (emit_insns): New function.
5014 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5015 (ppc_emit_prologue): New function.
5016 (ppc_emit_epilogue): New function.
5017 (ppc_emit_add): New function.
5018 (ppc_emit_sub): New function.
5019 (ppc_emit_mul): New function.
5020 (ppc_emit_lsh): New function.
5021 (ppc_emit_rsh_signed): New function.
5022 (ppc_emit_rsh_unsigned): New function.
5023 (ppc_emit_ext): New function.
5024 (ppc_emit_zero_ext): New function.
5025 (ppc_emit_log_not): New function.
5026 (ppc_emit_bit_and): New function.
5027 (ppc_emit_bit_or): New function.
5028 (ppc_emit_bit_xor): New function.
5029 (ppc_emit_bit_not): New function.
5030 (ppc_emit_equal): New function.
5031 (ppc_emit_less_signed): New function.
5032 (ppc_emit_less_unsigned): New function.
5033 (ppc_emit_ref): New function.
5034 (ppc_emit_const): New function.
5035 (ppc_emit_reg): New function.
5036 (ppc_emit_pop): New function.
5037 (ppc_emit_stack_flush): New function.
5038 (ppc_emit_swap): New function.
5039 (ppc_emit_stack_adjust): New function.
5040 (ppc_emit_call): New function.
5041 (ppc_emit_int_call_1): New function.
5042 (ppc_emit_void_call_2): New function.
5043 (ppc_emit_if_goto): New function.
5044 (ppc_emit_goto): New function.
5045 (ppc_emit_eq_goto): New function.
5046 (ppc_emit_ne_goto): New function.
5047 (ppc_emit_lt_goto): New function.
5048 (ppc_emit_le_goto): New function.
5049 (ppc_emit_gt_goto): New function.
5050 (ppc_emit_ge_goto): New function.
5051 (ppc_write_goto_address): New function.
5052 (ppc_emit_ops_impl): New static variable.
5053 (ppc64v1_emit_prologue): New function.
5054 (ppc64v2_emit_prologue): New function.
5055 (ppc64_emit_epilogue): New function.
5056 (ppc64_emit_add): New function.
5057 (ppc64_emit_sub): New function.
5058 (ppc64_emit_mul): New function.
5059 (ppc64_emit_lsh): New function.
5060 (ppc64_emit_rsh_signed): New function.
5061 (ppc64_emit_rsh_unsigned): New function.
5062 (ppc64_emit_ext): New function.
5063 (ppc64_emit_zero_ext): New function.
5064 (ppc64_emit_log_not): New function.
5065 (ppc64_emit_bit_and): New function.
5066 (ppc64_emit_bit_or): New function.
5067 (ppc64_emit_bit_xor): New function.
5068 (ppc64_emit_bit_not): New function.
5069 (ppc64_emit_equal): New function.
5070 (ppc64_emit_less_signed): New function.
5071 (ppc64_emit_less_unsigned): New function.
5072 (ppc64_emit_ref): New function.
5073 (ppc64_emit_const): New function.
5074 (ppc64v1_emit_reg): New function.
5075 (ppc64v2_emit_reg): New function.
5076 (ppc64_emit_pop): New function.
5077 (ppc64_emit_stack_flush): New function.
5078 (ppc64_emit_swap): New function.
5079 (ppc64v1_emit_call): New function.
5080 (ppc64v2_emit_call): New function.
5081 (ppc64v1_emit_int_call_1): New function.
5082 (ppc64v2_emit_int_call_1): New function.
5083 (ppc64v1_emit_void_call_2): New function.
5084 (ppc64v2_emit_void_call_2): New function.
5085 (ppc64_emit_if_goto): New function.
5086 (ppc64_emit_eq_goto): New function.
5087 (ppc64_emit_ne_goto): New function.
5088 (ppc64_emit_lt_goto): New function.
5089 (ppc64_emit_le_goto): New function.
5090 (ppc64_emit_gt_goto): New function.
5091 (ppc64_emit_ge_goto): New function.
5092 (ppc64v1_emit_ops_impl): New static variable.
5093 (ppc64v2_emit_ops_impl): New static variable.
5094 (ppc_emit_ops): New function.
5095 (linux_low_target): Wire in ppc_emit_ops.
5096
5097 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5098 Marcin Kościelnicki <koriakin@0x04.net>
5099
5100 PR/17221
5101 * Makefile.in: Add powerpc-*-ipa.o
5102 * configure.srv: Add ipa_obj for powerpc*-linux.
5103 * linux-ppc-ipa.c: New file.
5104 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5105 includes.
5106 (PPC_FIELD): New macro.
5107 (PPC_SEXT): New macro.
5108 (PPC_OP6): New macro.
5109 (PPC_BO): New macro.
5110 (PPC_LI): New macro.
5111 (PPC_BD): New macro.
5112 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5113 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5114 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5115 (ppc_get_thread_area): New function.
5116 (is_elfv2_inferior): New function.
5117 (gen_ds_form): New function.
5118 (GEN_STD): New macro.
5119 (GEN_STDU): New macro.
5120 (GEN_LD): New macro.
5121 (GEN_LDU): New macro.
5122 (gen_d_form): New function.
5123 (GEN_ADDI): New macro.
5124 (GEN_ADDIS): New macro.
5125 (GEN_LI): New macro.
5126 (GEN_LIS): New macro.
5127 (GEN_ORI): New macro.
5128 (GEN_ORIS): New macro.
5129 (GEN_LWZ): New macro.
5130 (GEN_STW): New macro.
5131 (GEN_STWU): New macro.
5132 (gen_xfx_form): New function.
5133 (GEN_MFSPR): New macro.
5134 (GEN_MTSPR): New macro.
5135 (GEN_MFCR): New macro.
5136 (GEN_MTCR): New macro.
5137 (GEN_SYNC): New macro.
5138 (GEN_LWSYNC): New macro.
5139 (gen_x_form): New function.
5140 (GEN_OR): New macro.
5141 (GEN_MR): New macro.
5142 (GEN_LWARX): New macro.
5143 (GEN_STWCX): New macro.
5144 (GEN_CMPW): New macro.
5145 (gen_md_form): New function.
5146 (GEN_RLDICL): New macro.
5147 (GEN_RLDICR): New macro.
5148 (gen_i_form): New function.
5149 (GEN_B): New macro.
5150 (GEN_BL): New macro.
5151 (gen_b_form): New function.
5152 (GEN_BNE): New macro.
5153 (GEN_LOAD): New macro.
5154 (GEN_STORE): New macro.
5155 (gen_limm): New function.
5156 (gen_atomic_xchg): New function.
5157 (gen_call): New function.
5158 (ppc_relocate_instruction): New function.
5159 (ppc_install_fast_tracepoint_jump_pad): New function.
5160 (ppc_get_min_fast_tracepoint_insn_len): New function.
5161 (ppc_get_ipa_tdesc_idx): New function.
5162 (the_low_target): Wire in the new functions.
5163 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5164 tdescs.
5165 * linux-ppc-tdesc.h: New file.
5166
5167 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5168
5169 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5170 (alloc_jump_pad_buffer): New function.
5171 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5172 (alloc_jump_pad_buffer): New function.
5173 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5174 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5175 (alloc_jump_pad_buffer): New function.
5176 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5177 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5178 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5179 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5180
5181 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5182
5183 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5184 * linux-amd64-ipa.c: Likewise.
5185 * linux-i386-ipa.c: Likewise.
5186 * linux-s390-ipa.c: Likewise.
5187 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5188 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5189 set_trace_state_variable_value_ptr.
5190 (struct ipa_sym_addresses): Likewise.
5191 (symbol_list): Likewise.
5192 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5193 accessing gdb_collect directly.
5194 (gdb_collect_ptr_type): New typedef.
5195 (get_raw_reg_ptr_type): New typedef.
5196 (get_trace_state_variable_value_ptr_type): New typedef.
5197 (set_trace_state_variable_value_ptr_type): New typedef.
5198 (gdb_collect_ptr): New global.
5199 (get_raw_reg_ptr): New global.
5200 (get_trace_state_variable_value_ptr): New global.
5201 (set_trace_state_variable_value_ptr): New global.
5202 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5203 accessing get_raw_reg directly.
5204 (get_get_tsv_func_addr): Likewise for
5205 get_trace_state_variable_value_ptr.
5206 (get_set_tsv_func_addr): Likewise for
5207 set_trace_state_variable_value_ptr.
5208 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5209
5210 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5211
5212 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5213
5214 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5215
5216 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5217 packets.
5218 (relocate_instruction): Remove own_buf.
5219 * server.c (own_buf): Make global.
5220 (handle_v_requests): Make global.
5221 * server.h (own_buf): New declaration.
5222 (handle_v_requests): New prototype.
5223
5224 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5225
5226 PR 18377
5227 * linux-s390-low.c (add_insns): New function.
5228 (s390_emit_prologue): New function.
5229 (s390_emit_epilogue): New function.
5230 (s390_emit_add): New function.
5231 (s390_emit_sub): New function.
5232 (s390_emit_mul): New function.
5233 (s390_emit_lsh): New function.
5234 (s390_emit_rsh_signed): New function.
5235 (s390_emit_rsh_unsigned): New function.
5236 (s390_emit_ext): New function.
5237 (s390_emit_log_not): New function.
5238 (s390_emit_bit_and): New function.
5239 (s390_emit_bit_or): New function.
5240 (s390_emit_bit_xor): New function.
5241 (s390_emit_bit_not): New function.
5242 (s390_emit_equal): New function.
5243 (s390_emit_less_signed): New function.
5244 (s390_emit_less_unsigned): New function.
5245 (s390_emit_ref): New function.
5246 (s390_emit_if_goto): New function.
5247 (s390_emit_goto): New function.
5248 (s390_write_goto_address): New function.
5249 (s390_emit_litpool): New function.
5250 (s390_emit_const): New function.
5251 (s390_emit_call): New function.
5252 (s390_emit_reg): New function.
5253 (s390_emit_pop): New function.
5254 (s390_emit_stack_flush): New function.
5255 (s390_emit_zero_ext): New function.
5256 (s390_emit_swap): New function.
5257 (s390_emit_stack_adjust): New function.
5258 (s390_emit_set_r2): New function.
5259 (s390_emit_int_call_1): New function.
5260 (s390_emit_void_call_2): New function.
5261 (s390_emit_eq_goto): New function.
5262 (s390_emit_ne_goto): New function.
5263 (s390_emit_lt_goto): New function.
5264 (s390_emit_le_goto): New function.
5265 (s390_emit_gt_goto): New function.
5266 (s390_emit_ge_goto): New function.
5267 (s390x_emit_prologue): New function.
5268 (s390x_emit_epilogue): New function.
5269 (s390x_emit_add): New function.
5270 (s390x_emit_sub): New function.
5271 (s390x_emit_mul): New function.
5272 (s390x_emit_lsh): New function.
5273 (s390x_emit_rsh_signed): New function.
5274 (s390x_emit_rsh_unsigned): New function.
5275 (s390x_emit_ext): New function.
5276 (s390x_emit_log_not): New function.
5277 (s390x_emit_bit_and): New function.
5278 (s390x_emit_bit_or): New function.
5279 (s390x_emit_bit_xor): New function.
5280 (s390x_emit_bit_not): New function.
5281 (s390x_emit_equal): New function.
5282 (s390x_emit_less_signed): New function.
5283 (s390x_emit_less_unsigned): New function.
5284 (s390x_emit_ref): New function.
5285 (s390x_emit_if_goto): New function.
5286 (s390x_emit_const): New function.
5287 (s390x_emit_call): New function.
5288 (s390x_emit_reg): New function.
5289 (s390x_emit_pop): New function.
5290 (s390x_emit_stack_flush): New function.
5291 (s390x_emit_zero_ext): New function.
5292 (s390x_emit_swap): New function.
5293 (s390x_emit_stack_adjust): New function.
5294 (s390x_emit_int_call_1): New function.
5295 (s390x_emit_void_call_2): New function.
5296 (s390x_emit_eq_goto): New function.
5297 (s390x_emit_ne_goto): New function.
5298 (s390x_emit_lt_goto): New function.
5299 (s390x_emit_le_goto): New function.
5300 (s390x_emit_gt_goto): New function.
5301 (s390x_emit_ge_goto): New function.
5302 (s390_emit_ops): New function.
5303 (struct linux_target_ops): Fill in emit_ops hook.
5304
5305 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5306
5307 PR 18377
5308 * Makefile.in: Add s390 IPA files.
5309 * configure.srv: Build IPA for s390.
5310 * linux-s390-ipa.c: New file.
5311 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5312 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5313 (tdesc_s390_linux32): Likewise.
5314 (init_registers_s390_linux32v1): Likewise.
5315 (tdesc_s390_linux32v1): Likewise.
5316 (init_registers_s390_linux32v2): Likewise.
5317 (tdesc_s390_linux32v2): Likewise.
5318 (init_registers_s390_linux64): Likewise.
5319 (tdesc_s390_linux64): Likewise.
5320 (init_registers_s390_linux64v1): Likewise.
5321 (tdesc_s390_linux64v1): Likewise.
5322 (init_registers_s390_linux64v2): Likewise.
5323 (tdesc_s390_linux64v2): Likewise.
5324 (init_registers_s390_te_linux64): Likewise.
5325 (tdesc_s390_te_linux64): Likewise.
5326 (init_registers_s390_vx_linux64): Likewise.
5327 (tdesc_s390_vx_linux64): Likewise.
5328 (init_registers_s390_tevx_linux64): Likewise.
5329 (tdesc_s390_tevx_linux64): Likewise.
5330 (init_registers_s390x_linux64): Likewise.
5331 (tdesc_s390x_linux64): Likewise.
5332 (init_registers_s390x_linux64v1): Likewise.
5333 (tdesc_s390x_linux64v1): Likewise.
5334 (init_registers_s390x_linux64v2): Likewise.
5335 (tdesc_s390x_linux64v2): Likewise.
5336 (init_registers_s390x_te_linux64): Likewise.
5337 (tdesc_s390x_te_linux64): Likewise.
5338 (init_registers_s390x_vx_linux64): Likewise.
5339 (tdesc_s390x_vx_linux64): Likewise.
5340 (init_registers_s390x_tevx_linux64): Likewise.
5341 (tdesc_s390x_tevx_linux64): Likewise.
5342 (have_hwcap_s390_vx): New static variable.
5343 (s390_arch_setup): Fill have_hwcap_s390_vx.
5344 (s390_get_thread_area): New function.
5345 (s390_ft_entry_gpr_esa): New const.
5346 (s390_ft_entry_gpr_zarch): New const.
5347 (s390_ft_entry_misc): New const.
5348 (s390_ft_entry_fr): New const.
5349 (s390_ft_entry_vr): New const.
5350 (s390_ft_main_31): New const.
5351 (s390_ft_main_64): New const.
5352 (s390_ft_exit_fr): New const.
5353 (s390_ft_exit_vr): New const.
5354 (s390_ft_exit_misc): New const.
5355 (s390_ft_exit_gpr_esa): New const.
5356 (s390_ft_exit_gpr_zarch): New const.
5357 (append_insns): New function.
5358 (s390_relocate_instruction): New function.
5359 (s390_install_fast_tracepoint_jump_pad): New function.
5360 (s390_get_min_fast_tracepoint_insn_len): New function.
5361 (s390_get_ipa_tdesc_idx): New function.
5362 (struct linux_target_ops): Wire in the above functions.
5363 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5364 * linux-s390-tdesc.h: New file.
5365
5366 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5367
5368 * linux-s390-low.c (s390_supports_tracepoints): New function.
5369 (struct linux_target_ops): Fill supports_tracepoints hook.
5370
5371 2016-03-18 Yao Qi <yao.qi@linaro.org>
5372
5373 * linux-low.c (lwp_signal_can_be_delivered): New function.
5374 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5375
5376 2016-03-18 Yao Qi <yao.qi@linaro.org>
5377
5378 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5379 0 if signal is enqueued. Remove 'signal' from one debugging
5380 message. Move one debugging message to some lines below.
5381 Remove code setting 'signal' to 0.
5382
5383 2016-03-18 Yao Qi <yao.qi@linaro.org>
5384
5385 * linux-low.c (linux_low_filter_event): Remove redundant
5386 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5387
5388 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5389
5390 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5391 (struct linux_target_ops): Wire in the above.
5392
5393 2016-03-03 Yao Qi <yao.qi@linaro.org>
5394
5395 * linux-low.c: Update comments to start_step_over.
5396
5397 2016-03-03 Yao Qi <yao.qi@linaro.org>
5398
5399 PR server/19736
5400 * linux-low.c (handle_extended_wait): Set child suspended
5401 if event_lwp->bp_reinsert isn't zero.
5402
5403 2016-03-02 Yao Qi <yao.qi@linaro.org>
5404
5405 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5406 enqueue_pending_signal.
5407
5408 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5409
5410 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5411 is actually loaded.
5412
5413 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5414
5415 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5416 (s390_regmap_3264) [!__s390x__]: New global.
5417 (s390_collect_ptrace_register): Skip map entries containing -1.
5418 (s390_supply_ptrace_register): Ditto.
5419 (s390_fill_gprs_high): New function.
5420 (s390_store_gprs_high): New function.
5421 (s390_regsets): Add NT_S390_HIGH_GPRS.
5422 (s390_get_hwcap): Enable on 31-bit.
5423 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5424 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5425 Detect NT_S390_HIGH_GPRS.
5426 (s390_usrregs_info_3264): Enable on 31-bit.
5427 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5428 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5429
5430 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5431
5432 PR gdb/13808
5433 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5434 * configure.srv: Ditto.
5435 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5436 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5437 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5438 (init_registers_amd64_linux): Remove prototype.
5439 (tdesc_amd64_linux): Remove declaration.
5440 (get_ipa_tdesc): New function.
5441 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5442 initialize remaining tdescs.
5443 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5444 (init_registers_i386_linux): Remove prototype.
5445 (tdesc_i386_linux): Remove declaration.
5446 (get_ipa_tdesc): New function.
5447 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5448 initialize remaining tdescs.
5449 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5450 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5451 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5452 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5453 (x86_get_ipa_tdesc_idx): New function.
5454 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5455 * linux-x86-tdesc.h: New file.
5456 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5457 (target_get_ipa_tdesc_idx): New macro.
5458 * tracepoint.c (ipa_tdesc_idx): New macro.
5459 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5460 (symbol_list): Add ipa_tdesc_idx.
5461 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5462 (ipa_tdesc): Remove.
5463 (ipa_tdesc_idx): New variable.
5464 (get_context_regcache): Use get_ipa_tdesc.
5465 (gdb_collect): Ditto.
5466 (gdb_probe): Ditto.
5467 * tracepoint.h (get_ipa_tdesc): New prototype.
5468 (ipa_tdesc): Remove.
5469
5470 2016-02-24 Pedro Alves <palves@redhat.com>
5471
5472 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5473 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5474 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5475 Factor out common code between the USE_SIGTRAP_SIGINFO and
5476 !USE_SIGTRAP_SIGINFO blocks.
5477 (linux_low_filter_event): Call save_stop_reason instead of
5478 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5479 Update comments.
5480 (linux_wait_1): Update comments.
5481
5482 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
5483
5484 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
5485 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
5486 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
5487 ppc_insert_point, ppc_remove_point.
5488
5489 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
5490
5491 * linux-s390-low.c (s390_supports_z_point_type): New function.
5492 (struct linux_target_ops): Wire s390_supports_z_point_type in.
5493
5494 2016-02-16 Yao Qi <yao.qi@linaro.org>
5495
5496 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
5497 PC. Get pc from regcache_read_pc.
5498
5499 2016-02-12 Yao Qi <yao.qi@linaro.org>
5500
5501 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
5502 or linux_get_pc_32bit.
5503 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
5504
5505 2016-02-12 Yao Qi <yao.qi@linaro.org>
5506
5507 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
5508 arm_linux_get_next_pcs_fixup.
5509
5510 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5511
5512 * tracepoint.c (x_tracepoint_action_download): Change
5513 write_inferior_data_ptr to write_inferior_data_pointer.
5514 (cmd_qtstart): Likewise.
5515 (write_inferior_data_ptr): Remove.
5516 (download_agent_expr): Change write_inferior_data_ptr to
5517 write_inferior_data_pointer.
5518 (download_tracepoint_1): Likewise.
5519 (download_tracepoint): Likewise.
5520 (download_trace_state_variables): Likewise.
5521
5522 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
5523 Marcin Kościelnicki <koriakin@0x04.net>
5524
5525 * tracepoint.c (struct tracepoint_action_ops): Remove.
5526 (struct tracepoint_action): Remove ops.
5527 (m_tracepoint_action_download, r_tracepoint_action_download)
5528 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5529 size and offset accordingly.
5530 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5531 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5532 (tracepoint_action_send, tracepoint_action_download): New functions.
5533 Helpers for trace action handlers.
5534 (add_tracepoint_action): Remove setup actions ops.
5535 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5536
5537 2016-02-10 Yao Qi <yao.qi@linaro.org>
5538
5539 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5540
5541 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5542
5543 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5544 to AC_OUTPUT.
5545 * configure: Regenerate.
5546
5547 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5548
5549 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5550 void * to gdb_byte *.
5551 * linux-low.c (siginfo_fixup): Likewise.
5552 (linux_xfer_siginfo): Likewise.
5553 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5554 Likewise.
5555 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5556
5557 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5558
5559 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5560 to srv_tgtobj.
5561 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5562 to srv_tgtobj.
5563 * linux-x86-low.c [__x86_64__]: Include
5564 "nat/amd64-linux-siginfo.h".
5565 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5566 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5567 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5568 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5569 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5570 (cpt_si_fd, si_timerid, si_overrun): Move from
5571 nat/amd64-linux-siginfo.c.
5572 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5573
5574 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5575
5576 * server.c (skip_to_semicolon): Remove.
5577 (process_point_options): Use strchrnul instead of
5578 skip_to_semicolon.
5579
5580 2016-01-26 Yao Qi <yao.qi@linaro.org>
5581
5582 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5583 * linux-low.c (install_software_single_step_breakpoints): Don't
5584 call regcache_read_pc.
5585 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5586 argument pc.
5587
5588 2016-01-26 Yao Qi <yao.qi@linaro.org>
5589
5590 * linux-low.c (install_software_single_step_breakpoints): Call
5591 regcache_read_pc instead of get_pc.
5592
5593 2016-01-26 Yao Qi <yao.qi@linaro.org>
5594
5595 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5596 (unblock_async_io): Rename to ...
5597 (block_unblock_async_io): ... it. New function.
5598 (enable_async_io): Don't install SIGIO handler. Unblock it
5599 instead.
5600 (disable_async_io): Don't ignore SIGIO. Block it instead.
5601 (initialize_async_io): Install SIGIO handler. Don't call
5602 unblock_async_io.
5603
5604 2016-01-26 Yao Qi <yao.qi@linaro.org>
5605
5606 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5607 first character is '\003', call *the_target->request_interrupt.
5608
5609 2016-01-25 Yao Qi <yao.qi@linaro.org>
5610
5611 * remote-utils.c (new_thread_notify): Remove.
5612 (dead_thread_notify): Likewise.
5613 * remote-utils.h (new_thread_notify): Remove declaration.
5614 (dead_thread_notify): Likewise.
5615
5616 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5617
5618 * gdb.trace/pending.exp: Fix expected message on continue.
5619
5620 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5621
5622 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5623 it works properly on big-endian machines where sizeof (CORE_ADDR)
5624 != sizeof (void *).
5625
5626 2016-01-21 Pedro Alves <palves@redhat.com>
5627
5628 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5629 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5630 * configure: Regenerate.
5631
5632 2016-01-21 Yao Qi <yao.qi@linaro.org>
5633
5634 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5635 is_thumb and set it according to CPSR saved on the stack.
5636 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5637 arm_sigreturn_next_pc.
5638
5639 2016-01-18 Yao Qi <yao.qi@linaro.org>
5640
5641 * linux-low.c (linux_set_pc_64bit): New function.
5642 (linux_get_pc_64bit): New function.
5643 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5644 Declare.
5645 * linux-sparc-low.c (debug_threads): Remove declaration.
5646 (sparc_get_pc): Remove.
5647 (the_low_target): Use linux_get_pc_64bit instead of
5648 sparc_get_pc.
5649 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5650 (the_low_target): Use linux_get_pc_64bit and
5651 linux_set_pc_64bit.
5652
5653 2016-01-18 Yao Qi <yao.qi@linaro.org>
5654
5655 * linux-arm-low.c (debug_threads): Remove declaration.
5656 (arm_get_pc, arm_set_pc): Remove.
5657 (the_low_target): Use linux_get_pc_32bit and
5658 linux_set_pc_32bit.
5659 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5660 (the_low_target): Use linux_get_pc_32bit and
5661 linux_set_pc_32bit.
5662 * linux-cris-low.c (debug_threads): Remove declaration.
5663 (cris_get_pc, cris_set_pc,): Remove.
5664 (the_low_target): Use linux_get_pc_32bit and
5665 linux_set_pc_32bit.
5666 * linux-crisv32-low.c (debug_threads): Remove declaration.
5667 (cris_get_pc, cris_set_pc): Remove.
5668 (the_low_target): Use linux_get_pc_32bit and
5669 linux_set_pc_32bit.
5670 * linux-low.c: Include inttypes.h.
5671 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5672 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5673 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5674 (the_low_target): Use linux_get_pc_32bit and
5675 linux_set_pc_32bit.
5676 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5677 (the_low_target): Use linux_get_pc_32bit and
5678 linux_set_pc_32bit.
5679 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5680 (the_low_target): Use linux_get_pc_32bit and
5681 linux_set_pc_32bit.
5682 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5683 (the_low_target): Use linux_get_pc_32bit and
5684 linux_set_pc_32bit.
5685 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5686 (the_low_target): Use linux_get_pc_32bit and
5687 linux_set_pc_32bit.
5688
5689 2016-01-18 Gary Benson <gbenson@redhat.com>
5690
5691 * configure.ac (AC_FUNC_FORK): New check.
5692 * config.in: Regenerate.
5693 * configure: Likewise.
5694
5695 2016-01-14 Yao Qi <yao.qi@linaro.org>
5696
5697 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5698 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5699 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5700 arm_get_next_pcs_ctor.
5701
5702 2016-01-12 Josh Stone <jistone@redhat.com>
5703 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5704
5705 * inferiors.h: Include "gdb_vecs.h".
5706 (struct process_info): Add syscalls_to_catch.
5707 * inferiors.c (remove_process): Free syscalls_to_catch.
5708 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5709 syscall_return stops.
5710 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5711 * server.c (handle_general_set): Handle QCatchSyscalls.
5712 (handle_query): Report support for QCatchSyscalls.
5713 * target.h (struct target_ops): Add supports_catch_syscall.
5714 (target_supports_catch_syscall): New macro.
5715 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5716 (struct lwp_info): Add syscall_state.
5717 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5718 Maintain syscall_state and syscalls_to_catch across exec.
5719 (get_syscall_trapinfo): New function, proxy to the_low_target.
5720 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5721 (linux_low_filter_event): Toggle syscall_state entry/return for
5722 syscall traps, and set it ignored for all others.
5723 (gdb_catching_syscalls_p): New function.
5724 (gdb_catch_this_syscall_p): New function.
5725 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5726 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5727 (linux_supports_catch_syscall): New function.
5728 (linux_target_ops): Install it.
5729 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5730 (the_low_target): Install it.
5731
5732 2016-01-12 Mike Frysinger <vapier@gentoo.org>
5733
5734 * acinclude.m4: Include new ../warning.m4 file.
5735 * configure: Regenerated.
5736 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5737
5738 2016-01-12 Mike Frysinger <vapier@gentoo.org>
5739
5740 * ax.c (is_goto_target): Mark static.
5741 * linux-low.c (register_addr): Likewise.
5742 (linux_fetch_registers, linux_store_registers): Likewise.
5743 * mem-break.c (any_persistent_commands): Fix old prototype.
5744 (add_commands_to_breakpoint): Mark static.
5745 * regcache.c (find_register_by_name): Delete unused func.
5746 * remote-utils.c (hex_or_minus_one): Mark static.
5747 * server.c (monitor_show_help): Mark static.
5748 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5749 handle_v_requests): Likewise.
5750
5751 2016-01-12 Pedro Alves <palves@redhat.com>
5752
5753 Remove use of the registered trademark symbol throughout.
5754
5755 2016-01-08 Yao Qi <yao.qi@linaro.org>
5756
5757 * remote-utils.c (getpkt): If c is '\003', call target hook
5758 request_interrupt.
5759
5760 2016-01-06 Yao Qi <yao.qi@linaro.org>
5761
5762 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5763 linux-aarch32-low.c.
5764 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5765 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5766 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5767 (thumb2_breakpoint): Declare.
5768 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5769 linux-aarch32-low.h.
5770 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5771 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5772 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5773
5774 2016-01-01 Joel Brobecker <brobecker@adacore.com>
5775
5776 * gdbreplay.c (gdbreplay_version): Change copyright year in
5777 version message.
5778 * server.c (gdbserver_version): Likewise.
5779
5780 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5781
5782 * server.c (crc32_table): Delete.
5783 (crc32): Use libiberty's xcrc32 function.
5784
5785 2015-12-22 Joel Brobecker <brobecker@adacore.com>
5786
5787 * lynx-low.c (lynx_delete_thread_callback): New function.
5788 (lynx_mourn): Properly delete our process and all of its
5789 threads. Remove call to clear_inferiors.
5790
5791 2015-12-22 Joel Brobecker <brobecker@adacore.com>
5792
5793 * target.c (thread_search_callback): Add check that
5794 the thread_stopped target callback is not NULL before
5795 calling it.
5796
5797 2015-12-21 Yao Qi <yao.qi@linaro.org>
5798
5799 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5800 arm breakpoint.
5801
5802 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5803
5804 * server.c (handle_query): Call target_supports_software_single_step.
5805
5806 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5807
5808 * linux-low.c (single_step): New function.
5809 (linux_resume_one_lwp_throw): Call single_step.
5810 (start_step_over): Likewise.
5811
5812 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5813
5814 * Makefile.in (SFILES): Append arch/arm-linux.c,
5815 arch/arm-get-next-pcs.c.
5816 (arm-linux.o): New rule.
5817 (arm-get-next-pcs.o): New rule.
5818 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5819 arm-linux.o.
5820 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5821 to linux-aarch32-low.c.
5822 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5823 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5824 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5825 (thumb2_breakpoint_len): Likewise.
5826 (arm_is_thumb_mode): Make non-static.
5827 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5828 from linux-aarch32-low.c.
5829 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5830 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5831 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5832 (thumb2_breakpoint_len): Likewise.
5833 (arm_is_thumb_mode): New declaration.
5834 * linux-arm-low.c: Include arch/arm-linux.h
5835 aarch/arm-get-next-pcs.h, sys/syscall.h.
5836 (get_next_pcs_ops): New struct.
5837 (get_next_pcs_addr_bits_remove): New function.
5838 (get_next_pcs_is_thumb): New function.
5839 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5840 (arm_sigreturn_next_pc): Likewise.
5841 (get_next_pcs_syscall_next_pc): Likewise.
5842 (arm_gdbserver_get_next_pcs): Likewise.
5843 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5844 Initialize.
5845 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5846 * server.h: Include gdb_vecs.h.
5847
5848 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5849
5850 * Makefile.in (SFILES): Append common/common-regcache.c.
5851 (OBS): Append common-regcache.o.
5852 (common-regcache.o): New rule.
5853 * regcache.c (init_register_cache): Initialize cache to
5854 REG_UNAVAILABLE.
5855 (regcache_raw_read_unsigned): New function.
5856 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5857 register_status enum.
5858
5859 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5860
5861 * linux-aarch64-low.c (the_low_targets): Rename
5862 breakpoint_reinsert_addr to get_next_pcs.
5863 * linux-arm-low.c (the_low_targets): Likewise.
5864 * linux-bfin-low.c (the_low_targets): Likewise.
5865 * linux-cris-low.c (the_low_targets): Likewise.
5866 * linux-crisv32-low.c (the_low_targets): Likewise.
5867 * linux-low.c (can_software_single_step): Likewise.
5868 (install_software_single_step_breakpoints): New function.
5869 (start_step_over): Use install_software_single_step_breakpoints.
5870 * linux-low.h: New CORE_ADDR vector.
5871 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5872 get_next_pcs.
5873 * linux-mips-low.c (the_low_targets): Likewise.
5874 * linux-nios2-low.c (the_low_targets): Likewise.
5875 * linux-sparc-low.c (the_low_targets): Likewise.
5876
5877 2015-12-17 Pedro Alves <palves@redhat.com>
5878
5879 * linux-low.c (linux_kill_one_lwp): Remove references to
5880 LinuxThreads.
5881 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5882 to 'kill'.
5883 (linux_init_signals): Delete.
5884 (initialize_low): Adjust.
5885 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5886
5887 2015-12-16 Pedro Alves <palves@redhat.com>
5888
5889 * configure.ac (compiler warning flags): When testing a
5890 -Wno-foo option, check whether -Wfoo works instead.
5891 * configure: Regenerate.
5892
5893 2015-12-11 Don Breazeal <donb@codesourcery.com>
5894
5895 * server.c (process_serial_event): Don't exit from gdbserver
5896 in remote mode if there are still active inferiors.
5897
5898 2015-12-11 Yao Qi <yao.qi@linaro.org>
5899
5900 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
5901 arm_breakpoint_at if the process is 32-bit.
5902
5903 2015-12-11 Yao Qi <yao.qi@linaro.org>
5904
5905 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
5906 arm breakpoint.
5907
5908 2015-12-07 Yao Qi <yao.qi@linaro.org>
5909
5910 * configure.srv: Append arm.o to srv_tgtobj for
5911 aarch64*-*-linux* target.
5912 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
5913 from linux-arm-low.c.
5914 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5915 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5916 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5917 (thumb2_breakpoint_len): Likewise.
5918 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
5919 (arm_breakpoint_kinds): Likewise.
5920 (arm_breakpoint_kind_from_pc): Likewise.
5921 (arm_sw_breakpoint_from_kind): Likewise.
5922 (arm_breakpoint_kind_from_current_state): Likewise.
5923 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
5924 (arm_sw_breakpoint_from_kind): Declare.
5925 (arm_breakpoint_kind_from_current_state): Declare.
5926 (arm_breakpoint_at): Declare.
5927 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
5928 arm_sw_breakpoint_from_kind if process is 32-bit.
5929 (aarch64_breakpoint_kind_from_pc): New function.
5930 (aarch64_breakpoint_kind_from_current_state): New function.
5931 (the_low_target): Initialize fields breakpoint_kind_from_pc
5932 and breakpoint_kind_from_current_state.
5933 * linux-arm-low.c (arm_breakpoint_kinds): Move to
5934 linux-aarch32-low.c.
5935 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
5936 (arm_breakpoint, arm_breakpoint_len): Likewise.
5937 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5938 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5939 (arm_is_thumb_mode): Likewise.
5940 (arm_breakpoint_at): Likewise.
5941 (arm_breakpoint_kind_from_pc): Likewise.
5942 (arm_sw_breakpoint_from_kind): Likewise.
5943 (arm_breakpoint_kind_from_current_state): Likewise.
5944
5945 Revert:
5946 2015-08-04 Yao Qi <yao.qi@linaro.org>
5947
5948 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5949 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5950 * server.c (extended_protocol): Remove "static".
5951 * server.h (extended_protocol): Declare it.
5952
5953 2015-12-04 Josh Stone <jistone@redhat.com>
5954
5955 * target.h (struct target_ops) <arch_setup>: Rename to ...
5956 (struct target_ops) <post_create_inferior>: ... this.
5957 (target_arch_setup): Rename to ...
5958 (target_post_create_inferior): ... this, calling post_create_inferior.
5959 * server.c (start_inferior): Update target_arch_setup calls to
5960 target_post_create_inferior.
5961 * linux-low.c (linux_low_ptrace_options): Forward declare.
5962 (linux_arch_setup): Update its comment for general use.
5963 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5964 (struct linux_target_ops): Use linux_post_create_inferior.
5965 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5966 to post_create_inferior.
5967 * nto-low.c (struct nto_target_ops): Likewise.
5968 * spu-low.c (struct spu_target_ops): Likewise.
5969 * win32-low.c (struct win32_target_ops): Likewise.
5970
5971 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5972
5973 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5974
5975 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5976
5977 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5978 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5979 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5980 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5981 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5982 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5983 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5984 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5985 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5986 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5987 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5988 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5989
5990 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5991
5992 * linux-low.c (linux_look_up_symbols): Don't call
5993 linux_supports_traceclone.
5994 * linux-low.h (thread_db_init): Remove use_events argument.
5995 * thread-db.c (thread_db_use_event): Remove global variable.
5996 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5997 (struct thread_db) <td_create_bp>: Remove field.
5998 (thread_db_create_event): Remove function.
5999 (thread_db_enable_reporting): Likewise.
6000 (find_one_thread): Don't check for thread_db_use_events.
6001 (attach_thread): Likewise.
6002 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6003 (try_thread_db_load_1): Don't check for thread_db_use_events.
6004 (thread_db_init): Remove use_events argument and thread events
6005 handling.
6006 (remove_thread_event_breakpoints): Remove function.
6007 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6008
6009 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6010
6011 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6012 New function.
6013 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6014 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6015 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6016 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6017 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6018 Initialize.
6019 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6020 New function.
6021 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6022 * linux-low.c (can_hardware_single_step): Use
6023 supports_hardware_single_step.
6024 (can_software_single_step): New function.
6025 (start_step_over): Call can_software_single_step.
6026 (linux_supports_hardware_single_step): New function.
6027 (struct target_ops) <supports_software_single_step>: Initialize.
6028 * linux-low.h (struct linux_target_ops)
6029 <supports_hardware_single_step>: Initialize.
6030 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6031 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6032 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6033 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6034 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6035 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6036 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6037 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6038 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6039 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6040 Initialize.
6041 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6042 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6043 Initialize.
6044 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6045 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6046 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6047 New function.
6048 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6049 * target.h (struct target_ops): <supports_software_single_step>:
6050 New field.
6051 (target_supports_software_single_step): New macro.
6052
6053 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6054
6055 * linux-low.c (linux_wait_1): Fix pc advance condition.
6056 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6057 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6058
6059 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6060
6061 * linux-arm-low.c (arm_is_thumb_mode): New function.
6062 (arm_breakpoint_at): Use arm_is_thumb_mode.
6063 (arm_breakpoint_kind_from_current_state): New function.
6064 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6065 Initialize.
6066 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6067 (linux_breakpoint_kind_from_current_state): New function.
6068 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6069 * linux-low.h (struct linux_target_ops)
6070 <breakpoint_kind_from_current_state>: New field.
6071 * target.h (struct target_ops): Likewise.
6072 (target_breakpoint_kind_from_current_state): New macro.
6073
6074 2015-11-30 Pedro Alves <palves@redhat.com>
6075
6076 * linux-low.c (linux_resume): Wake up the event loop before
6077 returning.
6078
6079 2015-11-30 Pedro Alves <palves@redhat.com>
6080
6081 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6082 check.
6083 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6084 to -1.
6085 * target.c (struct thread_search): New structure.
6086 (thread_search_callback): New function.
6087 (prev_general_thread): New global.
6088 (prepare_to_access_memory, done_accessing_memory): New functions.
6089 * target.h (prepare_to_access_memory, done_accessing_memory):
6090 Replace macros with function declarations.
6091
6092 2015-11-30 Pedro Alves <palves@redhat.com>
6093
6094 PR 14618
6095 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6096 report TARGET_WAITKIND_NO_RESUMED.
6097 * remote-utils.c (prepare_resume_reply): Handle
6098 TARGET_WAITKIND_NO_RESUMED.
6099 * server.c (report_no_resumed): New global.
6100 (handle_query) <qSupported>: Handle "no-resumed+". Report
6101 "no-resumed+" support.
6102 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6103 return error if the client doesn't support no-resumed events.
6104 (push_stop_notification): New function.
6105 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6106 events if the client supports them.
6107
6108 2015-11-30 Pedro Alves <palves@redhat.com>
6109
6110 * linux-low.c (thread_still_has_status_pending_p): Don't check
6111 vCont;t here.
6112 (lwp_resumed): New function.
6113 (status_pending_p_callback): Return early if the LWP is not
6114 supposed to be resumed.
6115
6116 2015-11-30 Pedro Alves <palves@redhat.com>
6117
6118 * linux-low.c (handle_extended_wait): Assert that the LWP's
6119 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6120 thread create events, leave the new child's status pending.
6121 (linux_low_filter_event): If GDB wants to hear about thread exit
6122 events, leave the LWP marked dead and don't delete it.
6123 (linux_wait_for_event_filtered): Don't check for thread exit.
6124 (filter_exit_event): New function.
6125 (linux_wait_1): Use it, when returning an exit event.
6126 (linux_resume_one_lwp_throw): Assert that the LWP's
6127 waitstatus is TARGET_WAITKIND_IGNORE.
6128 * remote-utils.c (prepare_resume_reply): Handle
6129 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6130 * server.c (report_thread_events): New global.
6131 (handle_general_set): Handle QThreadEvents.
6132 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6133 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6134 TARGET_WAITKIND_THREAD_EXITED.
6135 * server.h (report_thread_events): Declare.
6136
6137 2015-11-30 Pedro Alves <palves@redhat.com>
6138
6139 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6140 the thread's last_resume_kind was resume_stop.
6141
6142 2015-11-30 Pedro Alves <palves@redhat.com>
6143
6144 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6145 before returning.
6146
6147 2015-11-30 Pedro Alves <palves@redhat.com>
6148
6149 * server.c (handle_v_requests): Handle vCtrlC.
6150
6151 2015-11-30 Pedro Alves <palves@redhat.com>
6152
6153 * gdbthread.h (find_any_thread_of_pid): Declare.
6154 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6155 functions.
6156 * server.c (handle_query): If current_thread is NULL, look for
6157 another thread of the selected process.
6158
6159 2015-11-26 Daniel Colascione <dancol@dancol.org>
6160 Simon Marchi <simon.marchi@ericsson.com>
6161
6162 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6163 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6164 name in reply.
6165 * target.h (struct target_ops) <thread_name>: New field.
6166 (target_thread_name): New macro.
6167
6168 2015-11-23 Joel Brobecker <brobecker@adacore.com>
6169
6170 * regcache.h (regcache_invalidate_pid): Add declaration.
6171 * regcache.c (regcache_invalidate_pid): New function, extracted
6172 from regcache_invalidate.
6173 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6174 Add trivial documentation comment.
6175 * lynx-low.c: Use regcache_invalidate_pid instead of
6176 regcache_invalidate.
6177
6178 2015-11-23 Joel Brobecker <brobecker@adacore.com>
6179
6180 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6181 and Elf64_auxv_t if the target is Android.
6182
6183 2015-11-22 Doug Evans <xdje42@gmail.com>
6184
6185 * target.h: #include <sys/types.h>.
6186
6187 2015-11-19 Pedro Alves <palves@redhat.com>
6188
6189 * linux-low.c (linux_process_qsupported): Change prototype.
6190 Adjust.
6191 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6192 Change prototype.
6193 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6194 and adjust to loop over all features.
6195 * server.c (handle_query) <qSupported>: Adjust to call
6196 target_process_qsupported once, passing it a vector of unprocessed
6197 features.
6198 * target.h (struct target_ops) <process_qsupported>: Change
6199 prototype.
6200 (target_process_qsupported): Adjust.
6201
6202 2015-11-19 Pedro Alves <palves@redhat.com>
6203
6204 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6205 mode.
6206 * configure: Regenerate.
6207
6208 2015-11-19 Pedro Alves <palves@redhat.com>
6209
6210 * configure: Regenerate.
6211
6212 2015-11-19 Yao Qi <yao.qi@linaro.org>
6213
6214 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6215 type to uint32_t.
6216
6217 2015-11-19 Yao Qi <yao.qi@linaro.org>
6218
6219 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6220 (struct aarch64_operand): Move enum out.
6221
6222 2015-11-19 Yao Qi <yao.qi@linaro.org>
6223
6224 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6225 struct user_fpsimd_state *.
6226 (aarch64_store_fpregset): Likewise.
6227
6228 2015-11-19 Yao Qi <yao.qi@linaro.org>
6229
6230 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6231 struct user_pt_regs *.
6232 (aarch64_store_gregset): Likewise.
6233
6234 2015-11-18 Pedro Alves <palves@redhat.com>
6235
6236 * Makefile.in (all_object_files): Add $IPA_OBJS.
6237
6238 2015-11-17 Pedro Alves <palves@redhat.com>
6239
6240 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6241 GDB_SIGNAL_0 and gdb_signal_to_string.
6242
6243 2015-11-17 Pedro Alves <palves@redhat.com>
6244
6245 * win32-low.c (handle_output_debug_string): Remove parameter.
6246 (win32_kill): Remove our_status local and adjust call to
6247 handle_output_debug_string.
6248 (get_child_debug_event): Adjust call to
6249 handle_output_debug_string.
6250
6251 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * linux-mips-low.c (mips_fill_gregset): Add cast.
6254 (mips_store_gregset): Likewise.
6255 (mips_fill_fpregset): Likewise.
6256 (mips_store_fpregset): Likewise.
6257
6258 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6261 priv.
6262
6263 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * linux-mips-low.c (mips_linux_new_thread): Change type of
6266 watch_type to enum target_hw_bp_type.
6267
6268 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6271 Change return type to arm_hwbp_type.
6272
6273 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6274
6275 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6276 (arm_store_gregset): Likewise.
6277 * linux-arm-low.c (arm_get_hwcap): Likewise.
6278 (arm_read_description): Likewise.
6279
6280 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6283
6284 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6285
6286 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6287 (ppc_fill_vsxregset): Likewise.
6288 (ppc_store_vsxregset): Likewise.
6289 (ppc_fill_vrregset): Likewise.
6290 (ppc_store_vrregset): Likewise.
6291 (ppc_fill_evrregset): Likewise.
6292 (ppc_store_evrregset): Likewise.
6293
6294 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6295
6296 * linux-ppc-low.c (ppc_usrregs_info): Remove
6297 forward-declaration.
6298 (ppc_arch_setup): Move lower in file.
6299
6300 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6301
6302 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6303 (ps_pdwrite): Likewise.
6304
6305 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6306
6307 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6308 to after assert checks.
6309
6310 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6311
6312 * proc-service.c (ps_pdread): Add/adjust casts.
6313 (ps_pdwrite): Add/adjust casts.
6314
6315 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6316
6317 * server.c (handle_search_memory_1): Cast return value of
6318 memmem.
6319
6320 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6321
6322 * server.c (write_qxfer_response): Change type of data to
6323 gdb_byte *.
6324
6325 2015-10-29 Pedro Alves <palves@redhat.com>
6326
6327 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6328
6329 2015-10-29 Pedro Alves <palves@redhat.com>
6330
6331 * tracepoint.c (clear_installed_tracepoints): Add casts.
6332
6333 2015-10-29 Pedro Alves <palves@redhat.com>
6334
6335 * server.c (handle_v_cont, process_serial_event): Add enum
6336 gdb_signal casts to signal parsing code.
6337
6338 2015-10-29 Pedro Alves <palves@redhat.com>
6339
6340 * linux-low.h (NULL_REGSET): Define.
6341 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6342 * linux-arm-low.c (arm_regsets): Likewise.
6343 * linux-crisv32-low.c (cris_regsets): Likewise.
6344 * linux-m68k-low.c (m68k_regsets): Likewise.
6345 * linux-mips-low.c (mips_regsets): Likewise.
6346 * linux-nios2-low.c (nios2_regsets): Likewise.
6347 * linux-ppc-low.c (ppc_regsets): Likewise.
6348 * linux-s390-low.c (s390_regsets): Likewise.
6349 * linux-sh-low.c (sh_regsets): Likewise.
6350 * linux-sparc-low.c (sparc_regsets): Likewise.
6351 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6352 * linux-tile-low.c (tile_regsets): Likewise.
6353 * linux-x86-low.c (x86_regsets): Likewise.
6354 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6355
6356 2015-10-29 Pedro Alves <palves@redhat.com>
6357
6358 * linux-low.h (NULL_REGSET): Define.
6359 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6360 * linux-arm-low.c (arm_regsets): Likewise.
6361 * linux-crisv32-low.c (cris_regsets): Likewise.
6362 * linux-m68k-low.c (m68k_regsets): Likewise.
6363 * linux-mips-low.c (mips_regsets): Likewise.
6364 * linux-nios2-low.c (nios2_regsets): Likewise.
6365 * linux-ppc-low.c (ppc_regsets): Likewise.
6366 * linux-s390-low.c (s390_regsets): Likewise.
6367 * linux-sh-low.c (sh_regsets): Likewise.
6368 * linux-sparc-low.c (sparc_regsets): Likewise.
6369 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6370 * linux-tile-low.c (tile_regsets): Likewise.
6371 * linux-x86-low.c (x86_regsets): Likewise.
6372 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6373
6374 2015-10-26 Doug Evans <dje@google.com>
6375
6376 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6377
6378 2015-10-26 Doug Evans <dje@google.com>
6379
6380 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6381
6382 2015-10-26 Doug Evans <dje@google.com>
6383
6384 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6385 for debug_printf.
6386 (attach_thread, find_new_threads_callback): Ditto.
6387
6388 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6389
6390 * mem-break.h (set_breakpoint_data): Remove.
6391
6392 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6393
6394 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6395 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6396 (initialize_low): Remove set_breakpoint_data call.
6397 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6398 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6399 (initialize_low): Remove set_breakpoint_data call.
6400 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6401 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6402 (initialize_low): Remove set_breakpoint_data call.
6403
6404 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6405
6406 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6407 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6408 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6409 * target.h (target_breakpoint_kind_from_pc): New macro.
6410
6411 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6412
6413 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6414 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6415 the default breakpoint kind.
6416
6417 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6418
6419 * linux-arm-low.c (arm_supports_z_point_type): Add software
6420 breakpoint support.
6421
6422 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6423
6424 * linux-arm-low.c: Refactor breakpoint definitions.
6425 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6426 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6427
6428 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6429
6430 * Makefile.in: Add arm.c/o.
6431 * configure.srv: Likewise.
6432 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6433 (arm_breakpoint_kind_from_pc): New function.
6434 (arm_sw_breakpoint_from_kind): Return proper kind.
6435 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6436
6437 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6438
6439 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6440 removal.
6441 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6442 (struct raw_breakpoint) <size>: Remove.
6443 (struct raw_breakpoint) <kind>: Add.
6444 (bp_size): New function.
6445 (bp_opcode): Likewise.
6446 (find_raw_breakpoint_at): Adjust for kind.
6447 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6448 (remove_memory_breakpoint): Adjust for kind call bp_size.
6449 (set_raw_breakpoint_at): Adjust for kind.
6450 (set_breakpoint): Likewise.
6451 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6452 (delete_raw_breakpoint): Adjust for kind.
6453 (delete_breakpoint): Likewise.
6454 (find_gdb_breakpoint): Likewise.
6455 (set_gdb_breakpoint_1): Likewise.
6456 (set_gdb_breakpoint): Likewise.
6457 (delete_gdb_breakpoint_1): Likewise.
6458 (delete_gdb_breakpoint): Likewise.
6459 (uninsert_raw_breakpoint): Likewise.
6460 (reinsert_raw_breakpoint): Likewise.
6461 (set_breakpoint_data): Remove.
6462 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6463 (check_mem_read): Adjust for kind call bp_size.
6464 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6465 (clone_one_breakpoint): Adjust for kind.
6466 * mem-break.h (set_gdb_breakpoint): Likewise.
6467 (delete_gdb_breakpoint): Likewise.
6468 * server.c (process_serial_event): Likewise.
6469
6470 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6471
6472 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6473 (struct linux_target_ops) <breakpoint>: Remove.
6474 (struct linux_target_ops) <breakpoint_len>: Remove.
6475 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6476 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6477 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6478 (arm_sw_breakpoint_from_kind): New function.
6479 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
6480 (struct linux_target_ops) <breakpoint>: Remove.
6481 (struct linux_target_ops) <breakpoint_len>: Remove.
6482 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6483 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6484 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
6485 (struct linux_target_ops) <breakpoint>: Remove.
6486 (struct linux_target_ops) <breakpoint_len>: Remove.
6487 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6488 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6489 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
6490 (struct linux_target_ops) <breakpoint>: Remove.
6491 (struct linux_target_ops) <breakpoint_len>: Remove.
6492 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6493 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6494 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
6495 and sw_breakpoint_from_kind to increment the pc.
6496 (linux_breakpoint_kind_from_pc): New function.
6497 (linux_sw_breakpoint_from_kind): New function.
6498 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
6499 (initialize_low): Call breakpoint_kind_from_pc and
6500 sw_breakpoint_from_kind to replace breakpoint_data/len.
6501 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
6502 New field.
6503 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
6504 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
6505 (struct linux_target_ops) <breakpoint>: Remove.
6506 (struct linux_target_ops) <breakpoint_len>: Remove.
6507 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6508 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6509 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
6510 (struct linux_target_ops) <breakpoint>: Remove.
6511 (struct linux_target_ops) <breakpoint_len>: Remove.
6512 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6513 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6514 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
6515 (struct linux_target_ops) <breakpoint>: Remove.
6516 (struct linux_target_ops) <breakpoint_len>: Remove.
6517 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6518 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6519 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
6520 (struct linux_target_ops) <breakpoint>: Remove.
6521 (struct linux_target_ops) <breakpoint_len>: Remove.
6522 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6523 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6524 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
6525 (struct linux_target_ops) <breakpoint>: Remove.
6526 (struct linux_target_ops) <breakpoint_len>: Remove.
6527 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6528 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6529 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6530 (struct linux_target_ops) <breakpoint>: Remove.
6531 (struct linux_target_ops) <breakpoint_len>: Remove.
6532 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6533 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6534 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6535 (struct linux_target_ops) <breakpoint>: Remove.
6536 (struct linux_target_ops) <breakpoint_len>: Remove.
6537 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6538 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6539 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6540 (struct linux_target_ops) <breakpoint>: Remove.
6541 (struct linux_target_ops) <breakpoint_len>: Remove.
6542 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6543 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6544 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6545 (struct linux_target_ops) <breakpoint>: Remove.
6546 (struct linux_target_ops) <breakpoint_len>: Remove.
6547 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6548 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6549 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6550 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6551 (struct linux_target_ops) <breakpoint>: Remove.
6552 (struct linux_target_ops) <breakpoint_len>: Remove.
6553 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6554 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6555 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6556 (struct linux_target_ops) <breakpoint>: Remove.
6557 (struct linux_target_ops) <breakpoint_len>: Remove.
6558 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6559 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6560
6561 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6562
6563 * linux-cris-low.c (cris_get_pc): Remove void arg.
6564
6565 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6566
6567 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6568 variable name.
6569
6570 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6571
6572 * inferiors.c (thread_pid_matches_callback): New function.
6573 (find_thread_process): New function.
6574 (remove_thread): Reset current_thread.
6575 (remove_process): Assert threads have been removed first.
6576
6577 2015-10-15 Yao Qi <yao.qi@linaro.org>
6578
6579 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6580 if it is 3.
6581 (aarch64_remove_point): Likewise.
6582 * regcache.c (regcache_register_size): New function.
6583
6584 2015-10-12 Yao Qi <yao.qi@linaro.org>
6585
6586 * linux-aarch64-low.c: Update all callers as emit_load_store
6587 is renamed to aarch64_emit_load_store.
6588
6589 2015-10-12 Yao Qi <yao.qi@linaro.org>
6590
6591 * linux-aarch64-low.c: Update all callers of function renaming
6592 from emit_insn to aarch64_emit_insn.
6593
6594 2015-10-12 Yao Qi <yao.qi@linaro.org>
6595
6596 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6597 arch/aarch64-insn.h.
6598 (struct aarch64_memory_operand): Likewise.
6599 (ENCODE): Likewise.
6600 (emit_insn): Move to arch/aarch64-insn.c.
6601 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6602 (emit_load_store): Move to arch/aarch64-insn.c.
6603 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6604 (can_encode_int32): Remove.
6605
6606 2015-10-12 Yao Qi <yao.qi@linaro.org>
6607
6608 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6609 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6610 (aarch64_relocate_instruction): Likewise.
6611 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6612 (struct aarch64_insn_visitor): Likewise.
6613
6614 2015-10-12 Yao Qi <yao.qi@linaro.org>
6615
6616 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6617 (struct aarch64_insn_visitor): New.
6618 (struct aarch64_insn_relocation_data): New.
6619 (aarch64_ftrace_insn_reloc_b): New function.
6620 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6621 (aarch64_ftrace_insn_reloc_cb): Likewise.
6622 (aarch64_ftrace_insn_reloc_tb): Likewise.
6623 (aarch64_ftrace_insn_reloc_adr): Likewise.
6624 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6625 (aarch64_ftrace_insn_reloc_others): Likewise.
6626 (visitor): New.
6627 (aarch64_relocate_instruction): Use visitor.
6628
6629 2015-10-12 Yao Qi <yao.qi@linaro.org>
6630
6631 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6632 int. Add argument buf.
6633 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6634 aarch64_relocate_instruction.
6635
6636 2015-10-12 Yao Qi <yao.qi@linaro.org>
6637
6638 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6639 argument insn. Remove local variable insn. Don't call
6640 target_read_uint32.
6641 (aarch64_install_fast_tracepoint_jump_pad): Call
6642 target_read_uint32.
6643
6644 2015-09-30 Yao Qi <yao.qi@linaro.org>
6645
6646 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6647 (emit_load_store_pair): Likewise.
6648
6649 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6650
6651 * dll.c (match_dll): Add cast(s).
6652 (unloaded_dll): Likewise.
6653 * linux-low.c (second_thread_of_pid_p): Likewise.
6654 (delete_lwp_callback): Likewise.
6655 (count_events_callback): Likewise.
6656 (select_event_lwp_callback): Likewise.
6657 (linux_set_resume_request): Likewise.
6658 * server.c (accumulate_file_name_length): Likewise.
6659 (emit_dll_description): Likewise.
6660 (handle_qxfer_threads_worker): Likewise.
6661 (visit_actioned_threads): Likewise.
6662 * thread-db.c (any_thread_of): Likewise.
6663 * tracepoint.c (same_process_p): Likewise.
6664 (match_blocktype): Likewise.
6665 (build_traceframe_info_xml): Likewise.
6666
6667 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6670 assignment.
6671 (gdb_unparse_agent_expr): Likewise.
6672 * hostio.c (require_data): Likewise.
6673 (handle_pread): Likewise.
6674 * linux-low.c (disable_regset): Likewise.
6675 (fetch_register): Likewise.
6676 (store_register): Likewise.
6677 (get_dynamic): Likewise.
6678 (linux_qxfer_libraries_svr4): Likewise.
6679 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6680 (set_fast_tracepoint_jump): Likewise.
6681 (uninsert_fast_tracepoint_jumps_at): Likewise.
6682 (reinsert_fast_tracepoint_jumps_at): Likewise.
6683 (validate_inserted_breakpoint): Likewise.
6684 (clone_agent_expr): Likewise.
6685 * regcache.c (init_register_cache): Likewise.
6686 * remote-utils.c (putpkt_binary_1): Likewise.
6687 (decode_M_packet): Likewise.
6688 (decode_X_packet): Likewise.
6689 (look_up_one_symbol): Likewise.
6690 (relocate_instruction): Likewise.
6691 (monitor_output): Likewise.
6692 * server.c (handle_search_memory): Likewise.
6693 (handle_qxfer_exec_file): Likewise.
6694 (handle_qxfer_libraries): Likewise.
6695 (handle_qxfer): Likewise.
6696 (handle_query): Likewise.
6697 (handle_v_cont): Likewise.
6698 (handle_v_run): Likewise.
6699 (captured_main): Likewise.
6700 * target.c (write_inferior_memory): Likewise.
6701 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6702 * tracepoint.c (init_trace_buffer): Likewise.
6703 (add_tracepoint_action): Likewise.
6704 (add_traceframe): Likewise.
6705 (add_traceframe_block): Likewise.
6706 (cmd_qtdpsrc): Likewise.
6707 (cmd_qtdv): Likewise.
6708 (cmd_qtstatus): Likewise.
6709 (response_source): Likewise.
6710 (response_tsv): Likewise.
6711 (cmd_qtnotes): Likewise.
6712 (gdb_collect): Likewise.
6713 (initialize_tracepoint): Likewise.
6714
6715 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6716
6717 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6718 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6719 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6720 <NOP>: New.
6721 (enum aarch64_condition_codes): New enum.
6722 (w0): New static global.
6723 (fp): Likewise.
6724 (lr): Likewise.
6725 (struct aarch64_memory_operand) <type>: New
6726 MEMORY_OPERAND_POSTINDEX type.
6727 (postindex_memory_operand): New helper function.
6728 (emit_ret): New function.
6729 (emit_load_store_pair): New function, factored out of emit_stp
6730 with support for MEMORY_OPERAND_POSTINDEX.
6731 (emit_stp): Rewrite using emit_load_store_pair.
6732 (emit_ldp): New function.
6733 (emit_load_store): Likewise.
6734 (emit_ldr): Mention post-index instruction in comment.
6735 (emit_ldrh): New function.
6736 (emit_ldrb): New function.
6737 (emit_ldrsw): Mention post-index instruction in comment.
6738 (emit_str): Likewise.
6739 (emit_subs): New function.
6740 (emit_cmp): Likewise.
6741 (emit_and): Likewise.
6742 (emit_orr): Likewise.
6743 (emit_orn): Likewise.
6744 (emit_eor): Likewise.
6745 (emit_mvn): Likewise.
6746 (emit_lslv): Likewise.
6747 (emit_lsrv): Likewise.
6748 (emit_asrv): Likewise.
6749 (emit_mul): Likewise.
6750 (emit_sbfm): Likewise.
6751 (emit_sbfx): Likewise.
6752 (emit_ubfm): Likewise.
6753 (emit_ubfx): Likewise.
6754 (emit_csinc): Likewise.
6755 (emit_cset): Likewise.
6756 (emit_nop): Likewise.
6757 (emit_ops_insns): New helper function.
6758 (emit_pop): Likewise.
6759 (emit_push): Likewise.
6760 (aarch64_emit_prologue): New function.
6761 (aarch64_emit_epilogue): Likewise.
6762 (aarch64_emit_add): Likewise.
6763 (aarch64_emit_sub): Likewise.
6764 (aarch64_emit_mul): Likewise.
6765 (aarch64_emit_lsh): Likewise.
6766 (aarch64_emit_rsh_signed): Likewise.
6767 (aarch64_emit_rsh_unsigned): Likewise.
6768 (aarch64_emit_ext): Likewise.
6769 (aarch64_emit_log_not): Likewise.
6770 (aarch64_emit_bit_and): Likewise.
6771 (aarch64_emit_bit_or): Likewise.
6772 (aarch64_emit_bit_xor): Likewise.
6773 (aarch64_emit_bit_not): Likewise.
6774 (aarch64_emit_equal): Likewise.
6775 (aarch64_emit_less_signed): Likewise.
6776 (aarch64_emit_less_unsigned): Likewise.
6777 (aarch64_emit_ref): Likewise.
6778 (aarch64_emit_if_goto): Likewise.
6779 (aarch64_emit_goto): Likewise.
6780 (aarch64_write_goto_address): Likewise.
6781 (aarch64_emit_const): Likewise.
6782 (aarch64_emit_call): Likewise.
6783 (aarch64_emit_reg): Likewise.
6784 (aarch64_emit_pop): Likewise.
6785 (aarch64_emit_stack_flush): Likewise.
6786 (aarch64_emit_zero_ext): Likewise.
6787 (aarch64_emit_swap): Likewise.
6788 (aarch64_emit_stack_adjust): Likewise.
6789 (aarch64_emit_int_call_1): Likewise.
6790 (aarch64_emit_void_call_2): Likewise.
6791 (aarch64_emit_eq_goto): Likewise.
6792 (aarch64_emit_ne_goto): Likewise.
6793 (aarch64_emit_lt_goto): Likewise.
6794 (aarch64_emit_le_goto): Likewise.
6795 (aarch64_emit_gt_goto): Likewise.
6796 (aarch64_emit_ge_got): Likewise.
6797 (aarch64_emit_ops_impl): New static global variable.
6798 (aarch64_emit_ops): New target function, return
6799 &aarch64_emit_ops_impl.
6800 (struct linux_target_ops): Install it.
6801
6802 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6803
6804 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6805 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6806 aarch64-ipa.o.
6807 * linux-aarch64-ipa.c: New file.
6808 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6809 and endian.h.
6810 (aarch64_get_thread_area): New target method.
6811 (extract_signed_bitfield): New helper function.
6812 (aarch64_decode_ldr_literal): New function.
6813 (enum aarch64_opcodes): New enum.
6814 (struct aarch64_register): New struct.
6815 (struct aarch64_operand): New struct.
6816 (x0): New static global.
6817 (x1): Likewise.
6818 (x2): Likewise.
6819 (x3): Likewise.
6820 (x4): Likewise.
6821 (w2): Likewise.
6822 (ip0): Likewise.
6823 (sp): Likewise.
6824 (xzr): Likewise.
6825 (aarch64_register): New helper function.
6826 (register_operand): Likewise.
6827 (immediate_operand): Likewise.
6828 (struct aarch64_memory_operand): New struct.
6829 (offset_memory_operand): New helper function.
6830 (preindex_memory_operand): Likewise.
6831 (enum aarch64_system_control_registers): New enum.
6832 (ENCODE): New macro.
6833 (emit_insn): New helper function.
6834 (emit_b): New function.
6835 (emit_bcond): Likewise.
6836 (emit_cb): Likewise.
6837 (emit_tb): Likewise.
6838 (emit_blr): Likewise.
6839 (emit_stp): Likewise.
6840 (emit_ldp_q_offset): Likewise.
6841 (emit_stp_q_offset): Likewise.
6842 (emit_load_store): Likewise.
6843 (emit_ldr): Likewise.
6844 (emit_ldrsw): Likewise.
6845 (emit_str): Likewise.
6846 (emit_ldaxr): Likewise.
6847 (emit_stxr): Likewise.
6848 (emit_stlr): Likewise.
6849 (emit_data_processing_reg): Likewise.
6850 (emit_data_processing): Likewise.
6851 (emit_add): Likewise.
6852 (emit_sub): Likewise.
6853 (emit_mov): Likewise.
6854 (emit_movk): Likewise.
6855 (emit_mov_addr): Likewise.
6856 (emit_mrs): Likewise.
6857 (emit_msr): Likewise.
6858 (emit_sevl): Likewise.
6859 (emit_wfe): Likewise.
6860 (append_insns): Likewise.
6861 (can_encode_int32_in): New helper function.
6862 (aarch64_relocate_instruction): New function.
6863 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6864 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6865 (struct linux_target_ops): Install aarch64_get_thread_area,
6866 aarch64_install_fast_tracepoint_jump_pad and
6867 aarch64_get_min_fast_tracepoint_insn_len.
6868
6869 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6870
6871 * Makefile.in (aarch64-insn.o): New rule.
6872 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6873
6874 2015-09-21 Yao Qi <yao.qi@linaro.org>
6875
6876 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6877
6878 2015-09-21 Yao Qi <yao.qi@linaro.org>
6879
6880 * tracepoint.c (max_jump_pad_size): Remove.
6881
6882 2015-09-18 Yao Qi <yao.qi@linaro.org>
6883
6884 * linux-aarch64-low.c: Don't include sys/uio.h.
6885 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6886
6887 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
6888
6889 * tracepoint.c (eval_result_type): Change prototype.
6890 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6891
6892 2015-09-15 Pedro Alves <palves@redhat.com>
6893
6894 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6895 Check whether to report exec events instead of checking whether
6896 multiprocess is enabled.
6897
6898 2015-09-15 Pedro Alves <palves@redhat.com>
6899
6900 PR remote/18965
6901 * remote-utils.c (prepare_resume_reply): Merge
6902 TARGET_WAITKIND_VFORK_DONE switch case with the
6903 TARGET_WAITKIND_FORKED case.
6904
6905 2015-09-15 Yao Qi <yao.qi@linaro.org>
6906
6907 * server.c (handle_query): Check string comparison using
6908 "else if" instead of "if".
6909
6910 2015-09-15 Yao Qi <yao.qi@linaro.org>
6911
6912 * server.c (vCont_supported): New global variable.
6913 (handle_query): Set vCont_supported to 1 if "vContSupported+"
6914 matches. Append ";vContSupported+" to own_buf.
6915 (handle_v_requests): Append ";s;S" to own_buf if target supports
6916 hardware single step or vCont_supported is false.
6917 (capture_main): Set vCont_supported to zero.
6918
6919 2015-09-15 Yao Qi <yao.qi@linaro.org>
6920
6921 * linux-low.c (linux_supports_conditional_breakpoints): Rename
6922 it to ...
6923 (linux_supports_hardware_single_step): ... New function.
6924 (linux_target_ops): Update.
6925 * lynx-low.c (lynx_target_ops): Set field
6926 supports_hardware_single_step to target_can_do_hardware_single_step.
6927 * nto-low.c (nto_target_ops): Likewise.
6928 * spu-low.c (spu_target_ops): Likewise.
6929 * win32-low.c (win32_target_ops): Likewise.
6930 * target.c (target_can_do_hardware_single_step): New function.
6931 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6932 Remove. <supports_hardware_single_step>: New field.
6933 (target_supports_conditional_breakpoints): Remove.
6934 (target_supports_hardware_single_step): New macro.
6935 (target_can_do_hardware_single_step): Declare.
6936 * server.c (handle_query): Use target_supports_hardware_single_step
6937 instead of target_supports_conditional_breakpoints.
6938
6939 2015-09-15 Yao Qi <yao.qi@linaro.org>
6940
6941 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6942 function.
6943 (struct linux_target_ops the_low_target): Install
6944 aarch64_linux_siginfo_fixup.
6945
6946 2015-09-11 Don Breazeal <donb@codesourcery.com>
6947 Luis Machado <lgustavo@codesourcery.com>
6948
6949 * linux-low.c (linux_mourn): Static declaration.
6950 (linux_arch_setup): Move in front of
6951 handle_extended_wait.
6952 (linux_arch_setup_thread): New function.
6953 (handle_extended_wait): Handle exec events. Call
6954 linux_arch_setup_thread. Make event_lwp argument a
6955 pointer-to-a-pointer.
6956 (check_zombie_leaders): Do not check stopped threads.
6957 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6958 (linux_low_filter_event): Add lwp and thread for exec'ing
6959 non-leader thread if leader thread has been deleted.
6960 Refactor code into linux_arch_setup_thread and call it.
6961 Pass child lwp pointer by reference to handle_extended_wait.
6962 (linux_wait_for_event_filtered): Update comment.
6963 (linux_wait_1): Prevent clobbering exec event status.
6964 (linux_supports_exec_events): New function.
6965 (linux_target_ops) <supports_exec_events>: Initialize new member.
6966 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6967 new member.
6968 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6969 * server.c (report_exec_events): New global variable.
6970 (handle_query): Handle qSupported query for exec-events feature.
6971 (captured_main): Initialize report_exec_events.
6972 * server.h (report_exec_events): Declare new global variable.
6973 * target.h (struct target_ops) <supports_exec_events>: New
6974 member.
6975 (target_supports_exec_events): New macro.
6976 * win32-low.c (win32_target_ops) <supports_exec_events>:
6977 Initialize new member.
6978
6979 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6980
6981 * linux-low.c (linux_low_enable_btrace): Remove.
6982 (linux_target_ops): Replace linux_low_enable_btrace with
6983 linux_enable_btrace.
6984
6985 2015-09-03 Yao Qi <yao.qi@linaro.org>
6986
6987 * linux-aarch64-low.c (aarch64_insert_point): Call
6988 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6989 returns true.
6990
6991 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6992
6993 * linux-low.c (check_stopped_by_breakpoint): Use
6994 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6995
6996 2015-08-27 Pedro Alves <palves@redhat.com>
6997
6998 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6999
7000 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7001
7002 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7003 the XNEW-family equivalent.
7004 (compile_bytecodes): Likewise.
7005 * dll.c (loaded_dll): Likewise.
7006 * event-loop.c (append_callback_event): Likewise.
7007 (create_file_handler): Likewise.
7008 (create_file_event): Likewise.
7009 * hostio.c (handle_open): Likewise.
7010 * inferiors.c (add_thread): Likewise.
7011 (add_process): Likewise.
7012 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7013 * linux-arm-low.c (arm_new_process): Likewise.
7014 (arm_new_thread): Likewise.
7015 * linux-low.c (add_to_pid_list): Likewise.
7016 (linux_add_process): Likewise.
7017 (handle_extended_wait): Likewise.
7018 (add_lwp): Likewise.
7019 (enqueue_one_deferred_signal): Likewise.
7020 (enqueue_pending_signal): Likewise.
7021 (linux_resume_one_lwp_throw): Likewise.
7022 (linux_resume_one_thread): Likewise.
7023 (linux_read_memory): Likewise.
7024 (linux_write_memory): Likewise.
7025 * linux-mips-low.c (mips_linux_new_process): Likewise.
7026 (mips_linux_new_thread): Likewise.
7027 (mips_add_watchpoint): Likewise.
7028 * linux-x86-low.c (initialize_low_arch): Likewise.
7029 * lynx-low.c (lynx_add_process): Likewise.
7030 * mem-break.c (set_raw_breakpoint_at): Likewise.
7031 (set_breakpoint): Likewise.
7032 (add_condition_to_breakpoint): Likewise.
7033 (add_commands_to_breakpoint): Likewise.
7034 (clone_agent_expr): Likewise.
7035 (clone_one_breakpoint): Likewise.
7036 * regcache.c (new_register_cache): Likewise.
7037 * remote-utils.c (look_up_one_symbol): Likewise.
7038 * server.c (queue_stop_reply): Likewise.
7039 (start_inferior): Likewise.
7040 (queue_stop_reply_callback): Likewise.
7041 (handle_target_event): Likewise.
7042 * spu-low.c (fetch_ppc_memory): Likewise.
7043 (store_ppc_memory): Likewise.
7044 * target.c (set_target_ops): Likewise.
7045 * thread-db.c (thread_db_load_search): Likewise.
7046 (try_thread_db_load_1): Likewise.
7047 * tracepoint.c (add_tracepoint): Likewise.
7048 (add_tracepoint_action): Likewise.
7049 (create_trace_state_variable): Likewise.
7050 (cmd_qtdpsrc): Likewise.
7051 (cmd_qtro): Likewise.
7052 (add_while_stepping_state): Likewise.
7053 * win32-low.c (child_add_thread): Likewise.
7054 (get_image_name): Likewise.
7055
7056 2015-08-25 Yao Qi <yao.qi@linaro.org>
7057
7058 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7059
7060 2015-08-25 Yao Qi <yao.qi@linaro.org>
7061
7062 * Makefile.in (aarch64-linux.o): New rule.
7063 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7064 srv_tgtobj.
7065 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7066 (aarch64_init_debug_reg_state): Make it extern.
7067 (aarch64_linux_prepare_to_resume): Remove.
7068
7069 2015-08-25 Yao Qi <yao.qi@linaro.org>
7070
7071 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7072 lwp_arch_private_info and ptid_of_lwp.
7073
7074 2015-08-25 Yao Qi <yao.qi@linaro.org>
7075
7076 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7077 Find proc_info by find_process_pid. All callers updated.
7078
7079 2015-08-25 Yao Qi <yao.qi@linaro.org>
7080
7081 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7082 Remove.
7083 (debug_reg_change_callback): Remove.
7084 (aarch64_notify_debug_reg_change): Remove.
7085
7086 2015-08-25 Yao Qi <yao.qi@linaro.org>
7087
7088 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7089 Call current_lwp_ptid.
7090
7091 2015-08-25 Yao Qi <yao.qi@linaro.org>
7092
7093 * linux-aarch64-low.c (debug_reg_change_callback): Use
7094 debug_printf.
7095
7096 2015-08-25 Yao Qi <yao.qi@linaro.org>
7097
7098 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7099
7100 2015-08-25 Yao Qi <yao.qi@linaro.org>
7101
7102 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7103
7104 2015-08-25 Yao Qi <yao.qi@linaro.org>
7105
7106 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7107 the code.
7108
7109 2015-08-25 Yao Qi <yao.qi@linaro.org>
7110
7111 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7112 Remove.
7113 (debug_reg_change_callback): Remove argument entry and add argument
7114 lwp. Remove local variable thread. Don't print thread id in the
7115 debugging output. Don't check whether pid of thread equals to pid.
7116 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7117 iterate_over_lwps instead find_inferior.
7118
7119 2015-08-24 Pedro Alves <palves@redhat.com>
7120
7121 * inferiors.c (get_first_process): New function.
7122 * inferiors.h (get_first_process): New declaration.
7123 * remote-utils.c (read_ptid): Default to the first process in the
7124 list, instead of to the current thread's process.
7125
7126 2015-08-24 Pedro Alves <palves@redhat.com>
7127
7128 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7129 * event-loop.c: Likewise.
7130 * remote-utils.c: Likewise.
7131 * tracepoint.c: Likewise.
7132
7133 2015-08-24 Pedro Alves <palves@redhat.com>
7134
7135 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7136 ptid_get_lwp.
7137
7138 2015-08-21 Pedro Alves <palves@redhat.com>
7139
7140 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7141 instead of literal 1.
7142
7143 2015-08-21 Pedro Alves <palves@redhat.com>
7144
7145 * tdesc.c (default_description): Explicitly zero-initialize.
7146
7147 2015-08-21 Pedro Alves <palves@redhat.com>
7148
7149 PR gdb/18749
7150 * inferiors.c (remove_thread): Discard any pending stop reply for
7151 this thread.
7152 * server.c (remove_all_on_match_pid): Rename to ...
7153 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7154 instead of a pid.
7155 (discard_queued_stop_replies): Change parameter to a ptid. Now
7156 extern.
7157 (handle_v_kill, kill_inferior_callback, captured_main)
7158 (process_serial_event): Adjust.
7159 * server.h (discard_queued_stop_replies): Declare.
7160
7161 2015-08-21 Pedro Alves <palves@redhat.com>
7162
7163 * linux-low.c (wait_for_sigstop): Always switch to no thread
7164 selected if the previously current thread dies.
7165 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7166 process instead of the current thread's.
7167 * remote-utils.c (input_interrupt): Don't check if there's no
7168 current thread.
7169 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7170 current thread to the general thread fails, error out.
7171 (handle_qxfer_auxv, handle_qxfer_libraries)
7172 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7173 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7174 (handle_query): Check if there's a thread selected instead of
7175 checking whether there's any thread in the thread list.
7176 (handle_qxfer_threads, handle_qxfer_btrace)
7177 (handle_qxfer_btrace_conf): Don't error out early if there's no
7178 thread in the thread list.
7179 (handle_v_cont, myresume): Don't set the current thread to the
7180 continue thread.
7181 (process_serial_event) <Hg handling>: Also set thread_id if the
7182 previous general thread is still alive.
7183 (process_serial_event) <g/G handling>: If setting the current
7184 thread to the general thread fails, error out.
7185 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7186 thread's lwp instead of the current thread's.
7187 * target.c (set_desired_thread): If the desired thread was not
7188 found, leave the current thread pointing to NULL. Return an int
7189 (boolean) indicating success.
7190 * target.h (set_desired_thread): Change return type to int.
7191
7192 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7193
7194 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7195 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7196 #includes.
7197 (ps_get_thread_area): New function.
7198
7199 2015-08-19 Gary Benson <gbenson@redhat.com>
7200
7201 * hostio.c (handle_pread): Do not attempt to read more data
7202 than hostio_reply_with_data can fit in a packet.
7203
7204 2015-08-18 Joel Brobecker <brobecker@adacore.com>
7205
7206 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7207
7208 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7209
7210 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7211
7212 2015-08-06 Pedro Alves <palves@redhat.com>
7213
7214 * tracepoint.c (expr_eval_result): Now an int.
7215
7216 2015-08-06 Pedro Alves <palves@redhat.com>
7217
7218 * gdbthread.h (struct regcache): Forward declare.
7219 (struct thread_info) <regcache_data>: Now a struct regcache
7220 pointer.
7221 * inferiors.c (inferior_regcache_data)
7222 (set_inferior_regcache_data): Now work with struct regcache
7223 pointers.
7224 * inferiors.h (struct regcache): Forward declare.
7225 (inferior_regcache_data, set_inferior_regcache_data): Now work
7226 with struct regcache pointers.
7227 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7228 (free_register_cache_thread): Remove struct regcache pointer
7229 casts.
7230
7231 2015-08-06 Pedro Alves <palves@redhat.com>
7232
7233 * server.c (captured_main): On error, print the exception message
7234 to stderr, and if run_once is set, throw a quit.
7235
7236 2015-08-06 Pedro Alves <palves@redhat.com>
7237
7238 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7239 the current thread.
7240
7241 2015-08-06 Pedro Alves <palves@redhat.com>
7242
7243 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7244 reading beyond the passed in buffer length.
7245
7246 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7247
7248 * tracepoint.c (symbol_list) <required>: Remove.
7249
7250 2015-08-06 Pedro Alves <palves@redhat.com>
7251
7252 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7253 count if stopping and suspending threads.
7254 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7255 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7256 (linux_detach): Complete an ongoing step-over.
7257 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7258 throughout.
7259 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7260 (linux_wait_1): If passing a signal to the inferior after
7261 finishing a step-over, unsuspend and re-resume all lwps. If we
7262 see a single-step event but the thread should be continuing, don't
7263 pass the trap to gdb.
7264 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7265 internal_error instead of gdb_assert.
7266 (enqueue_pending_signal): New function.
7267 (check_ptrace_stopped_lwp_gone): Add debug output.
7268 (start_step_over): Use internal_error instead of gdb_assert.
7269 (complete_ongoing_step_over): New function.
7270 (linux_resume_one_thread): Don't resume a suspended thread.
7271 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7272 it stepping.
7273
7274 2015-08-06 Pedro Alves <palves@redhat.com>
7275
7276 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7277 (linux_thread_alive): Use lwp_is_marked_dead.
7278 (extended_event_reported): Delete.
7279 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7280 instead of extended_event_reported.
7281 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7282 as well.
7283 (lwp_is_marked_dead): New function.
7284 (lwp_running): Use lwp_is_marked_dead.
7285 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7286 comment.
7287
7288 2015-08-06 Pedro Alves <palves@redhat.com>
7289
7290 * linux-low.c (linux_wait_1): Move fork event output out of the
7291 !report_to_gdb check. Pass event_child->waitstatus to
7292 target_waitstatus_to_string instead of ourstatus.
7293
7294 2015-08-04 Yao Qi <yao.qi@linaro.org>
7295
7296 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7297 if current_thread is 32 bit.
7298
7299 2015-08-04 Yao Qi <yao.qi@linaro.org>
7300
7301 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7302 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7303 * server.c (extended_protocol): Remove "static".
7304 * server.h (extended_protocol): Declare it.
7305
7306 2015-08-04 Yao Qi <yao.qi@linaro.org>
7307
7308 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7309 both aarch64 and aarch32.
7310 (aarch64_set_pc): Likewise.
7311
7312 2015-08-04 Yao Qi <yao.qi@linaro.org>
7313
7314 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7315 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7316 arm-with-neon.xml to srv_xmlfiles.
7317 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7318 (is_64bit_tdesc): New function.
7319 (aarch64_linux_read_description): New function.
7320 (aarch64_arch_setup): Call aarch64_linux_read_description.
7321 (regs_info): Rename to regs_info_aarch64.
7322 (aarch64_regs_info): Return right regs_info.
7323 (initialize_low_arch): Call initialize_low_arch_aarch32.
7324
7325 2015-08-04 Yao Qi <yao.qi@linaro.org>
7326
7327 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7328 * linux-aarch32-low.c: New file.
7329 * linux-aarch32-low.h: New file.
7330 * linux-arm-low.c (arm_fill_gregset): Move it to
7331 linux-aarch32-low.c.
7332 (arm_store_gregset): Likewise.
7333 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7334 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7335 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7336 (regs_info): Rename to regs_info_arm.
7337 (arm_regs_info): Return regs_info_aarch32 if
7338 have_ptrace_getregset is 1 and target description is
7339 arm_with_neon or arm_with_vfpv3.
7340 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7341 Call initialize_low_arch_aarch32 instead.
7342
7343 2015-08-04 Yao Qi <yao.qi@linaro.org>
7344
7345 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7346 * linux-low.c: ... here.
7347 * linux-low.h (have_ptrace_getregset): Declare it.
7348
7349 2015-08-04 Pedro Alves <palves@redhat.com>
7350
7351 * thread-db.c (struct thread_db): Use new typedefs.
7352 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7353 CHK calls.
7354 (disable_thread_event_reporting): Cast result of dlsym to
7355 destination function pointer type.
7356 (thread_db_mourn): Use td_ta_delete_ftype.
7357
7358 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7359
7360 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7361 arch variant.
7362 (CDX_BREAKPOINT): Define for R2.
7363 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7364 (the_low_target): Add comments.
7365
7366 2015-07-30 Yao Qi <yao.qi@linaro.org>
7367
7368 * linux-arm-low.c (arm_hwcap): Remove it.
7369 (arm_read_description): New local variable arm_hwcap. Don't
7370 set arm_hwcap to zero.
7371
7372 2015-07-30 Yao Qi <yao.qi@linaro.org>
7373
7374 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7375 Use regcache->tdesc instead.
7376 (arm_store_wmmxregset): Likewise.
7377 (arm_fill_vfpregset): Likewise.
7378 (arm_store_vfpregset): Likewise.
7379
7380 2015-07-30 Yao Qi <yao.qi@linaro.org>
7381
7382 * linux-arm-low.c: Include arch/arm.h.
7383 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7384 (arm_store_gregset): Likewise.
7385
7386 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7389 ptrace's 4th parameter.
7390
7391 2015-07-27 Yao Qi <yao.qi@linaro.org>
7392
7393 * configure.srv (case aarch64*-*-linux*): Don't set
7394 srv_linux_usrregs.
7395
7396 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7397
7398 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7399 sys/ptrace.h.
7400 * linux-arm-low.c: Likewise.
7401 * linux-cris-low.c: Likewise.
7402 * linux-crisv32-low.c: Likewise.
7403 * linux-low.c: Likewise.
7404 * linux-m68k-low.c: Likewise.
7405 * linux-mips-low.c: Likewise.
7406 * linux-nios2-low.c: Likewise.
7407 * linux-s390-low.c: Likewise.
7408 * linux-sparc-low.c: Likewise.
7409 * linux-tic6x-low.c: Likewise.
7410 * linux-tile-low.c: Likewise.
7411 * linux-x86-low.c: Likewise.
7412
7413 2015-07-24 Pedro Alves <palves@redhat.com>
7414
7415 * config.in: Regenerate.
7416 * configure: Regenerate.
7417
7418 2015-07-24 Pedro Alves <palves@redhat.com>
7419
7420 * acinclude.m4: Include ../ptrace.m4.
7421 * configure.ac: Call GDB_AC_PTRACE.
7422 * config.in, configure: Regenerate.
7423
7424 2015-07-24 Yao Qi <yao.qi@linaro.org>
7425
7426 * linux-low.c (linux_create_inferior): Remove setting to
7427 proc->priv->new_inferior.
7428 (linux_attach): Likewise.
7429 (linux_low_filter_event): Likewise.
7430 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7431
7432 2015-07-24 Yao Qi <yao.qi@linaro.org>
7433
7434 * linux-low.c (linux_arch_setup): New function.
7435 (linux_low_filter_event): If proc->tdesc is NULL and
7436 proc->attached is true, call the_low_target.arch_setup.
7437 Otherwise, keep status pending, and return.
7438 (linux_resume_one_lwp_throw): Don't call get_pc if
7439 thread->while_stepping isn't NULL. Don't call
7440 get_thread_regcache if proc->tdesc is NULL.
7441 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7442 (linux_target_ops): Install arch_setup.
7443 * server.c (start_inferior): Call the_target->arch_setup.
7444 * target.h (struct target_ops) <arch_setup>: New field.
7445 (target_arch_setup): New marco.
7446 * lynx-low.c (lynx_target_ops): Update.
7447 * nto-low.c (nto_target_ops): Update.
7448 * spu-low.c (spu_target_ops): Update.
7449 * win32-low.c (win32_target_ops): Update.
7450
7451 2015-07-24 Yao Qi <yao.qi@linaro.org>
7452
7453 * linux-low.c (linux_add_process): Don't set
7454 proc->priv->new_inferior.
7455 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7456 (linux_attach): Likewise.
7457
7458 2015-07-24 Yao Qi <yao.qi@linaro.org>
7459
7460 * server.c (start_inferior): Code refactor.
7461
7462 2015-07-24 Yao Qi <yao.qi@linaro.org>
7463
7464 * server.c (process_serial_event): Set general_thread.
7465
7466 2015-07-21 Yao Qi <yao.qi@linaro.org>
7467
7468 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7469 aarch64_linux_get_debug_reg_capacity.
7470
7471 2015-07-17 Yao Qi <yao.qi@linaro.org>
7472
7473 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7474 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7475 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7476 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7477 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7478 (AARCH64_HWP_ALIGNMENT): Likewise.
7479 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7480 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7481 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7482 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7483 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7484 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7485 (struct aarch64_debug_reg_state): Likewise.
7486 (struct arch_lwp_info): Likewise.
7487 (aarch64_align_watchpoint): Likewise.
7488 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7489 (aarch64_watchpoint_length): Likewise.
7490 (aarch64_point_encode_ctrl_reg): Likewise
7491 (aarch64_point_is_aligned): Likewise.
7492 (aarch64_align_watchpoint): Likewise.
7493 (aarch64_linux_set_debug_regs):
7494 (aarch64_dr_state_insert_one_point): Likewise.
7495 (aarch64_dr_state_remove_one_point): Likewise.
7496 (aarch64_handle_breakpoint): Likewise.
7497 (aarch64_handle_aligned_watchpoint): Likewise.
7498 (aarch64_handle_unaligned_watchpoint): Likewise.
7499 (aarch64_handle_watchpoint): Likewise.
7500
7501 2015-07-17 Yao Qi <yao.qi@linaro.org>
7502
7503 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
7504 and don't aarch64_get_debug_reg_state. All callers update.
7505 (aarch64_handle_aligned_watchpoint): Likewise.
7506 (aarch64_handle_unaligned_watchpoint): Likewise.
7507 (aarch64_handle_watchpoint): Likewise.
7508 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
7509 (aarch64_remove_point): Likewise.
7510
7511 2015-07-17 Yao Qi <yao.qi@linaro.org>
7512
7513 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
7514 debug_printf.
7515 (aarch64_handle_unaligned_watchpoint): Likewise.
7516
7517 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 Revert the previous 3 commits:
7520 Move gdb_regex* to common/
7521 Move linux_find_memory_regions_full & co.
7522 gdbserver build-id attribute generator
7523
7524 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7525 Jan Kratochvil <jan.kratochvil@redhat.com>
7526
7527 gdbserver build-id attribute generator.
7528 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7529 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7530 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7531 (find_phdr): New.
7532 (get_dynamic): Use find_pdhr to traverse program headers.
7533 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7534 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7535 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7536 (get_hex_build_id): New.
7537 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7538 to reply XML document.
7539
7540 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7541 Jan Kratochvil <jan.kratochvil@redhat.com>
7542
7543 * target.c: Include target/target-utils.h and fcntl.h.
7544 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7545 (target_fileio_read_stralloc): New functions.
7546
7547 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7548
7549 * Makefile.in (OBS): Add gdb_regex.o.
7550 (gdb_regex.o): New.
7551 * config.in: Rebuilt.
7552 * configure: Rebuilt.
7553
7554 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7555 Jan Kratochvil <jan.kratochvil@redhat.com>
7556
7557 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7558 * Makefile.in (OBS): Add target-utils.o.
7559 (linux-maps.o, target-utils.o): New.
7560 * configure.srv (srv_linux_obj): Add linux-maps.o.
7561
7562 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7563
7564 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7565 function, return 1.
7566 (the_low_target): Install it.
7567
7568 2015-07-14 Pedro Alves <palves@redhat.com>
7569
7570 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7571 Instead, ignore ECHILD, and throw an error for other errnos.
7572
7573 2015-07-10 Pedro Alves <palves@redhat.com>
7574
7575 * event-loop.c (struct callback_event) <data>: Change type to
7576 gdb_client_data instance instead of gdb_client_data pointer.
7577 (append_callback_event): Adjust.
7578
7579 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7580
7581 * linux-aarch64-low.c: Add comments for each linux_target_ops
7582 method. Remove comments already covered in target_ops and
7583 linux_target_ops definitions.
7584 (the_low_target): Add comments for each unimplemented method.
7585
7586 2015-07-09 Yao Qi <yao.qi@linaro.org>
7587
7588 * linux-aarch64-low.c (aarch64_regmap): Remove.
7589 (aarch64_usrregs_info): Remove.
7590 (regs_info): Set field usrregs to NULL.
7591
7592 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7593
7594 * linux-low.c: Include "rsp-low.h"
7595 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7596 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7597 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7598 (handle_btrace_enable_pt): New.
7599 (handle_btrace_general_set): Support "pt".
7600 (handle_btrace_conf_general_set): Support "pt:size".
7601
7602 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7603
7604 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7605 Z_PACKET_SW_BP.
7606
7607 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7608
7609 * linux-aarch64-low.c: Remove comment about endianness.
7610 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7611 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7612 memcmp.
7613
7614 2015-06-24 Gary Benson <gbenson@redhat.com>
7615
7616 * linux-i386-ipa.c (stdint.h): Do not include.
7617 * lynx-i386-low.c (stdint.h): Likewise.
7618 * lynx-ppc-low.c (stdint.h): Likewise.
7619 * mem-break.c (stdint.h): Likewise.
7620 * thread-db.c (stdint.h): Likewise.
7621 * tracepoint.c (stdint.h): Likewise.
7622 * win32-low.c (stdint.h): Likewise.
7623
7624 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7625
7626 * server.c (write_qxfer_response): Update call to
7627 remote_escape_output.
7628
7629 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7630 Jan Kratochvil <jan.kratochvil@redhat.com>
7631
7632 Merge multiple hex conversions.
7633 * gdbreplay.c (tohex): Rename to 'fromhex'.
7634 (logchar): Use fromhex.
7635
7636 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7637
7638 * server.c (handle_qxfer_libraries): Set `version' attribute for
7639 <library-list>.
7640
7641 2015-06-10 Gary Benson <gbenson@redhat.com>
7642
7643 * target.h (struct target_ops) <multifs_open>: New field.
7644 <multifs_unlink>: Likewise.
7645 <multifs_readlink>: Likewise.
7646 * linux-low.c (nat/linux-namespaces.h): New include.
7647 (linux_target_ops): Initialize the_target->multifs_open,
7648 the_target->multifs_unlink and the_target->multifs_readlink.
7649 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7650 * hostio.c (hostio_fs_pid): New static variable.
7651 (hostio_handle_new_gdb_connection): New function.
7652 (handle_setfs): Likewise.
7653 (handle_open): Use the_target->multifs_open as appropriate.
7654 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7655 (handle_readlink): Use the_target->multifs_readlink as
7656 appropriate.
7657 (handle_vFile): Handle vFile:setfs packets.
7658 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7659 after target_handle_new_gdb_connection.
7660
7661 2015-06-10 Gary Benson <gbenson@redhat.com>
7662
7663 * configure.ac (AC_CHECK_FUNCS): Add setns.
7664 * config.in: Regenerate.
7665 * configure: Likewise.
7666 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7667 (linux-namespaces.o): New rule.
7668 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7669
7670 2015-06-09 Gary Benson <gbenson@redhat.com>
7671
7672 * hostio.c (handle_open): Process mode argument with
7673 fileio_to_host_mode.
7674
7675 2015-06-01 Yao Qi <yao.qi@linaro.org>
7676
7677 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7678 * linux-x86-low.c: Likewise.
7679
7680 2015-05-28 Don Breazeal <donb@codesourcery.com>
7681
7682 * linux-low.c (handle_extended_wait): Initialize
7683 thread_info.last_resume_kind for new fork children.
7684
7685 2015-05-15 Pedro Alves <palves@redhat.com>
7686
7687 * target.h (target_handle_new_gdb_connection): Rewrite using if
7688 wrapped in do/while.
7689
7690 2015-05-14 Joel Brobecker <brobecker@adacore.com>
7691
7692 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7693 * configure, config.in: Regenerate.
7694 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7695 Declare typedef.
7696
7697 2015-05-12 Don Breazeal <donb@codesourcery.com>
7698
7699 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7700 PTRACE_EVENT_VFORK_DONE.
7701 (linux_low_ptrace_options, extended_event_reported): Add vfork
7702 events.
7703 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7704 and "vforkdone" for RSP 'T' Stop Reply Packet.
7705 * server.h (report_vfork_events): Declare
7706 global variable.
7707
7708 2015-05-12 Don Breazeal <donb@codesourcery.com>
7709
7710 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7711 (the_low_target) <new_fork>: Initialize new member.
7712 * linux-arm-low.c (arm_new_fork): New function.
7713 (the_low_target) <new_fork>: Initialize new member.
7714 * linux-low.c (handle_extended_wait): Call new target function
7715 new_fork.
7716 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7717 * linux-mips-low.c (mips_add_watchpoint): New function
7718 extracted from mips_insert_point.
7719 (the_low_target) <new_fork>: Initialize new member.
7720 (mips_linux_new_fork): New function.
7721 (mips_insert_point): Call mips_add_watchpoint.
7722 * linux-x86-low.c (x86_linux_new_fork): New function.
7723 (the_low_target) <new_fork>: Initialize new member.
7724
7725 2015-05-12 Don Breazeal <donb@codesourcery.com>
7726
7727 * linux-low.c (handle_extended_wait): Implement return value,
7728 rename argument 'event_child' to 'event_lwp', handle
7729 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7730 (linux_low_ptrace_options): New function.
7731 (linux_low_filter_event): Call linux_low_ptrace_options,
7732 use different argument fo linux_enable_event_reporting,
7733 use return value from handle_extended_wait.
7734 (extended_event_reported): New function.
7735 (linux_wait_1): Call extended_event_reported and set
7736 status to report fork events.
7737 (linux_write_memory): Add pid to debug message.
7738 (reset_lwp_ptrace_options_callback): New function.
7739 (linux_handle_new_gdb_connection): New function.
7740 (linux_target_ops): Initialize new structure member.
7741 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7742 * lynx-low.c: Initialize new structure member.
7743 * remote-utils.c (prepare_resume_reply): Implement stop reason
7744 "fork" for "T" stop message.
7745 * server.c (handle_query): Call handle_new_gdb_connection.
7746 * server.h (report_fork_events): Declare global flag.
7747 * target.h (struct target_ops) <handle_new_gdb_connection>:
7748 New member.
7749 (target_handle_new_gdb_connection): New macro.
7750 * win32-low.c: Initialize new structure member.
7751
7752 2015-05-12 Don Breazeal <donb@codesourcery.com>
7753
7754 * mem-break.c (APPEND_TO_LIST): Define macro.
7755 (clone_agent_expr): New function.
7756 (clone_one_breakpoint): New function.
7757 (clone_all_breakpoints): New function.
7758 * mem-break.h: Declare new functions.
7759
7760 2015-05-12 Don Breazeal <donb@codesourcery.com>
7761
7762 * linux-low.c (linux_supports_fork_events): New function.
7763 (linux_supports_vfork_events): New function.
7764 (linux_target_ops): Initialize new structure members.
7765 (initialize_low): Call linux_check_ptrace_features.
7766 * lynx-low.c (lynx_target_ops): Initialize new structure
7767 members.
7768 * server.c (report_fork_events, report_vfork_events):
7769 New global flags.
7770 (handle_query): Add new features to qSupported packet and
7771 response.
7772 (captured_main): Initialize new global variables.
7773 * target.h (struct target_ops) <supports_fork_events>:
7774 New member.
7775 <supports_vfork_events>: New member.
7776 (target_supports_fork_events): New macro.
7777 (target_supports_vfork_events): New macro.
7778 * win32-low.c (win32_target_ops): Initialize new structure
7779 members.
7780
7781 2015-05-12 Gary Benson <gbenson@redhat.com>
7782
7783 * server.c (handle_qxfer_exec_file): Use current process
7784 if annex is empty.
7785
7786 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7787
7788 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7789 Remove HAVE_PTRACE_GETREGS conditionals.
7790 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7791 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7792
7793 2015-05-08 Yao Qi <yao.qi@linaro.org>
7794
7795 * linux-low.c (linux_supports_conditional_breakpoints): New
7796 function.
7797 (linux_target_ops): Install new target method.
7798 * lynx-low.c (lynx_target_ops): Install NULL hook for
7799 supports_conditional_breakpoints.
7800 * nto-low.c (nto_target_ops): Likewise.
7801 * spu-low.c (spu_target_ops): Likewise.
7802 * win32-low.c (win32_target_ops): Likewise.
7803 * server.c (handle_query): Check
7804 target_supports_conditional_breakpoints.
7805 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7806 New field.
7807 (target_supports_conditional_breakpoints): New macro.
7808
7809 2015-05-06 Pedro Alves <palves@redhat.com>
7810
7811 PR server/18081
7812 * server.c (start_inferior): If the process exits, mourn it.
7813
7814 2015-04-21 Gary Benson <gbenson@redhat.com>
7815
7816 * hostio.c (fileio_open_flags_to_host): Factored out to
7817 fileio_to_host_openflags in common/fileio.c. Single use
7818 updated.
7819
7820 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7821
7822 * linux-xtensa-low.c (xtensa_fill_gregset)
7823 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7824 XCHAL_HAVE_LOOP.
7825
7826 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7827
7828 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7829 (regs_info): Replace usrregs pointer with NULL.
7830
7831 2015-04-17 Gary Benson <gbenson@redhat.com>
7832
7833 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7834 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7835 * server.c (handle_qxfer_exec_file): New function.
7836 (qxfer_packets): Add exec-file entry.
7837 (handle_query): Report qXfer:exec-file:read as supported packet.
7838
7839 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7840
7841 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7842
7843 2015-04-09 Gary Benson <gbenson@redhat.com>
7844
7845 * hostio-errno.c (errno_to_fileio_error): Remove function.
7846 Update caller to use remote_fileio_to_fio_error.
7847
7848 2015-04-09 Yao Qi <yao.qi@linaro.org>
7849
7850 * linux-low.c (linux_insert_point): Call
7851 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7852 (linux_remove_point): Call remove_memory_breakpoint if type is
7853 raw_bkpt_type_sw.
7854 * linux-x86-low.c (x86_insert_point): Don't call
7855 insert_memory_breakpoint.
7856 (x86_remove_point): Don't call remove_memory_breakpoint.
7857
7858 2015-04-01 Pedro Alves <palves@redhat.com>
7859 Cleber Rosa <crosa@redhat.com>
7860
7861 * server.c (gdbserver_usage): Reorganize and extend the usage
7862 message.
7863
7864 2015-03-24 Pedro Alves <palves@redhat.com>
7865
7866 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7867 output. Also dump TRAP_TRACE.
7868 (linux_low_filter_event): In debug output, distinguish a
7869 resume_stop SIGSTOP from a delayed SIGSTOP.
7870
7871 2015-03-24 Gary Benson <gbenson@redhat.com>
7872
7873 * linux-x86-low.c (x86_linux_new_thread): Moved to
7874 nat/x86-linux.c.
7875 (x86_linux_prepare_to_resume): Likewise.
7876
7877 2015-03-24 Gary Benson <gbenson@redhat.com>
7878
7879 * Makefile.in (x86-linux-dregs.o): New rule.
7880 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7881 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7882 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7883 (x86_linux_dr_get): Likewise.
7884 (x86_linux_dr_set): Likewise.
7885 (update_debug_registers_callback): Likewise.
7886 (x86_linux_dr_set_addr): Likewise.
7887 (x86_linux_dr_get_addr): Likewise.
7888 (x86_linux_dr_set_control): Likewise.
7889 (x86_linux_dr_get_control): Likewise.
7890 (x86_linux_dr_get_status): Likewise.
7891 (x86_linux_update_debug_registers): Likewise.
7892
7893 2015-03-24 Gary Benson <gbenson@redhat.com>
7894
7895 * linux-x86-low.c (x86_linux_update_debug_registers):
7896 New function, factored out from...
7897 (x86_linux_prepare_to_resume): ...this.
7898
7899 2015-03-24 Gary Benson <gbenson@redhat.com>
7900
7901 * linux-x86-low.c (x86_linux_dr_get): Update comments.
7902 (x86_linux_dr_set): Likewise.
7903 (update_debug_registers_callback): Likewise.
7904 (x86_linux_dr_set_addr): Likewise.
7905 (x86_linux_dr_get_addr): Likewise.
7906 (x86_linux_dr_set_control): Likewise.
7907 (x86_linux_dr_get_control): Likewise.
7908 (x86_linux_dr_get_status): Likewise.
7909 (x86_linux_prepare_to_resume): Likewise.
7910
7911 2015-03-24 Gary Benson <gbenson@redhat.com>
7912
7913 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
7914 Use perror_with_name. Pass string through gettext.
7915 (x86_linux_dr_set): Likewise.
7916
7917 2015-03-24 Gary Benson <gbenson@redhat.com>
7918
7919 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
7920 (x86_linux_dr_set_addr): ...this.
7921 (x86_dr_low_get_addr): Rename to...
7922 (x86_linux_dr_get_addr): ...this.
7923 (x86_dr_low_set_control): Rename to...
7924 (x86_linux_dr_set_control): ...this.
7925 (x86_dr_low_get_control): Rename to...
7926 (x86_linux_dr_get_control): ...this.
7927 (x86_dr_low_get_status): Rename to...
7928 (x86_linux_dr_get_status): ...this.
7929 (x86_dr_low): Update with new function names.
7930
7931 2015-03-24 Gary Benson <gbenson@redhat.com>
7932
7933 * Makefile.in (x86-linux.o): New rule.
7934 * configure.srv: Add x86-linux.o to relevant targets.
7935 * linux-low.c (lwp_set_arch_private_info): New function.
7936 (lwp_arch_private_info): Likewise.
7937 * linux-x86-low.c: Include nat/x86-linux.h.
7938 (arch_lwp_info): Removed structure.
7939 (update_debug_registers_callback):
7940 Use lwp_set_debug_registers_changed.
7941 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7942 and lwp_set_debug_registers_changed.
7943 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7944
7945 2015-03-24 Gary Benson <gbenson@redhat.com>
7946
7947 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7948 * linux-arm-low.c (arm_new_thread): Likewise.
7949 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7950 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7951 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7952 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7953
7954 2015-03-24 Gary Benson <gbenson@redhat.com>
7955
7956 * linux-low.c (ptid_of_lwp): New function.
7957 (lwp_is_stopped): Likewise.
7958 (lwp_stop_reason): Likewise.
7959 * linux-x86-low.c (update_debug_registers_callback):
7960 Use lwp_is_stopped.
7961 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7962 lwp_stop_reason.
7963
7964 2015-03-24 Gary Benson <gbenson@redhat.com>
7965
7966 * linux-low.h (linux_stop_lwp): Remove declaration.
7967
7968 2015-03-24 Gary Benson <gbenson@redhat.com>
7969
7970 * linux-low.h: Include nat/linux-nat.h.
7971 * linux-low.c (iterate_over_lwps_args): New structure.
7972 (iterate_over_lwps_filter): New function.
7973 (iterate_over_lwps): Likewise.
7974 * linux-x86-low.c (update_debug_registers_callback):
7975 Update signature to what iterate_over_lwps expects.
7976 Remove PID check that iterate_over_lwps now performs.
7977 (x86_dr_low_set_addr): Use iterate_over_lwps.
7978 (x86_dr_low_set_control): Likewise.
7979
7980 2015-03-24 Gary Benson <gbenson@redhat.com>
7981
7982 * linux-x86-low.c (x86_debug_reg_state): New function.
7983 (x86_linux_prepare_to_resume): Use the above.
7984
7985 2015-03-24 Gary Benson <gbenson@redhat.com>
7986
7987 * linux-low.c (current_lwp_ptid): New function.
7988 * linux-x86-low.c: Include nat/linux-nat.h.
7989 (x86_dr_low_get_addr): Use current_lwp_ptid.
7990 (x86_dr_low_get_control): Likewise.
7991 (x86_dr_low_get_status): Likewise.
7992
7993 2015-03-20 Pedro Alves <palves@redhat.com>
7994
7995 * tracepoint.c (cmd_qtstatus): Make "str" const.
7996
7997 2015-03-20 Pedro Alves <palves@redhat.com>
7998
7999 * server.c (handle_general_set): Make "req_str" const.
8000
8001 2015-03-19 Pedro Alves <palves@redhat.com>
8002
8003 * linux-low.c (linux_resume_one_lwp): Rename to ...
8004 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8005 instead call perror_with_name.
8006 (check_ptrace_stopped_lwp_gone): New function.
8007 (linux_resume_one_lwp): Reimplement as wrapper around
8008 linux_resume_one_lwp_throw that swallows errors if the LWP is
8009 gone.
8010
8011 2015-03-19 Pedro Alves <palves@redhat.com>
8012
8013 * linux-low.c (count_events_callback, select_event_lwp_callback):
8014 No longer check whether the thread has resume_stop as last resume
8015 kind.
8016
8017 2015-03-19 Pedro Alves <palves@redhat.com>
8018
8019 * linux-low.c (count_events_callback, select_event_lwp_callback):
8020 Use the lwp's status_pending_p field, not the thread's.
8021
8022 2015-03-19 Pedro Alves <palves@redhat.com>
8023
8024 * linux-low.c (select_event_lwp_callback): Update comments to
8025 no longer mention SIGTRAP.
8026
8027 2015-03-18 Gary Benson <gbenson@redhat.com>
8028
8029 * server.c (handle_query): Do not report vFile:fstat as supported.
8030
8031 2015-03-11 Gary Benson <gbenson@redhat.com>
8032
8033 * hostio.c (sys/types.h): New include.
8034 (sys/stat.h): Likewise.
8035 (common-remote-fileio.h): Likewise.
8036 (handle_fstat): New function.
8037 (handle_vFile): Handle vFile:fstat packets.
8038
8039 2015-03-11 Gary Benson <gbenson@redhat.com>
8040
8041 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8042 struct stat.st_blocks and struct stat.st_blksize.
8043 * configure: Regenerate.
8044 * config.in: Likewise.
8045 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8046 (OBS): Add common-remote-fileio.o.
8047 (common-remote-fileio.o): New rule.
8048
8049 2015-03-09 Pedro Alves <palves@redhat.com>
8050
8051 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8052 'struct sockaddr' pointer in 'accept' call.
8053
8054 2015-03-09 Pedro Alves <palves@redhat.com>
8055
8056 Revert:
8057 2015-03-07 Pedro Alves <palves@redhat.com>
8058 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8059 or <winsock2.h> here. Instead include "gdb_socket.h".
8060 (remote_open): Use union gdb_sockaddr_u.
8061 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8062 or <winsock2.h> here. Instead include "gdb_socket.h".
8063 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8064 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8065 or <sys/un.h>.
8066 (init_named_socket, gdb_agent_helper_thread): Use union
8067 gdb_sockaddr_u.
8068
8069 2015-03-07 Pedro Alves <palves@redhat.com>
8070
8071 * configure.ac (build_warnings): Move
8072 -Wdeclaration-after-statement to the C-specific set.
8073 * configure: Regenerate.
8074
8075 2015-03-07 Pedro Alves <palves@redhat.com>
8076
8077 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8078 or <winsock2.h> here. Instead include "gdb_socket.h".
8079 (remote_open): Use union gdb_sockaddr_u.
8080 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8081 or <winsock2.h> here. Instead include "gdb_socket.h".
8082 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8083 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8084 or <sys/un.h>.
8085 (init_named_socket, gdb_agent_helper_thread): Use union
8086 gdb_sockaddr_u.
8087
8088 2015-03-07 Pedro Alves <palves@redhat.com>
8089
8090 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8091 instead.
8092
8093 2015-03-06 Yao Qi <yao.qi@linaro.org>
8094
8095 * linux-aarch64-low.c (aarch64_insert_point): Use
8096 show_debug_regs as a boolean.
8097 (aarch64_remove_point): Likewise.
8098
8099 2015-03-05 Pedro Alves <palves@redhat.com>
8100
8101 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8102 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8103 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8104 * nto-low.c (nto_target_ops): Likewise.
8105 * spu-low.c (spu_target_ops): Likewise.
8106 * win32-low.c (win32_target_ops): Likewise.
8107
8108 2015-03-04 Pedro Alves <palves@redhat.com>
8109
8110 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
8111 Decide whether a breakpoint triggered based on the SIGTRAP's
8112 siginfo.si_code.
8113 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8114 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8115 (linux_low_filter_event): Check for breakpoints before checking
8116 watchpoints.
8117 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8118 siginfo.si_code.
8119 (linux_stopped_by_sw_breakpoint)
8120 (linux_supports_stopped_by_sw_breakpoint)
8121 (linux_stopped_by_hw_breakpoint)
8122 (linux_supports_stopped_by_hw_breakpoint): New functions.
8123 (linux_target_ops): Install new target methods.
8124
8125 2015-03-04 Pedro Alves <palves@redhat.com>
8126
8127 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8128 * server.c (swbreak_feature, hwbreak_feature): New globals.
8129 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8130 (captured_main): Clear swbreak_feature and hwbreak_feature.
8131 * server.h (swbreak_feature, hwbreak_feature): Declare.
8132 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8133 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8134 supports_stopped_by_hw_breakpoint>: New fields.
8135 (target_supports_stopped_by_sw_breakpoint)
8136 (target_stopped_by_sw_breakpoint)
8137 (target_supports_stopped_by_hw_breakpoint)
8138 (target_stopped_by_hw_breakpoint): Declare.
8139
8140 2015-03-04 Pedro Alves <palves@redhat.com>
8141
8142 enum lwp_stop_reason -> enum target_stop_reason
8143 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8144 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8145 (linux_wait_1, stuck_in_jump_pad_callback)
8146 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8147 (linux_stopped_by_watchpoint):
8148 * linux-low.h (enum lwp_stop_reason): Delete.
8149 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8150 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8151
8152 2015-03-04 Yao Qi <yao.qi@linaro.org>
8153
8154 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8155
8156 2015-03-03 Gary Benson <gbenson@redhat.com>
8157
8158 * hostio.c (handle_vFile): Fix prefix lengths.
8159
8160 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8161
8162 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8163 ptr_bits.
8164
8165 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8166
8167 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8168 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8169 (clean): Add "rm -f" for above C files.
8170 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8171 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8172 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8173 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8174 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8175 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8176 (init_registers_s390x_vx_linux64)
8177 (init_registers_s390x_tevx_linux64)
8178 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8179 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8180 declarations.
8181 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8182 (s390_store_vxrs_high): New functions.
8183 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8184 NT_S390_VXRS_HIGH.
8185 (s390_arch_setup): Add logic for selecting one of the new target
8186 descriptions. Activate the new vector regsets if applicable.
8187 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8188 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8189 and init_registers_s390x_tevx_linux64.
8190
8191 2015-03-01 Pedro Alves <palves@redhat.com>
8192
8193 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8194 parameter.
8195
8196 2015-02-27 Pedro Alves <palves@redhat.com>
8197
8198 * linux-x86-low.c (u_debugreg_offset): New function.
8199 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8200
8201 2015-02-27 Pedro Alves <palves@redhat.com>
8202
8203 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8204 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8205 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8206 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8207 (ps_lsetfpregs, ps_getpid)
8208 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8209 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8210 (ps_lsetxregs, ps_plog): Declare.
8211
8212 2015-02-27 Pedro Alves <palves@redhat.com>
8213
8214 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8215 IP_AGENT_EXPORT_FUNC.
8216 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8217 IP_AGENT_EXPORT_FUNC.
8218 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8219 (IP_AGENT_EXPORT): Delete.
8220 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8221 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8222 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8223 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8224 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8225 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8226 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8227 (traceframe_read_count, traceframe_write_count)
8228 (traceframes_created, trace_state_variables, get_raw_reg)
8229 (get_trace_state_variable_value, set_trace_state_variable_value)
8230 (ust_loaded, helper_thread_id, cmd_buf): Use
8231 IPA_SYM_EXPORTED_NAME.
8232 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8233 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8234 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8235 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8236 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8237 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8238 EXTERN_C_PUSH/EXTERN_C_POP.
8239 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8240 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8241 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8242 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8243 (traceframe_write_count, traceframe_read_count)
8244 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8245 (about_to_request_buffer_space, get_trace_state_variable_value)
8246 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8247 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8248 EXTERN_C_PUSH/EXTERN_C_POP.
8249 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8250 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8251 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8252 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8253 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8254 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8255 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8256 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8257 Define.
8258 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8259 (IP_AGENT_EXPORT_VAR_DECL): Define.
8260 (tracing): Declare.
8261 (gdb_agent_get_raw_reg): Declare.
8262
8263 2015-02-27 Tom Tromey <tromey@redhat.com>
8264 Pedro Alves <palves@redhat.com>
8265
8266 Rename symbols whose names are reserved C++ keywords throughout.
8267
8268 2015-02-27 Pedro Alves <palves@redhat.com>
8269
8270 * Makefile.in (COMPILER): New, get it from autoconf.
8271 (CXX): Get from autoconf instead.
8272 (COMPILE.pre): Use COMPILER.
8273 (CC-LD): Rename to ...
8274 (CC_LD): ... this. Use COMPILER.
8275 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8276 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8277 * acinclude.m4: Include build-with-cxx.m4.
8278 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8279 Disable -Werror by default if building in C++ mode.
8280 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8281 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8282 the C++ compiler. Save/restore CXXFLAGS too.
8283 * configure: Regenerate.
8284
8285 2015-02-27 Pedro Alves <palves@redhat.com>
8286
8287 * acinclude.m4: Include libiberty.m4.
8288 * configure.ac: Call libiberty_INIT.
8289 * config.in, configure: Regenerate.
8290
8291 2015-02-26 Pedro Alves <palves@redhat.com>
8292
8293 * linux-low.c (linux_wait_1): When incrementing the PC past a
8294 program breakpoint always use the_low_target.breakpoint_len as
8295 increment, rather than the maximum between that and
8296 the_low_target.decr_pc_after_break.
8297
8298 2015-02-23 Pedro Alves <palves@redhat.com>
8299
8300 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8301 thread was doing a step-over; always adjust the PC if
8302 we stepped over a permanent breakpoint.
8303 (linux_wait_1): If we stepped over breakpoint that was on top of a
8304 permanent breakpoint, manually advance the PC past it.
8305
8306 2015-02-23 Pedro Alves <palves@redhat.com>
8307
8308 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8309 modes.
8310 (x86_fill_gregset, x86_store_gregset): Use it when handling
8311 $orig_eax.
8312
8313 2015-02-20 Pedro Alves <palves@redhat.com>
8314
8315 * thread-db.c: Include "nat/linux-procfs.h".
8316 (thread_db_init): Skip listing new threads if the kernel supports
8317 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8318
8319 2015-02-20 Pedro Alves <palves@redhat.com>
8320
8321 * linux-low.c (status_pending_p_callback): Use ptid_match.
8322
8323 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8324
8325 PR breakpoints/16812
8326 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8327 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8328 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8329
8330 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8331
8332 PR breakpoints/15956
8333 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8334
8335 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8336
8337 * linux-low.c (linux_low_btrace_conf): Print size.
8338 * server.c (handle_btrace_conf_general_set): New.
8339 (hanle_general_set): Call handle_btrace_conf_general_set.
8340 (handle_query): Report Qbtrace-conf:bts:size as supported.
8341
8342 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8343
8344 * linux-low.c (linux_low_enable_btrace): Update parameters.
8345 (linux_low_btrace_conf): New.
8346 (linux_target_ops)<to_btrace_conf>: Initialize.
8347 * server.c (current_btrace_conf): New.
8348 (handle_btrace_enable): Rename to ...
8349 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8350 to target_enable_btrace. Update comment. Update users.
8351 (handle_qxfer_btrace_conf): New.
8352 (qxfer_packets): Add btrace-conf entry.
8353 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8354 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8355 (target_ops)<read_btrace_conf>: New.
8356 (target_enable_btrace): Update parameters.
8357 (target_read_btrace_conf): New.
8358
8359 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8360
8361 * server.c (handle_btrace_general_set): Remove call to
8362 target_supports_btrace.
8363 (supported_btrace_packets): New.
8364 (handle_query): Call supported_btrace_packets.
8365 * target.h: include btrace-common.h.
8366 (btrace_target_info): Removed.
8367 (supports_btrace, target_supports_btrace): Update parameters.
8368
8369 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8370
8371 * Makefile.in (SFILES): Add common/btrace-common.c.
8372 (OBS): Add common/btrace-common.o.
8373 (btrace-common.o): Add build rules.
8374 * linux-low: Include btrace-common.h.
8375 (linux_low_read_btrace): Use struct btrace_data. Call
8376 btrace_data_init and btrace_data_fini.
8377
8378 2015-02-06 Pedro Alves <palves@redhat.com>
8379
8380 * thread-db.c (find_new_threads_callback): Add debug output.
8381
8382 2015-02-04 Pedro Alves <palves@redhat.com>
8383
8384 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8385 (resume_stopped_resumed_lwps): New function.
8386 (linux_wait_for_event_filtered): Use it.
8387
8388 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8389
8390 * Makefile.in (SFILES): Add linux-personality.c.
8391 (linux-personality.o): New rule.
8392 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8393 list of objects to be built.
8394 * linux-low.c: Include nat/linux-personality.h.
8395 (linux_create_inferior): Remove code to disable address space
8396 randomization (moved to ../nat/linux-personality.c). Create
8397 cleanup to disable address space randomization.
8398
8399 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8400
8401 * Makefile.in (posix-strerror.o): New rule.
8402 (mingw-strerror.o): Likewise.
8403 * configure: Regenerated.
8404 * configure.ac: Source file ../common/common.host. Initialize new
8405 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8406
8407 2015-01-14 Yao Qi <yao@codesourcery.com>
8408
8409 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8410 (ppc-linux.o): New rule.
8411 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8412 * configure.ac: AC_CHECK_FUNCS(getauxval).
8413 * config.in: Re-generated.
8414 * configure: Re-generated.
8415 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8416 ppc64_64bit_inferior_p
8417
8418 2015-01-14 Yao Qi <yao@codesourcery.com>
8419
8420 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8421 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8422 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8423 (PT_ORIG_R3, PT_TRAP): Likewise.
8424 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8425 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8426 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8427
8428 2015-01-10 Joel Brobecker <brobecker@adacore.com>
8429
8430 * i387-fp.c (i387_cache_to_xsave): In look over
8431 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8432 zmmh_low_space field by use of zmmh_high_space.
8433
8434 2015-01-09 Pedro Alves <palves@redhat.com>
8435
8436 * linux-low.c (step_over_bkpt): Move higher up in the file.
8437 (handle_extended_wait): Don't store the stop_pc here.
8438 (get_stop_pc): Adjust comments and rename to ...
8439 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8440 stopped for a software breakpoint or hardware breakpoint.
8441 (thread_still_has_status_pending_p): New function.
8442 (status_pending_p_callback): Use
8443 thread_still_has_status_pending_p. If the event is no longer
8444 interesting, resume the LWP.
8445 (handle_tracepoints): Add assert.
8446 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8447 (wstatus_maybe_breakpoint): New function.
8448 (cancel_breakpoint): Delete function.
8449 (check_stopped_by_watchpoint): New function, factored out from
8450 linux_low_filter_event.
8451 (lp_status_maybe_breakpoint): Delete function.
8452 (linux_low_filter_event): Remove filter_ptid argument.
8453 Leave thread group exits pending here. Store the LWP's stop PC.
8454 Always leave events pending.
8455 (linux_wait_for_event_filtered): Pull all events out of the
8456 kernel, and leave them all pending.
8457 (count_events_callback, select_event_lwp_callback): Consider all
8458 events.
8459 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8460 (select_event_lwp): Only give preference to the stepping LWP in
8461 all-stop mode. Adjust comments.
8462 (ignore_event): New function.
8463 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8464 references to cancel_breakpoints. Adjust to renames. Also give
8465 equal priority to all LWPs that have had events in non-stop mode.
8466 If reporting a software breakpoint event, unadjust the LWP's PC.
8467 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8468 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8469 Adjust.
8470 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8471 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8472 (linux_stopped_by_watchpoint): Adjust.
8473 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8474 * linux-low.h (enum lwp_stop_reason): New.
8475 (struct lwp_info) <stop_pc>: Adjust comment.
8476 <stopped_by_watchpoint>: Delete field.
8477 <stop_reason>: New field.
8478 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8479 * mem-break.c (software_breakpoint_inserted_here)
8480 (hardware_breakpoint_inserted_here): New function.
8481 * mem-break.h (software_breakpoint_inserted_here)
8482 (hardware_breakpoint_inserted_here): Declare.
8483 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
8484 (cancel_breakpoints): Delete.
8485 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
8486 (upload_fast_traceframes): Remove references to
8487 cancel_breakpoints.
8488
8489 2015-01-09 Pedro Alves <palves@redhat.com>
8490
8491 * thread-db.c (find_new_threads_callback): Ignore thread if the
8492 kernel thread ID is -1.
8493
8494 2015-01-09 Pedro Alves <palves@redhat.com>
8495
8496 * linux-low.c (linux_attach_fail_reason_string): Move to
8497 nat/linux-ptrace.c, and rename.
8498 (linux_attach_lwp): Update comment.
8499 (attach_proc_task_lwp_callback): New function.
8500 (linux_attach): Adjust to rename and use
8501 linux_proc_attach_tgid_threads.
8502 (linux_attach_fail_reason_string): Delete declaration.
8503
8504 2015-01-01 Joel Brobecker <brobecker@adacore.com>
8505
8506 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
8507 * server.c (gdbserver_version): Likewise.
8508
8509 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
8510
8511 * remote-utils.c: Include ctype.h.
8512 (input_interrupt): Explicitly handle the case when the char
8513 received is the NUL byte. Improve the printing of non-ASCII
8514 characters.
8515
8516 2014-12-16 Joel Brobecker <brobecker@adacore.com>
8517
8518 * linux-low.c (linux_low_filter_event): Update call to
8519 linux_enable_event_reporting following the addition of
8520 a new parameter to that function.
8521
8522 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
8523
8524 PR server/17457
8525 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8526 (AARCH64_FPCR_REGNO): Likewise.
8527 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8528 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8529 (aarch64_store_fpregset): Likewise.
8530
8531 2014-12-15 Joel Brobecker <brobecker@adacore.com>
8532
8533 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8534 Remove FIXME comment about assumption about N.
8535
8536 2014-12-13 Joel Brobecker <brobecker@adacore.com>
8537
8538 * configure.ac: If large-file support is disabled in GDBserver,
8539 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8540 * configure: Regenerate.
8541
8542 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8543
8544 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8545 warning upon ENODATA from ptrace.
8546 * linux-s390-low.c (s390_store_tdb): New.
8547 (s390_regsets): Add regset for NT_S390_TDB.
8548
8549 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8550
8551 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8552 without a fill_function.
8553 * linux-s390-low.c (s390_fill_last_break): Remove.
8554 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8555 (s390_arch_setup): Use regset's size instead of fill_function for
8556 loop end condition.
8557
8558 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8559
8560 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8561 the regset's store function when ptrace returned an error.
8562 * regcache.c (get_thread_regcache): Invalidate register cache
8563 before fetching inferior's registers.
8564
8565 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8566
8567 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8568 while-loop as for-loop.
8569 (regsets_store_inferior_registers): Likewise.
8570
8571 2014-11-28 Yao Qi <yao@codesourcery.com>
8572
8573 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8574 * config.in, configure: Re-generate.
8575 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8576 is defined.
8577
8578 2014-11-21 Yao Qi <yao@codesourcery.com>
8579
8580 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8581 (AC_CHECK_HEADERS): Remove malloc.h.
8582 * configure: Re-generated.
8583 * config.in: Re-generated.
8584 * server.h: Don't include alloca.h and malloc.h.
8585 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8586 Don't include malloc.h.
8587
8588 2014-11-17 Joel Brobecker <brobecker@adacore.com>
8589
8590 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8591 corresponding ERRNO check in same block.
8592
8593 2014-11-12 Pedro Alves <palves@redhat.com>
8594
8595 * server.c (cont_thread): Update comment.
8596 (start_inferior, attach_inferior): No longer clear cont_thread.
8597 (handle_v_cont): No longer set cont_thread.
8598 (captured_main): Clear cont_thread each time a GDB connects.
8599
8600 2014-11-12 Pedro Alves <palves@redhat.com>
8601
8602 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8603 thread, and don't resume all threads if the Hc thread has exited.
8604
8605 2014-11-12 Pedro Alves <palves@redhat.com>
8606
8607 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8608 the process group instead of to a specific LWP.
8609
8610 2014-10-15 Pedro Alves <palves@redhat.com>
8611
8612 PR server/17487
8613 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8614 parameter.
8615 (arm_set_thread_context): Delete.
8616 (the_low_target): Adjust.
8617 * win32-i386-low.c (debug_registers_changed)
8618 (debug_registers_used): Delete.
8619 (update_debug_registers_callback): New function.
8620 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8621 needing to update their debug registers.
8622 (win32_get_current_dr): New function.
8623 (x86_dr_low_get_addr, x86_dr_low_get_control)
8624 (x86_dr_low_get_status): Fetch the debug register from the thread
8625 record's context.
8626 (i386_initial_stuff): Adjust.
8627 (i386_get_thread_context): Remove current_event parameter. Don't
8628 clear debug_registers_changed nor copy DR values to
8629 debug_reg_state.
8630 (i386_set_thread_context): Delete.
8631 (i386_prepare_to_resume): New function.
8632 (i386_thread_added): Mark the thread as needing to update irs
8633 debug registers.
8634 (the_low_target): Remove i386_set_thread_context and install
8635 i386_prepare_to_resume.
8636 * win32-low.c (win32_get_thread_context): Adjust.
8637 (win32_set_thread_context): Use SetThreadContext
8638 directly.
8639 (win32_prepare_to_resume): New function.
8640 (win32_require_context): New function, factored out from ...
8641 (thread_rec): ... this.
8642 (continue_one_thread): Call win32_prepare_to_resume on each thread
8643 we're about to continue.
8644 (win32_resume): Call win32_prepare_to_resume on the event thread.
8645 * win32-low.h (struct win32_thread_info)
8646 <debug_registers_changed>: New field.
8647 (struct win32_target_ops): Change prototype of set_thread_context,
8648 delete set_thread_context and add prepare_to_resume.
8649 (win32_require_context): New declaration.
8650
8651 2014-10-08 Gary Benson <gbenson@redhat.com>
8652
8653 * server.h: Do not include common-exceptions.h.
8654
8655 2014-10-08 Gary Benson <gbenson@redhat.com>
8656
8657 * server.h: Do not include cleanups.h.
8658
8659 2014-09-30 James Hogan <james.hogan@imgtec.com>
8660
8661 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8662 mips64-dsp-linux.c.
8663
8664 2014-09-23 Yao Qi <yao@codesourcery.com>
8665
8666 * linux-low.c (lp_status_maybe_breakpoint): New function.
8667 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8668 (count_events_callback): Likewise.
8669 (select_event_lwp_callback): Likewise.
8670 (cancel_breakpoints_callback): Likewise.
8671
8672 2014-09-19 Don Breazeal <donb@codesourcery.com>
8673
8674 * linux-low.c (handle_extended_wait): Call
8675 linux_ptrace_get_extended_event.
8676 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8677 linux_is_extended_waitstatus.
8678
8679 2014-09-16 Joel Brobecker <brobecker@adacore.com>
8680
8681 * Makefile.in (CPPFLAGS): Define.
8682 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8683 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8684
8685 2014-09-16 Gary Benson <gbenson@redhat.com>
8686
8687 * inferiors.h (current_inferior): Renamed as...
8688 (current_thread): New variable. All uses updated.
8689 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8690 (maybe_move_out_of_jump_pad): Likewise.
8691 (cancel_breakpoint): Likewise.
8692 (linux_low_filter_event): Likewise.
8693 (wait_for_sigstop): Likewise.
8694 (linux_resume_one_lwp): Likewise.
8695 (need_step_over_p): Likewise.
8696 (start_step_over): Likewise.
8697 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8698 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8699 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8700 and save_inferior as saved_thread.
8701 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8702 saved_thread.
8703 (regcache_invalidate_thread): Likewise.
8704 * remote-utils.c (prepare_resume_reply): Likewise.
8705 * thread-db.c (thread_db_get_tls_address): Likewise.
8706 (disable_thread_event_reporting): Likewise.
8707 (remove_thread_event_breakpoints): Likewise.
8708 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8709 as saved_thread.
8710 * target.h (set_desired_inferior): Renamed as...
8711 (set_desired_thread): New declaration. All uses updated.
8712 * server.c (myresume): Updated comment to reference thread instead
8713 of inferior.
8714 (handle_serial_event): Likewise.
8715 (handle_target_event): Likewise.
8716
8717 2014-09-12 Tom Tromey <tromey@redhat.com>
8718 Gary Benson <gbenson@redhat.com>
8719
8720 * regcache.h: Include common-regcache.h.
8721 (regcache_read_pc): Don't declare.
8722 * regcache.c (get_thread_regcache_for_ptid): New function.
8723
8724 2014-09-11 Tom Tromey <tromey@redhat.com>
8725 Gary Benson <gbenson@redhat.com>
8726
8727 * symbol.c: New file.
8728 * Makefile.in (SFILES): Add symbol.c.
8729 (OBS): Add symbol.o.
8730
8731 2014-09-11 Gary Benson <gbenson@redhat.com>
8732
8733 * target.c (target_stop_ptid, target_continue_ptid): New
8734 functions.
8735
8736 2014-09-11 Tom Tromey <tromey@redhat.com>
8737 Gary Benson <gbenson@redhat.com>
8738
8739 * target.h: Include target/target.h.
8740 * target.c (target_read_memory, target_read_uint32)
8741 (target_write_memory): New functions.
8742
8743 2014-09-11 Gary Benson <gbenson@redhat.com>
8744
8745 * server.h (debug_hw_points): Don't declare.
8746 * server.c (debug_hw_points): Don't define. Replace all uses
8747 with show_debug_regs.
8748 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8749 all uses with show_debug_regs.
8750
8751 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8752
8753 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8754 endianness into account.
8755 (ppc_supply_ptrace_register): Likewise.
8756
8757 2014-09-03 James Hogan <james.hogan@imgtec.com>
8758
8759 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8760 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8761
8762 2014-09-03 Gary Benson <gbenson@redhat.com>
8763
8764 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8765 ALL_DEBUG_ADDRESS_REGISTERS.
8766
8767 2014-09-02 Gary Benson <gbenson@redhat.com>
8768
8769 * i386-low.h: Renamed as...
8770 * x86-low.h: New file. All type, function and variable name
8771 prefixes changed from "i386_" to "x86_". All references updated.
8772 * i386-low.c: Renamed as...
8773 * x86-low.c: New file. All type, function and variable name
8774 prefixes changed from "i386_" to "x86_". All references updated.
8775
8776 2014-09-02 Gary Benson <gbenson@redhat.com>
8777
8778 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8779 (x86_linux_new_thread): Likewise.
8780
8781 2014-08-29 Gary Benson <gbenson@redhat.com>
8782
8783 * server.h (setjmp.h): Do not include.
8784 (toplevel): Do not declare.
8785 (common-exceptions.h): Include.
8786 (cleanups.h): Likewise.
8787 * server.c (toplevel): Do not define.
8788 (exit_code): New static global.
8789 (detach_or_kill_for_exit_cleanup): New function.
8790 (main): New function. Original main renamed to...
8791 (captured_main): New function.
8792 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8793
8794 2014-08-29 Gary Benson <gbenson@redhat.com>
8795
8796 * Makefile.in (SFILES): Add common/common-exceptions.c.
8797 (OBS): Add common-exceptions.o.
8798 (common-exceptions.o): New rule.
8799 * utils.c (prepare_to_throw_exception): New function.
8800
8801 2014-08-29 Gary Benson <gbenson@redhat.com>
8802
8803 * config.in: Regenerate.
8804 * configure: Likewise.
8805
8806 2014-08-29 Gary Benson <gbenson@redhat.com>
8807
8808 * Makefile.in (SFILES): Add common/cleanups.c.
8809 (OBS): cleanups.o.
8810 (cleanups.o): New rule.
8811
8812 2014-08-29 Gary Benson <gbenson@redhat.com>
8813
8814 * utils.c (internal_vwarning): New function.
8815
8816 2014-08-28 Gary Benson <gbenson@redhat.com>
8817
8818 * utils.h (fatal): Remove declaration.
8819 * utils.c (fatal): Remove function.
8820
8821 2014-08-28 Gary Benson <gbenson@redhat.com>
8822
8823 * tracepoint.c (gdb_agent_init): Replace fatal with
8824 perror_with_name.
8825 (initialize_tracepoint): Likewise.
8826
8827 2014-08-28 Gary Benson <gbenson@redhat.com>
8828
8829 * remote-utils.c (remote_prepare): Replace fatal with error.
8830
8831 2014-08-28 Gary Benson <gbenson@redhat.com>
8832
8833 * linux-low.c (linux_async): Replace fatal with warning.
8834 Tidy up and return.
8835 (linux_start_non_stop): Return -1 if linux_async failed.
8836
8837 2014-08-28 Gary Benson <gbenson@redhat.com>
8838
8839 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8840 gdb_assert.
8841 (i386_dr_low_get_addr): Remove vague comment.
8842 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8843 gdb_assert.
8844
8845 2014-08-28 Gary Benson <gbenson@redhat.com>
8846
8847 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8848 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8849 internal_error.
8850 (linux_resume_one_lwp): Likewise.
8851 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8852 gdb_assert.
8853 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8854 with internal_error.
8855 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8856 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8857 (find_register_by_name): Replace fatal with internal_error.
8858 (find_regno): Likewise.
8859 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8860 * thread-db.c (thread_db_create_event): Likewise.
8861 (thread_db_load_search): Likewise.
8862 (try_thread_db_load_1): Likewise.
8863 * tracepoint.c (get_jump_space_head): Replace fatal with
8864 internal_error.
8865 (claim_trampoline_space): Likewise.
8866 (have_fast_tracepoint_trampoline_buffer): Likewise.
8867 (cmd_qtstart): Likewise.
8868 (stop_tracing): Likewise.
8869 (fast_tracepoint_collecting): Likewise.
8870 (target_malloc): Likewise.
8871 (download_tracepoint): Likewise.
8872 (download_trace_state_variables): Replace check with gdb_assert.
8873 (upload_fast_traceframes): Replace fatal with internal_error.
8874
8875 2014-08-19 Tom Tromey <tromey@redhat.com>
8876 Gary Benson <gbenson@redhat.com>
8877
8878 * Makefile.in (SFILES): Add common/common-debug.c.
8879 (OBS): Add common-debug.o.
8880 (common-debug.o): New rule.
8881 * debug.h (debug_printf): Don't declare.
8882 * debug.c (debug_printf): Renamed and rewritten as...
8883 (debug_vprintf): New function.
8884
8885 2014-08-19 Gary Benson <gbenson@redhat.com>
8886
8887 * utils.h: Do not include print-utils.h.
8888
8889 2014-08-19 Tom Tromey <tromey@redhat.com>
8890 Gary Benson <gbenson@redhat.com>
8891
8892 * server.h: Add static assertion.
8893 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8894
8895 2014-08-19 Tom Tromey <tromey@redhat.com>
8896 Gary Benson <gbenson@redhat.com>
8897
8898 * Makefile.in (SFILES): Add common/errors.c.
8899 (OBS): Add errors.o.
8900 (IPA_OBS): Add errors-ipa.o.
8901 (errors.o): New rule.
8902 (errors-ipa.o): Likewise.
8903 * utils.h (perror_with_name, error, warning): Don't declare.
8904 * utils.c (warning): Renamed and rewritten as...
8905 (vwarning): New function.
8906 (error): Renamed and rewritten as...
8907 (verror): New function.
8908 (internal_error): Renamed and rewritten as...
8909 (internal_verror): New function.
8910
8911 2014-08-07 Gary Benson <gbenson@redhat.com>
8912
8913 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
8914 * configure: Regenerate.
8915 * config.in: Likewise.
8916 * server.h: Do not include errno.h.
8917 * event-loop.c: Likewise.
8918 * hostio-errno.c: Likewise.
8919 * linux-low.c: Likewise.
8920 * remote-utils.c: Likewise.
8921 * spu-low.c: Likewise.
8922 * utils.c: Likewise.
8923 * gdbreplay.c: Unconditionally include errno.h.
8924
8925 2014-08-07 Gary Benson <gbenson@redhat.com>
8926
8927 * server.h: Do not include string.h.
8928 * event-loop.c: Likewise.
8929 * linux-low.c: Likewise.
8930 * regcache.c: Likewise.
8931 * remote-utils.c: Likewise.
8932 * spu-low.c: Likewise.
8933 * utils.c: Likewise.
8934
8935 2014-08-07 Gary Benson <gbenson@redhat.com>
8936
8937 * server.h: Do not include gdb_assert.h.
8938
8939 2014-08-07 Gary Benson <gbenson@redhat.com>
8940
8941 * server.h: Do not include common-utils.h.
8942
8943 2014-08-07 Gary Benson <gbenson@redhat.com>
8944
8945 * server.h: Do not include ptid.h.
8946 * notif.h: Likewise.
8947
8948 2014-08-07 Gary Benson <gbenson@redhat.com>
8949
8950 * server.h: Do not include gdb_locale.h.
8951
8952 2014-08-07 Gary Benson <gbenson@redhat.com>
8953
8954 * server.h: Do not include gdb/signals.h.
8955 * win32-low.c: Likewise.
8956
8957 2014-08-07 Gary Benson <gbenson@redhat.com>
8958
8959 * server.h: Do not include pathmax.h.
8960
8961 2014-08-07 Gary Benson <gbenson@redhat.com>
8962
8963 * server.h: Do not include libiberty.h.
8964 * linux-bfin-low.c: Likewise.
8965
8966 2014-08-07 Gary Benson <gbenson@redhat.com>
8967
8968 * server.h: Do not include ansidecl.h.
8969
8970 2014-08-07 Gary Benson <gbenson@redhat.com>
8971
8972 * linux-x86-low.c: Do not include stddef.h.
8973 * lynx-ppc-low.c: Likewise.
8974 * tracepoint.c: Likewise.
8975
8976 2014-08-07 Gary Benson <gbenson@redhat.com>
8977
8978 * server.h: Do not include stdarg.h.
8979 * nto-low.c: Likewise.
8980
8981 2014-08-07 Gary Benson <gbenson@redhat.com>
8982
8983 * server.h: Do not include stdlib.h.
8984 * inferiors.c: Likewise.
8985 * linux-low.c: Likewise.
8986 * regcache.c: Likewise.
8987 * spu-low.c: Likewise.
8988 * tracepoint.c: Likewise.
8989 * utils.c: Likewise.
8990
8991 2014-08-07 Gary Benson <gbenson@redhat.com>
8992
8993 * server.h: Do not include stdio.h.
8994 * linux-low.c: Likewise.
8995 * remote-utils.c: Likewise.
8996 * spu-low.c: Likewise.
8997 * utils.c: Likewise.
8998 * wincecompat.c: Likewise.
8999
9000 2014-08-06 Gary Benson <gbenson@redhat.com>
9001
9002 * regcache.c (init_register_cache): Move conditionals inside if.
9003
9004 2014-08-06 Gary Benson <gbenson@redhat.com>
9005
9006 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9007
9008 2014-07-31 Gary Benson <gbenson@redhat.com>
9009
9010 * ax.h: Do not include server.h.
9011 * gdbthread.h: Likewise.
9012 * lynx-low.h: Likewise.
9013 * notif.h: Likewise.
9014
9015 2014-07-30 Gary Benson <gbenson@redhat.com>
9016
9017 * server.h: Include common-defs.h.
9018 Do not include config.h or build-gnulib-gdbserver/config.h.
9019
9020 2014-07-30 Gary Benson <gbenson@redhat.com>
9021
9022 * hostio-errno.c: Move server.h to top of includes list.
9023 * inferiors.c: Likewise.
9024 * linux-x86-low.c: Likewise.
9025 * notif.c: Include server.h.
9026
9027 2014-07-24 Tom Tromey <tromey@redhat.com>
9028 Gary Benson <gbenson@redhat.com>
9029
9030 * server.h (CORE_ADDR): Now unsigned.
9031
9032 2014-07-16 Pedro Alves <palves@redhat.com>
9033
9034 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9035
9036 2014-07-15 Pedro Alves <palves@redhat.com>
9037
9038 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9039 copy.
9040
9041 2014-07-11 Pedro Alves <palves@redhat.com>
9042
9043 * linux-low.c (kill_wait_lwp): New function, based on
9044 kill_one_lwp_callback, but use my_waitpid directly.
9045 (kill_one_lwp_callback, linux_kill): Use it.
9046
9047 2014-06-23 Pedro Alves <palves@redhat.com>
9048
9049 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9050 before setting DR0..DR3.
9051
9052 2014-06-20 Gary Benson <gbenson@redhat.com>
9053
9054 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9055 * configure: Regenerated.
9056 * config.in: Likewise.
9057
9058 2014-06-20 Gary Benson <gbenson@redhat.com>
9059
9060 * Makefile.in (SFILES): Update locations for files moved
9061 from common to nat.
9062 (object file files): Reordered.
9063
9064 2014-06-20 Gary Benson <gbenson@redhat.com>
9065
9066 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9067 (i386_dr_low_set_addr): Likewise.
9068 (i386_dr_low_get_addr): Likewise.
9069 (i386_dr_low_can_set_control): Likewise.
9070 (i386_dr_low_set_control): Likewise.
9071 (i386_dr_low_get_control): Likewise.
9072 (i386_dr_low_get_status): Likewise.
9073 (i386_get_debug_register_length): Likewise.
9074 * linux-x86-low.c (i386_dr_low_set_addr):
9075 Changed signature. Made static.
9076 (i386_dr_low_get_addr): Likewise.
9077 (i386_dr_low_set_control): Likewise.
9078 (i386_dr_low_get_control): Likewise.
9079 (i386_dr_low_get_status): Likewise.
9080 (i386_dr_low): New global variable.
9081 * win32-i386-low.c (i386_dr_low_set_addr):
9082 Changed signature. Made static.
9083 (i386_dr_low_get_addr): Likewise.
9084 (i386_dr_low_set_control): Likewise.
9085 (i386_dr_low_get_control): Likewise.
9086 (i386_dr_low_get_status): Likewise.
9087 (i386_dr_low): New global variable.
9088
9089 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9090
9091 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9092 * Makefile.in (AR, AR_FLAGS): Define.
9093 * configure: Regenerate.
9094
9095 2014-06-19 Gary Benson <gbenson@redhat.com>
9096
9097 * Makefile.in (i386-dregs.o): New rule.
9098 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9099 * i386-low.c (target.h): Remove include.
9100 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9101 (DR_CONTROL_SHIFT): Likewise.
9102 (DR_CONTROL_SIZE): Likewise.
9103 (DR_RW_EXECUTE): Likewise.
9104 (DR_RW_WRITE): Likewise.
9105 (DR_RW_READ): Likewise.
9106 (DR_RW_IORW): Likewise.
9107 (DR_LEN_1): Likewise.
9108 (DR_LEN_2): Likewise.
9109 (DR_LEN_4): Likewise.
9110 (DR_LEN_8): Likewise.
9111 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9112 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9113 (DR_ENABLE_SIZE): Likewise.
9114 (DR_LOCAL_SLOWDOWN): Likewise.
9115 (DR_GLOBAL_SLOWDOWN): Likewise.
9116 (DR_CONTROL_RESERVED): Likewise.
9117 (I386_DR_CONTROL_MASK): Likewise.
9118 (I386_DR_VACANT): Likewise.
9119 (I386_DR_LOCAL_ENABLE): Likewise.
9120 (I386_DR_GLOBAL_ENABLE): Likewise.
9121 (I386_DR_DISABLE): Likewise.
9122 (I386_DR_SET_RW_LEN): Likewise.
9123 (I386_DR_GET_RW_LEN): Likewise.
9124 (I386_DR_WATCH_HIT): Likewise.
9125 (i386_wp_op_t): Likewise.
9126 (i386_show_dr): Likewise.
9127 (i386_length_and_rw_bits): Likewise.
9128 (i386_insert_aligned_watchpoint): Likewise.
9129 (i386_remove_aligned_watchpoint): Likewise.
9130 (i386_handle_nonaligned_watchpoint): Likewise.
9131 i386_update_inferior_debug_regs(): Likewise.
9132 (i386_dr_insert_watchpoint): Likewise.
9133 (i386_dr_remove_watchpoint): Likewise.
9134 (i386_dr_region_ok_for_watchpoint): Likewise.
9135 (i386_dr_stopped_data_address): Likewise.
9136 (i386_dr_stopped_by_watchpoint): Likewise.
9137
9138 2014-06-19 Gary Benson <gbenson@redhat.com>
9139
9140 * i386-low.c (i386_dr_show): Renamed to
9141 i386_show_dr and made static. All uses updated.
9142 (i386_dr_length_and_rw_bits): Renamed to
9143 i386_length_and_rw_bits and made static.
9144 All uses updated.
9145 (i386_dr_insert_aligned_watchpoint): Renamed to
9146 i386_insert_aligned_watchpoint and made static.
9147 All uses updated.
9148 (i386_dr_remove_aligned_watchpoint): Renamed to
9149 i386_remove_aligned_watchpoint and made static.
9150 All uses updated.
9151 (i386_dr_update_inferior_debug_regs): Renamed to
9152 i386_update_inferior_debug_regs and made static.
9153 All uses updated.
9154
9155 2014-06-18 Gary Benson <gbenson@redhat.com>
9156
9157 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9158 (i386_dr_low_can_set_control): Likewise.
9159 (i386_get_debug_register_length): Likewise.
9160 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9161 (i386_dr_low_can_set_control): Likewise.
9162 (i386_get_debug_register_length): Likewise.
9163
9164 2014-06-17 Gary Benson <gbenson@redhat.com>
9165
9166 * i386-low.h (i386-dregs.h): New include.
9167 (DR_FIRSTADDR): Now in i386-dregs.h.
9168 (DR_LASTADDR): Likewise.
9169 (DR_NADDR): Likewise.
9170 (DR_STATUS): Likewise.
9171 (DR_CONTROL): Likewise.
9172 (i386_debug_reg_state): Likewise.
9173 (i386_dr_insert_watchpoint): Likewise.
9174 (i386_dr_remove_watchpoint): Likewise.
9175 (i386_dr_region_ok_for_watchpoint): Likewise.
9176 (i386_dr_stopped_data_address): Likewise.
9177 (i386_dr_stopped_by_watchpoint): Likewise.
9178 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9179
9180 2014-06-18 Gary Benson <gbenson@redhat.com>
9181
9182 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9183 i386_dr_insert_watchpoint.
9184 (i386_low_remove_watchpoint): Renamed to
9185 i386_dr_remove_watchpoint.
9186 (i386_low_region_ok_for_watchpoint): Renamed to
9187 i386_dr_region_ok_for_watchpoint.
9188 (i386_low_stopped_data_address): Renamed to
9189 i386_dr_stopped_data_address.
9190 (i386_low_stopped_by_watchpoint): Renamed to
9191 i386_dr_stopped_by_watchpoint.
9192 * i386-low.c (i386_show_dr): Renamed to
9193 i386_dr_show and made nonstatic. All uses updated.
9194 (i386_length_and_rw_bits): Renamed to
9195 i386_dr_length_and_rw_bits and made nonstatic.
9196 All uses updated.
9197 (i386_insert_aligned_watchpoint): Renamed to
9198 i386_dr_insert_aligned_watchpoint and made nonstatic.
9199 All uses updated.
9200 (i386_remove_aligned_watchpoint): Renamed to
9201 i386_dr_remove_aligned_watchpoint and made nonstatic.
9202 All uses updated.
9203 (i386_update_inferior_debug_regs): Renamed to
9204 i386_dr_update_inferior_debug_regs and made nonstatic.
9205 All uses updated.
9206 (i386_low_insert_watchpoint): Renamed to
9207 i386_dr_insert_watchpoint. All uses updated.
9208 (i386_low_remove_watchpoint): Renamed to
9209 i386_dr_remove_watchpoint. All uses updated.
9210 (i386_low_region_ok_for_watchpoint): Renamed to
9211 i386_dr_region_ok_for_watchpoint. All uses updated.
9212 (i386_low_stopped_data_address): Renamed to
9213 i386_dr_stopped_data_address. All uses updated.
9214 (i386_low_stopped_by_watchpoint): Renamed to
9215 i386_dr_stopped_by_watchpoint. All uses updated.
9216
9217 2014-06-18 Gary Benson <gbenson@redhat.com>
9218
9219 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9220 (i386_dr_low_can_set_control): Likewise.
9221 (i386_insert_aligned_watchpoint): New check.
9222
9223 2014-06-18 Gary Benson <gbenson@redhat.com>
9224
9225 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9226 Renamed to state.
9227
9228 2014-06-18 Gary Benson <gbenson@redhat.com>
9229
9230 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9231 instead of fatal and error.
9232 (i386_handle_nonaligned_watchpoint): Likewise.
9233
9234 2014-06-18 Gary Benson <gbenson@redhat.com>
9235
9236 * i386-low.c (i386_get_debug_register_length): New macro.
9237 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9238 (i386_show_dr): Use debug_printf instead of fprintf. Use
9239 phex to format values.
9240
9241 2014-06-18 Gary Benson <gbenson@redhat.com>
9242
9243 * i386-low.h: Comment changes.
9244 * i386-low.c: Likewise.
9245
9246 2014-06-18 Gary Benson <gbenson@redhat.com>
9247
9248 * i386-low.c: Whitespace changes.
9249
9250 2014-06-12 Tom Tromey <tromey@redhat.com>
9251
9252 * utils.c (freeargv): Remove.
9253
9254 2014-06-12 Tom Tromey <tromey@redhat.com>
9255
9256 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9257 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9258 (parse_debug_format_options): Likewise.
9259 (gdbserver_usage): Likewise.
9260 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9261 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9262 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9263 against libiberty.
9264 ($(LIBGNU)): Depend on libiberty.
9265 (all-lib): Recurse into all subdirs.
9266 (install-only): Invoke "install" target in subdirs.
9267 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9268 targets.
9269 * configure: Rebuild.
9270 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9271 for vasprintf, vsnprintf, or gettimeofday.
9272 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9273 srv_tgtobj.
9274
9275 2014-06-05 Joel Brobecker <brobecker@adacore.com>
9276
9277 * development.sh: Delete.
9278 * Makefile.in (config.status): Adjust dependency on development.sh.
9279 * configure.ac: Adjust development.sh source call.
9280 * configure: Regenerate.
9281
9282 2014-06-02 Pedro Alves <palves@redhat.com>
9283
9284 * ax.c (gdb_free_agent_expr): New function.
9285 * ax.h (gdb_free_agent_expr): New declaration.
9286 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9287 list.
9288 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9289 static.
9290 (clear_breakpoint_conditions_and_commands): New function.
9291 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9292 (clear_breakpoint_conditions_and_commands): New declaration.
9293
9294 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9295
9296 * linux-aarch64-low.c (asm/ptrace.h): Include.
9297
9298 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9299
9300 Fix TLS access for -static -pthread.
9301 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9302 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9303 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9304
9305 2014-05-20 Pedro Alves <palves@redhat.com>
9306
9307 * linux-aarch64-low.c (aarch64_insert_point)
9308 (aarch64_remove_point): No longer check whether the type is
9309 supported here. Adjust to new interface.
9310 (the_low_target): Install aarch64_supports_z_point_type as
9311 supports_z_point_type method.
9312 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9313 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9314 instead of a Z packet char. Adjust.
9315 (arm_supports_z_point_type): New function.
9316 (arm_insert_point, arm_remove_point): Adjust to new interface.
9317 (the_low_target): Install arm_supports_z_point_type.
9318 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9319 (cris_insert_point, cris_remove_point): Adjust to new interface.
9320 Don't check whether the type is supported here.
9321 (the_low_target): Install cris_supports_z_point_type.
9322 * linux-low.c (linux_supports_z_point_type): New function.
9323 (linux_insert_point, linux_remove_point): Adjust to new interface.
9324 * linux-low.h (struct linux_target_ops) <insert_point,
9325 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9326 raw_breakpoint pointer parameter.
9327 <supports_z_point_type>: New method.
9328 * linux-mips-low.c (mips_supports_z_point_type): New function.
9329 (mips_insert_point, mips_remove_point): Adjust to new interface.
9330 Use mips_supports_z_point_type.
9331 (the_low_target): Install mips_supports_z_point_type.
9332 * linux-ppc-low.c (the_low_target): Install NULL as
9333 supports_z_point_type method.
9334 * linux-s390-low.c (the_low_target): Install NULL as
9335 supports_z_point_type method.
9336 * linux-sparc-low.c (the_low_target): Install NULL as
9337 supports_z_point_type method.
9338 * linux-x86-low.c (x86_supports_z_point_type): New function.
9339 (x86_insert_point): Adjust to new insert_point interface. Use
9340 insert_memory_breakpoint. Adjust to new
9341 i386_low_insert_watchpoint interface.
9342 (x86_remove_point): Adjust to remove_point interface. Use
9343 remove_memory_breakpoint. Adjust to new
9344 i386_low_remove_watchpoint interface.
9345 (the_low_target): Install x86_supports_z_point_type.
9346 * lynx-low.c (lynx_target_ops): Install NULL as
9347 supports_z_point_type callback.
9348 * nto-low.c (nto_supports_z_point_type): New.
9349 (nto_insert_point, nto_remove_point): Adjust to new interface.
9350 (nto_target_ops): Install nto_supports_z_point_type.
9351 * mem-break.c: Adjust intro comment.
9352 (struct raw_breakpoint) <raw_type, size>: New fields.
9353 <inserted>: Update comment.
9354 <shlib_disabled>: Delete field.
9355 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9356 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9357 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9358 (raw_bkpt_type_to_target_hw_bp_type): New function.
9359 (find_enabled_raw_code_breakpoint_at): New function.
9360 (find_raw_breakpoint_at): New type and size parameters. Use them.
9361 (insert_memory_breakpoint): New function, based off
9362 set_raw_breakpoint_at.
9363 (remove_memory_breakpoint): New function.
9364 (set_raw_breakpoint_at): Reimplement.
9365 (set_breakpoint): New, based on set_breakpoint_at.
9366 (set_breakpoint_at): Reimplement.
9367 (delete_raw_breakpoint): Go through the_target->remove_point
9368 instead of assuming memory breakpoints.
9369 (find_gdb_breakpoint_at): Delete.
9370 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9371 (find_gdb_breakpoint): New function.
9372 (set_gdb_breakpoint_at): Delete.
9373 (z_type_supported): New function.
9374 (set_gdb_breakpoint_1): New function, loosely based off
9375 set_gdb_breakpoint_at.
9376 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9377 (delete_gdb_breakpoint_at): Delete.
9378 (delete_gdb_breakpoint_1): New function, loosely based off
9379 delete_gdb_breakpoint_at.
9380 (delete_gdb_breakpoint): New function.
9381 (clear_gdb_breakpoint_conditions): Rename to ...
9382 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9383 breakpoint.
9384 (add_condition_to_breakpoint): Make static.
9385 (add_breakpoint_condition): Take a struct breakpoint pointer
9386 instead of an address. Adjust.
9387 (gdb_condition_true_at_breakpoint): Rename to ...
9388 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9389 z_type parameter.
9390 (gdb_condition_true_at_breakpoint): Reimplement.
9391 (add_breakpoint_commands): Take a struct breakpoint pointer
9392 instead of an address. Adjust.
9393 (gdb_no_commands_at_breakpoint): Rename to ...
9394 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9395 parameter. Return true if no breakpoint was found. Change debug
9396 output.
9397 (gdb_no_commands_at_breakpoint): Reimplement.
9398 (run_breakpoint_commands): Rename to ...
9399 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9400 and change return type to boolean.
9401 (run_breakpoint_commands): New function.
9402 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9403 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9404 breakpoint. Go through the_target->remove_point instead of
9405 assuming memory breakpoint.
9406 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9407 software and hardware breakpoints.
9408 (reinsert_raw_breakpoint): Go through the_target->insert_point
9409 instead of assuming memory breakpoint.
9410 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9411 software and hardware breakpoints.
9412 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9413 Check both software and hardware breakpoints.
9414 (validate_inserted_breakpoint): Assert the breakpoint is a
9415 software breakpoint. Set the inserted flag to -1 instead of
9416 setting shlib_disabled.
9417 (delete_disabled_breakpoints): Adjust.
9418 (validate_breakpoints): Only validate software breakpoints.
9419 Adjust to inserted flag change.
9420 (check_mem_read, check_mem_write): Skip breakpoint types other
9421 than software breakpoints. Adjust to inserted flag change.
9422 * mem-break.h (enum raw_bkpt_type): New enum.
9423 (raw_breakpoint, struct process_info): Forward declare.
9424 (Z_packet_to_target_hw_bp_type): Delete declaration.
9425 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9426 (set_gdb_breakpoint, delete_gdb_breakpoint)
9427 (clear_breakpoint_conditions): New declarations.
9428 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9429 (breakpoint_inserted_here): Update comment.
9430 (add_breakpoint_condition, add_breakpoint_commands): Replace
9431 address parameter with a breakpoint pointer parameter.
9432 (gdb_breakpoint_here): Update comment.
9433 (delete_gdb_breakpoint_at): Delete.
9434 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9435 * server.c (process_point_options): Take a struct breakpoint
9436 pointer instead of an address. Adjust.
9437 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9438 delete_gdb_breakpoint.
9439 * spu-low.c (spu_target_ops): Install NULL as
9440 supports_z_point_type method.
9441 * target.h: Include mem-break.h.
9442 (struct target_ops) <prepare_to_access_memory>: Update comment.
9443 <supports_z_point_type>: New field.
9444 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9445 instead of a char. Also take a raw breakpoint pointer.
9446 * win32-arm-low.c (the_low_target): Install NULL as
9447 supports_z_point_type.
9448 * win32-i386-low.c (i386_supports_z_point_type): New function.
9449 (i386_insert_point, i386_remove_point): Adjust to new interface.
9450 (the_low_target): Install i386_supports_z_point_type.
9451 * win32-low.c (win32_supports_z_point_type): New function.
9452 (win32_insert_point, win32_remove_point): Adjust to new interface.
9453 (win32_target_ops): Install win32_supports_z_point_type.
9454 * win32-low.h (struct win32_target_ops):
9455 <supports_z_point_type>: New method.
9456 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9457 instead of a char. Also take a raw breakpoint pointer.
9458
9459 2014-05-20 Pedro Alves <palves@redhat.com>
9460
9461 * mem-break.h: Include break-common.h.
9462 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9463 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9464 (Z_packet_to_target_hw_bp_type): New declaration.
9465 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9466 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9467 (Z_PACKET_ACCESS_WP): Delete macros.
9468 (Z_packet_to_hw_type): Delete function.
9469 * i386-low.h: Don't include break-common.h here.
9470 (Z_packet_to_hw_type): Delete declaration.
9471 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9472 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9473 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9474 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9475 * linux-aarch64-low.c: Don't include break-common.h here.
9476 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9477 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9478 (Z_packet_to_target_hw_bp_type): Delete function.
9479 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
9480 function.
9481 (mips_insert_point, mips_remove_point): Use
9482 Z_packet_to_target_hw_bp_type.
9483
9484 2014-05-20 Pedro Alves <palves@redhat.com>
9485
9486 * linux-aarch64-low.c: Include break-common.h.
9487 (enum target_point_type): Delete.
9488 (Z_packet_to_point_type): Rename to ...
9489 (Z_packet_to_target_hw_bp_type): ... this, and return a
9490 target_hw_bp_type instead.
9491 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
9492 instead of an enum target_point_type.
9493 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
9494 breakpoint type.
9495 (aarch64_dr_state_insert_one_point)
9496 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
9497 (aarch64_handle_aligned_watchpoint)
9498 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
9499 Take an enum target_hw_bp_type instead of an enum
9500 target_point_type.
9501 (aarch64_supports_z_point_type): New function.
9502 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
9503 use Z_packet_to_target_hw_bp_type.
9504
9505 2014-05-20 Joel Brobecker <brobecker@adacore.com>
9506
9507 * configure.ac: Only use -Werror by default when DEVELOPMENT
9508 is true.
9509 * configure: Regenerate.
9510
9511 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9512
9513 Fix gdbserver qGetTLSAddr for x86_64 -m32.
9514 * linux-x86-low.c (X86_64_USER_REGS): New.
9515 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
9516
9517 2014-04-28 Yao Qi <yao@codesourcery.com>
9518
9519 * Makefile.in (i386-avx512.c): Fix the typo of generated file
9520 name.
9521
9522 2014-04-25 Pedro Alves <palves@redhat.com>
9523
9524 PR server/16255
9525 * linux-low.c (linux_attach_fail_reason_string): New function.
9526 (linux_attach_lwp): Delete.
9527 (linux_attach_lwp_1): Rename to ...
9528 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9529 argument. Remove "initial" parameter. Return int instead of
9530 void. Don't error or warn here.
9531 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9532 failure to attach to the tgid. Call warning when failing to
9533 attach to an lwp.
9534 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9535 argument. Remove "initial" parameter. Return int instead of
9536 void. Don't error or warn here.
9537 (linux_attach_fail_reason_string): New declaration.
9538 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9539 interface change. Use linux_attach_fail_reason_string.
9540
9541 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9542 Walfred Tedeschi <walfred.tedeschi@intel.com>
9543
9544 * Makefile.in: Added rules to handle new files
9545 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9546 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9547 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9548 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9549 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9550 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9551 x32-avx512-linux.o.
9552 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9553 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9554 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9555 i386/x32-avx512.xml.
9556 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9557 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9558 i386/x32-avx512-linux.xml.
9559 * i387-fp.c (num_avx512_k_registers): New constant for number
9560 of K registers.
9561 (num_avx512_zmmh_low_registers): New constant for number of
9562 lower ZMM registers (0-15).
9563 (num_avx512_zmmh_high_registers): New constant for number of
9564 higher ZMM registers (16-31).
9565 (num_avx512_ymmh_registers): New contant for number of higher
9566 YMM registers (ymm16-31 added by avx521 on x86_64).
9567 (num_avx512_xmm_registers): New constant for number of higher
9568 XMM registers (xmm16-31 added by AVX512 on x86_64).
9569 (struct i387_xsave): Add space for AVX512 registers.
9570 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9571 Add code to handle AVX512 registers.
9572 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9573 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9574 prototypei from generated file.
9575 (tdesc_amd64_avx512_linux): Likewise.
9576 (init_registers_x32_avx512_linux): Likewise.
9577 (tdesc_x32_avx512_linux): Likewise.
9578 (init_registers_i386_avx512_linux): Likewise.
9579 (tdesc_i386_avx512_linux): Likewise.
9580 (x86_64_regmap): Add AVX512 registers.
9581 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9582 mask.
9583 (initialize_low_arch): Add code to initialize AVX512 registers.
9584
9585 2014-04-23 Pedro Alves <palves@redhat.com>
9586
9587 * mem-break.c (find_gdb_breakpoint_at): Make static.
9588 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9589
9590 2014-04-23 Pedro Alves <palves@redhat.com>
9591
9592 * i386-low.c: Don't include break-common.h here.
9593 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9594 prototype to take target_hw_bp_type as argument instead of a Z
9595 packet char.
9596 * i386-low.h: Include break-common.h here.
9597 (Z_packet_to_hw_type): Declare.
9598 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9599 prototypes.
9600 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9601 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9602 (x86_remove_point): Convert the packet number to a
9603 target_hw_bp_type before calling i386_low_remove_watchpoint.
9604 * win32-i386-low.c (i386_insert_point): Convert the packet number
9605 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9606 (i386_remove_point): Convert the packet number to a
9607 target_hw_bp_type before calling i386_low_remove_watchpoint.
9608
9609 2014-04-23 Pedro Alves <palves@redhat.com>
9610
9611 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9612
9613 2014-04-10 Pedro Alves <palves@redhat.com>
9614
9615 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9616 Check if the condition or command is NULL before checking if the
9617 breakpoint is known. On success, return true.
9618 * mem-break.h (add_breakpoint_condition): Document return.
9619 (add_breakpoint_commands): Add describing comment.
9620 * server.c (skip_to_semicolon): New function.
9621 (process_point_options): Use it.
9622
9623 2014-04-09 Pedro Alves <palves@redhat.com>
9624
9625 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9626 to lwpid_of.
9627
9628 2014-02-27 Pedro Alves <palves@redhat.com>
9629
9630 PR 12702
9631 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9632 macros.
9633 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9634 output.
9635 (last_thread_of_process_p): Take a PID argument instead of a
9636 thread pointer.
9637 (linux_wait_for_lwp): Delete.
9638 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9639 functions.
9640 (linux_low_filter_event): New function, party factored out from
9641 linux_wait_for_event.
9642 (linux_wait_for_event): Rename to ...
9643 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9644 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9645 sigsuspend. Check for zombie leaders.
9646 (linux_wait_for_event): Reimplement as wrapper around
9647 linux_wait_for_event_filtered.
9648 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9649 a normal or signal exit is seen, it's the whole process exiting.
9650 (wait_for_sigstop): No longer a for_each_inferior callback.
9651 Rewrite on top of linux_wait_for_event_filtered.
9652 (stop_all_lwps): Call wait_for_sigstop directly.
9653 * server.c (resume, handle_target_event): Handle
9654 TARGET_WAITKIND_NO_RESUMED.
9655
9656 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9657
9658 * win32-low.c (psapi_get_dll_name,
9659 * win32_CreateToolhelp32Snapshot): Delete.
9660 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9661 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9662 Delete.
9663 (handle_load_dll): Add function description.
9664 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9665
9666 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9667
9668 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9669 Add comment.
9670 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9671 base address when calling win32_add_one_solib.
9672 (handle_load_dll): Delete local variable load_addr.
9673 Remove 0x1000 offset applied to DLL base address when calling
9674 win32_add_one_solib.
9675 (handle_unload_dll): Add comment.
9676
9677 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9678
9679 * win32-low.c (win32_add_all_dlls): Renames
9680 win32_ensure_ntdll_loaded. Rewrite function documentation.
9681 Adjust implementation to always load all DLLs.
9682 Add 0x1000 offset to DLL base address when calling
9683 win32_add_one_solib.
9684 (child_initialization_done): New static global.
9685 (do_initial_child_stuff): Set child_initialization_done to
9686 zero during child initialization, and 1 after. Replace call
9687 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9688 Add comment.
9689 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9690 (handle_unload_dll): Add function documentation.
9691 (get_child_debug_event): Ignore load and unload DLL events
9692 during child initialization.
9693
9694 2014-02-20 Doug Evans <dje@google.com>
9695
9696 Remove global all_lwps.
9697 * inferiors.h (ptid_of): Move here from linux-low.h.
9698 (pid_of, lwpid_of): Ditto.
9699 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9700 parameter is a struct thread_info * now.
9701 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9702 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9703 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9704 directly.
9705 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9706 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9707 * linux-arm-low.c (update_registers_callback): Update, "entry"
9708 parameter is a struct thread_info * now.
9709 Fetch lwpid from current_inferior directly.
9710 (arm_insert_point): Pass &all_threads to find_inferior instead of
9711 &all_lwps.
9712 (arm_remove_point): Ditto.
9713 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9714 (arm_prepare_to_resume): Fetch pid from thread.
9715 (arm_read_description): Fetch lwpid from current_inferior directly.
9716 * linux-low.c (all_lwps): Delete.
9717 (delete_lwp): Delete call to remove_inferior.
9718 (handle_extended_wait): Fetch lwpid from thread.
9719 (add_lwp): Don't set lwp->entry.id. Remove call to
9720 add_inferior_to_list.
9721 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9722 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9723 (kill_one_lwp_callback): Ditto.
9724 (linux_kill): Don't dereference NULL pointer.
9725 Fetch ptid,lwpid from thread.
9726 (get_detach_signal): Fetch ptid from thread.
9727 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9728 Simplify call to regcache_invalidate_thread.
9729 (delete_lwp_callback): Update, "entry" parameter is a
9730 struct thread_info * now. Fetch pid from thread.
9731 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9732 (status_pending_p_callback): Update, "entry" parameter is a
9733 struct thread_info * now. Fetch ptid from thread.
9734 (find_lwp_pid): Update, "entry" parameter is a
9735 struct thread_info * now.
9736 (linux_wait_for_lwp): Fetch pid from thread.
9737 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9738 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9739 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9740 (dequeue_one_deferred_signal): Ditto.
9741 (cancel_breakpoint): Fetch ptid from current_inferior.
9742 (linux_wait_for_event): Pass &all_threads to find_inferior,
9743 not &all_lwps. Fetch ptid, lwpid from thread.
9744 (count_events_callback): Update, "entry" parameter is a
9745 struct thread_info * now.
9746 (select_singlestep_lwp_callback): Ditto.
9747 (select_event_lwp_callback): Ditto.
9748 (cancel_breakpoints_callback): Ditto.
9749 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9750 not &all_lwps.
9751 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9752 (unsuspend_one_lwp): Update, "entry" parameter is a
9753 struct thread_info * now.
9754 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9755 not &all_lwps.
9756 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9757 Fetch lwpid from thread, not lwp.
9758 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9759 Pass &all_threads to find_inferior, not &all_lwps.
9760 (send_sigstop): Fetch lwpid from thread, not lwp.
9761 (send_sigstop_callback): Update, "entry" parameter is a
9762 struct thread_info * now.
9763 (suspend_and_send_sigstop_callback): Ditto.
9764 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9765 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9766 struct thread_info * now.
9767 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9768 from thread, lwp.
9769 (lwp_running): Update, "entry" parameter is a
9770 struct thread_info * now.
9771 (stop_all_lwps): Fetch ptid from thread.
9772 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9773 (linux_resume_one_lwp): Fetch lwpid from thread.
9774 (linux_set_resume_request): Update, "entry" parameter is a
9775 struct thread_info * now. Fetch pid, lwpid from thread.
9776 (resume_status_pending_p): Update, "entry" parameter is a
9777 struct thread_info * now.
9778 (need_step_over_p): Ditto. Fetch lwpid from thread.
9779 (start_step_over): Fetch lwpid from thread.
9780 (linux_resume_one_thread): Update, "entry" parameter is a
9781 struct thread_info * now. Fetch lwpid from thread.
9782 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9783 (proceed_one_lwp): Update, "entry" parameter is a
9784 struct thread_info * now. Fetch lwpid from thread.
9785 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9786 struct thread_info * now.
9787 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9788 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9789 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9790 directly.
9791 (regsets_store_inferior_registers): Ditto.
9792 (fetch_register, store_register): Ditto.
9793 (linux_read_memory, linux_write_memory): Ditto.
9794 (linux_request_interrupt): Ditto.
9795 (linux_read_auxv): Ditto.
9796 (linux_xfer_siginfo): Ditto.
9797 (linux_qxfer_spu): Ditto.
9798 (linux_qxfer_libraries_svr4): Ditto.
9799 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9800 moved to inferiors.h.
9801 (get_lwp): Delete.
9802 (get_thread_lwp): Update.
9803 (struct lwp_info): Delete member "entry". Simplify comment for
9804 member "thread".
9805 (all_lwps): Delete.
9806 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9807 current_inferior directly.
9808 (update_watch_registers_callback): Update, "entry" parameter is a
9809 struct thread_info * now. Fetch pid from thread.
9810 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9811 (mips_insert_point): Fetch lwpid from current_inferior.
9812 Pass &all_threads to find_inferior, not &all_lwps.
9813 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9814 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9815 directly.
9816 (mips_stopped_data_address): Ditto.
9817 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9818 directly.
9819 * linux-tile-low.c (tile_arch_setup): Ditto.
9820 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9821 (update_debug_registers_callback): Update, "entry" parameter is a
9822 struct thread_info * now. Fetch pid from thread.
9823 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9824 Pass &all_threads to find_inferior, not &all_lwps.
9825 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9826 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9827 Pass &all_threads to find_inferior, not &all_lwps.
9828 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9829 (i386_dr_low_get_status): Ditto.
9830 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9831 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9832 (x86_linux_read_description): Ditto.
9833 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9834
9835 2014-02-20 Doug Evans <dje@google.com>
9836
9837 * inferiors.c (get_first_inferior): Fix buglet.
9838
9839 2014-02-19 Doug Evans <dje@google.com>
9840
9841 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9842 * inferiors.c (add_thread): Change result type to struct thread_info *.
9843 All callers updated.
9844 (add_lwp): Call add_thread here instead of in callers.
9845 All callers updated.
9846 * linux-low.h (get_lwp_thread): Rewrite.
9847 (struct lwp_info): New member "thread".
9848
9849 2014-02-19 Doug Evans <dje@google.com>
9850
9851 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9852 All callers updated.
9853
9854 2014-02-19 Doug Evans <dje@google.com>
9855
9856 * inferiors.c (add_thread): Fix whitespace.
9857
9858 2014-02-19 Doug Evans <dje@google.com>
9859
9860 * dll.c (clear_dlls): Replace accessing list implemention details
9861 with API function.
9862 * gdbthread.h (get_first_thread): Declare.
9863 * inferiors.c (for_each_inferior_with_data): New function.
9864 (get_first_thread): New function.
9865 (find_thread_ptid): Simplify.
9866 (get_first_inferior): New function.
9867 (clear_list): Delete.
9868 (one_inferior_p): New function.
9869 (clear_inferior_list): New function.
9870 (clear_inferiors): Update.
9871 * inferiors.h (for_each_inferior_with_data): Declare.
9872 (clear_inferior_list): Declare.
9873 (one_inferior_p): Declare.
9874 (get_first_inferior): Declare.
9875 * linux-low.c (linux_wait_for_event): Replace accessing list
9876 implemention details with API function.
9877 * server.c (target_running): Ditto.
9878 (accumulate_file_name_length): New function.
9879 (emit_dll_description): New function.
9880 (handle_qxfer_libraries): Replace accessing list implemention
9881 details with API function.
9882 (handle_qxfer_threads_worker): New function.
9883 (handle_qxfer_threads_proper): Replace accessing list implemention
9884 details with API function.
9885 (handle_query): Ditto.
9886 (visit_actioned_threads_callback_ftype): New typedef.
9887 (visit_actioned_threads_data): New struct.
9888 (visit_actioned_threads): Rewrite to be find_inferior callback.
9889 (resume): Call find_inferior.
9890 (handle_status): Replace accessing list implemention
9891 details with API function.
9892 (process_serial_event): Replace accessing list implemention details
9893 with API function.
9894 * target.c (set_desired_inferior): Replace accessing list implemention
9895 details with API function.
9896 * tracepoint.c (same_process_p): New function.
9897 (gdb_agent_about_to_close): Replace accessing list implemention
9898 details with API function.
9899 * win32-low.c (child_delete_thread): Replace accessing list
9900 implemention details with API function.
9901 (match_dll_by_basename): New function.
9902 (dll_is_loaded_by_basename): New function.
9903 (win32_ensure_ntdll_loaded): Replace accessing list implemention
9904 details call to dll_is_loaded_by_basename.
9905
9906 2014-02-19 Doug Evans <dje@google.com>
9907
9908 * dll.h (struct dll_info): Add comment.
9909 * gdbthread.h (struct thread_info): Add comment.
9910 (current_ptid): Simplify.
9911 * inferiors.c (add_process): Update.
9912 (remove_process): Update.
9913 * inferiors.h (struct process_info): Rename member "head" to "entry".
9914 * linux-low.c (delete_lwp): Update.
9915 (add_lwp): Update.
9916 (last_thread_of_process_p): Update.
9917 (kill_one_lwp_callback, linux_kill): Update.
9918 (status_pending_p_callback): Update.
9919 (wait_for_sigstop): Update. Simplify read of ptid.
9920 (start_step_over): Update.
9921 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
9922 (get_lwp_thread): Update.
9923 (struct lwp_info): Rename member "head" to "entry".
9924 * regcache.h (inferior_list_entry): Delete.
9925 * server.c (kill_inferior_callback): Update.
9926 (detach_or_kill_inferior_callback): Update.
9927 (print_started_pid): Update.
9928 (print_attached_pid): Update.
9929 (process_serial_event): Simplify read of ptid.
9930 * thread-db.c (thread_db_create_event): Update.
9931 (thread_db_get_tls_address): Update.
9932 * win32-low.c (current_inferior_ptid): Simplify.
9933
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target.h (struct target_ops) <supports_btrace>: Add target_ops
9937 argument.
9938 (target_supports_btrace): Update.
9939
9940 2014-02-14 Yao Qi <yao@codesourcery.com>
9941
9942 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9943 (rsp-low-ipa.o): New target.
9944
9945 2014-02-12 Tom Tromey <tromey@redhat.com>
9946
9947 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9948 convert_ascii_to_int.
9949 * regcache.c (registers_to_string): Likewise.
9950 * remote-utils.c (decode_M_packet): Likewise.
9951 * server.c (process_serial_event): Likewise.
9952
9953 2014-02-12 Tom Tromey <tromey@redhat.com>
9954
9955 * server.c (handle_query, handle_v_run): Use hex2bin, not
9956 unhexify.
9957 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9958
9959 2014-02-12 Tom Tromey <tromey@redhat.com>
9960
9961 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9962 convert_int_to_ascii.
9963 * regcache.c (registers_to_string, collect_register_as_string):
9964 Likewise.
9965 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9966 Likewise.
9967 * server.c (process_serial_event): Likewise.
9968 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9969 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9970
9971 2014-02-12 Tom Tromey <tromey@redhat.com>
9972
9973 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9974 bin2hex, not hexify.
9975 * tracepoint.c (cmd_qtstatus): Likewise.
9976
9977 2014-02-12 Tom Tromey <tromey@redhat.com>
9978
9979 * remote-utils.c (monitor_output): Pass explicit length to
9980 hexify.
9981
9982 2014-02-12 Tom Tromey <tromey@redhat.com>
9983
9984 * tracepoint.c: Include rsp-low.h.
9985 * server.c: Include rsp-low.h.
9986 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9987 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9988 declare.
9989 * remote-utils.c: Include rsp-low.h.
9990 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9991 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9992 (convert_int_to_ascii, convert_ascii_to_int): Move to
9993 common/rsp-low.c.
9994 * regcache.c: Include rsp-low.h.
9995 * ax.c: Include rsp-low.h.
9996 * Makefile.in (SFILES): Add common/rsp-low.c.
9997 (OBS): Add rsp-low.o.
9998 (rsp-low.o): New target.
9999
10000 2014-02-12 Tom Tromey <tromey@redhat.com>
10001
10002 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10003 Include print-utils.h.
10004 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10005 (plongest, thirty_two, phex_nz): Remove.
10006 * Makefile.in (SFILES): Add common/print-utils.c.
10007 (OBS): Add print-utils.o.
10008 (print-utils-ipa.o): New target.
10009 (print-utils.o): New target.
10010 (IPA_OBJS): Add print-utils-ipa.o.
10011
10012 2014-02-06 Tom Tromey <tromey@redhat.com>
10013
10014 * Makefile.in (SFILES): Fix indentation.
10015
10016 2014-02-05 Doug Evans <dje@google.com>
10017
10018 * linux-low.c (linux_wait_for_event): Improve comment.
10019 (linux_wait_1): Keep current_inferior in sync with event_child.
10020
10021 2014-01-22 Doug Evans <dje@google.com>
10022
10023 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10024
10025 2014-01-22 Doug Evans <dje@google.com>
10026
10027 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10028 * configure: Regenerate.
10029 * config.in: Regenerate.
10030 * Makefile.in (SFILES): Add debug.c.
10031 (OBS): Add debug.o.
10032 * debug.c: New file.
10033 * debug.h: New file.
10034 * linux-aarch64-low.c (*): Update all debugging printfs to use
10035 debug_printf instead of fprintf.
10036 * linux-arm-low.c (*): Ditto.
10037 * linux-cris-low.c (*): Ditto.
10038 * linux-crisv32-low.c (*): Ditto.
10039 * linux-m32r-low.c (*): Ditto.
10040 * linux-sparc-low.c (*): Ditto.
10041 * linux-x86.c (*): Ditto.
10042 * linux-low.c (*): Ditto.
10043 (linux_wait_1): Add calls to debug_enter, debug_exit.
10044 (linux_wait): Remove redundant debugging printf.
10045 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10046 (linux_resume, unstop_all_lwps): Ditto.
10047 * mem-break.c (*): Update all debugging printfs to use
10048 debug_printf instead of fprintf.
10049 * remote-utils.c (*): Ditto.
10050 * thread-db.c (*): Ditto.
10051 * server.c #include <ctype.h>, "gdb_vecs.h".
10052 (debug_threads): Moved to debug.c.
10053 (*): Update all debugging printfs to use debug_printf instead of
10054 fprintf.
10055 (start_inferior): Replace call to fflush with call to debug_flush.
10056 (monitor_show_help): Mention set debug-format.
10057 (parse_debug_format_options): New function.
10058 (handle_monitor_command): Handle "monitor set debug-format".
10059 (gdbserver_usage): Mention --debug-format.
10060 (main): Parse --debug-format.
10061 * server.h (debug_threads): Declaration moved to debug.h.
10062 #include "debug.h".
10063 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10064 trace_debug_1 that uses debug_printf.
10065 (tracepoint_look_up_symbols): Update all debugging printfs to use
10066 debug_printf instead of fprintf.
10067
10068 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10069
10070 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10071 sys/ptrace.h.
10072
10073 2014-01-17 Pedro Alves <palves@redhat.com>
10074
10075 PR build/16445
10076 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10077 defined after including gdb_proc_service.h.
10078
10079 2014-01-16 Doug Evans <dje@google.com>
10080
10081 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10082 (match_dll): Use it.
10083
10084 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10085
10086 * target.h (target_ops) <read_btrace>: Change parameters and
10087 return type to allow error reporting.
10088 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10089 trace reading errors on.
10090 * linux-low.c (linux_low_read_btrace): Pass trace reading
10091 errors on.
10092 (linux_low_disable_btrace): New.
10093
10094 2014-01-15 Doug Evans <dje@google.com>
10095
10096 * inferiors.c (thread_id_to_gdb_id): Delete.
10097 * inferiors.h (thread_id_to_gdb_id): Delete.
10098
10099 2014-01-13 Eli Zaretskii <eliz@gnu.org>
10100
10101 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10102 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10103 versions.
10104
10105 2014-01-08 Pedro Alves <palves@redhat.com>
10106
10107 * server.c (handle_status): Don't discard previous queued stop
10108 replies or thread's pending status here.
10109 (main) <disconnection>: Do it here instead.
10110
10111 2014-01-08 Pedro Alves <palves@redhat.com>
10112
10113 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10114 * server.c (visit_actioned_threads, handle_pending_status): New
10115 function.
10116 (handle_v_cont): Factor out parts to ...
10117 (resume): ... this new function. If in all-stop, and a thread
10118 being resumed has a pending status, report it without actually
10119 resuming.
10120 (myresume): Adjust to use the new 'resume' function.
10121 (clear_pending_status_callback, set_pending_status_callback)
10122 (find_status_pending_thread_callback): New functions.
10123 (handle_status): Handle the case of multiple threads having
10124 interesting statuses to report. Report threads' real last signal
10125 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10126 with an interesting thread to report the status for, instead of
10127 always reporting the status of the first thread.
10128
10129 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10130
10131 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10132 * gdbreplay.c (gdbreplay_version): Likewise.
10133
10134 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10135
10136 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10137 iov.iov_len with the real length in use.
10138
10139 2013-12-13 Joel Brobecker <brobecker@adacore.com>
10140
10141 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10142 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10143 for all targets that use win32-low.c.
10144 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10145 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10146
10147 2013-12-13 Pedro Alves <palves@redhat.com>
10148
10149 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10150 if equal to TARGET_WAITKIND_LOADED.
10151 * win32-low.c (cached_status): New static global.
10152 (win32_wait): Add declaration.
10153 (do_initial_child_stuff): Flush all initial pending debug events
10154 up to the initial breakpoint.
10155 (win32_wait): If CACHED_STATUS was set, return that instead
10156 of doing a real wait. Remove the code resuming the execution
10157 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10158 during the initial phase. Also remove the code changing
10159 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10160 TARGET_WAITKIND_STOPPED.
10161
10162 2013-12-11 Yao Qi <yao@codesourcery.com>
10163
10164 * notif.c (handle_notif_ack): Return 0 if no notification
10165 matches.
10166
10167 2013-11-20 Doug Evans <dje@google.com>
10168
10169 * linux-low.c (linux_set_resume_request): Fix comment.
10170
10171 2013-11-20 Doug Evans <dje@google.com>
10172
10173 * linux-low.c (resume_status_pending_p): Tweak comment.
10174
10175 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10176
10177 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10178 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10179 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10180 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10181 (srv_amd64_regobj): Add amd64-mpx.o.
10182 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10183 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10184 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10185 * i387-fp.c (num_pl_bnd_register) Added constant.
10186 (num_pl_bnd_cfg_registers) Added constant.
10187 (struct i387_xsave) Added reserved area and MPX fields.
10188 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10189 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10190 function.
10191 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10192 (init_registers_amd64_mpx_linux): Declare new function.
10193 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10194 (x86_64_regmap): Add MPX registers.
10195 (x86_linux_read_description): Add MPX case.
10196 (initialize_low_arch): Initialize MPX targets.
10197
10198 2013-11-18 Tom Tromey <tromey@redhat.com>
10199
10200 * configure: Rebuild.
10201 * configure.ac: Don't check for stdlib.h.
10202 * gdbreplay.c: Unconditionally include stdlib.h.
10203
10204 2013-11-18 Tom Tromey <tromey@redhat.com>
10205
10206 * config.in: Rebuild.
10207 * configure: Rebuild.
10208 * configure.ac: Don't use AC_HEADER_DIRENT.
10209
10210 2013-11-18 Tom Tromey <tromey@redhat.com>
10211
10212 * server.h: Don't check HAVE_STRING_H.
10213 * gdbreplay.c: Don't check HAVE_STRING_H.
10214 * configure: Rebuild.
10215
10216 2013-11-18 Tom Tromey <tromey@redhat.com>
10217
10218 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10219 LIBGNU.
10220
10221 2013-11-08 Tom Tromey <tromey@redhat.com>
10222
10223 * configure, config.in: Rebuild.
10224 * configure.ac: Remove unused configury.
10225
10226 2013-11-08 Tom Tromey <tromey@redhat.com>
10227
10228 * acinclude.m4: Include common.m4, codeset.m4.
10229 * configure, config.in: Rebuild.
10230 * configure.ac: Use GDB_AC_COMMON.
10231
10232 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10233
10234 * linux-s390-low.c (HWCAP_S390_TE): New define.
10235 (s390_arch_setup): Consider the TE field in the HWCAP for
10236 determining 'have_regset_tdb'.
10237
10238 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10239
10240 PR gdb/16014
10241 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10242 call to sizeof.
10243
10244 2013-10-02 Pedro Alves <palves@redhat.com>
10245
10246 * server.c (process_serial_event): Don't output "GDBserver
10247 exiting" if GDB is connected through stdio.
10248 * target.c (mywait): Likewise, be silent if GDB is connected
10249 through stdio.
10250
10251 2013-10-01 Joel Brobecker <brobecker@adacore.com>
10252
10253 * lynx-low.c (lynx_add_threads_after_attach): New function.
10254 (lynx_attach): Remove call to add_thread. Add call to
10255 lynx_add_threads_after_attach instead.
10256
10257 2013-09-28 Mike Frysinger <vapier@gentoo.org>
10258
10259 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10260 * config.in, configure: Regenerated.
10261
10262 2013-09-18 Yao Qi <yao@codesourcery.com>
10263
10264 PR server/15959
10265 * server.c (start_inferior): Clear 'resume_info'.
10266
10267 2013-09-16 Jiong Wang <jiwang@tilera.com>
10268
10269 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10270 for each register.
10271
10272 2013-09-16 Jiong Wang <jiwang@tilera.com>
10273
10274 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10275 linux-tile-low.o to srv_tgtobj.
10276
10277 2013-09-16 Will Newton <will.newton@linaro.org>
10278
10279 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10280 out regs.
10281
10282 2013-09-06 Pedro Alves <palves@redhat.com>
10283
10284 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10285 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10286 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10287 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10288 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10289 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10290
10291 2013-09-06 Pedro Alves <palves@redhat.com>
10292
10293 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10294 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10295
10296 2013-09-06 Pedro Alves <palves@redhat.com>
10297
10298 * linux-amd64-ipa.c: Include tracepoint.h.
10299 * linux-i386-ipa.c: Include tracepoint.h.
10300
10301 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
10302
10303 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10304 (ps_get_thread_area): New function.
10305
10306 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
10307
10308 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10309 (initialize_low_arch): Call init_registers_crisv32 rather than
10310 init_register_crisv32.
10311
10312 2013-09-05 Pedro Alves <palves@redhat.com>
10313
10314 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10315 to ...
10316 * hostio.h: ... this new file.
10317 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10318 win32-low.c: Include hostio.h.
10319
10320 2013-09-05 Pedro Alves <palves@redhat.com>
10321
10322 * server.h (gdb_client_data, handler_func, callback_handler_func)
10323 (delete_file_handler, add_file_handler, append_callback_event)
10324 (delete_callback_event, start_event_loop, initialize_event_loop):
10325 Move to event-loop.h and include it.
10326 * event-loop.h: New file.
10327
10328 2013-09-05 Pedro Alves <palves@redhat.com>
10329
10330 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10331 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10332 (loaded_dll, unloaded_dll): Move to ...
10333 * dll.h: ... this new file.
10334 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10335
10336 2013-09-05 Pedro Alves <palves@redhat.com>
10337
10338 * server.h (current_process, get_thread_process, all_processes)
10339 (add_inferior_to_list, for_each_inferior, current_inferior)
10340 (remove_inferior, add_process, remove_process, find_process_pid)
10341 (have_started_inferiors_p, have_attached_inferiors_p)
10342 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10343 (clear_inferiors, find_inferior, find_inferior_id)
10344 (inferior_target_data, set_inferior_target_data)
10345 (inferior_regcache_data, set_inferior_regcache_data): Move to
10346 inferiors.h, and include it.
10347 * inferiors.h: New file.
10348
10349 2013-09-05 Pedro Alves <palves@redhat.com>
10350
10351 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10352 Move ...
10353 * ax.h: ... here.
10354
10355 2013-09-05 Pedro Alves <palves@redhat.com>
10356
10357 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10358 tracepoint.h.
10359 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10360 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10361 (handle_tracepoint_general_set, handle_tracepoint_query)
10362 (tracepoint_finished_step, tracepoint_was_hit)
10363 (release_while_stepping_state_list, current_traceframe)
10364 (in_readonly_region, traceframe_read_mem)
10365 (fetch_traceframe_registers, traceframe_read_sdata)
10366 (traceframe_read_info, struct fast_tpoint_collect_status)
10367 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10368 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10369 (supply_fast_tracepoint_registers)
10370 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10371 (ipa_tdesc, claim_trampoline_space)
10372 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10373 (agent_mem_read, agent_get_trace_state_variable_value)
10374 (agent_set_trace_state_variable_value, agent_tsv_read)
10375 (agent_mem_read_string, get_raw_reg_func_addr)
10376 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10377 * tracepoint.h: ... this new file.
10378
10379 2013-09-05 Pedro Alves <palves@redhat.com>
10380
10381 * server.h (perror_with_name, error, fatal, warning, paddress)
10382 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10383 include it.
10384 * utils.h: New file.
10385
10386 2013-09-05 Pedro Alves <palves@redhat.com>
10387
10388 * server.h (remote_debug, noack_mode, transport_is_reliable)
10389 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10390 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10391 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10392 (write_enn, initialize_async_io, enable_async_io)
10393 (disable_async_io, check_remote_input_interrupt_request)
10394 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10395 (dead_thread_notify, prepare_resume_reply)
10396 (decode_address_to_semicolon, decode_address, decode_m_packet)
10397 (decode_M_packet, decode_X_packet, decode_xfer_write)
10398 (decode_search_memory_packet, unhexify, hexify)
10399 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10400 (look_up_one_symbol, relocate_instruction)
10401 (monitor_output): Move to remote-utils.h, and include it.
10402 * remote-utils.h: New file.
10403
10404 2013-09-05 Pedro Alves <palves@redhat.com>
10405
10406 * server.h (_): Delete.
10407
10408 2013-09-02 Pedro Alves <palves@redhat.com>
10409
10410 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10411 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10412 allocated.
10413 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10414
10415 2013-09-02 Pierre Muller <muller@sourceware.org>
10416
10417 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10418 or WriteProcessMemory complete successfully and handle
10419 ERROR_PARTIAL_COPY error.
10420
10421 2013-09-02 Pedro Alves <palves@redhat.com>
10422
10423 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10424 error instead of EIO.
10425
10426 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10427
10428 PR server/15604
10429 * linux-low.c: Include filestuff.h.
10430 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10431 * lynx-low.c: Include filestuff.h.
10432 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10433 * server.c: Include filestuff.h.
10434 (main): Call notice_open_fds.
10435 * spu-low.c: Include filestuff.h.
10436 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10437
10438 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
10439
10440 * Makefile.in: Explain why ../target and ../nat are not
10441 listed as include file search paths.
10442 (linux-waitpid.o): New object file rule.
10443 * configure.srv (srv_native_linux_obj): New variable.
10444 Replace all occurrences of linux native object files with
10445 $srv_native_linux_obj.
10446 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10447 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10448 (linux_enable_event_reporting): Remove declaration.
10449 (my_waitpid): Moved to common/linux-waitpid.c.
10450 (linux_wait_for_event): Pass ptid when calling
10451 linux_enable_event_reporting.
10452 (linux_supports_tracefork_flag): Remove.
10453 (linux_enable_event_reporting): Likewise.
10454 (linux_tracefork_grandchild): Remove.
10455 (STACK_SIZE): Moved to common/linux-ptrace.c.
10456 (linux_tracefork_child): Remove.
10457 (linux_test_for_tracefork): Remove.
10458 (linux_look_up_symbols): Call linux_supports_traceclone.
10459 (initialize_low): Remove call to linux_test_for_tracefork.
10460 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10461 common/linux-ptrace.h.
10462 (PTRACE_TYPE_ARG4): Likewise.
10463 Include linux-ptrace.h.
10464
10465 2013-08-21 Pedro Alves <palves@redhat.com>
10466
10467 * config.in: Renegerate.
10468
10469 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
10470
10471 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10472 (SFILES): Remove $(srcdir)/common/target-common.c and
10473 add $(srcdir)/target/waitstatus.c.
10474 (OBS): Remove target-common.o and add waitstatus.o.
10475 (server_h): Remove $(srcdir)/../common/target-common.h and
10476 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10477 and $(srcdir)/../target/waitstatus.h.
10478 (target-common.o): Remove.
10479 (waitstatus.o): New target object file.
10480 * target.h: Do not include target-common.h and
10481 include target/resume.h, target/wait.h and
10482 target/waitstatus.h.
10483
10484 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
10485
10486 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10487 to PTRACE_TYPE_ARG3.
10488 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10489 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
10490 PTRACE_TYPE_ARG4.
10491 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
10492 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
10493
10494 2013-07-27 Jie Zhang <jie@codesourcery.com>
10495 Daniel Jacobowitz <dan@codesourcery.com>
10496 Yao Qi <yao@codesourcery.com>
10497
10498 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
10499 (mips-linux-watch.o): New rule.
10500 (mips_linux_watch_h): New variable.
10501 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
10502 srv_tgtobj.
10503 * linux-mips-low.c: Include mips-linux-watch.h.
10504 (struct arch_process_info, struct arch_lwp_info): New.
10505 (update_watch_registers_callback): New function.
10506 (mips_linux_new_process, mips_linux_new_thread) New functions.
10507 (mips_linux_prepare_to_resume, mips_insert_point): New
10508 functions.
10509 (mips_remove_point, mips_stopped_by_watchpoint): New
10510 functions.
10511 (rsp_bp_type_to_target_hw_bp_type): New function.
10512 (mips_stopped_data_address): New function.
10513 (the_low_target): Add watchpoint support functions.
10514
10515 2013-07-27 Yao Qi <yao@codesourcery.com>
10516
10517 * i386-low.c: Include break-common.h.
10518 (enum target_hw_bp_type): Remove.
10519
10520 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
10521
10522 * Makefile.in (SFILES): /common/target-common.c.
10523 (OBS): Add target-common.o.
10524 (server_h): Add $(srcdir)/../common/target-common.h.
10525 (target-common.o): New target.
10526 * server.c (queue_stop_reply_callback): Free
10527 status string after use.
10528 * target.c (target_waitstatus_to_string): Remove.
10529 * target.h: Include target-common.h.
10530 (resume_kind): Likewise.
10531 (target_waitkind): Likewise.
10532 (target_waitstatus): Likewise.
10533 (TARGET_WNOHANG): Likewise.
10534
10535 2013-07-04 Yao Qi <yao@codesourcery.com>
10536
10537 * Makefile.in (host_alias): Use @host_noncanonical@.
10538 (target_alias): Use @target_noncanonical@.
10539 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10540 ACX_NONCANONICAL_HOST.
10541 * configure: Regenerated.
10542
10543 Revert:
10544 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10545
10546 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10547 * configure: Rebuild.
10548 * Makefile.in (version_host, version_target): Get from configure.
10549 (version.c): Use $(version_host) and $(version_target).
10550
10551 2013-07-03 Pedro Alves <palves@redhat.com>
10552
10553 * Makefile.in (config.status): Depend on development.sh.
10554 * acinclude.m4: Include libmcheck.m4.
10555 * configure: Regenerate.
10556
10557 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10558
10559 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10560 attribute inside the parentheses.
10561 (winapi_DebugSetProcessKillOnExit): Ditto.
10562 (winapi_DebugBreakProcess): Ditto.
10563 (winapi_GenerateConsoleCtrlEvent): Ditto.
10564
10565 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10566
10567 * notif.h (notif_event): Add a dummy member to avoid compiler
10568 errors.
10569
10570 2013-07-01 Pedro Alves <palves@redhat.com>
10571
10572 * hostio.c (HOSTIO_PATH_MAX): Define.
10573 (require_filename, handle_open, handle_unlink, handle_readlink):
10574 Use it.
10575
10576 2013-07-01 Pedro Alves <palves@redhat.com>
10577
10578 * server.h: Include "pathmax.h".
10579 * linux-low.c: Don't include sys/param.h.
10580 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10581 MAXPATHLEN.
10582 * win32-low.c: Don't include sys/param.h.
10583 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10584
10585 2013-07-01 Pedro Alves <palves@redhat.com>
10586
10587 * event-loop.c: Don't check HAVE_UNISTD_H before including
10588 <unistd.h>.
10589 * gdbreplay.c: Likewise.
10590 * remote-utils.c: Likewise.
10591 * server.c: Likewise.
10592 * configure.ac: Don't check for unistd.h.
10593 * configure: Regenerate.
10594
10595 2013-06-28 Tom Tromey <tromey@redhat.com>
10596
10597 * Makefile.in (version.c): Use version.in, not
10598 common/version.in.
10599
10600 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10601
10602 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10603 * configure: Rebuild.
10604 * Makefile.in (version_host, version_target): Get from configure.
10605 (version.c): Use $(version_host) and $(version_target).
10606
10607 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10608
10609 Fix trace-status to output user name without trailing colon.
10610 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10611
10612 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10613
10614 Fix trace-status to output proper start-time and stop-time.
10615 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10616 output start time and stop time in hex as gdb expects.
10617
10618 2013-06-26 Pedro Alves <pedro@codesourcery.com>
10619
10620 * tracepoint.c (build_traceframe_info_xml): Output trace state
10621 variables present in the trace buffer.
10622
10623 2013-06-24 Tom Tromey <tromey@redhat.com>
10624
10625 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10626 create-version.sh.
10627 (version.o): Remove.
10628 * gdbreplay.c: Include version.h.
10629 (version, host_name): Don't declare.
10630 * server.h: Include version.h.
10631 (version, host_name): Don't declare.
10632
10633 2013-06-12 Pedro Alves <palves@redhat.com>
10634
10635 * linux-x86-low.c (linux_is_elf64): Delete global.
10636 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10637 with local linux_pid_exe_is_elf_64_file use.
10638
10639 2013-06-11 Pedro Alves <palves@redhat.com>
10640
10641 * linux-low.c (regset_disabled, disable_regset): New functions.
10642 (regsets_fetch_inferior_registers)
10643 (regsets_store_inferior_registers): Use them.
10644 (initialize_regsets_info); Don't allocate the disabled_regsets
10645 array here.
10646 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10647 comment.
10648
10649 2013-06-11 Pedro Alves <palves@redhat.com>
10650
10651 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10652 xmalloc.
10653
10654 2013-06-11 Pedro Alves <palves@redhat.com>
10655
10656 * linux-x86-low.c (initialize_low_arch): Call
10657 init_registers_x32_avx_linux.
10658
10659 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10660
10661 Fix compatibility with Android Bionic.
10662 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10663 it is not empty.
10664
10665 2013-06-07 Pedro Alves <palves@redhat.com>
10666
10667 PR server/14823
10668 * Makefile.in (OBS): Add tdesc.o.
10669 (IPA_OBJS): Add tdesc-ipa.o.
10670 (tdesc-ipa.o): New rule.
10671 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10672 interface.
10673 * linux-low.c (new_inferior): Delete.
10674 (disabled_regsets, num_regsets): Delete.
10675 (linux_add_process): Adjust to set the new per-process
10676 new_inferior flag.
10677 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10678 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10679 was a stop. When calling arch_setup, switch the current inferior
10680 to the thread that got an event.
10681 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10682 (regsets_fetch_inferior_registers)
10683 (regsets_store_inferior_registers): New regsets_info parameter.
10684 Adjust to use it.
10685 (linux_register_in_regsets): New regs_info parameter. Adjust to
10686 use it.
10687 (register_addr, fetch_register, store_register): New usrregs_info
10688 parameter. Adjust to use it.
10689 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10690 parameter regs_info. Adjust to use it.
10691 (linux_fetch_registers): Get the current inferior's regs_info, and
10692 adjust to use it.
10693 (linux_store_registers): Ditto.
10694 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10695 (initialize_low): Don't initialize the target_regsets here. Call
10696 initialize_low_arch.
10697 * linux-low.h (target_regsets): Delete declaration.
10698 (struct regsets_info): New.
10699 (struct usrregs_info): New.
10700 (struct regs_info): New.
10701 (struct process_info_private) <new_inferior>: New field.
10702 (struct linux_target_ops): Delete the num_regs, regmap, and
10703 regset_bitmap fields. New field regs_info.
10704 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10705 * i387-fp.c (num_xmm_registers): Delete.
10706 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10707 calls to new interface.
10708 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10709 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10710 Infer the number of xmm registers from the regcache's target
10711 description.
10712 * i387-fp.h (num_xmm_registers): Delete.
10713 * inferiors.c (add_thread): Don't install the thread's regcache
10714 here.
10715 * proc-service.c (gregset_info): Fetch the current inferior's
10716 regs_info. Adjust to use it.
10717 * regcache.c: Include tdesc.h.
10718 (register_bytes, reg_defs, num_registers)
10719 (gdbserver_expedite_regs): Delete.
10720 (get_thread_regcache): If the thread doesn't have a regcache yet,
10721 create one, instead of aborting gdbserver.
10722 (regcache_invalidate_one): Rename to ...
10723 (regcache_invalidate_thread): ... this.
10724 (regcache_invalidate_one): New.
10725 (regcache_invalidate): Only invalidate registers of the current
10726 process.
10727 (init_register_cache): Add target_desc parameter, and use it.
10728 (new_register_cache): Ditto. Assert the target description has a
10729 non zero registers_size.
10730 (regcache_cpy): Add assertions. Adjust.
10731 (realloc_register_cache, set_register_cache): Delete.
10732 (registers_to_string, registers_from_string): Adjust.
10733 (find_register_by_name, find_regno, find_register_by_number)
10734 (register_cache_size): Add target_desc parameter, and use it.
10735 (free_register_cache_thread, free_register_cache_thread_one)
10736 (regcache_release, register_cache_size): New.
10737 (register_size): Add target_desc parameter, and use it.
10738 (register_data, supply_register, supply_register_zeroed)
10739 (supply_regblock, supply_register_by_name, collect_register)
10740 (collect_register_as_string, collect_register_by_name): Adjust.
10741 * regcache.h (struct target_desc): Forward declare.
10742 (struct regcache) <tdesc>: New field.
10743 (init_register_cache, new_register_cache): Add target_desc
10744 parameter.
10745 (regcache_invalidate_thread): Declare.
10746 (regcache_invalidate_one): Delete declaration.
10747 (regcache_release): Declare.
10748 (find_register_by_number, register_cache_size, register_size)
10749 (find_regno): Add target_desc parameter.
10750 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10751 declarations.
10752 * remote-utils.c: Include tdesc.h.
10753 (outreg, prepare_resume_reply): Adjust.
10754 * server.c: Include tdesc.h.
10755 (gdbserver_xmltarget): Delete declaration.
10756 (get_features_xml, process_serial_event): Adjust.
10757 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10758 declare.
10759 (struct process_info) <tdesc>: New field.
10760 (ipa_tdesc): Declare.
10761 * tdesc.c: New file.
10762 * tdesc.h: New file.
10763 * tracepoint.c: Include tdesc.h.
10764 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10765 (get_context_regcache): Adjust to pass ipa_tdesc down.
10766 (do_action_at_tracepoint): Adjust to get the register cache size
10767 from the context regcache's description.
10768 (traceframe_walk_blocks): Adjust to get the register cache size
10769 from the current trace frame's description.
10770 (traceframe_get_pc): Adjust to get current trace frame's
10771 description and pass it down.
10772 (gdb_collect): Adjust to get the register cache size from the
10773 IPA's description.
10774 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10775 (gdbserver_xmltarget): Delete.
10776 (initialize_low_tracepoint): Set the ipa's target description.
10777 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10778 (initialize_low_tracepoint): Set the ipa's target description.
10779 * linux-x86-low.c: Include tdesc.h.
10780 [__x86_64__] (is_64bit_tdesc): New.
10781 (ps_get_thread_area, x86_get_thread_area): Use it.
10782 (i386_cannot_store_register): Rename to ...
10783 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10784 (i386_cannot_fetch_register): Rename to ...
10785 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10786 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10787 to new interface.
10788 (target_regsets): Rename to ...
10789 (x86_regsets): ... this.
10790 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10791 interface.
10792 (x86_siginfo_fixup): Use is_64bit_tdesc.
10793 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10794 (tdesc_x32_avx_linux, tdesc_x32_linux)
10795 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10796 Declare.
10797 (x86_linux_update_xmltarget): Delete.
10798 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10799 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10800 (AMD64_LINUX_USER64_CS): New.
10801 (x86_linux_read_description): New, based on
10802 x86_linux_update_xmltarget.
10803 (same_process_callback): New.
10804 (x86_arch_setup_process_callback): New.
10805 (x86_linux_update_xmltarget): New.
10806 (x86_regsets_info): New.
10807 (amd64_linux_regs_info): New.
10808 (i386_linux_usrregs_info): New.
10809 (i386_linux_regs_info): New.
10810 (x86_linux_regs_info): New.
10811 (x86_arch_setup): Reimplement.
10812 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10813 (x86_emit_ops): Ditto.
10814 (the_low_target): Adjust. Install x86_linux_regs_info,
10815 x86_cannot_fetch_register, and x86_cannot_store_register.
10816 (initialize_low_arch): New.
10817 * linux-ia64-low.c (tdesc_ia64): Declare.
10818 (ia64_fetch_register): Adjust.
10819 (ia64_usrregs_info, regs_info): New globals.
10820 (ia64_regs_info): New function.
10821 (the_low_target): Adjust.
10822 (initialize_low_arch): New function.
10823 * linux-sparc-low.c (tdesc_sparc64): Declare.
10824 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10825 Adjust.
10826 (sparc_arch_setup): New function.
10827 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10828 (the_low_target): Adjust.
10829 (initialize_low_arch): New function.
10830 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10831 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10832 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10833 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10834 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10835 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10836 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10837 (tdesc_powerpc_isa205_vsx64l): Declare.
10838 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10839 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10840 (ppc_set_pc, ppc_get_hwcap): Adjust.
10841 (ppc_usrregs_info): Forward declare.
10842 (!__powerpc64__) ppc_regmap_adjusted: New global.
10843 (ppc_arch_setup): Adjust to the current process'es target
10844 description.
10845 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10846 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10847 (ppc_store_evrregset): Adjust.
10848 (target_regsets): Rename to ...
10849 (ppc_regsets): ... this, and make static.
10850 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10851 (ppc_regs_info): New function.
10852 (the_low_target): Adjust.
10853 (initialize_low_arch): New function.
10854 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10855 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10856 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10857 (tdesc_s390x_linux64v2): Declare.
10858 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10859 (s390_fill_gregset, s390_store_last_break): Adjust.
10860 (target_regsets): Rename to ...
10861 (s390_regsets): ... this, and make static.
10862 (s390_get_pc, s390_set_pc): Adjust.
10863 (s390_get_hwcap): New target_desc parameter, and use it.
10864 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10865 (s390_arch_setup): Adjust to set the current process'es target
10866 description. Don't adjust the regmap.
10867 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10868 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10869 (regs_info_3264): New globals.
10870 (s390_regs_info): New function.
10871 (the_low_target): Adjust.
10872 (initialize_low_arch): New function.
10873 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10874 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10875 [__mips64] (init_registers_mips_linux)
10876 (init_registers_mips_dsp_linux): Delete defines.
10877 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10878 (have_dsp): New global.
10879 (mips_read_description): New, based on mips_arch_setup.
10880 (mips_arch_setup): Reimplement.
10881 (get_usrregs_info): New function.
10882 (mips_cannot_fetch_register, mips_cannot_store_register)
10883 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10884 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10885 (target_regsets): Rename to ...
10886 (mips_regsets): ... this, and make static.
10887 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10888 (dsp_regs_info, regs_info): New globals.
10889 (mips_regs_info): New function.
10890 (the_low_target): Adjust.
10891 (initialize_low_arch): New function.
10892 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10893 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10894 Declare.
10895 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10896 (arm_read_description): New, with bits factored from
10897 arm_arch_setup.
10898 (arm_arch_setup): Reimplement.
10899 (target_regsets): Rename to ...
10900 (arm_regsets): ... this, and make static.
10901 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
10902 (arm_regs_info): New function.
10903 (the_low_target): Adjust.
10904 (initialize_low_arch): New function.
10905 * linux-m68k-low.c (tdesc_m68k): Declare.
10906 (target_regsets): Rename to ...
10907 (m68k_regsets): ... this, and make static.
10908 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
10909 (m68k_regs_info): New function.
10910 (m68k_arch_setup): New function.
10911 (the_low_target): Adjust.
10912 (initialize_low_arch): New function.
10913 * linux-sh-low.c (tdesc_sharch): Declare.
10914 (target_regsets): Rename to ...
10915 (sh_regsets): ... this, and make static.
10916 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
10917 (sh_regs_info, sh_arch_setup): New functions.
10918 (the_low_target): Adjust.
10919 (initialize_low_arch): New function.
10920 * linux-bfin-low.c (tdesc_bfin): Declare.
10921 (bfin_arch_setup): New function.
10922 (bfin_usrregs_info, regs_info): New globals.
10923 (bfin_regs_info): New function.
10924 (the_low_target): Adjust.
10925 (initialize_low_arch): New function.
10926 * linux-cris-low.c (tdesc_cris): Declare.
10927 (cris_arch_setup): New function.
10928 (cris_usrregs_info, regs_info): New globals.
10929 (cris_regs_info): New function.
10930 (the_low_target): Adjust.
10931 (initialize_low_arch): New function.
10932 * linux-cris-low.c (tdesc_crisv32): Declare.
10933 (cris_arch_setup): New function.
10934 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
10935 (cris_regs_info): New function.
10936 (the_low_target): Adjust.
10937 (initialize_low_arch): New function.
10938 * linux-m32r-low.c (tdesc_m32r): Declare.
10939 (m32r_arch_setup): New function.
10940 (m32r_usrregs_info, regs_info): New globals.
10941 (m32r_regs_info): Adjust.
10942 (initialize_low_arch): New function.
10943 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10944 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10945 (tic6x_usrregs_info): Forward declare.
10946 (tic6x_read_description): New function, based on ...
10947 (tic6x_arch_setup): ... this. Reimplement.
10948 (target_regsets): Rename to ...
10949 (tic6x_regsets): ... this, and make static.
10950 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10951 (tic6x_regs_info): New function.
10952 (the_low_target): Adjust.
10953 (initialize_low_arch): New function.
10954 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10955 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10956 (target_regsets): Rename to ...
10957 (xtensa_regsets): ... this, and make static.
10958 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10959 globals.
10960 (xtensa_arch_setup, xtensa_regs_info): New functions.
10961 (the_low_target): Adjust.
10962 (initialize_low_arch): New function.
10963 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10964 (nios2_arch_setup): Set the current process'es tdesc.
10965 (target_regsets): Rename to ...
10966 (nios2_regsets): ... this.
10967 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10968 (nios2_regs_info): New function.
10969 (the_low_target): Adjust.
10970 (initialize_low_arch): New function.
10971 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10972 (aarch64_arch_setup): Set the current process'es tdesc.
10973 (target_regsets): Rename to ...
10974 (aarch64_regsets): ... this.
10975 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10976 (aarch64_regs_info): New function.
10977 (the_low_target): Adjust.
10978 (initialize_low_arch): New function.
10979 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10980 globals.
10981 (target_regsets): Rename to ...
10982 (tile_regsets): ... this.
10983 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10984 (tile_regs_info): New function.
10985 (tile_arch_setup): Set the current process'es tdesc.
10986 (the_low_target): Adjust.
10987 (initialize_low_arch): New function.
10988 * spu-low.c (tdesc_spu): Declare.
10989 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10990 * win32-arm-low.c (tdesc_arm): Declare.
10991 (arm_arch_setup): New function.
10992 (the_low_target): Install arm_arch_setup instead of
10993 init_registers_arm.
10994 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10995 (init_windows_x86): Rename to ...
10996 (i386_arch_setup): ... this. Set `win32_tdesc'.
10997 (the_low_target): Adjust.
10998 * win32-low.c (win32_tdesc): New global.
10999 (child_add_thread): Don't create the thread cache here.
11000 (do_initial_child_stuff): Set the new process'es tdesc.
11001 * win32-low.h (struct target_desc): Forward declare.
11002 (win32_tdesc): Declare.
11003 * lynx-i386-low.c (tdesc_i386): Declare global.
11004 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11005 * lynx-low.c (lynx_tdesc): New global.
11006 (lynx_add_process): Set the new process'es tdesc.
11007 * lynx-low.h (struct target_desc): Forward declare.
11008 (lynx_tdesc): Declare global.
11009 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11010 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11011 * nto-low.c (nto_tdesc): New global.
11012 (do_attach): Set the new process'es tdesc.
11013 * nto-low.h (struct target_desc): Forward declare.
11014 (nto_tdesc): Declare.
11015 * nto-x86-low.c (tdesc_i386): Declare.
11016 (nto_x86_arch_setup): Set `nto_tdesc'.
11017
11018 2013-06-04 Gary Benson <gbenson@redhat.com>
11019
11020 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11021 to qSupported response when appropriate.
11022 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11023 with nonzero-length annex.
11024 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11025 arguments supplied in annex.
11026
11027 2013-05-31 Doug Evans <dje@google.com>
11028
11029 PR server/15594
11030 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11031 64 bits in 64-cross-32 environment.
11032
11033 2013-05-28 Pedro Alves <palves@redhat.com>
11034
11035 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11036 (aarch64-without-fpu.c): Delete rule.
11037 * configure.srv (aarch64*-*-linux*): Remove references to
11038 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11039 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11040 declaration.
11041
11042 2013-05-24 Pedro Alves <palves@redhat.com>
11043
11044 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11045 instead of strchr/decode_address. Error if the range isn't split
11046 with a ','. Don't assume there's be a ':' in the action.
11047
11048 2013-05-23 Yao Qi <yao@codesourcery.com>
11049 Pedro Alves <palves@redhat.com>
11050
11051 * linux-low.c (lwp_in_step_range): New function.
11052 (linux_wait_1): If the thread was range stepping and stopped
11053 outside the stepping range, report the stop to GDB. Otherwise,
11054 continue stepping. Add range stepping debug output.
11055 (linux_set_resume_request): Copy the step range from the resume
11056 request to the lwp.
11057 (linux_supports_range_stepping): New.
11058 (linux_target_ops) <supports_range_stepping>: Set to
11059 linux_supports_range_stepping.
11060 * linux-low.h (struct linux_target_ops)
11061 <supports_range_stepping>: New field.
11062 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11063 * linux-x86-low.c (x86_supports_range_stepping): New.
11064 (the_low_target) <supports_range_stepping>: Set to
11065 x86_supports_range_stepping.
11066 * server.c (handle_v_cont): Handle 'r' action.
11067 (handle_v_requests): Append ";r" if the target supports range
11068 stepping.
11069 * target.h (struct thread_resume) <step_range_start,
11070 step_range_end>: New fields.
11071 (struct target_ops) <supports_range_stepping>:
11072 New field.
11073 (target_supports_range_stepping): New macro.
11074
11075 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11076
11077 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11078 confusion in comment.
11079
11080 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11081
11082 * lynx-low.c (struct process_info_private): New type.
11083 (lynx_add_process): New function.
11084 (lynx_create_inferior, lynx_attach): Replace calls to
11085 add_process by calls to lynx_add_process.
11086 (lynx_resume): If PTID is null, then try using
11087 current_process()->private->last_wait_event_ptid.
11088 Add comments.
11089 (lynx_clear_inferiors): Delete. The contents of that function
11090 has been inlined in lynx_mourn;
11091 (lynx_wait_1): Save the ptid in the process's private data.
11092 (lynx_mourn): Free the process' private data. Replace call
11093 to lynx_clear_inferiors by call to clear_inferiors.
11094
11095 2013-05-17 Yao Qi <yao@codesourcery.com>
11096
11097 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11098 the right place.
11099
11100 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
11101
11102 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11103 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11104 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11105 PT_TEXT_END_ADDR guards. Update comments.
11106 (linux_target_op) <read_offsets>: Conditionally define to
11107 linux_read_offsets if the target is UCLIBC and if it defines
11108 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11109
11110 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11111 Andrew Jenner <andrew@codesourcery.com>
11112
11113 * Makefile.in (SFILES): Add linux-nios2-low.c.
11114 (clean): Add action to delete nios2-linux.c.
11115 (nios2-linux.c): New rule.
11116 * configure.srv: Add nios2*-*-linux*.
11117 * linux-nios2-low.c: New.
11118
11119 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11120
11121 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11122
11123 2013-04-25 Hui Zhu <hui@codesourcery.com>
11124
11125 PR gdb/15186
11126 * ax.c (ax_printf): Add fflush.
11127
11128 2013-04-22 Tom Tromey <tromey@redhat.com>
11129
11130 * Makefile.in (SFILES): Add filestuff.c.
11131 (OBS): Add filestuff.o.
11132 (filestuff.o): New target.
11133 * config.in, configure: Rebuild.
11134 * configure.ac: Check for fdwalk, pipe2.
11135
11136 2013-04-17 Pedro Alves <palves@redhat.com>
11137
11138 * configure.ac (USE_THREAD_DB): Delete variable.
11139 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11140 Don't AC_SUBST USE_THREAD_DB.
11141 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11142 * config.in, configure: Regenerate.
11143
11144 2013-04-16 Pedro Alves <palves@redhat.com>
11145
11146 * linux-low.h (struct lwp_info) <thread_known>: Move under
11147 the USE_THREAD_DB #ifdef.
11148
11149 2013-04-16 Pedro Alves <palves@redhat.com>
11150
11151 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11152 (linux-low.o): Delete rule.
11153 * linux-low.h: Always include "gdb_thread_db.h" instead of
11154 conditionally including thread_db.h.
11155 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11156 HAVE_THREAD_DB_H.
11157
11158 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11159
11160 * Makefile.in (install-only): Fix make install regression.
11161
11162 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11163
11164 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11165 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11166 installation.
11167 * gdbserver.1: Remove.
11168
11169 2013-03-22 Pedro Alves <palves@redhat.com>
11170
11171 * linux-low.c (handle_extended_wait): Don't call
11172 linux_enable_event_reporting.
11173
11174 2013-03-15 Tony Theodore <tonyt@logyst.com>
11175
11176 PR build/9098:
11177 * Makefile.in (SHELL): Use @SHELL@.
11178
11179 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11180
11181 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11182 compiler warning.
11183
11184 2013-03-13 Joel Brobecker <brobecker@adacore.com>
11185
11186 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11187 Remove extraneous NULL element.
11188
11189 2013-03-13 Yao Qi <yao@codesourcery.com>
11190
11191 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11192 'V' block in trace frame.
11193
11194 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11195
11196 * target.h (struct target_ops): Add btrace ops.
11197 (target_supports_btrace): New macro.
11198 (target_enable_btrace): New macro.
11199 (target_disable_btrace): New macro.
11200 (target_read_btrace): New macro.
11201 * gdbthread.h (struct thread_info): Add btrace field.
11202 * server.c: Include btrace-common.h.
11203 (handle_btrace_general_set): New function.
11204 (handle_btrace_enable): New function.
11205 (handle_btrace_disable): New function.
11206 (handle_general_set): Call handle_btrace_general_set.
11207 (handle_qxfer_btrace): New function.
11208 (struct qxfer qxfer_packets[]): Add btrace entry.
11209 * inferiors.c (remove_thread): Disable btrace.
11210 * linux-low: Include linux-btrace.h.
11211 (linux_low_enable_btrace): New function.
11212 (linux_low_read_btrace): New function.
11213 (linux_target_ops): Add btrace ops.
11214 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11215 Add srv_linux_btrace=yes.
11216 (x86_64-*-linux*): Add linux-btrace.o.
11217 Add srv_linux_btrace=yes.
11218 * configure.ac: Define HAVE_LINUX_BTRACE.
11219 * config.in: Regenerated.
11220 * configure: Regenerated.
11221
11222 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11223
11224 * server.c (handle_qxfer): Preserve error message if -3 is
11225 returned.
11226 (qxfer): Document the -3 return value.
11227
11228 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11229
11230 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11231 (linux_btrace_h): New variable.
11232 (linux-btrace.o): New rule.
11233
11234 2013-03-08 Stan Shebs <stan@codesourcery.com>
11235 Hafiz Abid Qadeer <abidh@codesourcery.com>
11236
11237 * tracepoint.c (trace_buffer_size): New global.
11238 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11239 (init_trace_buffer): Change to one-argument function. Allocate
11240 trace buffer memory.
11241 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11242 handle QTBuffer:size packet.
11243 (cmd_bigqtbuffer_size): New function.
11244 (initialize_tracepoint): Call init_trace_buffer with
11245 DEFAULT_TRACE_BUFFER_SIZE.
11246 * server.c (handle_query): Add QTBuffer:size in the
11247 supported packets.
11248
11249 2013-03-07 Yao Qi <yao@codesourcery.com>
11250
11251 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11252 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11253 of -1.
11254 (cmd_qtsp): Adjust condition. Do post increment.
11255 Set cur_action and cur_step_action back to 0.
11256
11257 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11258
11259 PR server/15236
11260 * linux-low.c (linux_write_memory): Return early success if LEN is
11261 zero.
11262
11263 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11264
11265 * configure.srv: Add x86_64-*-cygwin* as target.
11266
11267 2013-02-28 Tom Tromey <tromey@redhat.com>
11268
11269 * configure.ac: Invoke AC_SYS_LARGEFILE.
11270 * configure, config.in: Rebuild.
11271
11272 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
11273
11274 * win32-low.c: Throughout, fix format strings and casts of
11275 printf-like functions to avoid type related warnings on all
11276 platforms.
11277 (get_child_debug_event): Print dwDebugEventCode as hex since
11278 that's how it's usually documented.
11279
11280 2013-02-28 Yao Qi <yao@codesourcery.com>
11281
11282 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11283 pulongest.
11284
11285 2013-02-27 Jiong Wang <jiwang@tilera.com>
11286
11287 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11288 (reg-tilegx32.c): New rule.
11289 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11290 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11291 different register info initializer according to elf class.
11292 (init_registers_tilgx32): New function. The tilegx32 register info
11293 initializer.
11294 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11295 (tile_store_gregset): Likewise.
11296
11297 2013-02-27 Yao Qi <yao@codesourcery.com>
11298
11299 * server.c (process_point_options): Print debug message when
11300 debug_threads is true.
11301
11302 2013-02-26 Yao Qi <yao@codesourcery.com>
11303
11304 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11305
11306 2013-02-19 Pedro Alves <palves@redhat.com>
11307 Kai Tietz <ktietz@redhat.com>
11308
11309 PR gdb/15161
11310
11311 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11312 instead of strtoul to extract address from packet.
11313 (process_serial_event) <'z'>: Likewise.
11314
11315 2013-02-18 Yao Qi <yao@codesourcery.com>
11316
11317 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11318
11319 2013-02-14 Pedro Alves <palves@redhat.com>
11320
11321 Plug memory leak.
11322
11323 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11324 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11325
11326 2013-02-14 Pedro Alves <palves@redhat.com>
11327
11328 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11329
11330 2013-02-14 Pedro Alves <palves@redhat.com>
11331
11332 * tracepoint.c (save_string): Delete.
11333 (add_tracepoint_action): Use savestring instead of save_string.
11334
11335 2013-02-12 Pedro Alves <palves@redhat.com>
11336
11337 * linux-xtensa-low.c: Ditto.
11338 * xtensa-xtregs.c: Ditto.
11339
11340 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11341
11342 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11343 thread_db.
11344
11345 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11346
11347 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11348 aarch64_num_wp_regs and aarch64_num_bp_regs to
11349 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11350
11351 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11352
11353 * linux-aarch64-low.c (ps_get_thread_area): Replace
11354 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11355
11356 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11357 Marcus Shawcroft <marcus.shawcroft@arm.com>
11358 Nigel Stephens <nigel.stephens@arm.com>
11359 Yufeng Zhang <yufeng.zhang@arm.com>
11360
11361 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11362 (aarch64.c, aarch64-without-fpu.c): New targets.
11363 * configure.srv (aarch64*-*-linux*): New.
11364 * linux-aarch64-low.c: New file.
11365
11366 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11367
11368 * linux-low.c (handle_extended_wait, linux_create_inferior)
11369 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11370 (dequeue_one_deferred_signal, linux_resume_one_thread)
11371 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11372 (linux_tracefork_grandchild, linux_test_for_tracefork)
11373 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11374 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11375 where the argument is 0.
11376
11377 2013-01-25 Yao Qi <yao@codesourcery.com>
11378
11379 * event-loop.c: Include "queue.h".
11380 (gdb_event_p): New typedef.
11381 (struct gdb_event) <next_event>: Remove.
11382 (event_queue): Change to QUEUE(gdb_event_p).
11383 (async_queue_event): Remove.
11384 (gdb_event_xfree): New.
11385 (initialize_event_loop): New.
11386 (process_event): Use API from QUEUE.
11387 (wait_for_event): Likewise.
11388 * server.c (main): Call initialize_event_loop.
11389 * server.h (initialize_event_loop): Declare.
11390
11391 2013-01-18 Yao Qi <yao@codesourcery.com>
11392
11393 * ax.h (struct eval_agent_expr_context): New.
11394 (gdb_eval_agent_expr): Update declaration.
11395 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11396 TFRAME. Add new argument CTX.
11397 * server.h (struct eval_agent_expr_context): Declare.
11398 (agent_mem_read, agent_tsv_read): Update declaration.
11399 (agent_mem_read_string): Likewise.
11400 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11401 (add_traceframe_block): Add new argument TPOINT.
11402 Increase TPOINT->traceframe_usage.
11403 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11404 eval_tracepoint_agent_expr.
11405 (condition_true_at_tracepoint): Likewise.
11406 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11407 (agent_mem_read_string, agent_tsv_read): Likewise.
11408
11409 2013-01-16 Yao Qi <yao@codesourcery.com>
11410
11411 * linux-low.c (linux_resume_one_lwp): Don't check
11412 'lwp->bp_reinsert != 0'.
11413
11414 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11415 Pedro Alves <palves@redhat.com>
11416
11417 * lynx-low.c (ptrace_request_to_str): Define a temporary
11418 macro and use it to simplify this function's implementation.
11419
11420 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11421
11422 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11423 sets errno.
11424
11425 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11426
11427 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11428
11429 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11430
11431 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11432
11433 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11434
11435 * lynx-low.c (lynx_resume): Use the resume_info parameter
11436 to determine the ptid for the lynx_ptrace call, unless
11437 it is equal to minus_one_ptid, in which case we use the
11438 ptid of the current_inferior.
11439 (lynx_wait_1): After having received a thread create/exit
11440 event, resume the inferior's execution using the signaling
11441 thread's ptid, rather than the old ptid.
11442
11443 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11444
11445 * lynx-low.c (lynx_resume): Delete variable ret.
11446
11447 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11448
11449 * gdbreplay.c (gdbreplay_version): Update copyright year.
11450 * server.c (gdbserver_version): Likewise.
11451
11452 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11453
11454 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11455 new thread.
11456
11457 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11458
11459 * lynx-low.c (ptrace_request_to_str): Add handling for
11460 PTRACE_GETTRACESIG.
11461
11462 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11463
11464 * lynx-low.c (lynx_attach): Delete variable new_process.
11465
11466 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11467
11468 * lynx-low.c (lynx_create_inferior): Delete variable
11469 new_process.
11470
11471 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11472
11473 * lynx-low.c (ptrace_request_to_str): Do not handle
11474 PTRACE_GETTHREADLIST if this macro does not exist.
11475
11476 2012-12-15 Yao Qi <yao@codesourcery.com>
11477
11478 * Makefile.in (OBS): Add notif.o.
11479 * notif.c, notif.h: New.
11480 * server.c: Include "notif.h".
11481 (struct vstop_notif) <next>: Remove.
11482 <base>: New field.
11483 (queue_stop_reply): Update.
11484 (push_event, send_next_stop_reply): Remove.
11485 (discard_queued_stop_replies): Update.
11486 (notif_stop): New variable.
11487 (handle_v_stopped): Remove.
11488 (handle_v_requests): Don't call handle_v_stopped. Call
11489 handle_ack_notif instead.
11490 (queue_stop_reply_callback): Call notif_event_enque instead
11491 of queue_stop_reply.
11492 (handle_status): Don't call send_next_stop_reply, call
11493 notif_write_event instead.
11494 (kill_inferior_callback): Likewise.
11495 (detach_or_kill_inferior_callback): Likewise.
11496 (main): Call initialize_notif.
11497 (process_serial_event): Call QUEUE_is_empty.
11498 (handle_target_event): Call notif_push instead of push event.
11499 * server.h (push_event): Remove declaration.
11500
11501 2012-12-10 Tom Tromey <tromey@redhat.com>
11502
11503 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
11504 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
11505 macros.
11506 (.c.o): Rewrite.
11507 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
11508 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
11509 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
11510 (amd64-linux-ipa.o, ax.o): Rewrite.
11511 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
11512 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
11513 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
11514 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
11515 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
11516 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
11517 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
11518 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
11519 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
11520 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
11521 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
11522 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
11523 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
11524 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
11525 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11526 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11527 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11528 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11529 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11530 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11531 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11532 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11533 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11534 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11535 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11536 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11537 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11538 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11539 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11540 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11541 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11542 (reg-tilegx.o): Remove.
11543 (all_object_files): New macro.
11544 Include .deps files.
11545 * aclocal.m4, configure: Rebuild.
11546 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11547 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11548 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11549
11550 2012-12-05 Tom Tromey <tromey@redhat.com>
11551
11552 PR gdb/14917:
11553 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11554
11555 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
11556
11557 * configure.ac: Check for linux/perf_event.h.
11558 * config.in: Regenerated.
11559 * configure: Regenerated.
11560
11561 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11562
11563 * hostio.c (handle_readlink): Decrease buffer size
11564 parameter passed to readlink by one byte.
11565
11566 2012-11-26 Yao Qi <yao@codesourcery.com>
11567
11568 * configure.ac (build_warnings): Append '-Wempty-body'.
11569 * configure: Regenerated.
11570 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11571 body.
11572
11573 2012-11-15 Pierre Muller <muller@sourceware.org>
11574
11575 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11576 * config.in: Regenerate.
11577 * configure: Regenerate.
11578 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11579 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11580 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11581 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11582 header.
11583 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11584 instead of <sys/wait.h> header.
11585 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11586
11587 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
11588
11589 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11590 (various make rules): Remove -DGDBSERVER
11591
11592 2012-11-09 Yao Qi <yao@codesourcery.com>
11593
11594 * spu-low.c (current_ptid): Move it to ..
11595 * gdbthread.h: ... here. New.
11596 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11597 * server.c (myresume, process_serial_event): Likewise.
11598 * thread-db.c (thread_db_find_new_threads): Likewise.
11599 * tracepoint.c (run_inferior_command): Likewise.
11600
11601 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
11602
11603 * server.c (handle_search_memory_1): Include access length in
11604 warning message.
11605
11606 2012-09-05 Michael Brandt <michael.brandt@axis.com>
11607
11608 * linux-crisv32-low.c: Fix compile errors.
11609
11610 2012-09-04 Yao Qi <yao@codesourcery.com>
11611
11612 * tracepoint.c (cmd_qtsv): Adjust debug message.
11613 Don't check CUR_TPOINT.
11614
11615 2012-08-28 Yao Qi <yao@codesourcery.com>
11616
11617 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11618 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11619 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11620 Remove declarations of xmalloc, xreallloc, xstrdup and
11621 freeargv.
11622 * Makefile.in (libiberty_h): New.
11623 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11624 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11625
11626 2012-08-23 Yao Qi <yao@codesourcery.com>
11627
11628 * server.h: Remove declaration of 'xsnprintf'.
11629
11630 2012-08-22 Keith Seitz <keiths@redhat.com>
11631
11632 * server.h: Include build-gnulib-gbserver/config.h.
11633 * gdbreplay.c: Likewise.
11634
11635 2012-08-08 Doug Evans <dje@google.com>
11636
11637 * Makefile.in (SFILES): Add gdb_vecs.c.
11638 (OBS): Add gdb_vecs.o.
11639 (gdb_vecs_h, host_defs_h): New variables.
11640 (thread-db.o): Add $(gdb_vecs_h) dependency.
11641 (gdb_vecs.o): New rule.
11642 * thread-db.c: #include "gdb_vecs.h".
11643 (thread_db_load_search): Use a vector to iterate over path elements.
11644 Handle text appearing after "$pdir".
11645
11646 * configure.ac: Add check for strstr.
11647 * config.in: Regenerate.
11648 * configure: Regenerate.
11649
11650 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11651
11652 * hostio.c (handle_pread): If pread fails, fall back to attempting
11653 lseek/read.
11654 (handle_pwrite): Likewise for pwrite.
11655
11656 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11657
11658 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11659 between unsupported TYPE and unimplementable ADDR/LEN combination.
11660 (arm_insert_point): Act on new return value.
11661
11662 2012-07-31 Pedro Alves <palves@redhat.com>
11663
11664 * server.c (process_point_options): Only skip tokens if we find
11665 one that is unrecognized. Don't treat 'X' specially while
11666 skipping unrecognized tokens.
11667
11668 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11669
11670 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11671 to 4-byte-align HW breakpoint addresses for Thumb.
11672
11673 2012-07-27 Yao Qi <yao@codesourcery.com>
11674
11675 PR remote/14161.
11676
11677 * server.h: Declare gdb_agent_about_to_close.
11678 * target.c (kill_inferior): Include "agent.h".
11679 New. Send command 'kill'.
11680 * target.h (kill_inferior): Removed macro.
11681 * tracepoint.c (gdb_agent_about_to_close): New.
11682 (gdb_agent_helper_thread): Handle command 'close'.
11683 Wait endlessly until the inferior stops.
11684 Install gdb_agent_remove_socket to atexit hook.
11685 (agent_socket_name): New static variable.
11686 (gdb_agent_socket_init): Replace local variable 'name' with
11687 'agent_socket_name'.
11688 (gdb_agent_remove_socket): New.
11689
11690 2012-07-27 Yao Qi <yao@codesourcery.com>
11691
11692 * server.c (process_point_options): Stop at 'X' when parsing.
11693
11694 2012-07-19 Michael Eager <eager@eagercon.com>
11695
11696 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
11697 to hw_execute.
11698 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11699 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11700 hardware breakpoint.
11701
11702 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11703
11704 * gdbserver/linux-low.c (initialize_low): Call
11705 linux_ptrace_init_warnings.
11706
11707 2012-07-02 Doug Evans <dje@google.com>
11708
11709 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11710 pointer to int.
11711
11712 2012-07-02 Stan Shebs <stan@codesourcery.com>
11713
11714 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11715 (ax.o): Add it to build rule.
11716 (ax-ipa.o): Ditto.
11717 (OBS): Add format.o.
11718 (IPA_OBS): Add format.o.
11719 * server.c (handle_query): Claim support for breakpoint commands.
11720 (process_point_options): Add command case.
11721 (process_serial_event): Leave running if there are printfs in
11722 effect.
11723 * mem-break.h (any_persistent_commands): Declare.
11724 (add_breakpoint_commands): Declare.
11725 (gdb_no_commands_at_breakpoint): Declare.
11726 (run_breakpoint_commands): Declare.
11727 * mem-break.c (struct point_command_list): New struct.
11728 (struct breakpoint): New field command_list.
11729 (any_persistent_commands): New function.
11730 (add_commands_to_breakpoint): New function.
11731 (add_breakpoint_commands): New function.
11732 (gdb_no_commands_at_breakpoint): New function.
11733 (run_breakpoint_commands): New function.
11734 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11735 locally.
11736 * ax.c: Include format.h.
11737 (ax_printf): New function.
11738 (gdb_eval_agent_expr): Add printf opcode.
11739
11740 2012-06-13 Yao Qi <yao@codesourcery.com>
11741
11742 * server.c (start_inferior): Remove duplicated writes to fields
11743 'last_resume_kind' and 'last_status' of 'current_inferior'.
11744
11745 2012-06-12 Yao Qi <yao@codesourcery.com>
11746 Pedro Alves <palves@redhat.com>
11747
11748 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11749 comment.
11750 * server.c (handle_v_cont): Extend comment.
11751
11752 2012-06-11 Yao Qi <yao@codesourcery.com>
11753
11754 * linux-low.c (linux_attach): Add 'static'.
11755
11756 2012-06-06 Yao Qi <yao@codesourcery.com>
11757
11758 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11759
11760 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11761
11762 Fix gcc -flto compilation warning.
11763 * server.c (main): Make variable multi_mode and attach volatile.
11764
11765 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11766
11767 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11768 if the platform doesn't know about it.
11769
11770 2012-05-30 Jeff Kenton <jkenton@tilera.com>
11771
11772 * Makefile.in (SFILES): Add linux-tile-low.c.
11773 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11774 * configure.srv: Handle tilegx-*-linux*.
11775 * linux-tile-low.c: New file.
11776
11777 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11778
11779 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11780
11781 2012-05-24 Pedro Alves <palves@redhat.com>
11782
11783 PR gdb/7205
11784
11785 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
11786
11787 2012-05-24 Pedro Alves <palves@redhat.com>
11788
11789 PR gdb/7205
11790
11791 Replace target_signal with gdb_signal throughout.
11792
11793 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11794
11795 * linux-low.c (linux_store_registers): Avoid the copying sequence
11796 when no data has been retrieved by ptrace.
11797
11798 2012-05-22 Will Deacon <will.deacon@arm.com>
11799
11800 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11801 Include asm/ptrace.h.
11802 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11803 already defined.
11804
11805 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11806
11807 * linux-low.c (linux_store_registers): Don't re-retrieve data
11808 with ptrace that has already been obtained from /proc. Always
11809 copy any data retrieved with ptrace to the buffer supplied.
11810
11811 2012-05-11 Yao Qi <yao@codesourcery.com>
11812 Pedro Alves <palves@redhat.com>
11813
11814 * linux-low.c (enum stopping_threads_kind): New.
11815 (stopping_threads): Change type to `enum stopping_threads_kind'.
11816 (handle_extended_wait): If stopping and suspending threads, leave
11817 the new_lwp suspended too.
11818 (linux_wait_for_event): Adjust.
11819 (stop_all_lwps): Set `stopping_threads' to
11820 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11821 whether we're suspending threads or just stopping them. Assert no
11822 recursion happens.
11823
11824 2012-04-29 Yao Qi <yao@codesourcery.com>
11825
11826 * server.h: Move some code to ...
11827 * gdbthread.h: ... here. New.
11828 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11829 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11830 (nto-low.o, win32-low.o): Likewise.
11831 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11832 * regcache.c, remote-utils.c, server.c: Likewise.
11833 * target.c, tracepoint.c, win32-low.c: Likewise.
11834
11835 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11836
11837 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11838 (PTRACE_ARG4_TYPE): Likewise.
11839 (PTRACE_XFER_TYPE): Likewise.
11840 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11841 ptrace to PTRACE_ARG3_TYPE.
11842 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11843 (PTRACE_ARG4_TYPE): Likewise.
11844 (PTRACE_XFER_TYPE): Likewise.
11845 (linux_detach_one_lwp): Cast fourth argument of
11846 ptrace to long then PTRACE_ARG4_TYPE.
11847 (regsets_fetch_inferior_registers): Cast third argument of
11848 ptrace to long then PTRACE_ARG3_TYPE.
11849 (regsets_store_inferior_registers): Likewise.
11850
11851 2012-04-20 Pedro Alves <palves@redhat.com>
11852
11853 * configure: Regenerate.
11854
11855 2012-04-19 Pedro Alves <palves@redhat.com>
11856
11857 * Makefile.in (GNULIB_BUILDDIR): New.
11858 (LIBGNU, INCGNU, GNULIB_H): Adjust.
11859 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11860 (all, install-only, uninstall, clean-info, all-lib, clean): No
11861 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11862 (maintainer-clean realclean distclean): Use subdir_do.
11863 (subdir_do): New.
11864 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
11865 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
11866 * acinclude.m4: Include acx_configure_dir.m4.
11867 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11868 calls. Call AC_PROG_RANLIB. Configure gnulib using
11869 ACX_CONFIGURE_DIR.
11870 (GNULIB): New.
11871 (GNULIB_STDINT_H): Adjust.
11872 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11873 * gdbreplay.c: Include build-gnulib/config.h.
11874 * server.h: Likewise.
11875 * aclocal.m4: Regenerate.
11876 * config.in: Regenerate.
11877 * configure: Regenerate.
11878
11879 2012-04-19 Pedro Alves <palves@redhat.com>
11880
11881 * Makefile.in (LIBGNU, INCGNU): Adjust.
11882 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11883 (all, install-only, uninstall, clean-info, all-lib, clean)
11884 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11885 * configure.ac: Adjust AC_OUTPUT output.
11886 * aclocal.m4: Regenerate.
11887 * configure: Regenerate.
11888
11889 2012-04-19 Pedro Alves <palves@redhat.com>
11890
11891 * Makefile.in (generated_files): New.
11892 (server_h): Remove the explicit dependency on config.h, and depend
11893 on $generated_files.
11894
11895 2012-04-19 Pedro Alves <palves@redhat.com>
11896
11897 * Makefile.in (INCGNU): Add -Ignulib.
11898
11899 2012-04-19 Pedro Alves <palves@redhat.com>
11900
11901 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
11902 (INCGNU): ... this, and spell out -I here.
11903 (GNULIB_LIB): Rename to ...
11904 (LIBGNU): ... this.
11905 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
11906
11907 2012-04-19 Pedro Alves <palves@redhat.com>
11908
11909 * config.in: Regenerate.
11910
11911 2012-04-19 Pedro Alves <palves@redhat.com>
11912
11913 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
11914 * server.h (memmem): Remove declaration.
11915 * config.in: Regenerate.
11916 * configure: Regenerate.
11917
11918 2012-04-19 Yao Qi <yao@codesourcery.com>
11919
11920 * Makefile.in (SFILES): Add common/vec.c.
11921 (OBS): Add vec.o.
11922 (vec.o): New rule.
11923
11924 2012-04-19 Yao Qi <yao@codesourcery.com>
11925
11926 * remote-utils.c (prepare_resume_reply): Replace with macro
11927 target_core_of_thread.
11928 * server.c (handle_qxfer_threads_proper): Likewise.
11929 * target.h (traget_core_of_thread): New macro.
11930
11931 2012-04-18 Pedro Alves <palves@redhat.com>
11932
11933 * aclocal.m4: Regenerate.
11934 * configure: Regenerate.
11935
11936 2012-04-16 Yao Qi <yao@codesourcery.com>
11937
11938 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11939 duplicated on address.
11940
11941 2012-04-16 Yao Qi <yao@codesourcery.com>
11942
11943 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11944 (struct tracepoint_action_ops) <send>: New field.
11945 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11946 (agent_expr_send, x_tracepoint_action_send): New.
11947 (l_tracepoint_action_send): New.
11948 (cmd_qtdp): Download and install tracepoint
11949 according to `use_agent'.
11950 (run_inferior_command): Add one more parameter `len'.
11951 Update callers.
11952 (tracepoint_send_agent): New.
11953 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11954
11955 2012-04-16 Yao Qi <yao@codesourcery.com>
11956
11957 * tracepoint.c (download_tracepoints): Moved to ...
11958 (cmd_qtstart): ... here.
11959
11960 2012-04-14 Yao Qi <yao@codesourcery.com>
11961
11962 * tracepoint.c: Include inttypes.h.
11963 (struct collect_memory_action): Use sized types.
11964 (struct tracepoint): Likewise.
11965 (cmd_qtdp, stop_tracing): Update print specifiers.
11966 (cmd_qtp, response_tracepoint): Likewise.
11967 (collect_data_at_tracepoint): Likewise.
11968 (collect_data_at_step): Likewise.
11969
11970 2012-04-14 Yao Qi <yao@codesourcery.com>
11971
11972 Import gnulib module inttypes.
11973 * aclocal.m4, config.in, configure: Regenerated.
11974
11975 2012-04-14 Yao Qi <yao@codesourcery.com>
11976
11977 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11978 Makefile and config.status at last.
11979
11980 2012-04-13 Yao Qi <yao@codesourcery.com>
11981
11982 * tracepoint.c: Include stdint.h unconditionally.
11983
11984 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11985
11986 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11987 on BFD_HAVE_SYS_PROCFS_TYPE.
11988 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11989 * configure: Regenerate.
11990 * config.in: Likewise.
11991
11992 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11993
11994 * Makefile.in (clean): Also remove x32.c x32-linux.c
11995 x32-avx.c x32-avx-linux.c.
11996 (x32.o): New target.
11997 (x32.c): Likewise.
11998 (x32-linux.o): Likewise.
11999 (x32-linux.c): Likewise.
12000 (x32-avx.o): Likewise.
12001 (x32-avx.c): Likewise.
12002 (x32-avx-linux.o): Likewise.
12003 (x32-avx-linux.c): Likewise.
12004
12005 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12006 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12007 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12008 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12009 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12010 i386/x32-avx-linux.xml.
12011
12012 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12013 (init_registers_x32_avx_linux): Likwise.
12014 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12015 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12016
12017 2012-04-13 Pedro Alves <palves@redhat.com>
12018
12019 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12020 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12021 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12022 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12023 the sub-make.
12024
12025 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12026
12027 * linux-x86-low.c (compat_x32_clock_t): New.
12028 (compat_x32_siginfo_t): Likewise.
12029 (compat_x32_siginfo_from_siginfo): Likewise.
12030 (siginfo_from_compat_x32_siginfo): Likewise.
12031 (linux_is_elf64): Likewise.
12032 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12033 and siginfo_from_compat_x32_siginfo for x32.
12034 (x86_arch_setup): Set linux_is_elf64.
12035
12036 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12037
12038 PR gdb/13969
12039 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12040 e_machine field.
12041 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12042 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12043 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12044 compatible with process.
12045
12046 2012-04-12 Yao Qi <yao@codesourcery.com>
12047
12048 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12049 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12050 (install-only, install-info, clean): Handle sub dir gnulib.
12051 (all-lib, am--refresh): New targets.
12052 (memmem.o): Remove target.
12053 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12054 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12055 (AC_REPLACE_FUNCS): Remove memmem.
12056 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12057 (AC_OUTPUT): Generate Makefile in gnulib/.
12058 * aclocal.m4, config.in, configure: Regenerated.
12059
12060 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12061
12062 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12063
12064 2012-04-05 Pedro Alves <palves@redhat.com>
12065
12066 -Werror=strict-aliasing
12067
12068 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12069 pointer.
12070
12071 2012-04-04 Pedro Alves <palves@redhat.com>
12072
12073 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12074 (sparc_store_gregset_from_stack, sparc_store_gregset)
12075 (sparc_breakpoint_at): Fix formatting.
12076
12077 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12078
12079 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12080 are available.
12081 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12082 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12083 * config.in: Regenerate.
12084 * configure: Likewise.
12085
12086 2012-03-29 Pedro Alves <palves@redhat.com>
12087
12088 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12089 Correct ptrace arguments.
12090
12091 2012-03-28 Pedro Alves <palves@redhat.com>
12092
12093 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12094 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12095 (IA64_FR1_REGNUM): New defines.
12096 (ia64_fetch_register): New.
12097 (the_low_target): Install it.
12098 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12099 field.
12100 * linux-low.c (linux_fetch_registers): Try the
12101 the_low_target.fetch_register hook first.
12102
12103 * linux-arm-low.c (the_low_target): Adjust.
12104 * linux-bfin-low.c (the_low_target): Adjust.
12105 * linux-cris-low.c (the_low_target): Adjust.
12106 * linux-crisv32-low.c (the_low_target): Adjust.
12107 * linux-m32r-low.c (the_low_target): Adjust.
12108 * linux-m68k-low.c (the_low_target): Adjust.
12109 * linux-mips-low.c (the_low_target): Adjust.
12110 * linux-ppc-low.c (the_low_target): Adjust.
12111 * linux-s390-low.c (the_low_target): Adjust.
12112 * linux-sh-low.c (the_low_target): Adjust.
12113 * linux-sparc-low.c (the_low_target): Adjust.
12114 * linux-tic6x-low.c (the_low_target): Adjust.
12115 * linux-x86-low.c (the_low_target): Adjust.
12116 * linux-xtensa-low.c (the_low_target): Adjust.
12117
12118 2012-03-26 Pedro Alves <palves@redhat.com>
12119
12120 * server.c (handle_qxfer_libraries): Don't bail early if
12121 the_target->qxfer_libraries_svr4 is not NULL.
12122
12123 2012-03-26 Pedro Alves <palves@redhat.com>
12124
12125 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12126
12127 2012-03-23 Pedro Alves <palves@redhat.com>
12128
12129 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12130 "library-list-svr4" element's start tag when the the DSO list is
12131 empty.
12132
12133 2012-03-23 Pedro Alves <palves@redhat.com>
12134
12135 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12136 a variable whose type size is the same as the inferior's pointer
12137 size.
12138
12139 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12140
12141 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12142 struct siginfo.
12143 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12144 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12145 * linux-low.h: Include <signal.h>.
12146 (struct siginfo): Remove forward declaration.
12147 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12148 struct siginfo.
12149
12150 2012-03-21 Mike Frysinger <vapier@gentoo.org>
12151
12152 * .gitignore: Ignore more files.
12153
12154 2012-03-19 Pedro Alves <palves@redhat.com>
12155 Jan Kratochvil <jan.kratochvil@redhat.com>
12156
12157 * server.c (cont_thread, general_thread): Add describing comments.
12158 (start_inferior): Clear `cont_thread'.
12159 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12160 of a process.
12161
12162 2012-03-15 Yao Qi <yao@codesourcery.com>
12163
12164 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12165 handling to ...
12166 (cmd_qtdp): ... here.
12167
12168 2012-03-15 Yao Qi <yao@codesourcery.com>
12169
12170 * tracepoint.c (struct tracepoint_action_ops): New.
12171 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12172 (m_tracepoint_action_download): New.
12173 (r_tracepoint_action_download): New.
12174 (x_tracepoint_action_download): New.
12175 (l_tracepoint_action_download): New.
12176 (add_tracepoint_action): Install `action->ops' according type.
12177 (download_tracepoint_1): Move code `download' function pointer
12178 of various tracepoint_action_ops.
12179
12180 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12181
12182 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12183 linux_ptrace_attach_warnings.
12184
12185 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12186
12187 * Makefile.in (linux-ptrace.o): New.
12188 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12189 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12190 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12191 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12192 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12193 of these targets.
12194 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12195
12196 2012-03-08 Yao Qi <yao@codesourcery.com>
12197 Pedro Alves <palves@redhat.com>
12198
12199 Fix PR server/13392.
12200 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12201 offset of JMP insn.
12202 * tracepoint.c (remove_tracepoint): New.
12203 (cmd_qtdp): Call remove_tracepoint when failed to install.
12204
12205 2012-03-07 Pedro Alves <palves@redhat.com>
12206
12207 * linux-low.c (get_detach_signal): New.
12208 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12209 Pass on pending signals to PTRACE_DETACH. Check the result of the
12210 ptrace call.
12211 * server.c (program_signals, program_signals_p): New.
12212 (handle_general_set): Handle QProgramSignals.
12213 * server.h (program_signals, program_signals_p): Declare.
12214
12215 2012-03-05 Pedro Alves <palves@redhat.com>
12216 Jan Kratochvil <jan.kratochvil@redhat.com>
12217
12218 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12219 New comment why.
12220
12221 2012-03-03 Yao Qi <yao@codesourcery.com>
12222
12223 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12224 agent_look_up_symbols.
12225
12226 2012-03-03 Yao Qi <yao@codesourcery.com>
12227
12228 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12229 (linux-x86-low.o): Likewise.
12230 * server.h: Remove in_process_agent_loaded.
12231 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12232 common/agent.c.
12233 Update callers.
12234
12235 2012-03-03 Yao Qi <yao@codesourcery.com>
12236
12237 * tracepoint.c (gdb_agent_capability): New global.
12238 (in_process_agent_loaded_ust): Renamed to
12239 `in_process_agent_supports_ust'.
12240 Update callers.
12241 (in_process_agent_supports_ust): Call agent_capability_check.
12242 (clear_installed_tracepoints): Assert that agent supports
12243 agent.
12244
12245 2012-03-03 Yao Qi <yao@codesourcery.com>
12246
12247 * linux-low.c (linux_supports_agent): New.
12248 (linux_target_ops): Initialize field `supports_agent' with
12249 linux_supports_agent.
12250 * target.h (struct target_ops) <supports_agent>: New.
12251 (target_supports_agent): New macro.
12252 * server.c (handle_general_set): Handle packet 'QAgent'.
12253 (handle_query): Send `QAgent+'.
12254 * Makefile.in (server.o): Depends on agent.h.
12255
12256 2012-03-03 Yao Qi <yao@codesourcery.com>
12257
12258 * Makefile.in (OBS): Add agent.o.
12259 Add new rule for agent.o.
12260 Track dependence of tracepoint.c on agent.h.
12261 * tracepoint.c (run_inferior_command_1):
12262 (run_inferior_command): Call agent_run_command.
12263 (gdb_ust_connect_sync_socket): Deleted. Move it to
12264 common/agent.c.
12265 (resume_thread, stop_thread): Likewise.
12266 (gdb_ust_socket_init): Renamed to ...
12267 (gdb_agent_socket_init): ... New.
12268 (gdb_ust_thread): Renamed to ...
12269 (gdb_agent_helper_thread): ... New.
12270 (gdb_ust_init): Move some code to ...
12271 (gdb_agent_init): ... here. New.
12272 [HAVE_UST]: Call gdb_ust_init.
12273 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12274 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12275 * config.in, configure: Regenerated.
12276
12277 2012-03-02 Pedro Alves <palves@redhat.com>
12278
12279 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12280 * linux-low.c (struct simple_pid_list): New.
12281 (stopped_pids): New a struct simple_pid_list pointer.
12282 (add_to_pid_list, pull_pid_from_list): New.
12283 (handle_extended_wait): Don't assume the first signal new children
12284 report is SIGSTOP. Adjust call to pull_pid_from_list.
12285 (linux_wait_for_lwp): Adjust.
12286
12287 2012-03-02 Yao Qi <yao@codesourcery.com>
12288
12289 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12290 debug log.
12291
12292 2012-03-02 Yao Qi <yao@codesourcery.com>
12293
12294 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12295 `stop_pc' and `tpoint'. Update caller.
12296
12297 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12298
12299 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12300 * linux-low.c (use_linux_regsets): New macro.
12301 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12302 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12303 (linux_register_in_regsets): New function.
12304 (usr_fetch_inferior_registers): Skip registers covered by
12305 regsets.
12306 (usr_store_inferior_registers): Likewise.
12307 (usr_fetch_inferior_registers): New macro.
12308 (usr_store_inferior_registers): Likewise.
12309 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12310 (linux_store_registers): Likewise.
12311 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12312 prototype.
12313 (init_registers_mips64_dsp_linux): Likewise.
12314 (init_registers_mips_linux): New macro.
12315 (init_registers_mips_dsp_linux): Likewise.
12316 (mips_dsp_num_regs): Likewise.
12317 (DSP_BASE, DSP_CONTROL): New fallback macros.
12318 (mips_base_regs): New macro.
12319 (mips_regmap): Use it. Fix the size.
12320 (mips_dsp_regmap): New variable.
12321 (mips_dsp_regset_bitmap): Likewise.
12322 (mips_arch_setup): New function.
12323 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12324 than mips_regmap.
12325 (mips_cannot_store_register): Likewise.
12326 (the_low_target): Update .arch_setup, .num_regs and .regmap
12327 initializers. Add .regset_bitmap initializer.
12328 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12329 initializer.
12330 * linux-bfin-low.c (the_low_target): Likewise.
12331 * linux-cris-low.c (the_low_target): Likewise.
12332 * linux-crisv32-low.c (the_low_target): Likewise.
12333 * linux-ia64-low.c (the_low_target): Likewise.
12334 * linux-m32r-low.c (the_low_target): Likewise.
12335 * linux-m68k-low.c (the_low_target): Likewise.
12336 * linux-ppc-low.c (the_low_target): Likewise.
12337 * linux-s390-low.c (the_low_target): Likewise.
12338 * linux-sh-low.c (the_low_target): Likewise.
12339 * linux-sparc-low.c (the_low_target): Likewise.
12340 * linux-tic6x-low.c (the_low_target): Likewise.
12341 * linux-x86-low.c (the_low_target): Likewise.
12342 * linux-xtensa-low.c (the_low_target): Likewise.
12343 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12344 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12345 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12346 srv_xmlfiles.
12347 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12348 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12349
12350 2012-02-29 Yao Qi <yao@codesourcery.com>
12351 Pedro Alves <palves@redhat.com>
12352
12353 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12354 `step_over_finished' is true.
12355
12356 2012-02-27 Pedro Alves <palves@redhat.com>
12357
12358 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12359 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12360
12361 2012-02-27 Pedro Alves <palves@redhat.com>
12362
12363 PR server/9684
12364 * linux-low.c (pid_is_stopped): New.
12365 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12366
12367 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
12368
12369 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12370 of conditions.
12371
12372 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12373
12374 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12375
12376 2012-02-24 Luis Machado <lgustavo@codesourcery>
12377
12378 * server.c (handle_query): Advertise support for target-side
12379 breakpoint condition evaluation.
12380 (process_point_options): New function.
12381 (process_serial_event): When inserting a breakpoint, check for
12382 a target-side condition that should be evaluated.
12383
12384 * mem-break.c: Include regcache.h and ax.h.
12385 (point_cond_list_t): New data structure.
12386 (breakpoint) <cond_list>: New field.
12387 (find_gdb_breakpoint_at): Make non-static.
12388 (delete_gdb_breakpoint_at): Clear any target-side
12389 conditions.
12390 (clear_gdb_breakpoint_conditions): New function.
12391 (add_condition_to_breakpoint): Likewise.
12392 (add_breakpoint_condition): Likewise.
12393 (gdb_condition_true_at_breakpoint): Likewise.
12394 (gdb_breakpoint_here): Return result directly instead
12395 of going through a local variable.
12396
12397 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12398 (clear_gdb_breakpoint_conditions): Likewise.
12399 (add_breakpoint_condition): Likewise.
12400 (gdb_condition_true_at_breakpoint): Likewise.
12401
12402 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12403 (need_step_over_p): Take target-side breakpoint condition into
12404 consideration.
12405
12406 2012-02-24 Luis Machado <lgustavo@codesourcery>
12407
12408 * server.h: Include tracepoint.h.
12409 (agent_mem_read, agent_get_trace_state_variable_value,
12410 agent_set_trace_state_variable_value,
12411 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12412 get_set_tsv_func_addr): New prototypes.
12413
12414 * ax.h: New include file.
12415 * ax.c: New source file.
12416
12417 * tracepoint.c: Include ax.h.
12418 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12419 agent_expr, eval_result_type): Move to ax.h.
12420 (parse_agent_expr): Rename to ...
12421 (gdb_parse_agent_expr): ... this, make it non-static and move
12422 to ax.h.
12423 (unparse_agent_expr) Rename to ...
12424 (gdb_unparse_agent_expr): ... this, make it non-static and move
12425 to ax.h.
12426 (eval_agent_expr): Rename to ...
12427 (eval_tracepoint_agent_expr): ... this.
12428 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12429 forward declarations.
12430 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12431 (agent_get_trace_state_variable_value): New function.
12432 (agent_set_trace_state_variable_value): New function.
12433 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12434 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12435 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12436 (condition_true_at_tracepoint): Likewise.
12437 (parse_agent_expr): Rename to ...
12438 (gdb_parse_agent_expr): ... this and move to ax.c.
12439 (unparse_agent_expr): Rename to ...
12440 (gdb_unparse_agent_expr): ... this and move to ax.c.
12441 (gdb_agent_op_name): Move to ax.c.
12442 (eval_agent_expr): Rename to ...
12443 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12444 and move to ax.c.
12445 (eval_tracepoint_agent_expr): New function.
12446 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
12447 non-static.
12448 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12449 ax.c.
12450 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12451 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12452 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12453 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12454 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12455 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12456 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12457 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12458 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12459 (compile_bytecodes): Remove forward declaration.
12460 (is_goto_target): Move to ax.c.
12461 (compile_bytecodes): Move to ax.c and call
12462 agent_get_trace_state_variable_value (...) and
12463 agent_set_trace_state_variable_value (...).
12464
12465 * Makefile.in: Update ax.c and IPA dependencies.
12466
12467 2012-02-24 Pedro Alves <palves@redhat.com>
12468
12469 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12470 (cmd_bigqtbuffer_circular): ... this. Only handle
12471 'QTBuffer:circular:'.
12472 (handle_tracepoint_general_set): Adjust.
12473
12474 2012-02-16 Yao Qi <yao@codesourcery.com>
12475
12476 * inferiors.c: Move code to ...
12477 * dll.c: .... here. New.
12478 * server.h: Declare clear_dlls.
12479 * Makefile.in (SFILES): Add dll.c.
12480 (OBS): Add dll.o
12481 (dll.o): New rule.
12482
12483 2012-02-11 Yao Qi <yao@codesourcery.com>
12484
12485 * server.c: (handle_monitor_command): Add a new parameter
12486 `own_buf'.
12487 (handle_query): Update caller.
12488
12489 2012-02-09 Joel Brobecker <brobecker@adacore.com>
12490
12491 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
12492 * configure, config.in: Regenerate.
12493 * hostio.c: Provide an alternate implementation if HAVE_READLINK
12494 is not defined.
12495
12496 2012-02-02 Pedro Alves <palves@redhat.com>
12497
12498 Try SIGKILL first, then PTRACE_KILL.
12499 * linux-low.c (linux_kill_one_lwp): New.
12500 (linux_kill_one_lwp): Rename to ...
12501 (kill_one_lwp_callback): ... this. Use the new
12502 linux_kill_one_lwp.
12503
12504 2012-02-02 Pedro Alves <palves@redhat.com>
12505
12506 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
12507 inferior.
12508
12509 2012-01-27 Pedro Alves <palves@redhat.com>
12510
12511 * linux-low.c (linux_child_pid_to_exec_file): Delete.
12512 (elf_64_file_p): Make static.
12513 (linux_pid_exe_is_elf_64_file): New.
12514 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
12515 Delete declarations.
12516 (linux_pid_exe_is_elf_64_file): Declare.
12517 * linux-x86-low.c (x86_arch_setup): Use
12518 linux_pid_exe_is_elf_64_file.
12519
12520 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12521
12522 * linux-low.c (linux_wait_for_event_1): Rename to ...
12523 (linux_wait_for_event): ... here and merge it with former
12524 linux_wait_for_event - new variable wait_ptid, use it.
12525 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12526
12527 2012-01-23 Pedro Alves <palves@redhat.com>
12528
12529 * server.c (main): Avoid yet another case of infinite loop while
12530 detaching/killing after a longjmp.
12531
12532 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12533
12534 Code cleanup.
12535 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12536
12537 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12538
12539 * hostio.c (handle_readlink): New function.
12540 (handle_vFile): Call it to handle "vFile:readlink" packets.
12541
12542 2012-01-20 Pedro Alves <palves@redhat.com>
12543 Ulrich Weigand <ulrich.weigand@linaro.org>
12544
12545 * server.c (handle_v_requests): Only support vAttach and vRun to
12546 start multiple processes when in extended protocol mode.
12547
12548 2012-01-17 Pedro Alves <palves@redhat.com>
12549
12550 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12551 memalign plus mprotect to allocate the scratch buffer.
12552
12553 2012-01-13 Pedro Alves <palves@redhat.com>
12554
12555 * server.c (attach_inferior): Clear `cont_thread'.
12556
12557 2012-01-13 Pedro Alves <palves@redhat.com>
12558
12559 * server.c (main): Avoid infinite loop while detaching/killing
12560 after a longjmp.
12561
12562 2012-01-09 Doug Evans <dje@google.com>
12563
12564 * server.c (start_inferior): Set last_ptid in --wrapper case.
12565
12566 2012-01-06 Yao Qi <yao@codesourcery.com>
12567
12568 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12569 defined.
12570 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12571
12572 2012-01-04 Yao Qi <yao@codesourcery.com>
12573
12574 * tracepoint.c (cmd_qtdp): Print debug message
12575 for static tracepoint.
12576
12577 2012-01-04 Yao Qi <yao@codesourcery.com>
12578
12579 * tracepoint.c (trace_vdebug): Differentiate debug message
12580 between gdbserver and IPA.
12581
12582 2012-01-03 Yao Qi <yao@codesourcery.com>
12583
12584 * tracepoint.c (tracepoint_was_hit): Don't collect for
12585 static tracepoint.
12586
12587 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12588
12589 * terminal.h: Reformat copyright header.
12590
12591 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12592
12593 * server.c (gdbserver_version): Update copyright year.
12594 * gdbreplay.c (gdbreplay_version): Likewise.
12595
12596 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12597
12598 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12599
12600 Revert:
12601 2011-12-18 Hui Zhu <teawater@gmail.com>
12602 * linux-low.c (linux_create_inferior): Save return value to ret.
12603
12604 2011-12-18 Hui Zhu <teawater@gmail.com>
12605
12606 * linux-low.c (linux_create_inferior): Save return value to ret.
12607
12608 2011-12-16 Doug Evans <dje@google.com>
12609
12610 * linux-low.c (linux_create_inferior): If stdio connection,
12611 redirect stdin from /dev/null, stdout to stderr.
12612 * remote-utils.c (remote_is_stdio): New static global.
12613 (remote_connection_is_stdio): New function.
12614 (remote_prepare): Handle stdio connection.
12615 (remote_open): Ditto.
12616 (remote_close): Don't close stdin for stdio connections.
12617 (read_prim,write_prim): New functions. Replace all calls to
12618 read/write to these.
12619 * server.c (main): Watch for "-" argument. Move call to
12620 remote_prepare before start_inferior.
12621 * server.h (STDIO_CONNECTION_NAME): New macro.
12622 (remote_connection_is_stdio): Declare.
12623
12624 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12625 in debugging output.
12626
12627 2011-12-15 Yao Qi <yao@codesourcery.com>
12628
12629 * tracepoint.c: Include sys/syscall.h.
12630 (gdb_ust_thread): Remove preprocessor conditional.
12631
12632 2011-12-14 Pedro Alves <pedro@codesourcery.com>
12633
12634 * linux-low.c (linux_detach_one_lwp): Call
12635 the_low_target.prepare_to_resume before detaching.
12636
12637 2011-12-14 Yao Qi <yao@codesourcery.com>
12638
12639 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12640 of write.
12641
12642 2011-12-14 Yao Qi <yao@codesourcery.com>
12643
12644 * i386-low.c (i386_low_stopped_data_address): Initialize local
12645 variable `control'.
12646
12647 2011-12-13 Pedro Alves <pedro@codesourcery.com>
12648
12649 PR remote/13492
12650
12651 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12652 DR_CONTROL unless necessary. Extend comments.
12653 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12654 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12655
12656 2011-12-13 Yao Qi <yao@codesourcery.com>
12657
12658 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12659 macros.
12660 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12661
12662 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12663
12664 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12665 Print new debug message for such case.
12666
12667 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12668
12669 Fix overlapping memcpy.
12670 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12671 the read_inferior_memory transfer.
12672 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12673 write_inferior_memory transfer.
12674 (set_fast_tracepoint_jump): New variable buf. Use it for the
12675 read_inferior_memory and write_inferior_memory transfers.
12676 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12677 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12678 Use it for the write_inferior_memory transfer.
12679 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12680 buffers.
12681
12682 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12683
12684 * linux-low.c (fetch_register, store_register): Make code
12685 consistent, fix formatting.
12686
12687 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12688
12689 * linux-low.c (usr_store_inferior_registers): Factor out code
12690 to handle individual registers into...
12691 (store_register): ... this new function.
12692
12693 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12694
12695 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12696 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12697 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12698 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12699 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12700 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12701 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12702 (srv_xmlfiles): Add new XML files.
12703
12704 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12705 and <sys/uio.h>.
12706 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12707 (init_registers_s390_linux32v1): Add prototype.
12708 (init_registers_s390_linux32v2): Likewise.
12709 (init_registers_s390_linux64v1): Likewise.
12710 (init_registers_s390_linux64v2): Likewise.
12711 (init_registers_s390x_linux64v1): Likewise.
12712 (init_registers_s390x_linux64v2): Likewise.
12713 (s390_num_regs): Increment to 52.
12714 (s390_regmap): Add orig_r2 register.
12715 (s390_num_regs_3264): Increment to 68.
12716 (s390_regmap_3264): Add orig_r2 register.
12717 (s390_collect_ptrace_register): Handle orig_r2 register.
12718 (s390_supply_ptrace_register): Likewise.
12719 (s390_fill_last_break): New function.
12720 (s390_store_last_break): Likewise.
12721 (s390_fill_system_call): New function.
12722 (s390_store_system_call): Likewise.
12723 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12724 register sets.
12725 (s390_check_regset): New function.
12726 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12727 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12728 Update target_regsets for available register sets.
12729
12730 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12731 Jan Kratochvil <jan.kratochvil@redhat.com>
12732
12733 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12734 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12735 New.
12736 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12737 * linux-low.h (struct process_info_private): New member r_debug.
12738 * server.c (handle_qxfer_libraries): Call
12739 the_target->qxfer_libraries_svr4.
12740 (handle_qxfer_libraries_svr4): New function.
12741 (qxfer_packets): New entry "libraries-svr4".
12742 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12743 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12744 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12745 PACKET_qXfer_libraries_svr4.
12746
12747 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12748
12749 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12750 PSW address/mask between 8-byte and 16-byte formats.
12751 (s390_supply_ptrace_register): Likewise.
12752 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12753 basic addressing mode bit.
12754
12755 2011-11-24 Stan Shebs <stan@codesourcery.com>
12756
12757 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12758
12759 2011-11-17 Stan Shebs <stan@codesourcery.com>
12760
12761 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12762 (tracing_start_time): New global.
12763 (tracing_stop_time): New global.
12764 (tracing_user_name): New global.
12765 (tracing_notes): New global.
12766 (tracing_stop_note): New global.
12767 (cmd_qtstart): Set traceframe_usage, start_time.
12768 (stop_tracing): Set stop_time.
12769 (cmd_qtstatus): Report additional status.
12770 (cmd_qtp): New function.
12771 (handle_tracepoint_query): Call it.
12772 (cmd_qtnotes): New function.
12773 (handle_tracepoint_general_set): Call it.
12774 (get_timestamp): Rename from tsv_get_timestamp.
12775
12776 2011-11-14 Stan Shebs <stan@codesourcery.com>
12777 Kwok Cheung Yeung <kcy@codesourcery.com>
12778
12779 * linux-x86-low.c (small_jump_insn): New.
12780 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12781 trampoline and error message, build a trampoline and issue a small
12782 jump instruction to it.
12783 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12784 trampoline and error message.
12785 (x86_get_min_fast_tracepoint_insn_len): New.
12786 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12787 * linux-low.h (struct linux_target_ops): Add arguments to
12788 install_fast_tracepoint_jump_pad operation, add new operation.
12789 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12790 arguments.
12791 (linux_get_min_fast_tracepoint_insn_len): New function.
12792 (linux_target_op): Add new operation.
12793 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12794 (gdb_trampoline_buffer_end): Ditto.
12795 (gdb_trampoline_buffer_error): Ditto.
12796 (struct ipa_sym_addresses): Add fields for new IPA variables.
12797 (symbol_list): Add entries for new IPA variables.
12798 (struct tracepoint): Add fields to hold the address range of the
12799 trampoline used by the tracepoint.
12800 (trampoline_buffer_head): New static variable.
12801 (trampoline_buffer_tail): Ditto.
12802 (claim_trampoline_space): New function.
12803 (have_fast_tracepoint_trampoline_buffer): New function.
12804 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12805 structure.
12806 (install_fast_tracepoint): Ditto, also add error buffer argument.
12807 (cmd_qtminftpilen): New function.
12808 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12809 (fast_tracepoint_from_trampoline_address): New function.
12810 (fast_tracepoint_collecting): Handle trampoline as part of jump
12811 pad space.
12812 (set_trampoline_buffer_space): New function.
12813 (initialize_tracepoint): Initialize new IPA variables.
12814 * target.h (struct target_ops): Add arguments to
12815 install_fast_tracepoint_jump_pad operation, add new
12816 get_min_fast_tracepoint_insn_len operation.
12817 (target_get_min_fast_tracepoint_insn_len): New.
12818 (install_fast_tracepoint_jump_pad): Add arguments.
12819 * server.h (IPA_BUFSIZ): Define.
12820 * linux-i386-ipa.c: Include extra header files.
12821 (initialize_fast_tracepoint_trampoline_buffer): New function.
12822 (initialize_low_tracepoint): Call it.
12823 * server.h (set_trampoline_buffer_space): Declare.
12824 (claim_trampoline_space): Ditto.
12825 (have_fast_tracepoint_trampoline_buffer): Ditto.
12826
12827 2011-11-14 Yao Qi <yao@codesourcery.com>
12828
12829 * server.c (handle_query): Handle InstallInTrace for qSupported.
12830 * tracepoint.c (add_tracepoint): Sort list.
12831 (install_tracepoint, download_tracepoint): New.
12832 (cmd_qtdp): Call them to install and download tracepoints.
12833 (sort_tracepoints): Removed.
12834 (cmd_qtstart): Update.
12835
12836 2011-11-14 Yao Qi <yao@codesourcery.com>
12837
12838 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12839 * mem-break.h: Declare.
12840 * tracepoint.c (cmd_qtstart): Move some code to ...
12841 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12842 New.
12843 (download_tracepoints): Move some code to ...
12844 (download_tracepoint_1): ... here. New.
12845
12846 2011-11-08 Yao Qi <yao@codesourcery.com>
12847
12848 * remote-utils.c (relocate_instruction): A comment fix.
12849
12850 2011-11-07 Joel Brobecker <brobecker@adacore.com>
12851
12852 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12853 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12854 dr_status_mirror and dr_control_mirror from debug_reg_state.
12855 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12856 (i386_initial_stuff): Remove use of deleted globals.
12857 (i386_get_thread_context, i386_set_thread_context,
12858 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12859 from debug_reg_state.
12860
12861 2011-11-05 Yao Qi <yao@codesourcery.com>
12862
12863 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12864 address as TPOINT's.
12865
12866 2011-11-02 Stan Shebs <stan@codesourcery.com>
12867
12868 * tracepoint.c (agent_mem_read_string): New function.
12869 (eval_agent_expr): Call it for tracenz.
12870 * server.c (handle_query): Report support for tracenz.
12871
12872 2011-11-02 Yao Qi <yao@codesourcery.com>
12873
12874 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12875
12876 2011-11-02 Yao Qi <yao@codesourcery.com>
12877
12878 * target.h: Fix a typo in comment.
12879
12880 2011-10-31 Pedro Alves <pedro@codesourcery.com>
12881
12882 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12883 clobber the breakpoints' shadows with fast tracepoint jumps.
12884 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12885 * target.c (write_inferior_memory): Also pass MYADDR down to
12886 check_mem_write.
12887
12888 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12889
12890 * configure.ac: Check support for personality routine.
12891 * configure: Regenerate.
12892 * config.in: Likewise.
12893 * linux-low.c: Include <sys/personality.h>.
12894 Define ADDR_NO_RANDOMIZE if necessary.
12895 (linux_create_inferior): Disable address space randomization when
12896 forking inferior, if requested.
12897 (linux_supports_disable_randomization): New function.
12898 (linux_target_ops): Install it.
12899 * server.h (disable_randomization): Declare.
12900 * server.c (disable_randomization): New global variable.
12901 (handle_general_set): Handle QDisableRandomization.
12902 (handle_query): Likewise for qSupported.
12903 (main): Support --disable-randomization and --no-disable-randomization
12904 command line arguments.
12905 * target.h (struct target_ops): Add supports_disable_randomization.
12906 (target_supports_disable_randomization): New macro.
12907
12908 2011-09-29 Mike Frysinger <vapier@gentoo.org>
12909
12910 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
12911 ifdef check.
12912 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
12913 [!PT_GETDSBT] (target_loadmap): New definition.
12914 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
12915 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
12916 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
12917 and PT_GETDSBT to LINUX_LOADMAP.
12918 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
12919 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
12920
12921 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12922
12923 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
12924 (arm_linux_hwbp_cap): New static variable.
12925 (arm_linux_get_hwbp_cap): Replace by ...
12926 (arm_linux_init_hwbp_cap): ... this new function.
12927 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
12928 (arm_linux_get_hw_watchpoint_count): Likewise.
12929 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12930 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
12931 (arm_prepare_to_resume): Use perror_with_name instead of error.
12932
12933 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12934
12935 * linux-arm-low.c: Include <signal.h>.
12936 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
12937 (struct arm_linux_hwbp_cap): New data type.
12938 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12939 (struct arm_linux_hw_breakpoint): New data type.
12940 (MAX_BPTS, MAX_WPTS): Define.
12941 (struct arch_process_info, struct arch_lwp_info): New data types.
12942 (arm_linux_get_hwbp_cap): New function.
12943 (arm_linux_get_hw_breakpoint_count): Likewise.
12944 (arm_linux_get_hw_watchpoint_count): Likewise.
12945 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12946 (arm_hwbp_control_initialize): Likewise.
12947 (arm_hwbp_control_is_enabled): Likewise.
12948 (arm_hwbp_control_is_initialized): Likewise.
12949 (arm_hwbp_control_disable): Likewise.
12950 (arm_linux_hw_breakpoint_equal): Likewise.
12951 (arm_linux_hw_point_initialize): Likewise.
12952 (struct update_registers_data): New data structure.
12953 (update_registers_callback: New function.
12954 (arm_insert_point): Likewise.
12955 (arm_remove_point): Likewise.
12956 (arm_stopped_by_watchpoint): Likewise.
12957 (arm_stopped_data_address): Likewise.
12958 (arm_new_process): Likewise.
12959 (arm_new_thread): Likewise.
12960 (arm_prepare_to_resume): Likewise.
12961 (the_low_target): Register arm_insert_point, arm_remove_point,
12962 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12963 arm_new_thread, and arm_prepare_to_resume.
12964
12965 2011-09-15 Stan Shebs <stan@codesourcery.com>
12966
12967 * server.h (struct emit_ops): Add compare-goto fields.
12968 * tracepoint.c (gdb_agent_op_sizes): New table.
12969 (emit_eq_goto): New function.
12970 (emit_ne_goto): New function.
12971 (emit_lt_goto): New function.
12972 (emit_le_goto): New function.
12973 (emit_gt_goto): New function.
12974 (emit_ge_goto): New function.
12975 (is_goto_target): New function.
12976 (compile_bytecodes): Recognize special cases of compare-goto
12977 combinations and call specialized emitters for them.
12978 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12979 (amd64_emit_ne_goto): New function.
12980 (amd64_emit_lt_goto): New function.
12981 (amd64_emit_le_goto): New function.
12982 (amd64_emit_gt_goto): New function.
12983 (amd64_emit_ge_goto): New function.
12984 (amd64_emit_ops): Add the new functions.
12985 (i386_emit_eq_goto): New function.
12986 (i386_emit_ne_goto): New function.
12987 (i386_emit_lt_goto): New function.
12988 (i386_emit_le_goto): New function.
12989 (i386_emit_gt_goto): New function.
12990 (i386_emit_ge_goto): New function.
12991 (i386_emit_ops): Add the new functions.
12992
12993 2011-09-08 Stan Shebs <stan@codesourcery.com>
12994
12995 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12996 (i386_emit_epilogue): Restore %ebx.
12997
12998 2011-08-31 Jie Zhang <jzhang918@gmail.com>
12999
13000 * server.c (step_thread): Remove definition.
13001 (process_serial_event): Don't handle Hs.
13002 * server.h (step_thread): Remove declaration.
13003 * target.c (set_desired_inferior): Remove use of step_thread.
13004
13005 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13006
13007 * linux-low.c: Include linux-procfs.h.
13008 (linux_attach_lwp_1): Update comments.
13009 (linux_attach): Scan for existing threads when attaching to a
13010 process that is the tgid.
13011 * Makefile.in: Update dependencies.
13012
13013 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13014
13015 * configure.srv: Add linux-procfs.o dependencies.
13016
13017 2011-08-14 Yao Qi <yao@codesourcery.com>
13018
13019 * target.h (struct target_ops): Fix indent.
13020 * win32-low.c (win32_target_ops): Fix comment.
13021
13022 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13023 Yao Qi <yao@codesourcery.com>
13024
13025 * Makefile.in (clean): Remove tic6x-*.c files.
13026 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13027 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13028 (tic6x-c64xp-linux.c): Likewise.
13029 * configure.srv: Add support for tic6x-*-uclinux.
13030 * linux-tic6x-low.c: New.
13031 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13032
13033 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13034 Yao Qi <yao@codesourcery.com>
13035
13036 * target.h (struct target_ops): Add read_loadmap.
13037 * linux-low.c (struct target_loadseg): New type.
13038 (struct target_loadmap): New type.
13039 (linux_read_loadmap): New function.
13040 (linux_target_ops): Add linux_read_loadmap.
13041 * server.c (handle_query): Support qXfer:fdpic:read packet.
13042 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13043 to NULL.
13044
13045 2011-08-05 Eli Zaretskii <eliz@gnu.org>
13046
13047 * win32-low.c: Include <stdint.h>.
13048
13049 2011-07-22 Pedro Alves <pedro@codesourcery.com>
13050
13051 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13052 to the inferior here.
13053 (i386_remove_aligned_watchpoint): Ditto.
13054 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13055 fit part of the watchpoint in the debug registers.
13056 (i386_update_inferior_debug_regs): New.
13057 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13058 registers, and only update the inferior on success.
13059 (i386_low_remove_watchpoint): Ditto.
13060
13061 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13062
13063 * linux-low.c (compare_ints, unique, list_threads, show_process,
13064 linux_core_of_thread): Delete.
13065 (linux_target_ops): Change linux_core_of_thread to
13066 linux_common_core_of_thread.
13067 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13068 * utils.c (malloc_failure): Change type of argument.
13069 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13070 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13071 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13072 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13073 (IPA_OBJS): Add common-utils-ipa.o.
13074 (ptid_h, linux_osdata_h): New macros.
13075 (server_h): Add common/common-utils.h, common/xml-utils.h,
13076 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13077 common/ptid.h.
13078 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13079 ptid.o, buffer.o): New rules.
13080 (linux-low.o): Add common/linux-osdata.h as a dependency.
13081 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13082 * configure.ac: Add AC_HEADER_DIRENT check.
13083 * config.in: Regenerate.
13084 * configure: Regenerate.
13085 * remote-utils.c (xml_escape_text): Delete.
13086 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13087 buffer_xml_printf): Move to common/buffer.c.
13088 * server.c (main): Remove call to initialize_inferiors.
13089 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13090 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13091 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13092 internal_error, gdb_assert, gdb_assert_fail): Delete.
13093 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13094 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13095 common/buffer.h.
13096 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13097 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13098 initialize_inferiors): Delete.
13099
13100 2011-07-20 Pedro Alves <pedro@codesourcery.com>
13101
13102 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13103 symbol error.
13104
13105 2011-05-31 Pedro Alves <pedro@codesourcery.com>
13106
13107 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13108 assertion.
13109 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13110
13111 2011-05-26 Yao Qi <yao@codesourcery.com>
13112
13113 * Makefile.in (thread-db.o): Track dependence to
13114 common/gdb_thread_db.h.
13115 * thread-db.c: include gdb_thread_db.h from right place.
13116
13117 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13118
13119 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13120 __FILE__ and __LINE__ to internal_error.
13121
13122 2011-05-13 Doug Evans <dje@google.com>
13123
13124 * thread-db.c (try_thread_db_load_from_sdir): New function.
13125 (try_thread_db_load_from_dir): New function.
13126 (thread_db_load_search): Handle $sdir, ignore $pdir.
13127 Remove trying of system directories if search of
13128 libthread-db-search-path fails, that is now done via $sdir.
13129
13130 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13131
13132 * server.c (handle_query): Add EnableDisableTracepoints to the list
13133 of supported features.
13134 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
13135 tracepoints.
13136 (cmd_qtenable_disable): New.
13137 (cmd_qtstart): Install tracepoints even if disabled.
13138 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13139 receiving a QTEnable or QTDisable packet.
13140 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13141 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13142 tracepoints.
13143 (gdb_probe): Skip data collection if static tracepoint is disabled.
13144
13145 2011-05-10 Doug Evans <dje@google.com>
13146
13147 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13148
13149 2011-05-04 Doug Evans <dje@google.com>
13150
13151 * linux-low.c (linux_join): Skip process lookup.
13152 * spu-low.c (spu_join): Ditto.
13153 * server.c (join_inferiors_callback): Delete.
13154 (process_serial_event): For 'D' packet (detach) call join_inferior
13155 directly.
13156
13157 2011-05-04 Joseph Myers <joseph@codesourcery.com>
13158
13159 * README: Don't mention xscale*-*-linux*.
13160 * configure.srv (xscale*-*-linux*): Don't handle target.
13161
13162 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13163
13164 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13165 casting pointers.
13166 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13167 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13168 (i386_emit_void_call_2): Likewise.
13169
13170 2011-04-26 Yao Qi <yao@codesourcery.com>
13171
13172 * linux-low.c: Move common macros to linux-ptrace.h.
13173 Include linux-ptrace.h.
13174 * Makefile.in (linux_ptrace_h): New.
13175 (linux-low.o): Depends on linux-ptrace.h.
13176
13177 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13178
13179 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13180 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13181 (remote_prepare): New function with most of the TCP code from ...
13182 (remote_open): ... here. Detect PORT here unconditionally. Move also
13183 setting transport_is_reliable.
13184 * server.c (run_once): New variable.
13185 (gdbserver_usage): Document it.
13186 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13187 the first run if RUN_ONCE.
13188 * server.h (run_once, remote_prepare): New declarations.
13189
13190 2011-04-19 Tom Tromey <tromey@redhat.com>
13191
13192 * win32-low.c (handle_load_dll): Remove duplicate "the".
13193
13194 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13195
13196 Remove support for old Cygwin 1.5 versions.
13197 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13198 function to avoid warning.
13199 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13200 warning.
13201
13202 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13203
13204 * gdbserver/server.h (Macro _): Define it if not available.
13205
13206 2011-03-14 Michael Snyder <msnyder@vmware.com>
13207
13208 * hostio.c (handle_close): Remove unnecessary null test.
13209
13210 2011-03-10 Joel Brobecker <brobecker@adacore.com>
13211
13212 * Makefile.in (maintainer-clean realclean distclean): Remove
13213 "make ... subdir_do" command.
13214
13215 2011-03-10 Michael Snyder <msnyder@vmware.com>
13216
13217 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13218
13219 * server.c (handle_v_run): Free alloced buffer on early return.
13220
13221 2011-03-09 Yao Qi <yao@codesourcery.com>
13222
13223 Revert:
13224 2011-03-04 Yao Qi <yao@codesourcery.com>
13225
13226 * Makefile.in: Remove GNU make feature --directory.
13227
13228 2011-03-05 Yao Qi <yao@codesourcery.com>
13229
13230 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13231 (subdir_do): New make target. Copied from gdb/Makefile.
13232 (maintainer-clean, realclean, distclean, clean): Call corresponding
13233 make targets in common/Makefile.
13234
13235 2011-02-11 Yao Qi <yao@codesourcery.com>
13236
13237 * configure.ac: Call AC_PROG_RANLIB.
13238 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13239 * configure: Regenerate.
13240
13241 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13242
13243 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13244
13245 2011-03-06 Yao Qi <yao@codesourcery.com>
13246
13247 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13248
13249 2011-03-05 Yao Qi <yao@codesourcery.com>
13250
13251 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13252 (subdir_do): New make target. Copied from gdb/Makefile.
13253 (maintainer-clean, realclean, distclean, clean): Call corresponding
13254 make targets in common/Makefile.
13255
13256 2011-03-04 Yao Qi <yao@codesourcery.com>
13257
13258 * Makefile.in: Remove GNU make feature --directory.
13259
13260 2011-03-04 Michael Snyder <msnyder@vmware.com>
13261
13262 * server.c (queue_stop_reply): Call xmalloc not malloc.
13263
13264 2011-03-02 Michael Snyder <msnyder@vmware.com>
13265
13266 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13267
13268 2011-02-28 Michael Snyder <msnyder@vmware.com>
13269
13270 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13271 (cmd_qtframe): Ditto.
13272 (cmd_qtbuffer): Ditto.
13273 (cmd_bigqtbuffer): Ditto.
13274
13275 * utils.c (decimal2str): Initialize 'width' to nine, then
13276 don't mess with it.
13277
13278 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13279
13280 * hostio.c (require_data): Free *data, not data.
13281
13282 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13283
13284 * hostio.c (require_data): Use free, not xfree.
13285
13286 2011-02-27 Michael Snyder <msnyder@vmware.com>
13287
13288 * server.c (handle_query): Discard unused value.
13289
13290 * hostio.c (require_data): Free malloc memory before returning
13291 error.
13292
13293 2011-02-26 Michael Snyder <msnyder@vmware.com>
13294
13295 * linux-low.c (list_threads): Call closedir for dirent.
13296
13297 2011-02-27 Michael Snyder <msnyder@vmware.com>
13298
13299 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13300 a case statement falls through.
13301
13302 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13303
13304 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13305 in comparison.
13306
13307 2011-02-26 Michael Snyder <msnyder@vmware.com>
13308
13309 * utils.c (decimal2str): Eliminate dead code and dead param.
13310 (pulongest): Drop dead param from call to decimal2str.
13311 (plongest): Ditto.
13312
13313 2011-02-24 Joel Brobecker <brobecker@adacore.com>
13314
13315 Revert the following patch (not approved yet):
13316 2011-02-21 Hui Zhu <teawater@gmail.com>
13317 * tracepoint.c (tp_printf): New function.
13318 (eval_agent_expr): Handle gdb_agent_op_printf.
13319
13320 2011-02-21 Hui Zhu <teawater@gmail.com>
13321
13322 * tracepoint.c (tp_printf): New function.
13323 (eval_agent_expr): Handle gdb_agent_op_printf.
13324
13325 2011-02-18 Tom Tromey <tromey@redhat.com>
13326
13327 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13328 (tracepoint.o): Likewise.
13329 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13330 (gdb_agent_op_names): Likewise.
13331
13332 2011-02-18 Tom Tromey <tromey@redhat.com>
13333
13334 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13335 gdb_agent_op_rot>: New constants.
13336 (gdb_agent_op_names): Add pick and roll.
13337 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13338 cases.
13339
13340 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13341
13342 * aclocal.m4: Regenerated with aclocal-1.11.1.
13343
13344 2011-02-14 Pedro Alves <pedro@codesourcery.com>
13345
13346 * server.c (handle_qxfer_traceframe_info): New.
13347 (qxfer_packets): Register "traceframe-info".
13348 (handle_query): Report support for qXfer:traceframe-info:read+.
13349 * tracepoint.c (match_blocktype): New.
13350 (traceframe_find_block_type): Rename to ...
13351 (traceframe_walk_blocks): ... this. Add callback filter argument,
13352 and use it.
13353 (traceframe_find_block_type): New, reimplemented on top of
13354 traceframe_walk_blocks.
13355 (build_traceframe_info_xml): New.
13356 (traceframe_read_info): New.
13357 * server.h (traceframe_read_info): Declare.
13358
13359 2011-02-11 Yao Qi <yao@codesourcery.com>
13360
13361 * configure.ac: Call AC_PROG_RANLIB.
13362 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13363 * configure: Regenerate.
13364
13365 2011-02-07 Pedro Alves <pedro@codesourcery.com>
13366
13367 * server.c (gdb_read_memory): Change return semantics to allow
13368 partial transfers.
13369 (handle_search_memory_1): Adjust.
13370 (process_serial_event) <'m' packet>: Handle partial transfers.
13371 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13372
13373 2011-01-28 Pedro Alves <pedro@codesourcery.com>
13374
13375 * regcache.c (init_register_cache): Initialize
13376 regcache->register_status.
13377 (free_register_cache): Release regcache->register_status.
13378 (regcache_cpy): Copy register_status.
13379 (registers_to_string): Print 'x's for unavailable registers.
13380 (supply_register): Mark the register's status valid or
13381 unavailable, depending on whether a buffer was passed in or not.
13382 (supply_register_zeroed): New.
13383 (supply_regblock): Mark the registers' status valid or
13384 unavailable, depending on whether a buffer was passed in or not.
13385 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13386 (struct regcache): New `register_status' field.
13387 (supply_register_zeroed): Declare.
13388 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13389 supply_register_zeroed, rather than passing a NULL buffer to
13390 supply_register.
13391 * tracepoint.c (fetch_traceframe_registers): Update comment.
13392
13393 2011-01-28 Pedro Alves <pedro@codesourcery.com>
13394
13395 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13396 buffer explicit.
13397
13398 2011-01-25 Pedro Alves <pedro@codesourcery.com>
13399
13400 * server.h (decode_xfer_write): Change prototype.
13401 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13402 and don't extract the annex here.
13403 * server.c (decode_xfer_read): Remove `annex' parameter,
13404 and don't extract the annex here.
13405 (decode_xfer): New.
13406 (struct qxfer): New.
13407 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13408 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13409 (handle_qxfer_statictrace): New functions, abstracted out from
13410 handle_query, and made to use the struct qxfer interface.
13411 (handle_threads_qxfer_proper): Rename to ...
13412 (handle_qxfer_threads_proper): ... this.
13413 (handle_threads_qxfer): Rename to ...
13414 (handle_qxfer_threads): ... this. Adjust.
13415 (qxfer_packets): New array.
13416 (handle_qxfer): New function.
13417 (handle_query): Use handle_qxfer.
13418
13419 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13420
13421 * gdbreplay.c: Shorten lines of >= 80 columns.
13422 * linux-low.c: Ditto.
13423 * linux-ppc-low.c: Ditto.
13424 * linux-s390-low.c: Ditto.
13425 * linux-sparc-low.c: Ditto.
13426 * linux-x86-low.c: Ditto.
13427 * linux-xtensa-low.c: Ditto.
13428 * mem-break.c: Ditto.
13429 * nto-low.c: Ditto.
13430 * regcache.h: Ditto.
13431 * remote-utils.c: Ditto.
13432 * server.c: Ditto.
13433 * server.h: Ditto.
13434 * thread-db.c: Ditto.
13435 * tracepoint.c: Ditto.
13436 * utils.c: Ditto.
13437 * win32-low.h: Ditto.
13438
13439 2011-01-05 Joel Brobecker <brobecker@adacore.com>
13440
13441 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13442 update.
13443
13444 2011-01-01 Joel Brobecker <brobecker@adacore.com>
13445
13446 * server.c (gdbserver_version): Update copyright year in version
13447 output.
13448 * gdbreplay.c (gdbreplay_version): Ditto.
13449
13450 2010-12-29 Jie Zhang <jie.zhang@analog.com>
13451
13452 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13453 * linux-bfin-low.c: New file.
13454 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13455 PT_DATA_ADDR for BFIN targets.
13456 * Makefile.in (SFILES): Add linux-bfin-low.c.
13457 (clean): Remove reg-bfin.c.
13458 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13459 * README: Mention supported Blackfin targets.
13460
13461 2010-12-23 Mike Frysinger <vapier@gentoo.org>
13462
13463 * .gitignore: New file.
13464
13465 2010-11-16 Mike Frysinger <vapier@gentoo.org>
13466
13467 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13468
13469 2010-10-22 Jie Zhang <jie@codesourcery.com>
13470
13471 * Makefile.in: Add FLAGS_TO_PASS variable.
13472 (install): Remove dependency of install-only and recursively
13473 invoke make for install-only.
13474
13475 2010-10-04 Doug Evans <dje@google.com>
13476
13477 * Makefile.in (uninstall): Use $(DESTDIR).
13478
13479 2010-09-24 Pedro Alves <pedro@codesourcery.com>
13480
13481 PR gdb/11842
13482
13483 * linux-x86-low.c (compat_siginfo_from_siginfo)
13484 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
13485 si_code is < 0. Check for si_code == SI_TIMER before checking for
13486 si_code < 0.
13487
13488 2010-09-13 Joel Brobecker <brobecker@adacore.com>
13489
13490 * lynx-i386-low.c: New file.
13491 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
13492
13493 2010-09-13 Joel Brobecker <brobecker@adacore.com>
13494
13495 * lynx-low.c (ptrace_request_to_str): Remove handling for
13496 request values that have been removed in LynxOS 5.x.
13497
13498 2010-09-13 Joel Brobecker <brobecker@adacore.com>
13499
13500 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
13501 <ptrace.h>
13502
13503 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13504
13505 * configure.ac: Add --enable-inprocess-agent option.
13506 * configure: Rebuilt.
13507
13508 2010-09-06 Yao Qi <yao@codesourcery.com>
13509
13510 * linux-low.c (linux_kill): Remove unused variable.
13511 (linux_stabilize_threads): Likewise.
13512 * server.c (start_inferior): Likewise.
13513 (queue_stop_reply_callback): Likewise.
13514 * tracepoint.c (do_action_at_tracepoint): Likewise.
13515
13516 2010-09-06 Yao Qi <yao@codesourcery.com>
13517
13518 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
13519 on return.
13520
13521 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13522
13523 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
13524
13525 2010-09-06 Pedro Alves <pedro@codesourcery.com>
13526
13527 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13528 "$(IPA_DEPFILES)".
13529
13530 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13531
13532 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13533 gdbserver/lynx-ppc-low.c: New files.
13534 * Makefile.in (lynx_low_h): New variable.
13535 (lynx-low.o, lynx-ppc-low.o): New rules.
13536 * configure.ac: On LynxOS, link with -lnetinet.
13537 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13538 * configure: regenerate.
13539
13540 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13541
13542 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13543 * configure.ac: Add check for vasprintf and vsnprintf.
13544 * configure, config.in: Regenerate.
13545 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13546
13547 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13548
13549 * gdbreplay.c: Move include of alloca.h up, next to include of
13550 malloc.h.
13551 * server.h: Add include of malloc.h.
13552 * mem-break.c: Remove include of malloc.h.
13553 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13554
13555 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13556
13557 * Makefile.in (memmem.o): Build with -Wno-error.
13558
13559 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13560
13561 * utils.c (xsnprintf): Make non-static.
13562 * server.h: Add xsnprintf declaration.
13563 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13564 replace calls to snprintf by calls to xsnprintf throughout.
13565
13566 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13567
13568 * configure.ac: Add configure check for alloca.
13569 * configure, config.in: Regenerate.
13570 * server.h: Include alloca.h if it exists.
13571 * gdbreplay.c: Include alloca.h if it exists.
13572
13573 2010-08-28 Pedro Alves <pedro@codesourcery.com>
13574
13575 * linux-low.c (__SIGRTMIN): Define if not already defined.
13576 (linux_create_inferior): Check for __ANDROID__ rather than
13577 __SIGRTMIN.
13578 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13579 are already deferred.
13580 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13581 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13582 stopped and already has a pending signal to report.
13583 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13584 a pending signal to report or is moving out of a jump pad.
13585 (linux_init_signals): Check for __ANDROID__ rather than
13586 __SIGRTMIN.
13587
13588 2010-08-28 Pedro Alves <pedro@codesourcery.com>
13589
13590 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13591 debug_threads check. Avoid a linear search when not doing debug
13592 output.
13593
13594 2010-08-27 Pedro Alves <pedro@codesourcery.com>
13595
13596 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13597 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13598 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13599 (process_event): Change local fd's type to gdb_fildes_t.
13600 (create_file_handler): Adjust prototype.
13601 (delete_file_handler): Adjust prototype.
13602 (handle_file_event): Adjust prototype. Use pfildes.
13603 (create_file_event): Adjsut prototype.
13604 * remote-utils.c (remote_desc, listen_desc): Change type to
13605 gdb_fildes_t.
13606 * server.h: New gdb_fildes_t typedef.
13607 [USE_WIN32API]: Include winsock2.h.
13608 (delete_file_handler, add_file_handler): Adjust prototypes.
13609 (pfildes): Declare.
13610 * utils.c (pfildes): New.
13611
13612 2010-08-27 Pedro Alves <pedro@codesourcery.com>
13613
13614 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13615 * configure: Regenerate.
13616
13617 2010-08-27 Pedro Alves <pedro@codesourcery.com>
13618
13619 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13620 (linux_done_accessing_memory): ... this.
13621 (linux_target_ops): Adjust.
13622 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13623 * nto-low.c (nto_target_ops): Adjust comment.
13624 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13625 * spu-low.c (spu_target_ops): Adjust comment.
13626 * target.h (target_ops): Rename unprepare_to_access_memory field
13627 to done_accessing_memory.
13628 (unprepare_to_access_memory): Rename to ...
13629 (done_accessing_memory): ... this.
13630
13631 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13632
13633 * linux-low.c (linux_prepare_to_access_memory): New.
13634 (linux_unprepare_to_access_memory): New.
13635 (linux_target_ops): Install them.
13636 * server.c (read_memory): Rename to ...
13637 (gdb_read_memory): ... this. Use
13638 prepare_to_access_memory/prepare_to_access_memory.
13639 (write_memory): Rename to ...
13640 (gdb_write_memory): ... this. Use
13641 prepare_to_access_memory/prepare_to_access_memory.
13642 (handle_search_memory_1): Adjust.
13643 (process_serial_event): Adjust.
13644 * target.h (struct target_ops): New fields
13645 prepare_to_access_memory and unprepare_to_access_memory.
13646 (prepare_to_access_memory, unprepare_to_access_memory): New.
13647 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13648 prepare_to_access_memory/prepare_to_access_memory.
13649 * nto-low.c (nto_target_ops): Adjust.
13650 * spu-low.c (spu_target_ops): Adjust.
13651 * win32-low.c (win32_target_ops): Adjust.
13652
13653 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13654
13655 * Makefile.in (WARN_CFLAGS): Get it from configure.
13656 (WERROR_CFLAGS): New.
13657 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13658 * configure.ac: Introduce --enable-werror, which adds -Werror to
13659 the compiler command line. Enabled by default. Disable with
13660 --disable-werror. Add -Wdeclaration-after-statement
13661 Wpointer-arith and -Wformat-nonliteral to warning flags.
13662 * configure: Regenerate.
13663
13664 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13665
13666 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13667
13668 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13669
13670 * gdbreplay.c (remote_error): New.
13671 (gdbchar): New.
13672 (expect): Use gdbchar. Check for error reading from GDB.
13673 Clarify sync error output.
13674 (play): Check for errors writing to GDB.
13675 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13676 * remote-utils.c (getpkt): Check for errors writing to the remote
13677 descriptor.
13678
13679 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13680
13681 * linux-low.c (linux_wait_1): Move non-debugging code out of
13682 `debug_threads' control.
13683
13684 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13685
13686 * linux-low.c (linux_wait_1): Don't set last_status here.
13687 * server.c (push_event, queue_stop_reply_callback): Assert we're
13688 not pushing a TARGET_WAITKIND_IGNORE event.
13689 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13690 (myresume, handle_target_event): Set the thread's last_resume_kind
13691 and last_status from the target returned status.
13692
13693 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13694
13695 PR threads/10729
13696
13697 * linux-x86-low.c (update_debug_registers_callback): New.
13698 (i386_dr_low_set_addr): Use it.
13699 (i386_dr_low_get_addr): New.
13700 (i386_dr_low_set_control): Use update_debug_registers_callback.
13701 (i386_dr_low_get_control): New.
13702 (i386_dr_low_get_status): Adjust.
13703 * linux-low.c (linux_stop_lwp): New.
13704 * linux-low.h (linux_stop_lwp): Declare.
13705
13706 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13707 argument instead of a i386_debug_reg_state.
13708 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13709 a i386_debug_reg_state.
13710 (i386_insert_aligned_watchpoint): Adjust.
13711 (i386_remove_aligned_watchpoint): Adjust.
13712 (i386_low_stopped_data_address): Read the debug registers from the
13713 inferior instead of from the mirrors.
13714 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13715 (i386_dr_low_get_addr): Declare.
13716 (i386_dr_low_get_control): Declare.
13717 (i386_dr_low_get_status): Change prototype.
13718
13719 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13720 (i386_dr_low_get_addr): New.
13721 (i386_dr_low_get_control): New.
13722 (i386_dr_low_get_status): Adjust prototype. Return
13723 dr_status_mirror.
13724 (i386_initial_stuff): Clear dr_status_mirror and
13725 dr_control_mirror.
13726 (i386_get_thread_context): Adjust.
13727 (i386_set_thread_context): Adjust.
13728 (i386_thread_added): Adjust.
13729
13730 2010-08-24 Pedro Alves <pedro@codesourcery.com>
13731
13732 * linux-low.h (linux_thread_area): Delete declaration.
13733
13734 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13735
13736 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13737 after its termination.
13738
13739 2010-08-09 Pedro Alves <pedro@codesourcery.com>
13740
13741 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13742 (gdb_wants_all_stopped): Delete.
13743 (linux_wait_1): Don't call them.
13744 * server.c (handle_v_cont): Tag all threads as want-stopped.
13745 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13746 stopped as "client-wants-stopped".
13747
13748 2010-07-31 Pedro Alves <pedro@codesourcery.com>
13749
13750 * Makefile.in (signals_h): New.
13751 (server_h): Depend on it.
13752 (server.o): Don't depend on $(signals_def).
13753 (signals.o): Depend on $(signals_def).
13754
13755 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13756
13757 * Makefile.in (signals_def): New.
13758 (server_h): Append include/gdb/signals.h and signals_def.
13759 (server.o): Append signals_def.
13760
13761 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13762
13763 * server.c (handle_target_event): Use target_signal_to_host for
13764 resume_info.sig initialization.
13765 * target.h (struct thread_resume) <sig>: New comment.
13766
13767 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13768
13769 * server.c (handle_query): strcpy() the returned string from paddress()
13770 instead of sprintf().
13771 * utils.c (paddress): Return phex_nz().
13772
13773 2010-07-07 Joel Brobecker <brobecker@adacore.com>
13774
13775 * server.c (handle_v_cont): Call mourn_inferior if process
13776 just exited.
13777 (myresume): Likewise.
13778
13779 2010-07-01 Pedro Alves <pedro@codesourcery.com>
13780
13781 Static tracepoints, and integration with UST.
13782
13783 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13784 * mem-break.c (uninsert_all_breakpoints)
13785 (reinsert_all_breakpoints): New.
13786 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13787 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13788 (gdb_agent_ust_loaded, helper_thread_id)
13789 (gdb_agent_helper_thread_id): New macros.
13790 (struct ipa_sym_addresses): Add addr_ust_loaded,
13791 addr_helper_thread_id, addr_cmd_buf.
13792 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13793 (in_process_agent_loaded_ust): New.
13794 (write_e_ust_not_loaded): New.
13795 (maybe_write_ipa_ust_not_loaded): New.
13796 (struct collect_static_trace_data_action): New.
13797 (enum tracepoint_type) <static_tracepoint>: New.
13798 (struct tracepoint) <handle>: Mention static tracepoints.
13799 (struct static_tracepoint_ctx): New.
13800 (CMD_BUF_SIZE): New.
13801 (add_tracepoint_action): Handle static tracepoint actions.
13802 (unprobe_marker_at): New.
13803 (clear_installed_tracepoints): Handle static tracepoints.
13804 (cmd_qtdp): Handle static tracepoints.
13805 (probe_marker_at): New.
13806 (cmd_qtstart): Handle static tracepoints.
13807 (response_tracepoint): Handle static tracepoints.
13808 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13809 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13810 (get_context_regcache): Handle static tracepoints.
13811 (do_action_at_tracepoint): Handle static tracepoint actions.
13812 (traceframe_find_block_type): Handle static trace data blocks.
13813 (traceframe_read_sdata): New.
13814 (download_tracepoints): Download static tracepoint actions.
13815 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13816 (GDB_PROBE_NAME): New.
13817 (ust_ops): New.
13818 (GET_UST_SYM): New.
13819 (USTF): New.
13820 (dlsym_ust): New.
13821 (ust_marker_to_static_tracepoint): New.
13822 (gdb_probe): New.
13823 (collect_ust_data_at_tracepoint): New.
13824 (gdb_ust_probe): New.
13825 (UNIX_PATH_MAX, SOCK_DIR): New.
13826 (gdb_ust_connect_sync_socket): New.
13827 (resume_thread, stop_thread): New.
13828 (run_inferior_command): New.
13829 (init_named_socket): New.
13830 (gdb_ust_socket_init): New.
13831 (cstr_to_hexstr): New.
13832 (next_st): New.
13833 (first_marker, next_marker): New.
13834 (response_ust_marker): New.
13835 (cmd_qtfstm, cmd_qtsstm): New.
13836 (unprobe_marker_at, probe_marker_at): New.
13837 (cmd_qtstmat, gdb_ust_thread): New.
13838 (gdb_ust_init): New.
13839 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13840 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13841 (ST_REGENTRY): New.
13842 (x86_64_st_collect_regmap): New.
13843 (X86_64_NUM_ST_COLLECT_GREGS): New.
13844 (AMD64_RIP_REGNUM): New.
13845 (supply_static_tracepoint_registers): New.
13846 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13847 (ST_REGENTRY): New.
13848 (i386_st_collect_regmap): New.
13849 (i386_NUM_ST_COLLECT_GREGS): New.
13850 (supply_static_tracepoint_registers): New.
13851 * server.c (handle_query): Handle qXfer:statictrace:read.
13852 <qSupported>: Report support for StaticTracepoints, and
13853 qXfer:statictrace:read features.
13854 * server.h (traceframe_read_sdata)
13855 (supply_static_tracepoint_registers): Declare.
13856 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13857 (unpack_varlen_hex): Include in IPA build.
13858 * Makefile.in (ustlibs, ustinc): New.
13859 (IPA_OBJS): Add remote-utils-ipa.o.
13860 ($(IPA_LIB)): Link -ldl and -lpthread.
13861 (UST_CFLAGS): New.
13862 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13863 * config.in, configure: Regenerate.
13864
13865 2010-06-20 Ian Lance Taylor <iant@google.com>
13866 Pedro Alves <pedro@codesourcery.com>
13867
13868 * linux-x86-low.c (always_true): Delete.
13869 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13870 trying to fool the compiler with always_true.
13871
13872 2010-06-20 Pedro Alves <pedro@codesourcery.com>
13873
13874 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13875 conditions in gdbserver.
13876
13877 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13878
13879 * spu-low.c (spu_read_memory): Wrap around local store limit.
13880 (spu_write_memory): Likewise.
13881
13882 2010-06-15 Pedro Alves <pedro@codesourcery.com>
13883
13884 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13885 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13886 LONGEST uses.
13887 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13888 uses.
13889 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13890 uses with LONGEST uses.
13891
13892 2010-06-14 Stan Shebs <stan@codesourcery.com>
13893 Pedro Alves <pedro@codesourcery.com>
13894
13895 Bytecode compiler.
13896
13897 * linux-x86-low.c: Include limits.h.
13898 (add_insns): New.
13899 (always_true): New.
13900 (EMIT_ASM): New.
13901 (EMIT_ASM32): New.
13902 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
13903 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
13904 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
13905 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
13906 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
13907 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
13908 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
13909 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
13910 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
13911 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
13912 (amd64_emit_void_call_2): New.
13913 (amd64_emit_ops): New.
13914 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
13915 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
13916 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
13917 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
13918 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
13919 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
13920 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
13921 (i386_emit_call, i386_emit_reg, i386_emit_pop)
13922 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
13923 (i386_emit_stack_adjust, i386_emit_int_call_1)
13924 (i386_emit_void_call_2): New.
13925 (i386_emit_ops): New.
13926 (x86_emit_ops): New.
13927 (the_low_target): Install x86_emit_ops.
13928 * server.h (struct emit_ops): New.
13929 (get_raw_reg_func_addr): Declare.
13930 (current_insn_ptr, emit_error): Declare.
13931 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
13932 (set_trace_state_variable_value): New defines.
13933 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
13934 addr_get_trace_state_variable_value and
13935 addr_set_trace_state_variable_value.
13936 (symbol_list): New fields for get_raw_reg,
13937 get_trace_state_variable_value and set_trace_state_variable_value.
13938 (condfn): New typedef.
13939 (struct tracepoint): New field `compiled_cond'.
13940 (do_action_at_tracepoint): Clear compiled_cond.
13941 (get_trace_state_variable_value, set_trace_state_variable_value):
13942 Export in the IPA.
13943 (condition_true_at_tracepoint): If there's a compiled condition,
13944 run that.
13945 (current_insn_ptr, emit_error): New globals.
13946 (struct bytecode_address): New.
13947 (get_raw_reg_func_addr): New.
13948 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13949 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13950 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13951 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13952 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13953 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13954 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13955 (compile_tracepoint_condition, compile_bytecodes): New.
13956 * target.h (emit_ops): Forward declare.
13957 (struct target_ops): New field emit_ops.
13958 (target_emit_ops): New.
13959 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13960 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13961 * linux-low.c (linux_emit_ops): New.
13962 (linux_target_ops): Install it.
13963 * linux-low.h (struct linux_target_ops): New field emit_ops.
13964
13965 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13966
13967 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13968 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13969
13970 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13971 Stan Shebs <stan@codesourcery.com>
13972
13973 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13974 (all): Depend on $(extra_libraries).
13975 (install-only): Install the IPA.
13976 (IPA_OBJS, IPA_LIB): New.
13977 (clean): Remove the IPA lib.
13978 (IPAGENT_CFLAGS): New.
13979 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13980 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13981 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13982 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13983 * configure.ac: Check for atomic builtins support in the compiler.
13984 (IPA_DEPFILES, extra_libraries): Define.
13985 * configure.srv (ipa_obj): Add description.
13986 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13987 (i[34567]86-*-linux*): Set ipa_obj.
13988 (x86_64-*-linux*): Set ipa_obj.
13989 * linux-low.c (stabilizing_threads): New.
13990 (supports_fast_tracepoints): New.
13991 (linux_detach): Stabilize threads before detaching.
13992 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13993 the lwp is either not stabilizing, or is moving out of a jump pad.
13994 (linux_fast_tracepoint_collecting): New.
13995 (maybe_move_out_of_jump_pad): New.
13996 (enqueue_one_deferred_signal): New.
13997 (dequeue_one_deferred_signal): New.
13998 (linux_wait_for_event_1): If moving out of a jump pad, defer
13999 pending signals to later.
14000 (linux_stabilize_threads): New.
14001 (linux_wait_1): Check if threads need moving out of jump pads, and
14002 do it if so.
14003 (stuck_in_jump_pad_callback): New.
14004 (move_out_of_jump_pad_callback): New.
14005 (lwp_running): New.
14006 (linux_resume_one_lwp): Handle moving out of jump pads.
14007 (linux_set_resume_request): Dequeue deferred signals.
14008 (need_step_over_p): Also step over fast tracepoint jumps.
14009 (start_step_over): Also uninsert fast tracepoint jumps.
14010 (finish_step_over): Also reinsert fast tracepoint jumps.
14011 (linux_install_fast_tracepoint_jump): New.
14012 (linux_target_ops): Install linux_stabilize_threads and
14013 linux_install_fast_tracepoint_jump_pad.
14014 * linux-low.h (linux_target_ops) <get_thread_area,
14015 install_fast_tracepoint_jump_pad>: New fields.
14016 (struct lwp_info) <collecting_fast_tracepoint,
14017 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14018 (linux_get_thread_area): Declare.
14019 * linux-x86-low.c (jump_insn): New.
14020 (x86_get_thread_area): New.
14021 (append_insns): New.
14022 (push_opcode): New.
14023 (amd64_install_fast_tracepoint_jump_pad): New.
14024 (i386_install_fast_tracepoint_jump_pad): New.
14025 (x86_install_fast_tracepoint_jump_pad): New.
14026 (the_low_target): Install x86_get_thread_area and
14027 x86_install_fast_tracepoint_jump_pad.
14028 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14029 (struct fast_tracepoint_jump): New.
14030 (fast_tracepoint_jump_insn): New.
14031 (fast_tracepoint_jump_shadow): New.
14032 (find_fast_tracepoint_jump_at): New.
14033 (fast_tracepoint_jump_here): New.
14034 (delete_fast_tracepoint_jump): New.
14035 (set_fast_tracepoint_jump): New.
14036 (uninsert_fast_tracepoint_jumps_at): New.
14037 (reinsert_fast_tracepoint_jumps_at): New.
14038 (set_breakpoint_at): Use write_inferior_memory.
14039 (uninsert_raw_breakpoint): Use write_inferior_memory.
14040 (check_mem_read): Mask out fast tracepoint jumps.
14041 (check_mem_write): Mask out fast tracepoint jumps.
14042 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14043 (set_fast_tracepoint_jump): Declare.
14044 (delete_fast_tracepoint_jump)
14045 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14046 (reinsert_fast_tracepoint_jumps_at): Declare.
14047 * regcache.c: Don't compile many functions when building the
14048 in-process agent library.
14049 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14050 the register buffer in the heap.
14051 (free_register_cache): If the register buffer isn't owned by the
14052 regcache, don't free it.
14053 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14054 pre-existing register caches.
14055 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14056 type.
14057 (convert_ascii_to_int): : Constify `from' parameter type.
14058 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14059 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14060 the needed buffer in-place.
14061 (relocate_instruction): New.
14062 * server.c (handle_query) <qSymbols>: If the target supports
14063 tracepoints, give it a chance of looking up symbols. Report
14064 support for fast tracepoints.
14065 (handle_status): Stabilize threads.
14066 (process_serial_event): Adjust.
14067 * server.h (struct fast_tracepoint_jump): Forward declare.
14068 (struct process_info) <fast_tracepoint_jumps>: New field.
14069 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14070 (decode_X_packet, decode_M_packet): Adjust.
14071 (relocate_instruction): Declare.
14072 (in_process_agent_loaded): Declare.
14073 (tracepoint_look_up_symbols): Declare.
14074 (struct fast_tpoint_collect_status): Declare.
14075 (fast_tracepoint_collecting): Declare.
14076 (force_unlock_trace_buffer): Declare.
14077 (handle_tracepoint_bkpts): Declare.
14078 (initialize_low_tracepoint)
14079 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14080 * target.h (struct target_ops) <stabilize_threads,
14081 install_fast_tracepoint_jump_pad>: New fields.
14082 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14083 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14084 [HAVE_STDINT_H]: Include stdint.h.
14085 (trace_debug_1): Rename to ...
14086 (trace_vdebug): ... this.
14087 (trace_debug): Rename to ...
14088 (trace_debug_1): ... this. Add `level' parameter.
14089 (trace_debug): New.
14090 (ATTR_USED, ATTR_NOINLINE): New.
14091 (IP_AGENT_EXPORT): New.
14092 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14093 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14094 (about_to_request_buffer_space, trace_buffer_is_full)
14095 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14096 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14097 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14098 (traceframe_write_count, traceframes_created)
14099 (trace_state_variables)
14100 New renaming defines.
14101 (struct ipa_sym_addresses): New.
14102 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14103 (symbol_list): New.
14104 (ipa_sym_addrs): New.
14105 (all_tracepoint_symbols_looked_up): New.
14106 (in_process_agent_loaded): New.
14107 (write_e_ipa_not_loaded): New.
14108 (maybe_write_ipa_not_loaded): New.
14109 (tracepoint_look_up_symbols): New.
14110 (debug_threads) [IN_PROCESS_AGENT]: New.
14111 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14112 (UNKNOWN_SIDE_EFFECTS): New.
14113 (stop_tracing): New.
14114 (flush_trace_buffer): New.
14115 (stop_tracing_bkpt): New.
14116 (flush_trace_buffer_bkpt): New.
14117 (read_inferior_integer): New.
14118 (read_inferior_uinteger): New.
14119 (read_inferior_data_pointer): New.
14120 (write_inferior_data_pointer): New.
14121 (write_inferior_integer): New.
14122 (write_inferior_uinteger): New.
14123 (struct collect_static_trace_data_action): Delete.
14124 (enum tracepoint_type): New.
14125 (struct tracepoint) <type>: New field `type'.
14126 <actions_str, step_actions, step_actions_str>: Only include in
14127 GDBserver.
14128 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14129 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14130 (tracepoints): Use IP_AGENT_EXPORT.
14131 (last_tracepoint): Don't include in the IPA.
14132 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14133 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14134 (alloced_trace_state_variables): New.
14135 (trace_state_variables): Use IP_AGENT_EXPORT.
14136 (traceframe_t): Delete unused variable.
14137 (circular_trace_buffer): Don't include in the IPA.
14138 (trace_buffer_start): Delete.
14139 (struct trace_buffer_control): New.
14140 (trace_buffer_free): Delete.
14141 (struct ipa_trace_buffer_control): New.
14142 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14143 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14144 New.
14145 (trace_buffer_ctrl): New.
14146 (TRACE_BUFFER_CTRL_CURR): New.
14147 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14148 Reimplement as macros.
14149 (trace_buffer_wrap): Delete.
14150 (traceframe_write_count, traceframe_read_count)
14151 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14152 (struct tracepoint_hit_ctx) <type>: New field.
14153 (struct fast_tracepoint_ctx): New.
14154 (memory_barrier): New.
14155 (cmpxchg): New.
14156 (record_tracepoint_error): Update atomically in the IPA.
14157 (clear_inferior_trace_buffer): New.
14158 (about_to_request_buffer_space): New.
14159 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14160 updating the same buffer.
14161 (add_tracepoint): Default the tracepoint's type to trap
14162 tracepoint, and orig_size to -1.
14163 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14164 internal variables.
14165 (create_trace_state_variable): New parameter `gdb'. Handle it.
14166 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14167 (cmd_qtdp): Handle fast tracepoints.
14168 (cmd_qtdv): Adjust.
14169 (max_jump_pad_size): New.
14170 (gdb_jump_pad_head): New.
14171 (get_jump_space_head): New.
14172 (claim_jump_space): New.
14173 (sort_tracepoints): New.
14174 (MAX_JUMP_SIZE): New.
14175 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14176 IPA.
14177 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14178 support. Upload fast traceframes, and delete internal IPA
14179 breakpoints.
14180 (stop_tracing_handler): New.
14181 (flush_trace_buffer_handler): New.
14182 (cmd_qtstop): Upload fast tracepoints.
14183 (response_tracepoint): Handle fast tracepoints.
14184 (tracepoint_finished_step): Upload fast traceframes. Set the
14185 tracepoint hit context's tracepoint type.
14186 (handle_tracepoint_bkpts): New.
14187 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14188 type. Add comment about fast tracepoints.
14189 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14190 non-existing action_str field.
14191 (get_context_regcache): Handle fast tracepoints.
14192 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14193 to the regcache.
14194 (fast_tracepoint_from_jump_pad_address): New.
14195 (fast_tracepoint_from_ipa_tpoint_address): New.
14196 (collecting_t): New.
14197 (force_unlock_trace_buffer): New.
14198 (fast_tracepoint_collecting): New.
14199 (collecting): New.
14200 (gdb_collect): New.
14201 (write_inferior_data_ptr): New.
14202 (target_tp_heap): New.
14203 (target_malloc): New.
14204 (download_agent_expr): New.
14205 (UALIGN): New.
14206 (download_tracepoints): New.
14207 (download_trace_state_variables): New.
14208 (upload_fast_traceframes): New.
14209 (IPA_FIRST_TRACEFRAME): New.
14210 (IPA_NEXT_TRACEFRAME_1): New.
14211 (IPA_NEXT_TRACEFRAME): New.
14212 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14213 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14214 (gdb_jump_pad_buffer_end): New.
14215 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14216 (initialize_tracepoint): Adjust.
14217 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14218 buffer. Initialize the low module.
14219 * utils.c (PREFIX, TOOLNAME): New.
14220 (malloc_failure): Use PREFIX.
14221 (error): In the IPA, an error causes an exit.
14222 (fatal, warning): Use PREFIX.
14223 (internal_error): Use TOOLNAME.
14224 (NUMCELLS): Increase to 10.
14225 * configure, config.in: Regenerate.
14226
14227 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14228
14229 * server.c (handle_query) <qSupported>: Do two passes over the
14230 qSupported string to avoid nesting strtok.
14231
14232 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14233
14234 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14235 (CDEPS): New.
14236 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14237 -Wl,--dynamic-list.
14238 * configure: Regenerate.
14239 * proc-service.list: New.
14240
14241 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14242
14243 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14244 New comment.
14245
14246 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14247
14248 * gdbreplay.c (remote_open): Check error return from socket() call by
14249 its equality to -1 not by it being negative.
14250 * remote-utils.c (remote_open): Likewise.
14251
14252 2010-05-23 Pedro Alves <pedro@codesourcery.com>
14253
14254 * config.h: Regenerate.
14255
14256 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14257
14258 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14259 doesn't provide PTRACE_GET_THREAD_AREA.
14260
14261 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14262
14263 * linux-m68k-low.c: Include <asm/ptrace.h>
14264 (ps_get_thread_area): Implement.
14265
14266 2010-05-03 Doug Evans <dje@google.com>
14267
14268 * event-loop.c (struct callback_event): New struct.
14269 (callback_list): New global.
14270 (append_callback_event, delete_callback_event): New functions.
14271 (process_callback): New function.
14272 (start_event_loop): Call it.
14273 * remote-utils.c (NOT_SCHEDULED): Define.
14274 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14275 moved out of readchar.
14276 (readchar): Rewrite. Call reschedule before returning.
14277 (reset_readchar): New function.
14278 (remote_close): Call it.
14279 (process_remaining, reschedule): New functions.
14280 * server.h (callback_handler_func): New typedef.
14281 (append_callback_event, delete_callback_event): Declare.
14282
14283 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14284
14285 * proc-service.c (ps_pglobal_lookup): Use
14286 thread_db_look_up_one_symbol.
14287 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14288 parameter. Use it instead of all_symbols_looked_up.
14289 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14290 field.
14291 (all_symbols_looked_up): Don't declare.
14292 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14293 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14294 field.
14295 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14296 Set all_symbols_looked_up here.
14297 (thread_db_look_up_one_symbol): New.
14298 (thread_db_get_tls_address): Adjust.
14299 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14300 thread_db object on the heap, and tentatively set it in the
14301 process structure.
14302 (thread_db_init): Don't set all_symbols_looked_up here.
14303 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14304
14305 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14306
14307 * linux-low.c (linux_kill, linux_detach): Adjust.
14308 (status_pending_p_callback): Remove redundant statement. Check
14309 for !TARGET_WAITIKIND_IGNORE, instead of
14310 TARGET_WAITKIND_STOPPED.
14311 (handle_tracepoints): Make sure LWP is locked. Adjust.
14312 (linux_wait_for_event_1): Adjust.
14313 (linux_cancel_breakpoints): New.
14314 (unsuspend_one_lwp): New.
14315 (unsuspend_all_lwps): New.
14316 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14317 (send_sigstop_callback): Change return type to int, add new
14318 `except' parameter and handle it.
14319 (suspend_and_send_sigstop_callback): New.
14320 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14321 pass them down. If SUSPEND, also increment the lwp's suspend
14322 count.
14323 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14324 (need_step_over_p): Don't consider suspended LWPs.
14325 (start_step_over): Adjust.
14326 (proceed_one_lwp): Change return type to int, add new `except'
14327 parameter and handle it.
14328 (unsuspend_and_proceed_one_lwp): New.
14329 (proceed_all_lwps): Use find_inferior instead of
14330 for_each_inferior.
14331 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14332 also decrement the suspend count of LWPs. Pass `except' down,
14333 instead of hacking its suspend count.
14334 (linux_pause_all): Add `freeze' parameter. Adjust.
14335 (linux_unpause_all): New.
14336 (linux_target_ops): Install linux_unpause_all.
14337 * server.c (handle_status): Adjust.
14338 * target.h (struct target_ops): New fields `unpause_all' and
14339 `cancel_breakpoints'. Add new parameter to `pause_all'.
14340 (pause_all): Add new `freeze' parameter.
14341 (unpause_all): New.
14342 (cancel_breakpoints): New.
14343 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14344 cancel breakpoints.
14345 (cmd_qtstart): Pause threads.
14346 (stop_tracing): Pause threads, and cancel breakpoints.
14347 * win32-low.c (win32_target_ops): Adjust.
14348
14349 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14350
14351 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14352 the inferior right away from here...
14353 (linux_wait_1): ... to here, and adjust to check the thread's
14354 last_resume_kind instead of the lwp's step or stop_expected flags.
14355
14356 2010-05-02 Pedro Alves <pedro@codesourcery.com>
14357
14358 * README: Use consistent `GDB' and `GDBserver' spellings.
14359
14360 2010-05-02 Pedro Alves <pedro@codesourcery.com>
14361
14362 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14363 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14364 (linux_detach_one_lwp): Assume the lwp is stopped.
14365 (any_thread_of): Delete.
14366 (linux_detach): Stop all lwps here. Don't blindly delete all
14367 breakpoints.
14368 (delete_lwp_callback): New.
14369 (linux_mourn): Delete all lwps of the process that is gone.
14370 (linux_wait_1): Don't delete the last lwp of the process here.
14371 * mem-break.h (mark_breakpoints_out): Declare.
14372 * mem-break.c (mark_breakpoints_out): New.
14373 (free_all_breakpoints): Use it.
14374 * server.c (handle_target_event): If the process is gone, mark
14375 breakpoints out.
14376 * thread-db.c (struct thread_db) <create_bp>: New field.
14377 (thread_db_enable_reporting): Fix prototype. Store a thread event
14378 breakpoint reference in the thread_db struct.
14379 (thread_db_load_search): Clear the thread_db object.
14380 (try_thread_db_load_1): Ditto.
14381 (switch_to_process): New.
14382 (disable_thread_event_reporting): Use it.
14383 (remove_thread_event_breakpoints): New.
14384 (thread_db_detach, thread_db_mourn): Use it.
14385
14386 2010-05-01 Pedro Alves <pedro@codesourcery.com>
14387
14388 * linux-low.c (linux_enable_event_reporting): New.
14389 (linux_wait_for_event_1, handle_extended_wait): Use it.
14390
14391 2010-04-30 Pedro Alves <pedro@codesourcery.com>
14392
14393 * linux-low.c (linux_kill_one_lwp, linux_kill)
14394 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14395 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14396 SIGSTOP even if the LWP is stopped.
14397 (send_sigstop_callback): New.
14398 (stop_all_lwps): Use send_sigstop_callback instead.
14399 (linux_resume_one_thread): Adjust.
14400 (proceed_one_lwp): Still proceed an LWP that the client has
14401 requested to stop, if we haven't reported it as stopped yet. Make
14402 sure that LWPs the client want stopped, have a pending SIGSTOP.
14403
14404 2010-04-26 Doug Evans <dje@google.com>
14405
14406 * server.c (handle_general_set): Make static.
14407
14408 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14409 Print received char after testing for error/eof instead of before.
14410 (input_interrupt): Tweak comment.
14411
14412 2010-04-23 Doug Evans <dje@google.com>
14413
14414 * server.c (start_inferior): Print inferior argv if --debug.
14415
14416 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14417
14418 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14419 * nto-x86-low.c: Include server.h
14420
14421 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14422
14423 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14424 be consistent with other sources of this directory.
14425 (init_registers_amd64): Correct name of source file of this function
14426 in the comment.
14427
14428 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14429
14430 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14431 64-bit executables.
14432
14433 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14434
14435 * win32-i386-low.c: Add 64-bit support.
14436 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14437 (init_registers_amd64): Declare.
14438 (mappings): Add 64-bit version of array.
14439 (init_windows_x86): New function.
14440 (the_low_target): Change init_arch field to init_windows_x86.
14441
14442 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14443
14444 * win32-low.c: Adapt to support also 64-bit architecture.
14445 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14446 (get_image_name): Use SIZE_T type for local variable `done'.
14447 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14448 (toolhelp_get_dll_name): Idem.
14449 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14450 Use uintptr_t typecast to avoid warning.
14451 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14452 (handle_exception): Use phex_nz to avoid warning.
14453 (win32_wait): Remove unused local variable `process'.
14454
14455 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14456
14457 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14458 `amd64-avx.o'.
14459
14460 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14461
14462 * configure.ac: Use `ws2_32' library for srv_mingw.
14463 * configure: Regenerate.
14464 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14465 * remote-utils.c: Likewise.
14466
14467 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14468
14469 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14470 if __x86_64__ is defined.
14471
14472 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14473
14474 * configure: Regenerate.
14475
14476 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14477
14478 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14479 * target.h (target_ops): New get_tib_address field.
14480 * win32-low.h (win32_thread_info): Add thread_local_base field.
14481 * win32-low.c (child_add_thread): Add tlb argument.
14482 Set thread_local_base field to TLB.
14483 (get_child_debug_event): Adapt to child_add_thread change.
14484 (win32_get_tib_address): New function.
14485 (win32_target_ops): Set get_tib_address field to
14486 win32_get_tib_address.
14487 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
14488
14489 2010-04-12 Pedro Alves <pedro@codesourcery.com>
14490
14491 * linux-low.c (linux_mourn): Also remove the process.
14492 * server.c (handle_target_event): Don't remove the process here.
14493 * nto-low.c (nto_mourn): New.
14494 (nto_target_ops): Install it.
14495 * spu-low.c (spu_mourn): New.
14496 (spu_target_ops): Install it.
14497 * win32-low.c (win32_mourn): New.
14498 (win32_target_ops): Install it.
14499
14500 2010-04-12 Pedro Alves <pedro@codesourcery.com>
14501
14502 * server.h (buffer_xml_printf): Remove redundant `;'.
14503
14504 2010-04-12 Pedro Alves <pedro@codesourcery.com>
14505
14506 * regcache.c (set_register_cache): Invalidate regcaches before
14507 changing the register cache layout.
14508 (regcache_invalidate_one): Allow a NULL regcache.
14509 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
14510 regcaches before changing the register cache layout or the target
14511 regsets.
14512
14513 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
14514
14515 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
14516 variable warning on Linux/x86-64.
14517
14518 2010-04-11 Pedro Alves <pedro@codesourcery.com>
14519
14520 GDBserver disconnected tracing support.
14521
14522 * linux-low.c (linux_remove_process): Delete.
14523 (add_lwp): Don't set last_resume_kind here.
14524 (linux_kill): Use `mourn'.
14525 (linux_detach): Use `thread_db_detach', and `mourn'.
14526 (linux_mourn): New.
14527 (linux_attach_lwp_1): Adjust comment.
14528 (linux_attach): last_resume_kind moved the thread_info; adjust.
14529 (status_pending_p_callback): Adjust.
14530 (linux_wait_for_event_1): Adjust.
14531 (count_events_callback, select_singlestep_lwp_callback)
14532 (select_event_lwp_callback, cancel_breakpoints_callback)
14533 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14534 (proceed_one_lwp): Adjust.
14535 (linux_async): Add debug output.
14536 (linux_thread_stopped): New.
14537 (linux_pause_all): New.
14538 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14539 linux_pause_all.
14540 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14541 (thread_db_free): Delete declaration.
14542 (thread_db_detach, thread_db_mourn): Declare.
14543 * thread-db.c (thread_db_init): Use thread_db_mourn.
14544 (thread_db_free): Delete, split in two.
14545 (disable_thread_event_reporting): New.
14546 (thread_db_detach): New.
14547 (thread_db_mourn): New.
14548
14549 * server.h (struct thread_info) <last_resume_kind>: New field.
14550 <attached>: Add comment.
14551 <gdb_detached>: New field.
14552 (handler_func): Change return type to int.
14553 (handle_serial_event, handle_target_event): Ditto.
14554 (gdb_connected): Declare.
14555 (tracing): Delete.
14556 (disconnected_tracing): Declare.
14557 (stop_tracing): Declare.
14558
14559 * server.c (handle_query) <qSupported>: Report support for
14560 disconnected tracing.
14561 (queue_stop_reply_callback): Account for running threads.
14562 (gdb_wants_thread_stopped): New.
14563 (gdb_wants_all_threads_stopped): New.
14564 (gdb_reattached_process): New.
14565 (handle_status): Clear the `gdb_detached' flag of all processes.
14566 In all-stop, stop all threads.
14567 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14568 (process_serial_event): If the remote connection breaks, or if an
14569 exit was forced with "monitor exit", force an event loop exit.
14570 Handle disconnected tracing on detach.
14571 (handle_serial_event): Adjust.
14572 (handle_target_event): If GDB isn't connected, forward events back
14573 to the inferior, unless the last process exited, in which case,
14574 exit gdbserver. Adjust interface.
14575
14576 * remote-utils.c (remote_open): Don't block in accept. Instead
14577 register an event loop source on the listen socket file
14578 descriptor. Refactor bits into ...
14579 (listen_desc): ... this new global.
14580 (gdb_connected): ... this new function.
14581 (enable_async_notification): ... this new function.
14582 (handle_accept_event): ... this new function.
14583 (remote_close): Clear remote_desc.
14584
14585 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14586
14587 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14588 New fields.
14589 (mourn_inferior): Define.
14590 (target_process_qsupported): Avoid the dangling else problem.
14591 (thread_stopped): Define.
14592 (pause_all): Define.
14593 (target_waitstatus_to_string): Declare.
14594 * target.c (target_waitstatus_to_string): New.
14595
14596 * tracepoint.c (tracing): Make extern.
14597 (disconnected_tracing): New.
14598 (stop_tracing): Make extern. Handle tracing stops due to GDB
14599 disconnecting.
14600 (cmd_qtdisconnected): New.
14601 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14602 (handle_tracepoint_general_set): Handle QTDisconnected.
14603
14604 * event-loop.c (event_handler_func): Change return type to int.
14605 (process_event): Bail out if the event handler wants the event
14606 loop to stop.
14607 (handle_file_event): Ditto.
14608 (start_event_loop): Bail out if the event handler wants the event
14609 loop to stop.
14610
14611 * nto-low.c (nto_target_ops): Adjust.
14612 * spu-low.c (spu_wait): Don't remove the process here.
14613 (spu_target_ops): Adjust.
14614 * win32-low.c (win32_wait): Don't remove the process here.
14615 (win32_target_ops): Adjust.
14616
14617 2010-04-11 Pedro Alves <pedro@codesourcery.com>
14618
14619 * regcache.c (realloc_register_cache): Invalidate inferior's
14620 regcache before recreating it.
14621
14622 2010-04-09 Pedro Alves <pedro@codesourcery.com>
14623
14624 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14625
14626 2010-04-09 Stan Shebs <stan@codesourcery.com>
14627 Pedro Alves <pedro@codesourcery.com>
14628
14629 * server.h (LONGEST): New.
14630 (struct thread_info) <while_stepping>: New field.
14631 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14632 Declare.
14633 (initialize_tracepoint, handle_tracepoint_general_set)
14634 (handle_tracepoint_query, tracepoint_finished_step)
14635 (tracepoint_was_hit, release_while_stepping_state_list):
14636 (current_traceframe): Declare.
14637 * server.c (handle_general_set): Handle tracepoint packets.
14638 (read_memory): New.
14639 (write_memory): New.
14640 (handle_search_memory_1): Use read_memory.
14641 (handle_query): Report support for conditional tracepoints, trace
14642 state variables, and tracepoint sources. Handle tracepoint
14643 queries.
14644 (main): Initialize the tracepoints module.
14645 (process_serial_event): Handle traceframe reads/writes.
14646
14647 * linux-low.c (handle_tracepoints): New.
14648 (linux_wait_1): Call it.
14649 (linux_resume_one_lwp): Handle while-stepping.
14650 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14651 (linux_target_ops): Install them.
14652 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14653 New field.
14654 * linux-x86-low.c (x86_supports_tracepoints): New.
14655 (the_low_target). Install it.
14656
14657 * mem-break.h (delete_breakpoint): Declare.
14658 * mem-break.c (delete_breakpoint): Make external.
14659
14660 * target.h (struct target_ops): Add `supports_tracepoints',
14661 `read_pc', and `write_pc' fields.
14662 (target_supports_tracepoints): Define.
14663 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14664 (phex_nz): New.
14665
14666 * regcache.h (struct regcache) <registers_owned>: New field.
14667 (init_register_cache, regcache_cpy): Declare.
14668 (regcache_read_pc, regcache_write_pc): Declare.
14669 (register_cache_size): Declare.
14670 (supply_regblock): Declare.
14671 * regcache.c (init_register_cache): New.
14672 (new_register_cache): Use it.
14673 (regcache_cpy): New.
14674 (register_cache_size): New.
14675 (supply_regblock): New.
14676 (regcache_read_pc, regcache_write_pc): New.
14677
14678 * tracepoint.c: New.
14679
14680 * Makefile.in (OBS): Add tracepoint.o.
14681 (tracepoint.o): New rule.
14682
14683 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14684
14685 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14686 (i386-mmx.o): New.
14687 (i386-mmx.c): Likewise.
14688 (i386-mmx-linux.o): Likewise.
14689 (i386-mmx-linux.c): Likewise.
14690
14691 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14692 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14693 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14694 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14695
14696 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14697 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14698 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14699
14700 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14701
14702 * Makefile.in (clean): Updated.
14703 (i386-avx.o): New.
14704 (i386-avx.c): Likewise.
14705 (i386-avx-linux.o): Likewise.
14706 (i386-avx-linux.c): Likewise.
14707 (amd64-avx.o): Likewise.
14708 (amd64-avx.c): Likewise.
14709 (amd64-avx-linux.o): Likewise.
14710 (amd64-avx-linux.c): Likewise.
14711
14712 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14713 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14714 (srv_amd64_regobj): Add amd64-avx.o.
14715 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14716 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14717 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14718 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14719 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14720 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14721 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14722
14723 * i387-fp.c: Include "i386-xstate.h".
14724 (i387_xsave): New.
14725 (i387_cache_to_xsave): Likewise.
14726 (i387_xsave_to_cache): Likewise.
14727 (x86_xcr0): Likewise.
14728
14729 * i387-fp.h (i387_cache_to_xsave): Likewise.
14730 (i387_xsave_to_cache): Likewise.
14731 (x86_xcr0): Likewise.
14732
14733 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14734 * linux-crisv32-low.c (target_regsets): Likewise.
14735 * linux-m68k-low.c (target_regsets): Likewise.
14736 * linux-mips-low.c (target_regsets): Likewise.
14737 * linux-ppc-low.c (target_regsets): Likewise.
14738 * linux-s390-low.c (target_regsets): Likewise.
14739 * linux-sh-low.c (target_regsets): Likewise.
14740 * linux-sparc-low.c (target_regsets): Likewise.
14741 * linux-xtensa-low.c (target_regsets): Likewise.
14742
14743 * linux-low.c: Include <sys/uio.h>.
14744 (regsets_fetch_inferior_registers): Support nt_type.
14745 (regsets_store_inferior_registers): Likewise.
14746 (linux_process_qsupported): New.
14747 (linux_target_ops): Add linux_process_qsupported.
14748
14749 * linux-low.h (regset_info): Add nt_type.
14750 (linux_target_ops): Add process_qsupported.
14751
14752 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14753 and <sys/uio.h>.
14754 (init_registers_i386_avx_linux): New.
14755 (init_registers_amd64_avx_linux): Likewise.
14756 (xmltarget_i386_linux_no_xml): Likewise.
14757 (xmltarget_amd64_linux_no_xml): Likewise.
14758 (PTRACE_GETREGSET): Likewise.
14759 (PTRACE_SETREGSET): Likewise.
14760 (x86_fill_xstateregset): Likewise.
14761 (x86_store_xstateregset): Likewise.
14762 (use_xml): Likewise.
14763 (x86_linux_update_xmltarget): Likewise.
14764 (x86_linux_process_qsupported): Likewise.
14765 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14766 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14767 init_registers_i386_linux here. Call
14768 x86_linux_update_xmltarget.
14769 (the_low_target): Add x86_linux_process_qsupported.
14770
14771 * server.c (handle_query): Call target_process_qsupported.
14772
14773 * target.h (target_ops): Add process_qsupported.
14774 (target_process_qsupported): New.
14775
14776 2010-04-03 Pedro Alves <pedro@codesourcery.com>
14777
14778 * inferiors.c (add_thread): Set last_status kind to
14779 TARGET_WAITKIND_IGNORE.
14780 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14781 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14782 (linux_wait_1): Move `thread' local definition to block that uses
14783 it. Don't NULL initialize `event_child'.
14784 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14785 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14786 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14787
14788 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14789
14790 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14791 an extended waitstatus, or by a watchpoint.
14792 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14793 thread was stepping or has been stopped by a watchpoint.
14794
14795 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14796
14797 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14798 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14799 of another, then delete the previous, and validate all
14800 breakpoints.
14801 (validate_inserted_breakpoint): New.
14802 (delete_disabled_breakpoints): New.
14803 (validate_breakpoints): New.
14804 (check_mem_read): Validate breakpoints before trusting their
14805 shadow. Delete disabled breakpoints.
14806 (check_mem_write): Validate breakpoints before trusting they
14807 should be inserted. Delete disabled breakpoints.
14808 * mem-break.h (validate_breakpoints):
14809 * server.c (handle_query): Validate breakpoints when we see a
14810 qSymbol query.
14811
14812 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14813
14814 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14815 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14816 if we could tell there's a GDB breakpoint at stop_pc.
14817 (need_step_over_p): Don't do a step over if we find a GDB
14818 breakpoint at the resume PC.
14819
14820 * mem-break.c (struct raw_breakpoint): New.
14821 (enum bkpt_type): New type `gdb_breakpoint'.
14822 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14823 fields. New field `raw'.
14824 (find_raw_breakpoint_at): New.
14825 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14826 breakpoint instead.
14827 (set_breakpoint_at): Adjust.
14828 (delete_raw_breakpoint): New.
14829 (release_breakpoint): New.
14830 (delete_breakpoint): Rename to...
14831 (delete_breakpoint_1): ... this. Add proc parameter. Use
14832 release_breakpoint. Return ENOENT.
14833 (delete_breakpoint): Reimplement.
14834 (find_breakpoint_at): Delete.
14835 (find_gdb_breakpoint_at): New.
14836 (delete_breakpoint_at): Delete.
14837 (set_gdb_breakpoint_at): New.
14838 (delete_gdb_breakpoint_at): New.
14839 (gdb_breakpoint_here): New.
14840 (set_reinsert_breakpoint): Use release_breakpoint.
14841 (uninsert_breakpoint): Rename to ...
14842 (uninsert_raw_breakpoint): ... this.
14843 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14844 (reinsert_raw_breakpoint): Change parameter type to
14845 raw_breakpoint.
14846 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14847 instead.
14848 (check_breakpoints): Adjust. Use release_breakpoint.
14849 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14850 (breakpoint_inserted_here): Ditto.
14851 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14852 Don't trust the breakpoint's shadow if it is not inserted.
14853 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14854 (delete_all_breakpoints): Adjust.
14855 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14856 use delete_breakpoint_1.
14857
14858 * mem-break.h (breakpoints_supported): Delete declaration.
14859 (set_gdb_breakpoint_at): Declare.
14860 (gdb_breakpoint_here): Declare.
14861 (delete_breakpoint_at): Delete.
14862 (delete_gdb_breakpoint_at): Declare.
14863
14864 * server.h (struct raw_breakpoint): Forward declare.
14865 (struct process_info): New field `raw_breakpoints'.
14866
14867 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14868 breakpoints.
14869
14870 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14871
14872 * linux-low.c (status_pending_p_callback): Fix comment.
14873 (linux_wait_for_event_1): Move most of the internal breakpoint
14874 handling from here...
14875 (linux_wait_1): ... to here.
14876 (count_events_callback): New.
14877 (select_singlestep_lwp_callback): New.
14878 (select_event_lwp_callback): New.
14879 (cancel_breakpoints_callback): New.
14880 (select_event_lwp): New.
14881 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14882 priority to all LWPs that have had events that should be reported
14883 to the client. Cancel breakpoints when about to reporting the
14884 event to the client, not while stopping lwps. No longer cancel
14885 finished single-steps here.
14886 (cancel_finished_single_step): Delete.
14887 (cancel_finished_single_steps): Delete.
14888
14889 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14890
14891 * mem-break.c (enum bkpt_type): New.
14892 (struct breakpoint): New field `type'.
14893 (set_breakpoint_at): Change return type to struct breakpoint
14894 pointer. Set type to `other_breakpoint' by default.
14895 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14896 in the breakpoint list.
14897 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
14898 (reinsert_breakpoint): Rename to ...
14899 (reinsert_raw_breakpoint): ... this.
14900 (reinsert_breakpoints_at): Adjust.
14901 * mem-break.h (struct breakpoint): Declare.
14902 (set_breakpoint_at): Change return type to struct breakpoint
14903 pointer.
14904
14905 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14906
14907 * server.c (handle_query): Assign, not compare.
14908
14909 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14910
14911 Teach linux gdbserver to step-over-breakpoints.
14912
14913 * linux-low.c (can_hardware_single_step): New.
14914 (supports_breakpoints): New.
14915 (handle_extended_wait): If stopping threads, read the stop pc of
14916 the new cloned LWP.
14917 (get_pc): New.
14918 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
14919 low target doesn't support retrieving the PC.
14920 (add_lwp): Set last_resume_kind to resume_continue.
14921 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
14922 (linux_attach): Don't clear stop_expected. Set the lwp's
14923 last_resume_kind to resume_stop.
14924 (linux_detach_one_lwp): Don't check for removed breakpoints.
14925 (check_removed_breakpoint): Delete.
14926 (status_pending_p): Rename to ...
14927 (status_pending_p_callback): ... this. Don't check for removed
14928 breakpoints. Don't consider threads that are stopped from GDB's
14929 perspective.
14930 (linux_wait_for_lwp): Always read the stop_pc here.
14931 (cancel_breakpoint): New.
14932 (step_over_bkpt): New global.
14933 (linux_wait_for_event_1): Implement stepping over breakpoints.
14934 (gdb_wants_lwp_stopped): New.
14935 (gdb_wants_all_stopped): New.
14936 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
14937 single-step traps here. Store the thread's last reported target
14938 wait status.
14939 (send_sigstop): Don't clear stop_expected. Always set it,
14940 instead.
14941 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14942 (cancel_finished_single_step): New.
14943 (cancel_finished_single_steps): New.
14944 (wait_for_sigstop): Don't cancel finished single-step traps here.
14945 (linux_resume_one_lwp): Don't check for removed breakpoints.
14946 Don't set `step' on non-hardware step archs.
14947 (linux_set_resume_request): Ignore resume_stop requests if already
14948 stopping or stopped. Set the lwp's last_resume_kind.
14949 (resume_status_pending_p): Don't check for removed breakpoints.
14950 (need_step_over_p): New.
14951 (start_step_over): New.
14952 (finish_step_over): New.
14953 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14954 requests. Clear the thread's last reported target waitstatus.
14955 Don't use the `suspended' flag. Don't consider pending breakpoints.
14956 (linux_resume): Start a step-over if necessary.
14957 (proceed_one_lwp): New.
14958 (proceed_all_lwps): New.
14959 (unstop_all_lwps): New.
14960 * linux-low.h (struct lwp_info): Rewrite comment for the
14961 `suspended' flag. Add the `stop_pc' field. Delete the
14962 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14963 Add `'last_resume_kind' and `need_step_over' fields.
14964 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14965 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14966 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14967 (set_raw_breakpoint_at): New.
14968 (set_breakpoint_at): Rewrite to use it.
14969 (reinsert_breakpoint_handler): Delete.
14970 (set_reinsert_breakpoint): New.
14971 (reinsert_breakpoint_by_bp): Delete.
14972 (delete_reinsert_breakpoints): New.
14973 (uninsert_breakpoint): Rewrite.
14974 (uninsert_breakpoints_at): New.
14975 (reinsert_breakpoint): Rewrite.
14976 (reinsert_breakpoints_at): New.
14977 (check_breakpoints): Rewrite.
14978 (breakpoint_here): New.
14979 (breakpoint_inserted_here): New.
14980 (check_mem_read): Adjust.
14981 * mem-break.h (breakpoints_supported, breakpoint_here)
14982 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14983 (reinsert_breakpoint_by_bp): Delete declaration.
14984 (delete_reinsert_breakpoints): Declare.
14985 (reinsert_breakpoint): Delete declaration.
14986 (reinsert_breakpoints_at): Declare.
14987 (uninsert_breakpoint): Delete declaration.
14988 (uninsert_breakpoints_at): Declare.
14989 (check_breakpoints): Adjust prototype.
14990 * server.h: Adjust include order.
14991 (struct thread_info): Declare here. Add a `last_status' field.
14992
14993 2010-03-23 Michael Snyder <msnyder@vmware.com>
14994
14995 * server.c (crc32): New function.
14996 (handle_query): Add handling for 'qCRC:' request.
14997
14998 2010-03-23 Pedro Alves <pedro@codesourcery.com>
14999
15000 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15001 lwp had been stopped by a watchpoint.
15002
15003 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15004
15005 * server.h (internal_error): Declare.
15006 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15007 * utils.c (internal_error): New function.
15008
15009 2010-03-15 Andreas Schwab <schwab@redhat.com>
15010
15011 * configure.srv: Fix typo setting srv_regobj.
15012
15013 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15014
15015 * linux-low.c (fetch_register): Avoid passing a non string literal
15016 format to `error'.
15017 (usr_store_inferior_registers): Ditto.
15018
15019 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15020
15021 * linux-low.c (linux_write_memory): Bail out early if peeking
15022 memory failed.
15023
15024 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15025
15026 * linux-low.h (struct lwp_info): New fields
15027 `stopped_by_watchpoint' and `stopped_data_address'.
15028 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15029 here, and cache them in the lwp object.
15030 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15031 directly.
15032 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15033 field.
15034 (linux_stopped_by_watchpoint): Rewrite.
15035 (linux_stopped_data_address): Rewrite.
15036
15037 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15038
15039 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15040 switching the current inferior, not before.
15041
15042 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15043
15044 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15045 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15046 i386-linux.c and amd64-linux.c.
15047 (reg-i386.o): Removed.
15048 (reg-i386.c): Likewise.
15049 (reg-i386-linux.o): Likewise.
15050 (reg-i386-linux.c): Likewise.
15051 (reg-x86-64.o): Likewise.
15052 (reg-x86-64.c): Likewise.
15053 (reg-x86-64-linux.o): Likewise.
15054 (reg-x86-64-linux.c): Likewise.
15055 (i386.o): New.
15056 (i386.c): Likewise.
15057 (i386-linux.o): Likewise.
15058 (i386-linux.c): Likewise.
15059 (amd64.o): Likewise.
15060 (amd64.c): Likewise.
15061 (amd64-linux.o): Likewise.
15062 (amd64-linux.c): Likewise.
15063
15064 * configure.srv (srv_i386_regobj): New.
15065 (srv_i386_linux_regobj): Likewise.
15066 (srv_amd64_regobj): Likewise.
15067 (srv_amd64_linux_regobj): Likewise.
15068 (srv_i386_32bit_xmlfiles): Likewise.
15069 (srv_i386_64bit_xmlfiles): Likewise.
15070 (srv_i386_xmlfiles): Likewise.
15071 (srv_amd64_xmlfiles): Likewise.
15072 (srv_i386_linux_xmlfiles): Likewise.
15073 (srv_amd64_linux_xmlfiles): Likewise.
15074 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15075 srv_xmlfiles to $srv_i386_xmlfiles.
15076 (i[34567]86-*-mingw32ce*): Likewise.
15077 (i[34567]86-*-mingw*): Likewise.
15078 (i[34567]86-*-nto*): Likewise.
15079 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15080 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15081 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15082 (x86_64-*-linux*): Likewise.
15083
15084 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15085 (init_registers_amd64_linux): New.
15086 (x86_arch_setup): Replace init_registers_x86_64_linux with
15087 init_registers_amd64_linux.
15088
15089 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15090
15091 * configure.ac: Check for libdl. If it is not available link against
15092 static libthread_db.
15093 * configure: Regenerate.
15094
15095 2010-02-22 Pedro Alves <pedro@codesourcery.com>
15096
15097 PR9605
15098
15099 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15100 handing a read watchpoint.
15101 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15102
15103 2010-02-12 Doug Evans <dje@google.com>
15104
15105 * linux-low.c (linux_supports_tracefork_flag): Document.
15106 (linux_look_up_symbols): Add comment.
15107
15108 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15109
15110 * regcache.c (supply_register): Clear regcache if buf is NULL.
15111
15112 2010-02-02 Nicolas Roche <roche@sourceware.org>
15113 Joel Brobecker <brobecker@adacore.com>
15114
15115 * inferiors.c (find_inferior): Add function documentation.
15116 (unloaded_dll): Handle the case where the unloaded dll has not
15117 been previously registered in the dll list.
15118
15119 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15120
15121 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15122 (thumb2_breakpoint): New.
15123 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15124
15125 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15126
15127 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15128 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15129 breakpoints.
15130
15131 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15132
15133 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15134
15135 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15136
15137 * linux-s390-low.c (s390_collect_ptrace_register)
15138 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15139
15140 2010-01-21 Doug Evans <dje@google.com>
15141
15142 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15143 (PTRACE_ARG4_TYPE): New macro.
15144 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15145 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15146 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15147 (usr_store_inferior_registers): Ditto.
15148 (linux_read_memory, linux_write_memory): Ditto.
15149 (linux_test_for_tracefork): Ditto.
15150
15151 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15152 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15153
15154 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15155
15156 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15157 target.
15158
15159 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15160
15161 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15162 prototype to take a regcache. Adjust.
15163
15164 2010-01-20 Pedro Alves <pedro@codesourcery.com>
15165
15166 * regcache.h (struct thread_info): Forward declare.
15167 (struct regcache): New.
15168 (new_register_cache): Adjust prototype.
15169 (get_thread_regcache): Declare.
15170 (free_register_cache): Adjust prototype.
15171 (registers_to_string, registers_from_string): Ditto.
15172 (supply_register, supply_register_by_name, collect_register)
15173 (collect_register_as_string, collect_register_by_name): Ditto.
15174 * regcache.c (struct inferior_regcache_data): Delete.
15175 (get_regcache): Rename to ...
15176 (get_thread_regcache): ... this. Adjust. Switch inferior before
15177 fetching registers.
15178 (regcache_invalidate_one): Adjust.
15179 (regcache_invalidate): Fix prototype.
15180 (new_register_cache): Return the new register cache.
15181 (free_register_cache): Change prototype.
15182 (realloc_register_cache): Adjust.
15183 (registers_to_string): Change prototype to take a regcache. Adjust.
15184 (registers_from_string): Ditto.
15185 (register_data): Ditto.
15186 (supply_register): Ditto.
15187 (supply_register_by_name): Ditto.
15188 (collect_register): Ditto.
15189 (collect_register_as_string): Ditto.
15190 (collect_register_by_name): Ditto.
15191 * server.c (process_serial_event): Adjust.
15192 * linux-low.h (regset_fill_func, regset_store_func): Change
15193 prototype.
15194 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15195 Change prototype.
15196 * linux-low.c (get_stop_pc): Adjust.
15197 (check_removed_breakpoint): Adjust.
15198 (linux_wait_for_event): Adjust.
15199 (linux_resume_one_lwp): Adjust.
15200 (fetch_register): Add regcache parameter. Adjust.
15201 (usr_store_inferior_registers): Ditto.
15202 (regsets_fetch_inferior_registers): Ditto.
15203 (regsets_store_inferior_registers): Ditto.
15204 (linux_fetch_registers, linux_store_registers): Ditto.
15205 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15206 regcache. Adjust.
15207 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15208 Ditto.
15209 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15210 prototype to take a regcache.
15211 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15212 * remote-utils.c (convert_ascii_to_int, outreg)
15213 (prepare_resume_reply): Change prototype to take a regcache.
15214 Adjust.
15215 * target.h (struct target_ops) <fetch_registers, store_registers>:
15216 Change prototype to take a regcache.
15217 (fetch_inferior_registers, store_inferior_registers): Change
15218 prototype to take a regcache. Adjust.
15219 * proc-service.c (ps_lgetregs): Adjust.
15220 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15221 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15222 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15223 take a regcache. Adjust.
15224 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15225 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15226 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15227 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15228 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15229 (cris_cannot_fetch_register):
15230 (cris_breakpoint_at): Change prototype to take a regcache.
15231 Adjust.
15232 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15233 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15234 to take a regcache. Adjust.
15235 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15236 Adjust.
15237 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15238 take a regcache. Adjust.
15239 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15240 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15241 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15242 * linux-mips-low.c (mips_get_pc):
15243 (mips_set_pc): Change prototype to take a regcache. Adjust.
15244 (mips_reinsert_addr): Adjust.
15245 (mips_collect_register): Change prototype to take a regcache.
15246 Adjust.
15247 (mips_supply_register):
15248 (mips_collect_register_32bit, mips_supply_register_32bit)
15249 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15250 (mips_store_fpregset): Ditto.
15251 * linux-ppc-low.c (ppc_supply_ptrace_register)
15252 (ppc_supply_ptrace_register): Ditto.
15253 (parse_spufs_run): Adjust.
15254 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15255 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15256 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15257 take a regcache. Adjust.
15258 * linux-s390-low.c (s390_collect_ptrace_register)
15259 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15260 (s390_set_pc): Change prototype to take a regcache. Adjust.
15261 (s390_arch_setup): Adjust.
15262 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15263 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15264 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15265 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15266 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15267 regcache. Adjust.
15268 (sparc_breakpoint_at): Adjust.
15269 * linux-xtensa-low.c (xtensa_fill_gregset):
15270 (xtensa_store_gregset):
15271 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15272 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15273 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15274 prototype to take a regcache. Adjust.
15275 * win32-arm-low.c (arm_fetch_inferior_register)
15276 (arm_store_inferior_register): Change prototype to take a
15277 regcache. Adjust.
15278 * win32-i386-low.c (i386_fetch_inferior_register)
15279 (i386_store_inferior_register): Change prototype to take a
15280 regcache. Adjust.
15281 * win32-low.c (child_fetch_inferior_registers)
15282 (child_store_inferior_registers): Change prototype to take a
15283 regcache. Adjust.
15284 (win32_wait): Adjust.
15285 (win32_fetch_inferior_registers): Change prototype to take a
15286 regcache. Adjust.
15287 (win32_store_inferior_registers): Adjust.
15288 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15289 store_inferior_register>: Change prototype to take a regcache.
15290
15291 2010-01-20 Doug Evans <dje@google.com>
15292
15293 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15294 #ifdef.
15295 (linux_wait_for_event1, linux_init_signals): Ditto.
15296 (W_STOPCODE): Provide definition if missing.
15297
15298 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15299
15300 * linux-low.c (linux_core_of_thread): New.
15301 (compare_ints, show_process, list_threads): New.
15302 (linux_qxfer_osdata): Report threads and cores.
15303 (linux_target_op): Register linux_core_of_thread.
15304 * remote-utils.c (prepare_resume_reply): Report the core.
15305 (buffer_xml_printf): Support %d specifier.
15306 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15307 New.
15308 (handle_query): Handle qXfer:threads. Announce availability
15309 thereof.
15310 * target.h (struct target_ops): New field core_of_thread.
15311
15312 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15313
15314 * Makefile.in (clean): Remove new generated files.
15315 (reg-s390.o, reg-s390.c): Remove rules.
15316 (reg-s390x.o, reg-s390x.c): Likewise.
15317 (s390-linux32.o, s390-linux32.c): Add rules.
15318 (s390-linux64.o, s390-linux64.c): Likewise.
15319 (s390x-linux64.o, s390x-linux64.c): Likewise.
15320 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15321 * linux-s390-low.c: Include <elf.h>.
15322 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15323 (init_registers_s390): Remove prototype.
15324 (init_registers_s390x): Likewise.
15325 (init_registers_s390_linux32): Add prototype.
15326 (init_registers_s390_linux64): Likewise.
15327 (init_registers_s390x_linux64): Likewise.
15328 (s390_num_regs_3264): New define.
15329 (s390_regmap_3264): New global variable.
15330 (s390_cannot_fetch_register): Remove obsolete check.
15331 (s390_cannot_store_register): Likewise.
15332 (s390_collect_ptrace_register): Handle upper/lower register halves.
15333 (s390_supply_ptrace_register): Likewise.
15334 (s390_fill_gregset): Update to register number changes.
15335 (s390_get_hwcap): New routine.
15336 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15337 Install appropriate regmap and register set.
15338
15339 2010-01-01 Joel Brobecker <brobecker@adacore.com>
15340
15341 * server.c (gdbserver_version): Update copyright year to 2010.
15342 * gdbreplay.c (gdbreplay_version): Likewise.
15343
15344 2009-12-28 Doug Evans <dje@google.com>
15345
15346 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15347 elf/external.h. Include <elf.h> instead but only if necessary.
15348
15349 2009-12-28 Pedro Alves <pedro@codesourcery.com>
15350
15351 * linux-low.c (linux_remove_process): Remove `detaching'
15352 parameter. Don't release/detach from thread_db here.
15353 (linux_kill): Release/detach from thread_db here, ...
15354 (linux_detach): ... and here, before actually detaching.
15355 (linux_wait_1): ... and here, when a process exits.
15356 * thread-db.c (any_thread_of): New.
15357 (thread_db_free): Switch the current inferior to a thread of the
15358 passed in process.
15359
15360 2009-12-21 Doug Evans <dje@google.com>
15361
15362 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15363
15364 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15365 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15366 warning ifndef __NR_tkill. Move setting of errno there too.
15367 Delete unnecessary resetting of errno after syscall.
15368 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15369
15370 * configure.ac: Check for dladdr.
15371 * config.in: Regenerate.
15372 * configure: Regenerate.
15373 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15374 (try_thread_db_load): Update.
15375
15376 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15377
15378 2009-12-18 Doug Evans <dje@google.com>
15379
15380 * event-loop.c: Include unistd.h if it exists.
15381
15382 * linux-low.c (my_waitpid): Move definition away from being in
15383 between linux_tracefork_child/linux_test_for_tracefork.
15384
15385 * gdb_proc_service.h (psaddr_t): Fix type.
15386 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15387 signature to match glibc.
15388
15389 2009-12-16 Doug Evans <dje@google.com>
15390
15391 * linux-low.c (linux_read_memory): Fix argument to read.
15392
15393 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15394
15395 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15396 events, don't leave current_inferior pointing at null.
15397
15398 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15399
15400 * win32-low.c (LOG): Delete.
15401 (OUTMSG): Output to stderr.
15402 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15403 on compile time LOG macro.
15404 (win32_wait): Fix debug output.
15405
15406 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15407
15408 * win32-low.c (win32_add_one_solib): If the dll name is
15409 "ntdll.dll", prepend the system directory to the dll path.
15410
15411 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15412
15413 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15414
15415 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
15416 Vladimir Prus <vladimir@codesourcery.com>
15417
15418 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15419 * configure.ac: Check for __mcoldfire__ and set
15420 gdb_cv_m68k_is_coldfire.
15421 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15422 reg-cf.o and reg-m68k.o.
15423 * configure: Regenerated.
15424
15425 2009-11-16 Pedro Alves <pedro@codesourcery.com>
15426
15427 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15428 Pass it to thread_db_free.
15429 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15430 proper `detaching' argument to linux_remove_process.
15431 * linux-low.h (thread_db_free): Add `detaching' parameter.
15432 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15433 to thread_db_free.
15434 (thread_db_free): Add `detaching' parameter. Only
15435 call td_ta_clear_event if detaching from process.
15436
15437 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15438
15439 * thread-db.c (thread_db_free): Fix typo.
15440
15441 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15442
15443 PR gdb/10838
15444 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15445
15446 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15447
15448 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15449 with an i686 compiler.
15450 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15451 needed.
15452 * configure: Rebuilt.
15453
15454 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15455
15456 PR gdb/10783
15457
15458 * server.c (handle_search_memory_1): Correct read_addr initialization
15459 in loop for searching subsequent chunks.
15460
15461 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15462
15463 * configure.ac: New --with-libthread-db option.
15464 * thread-db.c: Allow direct dependence on libthread_db.
15465 (thread_db_free): Adjust.
15466 * config.in: Regenerate.
15467 * configure: Likewise.
15468
15469 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15470
15471 PR gdb/10757
15472 * thread-db.c (attach_thread): New function.
15473 (maybe_attach_thread): Return success/failure.
15474 (find_new_threads_callback): Adjust.
15475 (thread_db_find_new_threads): Loop until no new threads.
15476
15477 2009-10-13 Pedro Alves <pedro@codesourcery.com>
15478
15479 * proc-service.c (ps_lgetregs): Formatting.
15480
15481 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
15482
15483 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
15484 * configure.ac: Adjust.
15485 * linux-low.h (struct process_info_private): Move members to struct
15486 thread_db.
15487 (thread_db_free, thread_db_handle_monitor_command): New prototype.
15488 * linux-low.c (linux_remove_process): Adjust.
15489 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
15490 * server.c (handle_query): Move code ...
15491 (handle_monitor_command): ... here. New function.
15492 * target.h (struct target_ops): New member.
15493 * thread-db.c (struct thread_db): New.
15494 (libthread_db_search_path): New variable.
15495 (thread_db_create_event, thread_db_enable_reporting)
15496 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
15497 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
15498 (try_thread_db_load_1, dladdr_to_soname): New functions.
15499 (try_thread_db_load, thread_db_load_search): New functions.
15500 (thread_db_init): Search for libthread_db.
15501 (thread_db_free): New function.
15502 (thread_db_handle_monitor_command): Likewise.
15503 * config.in: Regenerate.
15504 * configure: Regenerate.
15505
15506 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
15507
15508 * spu-low.c (spu_kill): Wait for inferior to terminate.
15509 Call clear_inferiors.
15510 (spu_detach): Call clear_inferiors.
15511
15512 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15513
15514 * aclocal.m4: Regenerate.
15515 * config.in: Likewise.
15516 * configure: Likewise.
15517
15518 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15519
15520 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
15521 (parse_spufs_run): New function.
15522 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
15523 (ppc_breakpoint_at): Handle SPU breakpoints.
15524
15525 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15526
15527 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15528 (SPUFS_MAGIC): Define.
15529 (spu_enumerate_spu_ids): New function.
15530 (linux_qxfer_spu): New function.
15531 (linux_target_ops): Install linux_qxfer_spu.
15532
15533 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15534
15535 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15536 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15537 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15538 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15539 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15540 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15541 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15542 (init_registers_powerpc_cell32l): Add prototype.
15543 (init_registers_powerpc_cell64l): Likewise.
15544 (ppc_arch_setup): Detect Cell/B.E. architecture.
15545
15546 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15547
15548 * Makefile.in (datarootdir): New variable.
15549
15550 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15551
15552 * linux-low.c (linux_write_memory): Update debugging output.
15553 * Makefile.in (clean): Add new descriptions.
15554 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15555 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15556 * configure.srv: Add new files for arm*-*-linux*.
15557 * linux-arm-low.c: Add new declarations.
15558 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15559 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15560 (HWCAP_VFPv3D16): New.
15561 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15562 instead of __IWMMXT__.
15563 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15564 (arm_arch_setup): New.
15565 (target_regsets): Remove #ifdef. Add VFP regset.
15566 (the_low_target): Use arm_arch_setup.
15567
15568 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15569
15570 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15571 the main thread again.
15572
15573 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15574
15575 Adding Neutrino gdbserver.
15576 * configure: Regenerated.
15577 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15578 * configure.srv (i[34567]86-*-nto*): New target.
15579 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15580 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15581 (nto_comctrl) [__QNX__]: New function.
15582 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15583
15584 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
15585
15586 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15587 srv_tgtobj.
15588
15589 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15590 Pedro Alves <pedro@codesourcery.com>
15591
15592 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15593 don't support CONTEXT_EXTENDED_REGISTERS.
15594 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15595 (the_low_target): Install them.
15596 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15597 failing with ERROR_PIPE_NOT_CONNECTED.
15598
15599 2009-06-30 Doug Evans <dje@google.com>
15600 Pierre Muller <muller@ics.u-strasbg.fr>
15601
15602 Add h/w watchpoint support to x86-linux, win32-i386.
15603 * Makefile.in (SFILES): Add i386-low.c
15604 (i386_low_h): Define.
15605 (i386-low.o): Add dependencies.
15606 (linux-x86-low.o): Add i386-low.h dependency.
15607 (win32-i386-low.o): Ditto.
15608 * i386-low.c: New file.
15609 * i386-low.h: New file.
15610 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15611 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15612 * linux-low.c (linux_add_process): Initialize arch_private.
15613 (linux_remove_process): Free arch_private.
15614 (add_lwp): Initialize arch_private.
15615 (delete_lwp): Free arch_private.
15616 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15617 provided.
15618 * linux-low.h (process_info_private): New member arch_private.
15619 (lwp_info): New member arch_private.
15620 (linux_target_ops): New members new_process, new_thread,
15621 prepare_to_resume.
15622 (ptid_of): New macro.
15623 * linux-x86-low.c: Include stddef.h, i386-low.h.
15624 (arch_process_info): New struct.
15625 (arch_lwp_info): New struct.
15626 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15627 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15628 (i386_dr_low_get_status): New function.
15629 (x86_insert_point, x86_remove_point): New functions.
15630 (x86_stopped_by_watchpoint): New function.
15631 (x86_stopped_data_address): New function.
15632 (x86_linux_new_process, x86_linux_new_thread): New functions.
15633 (x86_linux_prepare_to_resume): New function.
15634 (the_low_target): Add entries for insert_point, remove_point,
15635 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15636 prepare_to_resume.
15637 * server.c (debug_hw_points): New global.
15638 (monitor_show_help): Document set debug-hw-points.
15639 (handle_query): Process "set debug-hw-points".
15640 * server.h (debug_hw_points): Declare.
15641 (paddress): Declare.
15642 * utils.c (NUMCELLS, CELLSIZE): New macros.
15643 (get_sell, xsnprintf, paddress): New functions.
15644 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15645 remove_point, stopped_by_watchpoint, stopped_data_address.
15646 * win32-i386-low.c: Include i386-low.h.
15647 (debug_reg_state): Replaces dr.
15648 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15649 (i386_dr_low_get_status): New function.
15650 (i386_insert_point, i386_remove_point): New functions.
15651 (i386_stopped_by_watchpoint): New function.
15652 (i386_stopped_data_address): New function.
15653 (i386_initial_stuff): Update.
15654 (get_thread_context,set_thread_context,i386_thread_added): Update.
15655 (the_low_target): Add entries for insert_point,
15656 remove_point, stopped_by_watchpoint, stopped_data_address.
15657 * win32-low.c (win32_insert_watchpoint): New function.
15658 (win32_remove_watchpoint): New function.
15659 (win32_stopped_by_watchpoint): New function.
15660 (win32_stopped_data_address): New function.
15661 (win32_target_ops): Add entries for insert_watchpoint,
15662 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15663 * win32-low.h (win32_target_ops): New members insert_point,
15664 remove_point, stopped_by_watchpoint, stopped_data_address.
15665
15666 2009-06-25 Pedro Alves <pedro@codesourcery.com>
15667
15668 * server.c (process_serial_event): Re-return unsupported, not
15669 error, if the type isn't recognized. Re-allow supporting only
15670 insert or remove packets. Also call require_running for
15671 breakpoints. Add missing break statement to default case. Tidy.
15672 * target.h (struct target_ops): Rename insert_watchpoint to
15673 insert_point, and remove_watchpoint to remove_point.
15674
15675 * linux-low.h (struct linux_target_ops): Likewise.
15676 * linux-low.c (linux_insert_watchpoint): Rename to ...
15677 (linux_insert_point): ... this. Adjust.
15678 (linux_remove_watchpoint): Rename to ...
15679 (linux_remove_point): ... this. Adjust.
15680 (linux_target_ops): Adjust.
15681 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15682 (cris_insert_point): ... this.
15683 (cris_remove_watchpoint): Rename to ...
15684 (cris_remove_point): ... this.
15685 (the_low_target): Adjust.
15686
15687 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15688
15689 * server.c (handle_v_kill): Pass signal_pid to
15690 kill_inferior if multi_process is zero.
15691
15692 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15693
15694 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15695 * target.h (target_ops): Comment for *_watchpoint to make it clear
15696 the functions can get types '0' and '1'.
15697
15698 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15699
15700 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15701 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15702 * regcache.c (get_regcache): Likewise.
15703 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15704 * win32-low.c (child_fetch_inferior_registers): Remove check for
15705 regno 0.
15706
15707 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15708 Pedro Alves <pedro@codesourcery.com>
15709
15710 * target.h (struct target_ops) <supports_multi_process>: New
15711 callback.
15712 (target_supports_multi_process): New.
15713 * server.c (handle_query): Even if GDB reports support, only
15714 enable multi-process if the target also supports it. Report
15715 multi-process support only if the target backend supports it.
15716 * linux-low.c (linux_supports_multi_process): New function.
15717 (linux_target_ops): Install it as target_supports_multi_process
15718 callback.
15719
15720 2009-05-24 Doug Evans <dje@google.com>
15721
15722 Global renaming of find_thread_pid to find_thread_ptid.
15723 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15724 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15725 All callers updated.
15726
15727 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15728 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15729 directly.
15730
15731 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15732 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15733 (linux_resume_one_lwp): Ditto.
15734
15735 2009-05-23 Doug Evans <dje@google.com>
15736
15737 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15738 from struct inferior_list_entry * to struct lwp_info *.
15739 All callers updated.
15740
15741 2009-05-13 Doug Evans <dje@google.com>
15742
15743 * linux-x86-low.c: Don't include assert.h.
15744 (x86_siginfo_fixup): Use fatal, not assert.
15745 (x86_arch_setup): Fix comment.
15746
15747 2009-05-12 Doug Evans <dje@google.com>
15748
15749 Biarch support for i386/amd64 gdbserver.
15750 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15751 Add linux-x86-low.c.
15752 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15753 (linux-x86-low.o): Add.
15754 * linux-x86-64-low.c: Delete.
15755 * linux-i386-low.c: Delete.
15756 * linux-x86-low.c: New file.
15757 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15758 linux-x86-low.o.
15759 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15760 linux-x86-low.o.
15761 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15762 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15763 (linux_child_pid_to_exec_file): New function.
15764 (elf_64_header_p, elf_64_file_p): New functions.
15765 (siginfo_fixup): New function.
15766 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15767 give target a chance to convert layout.
15768 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15769 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15770
15771 2009-05-07 Doug Evans <dje@google.com>
15772
15773 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15774 (regsets_store_inferior_registers): Ditto.
15775
15776 2009-05-06 Pedro Alves <pedro@codesourcery.com>
15777
15778 PR server/10048
15779
15780 * linux-low.c (must_set_ptrace_flags): Delete.
15781 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15782 of the global.
15783 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15784 `lwp->must_set_ptrace_flags' instead.
15785 (linux_wait_for_event_1): Set ptrace options here.
15786 (linux_wait_1): ... not here.
15787
15788 2009-04-30 Doug Evans <dje@google.com>
15789
15790 * inferiors.c (started_inferior_callback): New function.
15791 (attached_inferior_callback): New function.
15792 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15793 * server.c (print_started_pid, print_attached_pid): New functions.
15794 (detach_or_kill_for_exit): New function.
15795 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15796 * server.h (have_started_inferiors_p): Declare.
15797 (have_attached_inferiors_p): Declare.
15798
15799 * inferiors.c (remove_process): Fix memory leak, free process.
15800 * linux-low.c (linux_remove_process): New function.
15801 (linux_kill): Call it instead of remove_process.
15802 (linux_detach, linux_wait_1): Ditto.
15803
15804 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15805
15806 * configure.srv: Add x86 Windows CE target.
15807
15808 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15809
15810 * inferiors.c (get_thread_process): Make global.
15811 * server.h (get_thread_process): Add prototype.
15812 * thread-db.c (find_one_thread): Use get_thread_process
15813 instead of current_process.
15814 (thread_db_get_tls_address): Do not crash if called when
15815 thread layer is not yet initialized.
15816
15817 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15818
15819 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15820 * spu-low.c (current_tid): Rename to ...
15821 (current_ptid): ... this.
15822 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15823 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15824 ptid_get_lwp (current_ptid) instead of current_tid.
15825 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15826 instead of current_tid. Use find_process_pid to verify pid
15827 argument is valid. Pass proper argument to remove_process.
15828 (spu_thread_alive): Compare current_ptid instead of current_tid.
15829 (spu_resume): Likewise.
15830
15831 2009-04-02 Pedro Alves <pedro@codesourcery.com>
15832
15833 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15834 variable.
15835
15836 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15837
15838 Implement the multiprocess extensions, and add linux multiprocess
15839 support.
15840
15841 * server.h (ULONGEST): Declare.
15842 (struct ptid, ptid_t): New.
15843 (minus_one_ptid, null_ptid): Declare.
15844 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15845 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15846 (struct inferior_list_entry): Change `id' type from unsigned from
15847 to ptid_t.
15848 (struct sym_cache, struct breakpoint, struct
15849 process_info_private): Forward declare.
15850 (struct process_info): Declare.
15851 (current_process): Declare.
15852 (all_processes): Declare.
15853 (initialize_inferiors): Declare.
15854 (add_thread): Adjust to use ptid_t.
15855 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15856 (add_process, remove_process, find_thread_pid): Declare.
15857 (find_inferior_id): Adjust to use ptid_t.
15858 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15859 (multi_process): Declare.
15860 (push_event): Adjust to use ptid_t.
15861 (read_ptid, write_ptid): Declare.
15862 (prepare_resume_reply): Adjust to use ptid_t.
15863 (clear_symbol_cache): Declare.
15864 * inferiors.c (all_processes): New.
15865 (null_ptid, minus_one_ptid): New.
15866 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15867 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15868 (add_thread): Change unsigned long to ptid. Remove gdb_id
15869 parameter. Adjust.
15870 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15871 (gdb_id_to_thread): Rename to ...
15872 (find_thread_pid): ... this. Change unsigned long to ptid.
15873 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15874 (loaded_dll, pull_pid_from_list): Adjust.
15875 (add_process, remove_process, find_process_pid)
15876 (get_thread_process, current_process, initialize_inferiors): New.
15877 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15878 (struct target_waitstatus) <related_pid>: Ditto.
15879 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15880 return type to int.
15881 (struct target_ops) <join>: Add `pid' argument.
15882 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15883 (struct target_ops) <wait>: Add `ptid' field. Change return type
15884 to ptid.
15885 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15886 (mywait): Add `ptid' argument. Change return type to ptid_t.
15887 (target_pid_to_str): Declare.
15888 * target.c (set_desired_inferior): Adjust to use ptids.
15889 (mywait): Add new `ptid' argument. Adjust.
15890 (target_pid_to_str): New.
15891 * mem-break.h (free_all_breakpoints): Declare.
15892 * mem-break.c (breakpoints): Delelete.
15893 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15894 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15895 to use per-process breakpoint list.
15896 (free_all_breakpoints): New.
15897 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
15898 (symbol_cache, all_symbols_looked_up): Delete.
15899 (hexchars): New.
15900 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
15901 read_ptid): New.
15902 (prepare_resume_reply): Change ptid argument's type from unsigned
15903 long to ptid_t. Adjust. Implement W;process and X;process.
15904 (free_sym_cache, clear_symbol_cache): New.
15905 (look_up_one_symbol): Adjust to per-process symbol cache. *
15906 * server.c (cont_thread, general_thread, step_thread): Change type
15907 to ptid_t.
15908 (attached): Delete.
15909 (multi_process): New.
15910 (last_ptid): Change type to ptid_t.
15911 (struct vstop_notif) <ptid>: Change type to ptid_t.
15912 (queue_stop_reply, push_event): Change `ptid' argument's type to
15913 ptid_t.
15914 (discard_queued_stop_replies): Add `pid' argument.
15915 (start_inferior): Adjust to use ptids. Adjust to mywait interface
15916 changes. Don't reference the `attached' global.
15917 (attach_inferior): Adjust to mywait interface changes.
15918 (handle_query): Adjust to use ptids. Parse GDB's qSupported
15919 features. Handle and report "multiprocess+". Handle
15920 "qAttached:PID".
15921 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
15922 changes.
15923 (handle_v_kill): New.
15924 (handle_v_stopped): Adjust to use target_pid_to_str.
15925 (handle_v_requests): Allow multiple attaches and runs when
15926 multiprocess extensions are in effect. Handle "vKill".
15927 (myresume): Adjust to use ptids.
15928 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
15929 (handle_status): Adjust to discard_queued_stop_replies interface
15930 change.
15931 (first_thread_of, kill_inferior_callback)
15932 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
15933 (main): Call initialize_inferiors. Adjust to use ptids, killing
15934 and detaching from all inferiors. Handle multiprocess packet
15935 variants.
15936 * linux-low.h: Include gdb_proc_service.h.
15937 (struct process_info_private): New.
15938 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15939 <lwpid_of>: Use ptid_get_lwp.
15940 (get_lwp_thread): Adjust.
15941 (struct lwp_info): Add `dead' member.
15942 (find_lwp_pid): Declare.
15943 * linux-low.c (thread_db_active): Delete.
15944 (new_inferior): Adjust comment.
15945 (inferior_pid): Delete.
15946 (linux_add_process): New.
15947 (handle_extended_wait): Adjust.
15948 (add_lwp): Change unsigned long to ptid.
15949 (linux_create_inferior): Add process to processes table. Adjust
15950 to use ptids. Don't set new_inferior here.
15951 (linux_attach_lwp): Rename to ...
15952 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15953 it. Adjust to use ptids.
15954 (linux_attach_lwp): New.
15955 (linux_attach): Add process to processes table. Don't set
15956 new_inferior here.
15957 (struct counter): New.
15958 (second_thread_of_pid_p, last_thread_of_process_p): New.
15959 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15960 multiple processes.
15961 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15962 processes. Remove process from process table.
15963 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15964 to multiple processes.
15965 (any_thread_of): New.
15966 (linux_detach): Add `pid' argument, and handle it. Remove process
15967 from processes table.
15968 (linux_join): Add `pid' argument. Handle it.
15969 (linux_thread_alive): Change unsighed long argument to ptid_t.
15970 Consider dead lwps as not being alive.
15971 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15972 threads we're not interested in.
15973 (same_lwp, find_lwp_pid): New.
15974 (linux_wait_for_lwp): Change `pid' argument's type from int to
15975 ptid_t. Adjust.
15976 (linux_wait_for_event): Rename to ...
15977 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15978 from int to ptid_t. Adjust.
15979 (linux_wait_for_event): New.
15980 (linux_wait_1): Add `ptid' argument. Change return type to
15981 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15982 that exit from the process table.
15983 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15984 Adjust.
15985 (mark_lwp_dead): New.
15986 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15987 stopping all threads, mark its main lwp as dead.
15988 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15989 ptids.
15990 (fetch_register, usr_store_inferior_registers)
15991 (regsets_fetch_inferior_registers)
15992 (regsets_store_inferior_registers, linux_read_memory)
15993 (linux_write_memory): Inline `inferior_pid'.
15994 (linux_look_up_symbols): Adjust to use per-process
15995 `thread_db_active'.
15996 (linux_request_interrupt): Adjust to use ptids.
15997 (linux_read_auxv): Inline `inferior_pid'.
15998 (initialize_low): Don't reference thread_db_active.
15999 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16000 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16001 (ps_getpid): Return the pid of the current inferior.
16002 * thread-db.c (proc_handle, thread_agent): Delete.
16003 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16004 per-process data.
16005 (find_one_thread): Change argument type to ptid_t. Adjust to
16006 per-process data.
16007 (maybe_attach_thread): Adjust to per-process data and ptids.
16008 (thread_db_find_new_threads): Ditto.
16009 (thread_db_init): Ditto.
16010 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16011 processes table. Adjust to use ptids.
16012 (spu_kill, spu_detach): Adjust interface. Remove process from
16013 processes table.
16014 (spu_join, spu_thread_alive): Adjust interface.
16015 (spu_wait): Adjust interface. Remove process from processes
16016 table. Adjust to use ptids.
16017 * win32-low.c (current_inferior_tid): Delete.
16018 (current_inferior_ptid): New.
16019 (debug_event_ptid): New.
16020 (thread_rec): Take a ptid. Adjust.
16021 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16022 (child_delete_thread): Ditto.
16023 (do_initial_child_stuff): Add `attached' argument. Add process to
16024 processes table.
16025 (child_fetch_inferior_registers, child_store_inferior_registers):
16026 Adjust.
16027 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16028 (win32_attach): Pass 1 to do_initial_child_stuff.
16029 (win32_kill): Adjust interface. Remove process from processes
16030 table.
16031 (win32_detach): Ditto.
16032 (win32_join): Adjust interface.
16033 (win32_thread_alive): Take a ptid.
16034 (win32_resume): Adjust to use ptids.
16035 (get_child_debug_event): Ditto.
16036 (win32_wait): Adjust interface. Remove exiting process from
16037 processes table.
16038
16039 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16040
16041 Non-stop mode support.
16042
16043 * server.h (non_stop): Declare.
16044 (gdb_client_data, handler_func): Declare.
16045 (delete_file_handler, add_file_handler, start_event_loop):
16046 Declare.
16047 (handle_serial_event, handle_target_event, push_event)
16048 (putpkt_notif): Declare.
16049 * target.h (enum resume_kind): New.
16050 (struct thread_resume): Replace `step' field by `kind' field.
16051 (TARGET_WNOHANG): Define.
16052 (struct target_ops) <wait>: Add `options' argument.
16053 <supports_non_stop, async, start_non_stop>: New fields.
16054 (target_supports_non_stop, target_async): New.
16055 (start_non_stop): Declare.
16056 (mywait): Add `options' argument.
16057 * target.c (mywait): Add `options' argument. Print child exit
16058 notifications here.
16059 (start_non_stop): New.
16060 * server.c (non_stop, own_buf, mem_buf): New globals.
16061 (struct vstop_notif): New.
16062 (notif_queue): New global.
16063 (queue_stop_reply, push_event, discard_queued_stop_replies)
16064 (send_next_stop_reply): New.
16065 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16066 interface changes.
16067 (attach_inferior): In non-stop mode, don't wait for the target
16068 here.
16069 (handle_general_set): Handle QNonStop.
16070 (handle_query): When handling qC, return the current general
16071 thread, instead of the first thread of the list.
16072 (handle_query): If the backend supports non-stop mode, include
16073 QNonStop+ in the qSupported query response.
16074 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16075 and non-stop mode.
16076 (handle_v_attach, handle_v_run): Handle non-stop mode.
16077 (handle_v_stopped): New.
16078 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16079 (myresume): Adjust to use resume_kind. Handle non-stop.
16080 (queue_stop_reply_callback): New.
16081 (handle_status): Handle non-stop mode.
16082 (main): Clear non_stop flag on reconnection. Use the event-loop.
16083 Refactor serial protocol handling from here ...
16084 (process_serial_event): ... to this new function. When GDB
16085 selects any thread, select one here. In non-stop mode, wait until
16086 GDB acks all pending events before exiting.
16087 (handle_serial_event, handle_target_event): New.
16088 * remote-utils.c (remote_open): Install remote_desc in the event
16089 loop.
16090 (remote_close): Remove remote_desc from the event loop.
16091 (putpkt_binary): Rename to...
16092 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16093 (putpkt_binary): New as wrapper around putpkt_binary_1.
16094 (putpkt_notif): New.
16095 (prepare_resume_reply): In non-stop mode, don't change the
16096 general_thread.
16097 * event-loop.c: New.
16098 * Makefile.in (OBJ): Add event-loop.o.
16099 (event-loop.o): New rule.
16100
16101 * linux-low.h (pid_of): Moved here.
16102 (lwpid_of): New.
16103 (get_lwp_thread): Use lwpid_of.
16104 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16105 * linux-low.c (pid_of): Delete.
16106 (inferior_pid): Use lwpid_of.
16107 (linux_event_pipe): New.
16108 (target_is_async_p): New.
16109 (delete_lwp): New.
16110 (handle_extended_wait): Use lwpid_of.
16111 (add_lwp): Don't set lwpid field.
16112 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16113 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16114 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16115 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16116 first. Adjust to linux_wait_for_event interface changes. Use
16117 lwpid_of.
16118 (linux_detach): Don't delete the main lwp here.
16119 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16120 (status_pending_p): Don't consider explicitly suspended lwps.
16121 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16122 pointer. Add OPTIONS argument. Change return type to int. Use
16123 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16124 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16125 pointer. Add status pointer argument. Return a pid instead of a
16126 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16127 changes. In non-stop mode, don't switch to a random thread.
16128 (linux_wait): Rename to...
16129 (linux_wait_1): ... this. Add target_options argument, and handle
16130 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16131 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16132 clean exit and signal exit code. Don't stop all threads in
16133 non-stop mode. In all-stop mode, only stop all threads when
16134 reporting a stop to GDB. Handle explicit thread stop requests.
16135 (async_file_flush, async_file_mark): New.
16136 (linux_wait): New.
16137 (send_sigstop): Use lwpid_of.
16138 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16139 interface changes. In non-stop mode, don't switch to a random
16140 thread.
16141 (linux_resume_one_lwp): Use lwpid_of.
16142 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16143 (linux_resume_one_thread): ... this. Handle resume_stop. In
16144 non-stop mode, don't look for pending flag in all threads.
16145 (resume_status_pending_p): Don't consider explicitly suspended
16146 threads.
16147 (my_waitpid): Reimplement. Emulate __WALL.
16148 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16149 Use lwpid_of.
16150 (sigchld_handler, linux_supports_non_stop, linux_async)
16151 (linux_start_non_stop): New.
16152 (linux_target_ops): Register linux_supports_non_stop, linux_async
16153 and linux_start_non_stop.
16154 (initialize_low): Install SIGCHLD handler.
16155 * thread-db.c (thread_db_create_event, find_one_thread)
16156 (thread_db_get_tls_address): Use lwpid_of.
16157 * win32-low.c (win32_detach): Adjust to use resume_kind.
16158 (win32_wait): Add `options' argument.
16159 * spu-low.c (spu_resume): Adjust to use resume_kind.
16160 (spu_wait): Add `options' argument.
16161
16162 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16163
16164 Decouple target code from remote protocol.
16165
16166 * target.h (enum target_waitkind): New.
16167 (struct target_waitstatus): New.
16168 (struct target_ops) <wait>: Return an unsigned long. Take a
16169 target_waitstatus pointer instead of a char pointer.
16170 (mywait): Likewise.
16171 * target.c (mywait): Change prototype to return an unsigned long.
16172 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16173 * server.h (thread_from_wait, old_thread_from_wait): Delete
16174 declarations.
16175 (prepare_resume_reply): Change prototype to take a
16176 target_waitstatus.
16177 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16178 (last_status, last_ptid): New.
16179 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16180 pid instead of a signal.
16181 (attach_inferior): Remove "status" and "signal" parameters.
16182 Adjust.
16183 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16184 not as an address.
16185 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16186 (handle_v_requests, myresume): Remove "status" and "signal"
16187 parameters. Adjust.
16188 (handle_status): New.
16189 (main): Delete local `status'. Adjust.
16190 * remote-utils.c: Include target.h.
16191 (prepare_resume_reply): Change prototype to take a
16192 target_waitstatus. Adjust.
16193
16194 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16195 interface.
16196 * spu-low.c (spu_wait): Adjust.
16197 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16198 Delete.
16199 (win32_wait): Adjust.
16200
16201 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16202
16203 * target.h (struct thread_resume): Delete leave_stopped member.
16204 (struct target_ops): Add a `n' argument to the `resume' callback.
16205 * server.c (start_inferior): Adjust.
16206 (handle_v_cont, myresume): Adjust.
16207 * linux-low.c (check_removed_breakpoint): Adjust to resume
16208 interface change, and to removed leave_stopped field.
16209 (resume_ptr): Delete.
16210 (struct thread_resume_array): New.
16211 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16212 resume interface change.
16213 (linux_continue_one_thread, linux_queue_one_thread)
16214 (resume_status_pending_p): Check if the resume field is NULL
16215 instead of checking the leave_stopped member.
16216 (linux_resume): Adjust to the target resume interface change.
16217 * spu-low.c (spu_resume): Adjust to the target resume interface
16218 change.
16219 * win32-low.c (win32_detach, win32_resume): Ditto.
16220
16221 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16222
16223 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16224 flag.
16225 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16226 pending.
16227 (linux_continue_one_thread): Only preserve the stepping flag if
16228 there's a pending breakpoint.
16229
16230 2009-03-31 Pedro Alves <pedro@codesourcery.com>
16231
16232 * server.c (main): After the inferior having exited, call
16233 remote_close before exiting gdbserver.
16234
16235 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16236
16237 Fix size of FPSCR in Power 7 processors.
16238 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16239 (PPC_FEATURE_HAS_DFP): New #define.
16240 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16241 size of the FPSCR.
16242
16243 2009-03-23 Pedro Alves <pedro@codesourcery.com>
16244
16245 * server.c (handle_query) Whitespace and formatting.
16246
16247 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16248
16249 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16250 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16251 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16252 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16253 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16254 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16255 Makefile.in, configure.ac: Fix whitespace throughout.
16256 * configure: Regenerate.
16257
16258 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16259
16260 * inferiors.c (find_inferior): Make it safe for the callback
16261 function to delete the currently iterated inferior.
16262
16263 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16264
16265 * Makefile.in (linuw_low_h): Move higher.
16266 (thread-db.o): Depend on $(linux_low_h).
16267
16268 2009-03-17 Pedro Alves <pedro@codesourcery.com>
16269
16270 Rename "process" to "lwp" throughout.
16271
16272 * linux-low.c (all_processes): Rename to...
16273 (all_lwps): ... this.
16274 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16275 (add_process): Rename to ...
16276 (add_lwp): ... this. Adjust.
16277 (linux_create_inferior): Adjust.
16278 (linux_attach_lwp): Adjust.
16279 (linux_attach): Adjust.
16280 (linux_kill_one_process): Rename to ...
16281 (linux_kill_one_lwp): ... this. Adjust.
16282 (linux_kill): Adjust.
16283 (linux_detach_one_process): Rename to ...
16284 (linux_detach_one_lwp): ... this. Adjust.
16285 (linux_detach): Adjust.
16286 (check_removed_breakpoint): Adjust.
16287 (status_pending_p): Adjust.
16288 (linux_wait_for_process): Rename to ...
16289 (linux_wait_for_lwp): ... this. Adjust.
16290 (linux_wait_for_event): Adjust.
16291 (send_sigstop): Adjust.
16292 (wait_for_sigstop): Adjust.
16293 (stop_all_processes): Rename to ...
16294 (stop_all_lwps): ... this.
16295 (linux_resume_one_process): Rename to ...
16296 (linux_resume_one_lwp): ... this. Adjust.
16297 (linux_set_resume_request, linux_continue_one_thread)
16298 (linux_queue_one_thread, resume_status_pending_p)
16299 (usr_store_inferior_registers, regsets_store_inferior_registers)
16300 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16301 Adjust.
16302 * linux-low.h (get_process): Rename to ...
16303 (get_lwp): ... this. Adjust.
16304 (get_thread_process): Rename to ...
16305 (get_thread_lwp): ... this. Adjust.
16306 (get_process_thread): Rename to ...
16307 (get_lwp_thread): ... this. Adjust.
16308 (struct process_info): Rename to ...
16309 (struct lwp_info): ... this.
16310 (all_processes): Rename to ...
16311 (all_lwps): ... this.
16312 * proc-service.c (ps_lgetregs): Adjust.
16313 * thread-db.c (thread_db_create_event, find_one_thread)
16314 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16315
16316 2009-03-14 Pedro Alves <pedro@codesourcery.com>
16317
16318 * server.c (handle_query): Handle "qAttached".
16319
16320 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16321
16322 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16323 GPLv3, update license URL.
16324
16325 2009-03-01 Doug Evans <dje@google.com>
16326
16327 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
16328 (server_h): Add gdb_signals.h.
16329 (signals.o): Update.
16330 * server.h (target_signal_from_host,target_signal_to_host_p)
16331 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16332
16333 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16334
16335 * remote-utils.c (getpkt): Also generate remote-debug
16336 information if noack_mode is set.
16337
16338 2009-02-06 Pedro Alves <pedro@codesourcery.com>
16339
16340 * server.c (handle_query): Report qXfer:siginfo:read and
16341 qXfer:siginfo:write as supported and handle them.
16342 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16343 * linux-low.c (linux_xfer_siginfo): New.
16344 (linux_target_ops): Set it.
16345
16346 2009-01-26 Pedro Alves <pedro@codesourcery.com>
16347
16348 * server.c (gdbserver_usage): Mention --remote-debug.
16349 (main): Accept '--remote-debug' switch.
16350
16351 2009-01-18 Doug Evans <dje@google.com>
16352
16353 * regcache.c (new_register_cache): No need to check result of xcalloc.
16354 * server.c (handle_search_memory): Back out calls to xmalloc,
16355 result is checked and error is returned to user upon failure.
16356 (handle_query): Ditto. Add more checks for result of malloc.
16357 (handle_v_cont): Check result of malloc, report error back to
16358 user upon failure.
16359 (handle_v_run): Ditto. Call freeargv.
16360 * server.h (freeargv): Declare.
16361 * utils.c (freeargv): New fn.
16362
16363 2009-01-15 Doug Evans <dje@google.com>
16364
16365 * gdbreplay.c (perror_with_name): Make arg const char *.
16366 * server.h (target_signal_to_name): Make return type const char *.
16367 * thread-db.c (thread_db_err_str): Make return type const char *.
16368 * utils.c (perror_with_name): Make arg const char *.
16369
16370 2009-01-14 Pedro Alves <pedro@codesourcery.com>
16371
16372 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16373 when handling a EXIT_PROCESS_DEBUG_EVENT.
16374
16375 2009-01-06 Joel Brobecker <brobecker@adacore.com>
16376
16377 * gdbreplay.c (gdbreplay_version): Update copyright year.
16378 * server.c (gdbserver_version): Likewise.
16379
16380 2009-01-05 Doug Evans <dje@google.com>
16381
16382 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
16383 (handle_extended_wait): Improve comment.
16384
16385 2008-12-13 Doug Evans <dje@google.com>
16386
16387 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16388 * server.h (ATTR_MALLOC): New macro.
16389 (xmalloc,xcalloc,xstrdup): Declare.
16390 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16391 * inferiors.c: Ditto.
16392 * linux-low.c: Ditto.
16393 * mem-break.c: Ditto.
16394 * regcache.c: Ditto.
16395 * remote-utils.c: Ditto.
16396 * server.c: Ditto.
16397 * target.c: Ditto.
16398 * win32-low.c: Ditto.
16399
16400 2008-12-12 Doug Evans <dje@google.com>
16401
16402 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16403 in debugging printf.
16404
16405 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16406
16407 2008-12-09 Doug Evans <dje@google.com>
16408
16409 * linux-low.h (struct process_info): Delete member tid, unused.
16410 * thread-db.c (find_one_thread): Update.
16411 (maybe_attach_thread): Update.
16412
16413 2008-12-02 Pedro Alves <pedro@codesourcery.com>
16414
16415 * target.h (struct target_ops): Add qxfer_osdata member.
16416 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16417 and dirent.h.
16418 (linux_qxfer_osdata): New functions.
16419 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16420 callback.
16421 * server.c (handle_query): Handle "qXfer:osdata:read:".
16422 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16423 (buffer_xml_printf): New functions.
16424 * server.h (struct buffer): New.
16425 (buffer_grow_str, buffer_grow_str0): New macros.
16426 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16427 (buffer_xml_printf): Declare.
16428
16429 2008-11-24 Doug Evans <dje@google.com>
16430
16431 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16432
16433 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16434
16435 * server.c (handle_v_run): Always use the supplied argument list.
16436
16437 2008-11-19 Bob Wilson <bob.wilson@acm.org>
16438
16439 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16440 (xtensa_regmap_table): Add entry for scompare1.
16441
16442 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16443
16444 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16445 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16446 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16447 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16448 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16449 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16450 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16451 XML target descriptions.
16452 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16453 when inferior is running on an ISA 2.05 or later processor. Add
16454 special case to return offset for full 64-bit slot of FPSCR when
16455 in 32-bits.
16456
16457 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16458
16459 * Makefile.in (SFILES, clean): Added sparc64 files.
16460 (reg-sparc64.o, reg-sparc64.c): New.
16461 * configure.srv (sparc*-*-linux*): New configuration.
16462 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16463 syscall arguments for SPARC.
16464 (regsets_store_inferior_registers): Likewise.
16465 * linux-sparc-low.c: New file.
16466
16467 2008-10-21 Doug Evans <dje@google.com>
16468
16469 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16470 (READLINE_DIR,READLINE_DEP): Delete.
16471 (INTERNAL_CFLAGS): Update.
16472 (LINTFLAGS): Update.
16473
16474 2008-10-10 Pedro Alves <pedro@codesourcery.com>
16475
16476 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16477 whole argv from the last run, not just argv[0].
16478
16479 2008-09-08 Pedro Alves <pedro@codesourcery.com>
16480
16481 * regcache.c (new_register_cache): Return NULL if the register
16482 cache size isn't known yet.
16483 (free_register_cache): Avoid dereferencing a NULL regcache.
16484
16485 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16486
16487 * configure.srv: Merge MIPS and MIPS64.
16488
16489 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
16490
16491 * Makefile.in (uninstall): Apply $(EXEEXT) too.
16492
16493 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
16494
16495 * Makefile.in: Add required vsx dependencies.
16496
16497 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
16498 Declare init_registers_powerpc_vsx32l.
16499 Declare init_registers_powerpc_vsx64l.
16500 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
16501 (ppc_arch_setup): Check for VSX in hwcap.
16502 (ppc_fill_vsxregset): New function.
16503 (ppc_store_vsxregset): New function.
16504 Add new VSX entry in regset_info target_regsets.
16505
16506 * configure.srv: Add new VSX dependencies.
16507
16508 2008-08-12 Pedro Alves <pedro@codesourcery.com>
16509
16510 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
16511 (remote_open): Set or clear transport_is_reliable.
16512 (putpkt_binary): Don't expect acks in noack mode.
16513 (getpkt): Don't send ack/nac in noack mode.
16514 * server.c (handle_general_set): Handle QStartNoAckMode.
16515 (handle_query): If connected by tcp pass QStartNoAckMode+ in
16516 qSupported.
16517 (main): Reset noack_mode on every connection.
16518 * server.h (noack_mode): Declare.
16519
16520 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16521
16522 * Makefile.in (GDBREPLAY_OBS): New variable.
16523 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
16524
16525 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16526 Daniel Jacobowitz <dan@codesourcery.com>
16527
16528 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16529 (usr_store_inferior_registers): Likewise.
16530 (regsets_store_inferior_registers): Likewise.
16531
16532 2008-07-31 Rolf Jansen <rj@surtec.com>
16533 Pedro Alves <pedro@codesourcery.com>
16534
16535 * configure.ac: Check for memmem declaration.
16536 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16537 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16538 (disable_packet_qfThreadInfo): Unconditionally compile.
16539 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16540 * configure, config.in: Regenerate.
16541
16542 2008-07-28 Doug Kwan <dougkwan@google.com>
16543
16544 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16545 (linux_write_memory): Remove declaration of errno.
16546
16547 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16548
16549 * linux-low.c (handle_extended_wait): Do not use "status"
16550 variable uninitialized.
16551
16552 2008-07-07 Pedro Alves <pedro@codesourcery.com>
16553
16554 * server.c (handle_v_attach): Inhibit reporting dll changes.
16555
16556 2008-06-27 Pedro Alves <pedro@codesourcery.com>
16557
16558 * remote-utils.c (prepare_resume_reply): If requested, don't
16559 output "thread:TID" in the T stop reply.
16560
16561 * server.c (disable_packet_vCont, disable_packet_Tthread)
16562 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16563 (handle_query): If requested, disable support for qC, qfThreadInfo
16564 and qsThreadInfo.
16565 (handle_v_requests): If requested, disable support for vCont.
16566 (gdbserver_show_disableable): New.
16567 (main): Handle --disable-packet and --disable-packet=LIST.
16568
16569 * server.h (disable_packet_vCont, disable_packet_Tthread)
16570 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16571
16572 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16573
16574 * server.c (gdbserver_usage): Mention --version.
16575
16576 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16577
16578 * Makefile.in (gdbreplay.o): New rule.
16579
16580 2008-06-06 Joseph Myers <joseph@codesourcery.com>
16581
16582 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16583 message, not gdbserver.
16584
16585 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
16586 Nathan Sidwell <nathan@codesourcery.com>
16587 Joseph Myers <joseph@codesourcery.com>
16588
16589 * acinclude.m4: Include ../../config/acx.m4.
16590 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16591 * configure, config.in: Regenerate.
16592 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16593 * server.c (gdbserver_version): Print PKGVERSION.
16594 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16595 (main): Adjust gdbserver_usage calls.
16596 * gdbreplay.c (version, host_name): Add declarations.
16597 (gdbreplay_version, gdbreplay_usage): New.
16598 (main): Accept --version and --help options.
16599
16600 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16601
16602 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16603 (arm_breakpoint_at): Handle Thumb.
16604 (the_low_target): Add comment.
16605
16606 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16607
16608 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16609
16610 2008-05-09 Doug Evans <dje@google.com>
16611
16612 * server.h (decode_search_memory_packet): Declare.
16613 * remote-utils.c (decode_search_memory_packet): New fn.
16614 * server.c (handle_search_memory_1): New fn.
16615 (handle_search_memory): New fn.
16616 (handle_query): Process qSearch:memory packets.
16617
16618 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16619
16620 * regcache.c (registers_length): Remove.
16621 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16622 full register packet.
16623 * regcache.h (registers_length): Remove prototype.
16624 * server.h (PBUFSIZ): Define to 16384.
16625
16626 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16627
16628 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16629 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16630 powerpc-64l.o, and powerpc-altivec64l.o.
16631 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16632 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16633 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16634 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16635 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16636 to srv_xmlfiles.
16637
16638 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16639 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16640 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16641 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16642 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16643 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16644 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16645 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16646 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16647 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16648 (clean): Update.
16649
16650 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16651 (init_registers_powerpc_32l): ... this new prototype.
16652 (init_registers_powerpc_32): Remove, replace by ...
16653 (init_registers_powerpc_altivec32l): ... this new prototype.
16654 (init_registers_powerpc_e500): Remove, replace by ...
16655 (init_registers_powerpc_e500l): ... this new prototype.
16656 (init_registers_ppc64): Remove, replace by ...
16657 (init_registers_powerpc_64l): ... this new prototype.
16658 (init_registers_powerpc_64): Remove, replace by ...
16659 (init_registers_powerpc_altivec64l): ... this new prototype.
16660 (ppc_num_regs): Set to 73.
16661 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16662 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16663 (ppc_cannot_store_register): Handle orig_r3 and trap.
16664 (ppc_arch_setup): Update init_registers_... calls.
16665 (ppc_fill_gregset): Handle orig_r3 and trap.
16666
16667 * inferiors.c (clear_inferiors): Reset current_inferior.
16668
16669 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
16670
16671 * acinclude.m4: Add override.m4.
16672 * configure: Regenerate.
16673
16674 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16675
16676 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16677 initial call to init_register_ppc64.
16678
16679 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16680
16681 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16682 single powerpc*-*-linux* case.
16683 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16684
16685 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16686
16687 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
16688 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
16689 from reg_xmlfiles.
16690 * linux-ppc-low.c: Include <elf.h>.
16691 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16692 (ppc_hwcap): New global variable.
16693 (ppc_regmap): Remove __SPE__ #ifdef sections.
16694 (ppc_regmap_e500): New global variable.
16695 (ppc_cannot_store_register): Update __SPE__ special case.
16696 (ppc_get_hwcap): New function.
16697 (ppc_arch_setup): Use it to determine whether inferior supports
16698 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16699 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16700 Do not access registers if target does not support AltiVec.
16701 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16702 Do not access registers if target does not support SPE.
16703 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16704
16705 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16706
16707 * linux-low.c (disabled_regsets, num_regsets): New.
16708 (use_regsets_p): Delete.
16709 (linux_wait_for_process): Clear disabled_regsets.
16710 (regsets_fetch_inferior_registers): Check and set it.
16711 (regsets_store_inferior_registers): Likewise.
16712 (linux_fetch_registers, linux_store_registers): Do not use
16713 use_regsets_p.
16714 (initialize_low): Allocate disabled_regsets.
16715
16716 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16717
16718 * Makefile.in (LIBOBJS): New.
16719 (OBS): Use LIBOBJS.
16720 (memmem.o): New rule.
16721 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16722 * configure: Regenerated.
16723
16724 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16725
16726 * server.c (handle_query): Never return "unsupported" for
16727 qXfer:features:read queries.
16728
16729 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16730
16731 * server.c (get_features_xml): Fix inverted condition.
16732 (handle_query): Always support qXfer:feature:read.
16733
16734 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16735
16736 * server.c (wrapper_argv): New.
16737 (start_inferior): Handle wrapper_argv. If set, expect an extra
16738 trap.
16739 (gdbserver_usage): Document --wrapper.
16740 (main): Parse --wrapper.
16741
16742 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16743
16744 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16745 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16746 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16747 (ppc_set_pc): Likewise.
16748 (ppc_arch_setup): New function.
16749 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16750 of collect_register.
16751 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
16752
16753 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16754
16755 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16756 instead of linux-ppc64-low.o.
16757 * linux-ppc64-low.c: Remove file.
16758 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16759 (linux-ppc64-low.o): Remove rule.
16760
16761 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16762 (init_registers_powerpc_64): Likewise.
16763 (ppc_regmap): Conditionally define depending on __powerpc64__.
16764 (ppc_cannot_store_register): Do not special-case "fpscr" when
16765 compiled on __powerpc64__.
16766 (ppc_collect_ptrace_register): New function.
16767 (ppc_supply_ptrace_register): New function.
16768 (ppc_breakpoint): Change type to "unsigned int".
16769 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16770 (the_low_target): Conditionally provide initializers for the
16771 arch_setup member depending on __powerpc64__. Install
16772 collect_ptrace_register and supply_ptrace_register members.
16773
16774 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16775
16776 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16777 * server.c (gdbserver_xmltarget): Define.
16778 (get_features_xml): Use it to replace "target.xml" and arch_string.
16779
16780 * configure.srv: Remove srv_xmltarget. Add XML files that were
16781 mentioned there to srv_xmlfiles instead. Remove conditional tests
16782 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16783 srv_xmlfiles and srv_regobj to include all possible choices.
16784 * configure.ac (srv_xmltarget): Remove.
16785 (srv_xmlfiles): Do not add "target.xml".
16786 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16787 checks for supplementary target information.
16788 * configure: Regenerate.
16789 * Makefile.in (XML_TARGET): Remove.
16790 (target.xml): Remove rule.
16791 (clean): Do not clean up target.xml.
16792 (.PRECIOUS): Do not mention target.xml.
16793
16794 * target.h (struct target_ops): Remove arch_string member.
16795 * linux-low.c (linux_arch_string): Remove.
16796 (linux_target_ops): Remove arch_string initializer.
16797 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16798 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16799 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16800 * spu-low.c (spu_arch_string): Remove.
16801 (spu_target_ops): Remove arch_string initializer.
16802 * win32-low.c (win32_arch_string): Remove.
16803 (win32_target_ops): Remove arch_string initializer.
16804 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16805 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16806 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16807
16808 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16809
16810 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16811 by collect_ptrace_register and supply_ptrace_register hooks.
16812 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16813 instead of checking for the_low_target.left_pad_xfer.
16814 (usr_store_inferior_registers): Use collect_ptrace_register callback
16815 instead of checking for the_low_target.left_pad_xfer.
16816
16817 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16818 (s390_supply_ptrace_register): Likewise.
16819 (s390_fill_gregset): Call s390_collect_ptrace_register.
16820 (the_low_target): Update.
16821
16822 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16823 (ppc_supply_ptrace_register): Likewise.
16824 (the_low_target): Update.
16825
16826 * linux-i386-low.c (the_low_target): Update.
16827 * linux-x86-64-low.c (the_low_target): Update.
16828
16829 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16830
16831 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16832 reg-s390.o and reg-s390x.o.
16833
16834 * linux-low.c (new_inferior): New global variable.
16835 (linux_create_inferior, linux_attach): Set it.
16836 (linux_wait_for_process): Call the_low_target.arch_setup after the
16837 target has stopped for the first time.
16838 (initialize_low): Do not call the_low_target.arch_setup.
16839
16840 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16841 (s390_set_pc): Likewise.
16842 (s390_arch_setup): New function.
16843 (the_low_target): Use s390_arch_setup as arch_setup routine.
16844
16845 * regcache.c (realloc_register_cache): New function.
16846 (set_register_cache): Call it for each existing regcache.
16847
16848 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16849
16850 * server.h (init_registers): Remove prototype.
16851
16852 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16853 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16854 instead of init_registers ().
16855 * linux-arm-low.c (init_registers_arm): Add prototype.
16856 (init_registers_arm_with_iwmmxt): Likewise.
16857 (the_low_target): Add initializer for arch_setup field.
16858 * linux-cris-low.c (init_registers_cris): Add prototype.
16859 (the_low_target): Add initializer for arch_setup field.
16860 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16861 (the_low_target): Add initializer for arch_setup field.
16862 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16863 (the_low_target): Add initializer for arch_setup field.
16864 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16865 (the_low_target): Add initializer for arch_setup field.
16866 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16867 (the_low_target): Add initializer for arch_setup field.
16868 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16869 (the_low_target): Add initializer for arch_setup field.
16870 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16871 (init_registers_mips64_linux): Likewise.
16872 (the_low_target): Add initializer for arch_setup field.
16873 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16874 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16875 (the_low_target): Add initializer for arch_setup field.
16876 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16877 (init_registers_powerpc_64): Likewise.
16878 (the_low_target): Add initializer for arch_setup field.
16879 * linux-s390-low.c (init_registers_s390): Add prototype.
16880 (init_registers_s390x): Likewise.
16881 (the_low_target): Add initializer for arch_setup field.
16882 * linux-sh-low.c (init_registers_sh): Add prototype.
16883 (the_low_target): Add initializer for arch_setup field.
16884 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16885 (the_low_target): Add initializer for arch_setup field.
16886 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16887 (the_low_target): Add initializer for arch_setup field.
16888
16889 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16890 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16891 instead of init_registers ().
16892 * win32-arm-low.c (init_registers_arm): Add prototype.
16893 (the_low_target): Add initializer for arch_setup field.
16894 * win32-i386-low.c (init_registers_i386): Add prototype.
16895 (the_low_target): Add initializer for arch_setup field.
16896
16897 * spu-low.c (init_registers_spu): Add prototype.
16898 (initialize_low): Call initialie_registers_spu () instead of
16899 initialize_registers ().
16900
16901 2008-02-19 Pedro Alves <pedro@codesourcery.com>
16902
16903 * server.c (handle_v_requests): When handling the vRun and vAttach
16904 packets, if already debugging a process, don't kill it. Return an
16905 error instead.
16906
16907 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
16908
16909 * server.c (handle_query): Correct length check.
16910
16911 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
16912
16913 * win32-low.c (do_initial_child_stuff): Add process handle
16914 parameter. Set current_process_handle and current_process_id from the
16915 parameters. Clear globals.
16916 (win32_create_inferior): Don't set current_process_handle and
16917 current_process_id here. Instead pass them on the call to
16918 do_initial_child_stuff.
16919 (win32_attach): Likewise.
16920 (win32_clear_inferiors): New.
16921 (win32_kill): Don't close the current process handle or the
16922 current thread handle here. Instead call win32_clear_inferiors.
16923 (win32_detach): Don't open a new handle to the process. Call
16924 win32_clear_inferiors.
16925 (win32_join): Don't rely on current_process_handle; open a new
16926 handle using the process id.
16927 (win32_wait): Call win32_clear_inferiors when the inferior process
16928 has exited.
16929
16930 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
16931
16932 * server.c (monitor_show_help): Add "exit".
16933
16934 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
16935
16936 * Makefile.in (SFILES): Add linux-xtensa-low.c.
16937 (clean): Add reg-xtensa.c.
16938 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
16939 * configure.srv (xtensa*-*-linux*) New target.
16940 * linux-xtensa-low.c: New.
16941 * xtensa-xtregs.c: New.
16942
16943 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16944
16945 * hostio.c: Don't include errno.h.
16946 (errno_to_fileio_errno): Move to hostio-errno.
16947 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16948 error number outputting to the target->hostio_last_error callback.
16949 (hostio_packet_error): Use FILEIO_EINVAL directly.
16950 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16951 calls to hostio_error.
16952 * hostio-errno.c: New.
16953 * server.h (hostio_last_error_from_errno): Declare.
16954 * target.h (target_ops): Add hostio_last_error member.
16955 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16956 as hostio_last_error handler.
16957 * spu-low.c (spu_target_ops): Likewise.
16958 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16959 (wince_hostio_last_error): New functions.
16960 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16961 as hostio_last_error handler.
16962 (win32_target_ops) [!_WIN32_WCE]: Register
16963 hostio_last_error_from_errno as hostio_last_error handler.
16964 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16965 (hostio-errno.o): New rule.
16966 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16967 * configure.srv (srv_hostio_err_objs): New variable. Default to
16968 hostio-errno.o.
16969 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16970 * configure: Regenerate.
16971
16972 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16973
16974 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16975 (linux_kill, linux_detach): Clean up the process list.
16976 * remote-utils.c (remote_open): Improve port number parsing.
16977 (putpkt_binary, input_interrupt): Only send interrupts if the target
16978 is running.
16979 * server.c (extended_protocol): Make static.
16980 (attached): Define earlier.
16981 (exit_requested, response_needed, program_argv): New variables.
16982 (target_running): New.
16983 (start_inferior): Clear attached here.
16984 (attach_inferior): Set attached here.
16985 (require_running): Define.
16986 (handle_query): Use require_running and target_running. Implement
16987 "monitor exit".
16988 (handle_v_attach, handle_v_run): New.
16989 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16990 (gdbserver_usage): Update.
16991 (main): Redo argument parsing. Handle --debug and --multi. Handle
16992 --attach along with other options or after the port. Save
16993 program_argv. Support no initial program. Resynchronize
16994 communication with GDB after an error. Handle "monitor exit".
16995 Use require_running and target_running. Always allow the extended
16996 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16997 restart in extended mode.
16998 * README: Refer to the GDB manual. Update --attach usage.
16999
17000 2007-12-20 Andreas Schwab <schwab@suse.de>
17001
17002 * linux-low.c (STACK_SIZE): Define.
17003 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17004 (linux_test_for_tracefork): Likewise.
17005
17006 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17007
17008 * linux-low.c (linux_wait_for_event): Update messages. Do not
17009 reinsert auto-delete breakpoints.
17010 * mem-break.c (struct breakpoint): Change return type of handler to
17011 int.
17012 (set_breakpoint_at): Update handler type.
17013 (reinsert_breakpoint_handler): Return 1 instead of calling
17014 delete_breakpoint.
17015 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17016 setting a new one.
17017 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17018 * mem-break.h (set_breakpoint_at): Update handler type.
17019 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17020 * win32-low.c (auto_delete_breakpoint): New.
17021 (get_child_debug_event): Use it.
17022
17023 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17024
17025 * configure.ac: Check for pread and pwrite.
17026 * hostio.c (handle_pread): Fall back to lseek and read.
17027 (handle_pwrite): Fall back to lseek and write.
17028 * config.in, configure: Regenerated.
17029
17030 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17031
17032 * server.c (myresume): Add own_buf argument.
17033 (main): Update calls.
17034
17035 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17036
17037 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17038 * remote-utils.c (remote_open): Do not call disable_async_io.
17039 (block_async_io): Delete.
17040 (unblock_async_io): Make static.
17041 (initialize_async_io): New.
17042 * server.c (handle_v_cont): Handle async I/O here.
17043 (myresume): Likewise. Move other common resume tasks here...
17044 (main): ... from here. Call initialize_async_io. Disable async
17045 I/O before the main loop.
17046 * server.h (initialize_async_io): Declare.
17047 (block_async_io, unblock_async_io): Delete prototypes.
17048 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17049
17050 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17051
17052 * remote-utils.c (readchar): Allow binary data in received messages.
17053
17054 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17055
17056 * win32-low.c (attaching): New global.
17057 (win32_create_inferior): Clear the `attaching' global.
17058 (win32_attach): Set the `attaching' global.
17059 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17060 attaching. Only set a breakpoint at the entry point if not
17061 attaching.
17062
17063 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17064
17065 * server.c (main): Don't report dll events on the initial
17066 connection on attaches.
17067
17068 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17069
17070 * server.c (main): Relax numerical bases supported for the pid of
17071 the --attach command line argument.
17072
17073 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17074
17075 * win32-low.c (win32_attach): Call OpenProcess before
17076 DebugActiveProcess, not after. Add last error output to error
17077 call.
17078
17079 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17080
17081 * win32-low.c (win32_get_thread_context)
17082 (win32_set_thread_context): New functions.
17083 (thread_rec): Use win32_get_thread_context.
17084 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17085 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17086 field.
17087
17088 2007-12-03 Leo Zayas
17089 Pedro Alves <pedro_alves@portugalmail.pt>
17090
17091 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17092 global variables.
17093 (child_add_thread): Minor cleanup.
17094 (child_continue): Resume artificially suspended threads before
17095 calling ContinueDebugEvent.
17096 (suspend_one_thread): New.
17097 (fake_breakpoint_event): New.
17098 (get_child_debug_event): Change return type to int. Check here if
17099 gdb sent an interrupt request. If a soft interrupt was requested,
17100 fake a breakpoint event. Return 0 if there is no event to handle,
17101 and 1 otherwise.
17102 (win32_wait): Don't check here if gdb sent an interrupt request.
17103 Ensure there is a valid event to handle.
17104 (win32_request_interrupt): Add soft interruption method as last
17105 resort.
17106
17107 2007-12-03 Leo Zayas
17108 Pedro Alves <pedro_alves@portugalmail.pt>
17109
17110 * win32-low.h (win32_thread_info): Add descriptions to the
17111 structure members. Replace `suspend_count' counter by a
17112 `suspended' flag.
17113 * win32-low.c (thread_rec): Update condition of when to get the
17114 context from the inferior. Rely on ContextFlags being set if it
17115 has already been retrieved. Only suspend the inferior thread if
17116 we haven't already. Warn if that fails.
17117 (continue_one_thread): s/suspend_count/suspended/. Only call
17118 ResumeThread once. Warn if that fails.
17119
17120 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17121
17122 * win32-low.c (win32_wait): Don't read from the inferior when it
17123 has already exited.
17124
17125 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17126
17127 * Makefile.in (win32_low_h): New variable.
17128 (win32-low.o): Add dependency on $(win32_low_h).
17129 (win32-arm-low.o, win32-i386-low.o): New rules.
17130
17131 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17132
17133 * hostio.c: Correct copyright year.
17134
17135 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17136
17137 * Makefile.in (OBS): Add hostio.o.
17138 (hostio.o): New rule.
17139 * server.h (handle_vFile): Declare.
17140 * hostio.c: New file.
17141 * server.c (handle_v_requests): Take packet_len and new_packet_len
17142 for binary packets. Call handle_vFile.
17143 (main): Update call to handle_v_requests.
17144
17145 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17146
17147 * linux-low.c: Include <sched.h>.
17148
17149 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17150
17151 * linux-low.c (linux_tracefork_grandchild): New.
17152 (linux_tracefork_child): Use clone.
17153 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17154
17155 2007-10-31 Joel Brobecker <brobecker@adacore.com>
17156
17157 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17158
17159 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17160
17161 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17162
17163 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17164
17165 * inferiors.c (change_inferior_id): Delete.
17166 (add_pid_to_list, pull_pid_from_list): New.
17167 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17168 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17169 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17170 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17171 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17172 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17173 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17174 (using_threads): Always set to 1.
17175 (handle_extended_wait): New.
17176 (add_process): Do not set TID.
17177 (linux_create_inferior): Set must_set_ptrace_flags.
17178 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17179 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17180 (linux_thread_alive): Rename TID argument to LWPID.
17181 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17182 (linux_wait_for_event): Do not use TID or check using_threads. Update
17183 call to dead_thread_notify. Call handle_extended_wait.
17184 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17185 (send_sigstop): Delete sigstop_sent.
17186 (wait_for_sigstop): Avoid TID.
17187 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17188 (linux_test_for_tracefork): New.
17189 (linux_lookup_signals): Use thread_db_active and
17190 linux_supports_tracefork_flag.
17191 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17192 * linux-low.h (get_process_thread): Avoid TID.
17193 (struct process_ifo): Move thread_known and tid to the end. Remove
17194 sigstop_sent.
17195 (linux_attach_lwp, thread_db_init): Update prototypes.
17196 * server.h (change_inferior_id): Delete prototype.
17197 (add_pid_to_list, pull_pid_from_list): New prototypes.
17198 * thread-db.c (thread_db_use_events): New.
17199 (find_first_thread): Rename to...
17200 (find_one_thread): ...this. Update callers and messages. Do not
17201 call fatal. Check thread_db_use_events. Do not call
17202 change_inferior_id or new_thread_notify.
17203 (maybe_attach_thread): Update. Do not call new_thread_notify.
17204 (thread_db_init): Set thread_db_use_events. Check use_events.
17205 * utils.c (fatal, warning): Correct message prefix.
17206
17207 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17208
17209 * Makefile.in (clean): Remove new files.
17210 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17211 (powerpc-64.o, powerpc-64.c): New rules.
17212 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17213 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17214 with SPE.
17215 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17216 SPE targets.
17217 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17218 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17219 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17220 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17221 (target_regsets): Add AltiVec and SPE register sets.
17222 * configure.ac: Check for AltiVec and SPE.
17223 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17224 (ppc_fill_vrregset, ppc_store_vrregset): New.
17225 (target_regsets): Add AltiVec register set.
17226 * configure: Regenerated.
17227
17228 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17229
17230 * linux-low.c (O_LARGEFILE): Define.
17231 (linux_read_memory): Use /proc/PID/mem.
17232 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17233 * configure, config.in: Regenerated.
17234
17235 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17236
17237 * linux-low.c (linux_wait_for_event): Do not pass signals while
17238 single-stepping.
17239
17240 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17241
17242 * win32-low.c (create_process): New.
17243 (win32_create_inferior): Use create_process instead of
17244 CreateProcess. If create_process failed retry appending an ".exe"
17245 suffix. Store the GetLastError result immediatelly after
17246 create_process calls and use it on the call to error.
17247
17248 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17249
17250 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17251
17252 2007-08-23 Joel Brobecker <brobecker@adacore.com>
17253
17254 * configure.ac: Switch license to GPLv3.
17255
17256 2007-08-01 Michael Snyder <msnyder@access-company.com>
17257
17258 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17259
17260 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17261
17262 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17263 typedef.
17264 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17265 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17266 CloseToolhelp32Snapshot.
17267 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17268 CloseToolhelp32Snapshot.
17269
17270 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
17271
17272 * server.c (main): Check for inferior exit before main loop.
17273
17274 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17275
17276 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17277 instead of on tmp_desc.
17278
17279 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17280 Daniel Jacobowitz <dan@codesourcery.com>
17281
17282 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17283 (add_thread): Minor cleanups.
17284 (clear_inferiors): Move lower in the file. Clear the DLL
17285 list.
17286 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17287 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17288 (xml_escape_text): New.
17289 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17290 for qSupported.
17291 (handle_v_cont): Report errors.
17292 (gdbserver_version): Update.
17293 (main): Correct size of own_buf. Do not report initial DLL events.
17294 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17295 (unloaded_dll, xml_escape_text): New.
17296 * win32-low.c (enum target_waitkind): Update comments.
17297 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17298 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17299 (win32_EnumProcessModules, win32_GetModuleInformation)
17300 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17301 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17302 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17303 (win32_Module32First, win32_Module32Next, load_toolhelp)
17304 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17305 (get_child_debug_event): Handle DLL events.
17306 (win32_wait): Likewise.
17307
17308 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17309
17310 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17311 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17312
17313 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17314
17315 * win32-low.c (handle_output_debug_string): Ignore event if not
17316 waiting.
17317
17318 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17319
17320 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17321
17322 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17323
17324 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17325
17326 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17327
17328 * inferiors.c (change_inferior_id): Add comment.
17329 * linux-low.c (check_removed_breakpoint): Add an early
17330 prototype. Improve debug output.
17331 (linux_attach): Doc update.
17332 (linux_detach_one_process, linux_detach): Clean up before releasing
17333 each process.
17334 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17335 * linux-low.h (struct process_info): Doc improvement.
17336 * mem-break.c (delete_all_breakpoints): New.
17337 * mem-break.h (delete_all_breakpoints): New prototype.
17338 * thread-db.c (find_first_thread): New.
17339 (thread_db_create_event): Call it instead of
17340 thread_db_find_new_threads. Clean up unused variables.
17341 (maybe_attach_thread): Remove first thread handling.
17342 (thread_db_find_new_threads): Use find_first_thread.
17343 (thread_db_get_tls_address): Likewise.
17344
17345 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17346
17347 * thread-db.c (thread_db_find_new_threads): Add prototype.
17348 (thread_db_create_event): Check for the main thread before adding
17349 a new thread.
17350 (maybe_attach_thread): Only enable event reporting if TID == 0.
17351 (thread_db_get_tls_address): Check for new threads.
17352
17353 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17354
17355 * linux-low.c (linux_create_inferior): Try execv before execvp.
17356 * spu-low.c (spu_create_inferior): Likewise.
17357
17358 2007-06-13 Mike Frysinger <vapier@gentoo.org>
17359
17360 * linux-low.c (linux_create_inferior): Change execv to execvp.
17361 * spu-low.c (spu_create_inferior): Likewies.
17362
17363 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17364
17365 * Makefile.in (clean): Clean new files instead of deleted ones.
17366 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17367 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17368 rules.
17369 * configure.srv: Specify XML files and new regformats for MIPS and
17370 MIPS64 GNU/Linux.
17371 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17372 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17373 an entry for the restart register.
17374 (mips_cannot_fetch_register, mips_cannot_store_register)
17375 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17376 register names to match the XML descriptions.
17377 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17378 restart register instead of $0.
17379
17380 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17381 Markus Deuling <deuling@de.ibm.com>
17382
17383 * remote-utils.c (decode_xfer_write): New function.
17384 * server.h (decode_xfer_write): Add prototype.
17385 * server.c (handle_query): Add PACKET_LEN argument. Support
17386 qXfer:spu:read and qXfer:spu:write packets.
17387 (main): Pass packet_len to handle_query.
17388 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17389 * target.h (target_ops): Add qxfer_spu.
17390
17391 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17392
17393 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17394 accessing non-seekable spufs files.
17395
17396 2007-05-16 Markus Deuling <deuling@de.ibm.com>
17397
17398 * server.c (handle_query): Add reply for qC packet.
17399
17400 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17401 Leo Zayas <lerele@champenstudios@com>
17402
17403 * server.h (check_remote_input_interrupt_request): New function.
17404 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17405 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17406 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17407 (check_remote_input_interrupt_request): New function.
17408 * server.h (check_remote_input_interrupt_request): Declare.
17409 * win32-low.c (winapi_DebugBreakProcess,
17410 winapi_GenerateConsoleCtrlEvent): New typedefs.
17411 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17412 to 250 ms.
17413 (win32_wait): Check for remote interrupt request
17414 with check_remote_input_interrupt_request.
17415 (win32_request_interrupt): New function.
17416 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17417
17418 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17419
17420 * win32-low.c (debug_registers_changed,
17421 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17422 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17423 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17424 (thread_rec): Get context using the low target.
17425 (child_add_thread): Call thread_added on the low target,
17426 which does the same thing.
17427 (regptr): Delete.
17428 (do_initial_child_stuff): Remove debug registers references.
17429 Set context using the low target. Resume threads after
17430 setting the contexts.
17431 (child_continue): Remove dead variable. Remove debug
17432 registers references.
17433 (child_fetch_inferior_registers): Go through the low target.
17434 (do_child_store_inferior_registers): Remove.
17435 (child_store_inferior_registers): Go through the low target.
17436 (win32_resume): Remove debug registers references.
17437 Set context using the low target.
17438 (handle_exception): Change return type to void. Don't record
17439 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17440 first chance exception.
17441 (get_child_debug_event): Change return type to void. Remove
17442 goto loop. Always return after waiting for debug event.
17443 (win32_wait): Convert to switch statement. Handle spurious
17444 events.
17445
17446 * win32-i386-low.c (debug_registers_changed,
17447 debug_registers_used): New.
17448 (initial_stuff): Rename to ...
17449 (i386_initial_stuff): ... this. Clear debug registers
17450 state variables.
17451 (store_debug_registers): Delete.
17452 (i386_get_thread_context): New.
17453 (load_debug_registers): Delete.
17454 (i386_set_thread_context): New.
17455 (i386_thread_added): New.
17456 (single_step): Rename to ...
17457 (i386_single_step): ... this.
17458 (do_fetch_inferior_registers): Rename to ...
17459 (i386_fetch_inferior_register): ... this.
17460 (i386_store_inferior_register): New.
17461 (the_low_target): Adapt to new interface.
17462
17463 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17464 (arm_get_thread_context): New.
17465 (arm_set_thread_context): New.
17466 (regptr): New.
17467 (do_fetch_inferior_registers): Rename to ...
17468 (arm_fetch_inferior_register): ... this.
17469 (arm_store_inferior_register): New.
17470 (arm_wince_breakpoint): Reimplement as unsigned long.
17471 (arm_wince_breakpoint_len): Define.
17472 (the_low_target): Adapt to new interface.
17473
17474 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17475 load_debug_registers. Add get_thread_context, set_thread_context,
17476 thread_added and store_inferior_register. Rename
17477 fetch_inferior_registers to fetch_inferior_register.
17478 (regptr): Remove declaration.
17479
17480 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17481
17482 * linux-low.c (linux_detach): Change return type to int. Return 0.
17483 * spu-low.c (spu_detach): Likewise.
17484
17485 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17486
17487 * target.h (target_ops): Change return type of detach to int.
17488 Add join.
17489 (join_inferior): New.
17490 * server.c (main): Don't skip detach support on mingw32.
17491 If the inferior doesn't support detaching return error.
17492 Call join_inferior instead of using waitpid.
17493 * linux-low.c (linux_join): New.
17494 (linux_target_op): Add linux_join.
17495 * spu-low.c (spu_join): New.
17496 (spu_target_ops): Add spu_join.
17497 * win32-low.c (win32_detach): Adapt to new interface.
17498 Reopen current_process_handle before detaching. Issue a child
17499 resume before detaching.
17500 (win32_join): New.
17501 (win32_target_op): Add win32_join.
17502
17503 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17504
17505 * win32-low.c (win32-attach): Fix return value.
17506 * target.h (target_ops): Describe ATTACH return values.
17507
17508 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17509
17510 * win32-low.c (GETPROCADDRESS): Define.
17511 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
17512 (winapi_DebugSetProcessKillOnExit): Likewise.
17513 (win32_create_inferior): Force usage of ansi CreateProcessA.
17514 (win32_attach): Use GETPROCADDRESS.
17515 (win32_detach): Likewise.
17516
17517 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17518
17519 * win32-low.c (win32_wait): Don't use WSTOPSIG.
17520
17521 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
17522
17523 * win32-low.c: Commit leftover changes from 2007-03-29.
17524
17525 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17526
17527 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17528 fields short instead of int. Add explicit padding.
17529 (i387_cache_to_fsave): Remove unnecessary casts.
17530 (i387_fsave_to_cache): Doc fix.
17531 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17532
17533 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17534
17535 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17536 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17537
17538 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17539
17540 * configure.srv (arm*-*-mingw32ce*): Move near the other
17541 arm targets.
17542
17543 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17544
17545 * configure.ac: Add errno checking.
17546 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17547 sys/file.h and malloc.h.
17548 (AC_CHECK_DECLS): Add perror.
17549 (srv_mingwce): Handle.
17550 * configure.srv (i[34567]86-*-cygwin*): Add
17551 win32-i386-low.o to srv_tgtobj.
17552 (i[34567]86-*-mingw*): Likewise.
17553 (arm*-*-mingw32ce*): Add case.
17554 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17555 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17556 [__MINGW32CE__] (strerror): New function.
17557 [__MINGW32CE__] (errno): Define to GetLastError.
17558 [__MINGW32CE__] (COUNTOF): New macro.
17559 (remote_open): Remove extra close call.
17560 * mem-break.c (delete_breakpoint_at): New function.
17561 * mem-break.h (delete_breakpoint_at): Declare.
17562 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17563 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17564 [USE_WIN32API] (read, write): Add char* casts.
17565 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17566 * server.h: Include wincecompat.h on Windows CE.
17567 [HAVE_ERRNO_H]: Check.
17568 (perror): Declare if not declared.
17569 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17570 (perror_with_name): Remove errno declaration.
17571 * wincecompat.h: New.
17572 * wincecompat.c: New.
17573 * win32-low.h: New.
17574 * win32-arm-low.c: New.
17575 * win32-i386-low.c: New.
17576 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17577 (OUTMSG2): Make it safe.
17578 (_T): New macro.
17579 (COUNTOF): New macro.
17580 (NUM_REGS): Get it from the low target.
17581 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17582 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17583 (thread_rec): Let low target handle debug registers.
17584 (child_add_thread): Likewise.
17585 (child_init_thread_list): Likewise.
17586 (continue_one_thread): Likewise.
17587 (regptr): New.
17588 (do_child_fetch_inferior_registers): Move to ...
17589 * win32-i386-low.c: ... here, and rename to ...
17590 (do_fetch_inferior_registers): ... this.
17591 * win32-low.c (child_fetch_inferior_registers):
17592 Go through the low target.
17593 (do_child_store_inferior_registers): Use regptr.
17594 (strwinerror): New function.
17595 (win32_create_inferior): Handle Windows CE.
17596 Use strwinerror instead of strerror on Windows error
17597 codes. Add program to the error output.
17598 Don't close the main thread handle on Windows CE.
17599 (win32_attach): Use coredll.dll on Windows CE.
17600 (win32_kill): Close current process and current
17601 thread handles.
17602 (win32_detach): Use coredll.dll on Windows CE.
17603 (win32_resume): Let low target handle debug registers, and
17604 step request.
17605 (handle_exception): Add/Remove initial breakpoint. Avoid
17606 non-existant WSTOPSIG on Windows CE.
17607 (win32_read_inferior_memory): Cast to remove warning.
17608 (win32_arch_string): Go through the low target.
17609 (initialize_low): Call set_breakpoint_data with the low
17610 target's breakpoint.
17611 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17612 FOP_REGNUM, mappings): Move to ...
17613 * win32-i386-low.c: ... here.
17614 * win32-low.c (win32_thread_info): Move to ...
17615 * win32-low.h: ... here.
17616 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17617 win32-arm-low.c and wincecompat.c.
17618 (all:): Add $EXEEXT.
17619 (install-only:): Likewise.
17620 (gdbserver:): Likewise.
17621 (gdbreplay:): Likewise.
17622 * config.in: Regenerate.
17623 * configure: Regenerate.
17624
17625 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17626
17627 * win32-low.c: Rename typedef thread_info to
17628 win32_thread_info throughout.
17629
17630 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17631
17632 * win32-i386-low.c: Rename to ...
17633 * win32-low.c: ... this.
17634 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17635 * Makefile.in: Likewise.
17636
17637 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17638
17639 * remote-utils.c (monitor_output): Constify msg parameter.
17640 * server.h (monitor_output): Likewise.
17641 * win32-i386-low.c (handle_output_debug_string): New.
17642 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17643 handle_output_debug_string.
17644 (get_child_debug_event): Likewise.
17645
17646 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17647
17648 * server.c (main): Correct strtoul check.
17649
17650 2007-03-27 Jon Ringle <jon@ringle.org>
17651
17652 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17653
17654 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17655
17656 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17657
17658 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17659
17660 * terminal.h: Check HAVE_SGTTY_H.
17661
17662 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
17663
17664 * remote-utils.c (remote_open): Print out the assigned port number.
17665
17666 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17667
17668 * remote-utils.c (monitor_output): New function.
17669 * server.c (debug_threads): Define here.
17670 (monitor_show_help): New function.
17671 (handle_query): Handle qRcmd.
17672 (main): Do not handle 'd' packet.
17673 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17674 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17675 of debug_threads.
17676
17677 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17678
17679 * Makefile.in (EXEEXT): New.
17680 (clean): Use $(EXEEXT).
17681
17682 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17683
17684 * target.h (target_ops): Rename send_signal to request_interrupt,
17685 and remove enum target_signal parameter.
17686 * linux-low.c (linux_request_interrupt): Rename from
17687 linux_send_signal, and always send SIGINT.
17688 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17689 and always send SIGINT.
17690 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17691 of send_signal.
17692 (input_interrupt): Likewise.
17693
17694 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17695
17696 * server.c (get_features_xml): Check if target implemented
17697 arch_string.
17698 * win32-i386-low.c (win32_arch_string): New.
17699 (win32_target_ops): Add win32_arch_string as arch_string member.
17700
17701 2007-02-22 Markus Deuling <deuling@de.ibm.com>
17702
17703 * spu-low.c (spu_arch_string): New.
17704 (spu_target_ops): Add spu_arch_string.
17705
17706 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17707
17708 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17709 * configure.ac: Do not check for terminal.h.
17710 * configure, config.in: Regenerated.
17711
17712 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17713
17714 * Makefile.in (OBS): Add $(XML_BUILTIN).
17715 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17716 (clean): Update.
17717 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17718 (arm-with-iwmmxt.c): New.
17719 * config.in, configure: Regenerate.
17720 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17721 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17722 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17723 (arm*-*-linux*): Add iWMMXt and regset support.
17724 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17725 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17726 (arm_store_wmmxregset, target_regsets): New.
17727 * server.c (get_features_xml): Take annex argument. Check builtin
17728 XML documents.
17729 (handle_query): Handle multiple annexes.
17730
17731 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17732
17733 * remote-utils.c [USE_WIN32API] (read, write): Define.
17734 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17735 write.
17736
17737 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17738
17739 * linux-i386-low.c (the_low_target): Set arch_string.
17740 * linux-x86-64-low.c (the_low_target): Likewise.
17741 * linux-low.c (linux_arch_string): New.
17742 (linux_target_ops): Add it.
17743 * linux-low.h (struct linux_target_ops): Add arch_string.
17744 * server.c (write_qxfer_response): Use const void * for DATA.
17745 (get_features_xml): New.
17746 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17747 * target.h (struct target_ops): Add arch_string method.
17748
17749 2007-01-03 Denis Pilat <denis.pilat@st.com>
17750 Daniel Jacobowitz <dan@codesourcery.com>
17751
17752 * linux-low.c (linux_kill): Handle being called with no threads.
17753 * win32-i386-low.c (win32_kill): Likewise.
17754 (get_child_debug_event): Clear current_process_handle.
17755
17756 2006-12-30 Denis PILAT <denis.pilat@st.com>
17757 Daniel Jacobowitz <dan@codesourcery.com>
17758
17759 * remote-utils.c (remote_open): Check the type of specified
17760 serial port devices before opening them.
17761 * server.c (main): Kill the inferior if an error occurs during
17762 the first remote_open.
17763
17764 2006-12-05 Markus Deuling <deuling@de.ibm.com>
17765
17766 * README: Update supported targets.
17767
17768 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17769
17770 * Makefile.in (clean): Remove reg-mips64.c.
17771 (reg-mips64.c, reg-mips64.o): New rules.
17772 * configure.srv: Handle mips64. Include regset support for mips.
17773 * linux-mips-low.c (union mips_register): New.
17774 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17775 (mips_breakpoint, mips_breakpoint_at): Use int.
17776 (mips_collect_register, mips_supply_register)
17777 (mips_collect_register_32bit, mips_supply_register_32bit)
17778 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17779 (mips_store_fpregset, target_regsets): New.
17780 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17781
17782 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17783
17784 * configure.srv: Add target "spu*-*-*".
17785 * Makefile.in (clean): Remove reg-spu.c.
17786 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17787 * spu-low.c: New file.
17788
17789 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17790
17791 * configure.ac: Correct td_thr_tls_get_addr test.
17792 * configure: Regenerated.
17793
17794 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17795
17796 * linux-low.c (linux_wait_for_event): Reformat. Use the
17797 pass_signals array.
17798 * remote-utils.c (decode_address_to_semicolon): New.
17799 * server.c (pass_signals, handle_general_set): New.
17800 (handle_query): Mention QPassSignals for qSupported.
17801 (main): Call handle_general_set.
17802 * server.h (pass_signals, decode_address_to_semicolon): New.
17803
17804 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17805
17806 * server.c (handle_query): Correct error handling for read_auxv.
17807
17808 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17809
17810 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17811 and srv_linux_thread_db to yes.
17812 * linux-s390-low.c (s390_fill_gregset): New function.
17813 (target_regsets): Define data structure.
17814
17815 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17816
17817 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17818 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17819 * config.in, configure: Regenerated.
17820 * inferiors.c (gdb_id_to_thread): New function.
17821 (gdb_id_to_thread_id): Use it.
17822 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17823 * linux-low.h (struct process_info): Add th member.
17824 (thread_db_get_tls_address): New prototype.
17825 * remote-utils.c (decode_address): Make non-static.
17826 * server.c (handle_query): Handle qGetTLSAddr.
17827 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17828 * target.h (struct target_ops): Add get_tls_address.
17829 * thread-db.c (maybe_attach_thread): Save the thread handle.
17830 (thread_db_get_tls_address): New.
17831
17832 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17833
17834 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17835 (linux_resume_one_process): Take a siginfo_t *. Update all
17836 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17837 (struct pending_signals): Add a siginfo_t.
17838 (linux_wait_for_process): Always set last_status.
17839 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17840 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17841 * linux-low.h (struct process_info): Add last_status.
17842
17843 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17844
17845 * remote-utils.c (try_rle): New function.
17846 (putpkt_binary): Use it.
17847
17848 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17849
17850 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17851 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17852 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17853 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17854 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17855 point registers.
17856
17857 2006-08-08 Richard Sandiford <richard@codesourcery.com>
17858
17859 * server.c (terminal_fd): New variable.
17860 (old_foreground_pgrp): Likewise.
17861 (restore_old_foreground_pgrp): New function.
17862 (start_inferior): Record the terminal file descriptor in terminal_fd
17863 and its original foreground group in old_foreground_pgrp. Register
17864 restore_old_foreground_pgrp with atexit().
17865
17866 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17867
17868 * server.c (handle_query): Correct qPart to qXfer.
17869
17870 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17871
17872 * configure.ac: Check for more headers which are missing on
17873 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17874 * configure.srv: Add Cygwin and mingw32.
17875 * remote-utils.c: Don't include headers unconditionally which
17876 are missing on mingw32. Include <winsock.h> for mingw32.
17877 (remote_open): Adjust for mingw32 support. Flush
17878 standard error after writing to it.
17879 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17880 (unblock_async_io, enable_async_io, disable_async_io)
17881 (readchar, getpkt): Update for Winsock support.
17882 (prepare_resume_reply): Expect a protocol signal number.
17883 * server.c: Disable <sys/wait.h> on mingw32.
17884 (start_inferior): Adjust for mingw32 support. Flush
17885 standard error after writing to it.
17886 (attach_inferior): Likewise. Use protocol signal
17887 numbers.
17888 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17889 and names.
17890 * win32-i386-low.c: New file.
17891 * Makefile.in (XM_CLIBS): Set.
17892 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17893 (win32-i386-low.o): New dependency rule.
17894 * linux-low.c (linux_wait): Use target signal numbers.
17895 * target.h (struct target_ops): Doc fix.
17896 * server.h (target_signal_to_name): New prototype.
17897 * gdbreplay.c: Don't include headers unconditionally which
17898 are missing on mingw32. Include <winsock.h> for mingw32.
17899 (remote_close, remote_open): Adjust for Winsock support.
17900 * configure, config.in: Regenerated.
17901
17902 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17903
17904 * server.c (decode_xfer_read, write_qxfer_response): New.
17905 (handle_query): Take a packet length argument. Handle
17906 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
17907 the qSupported response.
17908 (main): Update call to handle_query.
17909
17910 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
17911
17912 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
17913 (putpkt_binary): Renamed from putpkt and adjusted for binary
17914 data.
17915 (putpkt): New wrapper for putpkt_binary.
17916 (readchar): Don't mask off the high bit.
17917 (decode_X_packet): New function.
17918 * server.c (main): Call putpkt_binary if a handler sets the packet
17919 length. Save the length of the incoming packet. Handle 'X'.
17920 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
17921
17922 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
17923
17924 * server.c (handle_query): Handle qSupported.
17925
17926 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17927
17928 * remote-utils.c (all_symbols_looked_up): New variable.
17929 (look_up_one_symbol): Check it.
17930 * server.h (look_up_one_symbol): New declaration.
17931 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
17932
17933 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17934
17935 * Makefile.in (linux-arm-low.o): Update dependencies.
17936 * linux-arm-low.c: Include "gdb_proc_service.h".
17937 (PTRACE_GET_THREAD_AREA): Define.
17938 (ps_get_thread_area): New function.
17939
17940 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17941
17942 * configure.srv (m68k*-*-uclinux*): New target.
17943 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17944 (linux_resume_one_process): Remove extraneous cast.
17945 (linux_read_offsets): New.
17946 (linux_target_op): Add linux_read_offsets on mmuless systems.
17947 * server.c (handle_query): Add qOffsets logic.
17948 * target.h (struct target_ops): Add read_offsets.
17949
17950 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17951
17952 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17953 (PTRACE_GET_THREAD_AREA): Define.
17954 (ps_get_thread_area): New function.
17955 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17956 (linux-x86-64-low.o): Update.
17957
17958 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17959
17960 * configure.ac: Remove checks for prfpregset_t.
17961 * gdb_proc_service.h: New file.
17962 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17963 new "gdb_proc_service.h".
17964 * proc-service.c: Likewise.
17965 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17966 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17967 * Makefile.in (gdb_proc_service_h): Updated.
17968 * configure, config.in: Regenerated.
17969
17970 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17971
17972 * remote-utils.c (prepare_resume_reply): Move declaration
17973 of gdb_id_from_wait to the top of the block.
17974
17975 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17976
17977 * linux-low.c (regsets_store_inferior_registers): Read the regset
17978 from the target before filling it.
17979
17980 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17981
17982 * server.c (attach_inferior): Return SIGTRAP for a successful
17983 attach.
17984
17985 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17986
17987 * Makefile.in (OBS): Add version.o.
17988 (STAGESTUFF): Delete.
17989 (version.o): Add dependencies.
17990 (version.c): Replace rule.
17991 (clean): Remove version.c.
17992 * server.c (gdbserver_version): New.
17993 (gdbserver_usage): Use printf.
17994 (main): Handle --version and --help.
17995 * server.h (version, host_name): Add declarations.
17996
17997 2005-12-23 Eli Zaretskii <eliz@gnu.org>
17998
17999 * linux-arm-low.c:
18000 * linux-arm-low.c:
18001 * inferiors.c:
18002 * i387-fp.h:
18003 * i387-fp.c:
18004 * gdbreplay.c:
18005 * regcache.c:
18006 * proc-service.c:
18007 * mem-break.h:
18008 * mem-break.c:
18009 * linux-x86-64-low.c:
18010 * linux-sh-low.c:
18011 * linux-s390-low.c:
18012 * linux-ppc64-low.c:
18013 * linux-ppc-low.c:
18014 * linux-mips-low.c:
18015 * linux-m68k-low.c:
18016 * linux-m32r-low.c:
18017 * linux-low.h:
18018 * linux-low.c:
18019 * linux-ia64-low.c:
18020 * linux-i386-low.c:
18021 * linux-crisv32-low.c:
18022 * thread-db.c:
18023 * terminal.h:
18024 * target.h:
18025 * target.c:
18026 * server.h:
18027 * server.c:
18028 * remote-utils.c:
18029 * regcache.h:
18030 * utils.c:
18031 * Makefile.in:
18032 * configure.ac:
18033 * gdbserver.1: Add (C) after Copyright. Update the FSF
18034 address.
18035
18036 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18037
18038 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18039 (arm_breakpoint_at): Recognize both breakpoints.
18040 (the_low_target): Use the correct breakpoint instruction.
18041
18042 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18043
18044 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18045 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18046 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18047 (the_low_target): Update.
18048
18049 2005-10-25 Andreas Schwab <schwab@suse.de>
18050
18051 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18052
18053 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18054 (ia64_num_regs): Reduce to 462.
18055
18056 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18057
18058 * acinclude.m4: Correct quoting.
18059 * aclocal.m4: Regenerated.
18060
18061 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18062 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18063 (thread_db_init): Call thread_db_err_str.
18064 * configure.ac: Check for TD_VERSION.
18065 * config.in, configure: Regenerated.
18066
18067 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18068
18069 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18070
18071 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18072
18073 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18074 is not available. Define HAVE_PTRACE_GETREGS if it is.
18075 * config.in, configure: Regenerated.
18076 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18077 * linux-i386-low.c, linux-m68k-low.c: Update to use
18078 HAVE_PTRACE_GETREGS.
18079 * linux-low.c (regsets_fetch_inferior_registers)
18080 (regsets_store_inferior_registers): Only return 0 if we processed
18081 GENERAL_REGS.
18082 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18083 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18084
18085 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18086
18087 * inferiors.c (struct thread_info): Add gdb_id.
18088 (add_thread): Add gdb_id argument.
18089 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18090 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18091 calls to add_thread.
18092 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18093 * server.c (handle_query): Use thread_to_gdb_id.
18094 (handle_v_cont, main): Use gdb_id_to_thread_id.
18095 * server.h (add_thread): Update prototype.
18096 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18097 prototypes.
18098
18099 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18100
18101 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18102 left-padded registers.
18103 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18104 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18105
18106 2005-07-01 Steve Ellcey <sje@cup.hp.com>
18107
18108 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18109 * configure: Regenerate.
18110 * config.in: Regenerate.
18111 * server.h (NEED_DECLARATION_STRERROR):
18112 Replace with !HAVE_DECL_STRERROR.
18113
18114 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18115
18116 * linux-low.c (linux_wait, linux_send_signal): Don't test
18117 an unsigned long variable for > 0 if it could be MAX_ULONG.
18118 * server.c (myresume): Likewise.
18119 * target.c (set_desired_inferior): Likewise.
18120
18121 2005-06-13 Mark Kettenis <kettenis@gnu.org>
18122
18123 * configure.ac: Simplify and improve check for socklen_t.
18124 * configure, config.in: Regenerate.
18125
18126 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18127
18128 * acconfig.h: Remove.
18129 * configure.ac: Add a test for socklen_t. Use three-argument
18130 AC_DEFINE throughout.
18131 * config.in: Regenerated using autoheader 2.59.
18132 * configure: Regenerated.
18133
18134 * gdbreplay.c (socklen_t): Provide a default.
18135 (remote_open): Use socklen_t.
18136 * remote-utils.c (socklen_t): Provide a default.
18137 (remote_open): Use socklen_t.
18138 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18139 unsigned char.
18140
18141 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18142 char for buffers.
18143 * linux-low.c (linux_read_memory, linux_write_memory)
18144 (linux_read_auxv): Likewise.
18145 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18146 (check_mem_write): Likewise.
18147 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18148 Likewise.
18149 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18150 (registers_from_string, register_data): Likewise.
18151 * server.c (handle_query, main): Likewise.
18152 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18153 (decode_M_packet): Likewise.
18154 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18155 * target.h (struct target_ops): Update read_memory, write_memory,
18156 and read_auxv.
18157 (read_inferior_memory, write_inferior_memory): Update.
18158 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18159 to unsigned char *.
18160 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18161 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18162 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18163 linux-s390-low.c, linux-sh-low.c: Update for changes in
18164 read_inferior_memory and the_low_target->breakpoint.
18165
18166 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18167
18168 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18169 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18170 * configure.srv: Add powerpc64-*-linux*.
18171 * linux-ppc64-low.c: New file.
18172
18173 2005-05-23 Orjan Friberg <orjanf@axis.com>
18174
18175 * linux-cris-low.c: New file with support for CRIS.
18176 * linux-crisv32-low.c: Ditto for CRISv32.
18177 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18178 (clean): Add reg-cris.c and reg-crisv32.c.
18179 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
18180 reg-crisv32.o, and reg-crisv32.c to make rules.
18181 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18182 recognized targets.
18183
18184 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18185
18186 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18187 of sizeof (PTRACE_XFER_TYPE).
18188 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18189
18190 2005-05-12 Orjan Friberg <orjanf@axis.com>
18191
18192 * target.h (struct target_ops): Add insert_watchpoint,
18193 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18194 pointers for hardware watchpoint support.
18195 * linux-low.h (struct linux_target_ops): Ditto.
18196 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18197 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18198 to linux_target_ops.
18199 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18200 reply packet.
18201 * server.c (main): Recognize 'Z' and 'z' packets.
18202
18203 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18204
18205 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18206 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18207 (the_low_target): Add new members.
18208
18209 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18210
18211 * proc-service.c (ps_lgetregs): Search all_processes instead of
18212 all_threads.
18213
18214 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18215
18216 * server.c (start_inferior): Change return type to int.
18217 (attach_inferior): Change sigptr to int *.
18218 (handle_v_cont, handle_v_requests): Change signal to int *.
18219 (main): Change signal to int.
18220
18221 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
18222
18223 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18224 * configure.srv: Add m32r*-*-linux*.
18225 * linux-m32r-low.c: New file.
18226
18227 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18228
18229 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18230
18231 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18232
18233 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18234 Take unsigned long arguments for PIDs.
18235 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18236 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18237 (wait_for_sigstop, linux_resume_one_process)
18238 (regsets_fetch_inferior_registers, linux_send_signal)
18239 (linux_read_auxv): Likewise. Update the types of variables holding
18240 PIDs. Update format string specifiers.
18241 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18242 * remote-utils.c (prepare_resume_reply): Likewise.
18243 * server.c (cont_thread, general_thread, step_thread)
18244 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18245 unsigned long.
18246 (handle_query): Update format specifiers.
18247 (handle_v_cont, main): Use strtoul for thread IDs.
18248 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18249 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18250 (general_thread, step_thread, thread_from_wait)
18251 (old_thread_from_wait): Update.
18252 * target.h (struct thread_resume): Use unsigned long for THREAD.
18253 (struct target_ops): Use unsigned long for arguments to attach and
18254 thread_alive.
18255
18256 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18257
18258 * acinclude.m4: Include bfd/bfd.m4 directly.
18259 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18260 <agriffis@toolchain.org>.
18261 * aclocal.m4, configure: Regenerated.
18262
18263 2005-01-07 Andrew Cagney <cagney@gnu.org>
18264
18265 * configure.ac: Rename configure.in, require autoconf 2.59.
18266 * configure: Re-generate.
18267
18268 2004-12-08 Daniel Jacobowitz <dan@debian.org>
18269
18270 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18271 LIBS when finished.
18272 * aclocal.m4: Regenerated.
18273 * configure: Regenerated.
18274
18275 2004-11-21 Andreas Schwab <schwab@suse.de>
18276
18277 * linux-m68k-low.c (m68k_num_gregs): Define.
18278 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18279 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18280 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18281 (m68k_breakpoint_at): New. Add to the_low_target.
18282
18283 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18284 srv_linux_thread_db to yes.
18285
18286 2004-10-20 Joel Brobecker <brobecker@gnat.com>
18287
18288 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18289 (ARCH_SET_FS): Likewise.
18290 (ARCH_GET_FS): Likewise.
18291 (ARCH_GET_GS): Likewise.
18292
18293 2004-10-16 Daniel Jacobowitz <dan@debian.org>
18294
18295 * linux-i386-low.c (ps_get_thread_area): New.
18296 * linux-x86-64-low.c (ps_get_thread_area): New.
18297 * linux-low.c: Include <sys/syscall.h>.
18298 (linux_kill_one_process): Don't kill the first thread here.
18299 (linux_kill): Kill the first thread here.
18300 (kill_lwp): New function.
18301 (send_sigstop, linux_send_signal): Use it.
18302 * proc-service.c: Clean up #ifdefs.
18303 (fpregset_info): Delete.
18304 (ps_lgetregs): Update and enable implementation.
18305 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18306 implementations.
18307 * remote-utils.c (struct sym_cache, symbol_cache): New.
18308 (input_interrupt): Print a clearer message.
18309 (async_io_enabled): New variable.
18310 (enable_async_io, disable_async_io): Use it. Update comments.
18311 (look_up_one_symbol): Use the symbol cache.
18312 * thread-db.c (thread_db_look_up_symbols): New function.
18313 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18314
18315 2004-10-16 Daniel Jacobowitz <dan@debian.org>
18316
18317 * configure.in: Test for -rdynamic.
18318 * configure: Regenerated.
18319 * Makefile (INTERNAL_LDFLAGS): New.
18320 (gdbserver, gdbreplay): Use it.
18321
18322 2004-09-02 Andrew Cagney <cagney@gnu.org>
18323
18324 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18325
18326 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
18327
18328 * linux-low.c (linux_wait): Clear all_processes list also.
18329
18330 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
18331
18332 * linux-low.c: Include <errno.h>. Remove extern declaration of
18333 errno.
18334
18335 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
18336
18337 * gdbreplay.c, server.h, utils.c: Update copyright years.
18338
18339 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18340
18341 * server.c (main): Print child status or termination signal from
18342 variable 'signal', not 'sig'.
18343
18344 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18345
18346 * linux-low.c (linux_read_memory): Change return type to
18347 int. Check for and return error from ptrace().
18348 * target.c (read_inferior_memory): Change return type to int. Pass
18349 back return status from the_target->read_memory().
18350 * target.h (struct target_ops): Adapt *read_memory() prototype.
18351 Update comment.
18352 (read_inferior_memory): Adapt prototype.
18353 * server.c (main): Return an error packet if
18354 read_inferior_memory() returns an error.
18355
18356 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
18357
18358 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18359 Unify with other clean targets.
18360
18361 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18362
18363 * server.c (handle_v_cont): Call set_desired_inferior.
18364
18365 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18366
18367 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18368
18369 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18370
18371 * linux-low.c (linux_wait): Unblock async I/O.
18372 (linux_resume): Block and enable async I/O.
18373 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18374 * server.h (block_async_io, unblock_async_io): Add prototypes.
18375
18376 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18377
18378 * remote-utils.c (remote_open): Print a status notice after
18379 opening a TCP port.
18380 * server.c (attach_inferior): Print a status notice after
18381 attaching.
18382
18383 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18384
18385 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18386
18387 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
18388
18389 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18390 error packet.
18391 * server.c, target.h: Update copyright years.
18392
18393 2004-02-25 Roland McGrath <roland@redhat.com>
18394
18395 * target.h (struct target_ops): New member `read_auxv'.
18396 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18397 * linux-low.c (linux_read_auxv): New function.
18398 (linux_target_ops): Initialize `read_auxv' member to that.
18399
18400 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18401
18402 Committed by Jim Blandy <jimb@redhat.com>.
18403
18404 * linux-s390-low.c (s390_num_regs): Update.
18405 (s390_regmap): Remove control registers. Use __s390x__ predefine
18406 instead of GPR_SIZE to distiguish s390 and s390x targets.
18407
18408 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
18409
18410 * linux-low.c: Update copyright year.
18411 (check_removed_breakpoint): Clear pending_is_breakpoint.
18412 (linux_set_resume_request, linux_queue_one_thread)
18413 (resume_status_pending_p): New functions.
18414 (linux_continue_one_thread): Use process->resume.
18415 (linux_resume): Only resume threads if there are no pending events.
18416 * linux-low.h (struct process_info): Add resume request
18417 pointer.
18418
18419 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
18420
18421 * regcache.c (new_register_cache): Clear the allocated register
18422 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18423
18424 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
18425
18426 * linux-low.c (linux_resume): Take a struct thread_resume *
18427 argument.
18428 (linux_wait): Update call.
18429 (resume_ptr): New static variable.
18430 (linux_continue_one_thread): Renamed from
18431 linux_continue_one_process. Use resume_ptr.
18432 (linux_resume): Use linux_continue_one_thread.
18433 * server.c (handle_v_cont, handle_v_requests): New functions.
18434 (myresume): New function.
18435 (main): Handle 'v' case.
18436 * target.h (struct thread_resume): New type.
18437 (struct target_ops): Change argument of "resume" to struct
18438 thread_resume *.
18439 (myresume): Delete macro.
18440
18441 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18442
18443 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18444 (uninstall): Support DESTDIR.
18445
18446 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18447
18448 * configure.srv: Add xscale*linux copy of arm*linux entry.
18449
18450 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
18451
18452 * linux-arm-low.c (arm_reinsert_addr): New function.
18453 (the_low_target): Add arm_reinsert_addr.
18454
18455 2003-07-08 Mark Kettenis <kettenis@gnu.org>
18456
18457 * mem-break.c: Remove whitespace at end of file.
18458
18459 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
18460
18461 * configure.in: Check whether we need to prototype strerror.
18462 * server.h: Optionally prototype strerror.
18463 * gdbreplay.c (perror_with_name): Use strerror.
18464 * linux-low.c (linux_attach_lwp): Use strerror.
18465 * utils.c (perror_with_name): Use strerror.
18466 * config.in, configure: Regenerated.
18467
18468 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
18469
18470 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18471 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18472
18473 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
18474
18475 * Makefile.in (SFILES): Update.
18476 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18477 low-sun3.c: Remove files.
18478
18479 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
18480
18481 * linux-low.c: Move comment to linux_thread_alive where it belonged.
18482 (linux_detach_one_process, linux_detach): New functions.
18483 (linux_target_ops): Add linux_detach.
18484 * server.c (main): Handle 'D' packet.
18485 * target.h (struct target_ops): Add "detach" member.
18486 (detach_inferior): Define.
18487
18488 2003-06-13 Mark Kettenis <kettenis@gnu.org>
18489
18490 From Kelley Cook <kelleycook@wideopenwest.com>:
18491 * configure.srv: Accept i[34567]86 variants.
18492
18493 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
18494
18495 * linux-low.c (linux_wait_for_event): Correct comment typos.
18496 (linux_resume_one_process): Call check_removed_breakpoint.
18497 (linux_send_signal): New function.
18498 (linux_target_ops): Add linux_send_signal.
18499 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
18500 of kill.
18501 * target.h (struct target_ops): Add send_signal.
18502
18503 2003-05-29 Jim Blandy <jimb@redhat.com>
18504
18505 * linux-low.c (usr_store_inferior_registers): Transfer buf in
18506 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
18507 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
18508 away part of the register's value.
18509
18510 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
18511
18512 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
18513 (linux_wait_for_event, linux_init_signals): Likewise.
18514
18515 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
18516
18517 * configure.in: Check for stdlib.h.
18518 * configure: Regenerated.
18519 * config.in: Regenerated.
18520
18521 2003-01-04 Andreas Schwab <schwab@suse.de>
18522
18523 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
18524
18525 2003-01-02 Andrew Cagney <ac131313@redhat.com>
18526
18527 * Makefile.in: Remove obsolete code.
18528
18529 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
18530
18531 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18532 defined(PT_FPR0_HI).
18533
18534 2002-11-17 Stuart Hughes <seh@zee2.com>
18535
18536 * linux-arm-low.c (arm_num_regs): Increase.
18537 (arm_regmap): Include status register.
18538
18539 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
18540
18541 * linux-low.c (register_addr): Remove incorrect -1 check.
18542
18543 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
18544
18545 * linux-low.c (linux_create_inferior): Call setpgid. Return
18546 the new PID.
18547 (unstopped_p, linux_signal_pid): Remove.
18548 (linux_target_ops): Remove linux_signal_pid.
18549 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18550 global instead of target method.
18551 * target.h (struct target_ops): Remove signal_pid. Update comment
18552 for create_inferior.
18553 * server.c (signal_pid): New variable.
18554 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
18555 gdbserver. Set the child to be the foreground process group.
18556 (attach_inferior): Set signal_pid.
18557
18558 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
18559
18560 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18561
18562 2002-08-20 Jim Blandy <jimb@redhat.com>
18563
18564 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18565 default for this.
18566
18567 2002-08-01 Andrew Cagney <cagney@redhat.com>
18568
18569 * Makefile.in: Make chill references obsolete.
18570
18571 2002-07-24 Kevin Buettner <kevinb@redhat.com>
18572
18573 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18574 * configure: Regenerate.
18575 * config.in: Regenerate.
18576
18577 2002-07-09 David O'Brien <obrien@FreeBSD.org>
18578
18579 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18580 (perror_with_name, remote_close, remote_open, expect, play): Static.
18581
18582 2002-07-04 Michal Ludvig <mludvig@suse.cz>
18583
18584 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
18585 byte offsets instead of an array of indexes.
18586 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18587
18588 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
18589
18590 * regcache.c: Add comment.
18591
18592 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
18593
18594 * thread-db.c: New file.
18595 * proc-service.c: New file.
18596 * acinclude.m4: New file.
18597 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18598 proc-service.o, and thread-db.o.
18599 (linux-low.o): Add USE_THREAD_DB.
18600 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18601 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18602 * aclocal.m4: Regenerated.
18603 * config.in: Regenerated.
18604 * configure: Regenerated.
18605 * configure.in: Check for proc_service.h, sys/procfs.h,
18606 thread_db.h, and linux/elf.h headrs.
18607 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18608 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18609 Check for -lthread_db and thread support.
18610 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18611 PowerPC, and SuperH.
18612 * i387-fp.c: Constify arguments.
18613 * i387-fp.h: Likewise.
18614 * inferiors.c: (struct thread_info): Renamed from
18615 `struct inferior_info'. Remove PID member. Use generic inferior
18616 list header. All uses updated.
18617 (inferiors, signal_pid): Removed.
18618 (all_threads): New variable.
18619 (get_thread): Define.
18620 (add_inferior_to_list): New function.
18621 (for_each_inferior): New function.
18622 (change_inferior_id): New function.
18623 (add_inferior): Removed.
18624 (remove_inferior): New function.
18625 (add_thread): New function.
18626 (free_one_thread): New function.
18627 (remove_thread): New function.
18628 (clear_inferiors): Use for_each_inferior and free_one_thread.
18629 (find_inferior): New function.
18630 (find_inferior_id): New function.
18631 (inferior_target_data): Update argument type.
18632 (set_inferior_target_data): Likewise.
18633 (inferior_regcache_data): Likewise.
18634 (set_inferior_regcache_data): Likewise.
18635 * linux-low.c (linux_bp_reinsert): Remove.
18636 (all_processes, stopping_threads, using_thrads)
18637 (struct pending_signals, debug_threads, pid_of): New.
18638 (inferior_pid): Replace with macro.
18639 (struct inferior_linux_data): Remove.
18640 (get_stop_pc, add_process): New functions.
18641 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18642 Use add_process and add_thread.
18643 (linux_attach_lwp): New function, based on old linux_attach. Use
18644 add_process and add_thread. Set stop_expected for new threads.
18645 (linux_attach): New function.
18646 (linux_kill_one_process): New function.
18647 (linux_kill): Kill all LWPs.
18648 (linux_thread_alive): Use find_inferior_id.
18649 (check_removed_breakpoints, status_pending_p): New functions.
18650 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18651 Update. Use WNOHANG. Wait for cloned processes also. Update process
18652 struct for the found process.
18653 (linux_wait_for_event): New function.
18654 (linux_wait): Use it. Support LWPs.
18655 (send_sigstop, wait_for_sigstop, stop_all_processes)
18656 (linux_resume_one_process, linux_continue_one_process): New functions.
18657 (linux_resume): Support LWPs.
18658 (REGISTER_RAW_SIZE): Remove.
18659 (fetch_register): Use register_size instead. Call supply_register.
18660 (usr_store_inferior_registers): Likewise. Call collect_register.
18661 Fix recursive case.
18662 (regsets_fetch_inferior_registers): Improve error message.
18663 (regsets_store_inferior_registers): Add debugging.
18664 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18665 (unstopped_p, linux_signal_pid): New functions.
18666 (linux_target_ops): Add linux_signal_pid.
18667 (linux_init_signals): New function.
18668 (initialize_low): Call it. Initialize using_threads.
18669 * regcache.c (inferior_regcache_data): Add valid
18670 flag.
18671 (get_regcache): Fetch registers lazily. Add fetch argument
18672 and update all callers.
18673 (regcache_invalidate_one, regcache_invalidate): New
18674 functions.
18675 (new_register_cache): Renamed from create_register_cache.
18676 Return the new regcache.
18677 (free_register_cache): Change argument to a void *.
18678 (registers_to_string, registers_from_string): Call get_regcache
18679 with fetch flag set.
18680 (register_data): Make static. Pass fetch flag to get_regcache.
18681 (supply_register): Call get_regcache with fetch flag clear.
18682 (collect_register): Call get_regcache with fetch flag set.
18683 (collect_register_as_string): New function.
18684 * regcache.h: Update.
18685 * remote-utils.c (putpkt): Flush after debug output and use
18686 stderr.
18687 Handle input interrupts while waiting for an ACK.
18688 (input_interrupt): Use signal_pid method.
18689 (getpkt): Flush after debug output and use stderr.
18690 (outreg): Use collect_register_as_string.
18691 (new_thread_notify, dead_thread_notify): New functions.
18692 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18693 and general_thread.
18694 (look_up_one_symbol): Flush after debug output.
18695 * server.c (step_thread, server_waiting): New variables.
18696 (start_inferior): Don't use signal_pid. Update call to mywait.
18697 (attach_inferior): Update call to mywait.
18698 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18699 (main): Don't fetch/store registers explicitly. Use
18700 set_desired_inferior. Support proposed ``Hs'' packet. Update
18701 calls to mywait.
18702 * server.h: Update.
18703 (struct inferior_list, struct_inferior_list_entry): New.
18704 * target.c (set_desired_inferior): New.
18705 (write_inferior_memory): Constify.
18706 (mywait): New function.
18707 * target.h: Update.
18708 (struct target_ops): New signal_pid method.
18709 (mywait): Removed macro, added prototype.
18710
18711 * linux-low.h (regset_func): Removed.
18712 (regset_fill_func, regset_store_func): New.
18713 (enum regset_type): New.
18714 (struct regset_info): Add type field. Use new operation types.
18715 (struct linux_target_ops): stop_pc renamed to get_pc.
18716 Add decr_pc_after_break and breakpoint_at.
18717 (get_process, get_thread_proess, get_process_thread)
18718 (strut process_info, all_processes, linux_attach_lwp)
18719 (thread_db_init): New.
18720
18721 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18722 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18723 (the_low_target): Add new members.
18724 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18725 (i386_store_fpxregset): Constify.
18726 (target_regsets): Add new kind identifier.
18727 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18728 (i386_set_pc): Add debugging.
18729 (i386_breakpoint_at): New function.
18730 (the_low_target): Add new members.
18731 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18732 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18733 (mips_breakpoint_at): New.
18734 (the_low_target): Add new members.
18735 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18736 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18737 (the_low_target): Add new members.
18738 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18739 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18740 (the_low_target): Add new members.
18741 * linux-x86-64-low.c (target_regsets): Add new kind
18742 identifier.
18743
18744 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
18745
18746 From Martin Pool <mbp@samba.org>:
18747 * server.c (gdbserver_usage): New function.
18748 (main): Call it.
18749
18750 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
18751
18752 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18753 stop_at -> stop_pc.
18754
18755 2002-05-04 Andrew Cagney <ac131313@redhat.com>
18756
18757 * Makefile.in: Remove obsolete code.
18758
18759 2002-04-24 Michal Ludvig <mludvig@suse.cz>
18760
18761 * linux-low.c (regsets_fetch_inferior_registers),
18762 (regsets_store_inferior_registers): Removed cast to int from
18763 ptrace() calls.
18764 * regcache.h: Added declaration of struct inferior_info.
18765
18766 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
18767
18768 * inferiors.c (struct inferior_info): Add regcache_data.
18769 (add_inferior): Call create_register_cache.
18770 (clear_inferiors): Call free_register_cache.
18771 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18772 * regcache.c (struct inferior_regcache_data): New.
18773 (registers): Remove.
18774 (get_regcache): New function.
18775 (create_register_cache, free_register_cache): New functions.
18776 (set_register_cache): Don't initialize the register cache here.
18777 (registers_to_string, registers_from_string, register_data): Call
18778 get_regcache.
18779 * regcache.h: Add prototypes.
18780 * server.h: Likewise.
18781
18782 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
18783
18784 * mem-break.c: New file.
18785 * mem-break.h: New file.
18786 * Makefile.in: Add mem-break.o rule; update server.h
18787 dependencies.
18788 * inferiors.c (struct inferior_info): Add target_data
18789 member.
18790 (clear_inferiors): Free target_data member if set.
18791 (inferior_target_data, set_inferior_target_data): New functions.
18792 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18793 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18794 * linux-low.c (linux_bp_reinsert): New variable.
18795 (struct inferior_linux_data): New.
18796 (linux_create_inferior): Use set_inferior_target_data.
18797 (linux_attach): Likewise. Call add_inferior.
18798 (linux_wait_for_one_inferior): New function.
18799 (linux_wait): Call it.
18800 (linux_write_memory): Add const.
18801 (initialize_low): Call set_breakpoint_data.
18802 * linux-low.h (struct linux_target_ops): Add breakpoint
18803 handling members.
18804 * server.c (attach_inferior): Remove extra add_inferior
18805 call.
18806 * server.h: Include mem-break.h. Update inferior.c
18807 prototypes.
18808 * target.c (read_inferior_memory)
18809 (write_inferior_memory): New functions.
18810 * target.h (read_inferior_memory)
18811 (write_inferior_memory): Change macros to prototypes.
18812 (struct target_ops): Update comments. Add const to write_memory
18813 definition.
18814
18815 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
18816
18817 * linux-low.c (usr_store_inferior_registers): Support
18818 registers which are allowed to fail to store.
18819 * linux-low.h (linux_target_ops): Likewise.
18820 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18821 (ppc_cannot_store_register): FPSCR may not be storable.
18822
18823 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18824
18825 * server.h: Include <string.h> if HAVE_STRING_H.
18826 * ChangeLog: Correct paths in last ChangeLog entry.
18827
18828 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18829
18830 * linux-low.h: Remove obsolete prototypes.
18831 (struct linux_target_ops): New.
18832 (extern the_low_target): New.
18833 * linux-low.c (num_regs, regmap): Remove declarations.
18834 (register_addr): Use the_low_target explicitly.
18835 (fetch_register): Likewise.
18836 (usr_fetch_inferior_registers): Likewise.
18837 (usr_store_inferior_registers): Likewise.
18838 * linux-arm-low.c (num_regs): Remove.
18839 (arm_num_regs): Define.
18840 (arm_regmap): Renamed from regmap, made static.
18841 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18842 made static.
18843 (arm_cannot_store_register): Renamed from cannot_store_register,
18844 made static.
18845 (the_low_target): New.
18846 * linux-i386-low.c (num_regs): Remove.
18847 (i386_num_regs): Define.
18848 (i386_regmap): Renamed from regmap, made static.
18849 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18850 made static.
18851 (i386_cannot_store_register): Renamed from cannot_store_register,
18852 made static.
18853 (the_low_target): New.
18854 * linux-ia64-low.c (num_regs): Remove.
18855 (ia64_num_regs): Define.
18856 (ia64_regmap): Renamed from regmap, made static.
18857 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18858 made static.
18859 (ia64_cannot_store_register): Renamed from cannot_store_register,
18860 made static.
18861 (the_low_target): New.
18862 * linux-m68k-low.c (num_regs): Remove.
18863 (m68k_num_regs): Define.
18864 (m68k_regmap): Renamed from regmap, made static.
18865 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18866 made static.
18867 (m68k_cannot_store_register): Renamed from cannot_store_register,
18868 made static.
18869 (the_low_target): New.
18870 * linux-mips-low.c (num_regs): Remove.
18871 (mips_num_regs): Define.
18872 (mips_regmap): Renamed from regmap, made static.
18873 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18874 made static.
18875 (mips_cannot_store_register): Renamed from cannot_store_register,
18876 made static.
18877 (the_low_target): New.
18878 * linux-ppc-low.c (num_regs): Remove.
18879 (ppc_num_regs): Define.
18880 (ppc_regmap): Renamed from regmap, made static.
18881 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18882 made static.
18883 (ppc_cannot_store_register): Renamed from cannot_store_register,
18884 made static.
18885 (the_low_target): New.
18886 * linux-s390-low.c (num_regs): Remove.
18887 (s390_num_regs): Define.
18888 (s390_regmap): Renamed from regmap, made static.
18889 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18890 made static.
18891 (s390_cannot_store_register): Renamed from cannot_store_register,
18892 made static.
18893 (the_low_target): New.
18894 * linux-sh-low.c (num_regs): Remove.
18895 (sh_num_regs): Define.
18896 (sh_regmap): Renamed from regmap, made static.
18897 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
18898 made static.
18899 (sh_cannot_store_register): Renamed from cannot_store_register,
18900 made static.
18901 (the_low_target): New.
18902 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
18903 (the_low_target): New.
18904
18905 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18906
18907 * Makefile.in: Add stamp-h target.
18908 * configure.in: Create stamp-h.
18909 * configure: Regenerated.
18910
18911 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18912
18913 * inferiors.c: New file.
18914 * target.c: New file.
18915 * target.h: New file.
18916 * Makefile.in: Add target.o and inferiors.o. Update
18917 dependencies.
18918 * linux-low.c (inferior_pid): New static variable,
18919 moved from server.c.
18920 (linux_create_inferior): Renamed from create_inferior.
18921 Call add_inferior. Return 0 on success instead of a PID.
18922 (linux_attach): Renamed from myattach.
18923 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
18924 (linux_thread_alive): Renamed from mythread_alive.
18925 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
18926 child dies.
18927 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18928 (regsets_store_inferior_registers): Correct error message.
18929 Add missing ``return 0''.
18930 (linux_fetch_registers): Renamed from fetch_inferior_registers.
18931 (linux_store_registers): Renamed from store_inferior_registers.
18932 (linux_read_memory): Renamed from read_inferior_memory.
18933 (linux_write_memory): Renamed from write_inferior_memory.
18934 (linux_target_ops): New structure.
18935 (initialize_low): Call set_target_ops ().
18936 * remote-utils.c (unhexify): New function.
18937 (hexify): New function.
18938 (input_interrupt): Send signals to ``signal_pid''.
18939 * server.c (inferior_pid): Remove.
18940 (start_inferior): Update create_inferior call.
18941 (attach_inferior): Call add_inferior.
18942 (handle_query): New function.
18943 (main): Call handle_query for `q' packets.
18944 * server.h: Include "target.h". Remove obsolete prototypes.
18945 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18946
18947 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18948
18949 * Makefile.in: Add WARN_CFLAGS. Update configury
18950 dependencies.
18951 * configure.in: Check for <string.h>
18952 * configure: Regenerate.
18953 * config.in: Regenerate.
18954 * gdbreplay.c: Include needed system headers.
18955 (remote_open): Remove strchr prototype.
18956 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18957 * regcache.c (supply_register): Change buf argument to const void *.
18958 (supply_register_by_name): Likewise.
18959 (collect_register): Change buf argument to void *.
18960 (collect_register_by_name): Likewise.
18961 * regcache.h: Add missing prototypes.
18962 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18963 * server.c (handle_query): New function.
18964 (attached): New static variable, moved out of main.
18965 (main): Quiet longjmp clobber warnings.
18966 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18967 * utils.c (error): Remove NORETURN.
18968 (fatal): Likewise.
This page took 0.453203 seconds and 4 git commands to generate.