]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdbserver: turn target ops 'pause_all' and 'unpause_all' into methods
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
29e8dc09
TBA
12020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's pause_all and unpause_all ops
4 into methods of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target ops.
7 (class process_target): Add the target ops.
8 (pause_all): Update the macro and rename to...
9 (target_pause_all): ... this.
10 (unpause_all): Update the macro and rename to...
11 (target_unpause_all): ... this.
12 * target.cc (process_target::pause_all): Define.
13 (process_target::unpause_all): Define.
14
15 Update the derived classes and callers below.
16
17 * server.cc (handle_status): Update.
18 * tracepoint.cc (clear_installed_tracepoints): Update.
19 (cmd_qtdp): Update.
20 (cmd_qtstart): Update.
21 (stop_tracing): Update.
22 (cmd_qtstatus): Update.
23 (upload_fast_traceframes): Update.
24 (run_inferior_command): Update.
25 * linux-low.cc (linux_target_ops): Update.
26 (linux_pause_all): Turn into ...
27 (linux_process_target::pause_all): ... this.
28 (linux_unpause_all): Turn into ...
29 (linux_process_target::unpause_all): ... this.
30 (linux_process_target::prepare_to_access_memory): Update.
31 (linux_process_target::done_accessing_memory): Update.
32 * linux-low.h (class linux_process_target): Update.
33 * lynx-low.cc (lynx_target_ops): Update.
34 * nto-low.cc (nto_target_ops): Update.
35 * win32-low.cc (win32_target_ops): Update.
36
4e2e869c
TBA
372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
38
39 Turn process_stratum_target's get_tib_address op into a method of
40 process_target.
41
42 * target.h (struct process_stratum_target): Remove the target op.
43 (class process_target): Add the target op. Also add
44 'supports_get_tib_address'.
45 * target.cc (process_target::get_tib_address): Define.
46 (process_target::supports_get_tib_address): Define.
47
48 Update the derived classes and callers below.
49
50 * server.cc (handle_query): Update.
51 * linux-low.cc (win32_target_ops): Update.
52 * lynx-low.cc (lynx_target_ops): Update.
53 * nto-low.cc (nto_target_ops): Update.
54 * win32-low.cc (win32_target_ops): Update.
55 (win32_process_target::supports_get_tib_address): Define.
56 (win32_get_tib_address): Turn into ...
57 (win32_process_target::get_tib_address): ... this.
58 * win32-low.h (class win32_process_target): Update.
59
68119632
TBA
602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
61
62 Turn process_stratum_target's thread_stopped op into a method of
63 process_target.
64
65 * target.h (struct process_stratum_target): Remove the target op.
66 (class process_target): Add the target op. Also add
67 'supports_thread_stopped'.
68 (target_thread_stopped): Update the macro.
69 * target.cc (process_target::thread_stopped): Define.
70 (process_target::supports_thread_stopped): Define.
71 (prepare_to_access_memory): Update.
72
73 Update the derived classes and callers below.
74
75 * server.cc (queue_stop_reply_callback): Update.
76 * linux-low.cc (linux_target_ops): Update.
77 (linux_process_target::supports_thread_stopped): Define.
78 (linux_thread_stopped): Turn into ...
79 (linux_process_target::thread_stopped): ... this.
80 * linux-low.h (class linux_process_target): Update.
81 * lynx-low.cc (lynx_target_ops): Update.
82 * nto-low.cc (nto_target_ops): Update.
83 * win32-low.cc (win32_target_ops): Update.
84
770d8f6a
TBA
852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
86
87 Turn process_stratum_target's read_pc and write_pc ops into
88 methods of process_target.
89
90 * target.h (struct process_stratum_target): Remove the target ops.
91 (class process_target): Add the target ops.
92 * target.cc (process_target::read_pc): Define.
93 (process_target::write_pc): Define.
94
95 Update the derived classes and callers below.
96
97 * regcache.cc (regcache_read_pc): Update.
98 (regcache_write_pc): Update.
99 * linux-low.cc (linux_target_ops): Update.
100 (linux_read_pc): Turn into ...
101 (linux_process_target::read_pc): ... this.
102 (linux_write_pc): Turn into ...
103 (linux_process_target::write_pc): ... this.
104 * linux-low.h (class linux_process_target): Update.
105 * lynx-low.cc (lynx_target_ops): Update.
106 * nto-low.cc (nto_target_ops): Update.
107 * win32-low.cc (win32_target_ops): Update.
108
290732bf
TBA
1092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
110
111 Turn process_stratum_target's supports_tracepoints op into a
112 method of process_target.
113
114 * target.h (struct process_stratum_target): Remove the target op.
115 (class process_target): Add the target op.
116 (target_supports_tracepoints): Update the macro.
117 * target.cc (process_target::supports_tracepoints): Define.
118
119 Update the derived classes and callers below.
120
121 * linux-low.cc (linux_target_ops): Update.
122 (linux_supports_tracepoints): Turn into ...
123 (linux_process_target::supports_tracepoints): ... this.
124 * linux-low.h (class linux_process_target): Update.
125 * lynx-low.cc (lynx_target_ops): Update.
126 * nto-low.cc (nto_target_ops): Update.
127 * win32-low.cc (win32_target_ops): Update.
128
0df28b1b
TBA
1292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
130
131 Turn process_stratum_target's process_qsupported op into a method
132 of process_target.
133
134 * target.h (struct process_stratum_target): Remove the target op.
135 (class process_target): Add the target op.
136 (target_process_qsupported): Update the macro.
137 * target.cc (process_target::process_qsupported): Define.
138
139 Update the derived classes and callers below.
140
141 * linux-low.cc (linux_target_ops): Update.
142 (linux_process_qsupported): Turn into ...
143 (linux_process_target::process_qsupported): ... this.
144 * linux-low.h (class linux_process_target): Update.
145 * lynx-low.cc (lynx_target_ops): Update.
146 * nto-low.cc (nto_target_ops): Update.
147 * win32-low.cc (win32_target_ops): Update.
148
9da41fda
TBA
1492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
150
151 Turn process_stratum_target's read_loadmap op into a method of
152 process_target.
153
154 * target.h (struct process_stratum_target): Remove the target op.
155 (class process_target): Add the target op. Also add
156 'supports_read_loadmap'.
157 * target.cc (process_target::read_loadmap): Define.
158 (process_target::supports_read_loadmap): Define.
159
160 Update the derived classes and callers below.
161
162 * server.cc (handle_qxfer_fdpic): Update.
163 (handle_query): Update.
164 * linux-low.cc (linux_target_ops): Update.
165 (linux_process_target::supports_read_loadmap): Define.
166 (linux_read_loadmap): Turn into ...
167 (linux_process_target::read_loadmap): ... this.
168 * linux-low.h (class linux_process_target): Update.
169 * lynx-low.cc (lynx_target_ops): Update.
170 * nto-low.cc (nto_target_ops): Update.
171 * win32-low.cc (win32_target_ops): Update.
172
95a45fc1
TBA
1732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
174
175 Turn process_stratum_target's core_of_thread 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.
180 (target_core_of_thread): Update the macro.
181 * target.cc (process_target::core_of_thread): Define.
182
183 Update the derived classes and callers below.
184
185 * linux-low.cc (linux_target_ops): Update.
186 (linux_process_target::core_of_thread): Define.
187 * linux-low.h (class linux_process_target): Update.
188 * lynx-low.cc (lynx_target_ops): Update.
189 * nto-low.cc (nto_target_ops): Update.
190 * win32-low.cc (win32_target_ops): Update.
191
55cf3021
TBA
1922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
193
194 Turn process_stratum_target's handle_monitor_command op into a
195 method of process_target.
196
197 * target.h (struct process_stratum_target): Remove the target op.
198 (class process_target): Add the target op.
199 (target_handle_monitor_command): Update the macro.
200 * target.cc (process_target::handle_monitor_command): Define.
201
202 Update the derived classes and callers below.
203
204 * server.cc (handle_query): Update.
205 * linux-low.cc (linux_target_ops): Update.
206 (linux_process_target::handle_monitor_command): Define.
207 * linux-low.h (class linux_process_target): Update.
208 * lynx-low.cc (lynx_target_ops): Update.
209 * nto-low.cc (nto_target_ops): Update.
210 * win32-low.cc (win32_target_ops): Update.
211
fb00dfce
TBA
2122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
213
214 Turn process_stratum_target's handle_new_gdb_connection op into a
215 method of process_target.
216
217 * target.h (struct process_stratum_target): Remove the target op.
218 (class process_target): Add the target op.
219 (target_handle_new_gdb_connection): Update the macro.
220 * target.cc (process_target::handle_new_gdb_connection): Define.
221
222 Update the derived classes and callers below.
223
224 * linux-low.cc (linux_target_ops): Update.
225 (linux_handle_new_gdb_connection): Turn into ...
226 (linux_process_target::handle_new_gdb_connection): ... this.
227 * linux-low.h (class linux_process_target): Update.
228 * lynx-low.cc (lynx_target_ops): Update.
229 * nto-low.cc (nto_target_ops): Update.
230 * win32-low.cc (win32_target_ops): Update.
231
9690a72a
TBA
2322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233
234 Turn process_stratum_target's supports_fork_events,
235 supports_vfork_events, and supports_exec_events ops into methods
236 of process_target.
237
238 * target.h (struct process_stratum_target): Remove the target ops.
239 (class process_target): Add the target ops.
240 (target_supports_fork_events): Update the macro.
241 (target_supports_vfork_events): Update the macro.
242 (target_supports_exec_events): Update the macro.
243 * target.cc (process_target::supports_fork_events): Define.
244 (process_target::supports_vfork_events): Define.
245 (process_target::supports_exec_events): Define.
246
247 Update the derived classes and callers below.
248
249 * linux-low.cc (linux_target_ops): Update.
250 (linux_supports_fork_events): Turn into ...
251 (linux_process_target::supports_fork_events): ... this.
252 (linux_supports_vfork_events): Turn into ...
253 (linux_process_target::supports_vfork_events): ... this.
254 (linux_supports_exec_events): Turn into ...
255 (linux_process_target::supports_exec_events): ... this.
256 * linux-low.h (class linux_process_target): Update.
257 * lynx-low.cc (lynx_target_ops): Update.
258 * nto-low.cc (nto_target_ops): Update.
259 * win32-low.cc (win32_target_ops): Update.
260
652aef77
TBA
2612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
262
263 Turn process_stratum_target's supports_multi_process op into a
264 method of process_target.
265
266 * target.h (struct process_stratum_target): Remove the target op.
267 (class process_target): Add the target op.
268 * target.cc (process_target::supports_multi_process): Define.
269 (target_supports_multi_process): Update.
270
271 Update the derived classes and callers below.
272
273 * linux-low.cc (linux_target_ops): Update.
274 (linux_supports_multi_process): Turn into ...
275 (linux_process_target::supports_multi_process): ... this.
276 * linux-low.h (class linux_process_target): Update.
277 * lynx-low.cc (lynx_target_ops): Update.
278 * nto-low.cc (nto_target_ops): Update.
279 * win32-low.cc (win32_target_ops): Update.
280
0dc587d4
TBA
2812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
282
283 Turn process_stratum_target's supports_non_stop, async, and
284 start_non_stop ops into methods of process_target.
285
286 * target.h (struct process_stratum_target): Remove the target ops.
287 (class process_target): Add the target ops.
288 (target_supports_non_stop): Update the macro.
289 (target_async): Update the macro.
290 (start_non_stop): Remove declaration.
291 * target.cc (process_target::supports_non_stop): Define.
292 (process_target::async): Define.
293 (process_target::start_non_stop): Define.
294 (start_non_stop): Remove.
295
296 Update the derived classes and callers below.
297
298 * server.cc (handle_qxfer_siginfo): Update.
299 (handle_query): Update.
300 * linux-low.cc (linux_target_ops): Update.
301 (linux_supports_non_stop): Turn into ...
302 (linux_process_target::supports_non_stop): ... this.
303 (linux_async): Turn into ...
304 (linux_process_target::async): ... this.
305 (linux_start_non_stop): Turn into ...
306 (linux_process_target::start_non_stop): ... this.
307 * linux-low.h (class linux_process_target): Update.
308 * lynx-low.cc (lynx_target_ops): Update.
309 * nto-low.cc (nto_target_ops): Update.
310 (nto_supports_non_stop): Remove; rely on the default behavior
311 instead.
312 * win32-low.cc (win32_target_ops): Update.
313
d7abedf7
TBA
3142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315
316 Turn process_stratum_target's qxfer_siginfo op into a method of
317 process_target.
318
319 * target.h (struct process_stratum_target): Remove the target op.
320 (class process_target): Add the target op. Also add
321 'supports_qxfer_siginfo'.
322 * target.cc (process_target::qxfer_siginfo): Define.
323 (process_target::supports_qxfer_siginfo): Define.
324
325 Update the derived classes and callers below.
326
327 * server.cc (handle_qxfer_siginfo): Update.
328 (handle_query): Update.
329 * linux-low.cc (linux_target_ops): Update.
330 (linux_process_target::supports_qxfer_siginfo): Define.
331 (linux_xfer_siginfo): Turn into ...
332 (linux_process_target::qxfer_siginfo): ... this.
333 * linux-low.h (class linux_process_target): Update.
334 * lynx-low.cc (lynx_target_ops): Update.
335 * nto-low.cc (nto_target_ops): Update.
336 * win32-low.cc (win32_target_ops): Update.
337
2d0795ee
TBA
3382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339
340 Turn process_stratum_target's qxfer_osdata op into a method of
341 process_target.
342
343 * target.h (struct process_stratum_target): Remove the target op.
344 (class process_target): Add the target op. Also add
345 'supports_qxfer_osdata'.
346 * target.cc (process_target::qxfer_osdata): Define.
347 (process_target::supports_qxfer_osdata): Define.
348
349 Update the derived classes and callers below.
350
351 * server.cc (handle_qxfer_osdata): Update.
352 (handle_query): Update.
353 * linux-low.cc (linux_target_ops): Update.
354 (linux_process_target::supports_qxfer_osdata): Define.
355 (linux_qxfer_osdata): Turn into ...
356 (linux_process_target::qxfer_osdata): ... this.
357 * linux-low.h (class linux_process_target): Update.
358 * lynx-low.cc (lynx_target_ops): Update.
359 * nto-low.cc (nto_target_ops): Update.
360 * win32-low.cc (win32_target_ops): Update.
361
ea06bbaa
TBA
3622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
363
364 Turn process_stratum_target's hostio_last_error op into a
365 method of process_target.
366
367 * target.h (struct process_stratum_target): Remove the target op.
368 (class process_target): Add the target op.
369 * target.cc: Add "hostio.h" to includes.
370 (process_target::hostio_last_error): Define.
371
372 Update the derived classes and callers below.
373
374 * hostio.cc (hostio_error): Update.
375 * linux-low.cc: Remove "hostio.h" from includes.
376 (linux_target_ops): Update.
377 * lynx-low.cc (lynx_target_ops): Update.
378 * nto-low.cc (nto_target_ops): Update.
379 * win32-low.h (class win32_process_target): Update.
380 * win32-low.cc (win32_target_ops): Update.
381 (wince_hostio_last_error): Turn into ...
382 (win32_process_target::hostio_last_error): ... this.
383
6e3fd7e9
TBA
3842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
385
386 Turn process_stratum_target's get_tls_address op into a method of
387 process_target.
388
389 * target.h (struct process_stratum_target): Remove the target op.
390 (class process_target): Add the target op. Also add
391 'supports_get_tls_address'.
392 * target.cc (process_target::get_tls_address): Define.
393 (process_target::supports_get_tls_address): Define.
394
395 Update the derived classes and callers below.
396
397 * server.cc (handle_query): Update.
398 * linux-low.cc (linux_target_ops): Update.
399 (linux_process_target::supports_get_tls_address): Define.
400 (linux_process_target::get_tls_address): Define.
401 * linux-low.h (class linux_process_target): Update.
402 * lynx-low.cc (lynx_target_ops): Update.
403 * nto-low.cc (nto_target_ops): Update.
404 * win32-low.cc (win32_target_ops): Update.
405
5203ae1e
TBA
4062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
407
408 Turn process_stratum_target's read_offsets op into a method of
409 process_target.
410
411 * target.h (struct process_stratum_target): Remove the target op.
412 (class process_target): Add the target op. Also add
413 'supports_read_offsets'.
414 * target.cc (process_target::read_offsets): Define.
415 (process_target::supports_read_offsets): Define.
416
417 Update the derived classes and callers below.
418
419 * server.cc (handle_query): Update.
420 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
421 (linux_target_ops): Update.
422 (linux_process_target::supports_read_offsets): Define.
423 (linux_read_offsets): Turn into ...
424 (linux_process_target::read_offsets): ... this.
425 * linux-low.h (class linux_process_target): Update.
426 * lynx-low.cc (lynx_target_ops): Update.
427 * nto-low.cc (nto_target_ops): Update.
428 * win32-low.cc (win32_target_ops): Update.
429
6eeb5c55
TBA
4302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
431
432 Turn process_stratum_target's stopped_by_watchpoint and
433 stopped_data_address ops into methods of process_target.
434
435 * target.h (struct process_stratum_target): Remove the target ops.
436 (class process_target): Add the target ops.
437 * target.cc (process_target::stopped_by_watchpoint): Define.
438 (process_target::stopped_data_address): Define.
439
440 Update the derived classes and callers below.
441
442 * remote-utils.cc (prepare_resume_reply): Update.
443 * linux-low.cc (linux_target_ops): Update.
444 (linux_stopped_by_watchpoint): Turn into ...
445 (linux_process_target::stopped_by_watchpoint): ... this.
446 (linux_stopped_data_address): Turn into ...
447 (linux_process_target::stopped_data_address): ... this.
448 * linux-low.h (class linux_process_target): Update.
449 * lynx-low.cc (lynx_target_ops): Update.
450 * nto-low.cc (nto_target_ops): Update.
451 (nto_stopped_by_watchpoint): Turn into ...
452 (nto_process_target::stopped_by_watchpoint): ... this.
453 (nto_stopped_data_address): Turn into ...
454 (nto_process_target::stopped_data_address): ... this.
455 * nto-low.h (class nto_process_target): Update.
456 * win32-low.cc (win32_target_ops): Update.
457 (win32_stopped_by_watchpoint): Turn into ...
458 (win32_process_target::stopped_by_watchpoint): ... this.
459 (win32_stopped_data_address): Turn into ...
460 (win32_process_target::stopped_data_address): ... this.
461 * win32-low.h (class win32_process_target): Update.
462
22aa6223
TBA
4632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
464
465 Turn process_stratum_target's supports_hardware_single_step op into
466 a method of process_target.
467
468 * target.h (struct process_stratum_target): Remove the target op.
469 (class process_target): Add the target op.
470 (target_supports_hardware_single_step): Update the macro.
471 (target_can_do_hardware_single_step): Remove declaration.
472 * target.cc (process_target::supports_hardware_single_step): Define.
473 (target_can_do_hardware_single_step): Remove.
474
475 Update the derived classes and callers below.
476
477 * linux-low.h (class linux_process_target): Update.
478 * linux-low.cc (linux_target_ops): Update.
479 (linux_supports_hardware_single_step): Turn into ...
480 (linux_process_target::supports_hardware_single_step): ... this.
481 * lynx-low.h (class lynx_process_target): Update.
482 * lynx-low.cc (lynx_target_ops): Update.
483 (lynx_process_target::supports_hardware_single_step): Define.
484 * nto-low.h (class nto_process_target): Update.
485 * nto-low.cc (nto_target_ops): Update.
486 (nto_process_target::supports_hardware_single_step): Define.
487 * win32-low.h (class win32_process_target): Update.
488 * win32-low.cc (win32_target_ops): Update.
489 (win32_process_target::supports_hardware_single_step): Define.
490
93fe88b2
TBA
4912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
492
493 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
494 ops into methods of process_target.
495
496 * target.h (struct process_stratum_target): Remove the target ops.
497 (class process_target): Add the target ops.
498 (target_stopped_by_hw_breakpoint): Update the macro.
499 (target_supports_stopped_by_hw_breakpoint): Update the macro.
500 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
501 (process_target::supports_stopped_by_hw_breakpoint): Define.
502
503 Update the derived classes and callers below.
504
505 * linux-low.cc (linux_target_ops): Update.
506 (linux_stopped_by_hw_breakpoint): Turn into ...
507 (linux_process_target::stopped_by_hw_breakpoint): ... this.
508 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
509 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
510 * linux-low.h (class linux_process_target): Update.
511 * lynx-low.cc (lynx_target_ops): Update.
512 * nto-low.cc (nto_target_ops): Update.
513 * win32-low.cc (win32_target_ops): Update.
514
84320c4e
TBA
5152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
516
517 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
518 ops into methods of process_target.
519
520 * target.h (struct process_stratum_target): Remove the target ops.
521 (class process_target): Add the target ops.
522 (target_stopped_by_sw_breakpoint): Update the macro.
523 (target_supports_stopped_by_sw_breakpoint): Update the macro.
524 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
525 (process_target::supports_stopped_by_sw_breakpoint): Define.
526
527 Update the derived classes and callers below.
528
529 * linux-low.cc (linux_target_ops): Update.
530 (linux_stopped_by_sw_breakpoint): Turn into ...
531 (linux_process_target::stopped_by_sw_breakpoint): ... this.
532 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
533 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
534 * linux-low.h (class linux_process_target): Update.
535 * lynx-low.cc (lynx_target_ops): Update.
536 * nto-low.cc (nto_target_ops): Update.
537 * win32-low.cc (win32_target_ops): Update.
538
7e0bde70
TBA
5392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
540
541 Turn process_stratum_target's insert_point and remove_point ops
542 into methods of process_target.
543
544 * target.h (struct process_stratum_target): Remove the target ops.
545 (class process_target): Add the target ops.
546 * target.cc (process_target::insert_point): Define.
547 (process_target::remove_point): Define.
548
549 Update the derived classes and callers below.
550
551 * mem-break.cc (set_raw_breakpoint_at): Update.
552 (delete_raw_breakpoint): Update.
553 (uninsert_raw_breakpoint): Update.
554 (reinsert_raw_breakpoint): Update.
555 * linux-low.cc (linux_target_ops): Update.
556 (linux_insert_point): Turn into ...
557 (linux_process_target::insert_point): ... this.
558 (linux_remove_point): Turn into ...
559 (linux_process_target::remove_point): ... this.
560 * linux-low.h (class linux_process_target): Update.
561 * lynx-low.cc (lynx_target_ops): Update.
562 * nto-low.cc (nto_target_ops): Update.
563 (nto_insert_point): Turn into ...
564 (nto_process_target::insert_point): ... this.
565 (nto_remove_point): Turn into ...
566 (nto_process_target::remove_point): ... this.
567 * nto-low.h (class nto_process_target): Update.
568 * win32-low.cc (win32_target_ops): Update.
569 (win32_insert_point): Turn into ...
570 (win32_process_target::insert_point): ... this.
571 (win32_remove_point): Turn into ...
572 (win32_process_target::remove_point): ... this.
573 * win32-low.h (class win32_process_target): Update.
574
a2b2297a
TBA
5752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
576
577 Turn process_stratum_target's supports_z_point_type op into a
578 method of process_target.
579
580 * target.h (struct process_stratum_target): Remove the target op.
581 (class process_target): Add the target op.
582 * target.cc (process_target::supports_z_point_type): Define.
583
584 Update the derived classes and callers below.
585
586 * mem-break.cc (z_type_supported): Update.
587 * linux-low.cc (linux_target_ops): Update.
588 (linux_supports_z_point_type): Turn into ...
589 (linux_process_target::supports_z_point_type): ... this.
590 * linux-low.h (class linux_process_target): Update.
591 * lynx-low.cc (lynx_target_ops): Update.
592 * nto-low.cc (nto_target_ops): Update.
593 (nto_supports_z_point_type): Turn into ...
594 (nto_process_target::supports_z_point_type): ... this.
595 * nto-low.h (class nto_process_target): Update.
596 * win32-low.cc (win32_target_ops): Update.
597 (win32_supports_z_point_type): Turn into ...
598 (win32_process_target::supports_z_point_type): ... this.
599 * win32-low.h (class win32_process_target): Update.
600
eac215cc
TBA
6012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
602
603 Turn process_stratum_target's read_auxv op into a method of
604 process_target.
605
606 * target.h (class process_stratum_target): Remove the target op.
607 (struct process_target): Add the target op. Also add
608 'supports_read_auxv'.
609 * target.cc (process_target::read_auxv): Define.
610 (process_target::supports_read_auxv): Define.
611
612 Update the derived classes and callers below.
613
614 * server.cc (handle_qxfer_auxv): Update.
615 (handle_query): Update.
616 * linux-low.cc (linux_target_ops): Update.
617 (linux_process_target::supports_read_auxv): Define.
618 (linux_read_auxv): Turn into ...
619 (linux_process_target::read_auxv): ... this.
620 * linux-low.h (class linux_process_target): Update.
621 * lynx-low.cc (lynx_target_ops): Update.
622 * nto-low.cc (nto_target_ops): Update.
623 (nto_process_target::supports_read_auxv): Define.
624 (nto_read_auxv): Turn into ...
625 (nto_process_target::read_auxv): ... this.
626 * nto-low.h (class nto_process_target): Update.
627 * win32-low.cc (win32_target_ops): Update.
628
eb497a2a
TBA
6292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630
631 Turn process_stratum_target's request_interrupt op into a method of
632 process_target.
633
634 * target.h (struct process_stratum_target): Remove the target op.
635 (class process_target): Add the target op.
636
637 Update the derived classes and callers below.
638
639 * remote-utils.cc (putpkt_binary_1): Update.
640 (input_interrupt): Update.
641 (getpkt): Update.
642 * server.cc (handle_v_requests): Update.
643 * linux-low.cc (linux_target_ops): Update.
644 (linux_request_interrupt): Turn into ...
645 (linux_process_target::request_interrupt): ... this.
646 * linux-low.h (class linux_process_target): Update.
647 * lynx-low.cc (lynx_target_ops): Update.
648 (lynx_request_interrupt): Turn into ...
649 (lynx_process_target::request_interrupt): ... this.
650 * lynx-low.h (class lynx_process_target): Update.
651 * nto-low.cc (nto_target_ops): Update.
652 (nto_request_interrupt): Turn into ...
653 (nto_process_target::request_interrupt): ... this.
654 * nto-low.h (class nto_process_target): Update.
655 * win32-low.cc (win32_target_ops): Update.
656 (win32_request_interrupt): Turn into ...
657 (win32_process_target::request_interrupt): ... this.
658 * win32-low.h (class win32_process_target): Update.
659
2a31c7aa
TBA
6602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
661
662 Turn process_stratum_target's look_up_symbols op into a method of
663 process_target.
664
665 * target.h (struct process_stratum_target): Remove the target op.
666 (class process_target): Add the target op.
667 * target.cc (process_target::look_up_symbols): Define.
668
669 Update the derived classes and callers below.
670
671 * server.cc (handle_query): Update.
672 * linux-low.cc (linux_target_ops): Update.
673 (linux_look_up_symbols): Turn into ...
674 (linux_process_target::look_up_symbols): ... this.
675 * linux-low.h (class linux_process_target): Update.
676 * lynx-low.cc (lynx_target_ops): Update.
677 * nto-low.cc (nto_target_ops): Update.
678 * win32-low.cc (win32_target_ops): Update.
679
e2558df3
TBA
6802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
681
682 Turn process_stratum_target's read_memory and write_memory
683 ops into methods of process_target.
684
685 * target.h (struct process_stratum_target): Remove the target ops.
686 (class process_target): Add the target ops.
687
688 Update the derived classes and callers below.
689
690 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
691 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
692 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
693 (arm_get_syscall_trapinfo): Update.
694 * linux-cris-low.cc (cris_breakpoint_at): Update.
695 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
696 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
697 * linux-mips-low.cc (mips_breakpoint_at): Update.
698 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
699 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
700 * linux-sh-low.cc (sh_breakpoint_at): Update.
701 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
702 (sparc_store_gregset_from_stack): Update.
703 (sparc_breakpoint_at): Update.
704 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
705 * linux-tile-low.cc (tile_breakpoint_at): Update.
706 * linux-x86-low.cc (x86_breakpoint_at): Update.
707 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
708 * mem-brea.cc (insert_memory_breakpoint): Update.
709 (validate_inserted_breakpoint): Update.
710 * target.cc (read_inferior_memory): Update.
711 (target_write_memory): Update.
712 * linux-low.cc (linux_target_ops): Update.
713 (linux_read_memory): Make a wrapper around the read_memory target
714 op call.
715 (linux_process_target::read_memory): Rename from linux_read_memory.
716 (linux_write_memory): Turn into ...
717 (linux_process_target::write_memory): ... this.
718 * linux-low.h (class linux_process_target): Update.
719 * lynx-low.cc (lynx_target_ops): Update.
720 (lynx_read_memory): Turn into ...
721 (lynx_process_target::read_memory): ... this.
722 (lynx_write_memory): Turn into ...
723 (lynx_process_target::write_memory): ... this.
724 * lynx-low.h (class lynx_process_target): Update.
725 * nto-low.cc (nto_target_ops): Update.
726 (nto_read_memory): Turn into ...
727 (nto_process_target::read_memory): ... this.
728 (nto_write_memory): Turn into ...
729 (nto_process_target::write_memory): ... this.
730 * nto-low.h (class nto_process_target): Update.
731 * win32-low.cc (win32_target_ops): Update.
732 (win32_read_inferior_memory): Turn into ...
733 (win32_process_target::read_memory): ... this.
734 (win32_write_inferior_memory): Turn into ...
735 (win32_process_target::write_memory): ... this.
736 * win32-low.h (class win32_process_target): Update.
737
79b44087
TBA
7382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
739
740 Turn process_stratum_target's prepare_to_access_memory and
741 done_accessing_memory ops into methods of process_target.
742
743 * target.h (struct process_stratum_target): Remove the target ops.
744 (class process_target): Add the target ops.
745 * target.cc (process_target::prepare_to_access_memory): Define.
746 (process_target::done_accessing_memory): Define.
747 (prepare_to_access_memory): Update.
748 (done_accessing_memory): Update.
749
750 Update the derived classes and callers below.
751
752 * linux-low.cc (linux_target_ops): Update.
753 (linux_prepare_to_access_memory): Turn into ...
754 (linux_process_target::prepare_to_access_memory): ... this.
755 (linux_done_accessing_memory): Turn into ...
756 (linux_process_target::done_accessing_memory): ... this.
757 * linux-low.h (class linux_process_target): Update.
758 * lynx-low.cc (lynx_target_ops): Update.
759 * nto-low.cc (nto_target_ops): Update.
760 * win32-low.cc (win32_target_ops): Update.
761
a5a4d4cd
TBA
7622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
763
764 Turn process_stratum_target's fetch_registers and store_registers
765 ops into methods of process_target.
766
767 * target.h (struct process_stratum_target): Remove the target ops.
768 (class process_target): Add the target ops.
769 (fetch_inferior_registers): Update the macro.
770 (store_inferior_registers): Update the macro.
771
772 Update the derived classes and callers below.
773
774 * linux-low.cc (linux_target_ops): Update.
775 (linux_fetch_registers): Turn into ...
776 (linux_process_target::fetch_registers): ... this.
777 (linux_store_registers): Turn into ...
778 (linux_process_target::store_registers): ... this.
779 * linux-low.h (class linux_process_target): Update.
780 * lynx-low.cc (lynx_target_ops): Update.
781 (lynx_fetch_registers): Turn into ...
782 (lynx_process_target::fetch_registers): ... this.
783 (lynx_store_registers): Turn into ...
784 (lynx_process_target::store_registers): ... this.
785 * lynx-low.h (class lynx_process_target): Update.
786 * nto-low.cc (nto_target_ops): Update.
787 (nto_fetch_registers): Turn into ...
788 (nto_process_target::fetch_registers): ... this.
789 (nto_store_registers): Turn into ...
790 (nto_process_target::store_registers): ... this.
791 * nto-low.h (class nto_process_target): Update.
792 * win32-low.cc (win32_target_ops): Update.
793 (win32_fetch_inferior_registers): Turn into ...
794 (win32_process_target::fetch_registers): ... this.
795 (win32_store_inferior_registers): Turn into ...
796 (win32_process_target::store_registers): ... this.
797 * win32-low.h (class win32_process_target): Update.
798
6532e7e3
TBA
7992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
800
801 Turn process_stratum_target's wait op into a method of
802 process_target.
803
804 * target.h (struct process_stratum_target): Remove the target op.
805 (class process_target): Add the target op.
806
807 Update the derived classes and callers below.
808
809 * target.cc (target_wait): Update.
810 * linux-low.cc (linux_target_ops): Update.
811 (linux_wait): Turn into ...
812 (linux_process_target::wait): ... this.
813 * linux-low.h (class linux_process_target): Update.
814 * lynx-low.cc (lynx_target_ops): Update.
815 (lynx_wait): Turn into ...
816 (lynx_process_target::wait): ... this.
817 * lynx-low.h (class lynx_process_target): Update.
818 * nto-low.cc (nto_target_ops): Update.
819 (nto_wait): Turn into ...
820 (nto_process_target::wait): ... this.
821 * nto-low.h (class nto_process_target): Update.
822 * win32-low.cc (win32_target_ops): Update.
823 (win32_wait): Turn into ...
824 (win32_process_target::wait): ... this.
825 (do_initial_child_stuff): Update.
826 * win32-low.h (class win32_process_target): Update.
827
0e4d7e35
TBA
8282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
829
830 Turn process_stratum_target's resume op into a method of
831 process_target.
832
833 * target.h (struct process_stratum_target): Remove the target op.
834 (class process_target): Add the target op.
835
836 Update the derived classes and callers below.
837
838 * server.cc (resume): Update.
839 * target.cc (target_stop_and_wait): Update.
840 (target_continue_no_signal): Update.
841 (target_continue): Update.
842 * linux-low.cc (linux_target_ops): Update.
843 (linux_resume): Turn into ...
844 (linux_process_target::resume): ... this.
845 * linux-low.h (class linux_process_target): Update.
846 * lynx-low.cc (lynx_target_ops): Update.
847 (lynx_resume): Turn into ...
848 (lynx_process_target::resume): ... this.
849 * lynx-low.h (class lynx_process_target): Update.
850 * nto-low.cc (nto_target_ops): Update.
851 (nto_resume): Turn into ...
852 (nto_process_target::resume): ... this.
853 * nto-low.h (class nto_process_target): Update.
854 * win32-low.cc (win32_target_ops): Update.
855 (win32_resume): Turn into ...
856 (win32_process_target::resume): ... this.
857 (win32_process_target::detach): Update.
858 (do_initial_child_stuff): Update.
859 * win32-low.h (class win32_process_target): Update.
860
13d3d99b
TBA
8612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
862
863 Turn process_stratum_target's thread_alive op into a method of
864 process_target.
865
866 * target.h (struct process_stratum_target): Remove the target op.
867 (class process_target): Add the target op.
868 (mythread_alive): Update the macro.
869
870 Update the derived classes and callers below.
871
872 * linux-low.cc (linux_target_ops): Update.
873 (linux_thread_alive): Turn into ...
874 (linux_process_target::thread_alive): ... this.
875 (wait_for_sigstop): Update.
876 * linux-low.h (class linux_process_target): Update.
877 * lynx-low.cc (lynx_target_ops): Update.
878 (lynx_thread_alive): Turn into ...
879 (lynx_process_target::thread_alive): ... this.
880 * lynx-low.h (class lynx_process_target): Update.
881 * nto-low.cc (nto_target_ops): Update.
882 (nto_thread_alive): Turn into ...
883 (nto_process_target::thread_alive): ... this.
884 * nto-low.h (class nto_process_target): Update.
885 * win32-low.cc (win32_target_ops): Update.
886 (win32_thread_alive): Turn into ...
887 (win32_process_target::thread_alive): ... this.
888 * win32-low.h (class win32_process_target): Update.
889
95a49a39
TBA
8902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
891
892 Turn process_stratum_target's join op into a method of
893 process_target.
894
895 * target.h (struct process_stratum_target): Remove the target op.
896 (class process_target): Add the target op.
897 (join_inferior): Update the macro.
898
899 Update the derived classes and callers below.
900
901 * linux-low.cc (linux_target_ops): Update.
902 (linux_join): Turn into ...
903 (linux_process_target::join): ... this.
904 * linux-low.h (class linux_process_target): Update.
905 * lynx-low.cc (lynx_target_ops): Update.
906 (lynx_join): Turn into ...
907 (lynx_process_target::join): ... this.
908 * lynx-low.h (class lynx_process_target): Update.
909 * nto-low.cc (nto_target_ops): Update.
910 (nto_process_target::join): Define.
911 * nto-low.h (class nto_process_target): Update.
912 * win32-low.cc (win32_target_ops): Update.
913 (win32_join): Turn into ...
914 (win32_process_target::join): ... this.
915 * win32-low.h (class win32_process_target): Update.
916
8adb37b9
TBA
9172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
918
919 Turn process_stratum_target's mourn op into a method of
920 process_target.
921
922 * target.h (struct process_stratum_target): Remove the target op.
923 (class process_target): Add the target op.
924
925 Update the derived classes and callers below.
926
927 * target.cc (target_mourn_inferior): Update.
928 * linux-low.cc (linux_target_ops): Update.
929 (linux_mourn): Turn into ...
930 (linux_process_target::mourn): ... this.
931 (handle_extended_wait): Update.
932 (linux_process_target::kill): Update.
933 (linux_process_target::detach): Update.
934 * linux-low.h (class linux_process_target): Update.
935 * lynx-low.cc (lynx_target_ops): Update.
936 (lynx_mourn): Turn into ...
937 (lynx_process_target::mourn): ... this.
938 * lynx-low.h (class lynx_process_target): Update.
939 * nto-low.cc (nto_target_ops): Update.
940 (nto_mourn): Turn into ...
941 (nto_process_target::mourn): ... this.
942 * nto-low.h (class nto_process_target): Update.
943 * win32-low.cc (win32_target_ops): Update.
944 (win32_mourn): Turn into ...
945 (win32_process_target::mourn): ... this.
946 * win32-low.h (class win32_process_target): Update.
947
9061c9cf
TBA
9482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
949
950 Turn process_stratum_target's detach op into a method of
951 process_target.
952
953 * target.h (struct process_stratum_target): Remove the target op.
954 (class process_target): Add the target op.
955 (detach_inferior): Update the macro.
956
957 Update the derived classes and callers below.
958
959 * linux-low.cc (linux_target_ops): Update.
960 (linux_detach): Turn into ...
961 (linux_process_target::detach): ... this.
962 * linux-low.h (class linux_process_target): Update.
963 * lynx-low.cc (lynx_target_ops): Update.
964 (lynx_detach): Turn into ...
965 (lynx_process_target::detach): ... this.
966 * lynx-low.h (class lynx_process_target): Update.
967 * nto-low.cc (nto_target_ops): Update.
968 (nto_detach): Turn into ...
969 (nto_process_target::detach): ... this.
970 * nto-low.h (class nto_process_target): Update.
971 * win32-low.cc (win32_target_ops): Update.
972 (win32_detach): Turn into ...
973 (win32_process_target::detach): ... this.
974 * win32-low.h (class win32_process_target): Update.
975
c6885a57
TBA
9762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977
978 Turn process_stratum_target's kill op into a method of
979 process_target.
980
981 * target.h (struct process_stratum_target): Remove the target op.
982 (class process_target): Add the target op.
983
984 Update the derived classes and callers below.
985
986 * target.cc (kill_inferior): Update.
987 * linux-low.cc (linux_target_ops): Update.
988 (linux_kill): Turn into ...
989 (linux_process_target::kill): ... this.
990 * linux-low.h (class linux_process_target): Update.
991 * lynx-low.cc (lynx_target_ops): Update.
992 (lynx_kill): Turn into ...
993 (lynx_process_target::kill): ... this.
994 * lynx-low.h (class lynx_process_target): Update.
995 * nto-low.cc (nto_target_ops): Update.
996 (nto_kill): Turn into ...
997 (nto_process_target::kill): ... this.
998 * nto-low.h (class nto_process_target): Update.
999 * win32-low.cc (win32_target_ops): Update.
1000 (win32_kill): Turn into ...
1001 (win32_process_target::kill): ... this.
1002 * win32-low.h (class win32_process_target): Update.
1003
ef03dad8
TBA
10042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1005
1006 Turn process_stratum_target's attach op into a method of
1007 process_target.
1008
1009 * target.h (struct process_stratum_target): Remove the target op.
1010 (class process_target): Add the target op.
1011 (myattach): Update the macro.
1012
1013 Update the derived classes and callers below.
1014
1015 * linux-low.cc (linux_target_ops): Update.
1016 (linux_attach): Turn into ...
1017 (linux_process_target::attach): ... this.
1018 * linux-low.h (class linux_process_target): Update.
1019 * lynx-low.cc (lynx_target_ops): Update.
1020 (lynx_attach): Turn into ...
1021 (lynx_process_target::attach): ... this.
1022 * lynx-low.h (class lynx_process_target): Update.
1023 * nto-low.cc (nto_target_ops): Update.
1024 (nto_attach): Turn into ...
1025 (nto_process_target::attach): ... this.
1026 * nto-low.h (class nto_process_target): Update.
1027 * win32-low.cc (win32_target_ops): Update.
1028 (win32_attach): Turn into ...
1029 (win32_process_target::attach): ... this.
1030 * win32-low.h (class win32_process_target): Update.
1031
6dee9afb
TBA
10322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033
1034 Turn process_stratum_target's post_create_inferior op into a method
1035 of process_target.
1036
1037 * target.h (struct process_stratum_target): Remove the target op.
1038 (class process_target): Add the target op.
1039 (target_post_create_inferior): Update the macro.
1040 * target.cc (process_target::post_create_inferior): Define.
1041
1042 Update the derived classes and callers below.
1043
1044 * linux-low.cc (linux_target_ops): Update.
1045 (linux_post_create_inferior): Turn into ...
1046 (linux_process_target::post_create_inferior): ... this.
1047 * linux-low.h (class linux_process_target): Update.
1048 * lynx-low.cc (lynx_target_ops): Update.
1049 * nto-low.cc (nto_target_ops): Update.
1050 * win32-low.cc (win32_target_ops): Update.
1051
15295543
TBA
10522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1053
1054 Turn process_stratum_target's create_inferior op into a method of
1055 process_target.
1056
1057 * target.h (struct process_stratum_target): Remove the target op.
1058 (class process_target): Add the target op.
1059 (create_inferior): Rename the macro to ...
1060 (target_create_inferior): ... this.
1061
1062 Update the derived classes and callers below.
1063
1064 * server.cc (handle_v_run): Update.
1065 (captured_main): Update.
1066 (process_serial_event): Update.
1067 * linux-low.cc (linux_target_ops): Update.
1068 (linux_create_inferior): Turn into ...
1069 (linux_process_target::create_inferior): ... this.
1070 * linux-low.h (class linux_process_target): Update.
1071 * lynx-low.cc (lynx_target_ops): Update.
1072 (lynx_create_inferior): Turn into ...
1073 (lynx_process_target::create_inferior): ... this.
1074 * lynx-low.h (class lynx_process_target): Update.
1075 * nto-low.cc (nto_target_ops): Update.
1076 (nto_create_inferior): Turn into ...
1077 (nto_process_target::create_inferior): ... this.
1078 * nto-low.h (class nto_process_target): Update.
1079 * win32-low.cc (win32_target_ops): Update.
1080 (win32_create_inferior): Turn into ...
1081 (win32_process_target::create_inferior): ... this.
1082 * win32-low.h (class win32_process_target): Update.
1083
5ef9273d
TBA
10842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1085
1086 * target.h (class process_target): New class definition.
1087 (struct process_stratum_target) <pt>: New field with type
1088 'process_target*'.
1089 * linux-low.h (class linux_process_target): Define as a derived
1090 class of 'process_target'.
1091 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1092 as the 'pt' field.
1093 * lynx-low.h (class lynx_process_target): Define as a derived
1094 class of 'process_target'.
1095 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1096 as the 'pt' field.
1097 * nto-low.h (class nto_process_target): Define as a derived
1098 class of 'process_target'.
1099 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1100 as the 'pt' field.
1101 * win32-low.h (class win32_process_target): Define as a derived
1102 class of 'process_target'.
1103 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1104 as the 'pt' field.
1105
9f1528a1
AB
11062020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * configure: Regenerate.
1109
bf84f706
MR
11102020-02-19 Maciej W. Rozycki <macro@wdc.com>
1111 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * linux-riscv-low.cc: New file.
1114 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1115 and nat/riscv-linux-tdesc.c.
1116 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1117 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1118 Define.
1119
1a627e7e
TT
11202020-02-14 Tom Tromey <tom@tromey.com>
1121
1122 * acinclude.m4: Don't include acx_configure_dir.m4.
1123 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1124 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1125 (all, install-only, uninstall, clean-info, clean)
1126 (maintainer-clean): Don't recurse.
1127 (subdir_do, all-lib): Remove.
1128 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1129 (GNULIB_H): Remove.
1130 (generated_files): Update.
1131 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1132 * configure: Rebuild.
1133 * configure.ac: Don't configure gnulib or libiberty.
1134 (GNULIB): Update.
1135
a9b34532
EZ
11362020-02-14 Eli Zaretskii <eliz@gnu.org>
1137
1138 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1139 preparing the command line for CreateProcess.
1140 (win32_create_inferior): Reflect the program name in debugging
1141 output that shows the process and its command line.
1142
feacfcac
SM
11432020-02-13 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * Makefile.in: Rename source files from .c to .cc.
1146 * %.c: Rename to %.cc.
1147 * configure.ac: Rename server.c to server.cc.
1148 * configure: Re-generate.
1149
06b3c5bd
SM
11502020-02-13 Simon Marchi <simon.marchi@efficios.com>
1151
1152 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1153
052793ad
HD
11542020-02-12 Hannes Domani <ssbssa@yahoo.de>
1155
1156 * win32-low.c (win32_create_inferior): Set signal_pid.
1157
f20e3e82
MR
11582020-02-12 Maciej W. Rozycki <macro@wdc.com>
1159 Pedro Alves <palves@redhat.com>
1160
1161 Skip building gdbserver in a cross-configuration.
1162 * configure.srv: Set $gdbserver_host depending on whether $target
1163 is $host. Use $gdbserver_host instead of $host.
1164
8ddd8e0e
SM
11652020-02-11 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * configure: Re-generate.
1168
898e7f60
SM
11692020-02-11 Simon Marchi <simon.marchi@efficios.com>
1170
1171 * configure: Re-generate.
1172
58df732b
SM
11732020-02-11 Simon Marchi <simon.marchi@efficios.com>
1174
1175 * acinclude.m4: Update warning.m4 path.
1176
7928d571
HD
11772020-02-09 Hannes Domani <ssbssa@yahoo.de>
1178
1179 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1180 (handle_exception): Set siginfo_er.
1181 (win32_xfer_siginfo): New function.
1182
919adfe8
TT
11832020-02-07 Tom Tromey <tom@tromey.com>
1184 Pedro Alves <palves@redhat.com>
1185
1186 * README: Update build documentation.
1187 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1188 host, not target.
1189 * configure.ac: Update paths.
1190 * configure: Rebuild.
1191 * acinclude.m4: Update paths.
1192 * Makefile.in: Update include paths.
1193 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1194 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1195 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1196 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1197 (%-generated.c): Update paths.
1198 * Move entire directory from ../gdb/gdbserver.
1199
287c844a
MR
12002020-01-29 Maciej W. Rozycki <macro@wdc.com>
1201
1202 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1203
548a204f
PFC
12042020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1205
1206 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1207 assignment instead of srv_linux_obj.
1208
a2236a08
HD
12092020-01-28 Hannes Domani <ssbssa@yahoo.de>
1210
1211 * server.c (handle_qxfer_libraries): Write segment-address with
1212 paddress.
1213
bdaed379
HD
12142020-01-24 Hannes Domani <ssbssa@yahoo.de>
1215
1216 * Makefile.in (install-strip): New target.
1217 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1218 * aclocal.m4: Regenerate.
1219 * configure: Regenerate.
1220 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1221
42cd72aa
MR
12222020-01-24 Maciej W. Rozycki <macro@wdc.com>
1223
1224 * Makefile.in (SFILES): Adjust paths to point to real files.
1225 (OBS): Move waitstatus.o to target/waitstatus.o.
1226 (TAGS): Transform paths appropriately.
1227 (%.o): Rename to...
1228 (nat/%.o): ... this pattern rule.
1229 (%.o): Rename to...
1230 (target/%.o): ... this pattern rule.
1231 * configure.srv: Adjust paths throughout to include nat/ prefix
1232 with the revant files.
1233 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1234 * configure: Regenerate.
1235
42ba50ec
MR
12362020-01-24 Maciej W. Rozycki <macro@wdc.com>
1237
1238 * Makefile.in (TAGS): Remove config files from the recipe.
1239
05ea2a05
TT
12402020-01-14 Tom Tromey <tom@tromey.com>
1241
1242 * configure: Rebuild.
1243 * configure.ac: Remove any checks that were added to common.m4.
1244 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1245 lib-link.m4.
1246
01027315
TT
12472020-01-14 Tom Tromey <tom@tromey.com>
1248
1249 * server.h: Include config.h.
1250 * gdbreplay.c: Include config.h.
1251 * configure: Rebuild.
1252 * configure.ac: Don't source common.host.
1253 * acinclude.m4: Update path.
1254 * Makefile.in (INCSUPPORT): New variable.
1255 (INCLUDE_CFLAGS): Add INCSUPPORT.
1256 (SFILES): Update paths.
1257 (version-generated.c): Update path to create-version.sh.
1258 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1259
b2ceabe8
TT
12602020-01-14 Tom Tromey <tom@tromey.com>
1261
1262 * configure.ac (LIBS): Use WIN32APILIBS.
1263 (USE_WIN32API): Don't define.
1264 * configure: Rebuild.
1265
25c51f71
TT
12662020-01-14 Tom Tromey <tom@tromey.com>
1267
1268 * configure: Rebuild.
1269
c0bd321d
SM
12702020-01-13 Simon Marchi <simon.marchi@efficios.com>
1271
1272 * Makefile.in (%-generated.c): Remove rule for files from
1273 regformats/i386.
1274
bb564c58
SM
12752020-01-13 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * configure: Re-generate.
1278
6e37c371
SM
12792020-01-13 Simon Marchi <simon.marchi@efficios.com>
1280
1281 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1282 Define to static.
1283 * tracepoint.c (stop_tracing, flush_trace_buffer,
1284 about_to_request_buffer_space, get_trace_state_variable_value,
1285 set_trace_state_variable_value, gdb_collect): Add declaration.
1286
df4a0200
SM
12872020-01-13 Simon Marchi <simon.marchi@efficios.com>
1288
1289 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1290 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1291 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1292 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1293 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1294 static.
1295
89e94ec9
SM
12962020-01-13 Simon Marchi <simon.marchi@efficios.com>
1297
1298 * inferiors.c: Include gdbsupport/common-inferior.h.
1299
2552728a
SM
13002020-01-13 Simon Marchi <simon.marchi@efficios.com>
1301
1302 * hostio-errno.c: Include hostio.h.
1303
4025fa09
SM
13042020-01-13 Simon Marchi <simon.marchi@efficios.com>
1305
1306 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1307 prerequisite.
1308
c0b0a142
SM
13092020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1310
1311 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1312 * linux-arm-tdesc.h: Include arch/arm.h.
1313
bb1183e2
SM
13142020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1317
f5df0b5f
SM
13182020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1319
1320 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1321 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1322
5b6d1e4f
PA
13232020-01-10 Pedro Alves <palves@redhat.com>
1324
1325 * fork-child.c (post_fork_inferior): Pass target down to
1326 startup_inferior.
1327 * inferiors.c (switch_to_thread): Add process_stratum_target
1328 parameter.
1329 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1330 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1331 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1332 * remote-utils.c (prepare_resume_reply): Pass the target to
1333 switch_to_thread.
1334 * target.c (the_target): Now a process_stratum_target.
1335 (done_accessing_memory): Pass the target to switch_to_thread.
1336 (set_target_ops): Ajust to use process_stratum_target.
1337 * target.h (struct target_ops): Rename to ...
1338 (struct process_stratum_target): ... this.
1339 (the_target, set_target_ops): Adjust.
1340 (prepare_to_access_memory): Adjust comment.
1341 * win32-low.c (child_xfer_memory): Adjust to use
1342 process_stratum_target.
1343 (win32_target_ops): Now a process_stratum_target.
1344
559e7e50
EZ
13452020-01-06 Eli Zaretskii <eliz@gnu.org>
1346 Pedro Alves <palves@redhat.com>
1347
1348 * win32-low.c (get_child_debug_event): Extract the fatal exception
1349 from the exit status and convert to the equivalent Posix signal
1350 number.
1351 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1352 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1353
48189bec
HD
13542020-01-01 Hannes Domani <ssbssa@yahoo.de>
1355
1356 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1357
5dd8bf88
JB
13582020-01-01 Joel Brobecker <brobecker@adacore.com>
1359
1360 * server.c (gdbserver_version): Change copyright year to 2020.
1361 * gdbreplay.c (gdbreplay_version): Likewise.
1362
0ad6b8ee
CB
13632019-12-19 Christian Biesinger <cbiesinger@google.com>
1364
1365 * configure: Regenerate.
1366 * configure.ac: Quote variable arguments of test.
1367
1ee7b812
BE
13682019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1369
1370 * Makefile.in: Fix build with GNU Make 3.81
1371
d9fa87f4
TT
13722019-12-16 Tom Tromey <tromey@adacore.com>
1373
1374 * server.c (get_exec_file): Constify result.
1375
ab7d13f0
CB
13762019-12-10 Christian Biesinger <cbiesinger@google.com>
1377
1378 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1379 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1380 * config.in: Regenerate.
1381 * configure: Regenerate.
1382 * configure.ac: Don't check for strerror.
1383 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1384 Call safe_strerror instead of strerror.
1385 * server.h (strerror): Remove this now-unnecessary declaration.
1386 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1387 strerror.
1388 (gdb_agent_helper_thread): Likewise.
1389 * utils.c (perror_with_name): Likewise.
1390
4da8c3a8
TT
13912019-11-26 Tom Tromey <tom@tromey.com>
1392
1393 * configure, config.in: Rebuild.
1394
21987b9c
TT
13952019-11-26 Tom Tromey <tom@tromey.com>
1396
1397 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1398 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1399 gdb_sigmask.
1400 * configure, config.in: Rebuild.
1401
5e030278
TT
14022019-11-26 Tom Tromey <tom@tromey.com>
1403
1404 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1405 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1406 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1407 * acinclude.m4: Include ax_pthread.m4.
1408 * config.in, configure: Rebuild.
1409
6d91ce9a
CB
14102019-11-26 Christian Biesinger <cbiesinger@google.com>
1411
1412 * debug.c (debug_set_output): Call safe_strerror instead of
1413 strerror.
1414 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1415 (linux_kill_one_lwp): Likewise.
1416 (linux_detach_one_lwp): Likewise.
1417 (linux_wait_for_event_filtered): Likewise.
1418 (store_register): Likewise.
1419 * lynx-low.c (lynx_attach): Likewise.
1420 * mem-break.c (insert_memory_breakpoint): Likewise.
1421 (remove_memory_breakpoint): Likewise.
1422 (delete_fast_tracepoint_jump): Likewise.
1423 (set_fast_tracepoint_jump): Likewise.
1424 (uninsert_fast_tracepoint_jumps_at): Likewise.
1425 (reinsert_fast_tracepoint_jumps_at): Likewise.
1426 * nto-low.c (nto_xfer_memory): Likewise.
1427 (nto_resume): Likewise.
1428
6cdd651f
LM
14292019-11-20 Luis Machado <luis.machado@linaro.org>
1430
1431 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1432 instead of register count.
1433 * tdesc.c (tdesc_contains_feature): New function.
1434 * tdesc.h (tdesc_contains_feature): New prototype.
1435
cd850b40
CB
14362019-11-15 Christian Biesinger <cbiesinger@google.com>
1437
1438 * Makefile.in: Add safe-strerror.c.
1439 * configure: Regenerate.
1440 * configure.ac: Don't source common.host.
1441
5abebf3c
CB
14422019-11-15 Christian Biesinger <cbiesinger@google.com>
1443
1444 * config.in: Regenerate.
1445 * configure: Regenerate.
1446
e06f3d6e
AB
14472019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * ax.c (ax_printf): Handle size_t_arg.
1450
ca3a04f6
CB
14512019-11-06 Christian Biesinger <cbiesinger@google.com>
1452
1453 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1454 * mi/mi-main.c (output_cores): Likewise.
1455 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1456 (linux_xfer_osdata_modules): Likewise.
1457 * remote.c (register_remote_support_xml): Likewise.
1458 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1459 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1460
e48f6033
CB
14612019-11-01 Christian Biesinger <cbiesinger@google.com>
1462
1463 * configure: Regenerate.
1464 * configure.ac: Remove check for strerror_r.
1465
e7e97a2e
CB
14662019-10-31 Christian Biesinger <cbiesinger@google.com>
1467
1468 * config.in: Regenerate.
1469 * configure: Regenerate.
1470 * configure.ac: Also check for strerror_r.
1471
75cafaa6
CB
14722019-10-31 Christian Biesinger <cbiesinger@google.com>
1473
1474 * ax.h (debug_agent): Remove duplicate declaration.
1475
30baf67b
TV
14762019-10-26 Tom de Vries <tdevries@suse.de>
1477
1478 * linux-aarch64-low.c: Fix typos in comments.
1479 * linux-arm-low.c: Same.
1480 * linux-low.c: Same.
1481 * linux-ppc-low.c: Same.
1482 * proc-service.c: Same.
1483 * regcache.h: Same.
1484 * server.c: Same.
1485 * tracepoint.c: Same.
1486 * win32-low.c: Same.
1487
52c64cf7
TT
14882019-10-25 Tom Tromey <tromey@adacore.com>
1489
1490 * utils.c (xstrdup): Remove.
1491
c12d372d
TT
14922019-10-23 Tom Tromey <tom@tromey.com>
1493
1494 * configure, config.in: Rebuild.
1495
4d0b984b
TT
14962019-10-23 Tom Tromey <tom@tromey.com>
1497
1498 * configure: Rebuild.
1499 * acinclude.m4: Use m4_include, not sinclude.
1500
c5adaa19
TT
15012019-10-17 Tom Tromey <tromey@adacore.com>
1502
1503 * configure: Rebuild.
1504 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1505 in AC_CONFIG_FILES invocation.
1506 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1507 invocation.
1508
fec4e896
CB
15092019-10-16 Christian Biesinger <cbiesinger@google.com>
1510
1511 * server.c: Include xml-builtin.h.
1512 (get_xml_features): Don't declare xml_builtins here.
1513
00975ff6
AB
15142019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * Makefile.in: Remove references to vec-ipa.o.
1517
0dc32745
AB
15182019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * Makefile.in: Remove references to vec.c.
1521
3e6ec53a
CB
15222019-10-02 Christian Biesinger <cbiesinger@google.com>
1523
1524 * server.c (server_waiting): Change to bool.
1525 (extended_protocol): Likewise.
1526 (response_needed): Likewise.
1527 (exit_requested): Likewise.
1528 (run_once): Likewise.
1529 (report_no_resumed): Likewise.
1530 (non_stop): Likewise.
1531 (disable_packet_vCont): Likewise.
1532 (disable_packet_Tthread): Likewise.
1533 (disable_packet_qC): Likewise.
1534 (disable_packet_qfThreadInfo): Likewise.
1535 (handle_general_set): Update.
1536 (handle_detach): Update.
1537 (handle_monitor_command): Update.
1538 (handle_query): Update.
1539 (captured_main): Update.
1540 (process_serial_event): Update.
1541 * server.h (server_waiting): Change to bool.
1542 (disable_packet_vCont): Likewise.
1543 (disable_packet_Tthread): Likewise.
1544 (disable_packet_qC): Likewise.
1545 (disable_packet_qfThreadInfo): Likewise.
1546 (run_once): Likewise.
1547 (non_stop): Likewise.
1548 * target.c (target_stop_and_wait): Update.
1549
80fd2826
TT
15502019-10-02 Tom Tromey <tromey@adacore.com>
1551
1552 * Makefile.in (SFILES): Add common-inferior.c.
1553 (OBS): Add common-inferior.o.
1554 * server.c (startup_with_shell): Don't define.
1555
46f29a9a
AB
15562019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1557
1558 * linux-low.c (linux_low_read_btrace): Update for change to
1559 std::vector.
1560
f9d949fb
CB
15612019-09-20 Christian Biesinger <cbiesinger@google.com>
1562
1563 * debug.c (debug_threads): Remove comment in favor of the header.
1564 * debug.h (using_threads): Add declaration.
1565 (debug_threads): Add comment.
1566 * linux-aarch64-low.c: Include debug.h and remove declaration of
1567 debug_threads.
1568 * nto-low.c: Likewise.
1569 * remote-utils.c: Likewise.
1570 * thread-db.c: Likewise.
1571
abf516c6
UW
15722019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1573
1574 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1575 and powerpc-cell64l-ipa.o.
1576 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1577 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1578 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1579 (spu*-*-*): Remove.
1580
1581 * spu-low.c: Remove file.
1582
1583 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1584 (parse_spufs_run): Remove.
1585 (ppc_get_pc): Remove Cell/B.E. support.
1586 (ppc_set_pc): Likewise.
1587 (ppc_breakpoint_at): Likewise.
1588 (ppc_arch_setup): Likewise.
1589 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1590 tdesc_powerpc_cell32l.
1591 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1592 or init_registers_powerpc_cell32l.
1593 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1594 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1595 or init_registers_powerpc_cell32l.
1596 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1597 (init_registers_powerpc_cell32l): Remove prototype.
1598 (init_registers_powerpc_cell64l): Likewise.
1599
1600 * target.h (struct target_ops): Remove qxfer_spu member.
1601 * server.c (handle_qxfer_spu): Remove.
1602 (qxfer_packets): Remove entry for "spu".
1603 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1604 * linux-low.c (SPUFS_MAGIC): Remove.
1605 (spu_enumerate_spu_ids): Remove.
1606 (linux_qxfer_spu): Remove.
1607 (linux_target_ops): Remove qxfer_spu member.
1608 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1609 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1610 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1611
2d41fa11
SDJ
16122019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1613
1614 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1615 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1616 * config.in: Regenerate.
1617 * configure: Regenerate.
1618
d59b55f0
TT
16192019-08-15 Tom Tromey <tromey@adacore.com>
1620
1621 * target.c (target_write_memory): Use gdb::byte_vector.
1622
4196ab2a
TT
16232019-08-15 Tom Tromey <tromey@adacore.com>
1624
1625 * tracepoint.c (write_inferior_data_pointer)
1626 (write_inferior_integer, write_inferior_int8)
1627 (write_inferior_uinteger, m_tracepoint_action_download)
1628 (r_tracepoint_action_download, x_tracepoint_action_download)
1629 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1630 (download_agent_expr, download_tracepoint_1)
1631 (download_trace_state_variables, upload_fast_traceframes): Update.
1632 * server.c (gdb_write_memory): Update.
1633 * remote-utils.c (relocate_instruction): Update.
1634 * proc-service.c (ps_pdwrite): Update.
1635 * mem-break.c (remove_memory_breakpoint)
1636 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1637 (uninsert_fast_tracepoint_jumps_at)
1638 (reinsert_fast_tracepoint_jumps_at): Update.
1639 * linux-x86-low.c (append_insns)
1640 (i386_install_fast_tracepoint_jump_pad)
1641 (amd64_write_goto_address, i386_write_goto_address): Update.
1642 * linux-s390-low.c (append_insns, s390_write_goto_address):
1643 Update.
1644 * linux-ppc-low.c (ppc_relocate_instruction)
1645 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1646 (ppc_write_goto_address): Update.
1647 * linux-aarch64-low.c (append_insns): Update.
1648 * target.h (struct target_ops): Update.
1649 (write_inferior_memory): Don't declare.
1650 * target.c (target_write_memory): Rename from
1651 write_inferior_memory. Remove old target_write_memory.
1652
c6778d00
TT
16532019-08-15 Tom Tromey <tromey@adacore.com>
1654
1655 * target.c (write_inferior_memory): Use std::vector.
1656
404f2902
FCE
16572019-08-06 Frank Ch. Eigler <fche@redhat.com>
1658
1659 PR build/24886
1660 * configure.ac: Drop enable-libmcheck support.
1661 * configure, config.in: Rebuild.
1662 * acinclude.m4: Don't include it.
1663
4c5aa8e0
AH
16642019-07-19 Alan Hayward <alan.hayward@arm.com>
1665
1666 * configure.srv: Remove Arm xml files.
1667
7cc17433
AH
16682019-07-19 Alan Hayward <alan.hayward@arm.com>
1669
1670 * configure.srv: Add new files. Remove xml generated files.
1671 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1672 registers.
1673 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1674 * linux-aarch32-tdesc.c: New file.
1675 * linux-aarch32-tdesc.h: New file.
1676 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1677 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1678 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1679 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1680 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1681 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1682 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1683 (arm_read_description): Call arm_linux_read_description.
1684 (initialize_low_arch): Don't init registers.
1685 * linux-arm-tdesc.c: New file.
1686 * linux-arm-tdesc.h: New file.
1687
166a82be
AH
16882019-07-10 Alan Hayward <alan.hayward@arm.com>
1689
1690 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
1691 Move counter inside for.
1692 (arm_read_description): Check ptrace earlier.
1693 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
1694
268a13a5
TT
16952019-07-09 Tom Tromey <tom@tromey.com>
1696
1697 * configure: Rebuild.
1698 * configure.ac: Change common to gdbsupport.
1699 * acinclude.m4: Change common to gdbsupport.
1700 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
1701 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
1702 common to gdbsupport.
1703 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
1704 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
1705 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
1706 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
1707 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
1708 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
1709 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
1710 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
1711 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
1712 common to gdbsupport.
1713
350fab54
AH
17142019-07-04 Alan Hayward <alan.hayward@arm.com>
1715
1716 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
1717 defines.
1718 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
1719
2b40fda7
AH
17202019-07-04 Alan Hayward <alan.hayward@arm.com>
1721
1722 * configure.srv: Remove legacy xml.
1723 * linux-aarch64-low.c (initialize_low_arch): Remove
1724 initialize_low_tdesc call.
1725 * linux-aarch64-tdesc-selftest.c: Remove file.
1726 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
1727 * linux-x86-low.c (initialize_low_arch): Remove
1728 initialize_low_tdesc call.
1729 * linux-x86-tdesc-selftest.c: Remove file.
1730 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
1731
7d10623d
TV
17322019-06-20 Tom de Vries <tdevries@suse.de>
1733
1734 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
1735 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
1736
8d6a48df
TV
17372019-06-19 Tom de Vries <tdevries@suse.de>
1738
1739 * debug.h (debug_write): Change return type to ssize_t.
1740 * debug.c (debug_write): Same.
1741
73cc7272
TT
17422019-06-14 Tom Tromey <tom@tromey.com>
1743
1744 * configure.ac: Use new path to gnulib.
1745 * configure: Rebuild.
1746 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1747 to gnulib.
1748
08f10e02
TT
17492019-06-11 Tom Tromey <tom@tromey.com>
1750
1751 * Makefile.in (SFILES): Add alloc.c.
1752 (OBS): Add alloc.o.
1753 (IPA_OBJS): Add alloc-ipa.o.
1754 (alloc-ipa.o): New target.
1755 (%.o: ../%.c): New pattern rule.
1756
422186a9
TT
17572019-06-10 Tom Tromey <tromey@adacore.com>
1758
1759 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1760 end warning with a newline.
1761 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1762 newline.
1763 * thread-db.c (attach_thread): Don't end warning with a newline.
1764 (thread_db_notice_clone): Likewise.
1765 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1766 newline.
1767 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1768 end warning with a newline.
1769
b02f78f9
PA
17702019-06-04 Pedro Alves <palves@redhat.com>
1771
1772 * server.c (captured_main): Use make_unique_xstrdup.
1773
88ed7edb
TT
17742019-06-02 Tom Tromey <tom@tromey.com>
1775
1776 * gdbreplay.c (fromhex): Remove.
1777 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1778
33a6bc35
TT
17792019-05-29 Tom Tromey <tromey@adacore.com>
1780
1781 * configure: Rebuild.
1782
e90a813d
KB
17832019-05-06 Kevin Buettner <kevinb@redhat.com>
1784
1785 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1786 sign extension code on 32-bit builds.
1787
353ea2d1
EZ
17882019-05-03 Eli Zaretskii <eliz@gnu.org>
1789
1790 * remote-utils.c:
1791 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1792
b494cdff
TT
17932019-04-19 Tom Tromey <tom@tromey.com>
1794
1795 * server.c (struct vstop_notif): Derive from notif_event.
1796 <base>: Remove.
1797 (queue_stop_reply): Update.
1798 (remove_all_on_match_ptid): Change type. Rewrite.
1799 (discard_queued_stop_replies): Rewrite.
1800 (in_queued_stop_replies_ptid): Change type.
1801 (in_queued_stop_replies): Rewrite.
1802 (notif_stop): Update.
1803 (queue_stop_reply_callback): Update.
1804 (captured_main): Don't call initialize_notif.
1805 (push_stop_notification): Update.
1806 * notif.c (notif_write_event, handle_notif_ack)
1807 (notif_event_enque, notif_push): Update.
1808 (notif_event_xfree, initialize_notif): Remove.
1809 * notif.h (struct notif_event): Include <list>, not
1810 "common/queue.h".
1811 (struct notif_server) <queue>: Now a std::list.
1812 (notif_event_p): Remove typedef.
1813 (initialize_notif): Don't declare.
1814 (struct notif_event): Add virtual destructor.
1815
a7e559cc
AH
18162019-04-17 Alan Hayward <alan.hayward@arm.com>
1817
1818 * ax.c (ax_vdebug): Call debug_printf.
1819 * debug.c (debug_write): New function.
1820 * debug.h (debug_write): New declaration.
1821 * linux-low.c (sigchld_handler): Call debug_write.
1822
aeb2e706
AH
18232019-04-17 Alan Hayward <alan.hayward@arm.com>
1824
1825 * debug.c (debug_set_output): New function.
1826 (debug_vprintf): Send output to debug_file.
1827 (debug_flush): Likewise.
1828 * debug.h (debug_set_output): New declaration.
1829 * server.c (handle_monitor_command): Add debug-file option.
1830 (captured_main): Likewise.
1831
c1bc0935
AH
18322019-04-17 Alan Hayward <alan.hayward@arm.com>
1833
1834 * debug.c (remote_debug): Add definition.
1835 * debug.h (remote_debug): Add declaration.
1836 * hostio.c (remote_debug): Remove declaration.
1837 * remote-utils.c (struct ui_file): Likewise.
1838 (remote_debug): Likewise.
1839 * remote-utils.h (remote_debug): Likewise,
1840 * server.c (remote_debug): Remove definition.
1841
3f52fdbc
KB
18422019-04-10 Kevin Buettner <kevinb@redhat.com>
1843
1844 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1845 when using a 64-bit gdbserver.
1846
b0319eaa
TT
18472019-04-09 Tom Tromey <tromey@adacore.com>
1848
1849 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1850
eedc3f4f
TT
18512019-04-08 Tom Tromey <tom@tromey.com>
1852
1853 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1854 throw.
1855 (linux_resume_one_lwp): Likewise.
1856
230d2906
TT
18572019-04-08 Tom Tromey <tom@tromey.com>
1858
1859 * gdbreplay.c: Update.
1860 * linux-low.c: Update.
1861 * server.c: Update.
1862
a70b8144
TT
18632019-04-08 Tom Tromey <tom@tromey.com>
1864
1865 * server.c: Use C++ exception handling.
1866 * linux-low.c: Use C++ exception handling.
1867 * gdbreplay.c: Use C++ exception handling.
1868
3d6e9d23
TT
18692019-04-08 Tom Tromey <tom@tromey.com>
1870
1871 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1872 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1873 (captured_main, main): Update.
1874 * gdbreplay.c (main): Update.
1875
0570503d
PFC
18762019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1877
1878 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1879 value in argument pointer, return 1 if the entry is found and 0
1880 otherwise. Move comment.
1881 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1882 * linux-low.h (linux_get_auxv): Declare.
1883 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1884
227a9e65
TT
18852019-04-05 Tom Tromey <tromey@adacore.com>
1886
1887 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1888 variables.
1889
69f4c9cc
AH
18902019-03-28 Alan Hayward <alan.hayward@arm.com>
1891
1892 * linux-low.c (AT_HWCAP2): Add define if not already included.
1893
974c89e0
AH
18942019-03-26 Alan Hayward <alan.hayward@arm.com>
1895
1896 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1897 (aarch64_arch_setup): Call linux_get_hwcap.
1898 * linux-arm-low.c (arm_get_hwcap): Remove function.
1899 (arm_read_description): Call linux_get_hwcap.
1900 * linux-low.c (linux_get_auxv): New function.
1901 (linux_get_hwcap): Likewise.
1902 (linux_get_hwcap2): Likewise.
1903 * linux-low.h (linux_get_hwcap): New declaration.
1904 (linux_get_hwcap2): Likewise.
1905 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1906 (ppc_arch_setup): Call linux_get_hwcap.
1907 * linux-s390-low.c (s390_get_hwcap): Remove function.
1908 (s390_arch_setup): Call linux_get_hwcap.
1909
1ef53e6b
AH
19102019-03-22 Alan Hayward <alan.hayward@arm.com>
1911 Jiong Wang <jiong.wang@arm.com>
1912
1913 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1914 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1915 to fail.
1916 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1917
ee4fbcfa
AH
19182019-03-22 Alan Hayward <alan.hayward@arm.com>
1919 Jiong Wang <jiong.wang@arm.com>
1920
1921 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1922 (aarch64_get_hwcap): New function.
1923 (aarch64_arch_setup): Read APIA hwcap.
1924
6dc0ebde
AH
19252019-03-22 Alan Hayward <alan.hayward@arm.com>
1926 Jiong Wang <jiong.wang@arm.com>
1927
1928 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1929 (initialize_low_tracepoint): Likewise.
1930 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1931 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1932 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1933 (aarch64_linux_read_description): Likewise.
1934 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1935
1163a4b7
JB
19362019-03-12 John Baldwin <jhb@FreeBSD.org>
1937
1938 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1939 i386_create_target_description for 'segments' parameter.
1940 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1941 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1942 * win32-i386-low.c (i386_arch_setup): Likewise.
1943
d3a70e03
TT
19442019-03-12 Tom Tromey <tromey@adacore.com>
1945
1946 * linux-low.c (iterate_over_lwps): Update.
1947
37991b4f
TT
19482019-03-06 Tom Tromey <tom@tromey.com>
1949
1950 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1951 (captured_main): Use SCOPE_EXIT.
1952
45950eb6
SDJ
19532019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1954
1955 * configure.srv: Use '$enable_unittest' instead of '$development'
1956 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1957 case.
1958
43ac54fc
TT
19592019-02-27 Tom Tromey <tromey@adacore.com>
1960
1961 * gdbreplay.c (logchar): Handle \r\n.
1962
df0da8a2
AH
19632019-02-07 Alan Hayward <alan.hayward@arm.com>
1964
1965 * linux-low.c (linux_attach): Add process before lwp.
1966 * server.c (attach_inferior): Check if already attached.
1967
1a5c2598
TT
19682019-02-07 Tom Tromey <tom@tromey.com>
1969
1970 * x86-tdesc.h: Rename include guard.
1971 * x86-low.h: Add include guard.
1972 * wincecompat.h: Rename include guard.
1973 * win32-low.h: Add include guard.
1974 * utils.h: Rename include guard.
1975 * tracepoint.h: Rename include guard.
1976 * tdesc.h: Rename include guard.
1977 * target.h: Rename include guard.
1978 * server.h: Rename include guard.
1979 * remote-utils.h: Rename include guard.
1980 * regcache.h: Rename include guard.
1981 * nto-low.h: Rename include guard.
1982 * notif.h: Add include guard.
1983 * mem-break.h: Rename include guard.
1984 * lynx-low.h: Add include guard.
1985 * linux-x86-tdesc.h: Add include guard.
1986 * linux-s390-tdesc.h: Add include guard.
1987 * linux-ppc-tdesc-init.h: Add include guard.
1988 * linux-low.h: Add include guard.
1989 * linux-aarch64-tdesc.h: Add include guard.
1990 * linux-aarch32-low.h: Add include guard.
1991 * inferiors.h: Rename include guard.
1992 * i387-fp.h: Rename include guard.
1993 * hostio.h: Rename include guard.
1994 * gdbthread.h: Rename include guard.
1995 * gdb_proc_service.h: Rename include guard.
1996 * event-loop.h: Rename include guard.
1997 * dll.h: Rename include guard.
1998 * debug.h: Rename include guard.
1999 * ax.h: Rename include guard.
2000
956cc47c
SN
20012018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2002
2003 PR gdb/23985
2004 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2005 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2006
a0707f3c
TT
20072019-01-25 Tom Tromey <tom@tromey.com>
2008
2009 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2010
0747795c
TT
20112019-01-25 Tom Tromey <tom@tromey.com>
2012
2013 * win32-low.c: Fix common/ includes.
2014 * win32-i386-low.c: Fix common/ includes.
2015 * tracepoint.c: Fix common/ includes.
2016 * thread-db.c: Fix common/ includes.
2017 * target.h: Fix common/ includes.
2018 * symbol.c: Fix common/ includes.
2019 * spu-low.c: Fix common/ includes.
2020 * server.h: Fix common/ includes.
2021 * server.c: Fix common/ includes.
2022 * remote-utils.c: Fix common/ includes.
2023 * regcache.h: Fix common/ includes.
2024 * regcache.c: Fix common/ includes.
2025 * nto-x86-low.c: Fix common/ includes.
2026 * notif.h: Fix common/ includes.
2027 * mem-break.h: Fix common/ includes.
2028 * lynx-low.c: Fix common/ includes.
2029 * lynx-i386-low.c: Fix common/ includes.
2030 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2031 * linux-x86-low.c: Fix common/ includes.
2032 * linux-low.c: Fix common/ includes.
2033 * inferiors.h: Fix common/ includes.
2034 * i387-fp.c: Fix common/ includes.
2035 * hostio.c: Fix common/ includes.
2036 * hostio-errno.c: Fix common/ includes.
2037 * gdbthread.h: Fix common/ includes.
2038 * gdbreplay.c: Fix common/ includes.
2039 * fork-child.c: Fix common/ includes.
2040 * event-loop.c: Fix common/ includes.
2041 * ax.c:
2042 (enum gdb_agent_op): Fix common/ includes.
2043
be6d4f74
TT
20442019-01-21 Tom Tromey <tom@tromey.com>
2045
2046 * tracepoint.c: Fix includes.
2047 * remote-utils.c: Fix includes.
2048 * linux-x86-low.c: Fix includes.
2049
66d91b39
JB
20502019-01-01 Joel Brobecker <brobecker@adacore.com>
2051
2052 * gdbreplay.c (gdbreplay_version): Update copyright year in
2053 version message.
2054 * server.c (gdbserver_version): Likewise.
2055
754e3168
AH
20562018-12-05 Alan Hayward <alan.hayward@arm.com>
2057
2058 * linux-low.c (add_lwp): Switch ordering.
2059
d105de22
TT
20602018-11-29 Tom Tromey <tom@tromey.com>
2061
2062 * win32-low.c (win32_join): Take pid, not process.
2063 * target.h (struct target_ops) <join>: Change argument type.
2064 (join_inferior): Change argument name.
2065 * spu-low.c (spu_join): Take pid, not process.
2066 * server.c (handle_detach): Preserve pid before destroying
2067 process.
2068 * lynx-low.c (lynx_join): Take pid, not process.
2069 * linux-low.c (linux_join): Take pid, not process.
2070
50138245
AH
20712018-11-23 Alan Hayward <alan.hayward@arm.com>
2072
2073 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2074 (aarch64_cannot_fetch_register): Likewise.
2075 (struct linux_target_ops): Update references.
2076
64f57f3d
PFC
20772018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2078
2079 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2080
8d619c01
EBM
20812018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2082
2083 * configure.srv (ipa_ppc_linux_regobj): Add
2084 powerpc-isa207-htm-vsx32l-ipa.o and
2085 powerpc-isa207-htm-vsx64l-ipa.o.
2086 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2087 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2088 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2089 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2090 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2091 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2092 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2093 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2094 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2095 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2096 (init_registers_powerpc_isa207_htm_vsx32l)
2097 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2098 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2099 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2100 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2101 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2102 (ppc_store_tm_ctarregset): New functions.
2103 (ppc_regsets): Add entries for HTM regsets.
2104 (ppc_arch_setup): Set htm in features struct when needed. Set
2105 sizes for the HTM regsets.
2106 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2107 (initialize_low_arch): Call
2108 init_registers_powerpc_isa207_htm_vsx32l and
2109 init_registers_powerpc_isa207_htm_vsx64l.
2110 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2111 PPC_TDESC_ISA207_HTM_VSX.
2112 (initialize_low_tracepoint): Call
2113 init_registers_powerpc_isa207_htm_vsx32l and
2114 init_registers_powerpc_isa207_htm_vsx64l.
2115
232bfb86
EBM
21162018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2117
2118 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2119 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2120 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2121 (ppc_store_pmuregset): New functions.
2122 (ppc_regsets): Add entries for ebb and pmu regsets.
2123 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2124 pmu regsets are available. Set sizes for these regsets.
2125
f2cf6173
EBM
21262018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2127
2128 * configure.srv (ipa_ppc_linux_regobj): Add
2129 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2130 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2131 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2132 rs6000/powerpc-isa207-vsx32l.xml, and
2133 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2134 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2135 <PPC_TDESC_ISA207_VSX>: New enum value.
2136 (init_registers_powerpc_isa207_vsx32l): Declare.
2137 (init_registers_powerpc_isa207_vsx64l): Declare.
2138 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2139 (ppc_store_tarregset): New function.
2140 (ppc_regsets): Add entry for the TAR regset.
2141 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2142 size for the TAR regsets.
2143 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2144 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2145 and init_registers_powerpc_isa207_vsx64l.
2146 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2147 (initialize_low_tracepoint): Call
2148 init_registers_powerpc_isa207_vsx32l and
2149 init_registers_powerpc_isa207_vsx64l.
2150
7ca18ed6
EBM
21512018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2152 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2153
2154 * configure.srv (ipa_ppc_linux_regobj): Add
2155 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2156 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2157 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2158 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2159 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2160 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2161 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2162 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2163 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2164 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2165 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2166 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2167 (ppc_hwcap): Add comment.
2168 (ppc_hwcap2): New global.
2169 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2170 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2171 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2172 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2173 when needed. Set sizes for the the DSCR and PPR regsets.
2174 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2175 (initialize_low_arch): Call
2176 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2177 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2178 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2179 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2180 (initialize_low_tracepoint): Call
2181 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2182 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2183
5c849b22
PFC
21842018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2185
2186 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2187
8ecfd7bd
SDJ
21882018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2189 Simon Marchi <simark@simark.ca>
2190
2191 * acinclude.m4: Include "../selftest.m4".
2192 * configure: Regenerate.
2193 * configure.ac: Use "GDB_AC_SELFTEST".
2194 * configure.srv: Use "$enable_unittests" instead of
2195 "$development" when checking whether unit tests have been
2196 enabled.
2197 * server.c (captured_main): Update message informing that
2198 selftests have been disabled.
2199
96643e35
TT
22002018-10-04 Tom Tromey <tom@tromey.com>
2201
2202 * configure: Rebuild.
2203
da4ae14a
TT
22042018-10-04 Tom Tromey <tom@tromey.com>
2205
2206 * server.c (handle_status): Rename inner "thread".
2207 (process_serial_event): Declare "res" in 'm' case.
2208 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2209 (iterate_over_lwps): Rename inner "thread".
2210 (linux_qxfer_libraries_svr4): Rename inner "len".
2211 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2212
7c619dbd
GB
22132018-10-01 Gary Benson <gbenson@redhat.com>
2214
2215 * gdb_proc_service.h: Moved common code to
2216 common/gdb_proc_service.h.
2217
3795e814
GB
22182018-10-01 Gary Benson <gbenson@redhat.com>
2219
2220 * gdb_proc_service.h: Synchronize comments and whitespace with
2221 GDB's version of this file.
2222
49b036f1
TT
22232018-09-25 Tom Tromey <tom@tromey.com>
2224
2225 * configure: Rebuild.
2226 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2227
8ff03f0b
SM
22282018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2231 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2232 ($(IPA_LIB)): Sort IPA_OBJS.
2233
a1cd91dc
SM
22342018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2235
2236 * Makefile.in: Remove references to $(ADD_DEPS).
2237
752312ba
TT
22382018-09-16 Tom Tromey <tom@tromey.com>
2239
2240 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2241 variables.
2242 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2243 variables.
2244
f1628857
TT
22452018-09-05 Tom Tromey <tom@tromey.com>
2246
2247 * configure: Rebuild.
2248
ad202fcc
SM
22492018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 PR build/23399
2252 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2253
d3d8724a
TT
22542018-08-27 Tom Tromey <tom@tromey.com>
2255
2256 PR build/23087:
2257 * configure: Rebuild.
2258
b4f183d2
TT
22592018-08-27 Tom Tromey <tom@tromey.com>
2260
2261 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2262 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2263 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2264 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2265 (s390x_emit_stack_adjust): Add casts to unsigned char.
2266
4e2aa472
SM
22672018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2268
2269 PR gdb/23374
2270 PR gdb/23375
2271 * server.h (struct client_state) <disable_randomization>:
2272 Initialize to 1.
2273
cf4088a9
SM
22742018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2277 variable.
2278 (mips_supply_ptrace_register): Likewise.
2279
a0de763e
TT
22802018-07-22 Tom Tromey <tom@tromey.com>
2281
2282 * configure: Rebuild.
2283
b0a7723d
TT
22842018-07-22 Tom Tromey <tom@tromey.com>
2285
2286 * win32-low.c (win32_create_inferior): Remove unused variables.
2287 * gdbreplay.c (remote_open): Remove unused variable.
2288 * remote-utils.c (remote_prepare): Remove unused variable.
2289 * x86-tdesc.h (X86_TDESC_H): Define.
2290 (amd64_expedite_regs): Define conditionally.
2291 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2292 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2293 * remote-utils.c (readchar): Remove unused variable.
2294
a780ef4f
PA
22952018-07-13 Pedro Alves <palves@redhat.com>
2296
2297 * linux-low.c (linux_kill): Change parameter to process_info
2298 pointer instead of pid. Adjust.
2299 * lynx-low.c (lynx_kill): Likewise.
2300 * nto-low.c (nto_kill): Likewise.
2301 * spu-low.c (spu_kill): Likewise.
2302 * win32-low.c (win32_kill): Likewise.
2303 * server.c (handle_v_kill, kill_inferior_callback)
2304 (detach_or_kill_for_exit): Adjust.
2305 * target.c (kill_inferior): Change parameter to process_info
2306 pointer instead of pid. Adjust.
2307 * target.h (struct target_ops) <kill>: Change parameter to
2308 process_info pointer instead of pid. Adjust all implementations
2309 and callers.
2310 (kill_inferior): Likewise.
2311
ef2ddb33
PA
23122018-07-13 Pedro Alves <palves@redhat.com>
2313
2314 * linux-low.c (linux_detach, linux_join): Change parameter to
2315 process_info pointer instead of pid. Adjust.
2316 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2317 * nto-low.c (nto_detach): Likewise.
2318 * spu-low.c (spu_detach, spu_join): Likewise.
2319 * win32-low.c (win32_detach, win32_join): Likewise.
2320 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2321 * target.h (struct target_ops) <detach, join>: Change parameter to
2322 process_info pointer instead of pid. Adjust all implementations
2323 and callers.
2324 (detach_inferior, join_inferior): Rename 'pid' parameter to
2325 'proc'.
2326
c7ab0aef
SDJ
23272018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2328 Jan Kratochvil <jan.kratochvil@redhat.com>
2329 Paul Fertser <fercerpav@gmail.com>
2330 Tsutomu Seki <sekiriki@gmail.com>
2331
2332 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2333 (OBS): Add 'common/netstuff.o'.
2334 (GDBREPLAY_OBS): Likewise.
2335 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2336 (remote_open): Implement support for IPv6
2337 connections.
2338 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2339 and 'wspiapi.h'.
2340 (handle_accept_event): Accept connections from IPv6 sources.
2341 (remote_prepare): Handle IPv6-style hostnames; implement
2342 support for IPv6 connections.
2343 (remote_open): Implement support for printing connections from
2344 IPv6 sources.
2345
31445d10
PA
23462018-07-11 Pedro Alves <palves@redhat.com>
2347
2348 PR gdb/23377
2349 * mem-break.c (any_persistent_commands): Add process_info
2350 parameter and use it instead of relying on the current process.
2351 Change return type to bool.
2352 * mem-break.h (any_persistent_commands): Add process_info
2353 parameter and change return type to bool.
2354 * server.c (handle_detach): Remove require_running_or_return call.
2355 Look up the process_info for the process we're about to detach.
2356 If not found, return back error to GDB. Adjust
2357 any_persistent_commands call to pass down a process pointer.
2358
cb197132
PA
23592018-07-11 Pedro Alves <palves@redhat.com>
2360
2361 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2362 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2363 instead of collect_register_by_name.
2364 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2365 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2366
1b919490
VB
23672018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2368 Pedro Alves <palves@redhat.com>
2369
2370 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2371
d7e15655
TT
23722018-07-03 Tom Tromey <tom@tromey.com>
2373
2374 * linux-low.c: Update.
2375 * lynx-low.c: Update.
2376 * mem-break.c: Update.
2377 * nto-low.c: Update.
2378 * remote-utils.c: Update.
2379 * server.c: Update.
2380 * spu-low.c: Update.
2381 * target.c: Update.
2382 * win32-low.c: Update.
2383
26a57c92
TT
23842018-07-03 Tom Tromey <tom@tromey.com>
2385
2386 * server.c: Update.
2387
0e998d96
TT
23882018-07-03 Tom Tromey <tom@tromey.com>
2389
2390 * linux-low.c: Update.
2391
cc6bcb54
TT
23922018-07-03 Tom Tromey <tom@tromey.com>
2393
2394 * target.c: Update.
2395
e38504b3
TT
23962018-07-03 Tom Tromey <tom@tromey.com>
2397
2398 * linux-low.c: Update.
2399 * linux-mips-low.c: Update.
2400 * lynx-low.c: Update.
2401 * nto-low.c: Update.
2402 * remote-utils.c: Update.
2403 * server.c: Update.
2404 * spu-low.c: Update.
2405 * target.c: Update.
2406 * thread-db.c: Update.
2407
e99b03dc
TT
24082018-07-03 Tom Tromey <tom@tromey.com>
2409
2410 * linux-low.c: Update.
2411 * linux-mips-low.c: Update.
2412 * lynx-low.c: Update.
2413 * mem-break.c: Update.
2414 * nto-low.c: Update.
2415 * remote-utils.c: Update.
2416 * server.c: Update.
2417 * spu-low.c: Update.
2418 * target.c: Update.
2419 * tracepoint.c: Update.
2420
f2907e49
TT
24212018-07-03 Tom Tromey <tom@tromey.com>
2422
2423 * linux-low.c: Update.
2424 * linux-ppc-low.c: Update.
2425 * linux-x86-low.c: Update.
2426 * proc-service.c: Update.
2427 * server.c: Update.
2428 * spu-low.c: Update.
2429 * thread-db.c: Update.
2430 * win32-low.c: Update.
2431
fd79271b
TT
24322018-07-03 Tom Tromey <tom@tromey.com>
2433
2434 * linux-low.c: Update.
2435 * lynx-low.c: Update.
2436 * nto-low.c: Update.
2437 * remote-utils.c: Update.
2438 * spu-low.c: Update.
2439 * thread-db.c: Update.
2440 * win32-low.c: Update.
2441
c0867626
SDJ
24422018-06-29 Joel Brobecker <brobecker@adacore.com>
2443
2444 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2445 parameter in call to 'amd64_create_target_description'.
2446
2512d7ef
JK
24472018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2448
2449 * x86-tdesc.h: Remove executable permission flag.
2450
d0ac1c44
SM
24512018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2452
2453 * configure.ac: Remove AC_PREREQ, add missing quoting.
2454 * configure: Re-generate.
2455 * config.in: Re-generate.
2456 * aclocal.m4: Re-generate.
2457
c4eb05ff
SM
24582018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2459
2460 * tracepoint.h (current_traceframe): Remove declaration.
2461
02895270
AH
24622018-06-18 Alan Hayward <alan.hayward@arm.com>
2463
2464 * linux-aarch64-low.c (is_sve_tdesc): New function.
2465 (aarch64_sve_regs_copy_to_regcache): Likewise.
2466 (aarch64_sve_regs_copy_from_regcache): Likewise.
2467 (aarch64_regs_info): Add SVE checks.
2468 (initialize_low_arch): Initialize SVE.
2469
e9902bfc
AH
24702018-06-18 Alan Hayward <alan.hayward@arm.com>
2471
2472 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2473
fefa175e
AH
24742018-06-11 Alan Hayward <alan.hayward@arm.com>
2475
2476 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2477 (initialize_low_tracepoint): Likewise
2478 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2479 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2480 param.
2481 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2482 checks.
2483 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2484
b91ad3ff
AH
24852018-06-11 Alan Hayward <alan.hayward@arm.com>
2486
2487 * server.h (PBUFSIZ): Increase size
2488
f868386e
AH
24892018-06-11 Alan Hayward <alan.hayward@arm.com>
2490
2491 * regcache.c (regcache::raw_compare): New function.
2492 * regcache.h (regcache::raw_compare): New declaration.
2493
9c861883
AH
24942018-06-11 Alan Hayward <alan.hayward@arm.com>
2495
2496 * regcache.c (new_register_cache): Use new.
2497 (free_register_cache): Use delete.
2498 (register_data): Use const.
2499 (supply_register): Move body inside regcache.
2500 (regcache::raw_supply): New override function.
2501 (collect_register): Move body inside regcache.
2502 (regcache::raw_collect): New override function.
2503 (regcache::get_register_status): New override function.
2504 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2505
40591844
TT
25062018-06-09 Tom Tromey <tom@tromey.com>
2507
2508 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2509 declare queue.
2510 (event_queue): Use std::queue.
2511 (gdb_event_xfree): Remove.
2512 (initialize_event_loop, process_event, wait_for_event): Update.
2513
6341380d
SC
25142018-06-08 Stan Cox <scox@redhat.com>
2515
2516 * win32-low.c (win32_create_inferior): last_ptid and last_status
2517 moved to client_state.
2518
03349c93
PA
25192018-06-08 Pedro Alves <palves@redhat.com>
2520
2521 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2522 common/common-exceptions.o, common/common-utils.o,
2523 common/errors.o, common/print-utils.o and utils.o.
2524 * gdbreplay.c: Include "common-defs.h" instead of the two
2525 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2526 string.h or alloca.h.
2527 (perror_with_name): Delete.
2528 (remote_open): Use xstrdup instead of strdup.
2529 (main): Rename to ...
2530 (captured_main): ... this.
2531 (main): New.
2532
8dcc53b3
TT
25332018-06-08 Tom Tromey <tom@tromey.com>
2534
2535 * linux-low.c (linux_low_read_btrace): Update.
2536
c12a5089
SC
25372018-06-04 Stan Cox <scox@redhat.com>
2538
2539 * server.h (struct client_state): New.
2540 * server.c (cont_thread, general_thread, multi_process)
2541 (report_fork_events, report_vfork_events, report_exec_events)
2542 (report_thread_events, swbreak_feature, hwbreak_feature)
2543 (vCont_supported, disable_randomization, pass_signals)
2544 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2545 Moved to client_state.
2546 * remote-utils.c (remote_debug, noack_mode)
2547 (transport_is_reliable): Moved to client_state.
2548 * tracepoint.c (current_traceframe): Moved to client_state.
2549
2550 Update all callers.
2551 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2552 linux-low.c, remote-utils.h, target.c: Use client_state.
2553
122394f1
AH
25542018-05-31 Alan Hayward <alan.hayward@arm.com>
2555
2556 * configure.srv: Add new c/h file.
2557
95228a0d
AH
25582018-05-31 Alan Hayward <alan.hayward@arm.com>
2559
2560 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2561 null VQ.
2562
d8dab6c3
MR
25632018-05-25 Maciej W. Rozycki <macro@mips.com>
2564
2565 * gdb.arch/mips-fpregset-core.exp: New test.
2566 * gdb.arch/mips-fpregset-core.c: New test source.
2567
81e25b7c
EK
25682018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2569
2570 PR server/23198
2571 * hostio.c (require_int): Do not report overflow for integers
2572 between 0xfffffff and 0x7fffffff.
2573
7e947ad3
MR
25742018-05-22 Maciej W. Rozycki <macro@mips.com>
2575
2576 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2577 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2578 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2579 functions.
2580 (the_low_target): Wire them.
2581
1d75a658
PFC
25822018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2583
2584 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2585 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2586 mode. Call collect_register_by_name with vscr using
2587 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2588 (ppc_store_vrregset): Add and set vscr_offset variable as in
2589 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2590 vscr_offset.
2591
d078308a
PFC
25922018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2593
2594 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2595 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2596 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2597
7273b5fc
PFC
25982018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2599
2600 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2601 (ppc_store_vsxregset): Likewise.
2602 (ppc_fill_vrregset): Likewise.
2603 (ppc_store_vrregset): Likewise.
2604 (ppc_fill_evrregset): Likewise.
2605 (ppc_store_evrregset): Likewise.
2606 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2607 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2608 needed.
2609
2e077f5e
PFC
26102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2611
2612 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2613 wordsize of the inferior. Call ppc_linux_target_wordsize.
2614
bd64614e
PFC
26152018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2616
2617 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2618 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2619 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2620 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2621 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2622 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2623 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2624 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2625 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2626 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2627 (tdesc_powerpc_e500l): Remove.
2628 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2629 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2630 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2631 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2632 linux-ppc-tdesc.h.
2633 (ppc_arch_setup): Remove target description matching code. Fill a
2634 ppc_linux_features struct and call ppc_linux_match_description
2635 with it.
2636
75d74cca
MR
26372018-05-22 Maciej W. Rozycki <macro@mips.com>
2638
2639 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2640 width of the requested register exceeds the width of the
2641 `ptrace' data type.
2642 (mips_cannot_store_register): Likewise.
2643
e4439e43
MR
26442018-05-21 Maciej W. Rozycki <macro@mips.com>
2645
2646 * linux-mips-low.c (mips_fetch_register): New function. Update
2647 preceding comment.
2648 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2649 (the_low_target): Wire `mips_fetch_register'.
2650
55271bf9
JB
26512018-05-10 Joel Brobecker <brobecker@adacore.com>
2652
2653 * lynx-i386-low.c (LYNXOS_178): New macro.
2654 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2655 the layout on LynxOS-178.
2656 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2657 handle floating point registers that are not supported by
2658 LynxOS-178.
2659
1a34f210
TT
26602018-05-10 Tom Tromey <tom@tromey.com>
2661
2662 * configure: Rebuild.
2663
190852c8
JB
26642018-05-10 Joel Brobecker <brobecker@adacore.com>
2665
2666 PR server/23158:
2667 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2668 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2669 Use it to set the expedite_regs field in the given tdesc.
2670 * x86-tdesc.h: New file.
2671 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2672 Adjust following the addition of the new expedite_regs parameter
2673 to init_target_desc.
2674 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2675 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2676 (i386_linux_read_description, amd64_linux_read_description):
2677 Adjust following the addition of the new expedite_regs parameter
2678 to init_target_desc.
2679 * lynx-i386-low.c: #include "x86-tdesc.h".
2680 (lynx_i386_arch_setup): Adjust following the addition of the new
2681 expedite_regs parameter to init_target_desc.
2682 * nto-x86-low.c: #include "x86-tdesc.h".
2683 (nto_x86_arch_setup): Adjust following the addition of the new
2684 expedite_regs parameter to init_target_desc.
2685 * win32-i386-low.c: #include "x86-tdesc.h".
2686 (i386_arch_setup): Adjust following the addition of the new
2687 expedite_regs parameter to init_target_desc.
2688
7dbac825
JB
26892018-05-10 Joel Brobecker <brobecker@adacore.com>
2690
2691 PR server/23158:
2692 * win32-low.c (win32_create_inferior): Add call to my_wait
2693 setting last_status global.
2694
906994d9
JB
26952018-05-10 Joel Brobecker <brobecker@adacore.com>
2696
2697 PR server/23158:
2698 * win32-low.c (create_process): Only call gdb_tilde_expand if
2699 inferior_cwd is not NULL.
2700
8ee22052
AB
27012018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
2704 registers to the cache if their values have changed.
2705 (i387_xsave_to_cache): Provide default values for x87 control
2706 registers when these features are available, but disabled.
2707 * regcache.c (supply_register_by_name_zeroed): New function.
2708 * regcache.h (supply_register_by_name_zeroed): Declare new
2709 function.
2710
aff689d3
TT
27112018-05-07 Tom Tromey <tom@tromey.com>
2712
2713 * configure: Rebuild.
2714
85e26832
TT
27152018-05-04 Tom Tromey <tom@tromey.com>
2716
2717 * configure: Rebuild.
2718
a3b60e45
JK
27192018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2720 Pedro Alves <palves@redhat.com>
2721
2722 * linux-aarch64-low.c (aarch64_stopped_data_address):
2723 Likewise.
2724
632e107b
TT
27252018-04-27 Tom Tromey <tom@tromey.com>
2726
2727 * configure: Rebuild.
2728
458412c3
TT
27292018-04-23 Tom Tromey <tom@tromey.com>
2730
2731 * configure: Rebuild.
2732
f31c089e
SM
27332018-04-19 Simon Marchi <simon.marchi@ericsson.com>
2734
2735 * Makefile.in (depcomp): Add "..".
2736 (all_deps_files): New and use it.
2737
b319b098
AH
27382018-04-18 Alan Hayward <alan.hayward@arm.com>
2739
2740 * configure.srv (aarch64*-*-linux*): Don't include xml.
2741 (i[34567]86-*-cygwin*): Likewise.
2742 (i[34567]86-*-linux*): Likewise.
2743 (i[34567]86-*-lynxos*): Likewise.
2744 (i[34567]86-*-mingw32ce*): Likewise.
2745 (i[34567]86-*-mingw*): Likewise.
2746 (i[34567]86-*-nto*): Likewise.
2747 (tic6x-*-uclinux): Likewise.
2748 (x86_64-*-linux*): Likewise.
2749 (x86_64-*-mingw*): Likewise.
2750 (x86_64-*-cygwin*): Likewise.
2751
3b74854b
AH
27522018-04-18 Alan Hayward <alan.hayward@arm.com>
2753
2754 * tdesc.c: Remove xml parameter.
2755
e98577a9
AH
27562018-04-18 Alan Hayward <alan.hayward@arm.com>
2757
2758 * server.c (get_features_xml): Remove cast.
2759 * tdesc.c (void target_desc::accept): Fill in function.
2760 (tdesc_get_features_xml): Remove old xml creation.
2761 (print_xml_feature::visit_pre): Add xml vistor.
2762 * tdesc.h (struct target_desc): Make xmltarget mutable.
2763 (tdesc_get_features_xml): Remove declaration.
2764
d278f585
AH
27652018-04-18 Alan Hayward <alan.hayward@arm.com>
2766
2767 * tdesc.c (tdesc_architecture_name): Add new function.
2768 (tdesc_osabi_name): Likewise.
2769 (tdesc_get_features_xml): Use new functions.
2770
eee8a18d
AH
27712018-04-18 Alan Hayward <alan.hayward@arm.com>
2772
2773 * tdesc.c (tdesc_create_flags): Remove.
2774 (tdesc_add_flag): Likewise.
2775 (tdesc_named_type): Likewise.
2776 (tdesc_create_union): Likewise.
2777 (tdesc_create_struct): Likewise.
2778 (tdesc_create_vector): Likewise.
2779 (tdesc_add_bitfield): Likewise.
2780 (tdesc_add_field): Likewise.
2781 (tdesc_set_struct_size): Likewise.
2782
82ec9bc7
AH
27832018-04-18 Alan Hayward <alan.hayward@arm.com>
2784
2785 * tdesc.c (~target_desc): Remove implictly deleted items.
2786 (init_target_desc): Iterate all features.
2787 (tdesc_get_features_xml): Use vector.
2788 (tdesc_create_feature): Create feature.
2789 * tdesc.h (tdesc_feature) Remove
2790 (target_desc): Add features.
2791
ea3e7d71
AH
27922018-04-18 Alan Hayward <alan.hayward@arm.com>
2793
2794 * Makefile.in: Add common/tdesc.c
2795 * tdesc.c (init_target_desc): init all reg_defs from register
2796 vector.
2797 (tdesc_create_reg): Create tdesc_reg.
2798 * tdesc.h (tdesc_feature): Add register vector.
2799
17d08cd4
SM
28002018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2801
2802 * tdesc.h (struct target_desc) <features>: Change type to
2803 std::vector<std::string>.
2804 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2805 changes.
2806 (tdesc_get_features_xml): Likewise.
2807 (tdesc_create_feature): Likewise.
2808
5cd3e386
AH
28092018-03-26 Alan Hayward <alan.hayward@arm.com>
2810
2811 * regcache.c (find_register_by_number): Return a ref.
2812 (find_regno): Use references.
2813 (register_size): Likewise.
2814 (register_data): Likewise.
2815 * tdesc.c (target_desc::~target_desc): Remove free calls.
2816 (target_desc::operator==): Use std::vector compare.
2817 (init_target_desc): Use reference.
2818 (tdesc_create_reg): Use reg constructors.
2819 * tdesc.h (struct target_desc): Replace pointer with object.
2820
dff7492c
AH
28212018-03-23 Alan Hayward <alan.hayward@arm.com>
2822
2823 * regcache.c (find_register_by_number): Make static.
2824 (find_regno): Use find_register_by_number
2825 * regcache.h (struct reg): Remove declaration.
2826
d80e5242
AH
28272018-03-23 Alan Hayward <alan.hayward@arm.com>
2828
2829 * tdesc.c (target_desc::~target_desc): Move to here.
2830 (target_desc::operator==): Likewise.
2831 * tdesc.h (target_desc::~target_desc): Move from here.
2832 (target_desc::operator==): Likewise.
2833
f69c5afb
AA
28342018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2835
2836 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2837
ce29f843
AA
28382018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2839
2840 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2841 S390_TDESC_GS.
2842 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2843 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2844 and init_registers_s390_gs_linux64.
2845
c49bd90b
AA
28462018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2847
2848 * linux-s390-low.c (s390_fill_gs): Remove function.
2849 (s390_fill_gsbc): Remove function.
2850 (s390_regsets): Set fill functions for the guarded storage regsets
2851 to NULL.
2852
7edb9bd3
AA
28532018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2854
2855 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2856 the word size. Add comment.
2857 (s390_get_wordsize): New function.
2858 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2859 pswm with it. Instead, use s390_get_wordsize to determine the
2860 word size first and derive the correct tdesc from that directly.
2861
39be3c7e
SM
28622018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * Makefile.in: Include silent-rules.mk.
2865 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2866 (COMPILE): Add ECHO_CXX.
2867 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2868 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2869 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2870 (version-generated.c): Add ECHO_GEN.
2871 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2872 (IPAGENT_COMPILE): Add ECHO_CXX.
2873 (%-generated.c): Add ECHO_REGDAT.
2874
3ae9ce5d
TT
28752018-03-14 Tom Tromey <tom@tromey.com>
2876
2877 PR cli/14977:
2878 * ax.c (ax_printf): Special case for NULL.
2879
e6a58aa8
SM
28802018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2881
2882 * linux-low.c (linux_qxfer_libraries_svr4): Use
2883 xml_escape_text_append.
2884
f6e8a41e
SM
28852018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2886
2887 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2888
b9671caf
SM
28892018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2890
2891 * server.c (handle_general_set): Remove unnecessary xstrdup.
2892
e80aaf61
SM
28932018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2894
2895 * server.c (parse_debug_format_options): Adjust to
2896 delim_string_to_char_ptr_vec changes.
2897 * thread-db.c (thread_db_load_search): Adjust to
2898 dirnames_to_char_ptr_vec changes.
2899
b1223e78
MM
29002018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2901
2902 * target.h (target_enable_btrace, target_disable_btrace)
2903 (target_read_btrace, target_read_btrace_conf): Turn macro into
2904 inline function. Throw error if target method is not defined.
2905 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2906 check for btrace target method. Be prepared to handle exceptions
2907 from btrace target methods.
2908
81561546
SDJ
29092018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2910
2911 * server.c (captured_main): Change order of error message printed
2912 when the current working directory cannot be found.
2913
25e3c82c
SDJ
29142018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2915
2916 * server.c: Include "filenames.h" and "pathstuff.h".
2917 (program_name): Delete variable.
2918 (program_path): New anonymous class.
2919 (get_exec_wrapper): Use "program_path" instead of
2920 "program_name".
2921 (handle_v_run): Likewise.
2922 (captured_main): Likewise.
2923 (process_serial_event): Likewise.
2924
b4987c95
SDJ
29252018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2926
2927 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2928 (OBJS): Add "pathstuff.o".
2929 * server.c (current_directory): New global variable.
2930 (captured_main): Initialize "current_directory".
2931
f46cd62a
AH
29322018-02-26 Alan Hayward <alan.hayward@arm.com>
2933
2934 * tdesc.c: Use common/tdesc.h.
2935 * tdesc.h: Likewise.
2936
a543c5ca
AH
29372018-02-20 Alan Hayward <alan.hayward@arm.com>
2938 Simon Marchi <simon.marchi@ericsson.com>
2939
2940 * Makefile.in: Switch order of make rules.
2941
b5884fa7
AH
29422018-02-19 Alan Hayward <alan.hayward@arm.com>
2943
2944 * Makefile.in: Add common directory in build.
2945 * configure.ac: Add common reference.
2946 * configure: Regenerate.
2947
de6242d3
MM
29482018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2949
2950 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2951 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2952 * spu-low.c (spu_target_ops): Likewise.
2953 * win32-low.c (win32_target_ops): Likewise.
2954 * server.c (supported_btrace_packets): Report packets unconditionally.
2955 * target.h (target_ops) <supports_btrace>: Remove.
2956 (target_supports_btrace): Remove.
2957
9ee23a85
MM
29582018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2959
2960 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2961 (handle_btrace_disable): Change return type to void. Use exceptions
2962 to report errors.
2963 (handle_btrace_general_set): Catch exception and copy message to
2964 return message.
2965
8ce47547
TT
29662018-02-08 Tom Tromey <tom@tromey.com>
2967
2968 * linux-low.c (install_software_single_step_breakpoints): Use
2969 make_scoped_restore.
2970 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2971 (do_restore_current_thread_cleanup): Remove.
2972 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2973 declare.
2974
45dd3607
TT
29752018-02-08 Tom Tromey <tom@tromey.com>
2976
2977 * mem-break.c (set_raw_breakpoint_at): Use
2978 gdb::unique_xmalloc_ptr.
2979
e671cd59
PA
29802018-01-30 Pedro Alves <palves@redhat.com>
2981
2982 PR gdb/13211
2983 * target.c (target_terminal::terminal_state): Rename to ...
2984 (target_terminal::m_terminal_state): ... this.
2985
a0aad537
JC
29862018-01-19 James Clarke <jrtc27@jrtc27.com>
2987
2988 * linux-low.c (handle_extended_wait): Surround call to
2989 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2990
4d9b86e1
SM
29912018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2992
2993 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2994 linux_ptrace_attach_fail_reason_string now returning an
2995 std::string.
2996 (linux_attach): Likewise.
2997 * thread-db.c (attach_thread): Likewise.
2998
f517c180
EA
29992018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3000
3001 PR gdb/21559
3002 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3003 checking for fs_base/gs_base fields in struct user_regs_struct.
3004 * configure: Regenerate.
3005
9a70f35c
YQ
30062018-01-16 Yao Qi <yao.qi@linaro.org>
3007
3008 PR gdb/18749
3009 * linux-low.c (fetch_register): Call supply_register instead of
3010 error.
3011
605fd3c6
YQ
30122018-01-08 Yao Qi <yao.qi@linaro.org>
3013 Simon Marchi <simon.marchi@ericsson.com>
3014
3015 * Makefile.in (OBS): Remove selftest.o.
3016 * configure.ac: Set srv_selftest_objs if $development is true.
3017 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3018 * configure: Re-generated.
3019 * server.c (captured_main): Wrap variable selftest_filter with
3020 GDB_SELF_TEST.
3021
2cc05030
SM
30222018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3023
3024 * server.c (parse_debug_format_options): Return std::string.
3025 (handle_monitor_command, captured_main): Adjust.
3026
e379cee6
PA
30272018-01-05 Pedro Alves <palves@redhat.com>
3028
3029 PR gdb/18653
3030 * server.c (captured_main): Pass quiet=false to
3031 save_original_signals_state.
3032
82e1e79a
JB
30332018-01-01 Joel Brobecker <brobecker@adacore.com>
3034
3035 * gdbreplay.c (gdbreplay_version): Update copyright year in
3036 version message.
3037 * server.c (gdbserver_version): Likewise.
3038
8e481c3b
TT
30392017-12-08 Tom Tromey <tom@tromey.com>
3040
3041 * ax.c (ax_printf): Update.
3042
a8806230
YQ
30432017-12-07 Yao Qi <yao.qi@linaro.org>
3044
3045 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3046 aarch64_linux_read_description.
3047 * linux-amd64-ipa.c (idx2mask): New array.
3048 (get_ipa_tdesc): Move idx2mask out.
3049 (initialize_low_tracepoint): Initialize target descriptions.
3050 * linux-i386-ipa.c (idx2mask): New array.
3051 (get_ipa_tdesc): Move idx2mask out.
3052 (initialize_low_tracepoint): Initialize target descriptions.
3053
d4a0e8b5
SM
30542017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * tdesc.c (struct tdesc_type): Change return type.
3057 (tdesc_add_flag): Change parameter type.
3058 (tdesc_add_bitfield): Likewise.
3059 (tdesc_add_field): Likewise.
3060 (tdesc_set_struct_size): Likewise.
3061
798a7429
SM
30622017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3063
3064 * regcache.c (registers_to_string): Remove unused variable.
3065
c0e15c9b
SM
30662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * inferiors.c (for_each_inferior_with_data): Remove.
3069 * inferiors.h (for_each_inferior_with_data): Remove.
3070 * server.c (handle_qxfer_threads_worker): Change parameter type.
3071 (handle_qxfer_threads_proper): Use for_each_thread.
3072
f0045347
SM
30732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3074
3075 * inferiors.c (for_each_inferior): Remove.
3076 (clear_inferiors): Use for_each_thread.
3077 * inferiors.h (for_each_inferior): Remove.
3078 * linux-low.c (linux_wait_for_event_filtered): Use
3079 for_each_thread.
3080 (linux_stabilize_threads): Likewise.
3081 * regcache.c (regcache_release): Likewise.
3082 * server.c (gdb_wants_all_threads_stopped): Likewise.
3083 (clear_pending_status_callback): Remove.
3084 (handle_status): Use for_each_thread.
3085 (captured_main): Likewise.
3086 * win32-low.c (child_init_thread_list): Likewise.
3087 (win32_clear_inferiors): Likewise.
3088 (fake_breakpoint_event): Likewise.
3089
9521758b
SM
30902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3091
3092 * inferiors.h (find_inferior): Remove.
3093 * inferiors.c (find_inferior): Remove.
3094
8f86d7aa
SM
30952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3096
3097 * linux-low.c (resume_status_pending_p): Update comment.
3098 (need_step_over_p): Update comment.
3099
e2b44075
SM
31002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3101
3102 * linux-low.c (proceed_one_lwp): Return void, change parameter
3103 type.
3104 (unsuspend_and_proceed_one_lwp): Likewise.
3105 (proceed_all_lwps): Use for_each_thread.
3106 (unstop_all_lwps): Likewise.
3107
c80825ff
SM
31082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3109
3110 * linux-low.c (linux_resume_one_thread): Return void, take
3111 parameter directly.
3112 (linux_resume): Use for_each_thread.
3113
df3e4dbe
SM
31142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3115
3116 * linux-low.c (send_sigstop_callback): Return void, change
3117 parameter type. Rename to...
3118 (send_sigstop): ... this.
3119 (suspend_and_send_sigstop_callback): Return void, change parameter
3120 type. Rename to...
3121 (suspend_and_send_sigstop): ... this.
3122 (stop_all_lwps): Use for_each_thread.
3123
5a6b0a41
SM
31242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * linux-low.c (lwp_running): Return bool, remove unused
3127 argument.
3128 (linux_stabilize_threads): Use find_thread.
3129
39a64da5
SM
31302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3131
3132 * linux-low.c (select_singlestep_lwp_callback): Remove.
3133 (count_events_callback): Remove.
3134 (select_event_lwp_callback): Remove.
3135 (select_event_lwp): Use find_thread/for_each_thread.
3136
a1385b7b
SM
31372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3138
3139 * linux-low.c (not_stopped_callback): Return bool, take filter
3140 argument directly.
3141 (linux_wait_for_event_filtered): Use find_thread.
3142 (linux_wait_1): Likewise.
3143
454296a2
SM
31442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 * linux-low.c (same_lwp): Remove.
3147 (find_lwp_pid): Use find_thread.
3148
6b2a85da
SM
31492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * linux-low.c (delete_lwp_callback): Remove.
3152 (linux_mourn): Use for_each_thread.
3153
798a38e8
SM
31542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3155
3156 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3157 args parameter, don't check for pid.
3158 (linux_detach): Use for_each_thread.
3159
e4eb0dec
SM
31602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * linux-low.c (struct counter): Remove.
3163 (second_thread_of_pid_p): Remove.
3164 (last_thread_of_process_p): Use find_thread.
3165
83e1b6c1
SM
31662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3167
3168 * inferiors.c (find_inferior_in_random): Remove.
3169 * inferiors.h (find_inferior_in_random): Remove.
3170 * linux-low.c (status_pending_p_callback): Return bool, accept
3171 parameter ptid directly.
3172 (linux_wait_for_event_filtered): Use find_thread_in_random.
3173 (linux_wait_1): Likewise.
3174
8dc7b443
SM
31752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3176
3177 * inferiors.c (find_inferior_id): Remove.
3178 (find_thread_ptid): Move implemention from find_inferior_id to
3179 here.
3180 * inferiors.h (find_inferior_id): Remove.
3181 * server.c (handle_status): Use find_thread_ptid.
3182 (process_serial_event): Likewise.
3183 * thread-db.c (find_one_thread): Likewise.
3184 (thread_db_thread_handle): Likewise.
3185 * win32-low.c (thread_rec): Likewise.
3186 (child_delete_thread): Likewise.
3187 (win32_thread_alive): Likewise.
3188 (get_child_debug_event): Likewise.
3189
da25033c
SM
31902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3191
3192 * linux-mips-low.c (update_watch_registers_callback): Return
3193 void, remove pid_p parameter, don't check for pid.
3194 (mips_insert_point, mips_remove_point): Use for_each_thread.
3195
c91bb56b
SM
31962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3197
3198 * lynx.low (lynx_delete_thread_callback): Remove.
3199 (lynx_mourn): Use for_each_thread.
3200
634a3254
SM
32012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3202
3203 * regcache.c (regcache_invalidate_one): Remove.
3204 (regcache_invalidate_pid): use for_each_thread.
3205
41272101
TT
32062017-11-26 Tom Tromey <tom@tromey.com>
3207
3208 * linux-low.c (linux_create_inferior): Update.
3209
f5291a6f
UW
32102017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3211
3212 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3213
6654d750
AH
32142017-11-24 Alan Hayward <alan.hayward@arm.com>
3215
3216 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3217 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3218 * linux-aarch64-tdesc-selftest.c: New file.
3219 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3220
32212017-11-24 Alan Hayward <alan.hayward@arm.com>
3222
3223 * configure.srv: Add new file.
3224 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3225 * linux-aarch64-tdesc-selftest.c: New file.
3226 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3227
49bdb7ee
AH
32282017-11-24 Alan Hayward <alan.hayward@arm.com>
3229
3230 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3231 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3232 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3233
d6d7ce56
AH
32342017-11-24 Alan Hayward <alan.hayward@arm.com>
3235
3236 * configure.srv: Add new files.
3237 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3238 aarch64_linux_read_description.
3239 * linux-aarch64-low.c (aarch64_linux_read_description):
3240 Merge with aarch64_arch_setup.
3241 (aarch64_arch_setup): Call aarch64_linux_read_description.
3242 * linux-aarch64-tdesc.c: New file.
3243 * linux-aarch64-tdesc.h: New file.
3244
506fe5f4
YQ
32452017-11-24 Yao Qi <yao.qi@linaro.org>
3246
3247 * configure.srv: Set $srv_regobj for tic6x-linux.
3248 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3249 (tic6x_read_description): Move some code to tic6x_arch_setup.
3250 (tic6x_tdesc_test): New function.
3251 (initialize_low_arch): Call selftests::register_test.
3252
29f9a567
YQ
32532017-11-22 Yao Qi <yao.qi@linaro.org>
3254
3255 * remote-utils.c (prepare_resume_reply): Use memcpy.
3256
578290ec
SM
32572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3258
3259 * linux-low.c (kill_one_lwp_callback): Return void, take
3260 argument directly, don't filter on pid.
3261 (linux_kill): Use for_each_thread.
3262
eca55aec
SM
32632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3264
3265 * linux-low.c (need_step_over_p): Return bool, remove dummy
3266 argument.
3267 (linux_resume, proceed_all_lwps): Use find_thread.
3268
25c28b4d
SM
32692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3270
3271 * linux-low.c (resume_status_pending_p): Return bool, remove
3272 flag_p argument.
3273 (linux_resume): Use find_thread.
3274
5fdda392
SM
32752017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3276
3277 * linux-low.c (struct thread_resume_array): Remove.
3278 (linux_set_resume_request): Return void, take arguments
3279 directly.
3280 (linux_resume): Use for_each_thread.
3281
fcb056a5
SM
32822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3283
3284 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3285 return bool, remove data argument.
3286 (linux_stabilize_threads): Use find_thread.
3287
139720c5
SM
32882017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3289
3290 * linux-low.c (unsuspend_one_lwp): Remove.
3291 (unsuspend_all_lwps): Use for_each_thread, inline code from
3292 unsuspend_one_lwp.
3293
6d1e5673
SM
32942017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3295
3296 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3297 * linux-low.c (struct iterate_over_lwps_args): Remove.
3298 (iterate_over_lwps_filter): Remove.
3299 (iterate_over_lwps): Use find_thread.
3300
bbf550d5
SM
33012017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3302
3303 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3304 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3305 code from reset_lwp_ptrace_options_callback.
3306
00192f77
SM
33072017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3308
3309 * linux-arm-low.c (struct update_registers_data): Remove.
3310 (update_registers_callback): Return void, take arguments
3311 directly, don't check thread's pid.
3312 (arm_insert_point, arm_remove_point): Use for_each_thread.
3313
2bee2b6c
SM
33142017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3315
3316 * win32-low.c (continue_one_thread): Return void, take argument
3317 directly.
3318 (child_continue): Use for_each_thread.
3319
0b360f19
SM
33202017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3321
3322 * win32-i386-low.c (update_debug_registers_callback): Rename
3323 to ...
3324 (update_debug_registers): ... this, return void, remove pid_p arg.
3325 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3326
f27866ba
SM
33272017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3328
3329 * inferiors.h (struct process_info): Add constructor, initialize
3330 fields..
3331 <syscalls_to_catch>: Change type to std::vector<int>.
3332 * inferiors.c (add_process): Allocate process_info with new.
3333 (remove_process): Free process_info with delete.
3334 * linux-low.c (handle_extended_wait): Adjust.
3335 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3336 * server.c (handle_general_set): Adjust.
3337
e849ea89
PA
33382017-11-16 Pedro Alves <palves@redhat.com>
3339
3340 * remote-utils.c (remote_close): Block SIGIO signals instead of
3341 uninstalling the SIGIO handler.
3342
1d0aa65c
AH
33432017-11-16 Alan Hayward <alan.hayward@arm.com>
3344
3345 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3346
3491a34c
YQ
33472017-11-16 Yao Qi <yao.qi@linaro.org>
3348
3349 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3350 (tic6x_store_gregset): Likewise.
3351 (tic6x_usrregs_info): Move it up.
3352
a602f924
AH
33532017-11-15 Alan Hayward <alan.hayward@arm.com>
3354
3355 * Makefile.in: Update arch rules.
3356 * configure.srv: Explicitly mark arch/ files.
3357
5616b6c3
AS
33582017-11-13 Andreas Schwab <schwab@suse.de>
3359
3360 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3361 function.
3362 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3363
d1928160
PA
33642017-11-06 Pedro Alves <palves@redhat.com>
3365
3366 * config.in, configure: Regenerate.
3367
bac608e7
SM
33682017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3369
3370 * target.c (struct thread_search): Remove.
3371 (thread_search_callback): Remove.
3372 (prepare_to_access_memory): Use for_each_thread instead of
3373 find_inferior. Inline code from thread_search_callback.
3374
eaddb425
SM
33752017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3376
3377 * server.c (struct visit_actioned_threads_data): Remove.
3378 (visit_actioned_threads): Change prototype to take arguments
3379 directly.
3380 (resume): Use find_thread instead of find_inferior.
3381
99078d34
SM
33822017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3383
3384 * server.c (queue_stop_reply_callback): Change prototype, return
3385 void.
3386 (find_status_pending_thread_callback): Remove.
3387 (handle_status): Replace find_inferior with find_thread and
3388 for_each_thread.
3389
cc628f3d
AH
33902017-10-25 Alan Hayward <alan.hayward@arm.com>
3391
3392 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3393 with REGNO.
3394 (aarch64_store_gregset): Likewise.
3395 (aarch64_fill_fpregset): Likewise.
3396 (aarch64_store_fpregset): Likewise.
3397
4d3bb80e
SM
33982017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3399
3400 * gdbthread.h (find_thread, for_each_thread): New functions.
3401 * inferiors.c (thread_of_pid): Remove.
3402 (find_any_thread_of_pid): Use find_thread.
3403 * linux-low.c (num_lwps): Use for_each_thread.
3404
7a7cdfa0
YQ
34052017-10-17 Yao Qi <yao.qi@linaro.org>
3406
3407 * Makefile.in: Remove one rule.
3408 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3409
e675d170
YQ
34102017-10-17 Yao Qi <yao.qi@linaro.org>
3411
3412 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3413 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3414
7eb4e0f9
YQ
34152017-10-17 Yao Qi <yao.qi@linaro.org>
3416
3417 * configure.srv: Rename arm.o with arch/arm.o.
3418
60d6cfc9
YQ
34192017-10-17 Yao Qi <yao.qi@linaro.org>
3420
3421 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3422 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3423 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3424 (arch-i386.o, arch-amd64.o): Remove rules.
3425 (arch/%.o): New rule.
3426 Update POSTCOMPILE and COMPILE.pre.
3427 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3428 * configure: Re-generated.
3429 * configure.srv: Replace arch-i386.o with arch/i386.o.
3430 Replace arch-amd64.o with arch/amd64.o.
3431
5bfda255
YQ
34322017-10-16 Yao Qi <yao.qi@linaro.org>
3433
3434 * configure: Regenerated.
3435
9c80ecd6
SM
34362017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3437
3438 * inferiors.h: (struct inferior_list): Remove.
3439 (struct inferior_list_entry); Remove.
3440 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3441 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3442 get_first_inferior): Remove.
3443 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3444 find_inferior_id, find_inferior_in_random): Change signature.
3445 * inferiors.c (all_threads): Change type to
3446 std::list<thread_info *>.
3447 (get_thread): Remove macro.
3448 (find_inferior, find_inferior_id): Change signature, implement
3449 using find_thread.
3450 (find_inferior_in_random): Change signature, implement using
3451 find_thread_in_random.
3452 (for_each_inferior, for_each_inferior_with_data): Change
3453 signature, implement using for_each_thread.
3454 (add_inferior_to_list, remove_inferior): Remove.
3455 (add_thread, get_first_thread, thread_of_pid,
3456 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3457 (get_first_inferior, one_inferior_p, clear_inferior_list):
3458 Remove.
3459 (clear_inferiors, get_thread_process): Update.
3460 * gdbthread.h: Include <list>.
3461 (struct thread_info) <entry>: Remove field.
3462 <id>: New field.
3463 (all_threads): Change type to std::list<thread_info *>.
3464 (get_first_inferior): Add doc.
3465 (find_thread, for_each_thread, find_thread_in_random): New
3466 functions.
3467 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3468 * linux-arm-low.c (update_registers_callback): Update.
3469 * linux-low.c (second_thread_of_pid_p): Update.
3470 (kill_one_lwp_callback, linux_detach_lwp_callback,
3471 delete_lwp_callback, status_pending_p_callback, same_lwp,
3472 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3473 iterate_over_lwps, not_stopped_callback,
3474 resume_stopped_resumed_lwps, count_events_callback,
3475 select_singlestep_lwp_callback, select_event_lwp_callback,
3476 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3477 suspend_and_send_sigstop_callback, wait_for_sigstop,
3478 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3479 lwp_running, linux_set_resume_request, resume_status_pending_p,
3480 need_step_over_p, start_step_over, linux_resume_one_thread,
3481 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3482 reset_lwp_ptrace_options_callback): Update.
3483 * linux-mips-low.c (update_watch_registers_callback): Update.
3484 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3485 Update.
3486 (free_register_cache_thread_one): Remove.
3487 (regcache_release): Update.
3488 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3489 handle_qxfer_threads_worker): Update.
3490 (handle_query): Update, use list iterator.
3491 (visit_actioned_threads, handle_pending_status,
3492 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3493 clear_pending_status_callback, set_pending_status_callback,
3494 find_status_pending_thread_callback, handle_status,
3495 process_serial_event): Update.
3496 * target.c (thread_search_callback): Update.
3497 * thread-db.c (thread_db_get_tls_address): Update.
3498 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3499 Update.
3500 * win32-i386-low.c (update_debug_registers_callback): Update.
3501 * win32-low.c (delete_thread_info, child_delete_thread,
3502 continue_one_thread, suspend_one_thread,
3503 get_child_debug_event): Adjust.
3504
9179355e
SM
35052017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3506
3507 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3508 * inferiors.h: Include <list>.
3509 (struct process_info) <entry>: Remove field.
3510 <pid>: New field.
3511 (pid_of): Change macro to function.
3512 (ptid_of, lwpid_of): Remove macro.
3513 (all_processes): Change type to std::list<process_info *>.
3514 (ALL_PROCESSES): Remove macro.
3515 (for_each_process, find_process): New function.
3516 * inferiors.c (all_processes): Change type to
3517 std::list<process_info *>.
3518 (find_thread_process): Adjust.
3519 (add_process): Likewise.
3520 (remove_process): Likewise.
3521 (find_process_pid): Likewise.
3522 (get_first_process): Likewise.
3523 (started_inferior_callback): Remove.
3524 (have_started_inferiors_p): Adjust.
3525 (attached_inferior_callback): Remove.
3526 (have_attached_inferiors_p): Adjust.
3527 * linux-low.c (check_zombie_leaders): Likewise.
3528 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3529 (x86_linux_update_xmltarget): Adjust.
3530 * server.c (handle_query): Likewise.
3531 (gdb_reattached_process): Remove.
3532 (handle_status): Adjust.
3533 (kill_inferior_callback): Likewise.
3534 (detach_or_kill_inferior): Remove.
3535 (print_started_pid): Likewise.
3536 (print_attached_pid): Likewise.
3537 (detach_or_kill_for_exit): Update.
3538 (process_serial_event): Likewise.
3539 * linux-arm-low.c (arm_new_fork): Likewise.
3540
c9cb8905
SM
35412017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3542
3543 * dll.h: Include <list>.
3544 (struct dll_info): Add constructor.
3545 <entry>: Remove field.
3546 (all_dlls): Change type to std::list<dll_info>.
3547 * dll.c: Include <algorithm>.
3548 (get_dll): Remove macro.
3549 (all_dlls): Change type to std::list<dll_info *>.
3550 (free_one_dll): Remove.
3551 (match_dll): Likewise.
3552 (loaded_dll): Adjust.
3553 (unloaded_dll): Adjust to all_dlls type change, use
3554 std::find_if. Inline code from match_dll.
3555 (clear_dlls): Adjust to all_dlls type change.
3556 * server.c (emit_dll_description): Remove.
3557 (handle_qxfer_libraries): Adjust to all_dlls type change,
3558 integrate emit_dll_description's functionality.
3559
04ec7890
SM
35602017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3561
3562 * linux-low.h (struct linux_target_ops) <delete_process>: New
3563 field.
3564 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3565 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3566 (struct linux_target_ops): Add delete_process callback.
3567 * linux-arm-low.c (arm_delete_process): New.
3568 (struct linux_target_ops): Add delete_process callback.
3569 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3570 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3571 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3572 * linux-mips-low.c (mips_linux_delete_process): New.
3573 (struct linux_target_ops): Add delete_process callback.
3574 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3575 * linux-s390-low.c (struct linux_target_ops): Likewise.
3576 * linux-sh-low.c (struct linux_target_ops): Likewise.
3577 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3578 * linux-tile-low.c (struct linux_target_ops): Likewise.
3579 * linux-x86-low.c (x86_linux_delete_process): New.
3580 (struct linux_target_ops): Add delete_process callback.
3581 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3582
466eecee
SM
35832017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3584
3585 * linux-aarch64-low.c (the_low_target): Add thread delete
3586 callback.
3587 * linux-arm-low.c (arm_delete_thread): New function.
3588 (the_low_target): Add thread delete callback.
3589 * linux-bfin-low.c (the_low_target): Likewise.
3590 * linux-crisv32-low.c (the_low_target): Likewise.
3591 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3592 set.
3593 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3594 field.
3595 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3596 * linux-mips-low.c (mips_linux_delete_thread): New function.
3597 (the_low_target): Add thread delete callback.
3598 * linux-ppc-low.c (the_low_target): Likewise.
3599 * linux-s390-low.c (the_low_target): Likewise.
3600 * linux-sh-low.c (the_low_target): Likewise.
3601 * linux-tic6x-low.c (the_low_target): Likewise.
3602 * linux-tile-low.c (the_low_target): Likewise.
3603 * linux-x86-low.c (the_low_target): Likewise.
3604 * linux-xtensa-low.c (the_low_target): Likewise.
3605
b79f7801
YZ
36062017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3607
3608 * win32-low.c: Include "common-inferior.h".
3609
bc3b087d
SDJ
36102017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3611
3612 * inferiors.c (set_inferior_cwd): New function.
3613 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3614 (handle_query): Inform that QSetWorkingDir is supported.
3615 * win32-low.c (create_process): Pass the inferior's cwd to
3616 CreateProcess.
3617
d092c5a2
SDJ
36182017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3619
3620 * inferiors.c (current_inferior_cwd): New global variable.
3621 (get_inferior_cwd): New function.
3622 * inferiors.h (struct process_info) <cwd>: New field.
3623
7da0a886
SDJ
36242017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3625
3626 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3627 (OBS): Add gdb_tilde_expand.o.
3628
289a6840
SM
36292017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3630
3631 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3632 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3633
256642e8
PA
36342017-09-29 Pedro Alves <palves@redhat.com>
3635
3636 * ax.c (gdb_parse_agent_expr): Constify.
3637 * ax.h (gdb_parse_agent_expr): Constify.
3638 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3639 Constify.
3640 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3641 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3642 * remote-utils.h (read_ptid): Constify.
3643 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3644 (process_point_options, process_serial_event): Constify.
3645 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3646 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3647 (cmd_qtbuffer): Constify.
3648
5b9ca4d4
PA
36492017-09-29 Pedro Alves <palves@redhat.com>
3650
3651 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3652 fails.
3653
94c207e0
PA
36542017-09-29 Pedro Alves <palves@redhat.com>
3655
3656 * linux-low.c (handle_extended_wait): Pass parent thread instead
3657 of process to thread_db_notice_clone.
3658 * linux-low.h (thread_db_notice_clone): Replace parent process
3659 parameter with parent thread parameter.
3660 * thread-db.c (find_one_thread): Add comment.
3661 (thread_db_notice_clone): Replace parent process parameter with
3662 parent thread parameter. Temporarily switch to the parent thread.
3663
75352e28
SDJ
36642017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3665
3666 * gdbthread.h: Include "common-gdbthread.h".
3667 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3668 "if" when validating the ptid.
3669 * remote-utils.c: Include "gdbthread.h".
3670 (prepare_resume_reply): Use "switch_to_thread".
3671 * target.c (done_accessing_memory): Likewise.
3672
ad339634
AA
36732017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3674
3675 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3676 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3677 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3678 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3679 s390x-gs-linux64-ipa.o to ipa_obj.
3680 * linux-s390-low.c (HWCAP_S390_GS): New define.
3681 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3682 New functions.
3683 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3684 (s390_arch_setup): Check for guarded-storage support and choose
3685 appropriate tdesc.
3686 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3687 init_registers_s390x_gs_linux64.
3688 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3689 enum value.
3690 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
3691 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
3692
cc4d742f
SM
36932017-09-22 Simon Marchi <simon.marchi@ericsson.com>
3694
3695 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
3696
f6327dcb
KB
36972017-09-21 Kevin Buettner <kevinb@redhat.com>
3698
3699 * linux-low.h (struct lwp_info): Add new field, thread_handle.
3700 (thread_db_thread_handle): Declare.
3701 * linux-low.c (linux_target_ops): Initialize thread_handle.
3702 * server.c (handle_qxfer_threads_worker): Add support for
3703 "handle" attribute.
3704 * target.h (struct target_ops): Add new function pointer,
3705 thread_handle.
3706 (target_thread_handle): Define.
3707 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
3708 field in lwp.
3709 (thread_db_thread_handle): New function.
3710
86299109
KB
37112017-09-21 Kevin Buettner <kevinb@redhat.com>
3712
3713 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
3714 * linux-low.h (thread_db_notice_clone): Declare.
3715 * thread-db.c (thread_db_notice_clone): New function.
3716
f557a88a
PA
37172017-09-21 Pedro Alves <palves@redhat.com>
3718
3719 * server.c (gdb_read_memory, handle_status, process_serial_event)
3720 (handle_serial_event, handle_target_event): Adjust to
3721 set_desired_thread prototype change.
3722 * target.c (set_desired_thread): Remove 'use_general' parameter
3723 and adjust.
3724 * target.h (set_desired_thread): Remove 'use_general' parameter.
3725
223ffa71
TT
37262017-09-20 Tom Tromey <tom@tromey.com>
3727
3728 * target.c (target_terminal::terminal_state): Define.
3729 (target_terminal::init): Rename from target_terminal_init.
3730 (target_terminal::inferior): Rename from
3731 target_terminal_inferior.
3732 (target_terminal::ours): Rename from target_terminal_ours.
3733 (target_terminal::ours_for_output, target_terminal::info): New.
3734
04fd3ba9
SM
37352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3736
3737 * server.c (accumulate_file_name_length): Remove.
3738 (emit_dll_description): Adjust to std::string change.
3739 (handle_qxfer_libraries): Use std::string to hold document.
3740
5e187554
SM
37412017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3742
3743 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3744 return type of xml_escape_text.
3745 * server.c (emit_dll_description): Likewise.
3746
1526853e
SM
37472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3748
3749 * server.c (captured_main): Accept argument for --selftest.
3750 Update run_tests call.
3751 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3752 when registering selftests.
3753
c4dfafab
SDJ
37542017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3755
3756 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3757 instead of "VEC" for "target_desc.reg_defs".
3758 (regcache_cpy): Likewise.
3759 (registers_to_string): Likewise.
3760 (registers_from_string): Likewise.
3761 (find_regno): Likewise.
3762 (supply_regblock): Likewise.
3763 (regcache_raw_read_unsigned): Likewise.
3764 * tdesc.c (init_target_desc): Likewise.
3765 (tdesc_create_reg): Likewise.
3766 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3767 (struct target_desc) <reg_defs>: Convert to "std::vector".
3768 (target_desc): Do not initialize "reg_defs".
3769 (~target_desc): Update code to use "std::vector" instead of "VEC"
3770 for "target_desc.reg_defs".
3771 (operator==): Likewise.
3772
124aceb4
SM
37732017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3774
3775 * inferiors.h (thread_to_gdb_id): Remove.
3776 * inferiors.c (thread_to_gdb_id): Remove.
3777 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3778 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3779 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3780 Likewise.
3781 * nto-low.c (nto_fetch_registers, nto_store_registers,
3782 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3783
96cde54f
SM
37842017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3785
3786 * inferiors.h (gdb_id_to_thread_id): Remove.
3787 * inferiors.c (gdb_id_to_thread_id): Remove.
3788 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3789 removal. Move pid declaration closer to where it's used.
3790
e8ca139e
SM
37912017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3792
3793 * server.c (handle_detach): New function.
3794 (process_serial_event): Move code out, call handle_detach.
3795
f8a4e119
SM
37962017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3797
3798 * server.c (require_running): Rename to ...
3799 (require_running_or_return): ... this ...
3800 (require_running_or_break): ... and this.
3801 (handle_query, process_serial_event): Adjust.
3802
0eb0a407
SM
38032017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3804
3805 * linux-low.c (linux_set_resume_request): Remove unused
3806 variables.
3807
785922a5
SM
38082017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3809
3810 * server.c (first_thread_of): Remove.
3811 (process_serial_event): Replace usage of first_thread_of with
3812 find_any_thread_of_pid.
3813 * tracepoint.c (same_process_p): Remove.
3814 (gdb_agent_about_to_close): Replace usage of same_process_p with
3815 find_any_thread_of_pid.
3816 * linux-x86-low.c (same_process_callback): Remove.
3817 (x86_arch_setup_process_callback): Replace usage of
3818 same_process_callback with find_any_thread_of_pid.
3819 * thread-db.c (any_thread_of): Remove.
3820 (switch_to_process): Replace usage of any_thread_of with
3821 find_any_thread_of_pid.
3822 * inferiors.c (thread_pid_matches_callback): Remove.
3823 (find_thread_process): Adjust to use find_any_thread_of_pid.
3824
a059f00c
SDJ
38252017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3826
3827 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 3828 with "!VEC_empty".
a059f00c 3829
cc397f3a
SDJ
38302017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3831
3832 * linux-low.c (handle_extended_wait): Use
3833 "allocate_target_description" instead of "XNEW".
3834 * linux-x86-low.c (initialize_low_arch): Likewise.
3835
22916b07
YQ
38362017-09-05 Yao Qi <yao.qi@linaro.org>
3837
3838 * configure.srv (srv_i386_regobj): Remove.
3839 (srv_amd64_regobj): Remove.
3840 (srv_regobj): Set it to "" for x86 non-linux targets.
3841 * linux-x86-tdesc.c (i386_linux_read_description):
3842 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3843 (init_registers_i386): Remove the declaration.
3844 (tdesc_i386): Remove the declaration.
3845 (lynx_i386_arch_setup): Call i386_create_target_description.
3846 * nto-x86-low.c: Likewise.
3847 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3848 [!__x86_64__]: include arch/i386.h.
3849 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3850
38602d55
YQ
38512017-09-05 Yao Qi <yao.qi@linaro.org>
3852
3853 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3854 i386/amd64-XXX-linux from it.
3855
44b886ff
YQ
38562017-09-05 Yao Qi <yao.qi@linaro.org>
3857
3858 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3859 false.
3860 (ipa_amd64_linux_regobj): Remove.
3861 (ipa_x32_linux_regobj): Remove.
3862
b4570e4b
YQ
38632017-09-05 Yao Qi <yao.qi@linaro.org>
3864
3865 * Makefile.in (arch-amd64.o): New rule.
3866 * configure.srv: Append arch-amd64.o.
3867 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3868 (get_ipa_tdesc): Call amd64_linux_read_description.
3869 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3870 and init_registers_amd64_XXX.
3871 * linux-x86-low.c (x86_linux_read_description): Call
3872 amd64_linux_read_description.
3873 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3874 (initialize_low_arch): Don't call init_registers_x32_XXX and
3875 init_registers_amd64_XXX.
3876 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3877 and tdesc_amd64_XXX.
3878 [__x86_64__] (amd64_tdesc_test): New function.
3879 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3880 and init_registers_amd64_XXX.
3881 * linux-x86-tdesc.c: Include arch/amd64.h.
3882 (xcr0_to_tdesc_idx): New function.
3883 (i386_linux_read_description): New function.
3884 (amd64_get_ipa_tdesc_idx): New function.
3885 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3886 (amd64_get_ipa_tdesc): Declare.
3887
d1f28ea2
YQ
38882017-09-05 Yao Qi <yao.qi@linaro.org>
3889
3890 * configure.srv (srv_i386_linux_xmlfiles): Remove
3891 i386/i386-XXX-linux.xml from it.
3892
25a93583
YQ
38932017-09-05 Yao Qi <yao.qi@linaro.org>
3894
3895 * configure.srv: Set srv_i386_linux_regobj empty if $development
3896 is false.
3897 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3898 initialize_low_tdesc.
3899 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3900 with #if initialize_low_tdesc.
3901 * linux-x86-tdesc-selftest.c: New file.
3902 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3903
5f035c07
YQ
39042017-09-05 Yao Qi <yao.qi@linaro.org>
3905
3906 * Makefile.in (arch-i386.o): New rule.
3907 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3908 (x86_64-*-linux*): Likewise.
3909 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3910 include arch/i386.h.
3911 (i386_linux_read_description): Remove code and call
3912 i386_create_target_description.
3913 * tdesc.c (allocate_target_description): New function.
3914 * tdesc.h (set_tdesc_architecture): Remove declaration.
3915 (set_tdesc_osabi): Likewise.
3916
0abe8a89
YQ
39172017-09-05 Yao Qi <yao.qi@linaro.org>
3918
3919 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3920 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3921 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3922 .xmltarget.
3923 * server.c (get_features_xml): Call tdesc_get_features_xml.
3924 * tdesc.c (set_tdesc_architecture): New function.
3925 (set_tdesc_osabi): New function.
3926 (tdesc_get_features_xml): New function.
3927 (tdesc_create_feature): Add an argument.
3928 * tdesc.h (struct target_desc) <features>: New field.
3929 <arch, osabi>: New field.
3930 (~target_desc): xfree features, arch, and osabi.
3931 (target_desc::oerator==): Don't compare .xmltarget.
3932 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3933 (set_tdesc_osabi): Likewise.
3934 (tdesc_get_features_xml): Likewise.
3935
0a188386
YQ
39362017-09-05 Yao Qi <yao.qi@linaro.org>
3937
3938 * linux-x86-tdesc.c: Include selftest.h.
3939 (i386_tdesc_test): New function.
3940 (initialize_low_tdesc): Call selftests::register_test.
3941 * tdesc.h: Include regdef.h.
3942 (target_desc): Override operator == and !=.
3943
f49ff000
YQ
39442017-09-05 Yao Qi <yao.qi@linaro.org>
3945
3946 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3947 (ipa_obj): Likewise.
3948 * linux-i386-ipa.c: Include common/x86-xstate.h
3949 (get_ipa_tdesc): Call i386_linux_read_description.
3950 (initialize_low_tracepoint): Don't call init_registers_XXX
3951 functions, call initialize_low_tdesc instead.
3952 * linux-x86-low.c (x86_linux_read_description): Call
3953 i386_linux_read_description.
3954 (initialize_low_arch): Don't call init_registers_i386_XXX
3955 functions, call initialize_low_tdesc.
3956 * linux-x86-tdesc.c: New file.
3957 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3958 (i386_get_ipa_tdesc_idx): Declare.
3959 (i386_get_ipa_tdesc): Declare.
3960 (initialize_low_tdesc): Declare.
3961
2b68ef2f
YQ
39622017-09-05 Yao Qi <yao.qi@linaro.org>
3963
3964 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3965 instead of 0.
3966
f7000548
YQ
39672017-09-05 Yao Qi <yao.qi@linaro.org>
3968
3969 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3970 * regcache.c (get_thread_regcache): Use VEC_length.
3971 (init_register_cache): Likewise.
3972 (regcache_cpy): Likewise.
3973 (registers_to_string): Iterate reg_defs via VEC_iterate.
3974 (find_regno): Likewise.
3975 (find_register_by_number): Use VEC_index.
3976 (register_size): Call find_register_by_number.
3977 (register_data): Call find_register_by_number.
3978 (supply_regblock): Use VEC_length.
3979 (regcache_raw_read_unsigned): Likewise.
3980 * tdesc.c (init_target_desc): Iterate reg_defs via
3981 VEC_iterate.
3982 (default_description): Update initializer.
3983 (copy_target_description): Don't update field num_registers.
3984 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3985 <num_registers>: Remove.
3986
50a421ac
SM
39872017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3988
3989 * Makefile.in (.SECONDARY): Define target.
3990
23fdd69e
SM
39912017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3992
3993 * linux-low.c (linux_wait_1): Adjust.
3994 * server.c (queue_stop_reply_callback): Adjust.
3995
0a2dde4a
SDJ
39962017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3997
3998 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3999 QEnvironmentUnset and QEnvironmentReset packets.
4000 (handle_query): Inform remote that QEnvironmentHexEncoded,
4001 QEnvironmentUnset and QEnvironmentReset are supported.
4002
6afd337d
SM
40032017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4004
4005 * inferiors.h (inferior_target_data): Rename to ...
4006 (thread_target_data): ... this.
4007 (inferior_regcache_data): Rename to ...
4008 (thread_regcache_data): ... this.
4009 (set_inferior_regcache_data): Rename to ...
4010 (set_thread_regcache_data): ... this.
4011 * inferiors.c (inferior_target_data): Rename to ...
4012 (thread_target_data): ... this.
4013 (inferior_regcache_data): Rename to ...
4014 (thread_regcache_data): ... this.
4015 (set_inferior_regcache_data): Rename to ...
4016 (set_thread_regcache_data): ... this.
4017 (free_one_thread): Update.
4018 * linux-low.h (get_thread_lwp): Update.
4019 * regcache.c (get_thread_regcache): Update.
4020 (regcache_invalidate_thread): Update.
4021 (free_register_cache_thread): Update.
4022 * win32-i386-low.c (update_debug_registers_callback): Update.
4023 (win32_get_current_dr): Update.
4024 * win32-low.c (thread_rec): Update.
4025 (delete_thread_info): Update.
4026 (continue_one_thread): Update.
4027 (suspend_one_thread): Update.
4028
a160cc46
SM
40292017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4030
4031 * inferiors.c (set_inferior_target_data): Remove.
4032 * inferiors.h (set_inferior_target_data): Remove.
4033
6d580b63
YQ
40342017-08-18 Yao Qi <yao.qi@linaro.org>
4035
4036 * Makefile.in (OBS): Add selftest.o.
4037 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4038 * configure, config.in: Re-generated.
4039 * server.c: Include common/sefltest.h.
4040 (captured_main): Handle option --selftest.
4041
f5a29eb0
YQ
40422017-08-09 Yao Qi <yao.qi@linaro.org>
4043
4044 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4045 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4046 i386-avx-mpx.o and i386-mmx.o.
4047 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4048 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4049 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4050 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4051 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4052 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4053 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4054 i386/amd64-avx-mpx.xml.
4055
57757c2f
YQ
40562017-08-09 Yao Qi <yao.qi@linaro.org>
4057
4058 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4059 and x32-avx-avx512.o.
4060 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4061 i386/x32-avx-avx512.xml.
4062
229d26fc
SM
40632017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4064
4065 * tracepoint.h (enum class fast_tpoint_collect_result): New
4066 enumeration.
4067 (fast_tracepoint_collecting): Change return type to
4068 fast_tpoint_collect_result.
4069 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4070 * linux-low.h: Include tracepoint.h.
4071 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4072 fast_tpoint_collect_result.
4073 * linux-low.c (handle_tracepoints): Adjust.
4074 (linux_fast_tracepoint_collecting): Change return type to
4075 fast_tpoint_collect_result.
4076 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4077 linux_wait_1, stuck_in_jump_pad_callback,
4078 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4079 proceed_one_lwp): Adjust to type change.
4080
2e1e43e1
YQ
40812017-07-10 Yao Qi <yao.qi@linaro.org>
4082
4083 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4084
adc764e7
YQ
40852017-06-29 Yao Qi <yao.qi@linaro.org>
4086
4087 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4088 Remove.
4089 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4090
a206891a
SM
40912017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4092
4093 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4094
9a6c7d9c
SDJ
40952017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4096
4097 * linux-low.c (linux_create_inferior): Adjust code to access the
4098 environment information via 'gdb_environ' class.
4099 * lynx-low.c (lynx_create_inferior): Likewise.
4100 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4101 (get_environ): Return a pointer to 'our_environ'.
4102 (captured_main): Initialize 'our_environ'.
4103 * server.h (get_environ): Adjust prototype.
4104 * spu-low.c (spu_create_inferior): Adjust code to access the
4105 environment information via 'gdb_environ' class.
4106
ae3e2ccf
SM
41072017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4108
4109 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4110 usage of "register" keyword.
4111
3e019bdc
SM
41122017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4113
4114 * configure: Re-generate.
4115
8465943a
SM
41162017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4117
4118 * configure: Re-generate.
4119
cf0dd6f0
SM
41202017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4121
4122 * Makefile.in (COMPILE.pre): Add "-x c++".
4123
9845682b
SDJ
41242017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4125
4126 * fork-child.c: Conditionally include <signal.h>.
4127
aefd8b33
SDJ
41282017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4129
4130 * server.c (handle_general_set): Handle new packet
4131 "QStartupWithShell".
4132 (handle_query): Add "QStartupWithShell" to the list of supported
4133 packets.
4134 (gdbserver_usage): Add help text explaining the
4135 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4136 options.
4137 (captured_main): Recognize and act upon the presence of the new
4138 CLI options.
4139
2090129c
SDJ
41402017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4141 Pedro Alves <palves@redhat.com>
4142
4143 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4144 * configure: Regenerate.
4145 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4146 "fork-inferior.o".
4147 (i[34567]86-*-lynxos*): Likewise.
4148 (spu*-*-*): Likewise.
4149 * fork-child.c: New file.
4150 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4151 and "environ.h".
4152 (linux_ptrace_fun): New function.
4153 (linux_create_inferior): Adjust function prototype to reflect
4154 change on "target.h". Adjust function code to use
4155 "fork_inferior".
4156 (linux_request_interrupt): Delete "signal_pid".
4157 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4158 (lynx_ptrace_fun): New function.
4159 (lynx_create_inferior): Adjust function prototype to reflect
4160 change on "target.h". Adjust function code to use
4161 "fork_inferior".
4162 * nto-low.c (nto_create_inferior): Adjust function prototype and
4163 code to reflect change on "target.h". Update comments.
4164 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4165 "common-terminal.h" and "environ.h".
4166 (terminal_fd): Moved to fork-child.c.
4167 (old_foreground_pgrp): Likewise.
4168 (restore_old_foreground_pgrp): Likewise.
4169 (last_status): Make it global.
4170 (last_ptid): Likewise.
4171 (our_environ): New variable.
4172 (startup_with_shell): Likewise.
4173 (program_name): Likewise.
4174 (program_argv): Rename to...
4175 (program_args): ...this.
4176 (wrapper_argv): New variable.
4177 (start_inferior): Delete function.
4178 (get_exec_wrapper): New function.
4179 (get_exec_file): Likewise.
4180 (get_environ): Likewise.
4181 (prefork_hook): Likewise.
4182 (post_fork_inferior): Likewise.
4183 (postfork_hook): Likewise.
4184 (postfork_child_hook): Likewise.
4185 (handle_v_run): Update code to deal with arguments coming from the
4186 remote host. Update calls from "start_inferior" to
4187 "create_inferior".
4188 (captured_main): Likewise. Initialize environment variable. Call
4189 "have_job_control".
4190 * server.h (post_fork_inferior): New prototype.
4191 (get_environ): Likewise.
4192 (last_status): Declare.
4193 (last_ptid): Likewise.
4194 (signal_pid): Likewise.
4195 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4196 (spu_ptrace_fun): New function.
4197 (spu_create_inferior): Adjust function prototype to reflect change
4198 on "target.h". Adjust function code to use "fork_inferior".
4199 * target.c (target_terminal_init): New function.
4200 (target_terminal_inferior): Likewise.
4201 (target_terminal_ours): Likewise.
4202 * target.h: Include <vector>.
4203 (struct target_ops) <create_inferior>: Update prototype.
4204 (create_inferior): Update macro.
4205 * utils.c (gdb_flush_out_err): New function.
4206 * win32-low.c (win32_create_inferior): Adjust function prototype
4207 and code to reflect change on "target.h".
4208
043a4934
SDJ
42092017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4210
4211 * inferiors.c (switch_to_thread): New function.
4212
15652511
SDJ
42132017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4214
4215 * Makefile.in (SFILE): Add "common/job-control.c".
4216 (OBS): Add "job-control.o".
4217
21ea5acd
SDJ
42182017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4219
4220 * Makefile: Remove "@host_makefile_frag@".
4221
e13cb306
PA
42222017-05-05 Pedro Alves <palves@redhat.com>
4223
4224 * configure: Regenerate.
4225
c94fee56
SDJ
42262017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4227
4228 * configure: Regenerate.
4229
a0ff9e1a
SM
42302017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4231
4232 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4233 software_single_step change of return type to
4234 std::vector<CORE_ADDR>.
4235 * linux-low.c (install_software_single_step_breakpoints):
4236 Likewise.
4237 * linux-low.h (install_software_single_step_breakpoints):
4238 Likewise.
4239
be628ab8
SDJ
42402017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4241
4242 * remote-utils.c: Include "gdb_termios.h" instead of
4243 "terminal.h".
4244 * terminal.h: Delete file.
4245
7c5ded6a
SDJ
42462017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4247
4248 * server.c: Include <vector>.
4249 <program_argv, wrapper_argv>: Convert to std::vector.
4250 (start_inferior): Rewrite function to use C++.
4251 (handle_v_run): Likewise. Update code that calculates the argv
4252 based on the vRun packet; use C++.
4253 (captured_main): Likewise.
4254
436252de
SM
42552017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4256
4257 * server.c (handle_v_cont): Initialize thread_resume::thread
4258 with null_ptid.
4259
9bf2a700
PA
42602017-04-05 Pedro Alves <palves@redhat.com>
4261
4262 * configure: Regenerate.
4263
a121b7c1
PA
42642017-04-05 Pedro Alves <palves@redhat.com>
4265
4266 * gdbreplay.c (sync_error): Constify.
4267 * linux-x86-low.c (push_opcode): Constify.
4268
21c8a587
PA
42692017-04-05 Pedro Alves <palves@redhat.com>
4270
4271 * win32-low.c (get_child_debug_event)
4272 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4273 Report TARGET_WAITKIND_SPURIOUS instead.
4274
fb32b4f7
PA
42752017-04-05 Pedro Alves <palves@redhat.com>
4276
e79be6e5
SM
4277 * remote-utils.c (remote_prepare, remote_open): Constify.
4278 * remote-utils.h (remote_prepare, remote_open): Constify.
4279 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 4280
65dd1e59
SM
42812017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4282
4283 * Makefile.in (clean): Clear .deps.
4284
8fa5b777
SM
42852017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4286
4287 * .gitignore: Remove generated files, replace with wildcard.
4288 * (clean): Replace removal of generated files with wildcard.
4289 (version.c): Replace with...
4290 (version-generated.c): ...this.
4291 (xml-builtin.c): Replace with...
4292 (xml-builtin-generated.c): ...this.
4293 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4294 (%.c: *regformats*): Replace with...
4295 (%-generated.c: *regformats*): ...this.
4296
a12e714b
MF
42972017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4298
4299 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4300 (xtensa_fill_gregset): Call collect_register_by_name for
4301 threadptr register.
4302 (xtensa_store_gregset): Call supply_register_by_name for
4303 threadptr register.
4304
1a09b50a
MF
43052017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4306
4307 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4308 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4309 (xtensa_store_gregset): Call supply_register for all registers in
4310 a0_regnum..a0_regnum + C0_NREGS range.
4311
1a01e7c6
SM
43122017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4313
4314 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4315 (ax-ipa.o: ax.c): Remove.
4316 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4317 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4318 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4319 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4320 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4321
36bc18a8
SM
43222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4325 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4326 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4327 (errors-ipa.o: ../common/errors.c): Remove.
4328 (format-ipa.o: ../common/format.c): Remove.
4329 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4330
a8ebe3d5
SM
43312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4332
4333 * Makefile.in (%-ipa.o: %.c): New rule.
4334 (tracepoint-ipa.o: tracepoint.c): Remove.
4335 (utils-ipa.o: utils.c): Remove.
4336 (remote-utils-ipa.o: remote-utils.c): Remove.
4337 (regcache-ipa.o: regcache.c): Remove.
4338 (i386-linux-ipa.o: i386-linux.c): Remove.
4339 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4340 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4341 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4342 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4343 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4344 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4345 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4346 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4347 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4348 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4349 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4350 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4351 (aarch64-ipa.o: aarch64.c): Remove.
4352 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4353 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4354 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4355 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4356 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4357 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4358 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4359 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4360 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4361 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4362 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4363 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4364 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4365 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4366 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4367 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4368 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4369 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4370 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4371 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4372 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4373 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4374 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4375 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4376 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4377 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4378 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4379 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4380 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4381 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4382 (tdesc-ipa.o: tdesc.c): Remove.
4383 (x32-linux-ipa.o: x32-linux.c): Remove.
4384 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4385 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4386
50cfacb7
SM
43872017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4388
4389 * Makefile.in (%.o: ../arch/%.c): New rule.
4390 (arm.o: ../arch/arm.c): Remove.
4391 (arm-linux.o: ../arch/arm-linux.c): Remove.
4392 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4393 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4394
c5a22423
SM
43952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4396
4397 * Makefile.in (%.o: ../nat/%.c): New rule.
4398 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4399 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4400 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4401 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4402 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4403 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4404 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4405 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4406 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4407 (linux-personality.o: ../nat/linux-personality.c): Remove.
4408 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4409 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4410 (x86-linux.o: ../nat/x86-linux.c): Remove.
4411 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4412 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4413
6bda016b
SM
44142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4415
4416 * Makefile.in (%.o: ../common/%.c): New rule.
4417 (signals.o: ../common/signals.c): Remove.
4418 (print-utils.o: ../common/print-utils.c): Remove.
4419 (rsp-low.o: ../common/rsp-low.c): Remove.
4420 (common-utils.o: ../common/common-utils.c): Remove.
4421 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4422 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4423 (vec.o: ../common/vec.c): Remove.
4424 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4425 (xml-utils.o: ../common/xml-utils.c): Remove.
4426 (ptid.o: ../common/ptid.c): Remove.
4427 (buffer.o: ../common/buffer.c): Remove.
4428 (format.o: ../common/format.c): Remove.
4429 (filestuff.o: ../common/filestuff.c): Remove.
4430 (agent.o: ../common/agent.c): Remove.
4431 (errors.o: ../common/errors.c): Remove.
4432 (environ.o: ../common/environ.c): Remove.
4433 (common-debug.o: ../common/common-debug.c): Remove.
4434 (cleanups.o: ../common/cleanups.c): Remove.
4435 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4436 (fileio.o: ../common/fileio.c): Remove.
4437 (common-regcache.o: ../common/common-regcache.c): Remove.
4438 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4439 (new-op.o: ../common/new-op.c): Remove.
4440 (btrace-common.o: ../common/btrace-common.c): Remove.
4441
21122961
SM
44422017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4443
4444 * Makefile.in (%.o: ../target/%.c): New rule.
4445 (waitstatus.o: ../target/waitstatus.c): Remove.
4446
c362e621
SM
44472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4448
4449 * Makefile.in
4450 (%.c: ../regformats/%.dat,
4451 (%.c: ../regformats/arm/%.dat,
4452 (%.c: ../regformats/i386/%.dat,
4453 (%.c: ../regformats/rs6000/%.dat): New rules.
4454 (aarch64.c): Remove.
4455 (reg-arm.c): Remove.
4456 (arm-with-iwmmxt.c): Remove.
4457 (arm-with-vfpv2.c): Remove.
4458 (arm-with-vfpv3.c): Remove.
4459 (arm-with-neon.c): Remove.
4460 (reg-bfin.c): Remove.
4461 (reg-cris.c): Remove.
4462 (reg-crisv32.c): Remove.
4463 (i386.c): Remove.
4464 (i386-linux.c): Remove.
4465 (i386-avx.c): Remove.
4466 (i386-avx-linux.c): Remove.
4467 (i386-avx-avx512.c): Remove.
4468 (i386-avx-avx512-linux.c): Remove.
4469 (i386-mpx.c): Remove.
4470 (i386-mpx-linux.c): Remove.
4471 (i386-avx-mpx-avx512-pku.c): Remove.
4472 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4473 (i386-avx-mpx.c): Remove.
4474 (i386-avx-mpx-linux.c): Remove.
4475 (i386-mmx.c): Remove.
4476 (i386-mmx-linux.c): Remove.
4477 (reg-ia64.c): Remove.
4478 (reg-m32r.c): Remove.
4479 (reg-m68k.c): Remove.
4480 (reg-cf.c): Remove.
4481 (mips-linux.c): Remove.
4482 (mips-dsp-linux.c): Remove.
4483 (mips64-linux.c): Remove.
4484 (mips64-dsp-linux.c): Remove.
4485 (nios2-linux.c): Remove.
4486 (powerpc-32.c): Remove.
4487 (powerpc-32l.c): Remove.
4488 (powerpc-altivec32l.c): Remove.
4489 (powerpc-cell32l.c): Remove.
4490 (powerpc-vsx32l.c): Remove.
4491 (powerpc-isa205-32l.c): Remove.
4492 (powerpc-isa205-altivec32l.c): Remove.
4493 (powerpc-isa205-vsx32l.c): Remove.
4494 (powerpc-e500l.c): Remove.
4495 (powerpc-64l.c): Remove.
4496 (powerpc-altivec64l.c): Remove.
4497 (powerpc-cell64l.c): Remove.
4498 (powerpc-vsx64l.c): Remove.
4499 (powerpc-isa205-64l.c): Remove.
4500 (powerpc-isa205-altivec64l.c): Remove.
4501 (powerpc-isa205-vsx64l.c): Remove.
4502 (s390-linux32.c): Remove.
4503 (s390-linux32v1.c): Remove.
4504 (s390-linux32v2.c): Remove.
4505 (s390-linux64.c): Remove.
4506 (s390-linux64v1.c): Remove.
4507 (s390-linux64v2.c): Remove.
4508 (s390-te-linux64.c): Remove.
4509 (s390-vx-linux64.c): Remove.
4510 (s390-tevx-linux64.c): Remove.
4511 (s390x-linux64.c): Remove.
4512 (s390x-linux64v1.c): Remove.
4513 (s390x-linux64v2.c): Remove.
4514 (s390x-te-linux64.c): Remove.
4515 (s390x-vx-linux64.c): Remove.
4516 (s390x-tevx-linux64.c): Remove.
4517 (tic6x-c64xp-linux.c): Remove.
4518 (tic6x-c64x-linux.c): Remove.
4519 (tic6x-c62x-linux.c): Remove.
4520 (reg-sh.c): Remove.
4521 (reg-sparc64.c): Remove.
4522 (reg-spu.c): Remove.
4523 (amd64.c): Remove.
4524 (amd64-linux.c): Remove.
4525 (amd64-avx.c): Remove.
4526 (amd64-avx-linux.c): Remove.
4527 (amd64-avx-avx512.c): Remove.
4528 (amd64-avx-avx512-linux.c): Remove.
4529 (amd64-mpx.c): Remove.
4530 (amd64-mpx-linux.c): Remove.
4531 (amd64-avx-mpx-avx512-pku.c): Remove.
4532 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4533 (amd64-avx-mpx.c): Remove.
4534 (amd64-avx-mpx-linux.c): Remove.
4535 (x32.c): Remove.
4536 (x32-linux.c): Remove.
4537 (x32-avx.c): Remove.
4538 (x32-avx-linux.c): Remove.
4539 (x32-avx-avx512.c): Remove.
4540 (x32-avx-avx512-linux.c): Remove.
4541 (reg-xtensa.c): Remove.
4542 (reg-tilegx.c): Remove.
4543 (reg-tilegx32.c): Remove.
4544
1672e0d9
SDJ
45452017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4546
4547 * Makefile.in (SFILES): Add "common/environ.c".
4548 (OBJS): Add "common/environ.h".
4549
239b6d10
WT
45502017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4551
4552 * configure.ac: Check if the fs_base and gs_base members of
4553 `struct user_regs_struct' exist.
4554 * config.in: Regenerated.
4555 * configure: Likewise.
4556
694b382c
AT
45572017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4558
4559 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4560 target_read_memory.
4561 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4562 (get_next_pcs_syscall_next_pc): Likewise.
4563
7dc53023
LM
45642016-12-23 Luis Machado <lgustavo@codesourcery.com>
4565
4566 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4567 * nto-x86-low.c: Likewise.
4568
ad02e4fe
SM
45692016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4570
4571 * Makefile.in: Include disable-implicit-rules.mk.
4572
dcb07cfa
PA
45732016-11-23 Pedro Alves <palves@redhat.com>
4574
4575 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4576 (debug_vprintf): Use std::chrono::steady_clock instead of
4577 gettimeofday. Use '.' instead of ':'.
4578 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4579 (get_timestamp): Use std::chrono::steady_clock instead of
4580 gettimeofday.
4581
8629c02c
SM
45822016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4583
4584 * Makefile.in: Fix whitespace formatting.
4585
b593ecca
SM
45862016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4587
4588 * Makefile.in (SFILES, OBS): Flatten list and order
4589 alphabetically.
4590
9986ba08
PA
45912016-11-23 Pedro Alves <palves@redhat.com>
4592
4593 * event-loop.c (handle_file_event): Use warning.
4594 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4595 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4596 Use warning.
4597
4eefa7bc
PA
45982016-11-23 Pedro Alves <palves@redhat.com>
4599
4600 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4601 output.
4602 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4603 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4604 debug_printf and debug_flush for debug output.
4605 * server.c (handle_general_set): Likewise.
4606 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4607 output.
4608
5443506e
SM
46092016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4610
4611 * Makefile.in (.c.o): Replace rule with ...
4612 (%.o: %.c): ... this one.
4613
3b165252
SM
46142016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4615
4616 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4617 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4618 make.
4619 * configure.ac: Remove checks for the make program.
4620 * configure: Re-generate.
4621
0bcda685
PA
46222016-10-28 Pedro Alves <palves@redhat.com>
4623
4624 * Makefile.in (CXX_DIALECT): Get from configure.
4625 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4626 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4627 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4628 * config.in: Regenerate.
4629 * configure: Regenerate.
4630
c3805894
YQ
46312016-10-27 Yao Qi <yao.qi@linaro.org>
4632
4633 * linux-low.c (linux_supports_range_stepping): Return true if
4634 can_software_single_step return true.
4635
89342618
YQ
46362016-10-27 Yao Qi <yao.qi@linaro.org>
4637
4638 * inferiors.c (find_inferior_in_random): New function.
4639 * inferiors.h (find_inferior_in_random): Declare.
4640 * linux-low.c (linux_wait_for_event_filtered): Call
4641 find_inferior_in_random instead of find_inferior.
4642
e3652c84
YQ
46432016-10-27 Yao Qi <yao.qi@linaro.org>
4644
4645 * linux-low.c (linux_wait_1): If single-step breakpoints are
4646 inserted, remove them.
4647
5a04c4cf
PA
46482016-10-26 Pedro Alves <palves@redhat.com>
4649
4650 * linux-low.c (handle_extended_wait): Link parent/child fork
4651 threads.
4652 (linux_wait_1): Unlink them.
4653 (linux_set_resume_request): Ignore resume requests for
4654 already-resumed and unhandled fork child threads.
4655 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4656 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4657 New functions.
4658 (handle_v_requests) <vCont>: Don't call require_running.
4659 * server.h (in_queued_stop_replies): New declaration.
4660
cb93dc7f
YQ
46612016-10-24 Yao Qi <yao.qi@linaro.org>
4662
4663 PR server/20733
4664 * linux-aarch64-low.c (append_insns): Cast the return value to
4665 'uint32_t *'.
4666
a1078bea
YQ
46672016-10-10 Yao Qi <yao.qi@linaro.org>
4668
4669 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4670
1fb77080
SDJ
46712016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4672
4673 * target.c (target_supports_multi_process): New function, moved
4674 from...
4675 * target.h (target_supports_multi_process): ... here. Remove
4676 macro.
4677
39b5a3b9
TT
46782016-10-05 Tom Tromey <tom@tromey.com>
4679
4680 PR remote/20655:
4681 * tracepoint.c (handle_tracepoint_bkpts): Check
4682 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4683
c1d0b70a
YQ
46842016-10-05 Yao Qi <yao.qi@linaro.org>
4685
4686 * configure.srv: Update the path of arm-*.xml files.
4687
0a69eedb
YQ
46882016-10-05 Terry Guo <terry.guo@arm.com>
4689 Yao Qi <yao.qi@linaro.org>
4690
4691 * Makefile.in: Adjust the path of rules.
4692 * configure.srv: Update the path of xml files.
4693 * regformats/arm-with-iwmmxt.dat: Regenerated.
4694 * regformats/arm-with-neon.dat: Likewise.
4695 * regformats/arm-with-vfpv2.dat: Likewise.
4696 * regformats/arm-with-vfpv3.dat Likewise.
4697
17e16485
YQ
46982016-09-30 Yao Qi <yao.qi@linaro.org>
4699
4700 PR gdbserver/20627
4701 * target.c (target_stop_and_wait): Don't call
4702 target_continue_no_signal, use resume_stop instead.
4703
edeeb602
YQ
47042016-09-26 Yao Qi <yao.qi@linaro.org>
4705
4706 * linux-low.c (linux_wait_1): Call debug_exit.
4707
503b1c39
PA
47082016-09-23 Pedro Alves <palves@redhat.com>
4709
4710 * Makefile.in (SFILES): Add common/new-op.c.
4711 (OBS): Add common/new-op.o.
4712 (new-op.o): New rule.
4713
74172ecf
SM
47142016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4715
4716 * .gitinore: Ignore more files.
4717
fc6cda2e
YQ
47182016-09-21 Yao Qi <yao.qi@linaro.org>
4719
4720 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
4721 23.
4722
bc1e6c81
SDJ
47232016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4724
4725 * server.c (start_inferior): Call target_mourn_inferior instead of
4726 mourn_inferior; pass ptid_t argument to it.
4727 (resume): Likewise.
4728 (handle_target_event): Likewise.
4729 * target.c (target_mourn_inferior): New function.
4730 * target.h (mourn_inferior): Delete macro.
4731
0e00e962
AA
47322016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4733
4734 * linux-low.c (lwp_is_stepping): New function.
4735
1d8cb77d
CL
47362016-09-06 Carl Love <cel@us.ibm.com>
4737
4738 * server.c (start_inferior): Fixed comment, requested comment change
4739 didn't get updated correctly. Removed reference to ptrace () call as
4740 it is only true on Linux systems.
4741
7313bced
CL
47422016-09-06 Carl Love <cel@us.ibm.com>
4743
4744 * server.c (start_inferior): Do not call
4745 function target_post_create_inferior () if the
4746 inferior process has already exited.
4747
cf6de44d
PA
47482016-09-05 Pedro Alves <palves@redhat.com>
4749
4750 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4751 (COMPILE.pre, CC_LD): Use CXX directly.
4752 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4753 * acinclude.m4: Don't include build-with-cxx.m4.
4754 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4755 * configure: Regenerate.
4756
c1da6748
AT
47572016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4758
4759 PR gdb/19495
4760 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4761 call writing data to own_buf.
4762
f2b9e3df
SDJ
47632016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4764
4765 * target.c (mywait): Call target_wait instead of
4766 the_target->wait.
4767 (target_wait): New function.
4768
049a8570
SDJ
47692016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4770
4771 * server.c (start_inferior): New variable 'ptid'. Replace calls
4772 to the_target->resume by target_continue{,_no_signal}, depending
4773 on the case.
4774 * target.c (target_stop_and_wait): Call target_continue_no_signal
4775 instead of the_target->resume.
4776 (target_continue): New function.
4777
3aa5cfa0
AT
47782016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4779
4780 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4781
754653a7
AZ
47822016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4783
4784 PR server/20491
4785 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4786 ps_prochandle.
4787 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4788 * linux-arm-low.c (ps_get_thread_area): Likewise.
4789 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4790 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4791 * linux-mips-low.c (ps_get_thread_area): Likewise.
4792 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4793 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4794 * linux-x86-low.c (ps_get_thread_area): Likewise.
4795 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4796
ed036b40
PA
47972016-08-19 Pedro Alves <palves@redhat.com>
4798
4799 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4800
c8ef42ee
PA
48012016-08-19 Pedro Alves <palves@redhat.com>
4802
4803 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4804 comment. Use memcpy instead of casting through unsigned long.
4805
9c235a72
PA
48062016-08-19 Pedro Alves <palves@redhat.com>
4807
4808 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4809 allocating around 0x80000000.
4810
201506da
PA
48112016-08-19 Pedro Alves <palves@redhat.com>
4812
4813 PR gdb/20415
4814 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4815 (x32-avx512-linux-ipa.o): New rules.
4816 * configure.ac (x86_64-*-linux*): New x32 check.
4817 * configure.srv (ipa_x32_linux_regobj): New.
4818 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4819 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4820 descriptions.
4821 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4822 descriptions.
4823 * configure: Regenerate.
4824
f348d89a
PA
48252016-08-09 Pedro Alves <palves@redhat.com>
4826
4827 PR gdb/18653
4828 * Makefile.in (OBS): Add signals-state-save-restore.o.
4829 (signals-state-save-restore.o): New rule.
4830 * config.in: Regenerate.
4831 * configure: Regenerate.
4832 * linux-low.c: Include "signals-state-save-restore.h".
4833 (linux_create_inferior): Call
4834 restore_original_signals_state.
4835 * server.c: Include "dispositions-save-restore.h".
4836 (captured_main): Call save_original_signals_state.
4837
1baf5149
PA
48382016-08-05 Pedro Alves <palves@redhat.com>
4839
4840 * configure: Regenerate.
4841
fcd4a73d
YQ
48422016-08-04 Yao Qi <yao.qi@linaro.org>
4843
4844 * linux-low.c (regsets_fetch_inferior_registers): Check
4845 errno is ESRCH or not.
4846
979659d0
YQ
48472016-08-02 Yao Qi <yao.qi@linaro.org>
4848
4849 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4850 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4851 (thread_db_load_search): Update.
4852 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4853 td_ta_set_event and td_ta_event_getmsg.
4854
6598661d
PA
48552016-07-26 Pedro Alves <palves@redhat.com>
4856
4857 PR server/20414
4858 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4859 of unsigned long for 64-bit registers and use uint32_t instead of
4860 unsigned int for 32-bit registers.
4861
9cf12d57
PA
48622016-07-26 Pedro Alves <palves@redhat.com>
4863
4864 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4865 to 'ptrace'.
4866
305450ed
TT
48672016-07-21 Tom Tromey <tom@tromey.com>
4868
4869 * configure: Rebuild.
4870
2583da7c
YQ
48712016-07-21 Yao Qi <yao.qi@linaro.org>
4872
4873 * mem-break.c (find_gdb_breakpoint): Cast bp to
4874 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4875
21536b36
YQ
48762016-07-21 Yao Qi <yao.qi@linaro.org>
4877
4878 * server.c (handle_v_requests): Support s and S actions
4879 if target_supports_software_single_step return true.
4880
8901d193
YQ
48812016-07-21 Yao Qi <yao.qi@linaro.org>
4882
4883 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4884 is resume_step, call maybe_hw_step.
4885 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4886 and unstop them.
4887 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4888 breakpoints or not.
4889 (proceed_one_lwp): If resume request is resume_step, install
4890 reinsert breakpoints and call maybe_hw_step.
4891
0e9a339e
YQ
48922016-07-21 Yao Qi <yao.qi@linaro.org>
4893
4894 * linux-low.c (proceed_one_lwp): Declare.
4895 (linux_resume_one_thread): Remove local variable 'step'.
4896 Lift code enqueue signal. Call proceed_one_lwp instead of
4897 linux_resume_one_lwp.
4898
4281b351
YQ
48992016-07-21 Yao Qi <yao.qi@linaro.org>
4900
4901 * linux-low.c (linux_resume_one_thread): Call
4902 enqueue_pending_signal.
4903
984a2c04
YQ
49042016-07-21 Yao Qi <yao.qi@linaro.org>
4905
4906 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4907 * inferiors.c (do_restore_current_thread_cleanup): New function.
4908 (make_cleanup_restore_current_thread): Likewise.
4909 * linux-low.c (install_software_single_step_breakpoints): Call
4910 make_cleanup_restore_current_thread. Switch current_thread to
4911 thread.
4912
bec903c9
YQ
49132016-07-21 Yao Qi <yao.qi@linaro.org>
4914
4915 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4916 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4917 (clone_one_breakpoint): Likewise.
4918 (delete_reinsert_breakpoints): Change parameter to thread.
4919 Callers updated.
4920 (has_reinsert_breakpoints): Likewise.
4921 (uninsert_reinsert_breakpoints): Likewise.
4922 (reinsert_reinsert_breakpoints): Likewise.
4923 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4924 (delete_reinsert_breakpoints): Likewise.
4925 (reinsert_reinsert_breakpoints): Likewise.
4926 (uninsert_reinsert_breakpoints): Likewise.
4927 (has_reinsert_breakpoints): Likewise.
4928
63c40ec7
YQ
49292016-07-21 Yao Qi <yao.qi@linaro.org>
4930
4931 * inferiors.c (get_thread_process): Make parameter const.
4932 * inferiors.h (get_thread_process): Update declaration.
4933 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4934 Add new parameters child_thread and parent_thread. Callers
4935 updated.
4936 * mem-break.h (clone_all_breakpoints): Update declaration.
4937
9aa76cd0
YQ
49382016-07-21 Yao Qi <yao.qi@linaro.org>
4939
4940 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4941 <command_list, handler>: Remove.
4942 (struct gdb_breakpoint): New.
4943 (struct other_breakpoint): New.
4944 (struct reinsert_breakpoint): New.
4945 (is_gdb_breakpoint): New function.
4946 (any_persistent_commands): Update command_list if
4947 is_gdb_breakpoint returns true.
4948 (set_breakpoint): Create breakpoints according to their types.
4949 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4950 (set_gdb_breakpoint_1): Likewise.
4951 (set_gdb_breakpoint): Likewise.
4952 (clear_breakpoint_conditions): Change parameter type to
4953 'struct gdb_breakpoint *'.
4954 (clear_breakpoint_commands): Likewise.
4955 (clear_breakpoint_conditions_and_commands): Likewise.
4956 (add_condition_to_breakpoint): Likewise.
4957 (add_breakpoint_condition): Likewise.
4958 (add_commands_to_breakpoint): Likewise.
4959 (check_breakpoints): Check other_breakpoint.
4960 (clone_one_breakpoint): Clone breakpopint according to its type.
4961 * mem-break.h (struct gdb_breakpoint): Declare.
4962 (set_gdb_breakpoint): Update declaration.
4963 (clear_breakpoint_conditions_and_commands): Likewise.
4964 (add_breakpoint_condition): Likewise.
4965 (add_breakpoint_commands): Likewise.
4966 * server.c (process_point_options): Change parameter type to
4967 'struct gdb_breakpoint *'.
4968
811f8301
YQ
49692016-07-21 Yao Qi <yao.qi@linaro.org>
4970
4971 * mem-break.c (set_breakpoint_at): Rename it to ...
4972 (set_breakpoint_type_at): ... it.
4973 (set_breakpoint_at): Call set_breakpoint_type_at.
4974 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4975 * mem-break.h (set_breakpoint_at): Update comments.
4976
b1c51e36
CLT
49772016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4978
4979 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4980 to buf parameter.
4981 (nios2_store_gregset): Likewise.
4982
ced2dffb
PA
49832016-07-01 Pedro Alves <palves@redhat.com>
4984 Antoine Tremblay <antoine.tremblay@ericsson.com>
4985
4986 * linux-low.c: Change interface to take the target lwp_info
4987 pointer directly and return void. Handle detaching from a zombie
4988 thread.
4989 (linux_detach_lwp_callback): New function.
4990 (linux_detach): Detach from the leader thread after detaching from
4991 the clone threads.
4992
2ac09a5b
YQ
49932016-06-28 Yao Qi <yao.qi@linaro.org>
4994
4995 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4996 for variable new_offset.
4997 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4998 (aarch64_ftrace_insn_reloc_cb): Likewise.
4999 (aarch64_ftrace_insn_reloc_tb): Likewise.
5000 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5001 PRIx64 instead of PRIx32.
5002
79e7fd4f
YQ
50032016-06-28 Yao Qi <yao.qi@linaro.org>
5004
5005 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5006 (the_low_target): Install arm_get_syscall_trapinfo.
5007
061fc021
YQ
50082016-06-28 Yao Qi <yao.qi@linaro.org>
5009
5010 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5011 function.
5012 (the_low_target): Install aarch64_get_syscall_trapinfo.
5013
4cc32bec
YQ
50142016-06-28 Yao Qi <yao.qi@linaro.org>
5015
5016 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5017 Callers updated.
5018 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5019 Remove parameter sysno.
5020 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5021 sysret.
5022
782c1122
AA
50232016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5024
5025 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5026 (s390_emit_ne_goto): Likewise.
5027 (s390_emit_lt_goto): Likewise.
5028 (s390_emit_le_goto): Likewise.
5029 (s390_emit_gt_goto): Likewise.
5030 (s390_emit_ge_goto): Likewise.
5031 (s390x_emit_eq_goto): Likewise.
5032 (s390x_emit_ne_goto): Likewise.
5033 (s390x_emit_lt_goto): Likewise.
5034 (s390x_emit_le_goto): Likewise.
5035 (s390x_emit_gt_goto): Likewise.
5036 (s390x_emit_ge_goto): Likewise.
5037 (s390_emit_ops_impl): Mark variable static.
5038 (s390x_emit_ops): Likewise.
5039
2e7b624b
YQ
50402016-06-17 Yao Qi <yao.qi@linaro.org>
5041
5042 * linux-low.c (handle_extended_wait): Call
5043 uninsert_reinsert_breakpoints for the parent process. Remove
5044 reinsert breakpoints from the child process. Reinsert them to
5045 the parent process when vfork is done.
5046 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5047 (reinsert_reinsert_breakpoints): New function.
5048 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5049 (reinsert_reinsert_breakpoints): Declare.
5050
8a81c5d7
YQ
50512016-06-17 Yao Qi <yao.qi@linaro.org>
5052
5053 * linux-low.c (handle_extended_wait): If the parent is doing
5054 step-over, remove the reinsert breakpoints from the forked child.
5055
f50bf8e5
YQ
50562016-06-17 Yao Qi <yao.qi@linaro.org>
5057
5058 * linux-low.c (unsuspend_all_lwps): Declare.
5059 (linux_low_filter_event): If thread exited, call finish_step_over.
5060 If step-over is finished, unsuspend other threads.
5061
8376a3cb
YQ
50622016-06-17 Yao Qi <yao.qi@linaro.org>
5063
5064 * linux-low.c (linux_resume_one_lwp_throw): Assert
5065 has_reinsert_breakpoints returns false.
5066 * mem-break.c (delete_disabled_breakpoints): Assert
5067 bp type isn't reinsert_breakpoint.
5068
f79b145d
YQ
50692016-06-17 Yao Qi <yao.qi@linaro.org>
5070
5071 * linux-low.c (maybe_hw_step): New function.
5072 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5073 (finish_step_over): Switch current_thread to lwp temporarily,
5074 and assert has_reinsert_breakpoints returns true.
5075 (proceed_one_lwp): Call maybe_hw_step.
5076 * mem-break.c (has_reinsert_breakpoints): New function.
5077 * mem-break.h (has_reinsert_breakpoints): Declare.
5078
0ae534d2
JT
50792016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5080
5081 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5082
fcdad592
YQ
50832016-05-17 Yao Qi <yao.qi@linaro.org>
5084
5085 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5086 instead of find_inferior.
5087
9e784964
YQ
50882016-05-05 Yao Qi <yao.qi@linaro.org>
5089
5090 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5091 Initialize res to zero.
5092
cf2ebb6e
YQ
50932016-05-05 Yao Qi <yao.qi@linaro.org>
5094
5095 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5096 to uint32_t.
5097
c1aebf87
UW
50982016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5099
5100 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5101 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5102 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5103
35fd2deb 51042016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 5105 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
5106
5107 * tracepoint.c (write_inferior_int8): New function.
5108 (cmd_qtenable_disable): Write enable flag using
5109 write_inferior_int8.
5110
484b3c32
YQ
51112016-04-25 Yao Qi <yao.qi@linaro.org>
5112
5113 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5114 (need_step_over_p): Return zero if the LWP has pending signals
5115 can be delivered on software single step target.
5116
85ba7d86
YQ
51172016-04-25 Yao Qi <yao.qi@linaro.org>
5118
5119 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5120 return instead of error.
5121
3539aa13
YQ
51222016-04-22 Yao Qi <yao.qi@linaro.org>
5123
5124 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5125 to 23.
5126
5b061e98
YQ
51272016-04-22 Yao Qi <yao.qi@linaro.org>
5128
5129 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5130 signal when stepping over breakpoint with software single
5131 step.
5132
3451269c
PA
51332016-04-21 Pedro Alves <palves@redhat.com>
5134
5135 * linux-s390-low.c (s390_collect_ptrace_register)
5136 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5137 add casts.
5138 (s390_check_regset): Use void * instead of gdb_byte *.
5139
a2358508
PA
51402016-04-20 Pedro Alves <palves@redhat.com>
5141
5142 * configure: Renegerate.
5143
6885166d
YQ
51442016-04-20 Yao Qi <yao.qi@linaro.org>
5145
5146 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5147 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5148 number 16.
5149 (arm_store_gregset): Likewise.
5150
2b863f51
WT
51512016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5152
5153 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5154 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5155 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5156 (amd64-avx-mpx-linux.c): New rules.
5157 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5158 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5159 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5160 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5161 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5162 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5163 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5164 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5165 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5166 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5167 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5168 * linux-x86-low.c (x86_linux_read_description): Add case for
5169 X86_XSTATE_AVX_MPX_MASK.
5170 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5171 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5172 init_registers_i386_avx_mpx_linux.
5173 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5174 (initialize_low_tracepoint): Call
5175 init_registers_i386_avx_mpx_linux.
5176 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5177 (initialize_low_tracepoint): Call
5178 init_registers_amd64_avx_mpx_linux.
5179 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5180 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5181 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5182 declarations.
5183
9b30624b
PA
51842016-04-18 Pedro Alves <palves@redhat.com>
5185
5186 * configure: Regenerate.
5187
45e3745e
AT
51882016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5189
5190 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5191 (aarch64_emit_sub): Likewise.
5192
2afc13ff
PA
51932016-04-12 Pedro Alves <palves@redhat.com>
5194
5195 * utils.c (prepare_to_throw_exception): Delete.
5196
6e774b13
SM
51972016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5198
5199 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5200
4dca19f8
MK
52012016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5202
5203 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5204
d0a9981f
MK
52052016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5206
5207 * linux-aarch64-ipa.c: Add <elf.h> include.
5208 * linux-ppc-ipa.c: Add <elf.h> include.
5209 * linux-s390-ipa.c: Add <elf.h> include.
5210
252db07e
MK
52112016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5212
5213 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5214 (get_raw_reg_ptr): Likewise.
5215 (get_trace_state_variable_value_ptr): Likewise.
5216 (set_trace_state_variable_value_ptr): Likewise.
5217 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5218 char *.
5219
14e2b6d9
MK
52202016-03-31 Wei-cheng Wang <cole945@gmail.com>
5221 Marcin Kościelnicki <koriakin@0x04.net>
5222
5223 PR/17221
5224 * linux-ppc-low.c (emit_insns): New function.
5225 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5226 (ppc_emit_prologue): New function.
5227 (ppc_emit_epilogue): New function.
5228 (ppc_emit_add): New function.
5229 (ppc_emit_sub): New function.
5230 (ppc_emit_mul): New function.
5231 (ppc_emit_lsh): New function.
5232 (ppc_emit_rsh_signed): New function.
5233 (ppc_emit_rsh_unsigned): New function.
5234 (ppc_emit_ext): New function.
5235 (ppc_emit_zero_ext): New function.
5236 (ppc_emit_log_not): New function.
5237 (ppc_emit_bit_and): New function.
5238 (ppc_emit_bit_or): New function.
5239 (ppc_emit_bit_xor): New function.
5240 (ppc_emit_bit_not): New function.
5241 (ppc_emit_equal): New function.
5242 (ppc_emit_less_signed): New function.
5243 (ppc_emit_less_unsigned): New function.
5244 (ppc_emit_ref): New function.
5245 (ppc_emit_const): New function.
5246 (ppc_emit_reg): New function.
5247 (ppc_emit_pop): New function.
5248 (ppc_emit_stack_flush): New function.
5249 (ppc_emit_swap): New function.
5250 (ppc_emit_stack_adjust): New function.
5251 (ppc_emit_call): New function.
5252 (ppc_emit_int_call_1): New function.
5253 (ppc_emit_void_call_2): New function.
5254 (ppc_emit_if_goto): New function.
5255 (ppc_emit_goto): New function.
5256 (ppc_emit_eq_goto): New function.
5257 (ppc_emit_ne_goto): New function.
5258 (ppc_emit_lt_goto): New function.
5259 (ppc_emit_le_goto): New function.
5260 (ppc_emit_gt_goto): New function.
5261 (ppc_emit_ge_goto): New function.
5262 (ppc_write_goto_address): New function.
5263 (ppc_emit_ops_impl): New static variable.
5264 (ppc64v1_emit_prologue): New function.
5265 (ppc64v2_emit_prologue): New function.
5266 (ppc64_emit_epilogue): New function.
5267 (ppc64_emit_add): New function.
5268 (ppc64_emit_sub): New function.
5269 (ppc64_emit_mul): New function.
5270 (ppc64_emit_lsh): New function.
5271 (ppc64_emit_rsh_signed): New function.
5272 (ppc64_emit_rsh_unsigned): New function.
5273 (ppc64_emit_ext): New function.
5274 (ppc64_emit_zero_ext): New function.
5275 (ppc64_emit_log_not): New function.
5276 (ppc64_emit_bit_and): New function.
5277 (ppc64_emit_bit_or): New function.
5278 (ppc64_emit_bit_xor): New function.
5279 (ppc64_emit_bit_not): New function.
5280 (ppc64_emit_equal): New function.
5281 (ppc64_emit_less_signed): New function.
5282 (ppc64_emit_less_unsigned): New function.
5283 (ppc64_emit_ref): New function.
5284 (ppc64_emit_const): New function.
5285 (ppc64v1_emit_reg): New function.
5286 (ppc64v2_emit_reg): New function.
5287 (ppc64_emit_pop): New function.
5288 (ppc64_emit_stack_flush): New function.
5289 (ppc64_emit_swap): New function.
5290 (ppc64v1_emit_call): New function.
5291 (ppc64v2_emit_call): New function.
5292 (ppc64v1_emit_int_call_1): New function.
5293 (ppc64v2_emit_int_call_1): New function.
5294 (ppc64v1_emit_void_call_2): New function.
5295 (ppc64v2_emit_void_call_2): New function.
5296 (ppc64_emit_if_goto): New function.
5297 (ppc64_emit_eq_goto): New function.
5298 (ppc64_emit_ne_goto): New function.
5299 (ppc64_emit_lt_goto): New function.
5300 (ppc64_emit_le_goto): New function.
5301 (ppc64_emit_gt_goto): New function.
5302 (ppc64_emit_ge_goto): New function.
5303 (ppc64v1_emit_ops_impl): New static variable.
5304 (ppc64v2_emit_ops_impl): New static variable.
5305 (ppc_emit_ops): New function.
5306 (linux_low_target): Wire in ppc_emit_ops.
5307
a2174ba4
MK
53082016-03-31 Wei-cheng Wang <cole945@gmail.com>
5309 Marcin Kościelnicki <koriakin@0x04.net>
5310
5311 PR/17221
5312 * Makefile.in: Add powerpc-*-ipa.o
5313 * configure.srv: Add ipa_obj for powerpc*-linux.
5314 * linux-ppc-ipa.c: New file.
5315 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5316 includes.
5317 (PPC_FIELD): New macro.
5318 (PPC_SEXT): New macro.
5319 (PPC_OP6): New macro.
5320 (PPC_BO): New macro.
5321 (PPC_LI): New macro.
5322 (PPC_BD): New macro.
5323 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5324 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5325 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5326 (ppc_get_thread_area): New function.
5327 (is_elfv2_inferior): New function.
5328 (gen_ds_form): New function.
5329 (GEN_STD): New macro.
5330 (GEN_STDU): New macro.
5331 (GEN_LD): New macro.
5332 (GEN_LDU): New macro.
5333 (gen_d_form): New function.
5334 (GEN_ADDI): New macro.
5335 (GEN_ADDIS): New macro.
5336 (GEN_LI): New macro.
5337 (GEN_LIS): New macro.
5338 (GEN_ORI): New macro.
5339 (GEN_ORIS): New macro.
5340 (GEN_LWZ): New macro.
5341 (GEN_STW): New macro.
5342 (GEN_STWU): New macro.
5343 (gen_xfx_form): New function.
5344 (GEN_MFSPR): New macro.
5345 (GEN_MTSPR): New macro.
5346 (GEN_MFCR): New macro.
5347 (GEN_MTCR): New macro.
5348 (GEN_SYNC): New macro.
5349 (GEN_LWSYNC): New macro.
5350 (gen_x_form): New function.
5351 (GEN_OR): New macro.
5352 (GEN_MR): New macro.
5353 (GEN_LWARX): New macro.
5354 (GEN_STWCX): New macro.
5355 (GEN_CMPW): New macro.
5356 (gen_md_form): New function.
5357 (GEN_RLDICL): New macro.
5358 (GEN_RLDICR): New macro.
5359 (gen_i_form): New function.
5360 (GEN_B): New macro.
5361 (GEN_BL): New macro.
5362 (gen_b_form): New function.
5363 (GEN_BNE): New macro.
5364 (GEN_LOAD): New macro.
5365 (GEN_STORE): New macro.
5366 (gen_limm): New function.
5367 (gen_atomic_xchg): New function.
5368 (gen_call): New function.
5369 (ppc_relocate_instruction): New function.
5370 (ppc_install_fast_tracepoint_jump_pad): New function.
5371 (ppc_get_min_fast_tracepoint_insn_len): New function.
5372 (ppc_get_ipa_tdesc_idx): New function.
5373 (the_low_target): Wire in the new functions.
5374 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5375 tdescs.
5376 * linux-ppc-tdesc.h: New file.
5377
a13c4696
MK
53782016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5379
5380 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5381 (alloc_jump_pad_buffer): New function.
5382 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5383 (alloc_jump_pad_buffer): New function.
5384 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5385 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5386 (alloc_jump_pad_buffer): New function.
5387 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5388 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5389 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5390 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5391
1cda1512
MK
53922016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5393
5394 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5395 * linux-amd64-ipa.c: Likewise.
5396 * linux-i386-ipa.c: Likewise.
5397 * linux-s390-ipa.c: Likewise.
5398 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5399 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5400 set_trace_state_variable_value_ptr.
5401 (struct ipa_sym_addresses): Likewise.
5402 (symbol_list): Likewise.
5403 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5404 accessing gdb_collect directly.
5405 (gdb_collect_ptr_type): New typedef.
5406 (get_raw_reg_ptr_type): New typedef.
5407 (get_trace_state_variable_value_ptr_type): New typedef.
5408 (set_trace_state_variable_value_ptr_type): New typedef.
5409 (gdb_collect_ptr): New global.
5410 (get_raw_reg_ptr): New global.
5411 (get_trace_state_variable_value_ptr): New global.
5412 (set_trace_state_variable_value_ptr): New global.
5413 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5414 accessing get_raw_reg directly.
5415 (get_get_tsv_func_addr): Likewise for
5416 get_trace_state_variable_value_ptr.
5417 (get_set_tsv_func_addr): Likewise for
5418 set_trace_state_variable_value_ptr.
5419 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5420
72fb5488
SM
54212016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5422
5423 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5424
28170b88
MK
54252016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5426
5427 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5428 packets.
5429 (relocate_instruction): Remove own_buf.
5430 * server.c (own_buf): Make global.
5431 (handle_v_requests): Make global.
5432 * server.h (own_buf): New declaration.
5433 (handle_v_requests): New prototype.
5434
f39e8743
MK
54352016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5436
5437 PR 18377
5438 * linux-s390-low.c (add_insns): New function.
5439 (s390_emit_prologue): New function.
5440 (s390_emit_epilogue): New function.
5441 (s390_emit_add): New function.
5442 (s390_emit_sub): New function.
5443 (s390_emit_mul): New function.
5444 (s390_emit_lsh): New function.
5445 (s390_emit_rsh_signed): New function.
5446 (s390_emit_rsh_unsigned): New function.
5447 (s390_emit_ext): New function.
5448 (s390_emit_log_not): New function.
5449 (s390_emit_bit_and): New function.
5450 (s390_emit_bit_or): New function.
5451 (s390_emit_bit_xor): New function.
5452 (s390_emit_bit_not): New function.
5453 (s390_emit_equal): New function.
5454 (s390_emit_less_signed): New function.
5455 (s390_emit_less_unsigned): New function.
5456 (s390_emit_ref): New function.
5457 (s390_emit_if_goto): New function.
5458 (s390_emit_goto): New function.
5459 (s390_write_goto_address): New function.
5460 (s390_emit_litpool): New function.
5461 (s390_emit_const): New function.
5462 (s390_emit_call): New function.
5463 (s390_emit_reg): New function.
5464 (s390_emit_pop): New function.
5465 (s390_emit_stack_flush): New function.
5466 (s390_emit_zero_ext): New function.
5467 (s390_emit_swap): New function.
5468 (s390_emit_stack_adjust): New function.
5469 (s390_emit_set_r2): New function.
5470 (s390_emit_int_call_1): New function.
5471 (s390_emit_void_call_2): New function.
5472 (s390_emit_eq_goto): New function.
5473 (s390_emit_ne_goto): New function.
5474 (s390_emit_lt_goto): New function.
5475 (s390_emit_le_goto): New function.
5476 (s390_emit_gt_goto): New function.
5477 (s390_emit_ge_goto): New function.
5478 (s390x_emit_prologue): New function.
5479 (s390x_emit_epilogue): New function.
5480 (s390x_emit_add): New function.
5481 (s390x_emit_sub): New function.
5482 (s390x_emit_mul): New function.
5483 (s390x_emit_lsh): New function.
5484 (s390x_emit_rsh_signed): New function.
5485 (s390x_emit_rsh_unsigned): New function.
5486 (s390x_emit_ext): New function.
5487 (s390x_emit_log_not): New function.
5488 (s390x_emit_bit_and): New function.
5489 (s390x_emit_bit_or): New function.
5490 (s390x_emit_bit_xor): New function.
5491 (s390x_emit_bit_not): New function.
5492 (s390x_emit_equal): New function.
5493 (s390x_emit_less_signed): New function.
5494 (s390x_emit_less_unsigned): New function.
5495 (s390x_emit_ref): New function.
5496 (s390x_emit_if_goto): New function.
5497 (s390x_emit_const): New function.
5498 (s390x_emit_call): New function.
5499 (s390x_emit_reg): New function.
5500 (s390x_emit_pop): New function.
5501 (s390x_emit_stack_flush): New function.
5502 (s390x_emit_zero_ext): New function.
5503 (s390x_emit_swap): New function.
5504 (s390x_emit_stack_adjust): New function.
5505 (s390x_emit_int_call_1): New function.
5506 (s390x_emit_void_call_2): New function.
5507 (s390x_emit_eq_goto): New function.
5508 (s390x_emit_ne_goto): New function.
5509 (s390x_emit_lt_goto): New function.
5510 (s390x_emit_le_goto): New function.
5511 (s390x_emit_gt_goto): New function.
5512 (s390x_emit_ge_goto): New function.
5513 (s390_emit_ops): New function.
5514 (struct linux_target_ops): Fill in emit_ops hook.
5515
abd9baf9
MK
55162016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5517
5518 PR 18377
5519 * Makefile.in: Add s390 IPA files.
5520 * configure.srv: Build IPA for s390.
5521 * linux-s390-ipa.c: New file.
5522 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5523 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5524 (tdesc_s390_linux32): Likewise.
5525 (init_registers_s390_linux32v1): Likewise.
5526 (tdesc_s390_linux32v1): Likewise.
5527 (init_registers_s390_linux32v2): Likewise.
5528 (tdesc_s390_linux32v2): Likewise.
5529 (init_registers_s390_linux64): Likewise.
5530 (tdesc_s390_linux64): Likewise.
5531 (init_registers_s390_linux64v1): Likewise.
5532 (tdesc_s390_linux64v1): Likewise.
5533 (init_registers_s390_linux64v2): Likewise.
5534 (tdesc_s390_linux64v2): Likewise.
5535 (init_registers_s390_te_linux64): Likewise.
5536 (tdesc_s390_te_linux64): Likewise.
5537 (init_registers_s390_vx_linux64): Likewise.
5538 (tdesc_s390_vx_linux64): Likewise.
5539 (init_registers_s390_tevx_linux64): Likewise.
5540 (tdesc_s390_tevx_linux64): Likewise.
5541 (init_registers_s390x_linux64): Likewise.
5542 (tdesc_s390x_linux64): Likewise.
5543 (init_registers_s390x_linux64v1): Likewise.
5544 (tdesc_s390x_linux64v1): Likewise.
5545 (init_registers_s390x_linux64v2): Likewise.
5546 (tdesc_s390x_linux64v2): Likewise.
5547 (init_registers_s390x_te_linux64): Likewise.
5548 (tdesc_s390x_te_linux64): Likewise.
5549 (init_registers_s390x_vx_linux64): Likewise.
5550 (tdesc_s390x_vx_linux64): Likewise.
5551 (init_registers_s390x_tevx_linux64): Likewise.
5552 (tdesc_s390x_tevx_linux64): Likewise.
5553 (have_hwcap_s390_vx): New static variable.
5554 (s390_arch_setup): Fill have_hwcap_s390_vx.
5555 (s390_get_thread_area): New function.
5556 (s390_ft_entry_gpr_esa): New const.
5557 (s390_ft_entry_gpr_zarch): New const.
5558 (s390_ft_entry_misc): New const.
5559 (s390_ft_entry_fr): New const.
5560 (s390_ft_entry_vr): New const.
5561 (s390_ft_main_31): New const.
5562 (s390_ft_main_64): New const.
5563 (s390_ft_exit_fr): New const.
5564 (s390_ft_exit_vr): New const.
5565 (s390_ft_exit_misc): New const.
5566 (s390_ft_exit_gpr_esa): New const.
5567 (s390_ft_exit_gpr_zarch): New const.
5568 (append_insns): New function.
5569 (s390_relocate_instruction): New function.
5570 (s390_install_fast_tracepoint_jump_pad): New function.
5571 (s390_get_min_fast_tracepoint_insn_len): New function.
5572 (s390_get_ipa_tdesc_idx): New function.
5573 (struct linux_target_ops): Wire in the above functions.
5574 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5575 * linux-s390-tdesc.h: New file.
5576
a4105d04
MK
55772016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5578
5579 * linux-s390-low.c (s390_supports_tracepoints): New function.
5580 (struct linux_target_ops): Fill supports_tracepoints hook.
5581
35ac8b3e
YQ
55822016-03-18 Yao Qi <yao.qi@linaro.org>
5583
5584 * linux-low.c (lwp_signal_can_be_delivered): New function.
5585 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5586
94610ec4
YQ
55872016-03-18 Yao Qi <yao.qi@linaro.org>
5588
5589 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5590 0 if signal is enqueued. Remove 'signal' from one debugging
5591 message. Move one debugging message to some lines below.
5592 Remove code setting 'signal' to 0.
5593
80aea927
YQ
55942016-03-18 Yao Qi <yao.qi@linaro.org>
5595
5596 * linux-low.c (linux_low_filter_event): Remove redundant
5597 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5598
b04fd3be
MK
55992016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5600
5601 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5602 (struct linux_target_ops): Wire in the above.
5603
c40c8d4b
YQ
56042016-03-03 Yao Qi <yao.qi@linaro.org>
5605
5606 * linux-low.c: Update comments to start_step_over.
5607
0f8288ae
YQ
56082016-03-03 Yao Qi <yao.qi@linaro.org>
5609
5610 PR server/19736
5611 * linux-low.c (handle_extended_wait): Set child suspended
5612 if event_lwp->bp_reinsert isn't zero.
5613
fdbd04a8
YQ
56142016-03-02 Yao Qi <yao.qi@linaro.org>
5615
5616 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5617 enqueue_pending_signal.
5618
6896a8fa
MK
56192016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5620
5621 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5622 is actually loaded.
5623
ab503087
MK
56242016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5625
5626 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5627 (s390_regmap_3264) [!__s390x__]: New global.
5628 (s390_collect_ptrace_register): Skip map entries containing -1.
5629 (s390_supply_ptrace_register): Ditto.
5630 (s390_fill_gprs_high): New function.
5631 (s390_store_gprs_high): New function.
5632 (s390_regsets): Add NT_S390_HIGH_GPRS.
5633 (s390_get_hwcap): Enable on 31-bit.
5634 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5635 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5636 Detect NT_S390_HIGH_GPRS.
5637 (s390_usrregs_info_3264): Enable on 31-bit.
5638 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5639 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5640
ae91f625
MK
56412016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5642
5643 PR gdb/13808
5644 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5645 * configure.srv: Ditto.
5646 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5647 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5648 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5649 (init_registers_amd64_linux): Remove prototype.
5650 (tdesc_amd64_linux): Remove declaration.
5651 (get_ipa_tdesc): New function.
5652 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5653 initialize remaining tdescs.
5654 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5655 (init_registers_i386_linux): Remove prototype.
5656 (tdesc_i386_linux): Remove declaration.
5657 (get_ipa_tdesc): New function.
5658 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5659 initialize remaining tdescs.
5660 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5661 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5662 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5663 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5664 (x86_get_ipa_tdesc_idx): New function.
5665 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5666 * linux-x86-tdesc.h: New file.
5667 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5668 (target_get_ipa_tdesc_idx): New macro.
5669 * tracepoint.c (ipa_tdesc_idx): New macro.
5670 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5671 (symbol_list): Add ipa_tdesc_idx.
5672 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5673 (ipa_tdesc): Remove.
5674 (ipa_tdesc_idx): New variable.
5675 (get_context_regcache): Use get_ipa_tdesc.
5676 (gdb_collect): Ditto.
5677 (gdb_probe): Ditto.
5678 * tracepoint.h (get_ipa_tdesc): New prototype.
5679 (ipa_tdesc): Remove.
5680
e7ad2f14
PA
56812016-02-24 Pedro Alves <palves@redhat.com>
5682
5683 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5684 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5685 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5686 Factor out common code between the USE_SIGTRAP_SIGINFO and
5687 !USE_SIGTRAP_SIGINFO blocks.
5688 (linux_low_filter_event): Call save_stop_reason instead of
5689 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5690 Update comments.
5691 (linux_wait_1): Update comments.
5692
657f9cde
WW
56932016-02-24 Wei-cheng Wang <cole945@gmail.com>
5694
5695 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
5696 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
5697 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
5698 ppc_insert_point, ppc_remove_point.
5699
b00b61e1
MK
57002016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
5701
5702 * linux-s390-low.c (s390_supports_z_point_type): New function.
5703 (struct linux_target_ops): Wire s390_supports_z_point_type in.
5704
553cb527
YQ
57052016-02-16 Yao Qi <yao.qi@linaro.org>
5706
5707 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
5708 PC. Get pc from regcache_read_pc.
5709
a5652c21
YQ
57102016-02-12 Yao Qi <yao.qi@linaro.org>
5711
5712 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
5713 or linux_get_pc_32bit.
5714 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
5715
ed443b61
YQ
57162016-02-12 Yao Qi <yao.qi@linaro.org>
5717
5718 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
5719 arm_linux_get_next_pcs_fixup.
5720
020ecd38
MK
57212016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5722
5723 * tracepoint.c (x_tracepoint_action_download): Change
5724 write_inferior_data_ptr to write_inferior_data_pointer.
5725 (cmd_qtstart): Likewise.
5726 (write_inferior_data_ptr): Remove.
5727 (download_agent_expr): Change write_inferior_data_ptr to
5728 write_inferior_data_pointer.
5729 (download_tracepoint_1): Likewise.
5730 (download_tracepoint): Likewise.
5731 (download_trace_state_variables): Likewise.
5732
7cae9051
WW
57332016-02-11 Wei-cheng Wang <cole945@gmail.com>
5734 Marcin Kościelnicki <koriakin@0x04.net>
5735
5736 * tracepoint.c (struct tracepoint_action_ops): Remove.
5737 (struct tracepoint_action): Remove ops.
5738 (m_tracepoint_action_download, r_tracepoint_action_download)
5739 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5740 size and offset accordingly.
5741 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5742 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5743 (tracepoint_action_send, tracepoint_action_download): New functions.
5744 Helpers for trace action handlers.
5745 (add_tracepoint_action): Remove setup actions ops.
5746 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5747
9f6a71b4
YQ
57482016-02-10 Yao Qi <yao.qi@linaro.org>
5749
5750 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5751
1e94266c
SM
57522016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5753
5754 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5755 to AC_OUTPUT.
5756 * configure: Regenerate.
5757
8adce034
SM
57582016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5759
5760 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5761 void * to gdb_byte *.
5762 * linux-low.c (siginfo_fixup): Likewise.
5763 (linux_xfer_siginfo): Likewise.
5764 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5765 Likewise.
5766 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5767
93813b37
WT
57682016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5769
5770 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5771 to srv_tgtobj.
5772 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5773 to srv_tgtobj.
5774 * linux-x86-low.c [__x86_64__]: Include
5775 "nat/amd64-linux-siginfo.h".
5776 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5777 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5778 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5779 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5780 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5781 (cpt_si_fd, si_timerid, si_overrun): Move from
5782 nat/amd64-linux-siginfo.c.
5783 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5784
8424cc97
SM
57852016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5786
5787 * server.c (skip_to_semicolon): Remove.
5788 (process_point_options): Use strchrnul instead of
5789 skip_to_semicolon.
5790
4d18591b
YQ
57912016-01-26 Yao Qi <yao.qi@linaro.org>
5792
5793 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5794 * linux-low.c (install_software_single_step_breakpoints): Don't
5795 call regcache_read_pc.
5796 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5797 argument pc.
5798
d8020970
YQ
57992016-01-26 Yao Qi <yao.qi@linaro.org>
5800
5801 * linux-low.c (install_software_single_step_breakpoints): Call
5802 regcache_read_pc instead of get_pc.
5803
8b207339
YQ
58042016-01-26 Yao Qi <yao.qi@linaro.org>
5805
5806 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5807 (unblock_async_io): Rename to ...
5808 (block_unblock_async_io): ... it. New function.
5809 (enable_async_io): Don't install SIGIO handler. Unblock it
5810 instead.
5811 (disable_async_io): Don't ignore SIGIO. Block it instead.
5812 (initialize_async_io): Install SIGIO handler. Don't call
5813 unblock_async_io.
5814
18879fef
YQ
58152016-01-26 Yao Qi <yao.qi@linaro.org>
5816
5817 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5818 first character is '\003', call *the_target->request_interrupt.
5819
a0f8e08a
YQ
58202016-01-25 Yao Qi <yao.qi@linaro.org>
5821
5822 * remote-utils.c (new_thread_notify): Remove.
5823 (dead_thread_notify): Likewise.
5824 * remote-utils.h (new_thread_notify): Remove declaration.
5825 (dead_thread_notify): Likewise.
5826
cc5fd9ab
MK
58272016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5828
5829 * gdb.trace/pending.exp: Fix expected message on continue.
5830
99e8eb11
MK
58312016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5832
5833 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5834 it works properly on big-endian machines where sizeof (CORE_ADDR)
5835 != sizeof (void *).
5836
a994041d
PA
58372016-01-21 Pedro Alves <palves@redhat.com>
5838
5839 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5840 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5841 * configure: Regenerate.
5842
f7a6a40d
YQ
58432016-01-21 Yao Qi <yao.qi@linaro.org>
5844
5845 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5846 is_thumb and set it according to CPSR saved on the stack.
5847 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5848 arm_sigreturn_next_pc.
5849
6f69e520
YQ
58502016-01-18 Yao Qi <yao.qi@linaro.org>
5851
5852 * linux-low.c (linux_set_pc_64bit): New function.
5853 (linux_get_pc_64bit): New function.
5854 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5855 Declare.
5856 * linux-sparc-low.c (debug_threads): Remove declaration.
5857 (sparc_get_pc): Remove.
5858 (the_low_target): Use linux_get_pc_64bit instead of
5859 sparc_get_pc.
5860 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5861 (the_low_target): Use linux_get_pc_64bit and
5862 linux_set_pc_64bit.
5863
276d4552
YQ
58642016-01-18 Yao Qi <yao.qi@linaro.org>
5865
5866 * linux-arm-low.c (debug_threads): Remove declaration.
5867 (arm_get_pc, arm_set_pc): Remove.
5868 (the_low_target): Use linux_get_pc_32bit and
5869 linux_set_pc_32bit.
5870 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5871 (the_low_target): Use linux_get_pc_32bit and
5872 linux_set_pc_32bit.
5873 * linux-cris-low.c (debug_threads): Remove declaration.
5874 (cris_get_pc, cris_set_pc,): Remove.
5875 (the_low_target): Use linux_get_pc_32bit and
5876 linux_set_pc_32bit.
5877 * linux-crisv32-low.c (debug_threads): Remove declaration.
5878 (cris_get_pc, cris_set_pc): Remove.
5879 (the_low_target): Use linux_get_pc_32bit and
5880 linux_set_pc_32bit.
5881 * linux-low.c: Include inttypes.h.
5882 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5883 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5884 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5885 (the_low_target): Use linux_get_pc_32bit and
5886 linux_set_pc_32bit.
5887 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5888 (the_low_target): Use linux_get_pc_32bit and
5889 linux_set_pc_32bit.
5890 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5891 (the_low_target): Use linux_get_pc_32bit and
5892 linux_set_pc_32bit.
5893 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5894 (the_low_target): Use linux_get_pc_32bit and
5895 linux_set_pc_32bit.
5896 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5897 (the_low_target): Use linux_get_pc_32bit and
5898 linux_set_pc_32bit.
5899
eb0edac8
GB
59002016-01-18 Gary Benson <gbenson@redhat.com>
5901
5902 * configure.ac (AC_FUNC_FORK): New check.
5903 * config.in: Regenerate.
5904 * configure: Likewise.
5905
1b451dda
YQ
59062016-01-14 Yao Qi <yao.qi@linaro.org>
5907
5908 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5909 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5910 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5911 arm_get_next_pcs_ctor.
5912
82075af2
JS
59132016-01-12 Josh Stone <jistone@redhat.com>
5914 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5915
5916 * inferiors.h: Include "gdb_vecs.h".
5917 (struct process_info): Add syscalls_to_catch.
5918 * inferiors.c (remove_process): Free syscalls_to_catch.
5919 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5920 syscall_return stops.
5921 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5922 * server.c (handle_general_set): Handle QCatchSyscalls.
5923 (handle_query): Report support for QCatchSyscalls.
5924 * target.h (struct target_ops): Add supports_catch_syscall.
5925 (target_supports_catch_syscall): New macro.
5926 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5927 (struct lwp_info): Add syscall_state.
5928 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5929 Maintain syscall_state and syscalls_to_catch across exec.
5930 (get_syscall_trapinfo): New function, proxy to the_low_target.
5931 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5932 (linux_low_filter_event): Toggle syscall_state entry/return for
5933 syscall traps, and set it ignored for all others.
5934 (gdb_catching_syscalls_p): New function.
5935 (gdb_catch_this_syscall_p): New function.
5936 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5937 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5938 (linux_supports_catch_syscall): New function.
5939 (linux_target_ops): Install it.
5940 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5941 (the_low_target): Install it.
5942
8f13a3ce
MF
59432016-01-12 Mike Frysinger <vapier@gentoo.org>
5944
5945 * acinclude.m4: Include new ../warning.m4 file.
5946 * configure: Regenerated.
5947 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5948
5b3da067
MF
59492016-01-12 Mike Frysinger <vapier@gentoo.org>
5950
5951 * ax.c (is_goto_target): Mark static.
5952 * linux-low.c (register_addr): Likewise.
5953 (linux_fetch_registers, linux_store_registers): Likewise.
5954 * mem-break.c (any_persistent_commands): Fix old prototype.
5955 (add_commands_to_breakpoint): Mark static.
5956 * regcache.c (find_register_by_name): Delete unused func.
5957 * remote-utils.c (hex_or_minus_one): Mark static.
5958 * server.c (monitor_show_help): Mark static.
5959 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5960 handle_v_requests): Likewise.
5961
bc504a31
PA
59622016-01-12 Pedro Alves <palves@redhat.com>
5963
5964 Remove use of the registered trademark symbol throughout.
5965
5a0dd67a
YQ
59662016-01-08 Yao Qi <yao.qi@linaro.org>
5967
5968 * remote-utils.c (getpkt): If c is '\003', call target hook
5969 request_interrupt.
5970
b2ca446f
YQ
59712016-01-06 Yao Qi <yao.qi@linaro.org>
5972
5973 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5974 linux-aarch32-low.c.
5975 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5976 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5977 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5978 (thumb2_breakpoint): Declare.
5979 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5980 linux-aarch32-low.h.
5981 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5982 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5983 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5984
edd88788
JB
59852016-01-01 Joel Brobecker <brobecker@adacore.com>
5986
5987 * gdbreplay.c (gdbreplay_version): Change copyright year in
5988 version message.
5989 * server.c (gdbserver_version): Likewise.
5990
65da7f14
PP
59912015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5992
5993 * server.c (crc32_table): Delete.
5994 (crc32): Use libiberty's xcrc32 function.
5995
4abd5ed2
JB
59962015-12-22 Joel Brobecker <brobecker@adacore.com>
5997
5998 * lynx-low.c (lynx_delete_thread_callback): New function.
5999 (lynx_mourn): Properly delete our process and all of its
6000 threads. Remove call to clear_inferiors.
6001
0e50fe5c
JB
60022015-12-22 Joel Brobecker <brobecker@adacore.com>
6003
6004 * target.c (thread_search_callback): Add check that
6005 the thread_stopped target callback is not NULL before
6006 calling it.
6007
35adc03f
YQ
60082015-12-21 Yao Qi <yao.qi@linaro.org>
6009
6010 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6011 arm breakpoint.
6012
bd2b2909
AT
60132015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6014
6015 * server.c (handle_query): Call target_supports_software_single_step.
6016
7fe5e27e
AT
60172015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6018
6019 * linux-low.c (single_step): New function.
6020 (linux_resume_one_lwp_throw): Call single_step.
6021 (start_step_over): Likewise.
6022
d9311bfa
AT
60232015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6024
6025 * Makefile.in (SFILES): Append arch/arm-linux.c,
6026 arch/arm-get-next-pcs.c.
6027 (arm-linux.o): New rule.
6028 (arm-get-next-pcs.o): New rule.
6029 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6030 arm-linux.o.
6031 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6032 to linux-aarch32-low.c.
6033 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6034 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6035 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6036 (thumb2_breakpoint_len): Likewise.
6037 (arm_is_thumb_mode): Make non-static.
6038 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6039 from linux-aarch32-low.c.
6040 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6041 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6042 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6043 (thumb2_breakpoint_len): Likewise.
6044 (arm_is_thumb_mode): New declaration.
6045 * linux-arm-low.c: Include arch/arm-linux.h
6046 aarch/arm-get-next-pcs.h, sys/syscall.h.
6047 (get_next_pcs_ops): New struct.
6048 (get_next_pcs_addr_bits_remove): New function.
6049 (get_next_pcs_is_thumb): New function.
6050 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6051 (arm_sigreturn_next_pc): Likewise.
6052 (get_next_pcs_syscall_next_pc): Likewise.
6053 (arm_gdbserver_get_next_pcs): Likewise.
6054 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6055 Initialize.
6056 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6057 * server.h: Include gdb_vecs.h.
6058
68ce2059
AT
60592015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6060
6061 * Makefile.in (SFILES): Append common/common-regcache.c.
6062 (OBS): Append common-regcache.o.
6063 (common-regcache.o): New rule.
6064 * regcache.c (init_register_cache): Initialize cache to
6065 REG_UNAVAILABLE.
6066 (regcache_raw_read_unsigned): New function.
6067 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6068 register_status enum.
6069
fa5308bd
AT
60702015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6071
6072 * linux-aarch64-low.c (the_low_targets): Rename
6073 breakpoint_reinsert_addr to get_next_pcs.
6074 * linux-arm-low.c (the_low_targets): Likewise.
6075 * linux-bfin-low.c (the_low_targets): Likewise.
6076 * linux-cris-low.c (the_low_targets): Likewise.
6077 * linux-crisv32-low.c (the_low_targets): Likewise.
6078 * linux-low.c (can_software_single_step): Likewise.
6079 (install_software_single_step_breakpoints): New function.
6080 (start_step_over): Use install_software_single_step_breakpoints.
6081 * linux-low.h: New CORE_ADDR vector.
6082 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6083 get_next_pcs.
6084 * linux-mips-low.c (the_low_targets): Likewise.
6085 * linux-nios2-low.c (the_low_targets): Likewise.
6086 * linux-sparc-low.c (the_low_targets): Likewise.
6087
4a6ed09b
PA
60882015-12-17 Pedro Alves <palves@redhat.com>
6089
6090 * linux-low.c (linux_kill_one_lwp): Remove references to
6091 LinuxThreads.
6092 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6093 to 'kill'.
6094 (linux_init_signals): Delete.
6095 (initialize_low): Adjust.
6096 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6097
7544db95
PA
60982015-12-16 Pedro Alves <palves@redhat.com>
6099
6100 * configure.ac (compiler warning flags): When testing a
6101 -Wno-foo option, check whether -Wfoo works instead.
6102 * configure: Regenerate.
6103
8020350c
DB
61042015-12-11 Don Breazeal <donb@codesourcery.com>
6105
6106 * server.c (process_serial_event): Don't exit from gdbserver
6107 in remote mode if there are still active inferiors.
6108
db91f502
YQ
61092015-12-11 Yao Qi <yao.qi@linaro.org>
6110
6111 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6112 arm_breakpoint_at if the process is 32-bit.
6113
b37a6290
YQ
61142015-12-11 Yao Qi <yao.qi@linaro.org>
6115
6116 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6117 arm breakpoint.
6118
17b1509a
YQ
61192015-12-07 Yao Qi <yao.qi@linaro.org>
6120
6121 * configure.srv: Append arm.o to srv_tgtobj for
6122 aarch64*-*-linux* target.
6123 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6124 from linux-arm-low.c.
6125 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6126 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6127 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6128 (thumb2_breakpoint_len): Likewise.
6129 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6130 (arm_breakpoint_kinds): Likewise.
6131 (arm_breakpoint_kind_from_pc): Likewise.
6132 (arm_sw_breakpoint_from_kind): Likewise.
6133 (arm_breakpoint_kind_from_current_state): Likewise.
6134 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6135 (arm_sw_breakpoint_from_kind): Declare.
6136 (arm_breakpoint_kind_from_current_state): Declare.
6137 (arm_breakpoint_at): Declare.
6138 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6139 arm_sw_breakpoint_from_kind if process is 32-bit.
6140 (aarch64_breakpoint_kind_from_pc): New function.
6141 (aarch64_breakpoint_kind_from_current_state): New function.
6142 (the_low_target): Initialize fields breakpoint_kind_from_pc
6143 and breakpoint_kind_from_current_state.
6144 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6145 linux-aarch32-low.c.
6146 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6147 (arm_breakpoint, arm_breakpoint_len): Likewise.
6148 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6149 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6150 (arm_is_thumb_mode): Likewise.
6151 (arm_breakpoint_at): Likewise.
6152 (arm_breakpoint_kind_from_pc): Likewise.
6153 (arm_sw_breakpoint_from_kind): Likewise.
6154 (arm_breakpoint_kind_from_current_state): Likewise.
6155
6156 Revert:
6157 2015-08-04 Yao Qi <yao.qi@linaro.org>
6158
6159 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6160 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6161 * server.c (extended_protocol): Remove "static".
6162 * server.h (extended_protocol): Declare it.
6163
ece66d65
JS
61642015-12-04 Josh Stone <jistone@redhat.com>
6165
6166 * target.h (struct target_ops) <arch_setup>: Rename to ...
6167 (struct target_ops) <post_create_inferior>: ... this.
6168 (target_arch_setup): Rename to ...
6169 (target_post_create_inferior): ... this, calling post_create_inferior.
6170 * server.c (start_inferior): Update target_arch_setup calls to
6171 target_post_create_inferior.
6172 * linux-low.c (linux_low_ptrace_options): Forward declare.
6173 (linux_arch_setup): Update its comment for general use.
6174 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6175 (struct linux_target_ops): Use linux_post_create_inferior.
6176 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6177 to post_create_inferior.
6178 * nto-low.c (struct nto_target_ops): Likewise.
6179 * spu-low.c (struct spu_target_ops): Likewise.
6180 * win32-low.c (struct win32_target_ops): Likewise.
6181
e58c48b4
AT
61822015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6183
6184 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6185
fbec8956
AT
61862015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6187
6188 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6189 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6190 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6191 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6192 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6193 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6194 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6195 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6196 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6197 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6198 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6199 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6200
9b4c5f87
AT
62012015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6202
6203 * linux-low.c (linux_look_up_symbols): Don't call
6204 linux_supports_traceclone.
6205 * linux-low.h (thread_db_init): Remove use_events argument.
6206 * thread-db.c (thread_db_use_event): Remove global variable.
6207 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6208 (struct thread_db) <td_create_bp>: Remove field.
6209 (thread_db_create_event): Remove function.
6210 (thread_db_enable_reporting): Likewise.
6211 (find_one_thread): Don't check for thread_db_use_events.
6212 (attach_thread): Likewise.
6213 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6214 (try_thread_db_load_1): Don't check for thread_db_use_events.
6215 (thread_db_init): Remove use_events argument and thread events
6216 handling.
6217 (remove_thread_event_breakpoints): Remove function.
6218 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6219
7d00775e
AT
62202015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6221
6222 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6223 New function.
6224 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6225 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6226 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6227 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6228 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6229 Initialize.
6230 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6231 New function.
6232 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6233 * linux-low.c (can_hardware_single_step): Use
6234 supports_hardware_single_step.
6235 (can_software_single_step): New function.
6236 (start_step_over): Call can_software_single_step.
6237 (linux_supports_hardware_single_step): New function.
6238 (struct target_ops) <supports_software_single_step>: Initialize.
6239 * linux-low.h (struct linux_target_ops)
6240 <supports_hardware_single_step>: Initialize.
6241 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6242 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6243 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6244 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6245 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6246 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6247 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6248 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6249 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6250 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6251 Initialize.
6252 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6253 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6254 Initialize.
6255 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6256 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6257 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6258 New function.
6259 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6260 * target.h (struct target_ops): <supports_software_single_step>:
6261 New field.
6262 (target_supports_software_single_step): New macro.
6263
2d97cd35
AT
62642015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6265
6266 * linux-low.c (linux_wait_1): Fix pc advance condition.
6267 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6268 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6269
769ef81f
AT
62702015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6271
6272 * linux-arm-low.c (arm_is_thumb_mode): New function.
6273 (arm_breakpoint_at): Use arm_is_thumb_mode.
6274 (arm_breakpoint_kind_from_current_state): New function.
6275 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6276 Initialize.
6277 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6278 (linux_breakpoint_kind_from_current_state): New function.
6279 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6280 * linux-low.h (struct linux_target_ops)
6281 <breakpoint_kind_from_current_state>: New field.
6282 * target.h (struct target_ops): Likewise.
6283 (target_breakpoint_kind_from_current_state): New macro.
6284
1bebeeca
PA
62852015-11-30 Pedro Alves <palves@redhat.com>
6286
6287 * linux-low.c (linux_resume): Wake up the event loop before
6288 returning.
6289
a67a9fae
PA
62902015-11-30 Pedro Alves <palves@redhat.com>
6291
6292 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6293 check.
6294 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6295 to -1.
6296 * target.c (struct thread_search): New structure.
6297 (thread_search_callback): New function.
6298 (prev_general_thread): New global.
6299 (prepare_to_access_memory, done_accessing_memory): New functions.
6300 * target.h (prepare_to_access_memory, done_accessing_memory):
6301 Replace macros with function declarations.
6302
f2faf941
PA
63032015-11-30 Pedro Alves <palves@redhat.com>
6304
6305 PR 14618
6306 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6307 report TARGET_WAITKIND_NO_RESUMED.
6308 * remote-utils.c (prepare_resume_reply): Handle
6309 TARGET_WAITKIND_NO_RESUMED.
6310 * server.c (report_no_resumed): New global.
6311 (handle_query) <qSupported>: Handle "no-resumed+". Report
6312 "no-resumed+" support.
6313 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6314 return error if the client doesn't support no-resumed events.
6315 (push_stop_notification): New function.
6316 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6317 events if the client supports them.
6318
a681f9c9
PA
63192015-11-30 Pedro Alves <palves@redhat.com>
6320
6321 * linux-low.c (thread_still_has_status_pending_p): Don't check
6322 vCont;t here.
6323 (lwp_resumed): New function.
6324 (status_pending_p_callback): Return early if the LWP is not
6325 supposed to be resumed.
6326
65706a29
PA
63272015-11-30 Pedro Alves <palves@redhat.com>
6328
6329 * linux-low.c (handle_extended_wait): Assert that the LWP's
6330 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6331 thread create events, leave the new child's status pending.
6332 (linux_low_filter_event): If GDB wants to hear about thread exit
6333 events, leave the LWP marked dead and don't delete it.
6334 (linux_wait_for_event_filtered): Don't check for thread exit.
6335 (filter_exit_event): New function.
6336 (linux_wait_1): Use it, when returning an exit event.
6337 (linux_resume_one_lwp_throw): Assert that the LWP's
6338 waitstatus is TARGET_WAITKIND_IGNORE.
6339 * remote-utils.c (prepare_resume_reply): Handle
6340 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6341 * server.c (report_thread_events): New global.
6342 (handle_general_set): Handle QThreadEvents.
6343 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6344 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6345 TARGET_WAITKIND_THREAD_EXITED.
6346 * server.h (report_thread_events): Declare.
6347
56cf4bed
PA
63482015-11-30 Pedro Alves <palves@redhat.com>
6349
6350 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6351 the thread's last_resume_kind was resume_stop.
6352
500c1d85
PA
63532015-11-30 Pedro Alves <palves@redhat.com>
6354
6355 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6356 before returning.
6357
de979965
PA
63582015-11-30 Pedro Alves <palves@redhat.com>
6359
6360 * server.c (handle_v_requests): Handle vCtrlC.
6361
34c65914
PA
63622015-11-30 Pedro Alves <palves@redhat.com>
6363
6364 * gdbthread.h (find_any_thread_of_pid): Declare.
6365 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6366 functions.
6367 * server.c (handle_query): If current_thread is NULL, look for
6368 another thread of the selected process.
6369
79efa585 63702015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 6371 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
6372
6373 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6374 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6375 name in reply.
6376 * target.h (struct target_ops) <thread_name>: New field.
6377 (target_thread_name): New macro.
6378
80d82c19
JB
63792015-11-23 Joel Brobecker <brobecker@adacore.com>
6380
6381 * regcache.h (regcache_invalidate_pid): Add declaration.
6382 * regcache.c (regcache_invalidate_pid): New function, extracted
6383 from regcache_invalidate.
6384 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6385 Add trivial documentation comment.
6386 * lynx-low.c: Use regcache_invalidate_pid instead of
6387 regcache_invalidate.
6388
64da5dd5
JB
63892015-11-23 Joel Brobecker <brobecker@adacore.com>
6390
6391 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6392 and Elf64_auxv_t if the target is Android.
6393
37ce4055
DE
63942015-11-22 Doug Evans <xdje42@gmail.com>
6395
6396 * target.h: #include <sys/types.h>.
6397
06e03fff
PA
63982015-11-19 Pedro Alves <palves@redhat.com>
6399
6400 * linux-low.c (linux_process_qsupported): Change prototype.
6401 Adjust.
6402 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6403 Change prototype.
6404 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6405 and adjust to loop over all features.
6406 * server.c (handle_query) <qSupported>: Adjust to call
6407 target_process_qsupported once, passing it a vector of unprocessed
6408 features.
6409 * target.h (struct target_ops) <process_qsupported>: Change
6410 prototype.
6411 (target_process_qsupported): Adjust.
6412
9a084706
PA
64132015-11-19 Pedro Alves <palves@redhat.com>
6414
6415 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6416 mode.
6417 * configure: Regenerate.
6418
dad44a1f
PA
64192015-11-19 Pedro Alves <palves@redhat.com>
6420
6421 * configure: Regenerate.
6422
231c0592
YQ
64232015-11-19 Yao Qi <yao.qi@linaro.org>
6424
6425 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6426 type to uint32_t.
6427
6c1c9a8b
YQ
64282015-11-19 Yao Qi <yao.qi@linaro.org>
6429
6430 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6431 (struct aarch64_operand): Move enum out.
6432
9caa3311
YQ
64332015-11-19 Yao Qi <yao.qi@linaro.org>
6434
6435 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6436 struct user_fpsimd_state *.
6437 (aarch64_store_fpregset): Likewise.
6438
6a69a054
YQ
64392015-11-19 Yao Qi <yao.qi@linaro.org>
6440
6441 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6442 struct user_pt_regs *.
6443 (aarch64_store_gregset): Likewise.
6444
1798301e
PA
64452015-11-18 Pedro Alves <palves@redhat.com>
6446
6447 * Makefile.in (all_object_files): Add $IPA_OBJS.
6448
ce7715e2
PA
64492015-11-17 Pedro Alves <palves@redhat.com>
6450
6451 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6452 GDB_SIGNAL_0 and gdb_signal_to_string.
6453
c0879059
PA
64542015-11-17 Pedro Alves <palves@redhat.com>
6455
6456 * win32-low.c (handle_output_debug_string): Remove parameter.
6457 (win32_kill): Remove our_status local and adjust call to
6458 handle_output_debug_string.
6459 (get_child_debug_event): Adjust call to
6460 handle_output_debug_string.
6461
1996e237
SM
64622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * linux-mips-low.c (mips_fill_gregset): Add cast.
6465 (mips_store_gregset): Likewise.
6466 (mips_fill_fpregset): Likewise.
6467 (mips_store_fpregset): Likewise.
6468
cbec665b
SM
64692015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6470
6471 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6472 priv.
6473
eb3e3c67
SM
64742015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6475
6476 * linux-mips-low.c (mips_linux_new_thread): Change type of
6477 watch_type to enum target_hw_bp_type.
6478
171de4b8
SM
64792015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6480
6481 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6482 Change return type to arm_hwbp_type.
6483
04248ead
SM
64842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6485
6486 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6487 (arm_store_gregset): Likewise.
6488 * linux-arm-low.c (arm_get_hwcap): Likewise.
6489 (arm_read_description): Likewise.
6490
04b3479c
SM
64912015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6492
6493 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6494
2bc84e8a
SM
64952015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6498 (ppc_fill_vsxregset): Likewise.
6499 (ppc_store_vsxregset): Likewise.
6500 (ppc_fill_vrregset): Likewise.
6501 (ppc_store_vrregset): Likewise.
6502 (ppc_fill_evrregset): Likewise.
6503 (ppc_store_evrregset): Likewise.
6504
e6c5bb05
SM
65052015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6506
6507 * linux-ppc-low.c (ppc_usrregs_info): Remove
6508 forward-declaration.
6509 (ppc_arch_setup): Move lower in file.
6510
7ea45d72
SM
65112015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6512
6513 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6514 (ps_pdwrite): Likewise.
6515
69291610
HW
65162015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6517
6518 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6519 to after assert checks.
6520
b42945fd
SM
65212015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6522
6523 * proc-service.c (ps_pdread): Add/adjust casts.
6524 (ps_pdwrite): Add/adjust casts.
6525
d6f85c84
SM
65262015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6527
6528 * server.c (handle_search_memory_1): Cast return value of
6529 memmem.
6530
f98cd059
SM
65312015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * server.c (write_qxfer_response): Change type of data to
6534 gdb_byte *.
6535
d2412fa5
PA
65362015-10-29 Pedro Alves <palves@redhat.com>
6537
6538 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6539
c17414a2
PA
65402015-10-29 Pedro Alves <palves@redhat.com>
6541
6542 * tracepoint.c (clear_installed_tracepoints): Add casts.
6543
e053fbc4
PA
65442015-10-29 Pedro Alves <palves@redhat.com>
6545
6546 * server.c (handle_v_cont, process_serial_event): Add enum
6547 gdb_signal casts to signal parsing code.
6548
add67df8
PA
65492015-10-29 Pedro Alves <palves@redhat.com>
6550
6551 * linux-low.h (NULL_REGSET): Define.
6552 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6553 * linux-arm-low.c (arm_regsets): Likewise.
6554 * linux-crisv32-low.c (cris_regsets): Likewise.
6555 * linux-m68k-low.c (m68k_regsets): Likewise.
6556 * linux-mips-low.c (mips_regsets): Likewise.
6557 * linux-nios2-low.c (nios2_regsets): Likewise.
6558 * linux-ppc-low.c (ppc_regsets): Likewise.
6559 * linux-s390-low.c (s390_regsets): Likewise.
6560 * linux-sh-low.c (sh_regsets): Likewise.
6561 * linux-sparc-low.c (sparc_regsets): Likewise.
6562 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6563 * linux-tile-low.c (tile_regsets): Likewise.
6564 * linux-x86-low.c (x86_regsets): Likewise.
6565 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6566
50bc912a
PA
65672015-10-29 Pedro Alves <palves@redhat.com>
6568
6569 * linux-low.h (NULL_REGSET): Define.
6570 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6571 * linux-arm-low.c (arm_regsets): Likewise.
6572 * linux-crisv32-low.c (cris_regsets): Likewise.
6573 * linux-m68k-low.c (m68k_regsets): Likewise.
6574 * linux-mips-low.c (mips_regsets): Likewise.
6575 * linux-nios2-low.c (nios2_regsets): Likewise.
6576 * linux-ppc-low.c (ppc_regsets): Likewise.
6577 * linux-s390-low.c (s390_regsets): Likewise.
6578 * linux-sh-low.c (sh_regsets): Likewise.
6579 * linux-sparc-low.c (sparc_regsets): Likewise.
6580 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6581 * linux-tile-low.c (tile_regsets): Likewise.
6582 * linux-x86-low.c (x86_regsets): Likewise.
6583 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6584
682b2546
DE
65852015-10-26 Doug Evans <dje@google.com>
6586
6587 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6588
963843d4
DE
65892015-10-26 Doug Evans <dje@google.com>
6590
6591 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6592
d41401ac
DE
65932015-10-26 Doug Evans <dje@google.com>
6594
6595 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6596 for debug_printf.
6597 (attach_thread, find_new_threads_callback): Ditto.
6598
3db28855
AT
65992015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6600
6601 * mem-break.h (set_breakpoint_data): Remove.
6602
fb78e89c
AT
66032015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6604
6605 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6606 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6607 (initialize_low): Remove set_breakpoint_data call.
6608 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6609 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6610 (initialize_low): Remove set_breakpoint_data call.
6611 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6612 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6613 (initialize_low): Remove set_breakpoint_data call.
6614
2e6ee069
AT
66152015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6616
6617 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6618 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6619 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6620 * target.h (target_breakpoint_kind_from_pc): New macro.
6621
1652a986
AT
66222015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6623
6624 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6625 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6626 the default breakpoint kind.
6627
abeead09
AT
66282015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6629
6630 * linux-arm-low.c (arm_supports_z_point_type): Add software
6631 breakpoint support.
6632
b0b4b501
AT
66332015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6634
6635 * linux-arm-low.c: Refactor breakpoint definitions.
6636 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6637 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6638
8689682c
AT
66392015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6640
6641 * Makefile.in: Add arm.c/o.
6642 * configure.srv: Likewise.
6643 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6644 (arm_breakpoint_kind_from_pc): New function.
6645 (arm_sw_breakpoint_from_kind): Return proper kind.
6646 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6647
27165294
AT
66482015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6649
6650 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6651 removal.
6652 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6653 (struct raw_breakpoint) <size>: Remove.
6654 (struct raw_breakpoint) <kind>: Add.
6655 (bp_size): New function.
6656 (bp_opcode): Likewise.
6657 (find_raw_breakpoint_at): Adjust for kind.
6658 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6659 (remove_memory_breakpoint): Adjust for kind call bp_size.
6660 (set_raw_breakpoint_at): Adjust for kind.
6661 (set_breakpoint): Likewise.
6662 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6663 (delete_raw_breakpoint): Adjust for kind.
6664 (delete_breakpoint): Likewise.
6665 (find_gdb_breakpoint): Likewise.
6666 (set_gdb_breakpoint_1): Likewise.
6667 (set_gdb_breakpoint): Likewise.
6668 (delete_gdb_breakpoint_1): Likewise.
6669 (delete_gdb_breakpoint): Likewise.
6670 (uninsert_raw_breakpoint): Likewise.
6671 (reinsert_raw_breakpoint): Likewise.
6672 (set_breakpoint_data): Remove.
6673 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6674 (check_mem_read): Adjust for kind call bp_size.
6675 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6676 (clone_one_breakpoint): Adjust for kind.
6677 * mem-break.h (set_gdb_breakpoint): Likewise.
6678 (delete_gdb_breakpoint): Likewise.
6679 * server.c (process_serial_event): Likewise.
6680
dd373349
AT
66812015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6682
6683 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6684 (struct linux_target_ops) <breakpoint>: Remove.
6685 (struct linux_target_ops) <breakpoint_len>: Remove.
6686 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6687 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6688 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6689 (arm_sw_breakpoint_from_kind): New function.
6690 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
6691 (struct linux_target_ops) <breakpoint>: Remove.
6692 (struct linux_target_ops) <breakpoint_len>: Remove.
6693 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6694 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6695 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
6696 (struct linux_target_ops) <breakpoint>: Remove.
6697 (struct linux_target_ops) <breakpoint_len>: Remove.
6698 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6699 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6700 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
6701 (struct linux_target_ops) <breakpoint>: Remove.
6702 (struct linux_target_ops) <breakpoint_len>: Remove.
6703 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6704 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6705 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
6706 and sw_breakpoint_from_kind to increment the pc.
6707 (linux_breakpoint_kind_from_pc): New function.
6708 (linux_sw_breakpoint_from_kind): New function.
6709 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
6710 (initialize_low): Call breakpoint_kind_from_pc and
6711 sw_breakpoint_from_kind to replace breakpoint_data/len.
6712 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
6713 New field.
6714 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
6715 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
6716 (struct linux_target_ops) <breakpoint>: Remove.
6717 (struct linux_target_ops) <breakpoint_len>: Remove.
6718 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6719 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6720 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
6721 (struct linux_target_ops) <breakpoint>: Remove.
6722 (struct linux_target_ops) <breakpoint_len>: Remove.
6723 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6724 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6725 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
6726 (struct linux_target_ops) <breakpoint>: Remove.
6727 (struct linux_target_ops) <breakpoint_len>: Remove.
6728 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6729 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6730 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
6731 (struct linux_target_ops) <breakpoint>: Remove.
6732 (struct linux_target_ops) <breakpoint_len>: Remove.
6733 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6734 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6735 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
6736 (struct linux_target_ops) <breakpoint>: Remove.
6737 (struct linux_target_ops) <breakpoint_len>: Remove.
6738 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6739 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6740 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6741 (struct linux_target_ops) <breakpoint>: Remove.
6742 (struct linux_target_ops) <breakpoint_len>: Remove.
6743 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6744 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6745 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6746 (struct linux_target_ops) <breakpoint>: Remove.
6747 (struct linux_target_ops) <breakpoint_len>: Remove.
6748 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6749 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6750 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6751 (struct linux_target_ops) <breakpoint>: Remove.
6752 (struct linux_target_ops) <breakpoint_len>: Remove.
6753 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6754 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6755 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6756 (struct linux_target_ops) <breakpoint>: Remove.
6757 (struct linux_target_ops) <breakpoint_len>: Remove.
6758 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6759 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6760 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6761 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6762 (struct linux_target_ops) <breakpoint>: Remove.
6763 (struct linux_target_ops) <breakpoint_len>: Remove.
6764 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6765 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6766 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6767 (struct linux_target_ops) <breakpoint>: Remove.
6768 (struct linux_target_ops) <breakpoint_len>: Remove.
6769 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6770 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6771
4cd98a19
AT
67722015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6773
6774 * linux-cris-low.c (cris_get_pc): Remove void arg.
6775
774ee6d2
AR
67762015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6777
6778 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6779 variable name.
6780
833dcd29
AR
67812015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6782
6783 * inferiors.c (thread_pid_matches_callback): New function.
6784 (find_thread_process): New function.
6785 (remove_thread): Reset current_thread.
6786 (remove_process): Assert threads have been removed first.
6787
8d689ee5
YQ
67882015-10-15 Yao Qi <yao.qi@linaro.org>
6789
6790 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6791 if it is 3.
6792 (aarch64_remove_point): Likewise.
6793 * regcache.c (regcache_register_size): New function.
6794
1c2e1515
YQ
67952015-10-12 Yao Qi <yao.qi@linaro.org>
6796
6797 * linux-aarch64-low.c: Update all callers as emit_load_store
6798 is renamed to aarch64_emit_load_store.
6799
e1c587c3
YQ
68002015-10-12 Yao Qi <yao.qi@linaro.org>
6801
6802 * linux-aarch64-low.c: Update all callers of function renaming
6803 from emit_insn to aarch64_emit_insn.
6804
b6542f81
YQ
68052015-10-12 Yao Qi <yao.qi@linaro.org>
6806
6807 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6808 arch/aarch64-insn.h.
6809 (struct aarch64_memory_operand): Likewise.
6810 (ENCODE): Likewise.
6811 (emit_insn): Move to arch/aarch64-insn.c.
6812 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6813 (emit_load_store): Move to arch/aarch64-insn.c.
6814 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6815 (can_encode_int32): Remove.
6816
246994ce
YQ
68172015-10-12 Yao Qi <yao.qi@linaro.org>
6818
6819 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6820 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6821 (aarch64_relocate_instruction): Likewise.
6822 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6823 (struct aarch64_insn_visitor): Likewise.
6824
0badd99f
YQ
68252015-10-12 Yao Qi <yao.qi@linaro.org>
6826
6827 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6828 (struct aarch64_insn_visitor): New.
6829 (struct aarch64_insn_relocation_data): New.
6830 (aarch64_ftrace_insn_reloc_b): New function.
6831 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6832 (aarch64_ftrace_insn_reloc_cb): Likewise.
6833 (aarch64_ftrace_insn_reloc_tb): Likewise.
6834 (aarch64_ftrace_insn_reloc_adr): Likewise.
6835 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6836 (aarch64_ftrace_insn_reloc_others): Likewise.
6837 (visitor): New.
6838 (aarch64_relocate_instruction): Use visitor.
6839
dfaffe9d
YQ
68402015-10-12 Yao Qi <yao.qi@linaro.org>
6841
6842 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6843 int. Add argument buf.
6844 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6845 aarch64_relocate_instruction.
6846
70b439f0
YQ
68472015-10-12 Yao Qi <yao.qi@linaro.org>
6848
6849 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6850 argument insn. Remove local variable insn. Don't call
6851 target_read_uint32.
6852 (aarch64_install_fast_tracepoint_jump_pad): Call
6853 target_read_uint32.
6854
7781c06f
YQ
68552015-09-30 Yao Qi <yao.qi@linaro.org>
6856
6857 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6858 (emit_load_store_pair): Likewise.
6859
9a3c8263
SM
68602015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6861
6862 * dll.c (match_dll): Add cast(s).
6863 (unloaded_dll): Likewise.
6864 * linux-low.c (second_thread_of_pid_p): Likewise.
6865 (delete_lwp_callback): Likewise.
6866 (count_events_callback): Likewise.
6867 (select_event_lwp_callback): Likewise.
6868 (linux_set_resume_request): Likewise.
6869 * server.c (accumulate_file_name_length): Likewise.
6870 (emit_dll_description): Likewise.
6871 (handle_qxfer_threads_worker): Likewise.
6872 (visit_actioned_threads): Likewise.
6873 * thread-db.c (any_thread_of): Likewise.
6874 * tracepoint.c (same_process_p): Likewise.
6875 (match_blocktype): Likewise.
6876 (build_traceframe_info_xml): Likewise.
6877
224c3ddb
SM
68782015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6879
6880 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6881 assignment.
6882 (gdb_unparse_agent_expr): Likewise.
6883 * hostio.c (require_data): Likewise.
6884 (handle_pread): Likewise.
6885 * linux-low.c (disable_regset): Likewise.
6886 (fetch_register): Likewise.
6887 (store_register): Likewise.
6888 (get_dynamic): Likewise.
6889 (linux_qxfer_libraries_svr4): Likewise.
6890 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6891 (set_fast_tracepoint_jump): Likewise.
6892 (uninsert_fast_tracepoint_jumps_at): Likewise.
6893 (reinsert_fast_tracepoint_jumps_at): Likewise.
6894 (validate_inserted_breakpoint): Likewise.
6895 (clone_agent_expr): Likewise.
6896 * regcache.c (init_register_cache): Likewise.
6897 * remote-utils.c (putpkt_binary_1): Likewise.
6898 (decode_M_packet): Likewise.
6899 (decode_X_packet): Likewise.
6900 (look_up_one_symbol): Likewise.
6901 (relocate_instruction): Likewise.
6902 (monitor_output): Likewise.
6903 * server.c (handle_search_memory): Likewise.
6904 (handle_qxfer_exec_file): Likewise.
6905 (handle_qxfer_libraries): Likewise.
6906 (handle_qxfer): Likewise.
6907 (handle_query): Likewise.
6908 (handle_v_cont): Likewise.
6909 (handle_v_run): Likewise.
6910 (captured_main): Likewise.
6911 * target.c (write_inferior_memory): Likewise.
6912 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6913 * tracepoint.c (init_trace_buffer): Likewise.
6914 (add_tracepoint_action): Likewise.
6915 (add_traceframe): Likewise.
6916 (add_traceframe_block): Likewise.
6917 (cmd_qtdpsrc): Likewise.
6918 (cmd_qtdv): Likewise.
6919 (cmd_qtstatus): Likewise.
6920 (response_source): Likewise.
6921 (response_tsv): Likewise.
6922 (cmd_qtnotes): Likewise.
6923 (gdb_collect): Likewise.
6924 (initialize_tracepoint): Likewise.
6925
afbe19f8
PL
69262015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6927
6928 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6929 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6930 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6931 <NOP>: New.
6932 (enum aarch64_condition_codes): New enum.
6933 (w0): New static global.
6934 (fp): Likewise.
6935 (lr): Likewise.
6936 (struct aarch64_memory_operand) <type>: New
6937 MEMORY_OPERAND_POSTINDEX type.
6938 (postindex_memory_operand): New helper function.
6939 (emit_ret): New function.
6940 (emit_load_store_pair): New function, factored out of emit_stp
6941 with support for MEMORY_OPERAND_POSTINDEX.
6942 (emit_stp): Rewrite using emit_load_store_pair.
6943 (emit_ldp): New function.
6944 (emit_load_store): Likewise.
6945 (emit_ldr): Mention post-index instruction in comment.
6946 (emit_ldrh): New function.
6947 (emit_ldrb): New function.
6948 (emit_ldrsw): Mention post-index instruction in comment.
6949 (emit_str): Likewise.
6950 (emit_subs): New function.
6951 (emit_cmp): Likewise.
6952 (emit_and): Likewise.
6953 (emit_orr): Likewise.
6954 (emit_orn): Likewise.
6955 (emit_eor): Likewise.
6956 (emit_mvn): Likewise.
6957 (emit_lslv): Likewise.
6958 (emit_lsrv): Likewise.
6959 (emit_asrv): Likewise.
6960 (emit_mul): Likewise.
6961 (emit_sbfm): Likewise.
6962 (emit_sbfx): Likewise.
6963 (emit_ubfm): Likewise.
6964 (emit_ubfx): Likewise.
6965 (emit_csinc): Likewise.
6966 (emit_cset): Likewise.
6967 (emit_nop): Likewise.
6968 (emit_ops_insns): New helper function.
6969 (emit_pop): Likewise.
6970 (emit_push): Likewise.
6971 (aarch64_emit_prologue): New function.
6972 (aarch64_emit_epilogue): Likewise.
6973 (aarch64_emit_add): Likewise.
6974 (aarch64_emit_sub): Likewise.
6975 (aarch64_emit_mul): Likewise.
6976 (aarch64_emit_lsh): Likewise.
6977 (aarch64_emit_rsh_signed): Likewise.
6978 (aarch64_emit_rsh_unsigned): Likewise.
6979 (aarch64_emit_ext): Likewise.
6980 (aarch64_emit_log_not): Likewise.
6981 (aarch64_emit_bit_and): Likewise.
6982 (aarch64_emit_bit_or): Likewise.
6983 (aarch64_emit_bit_xor): Likewise.
6984 (aarch64_emit_bit_not): Likewise.
6985 (aarch64_emit_equal): Likewise.
6986 (aarch64_emit_less_signed): Likewise.
6987 (aarch64_emit_less_unsigned): Likewise.
6988 (aarch64_emit_ref): Likewise.
6989 (aarch64_emit_if_goto): Likewise.
6990 (aarch64_emit_goto): Likewise.
6991 (aarch64_write_goto_address): Likewise.
6992 (aarch64_emit_const): Likewise.
6993 (aarch64_emit_call): Likewise.
6994 (aarch64_emit_reg): Likewise.
6995 (aarch64_emit_pop): Likewise.
6996 (aarch64_emit_stack_flush): Likewise.
6997 (aarch64_emit_zero_ext): Likewise.
6998 (aarch64_emit_swap): Likewise.
6999 (aarch64_emit_stack_adjust): Likewise.
7000 (aarch64_emit_int_call_1): Likewise.
7001 (aarch64_emit_void_call_2): Likewise.
7002 (aarch64_emit_eq_goto): Likewise.
7003 (aarch64_emit_ne_goto): Likewise.
7004 (aarch64_emit_lt_goto): Likewise.
7005 (aarch64_emit_le_goto): Likewise.
7006 (aarch64_emit_gt_goto): Likewise.
7007 (aarch64_emit_ge_got): Likewise.
7008 (aarch64_emit_ops_impl): New static global variable.
7009 (aarch64_emit_ops): New target function, return
7010 &aarch64_emit_ops_impl.
7011 (struct linux_target_ops): Install it.
7012
bb903df0
PL
70132015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7014
7015 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7016 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7017 aarch64-ipa.o.
7018 * linux-aarch64-ipa.c: New file.
7019 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7020 and endian.h.
7021 (aarch64_get_thread_area): New target method.
7022 (extract_signed_bitfield): New helper function.
7023 (aarch64_decode_ldr_literal): New function.
7024 (enum aarch64_opcodes): New enum.
7025 (struct aarch64_register): New struct.
7026 (struct aarch64_operand): New struct.
7027 (x0): New static global.
7028 (x1): Likewise.
7029 (x2): Likewise.
7030 (x3): Likewise.
7031 (x4): Likewise.
7032 (w2): Likewise.
7033 (ip0): Likewise.
7034 (sp): Likewise.
7035 (xzr): Likewise.
7036 (aarch64_register): New helper function.
7037 (register_operand): Likewise.
7038 (immediate_operand): Likewise.
7039 (struct aarch64_memory_operand): New struct.
7040 (offset_memory_operand): New helper function.
7041 (preindex_memory_operand): Likewise.
7042 (enum aarch64_system_control_registers): New enum.
7043 (ENCODE): New macro.
7044 (emit_insn): New helper function.
7045 (emit_b): New function.
7046 (emit_bcond): Likewise.
7047 (emit_cb): Likewise.
7048 (emit_tb): Likewise.
7049 (emit_blr): Likewise.
7050 (emit_stp): Likewise.
7051 (emit_ldp_q_offset): Likewise.
7052 (emit_stp_q_offset): Likewise.
7053 (emit_load_store): Likewise.
7054 (emit_ldr): Likewise.
7055 (emit_ldrsw): Likewise.
7056 (emit_str): Likewise.
7057 (emit_ldaxr): Likewise.
7058 (emit_stxr): Likewise.
7059 (emit_stlr): Likewise.
7060 (emit_data_processing_reg): Likewise.
7061 (emit_data_processing): Likewise.
7062 (emit_add): Likewise.
7063 (emit_sub): Likewise.
7064 (emit_mov): Likewise.
7065 (emit_movk): Likewise.
7066 (emit_mov_addr): Likewise.
7067 (emit_mrs): Likewise.
7068 (emit_msr): Likewise.
7069 (emit_sevl): Likewise.
7070 (emit_wfe): Likewise.
7071 (append_insns): Likewise.
7072 (can_encode_int32_in): New helper function.
7073 (aarch64_relocate_instruction): New function.
7074 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7075 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7076 (struct linux_target_ops): Install aarch64_get_thread_area,
7077 aarch64_install_fast_tracepoint_jump_pad and
7078 aarch64_get_min_fast_tracepoint_insn_len.
7079
787749ea
PL
70802015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7081
7082 * Makefile.in (aarch64-insn.o): New rule.
7083 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7084
9812b2e6
YQ
70852015-09-21 Yao Qi <yao.qi@linaro.org>
7086
7087 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7088
18fe412b
YQ
70892015-09-21 Yao Qi <yao.qi@linaro.org>
7090
7091 * tracepoint.c (max_jump_pad_size): Remove.
7092
a0cc84cd
YQ
70932015-09-18 Yao Qi <yao.qi@linaro.org>
7094
7095 * linux-aarch64-low.c: Don't include sys/uio.h.
7096 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7097
d78908cf
WW
70982015-09-16 Wei-cheng Wang <cole945@gmail.com>
7099
7100 * tracepoint.c (eval_result_type): Change prototype.
7101 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7102
d57e0d50
PA
71032015-09-15 Pedro Alves <palves@redhat.com>
7104
7105 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7106 Check whether to report exec events instead of checking whether
7107 multiprocess is enabled.
7108
5a676acc
PA
71092015-09-15 Pedro Alves <palves@redhat.com>
7110
7111 PR remote/18965
7112 * remote-utils.c (prepare_resume_reply): Merge
7113 TARGET_WAITKIND_VFORK_DONE switch case with the
7114 TARGET_WAITKIND_FORKED case.
7115
7c5d0fad
YQ
71162015-09-15 Yao Qi <yao.qi@linaro.org>
7117
7118 * server.c (handle_query): Check string comparison using
7119 "else if" instead of "if".
7120
750ce8d1
YQ
71212015-09-15 Yao Qi <yao.qi@linaro.org>
7122
7123 * server.c (vCont_supported): New global variable.
7124 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7125 matches. Append ";vContSupported+" to own_buf.
7126 (handle_v_requests): Append ";s;S" to own_buf if target supports
7127 hardware single step or vCont_supported is false.
7128 (capture_main): Set vCont_supported to zero.
7129
70b90b91
YQ
71302015-09-15 Yao Qi <yao.qi@linaro.org>
7131
7132 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7133 it to ...
7134 (linux_supports_hardware_single_step): ... New function.
7135 (linux_target_ops): Update.
7136 * lynx-low.c (lynx_target_ops): Set field
7137 supports_hardware_single_step to target_can_do_hardware_single_step.
7138 * nto-low.c (nto_target_ops): Likewise.
7139 * spu-low.c (spu_target_ops): Likewise.
7140 * win32-low.c (win32_target_ops): Likewise.
7141 * target.c (target_can_do_hardware_single_step): New function.
7142 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7143 Remove. <supports_hardware_single_step>: New field.
7144 (target_supports_conditional_breakpoints): Remove.
7145 (target_supports_hardware_single_step): New macro.
7146 (target_can_do_hardware_single_step): Declare.
7147 * server.c (handle_query): Use target_supports_hardware_single_step
7148 instead of target_supports_conditional_breakpoints.
7149
ade90bde
YQ
71502015-09-15 Yao Qi <yao.qi@linaro.org>
7151
7152 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7153 function.
7154 (struct linux_target_ops the_low_target): Install
7155 aarch64_linux_siginfo_fixup.
7156
94585166
DB
71572015-09-11 Don Breazeal <donb@codesourcery.com>
7158 Luis Machado <lgustavo@codesourcery.com>
7159
7160 * linux-low.c (linux_mourn): Static declaration.
7161 (linux_arch_setup): Move in front of
7162 handle_extended_wait.
7163 (linux_arch_setup_thread): New function.
7164 (handle_extended_wait): Handle exec events. Call
7165 linux_arch_setup_thread. Make event_lwp argument a
7166 pointer-to-a-pointer.
7167 (check_zombie_leaders): Do not check stopped threads.
7168 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7169 (linux_low_filter_event): Add lwp and thread for exec'ing
7170 non-leader thread if leader thread has been deleted.
7171 Refactor code into linux_arch_setup_thread and call it.
7172 Pass child lwp pointer by reference to handle_extended_wait.
7173 (linux_wait_for_event_filtered): Update comment.
7174 (linux_wait_1): Prevent clobbering exec event status.
7175 (linux_supports_exec_events): New function.
7176 (linux_target_ops) <supports_exec_events>: Initialize new member.
7177 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7178 new member.
7179 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7180 * server.c (report_exec_events): New global variable.
7181 (handle_query): Handle qSupported query for exec-events feature.
7182 (captured_main): Initialize report_exec_events.
7183 * server.h (report_exec_events): Declare new global variable.
7184 * target.h (struct target_ops) <supports_exec_events>: New
7185 member.
7186 (target_supports_exec_events): New macro.
7187 * win32-low.c (win32_target_ops) <supports_exec_events>:
7188 Initialize new member.
7189
0568462b
MM
71902015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7191
7192 * linux-low.c (linux_low_enable_btrace): Remove.
7193 (linux_target_ops): Replace linux_low_enable_btrace with
7194 linux_enable_btrace.
7195
39edd165
YQ
71962015-09-03 Yao Qi <yao.qi@linaro.org>
7197
7198 * linux-aarch64-low.c (aarch64_insert_point): Call
7199 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7200 returns true.
7201
1db33b5a
UW
72022015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7203
7204 * linux-low.c (check_stopped_by_breakpoint): Use
7205 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7206
ab290430
PA
72072015-08-27 Pedro Alves <palves@redhat.com>
7208
7209 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7210
8d749320
SM
72112015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7212
6711b7f8
SM
7213 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7214 the XNEW-family equivalent.
8d749320
SM
7215 (compile_bytecodes): Likewise.
7216 * dll.c (loaded_dll): Likewise.
7217 * event-loop.c (append_callback_event): Likewise.
7218 (create_file_handler): Likewise.
7219 (create_file_event): Likewise.
7220 * hostio.c (handle_open): Likewise.
7221 * inferiors.c (add_thread): Likewise.
7222 (add_process): Likewise.
7223 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7224 * linux-arm-low.c (arm_new_process): Likewise.
7225 (arm_new_thread): Likewise.
7226 * linux-low.c (add_to_pid_list): Likewise.
7227 (linux_add_process): Likewise.
7228 (handle_extended_wait): Likewise.
7229 (add_lwp): Likewise.
7230 (enqueue_one_deferred_signal): Likewise.
7231 (enqueue_pending_signal): Likewise.
7232 (linux_resume_one_lwp_throw): Likewise.
7233 (linux_resume_one_thread): Likewise.
7234 (linux_read_memory): Likewise.
7235 (linux_write_memory): Likewise.
7236 * linux-mips-low.c (mips_linux_new_process): Likewise.
7237 (mips_linux_new_thread): Likewise.
7238 (mips_add_watchpoint): Likewise.
7239 * linux-x86-low.c (initialize_low_arch): Likewise.
7240 * lynx-low.c (lynx_add_process): Likewise.
7241 * mem-break.c (set_raw_breakpoint_at): Likewise.
7242 (set_breakpoint): Likewise.
7243 (add_condition_to_breakpoint): Likewise.
7244 (add_commands_to_breakpoint): Likewise.
7245 (clone_agent_expr): Likewise.
7246 (clone_one_breakpoint): Likewise.
7247 * regcache.c (new_register_cache): Likewise.
7248 * remote-utils.c (look_up_one_symbol): Likewise.
7249 * server.c (queue_stop_reply): Likewise.
7250 (start_inferior): Likewise.
7251 (queue_stop_reply_callback): Likewise.
7252 (handle_target_event): Likewise.
7253 * spu-low.c (fetch_ppc_memory): Likewise.
7254 (store_ppc_memory): Likewise.
7255 * target.c (set_target_ops): Likewise.
7256 * thread-db.c (thread_db_load_search): Likewise.
7257 (try_thread_db_load_1): Likewise.
7258 * tracepoint.c (add_tracepoint): Likewise.
7259 (add_tracepoint_action): Likewise.
7260 (create_trace_state_variable): Likewise.
7261 (cmd_qtdpsrc): Likewise.
7262 (cmd_qtro): Likewise.
7263 (add_while_stepping_state): Likewise.
7264 * win32-low.c (child_add_thread): Likewise.
7265 (get_image_name): Likewise.
7266
ed8b7b42
YQ
72672015-08-25 Yao Qi <yao.qi@linaro.org>
7268
7269 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7270
db3cb7cb
YQ
72712015-08-25 Yao Qi <yao.qi@linaro.org>
7272
7273 * Makefile.in (aarch64-linux.o): New rule.
7274 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7275 srv_tgtobj.
7276 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7277 (aarch64_init_debug_reg_state): Make it extern.
7278 (aarch64_linux_prepare_to_resume): Remove.
7279
f6011a1c
YQ
72802015-08-25 Yao Qi <yao.qi@linaro.org>
7281
7282 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7283 lwp_arch_private_info and ptid_of_lwp.
7284
88e2cf7e
YQ
72852015-08-25 Yao Qi <yao.qi@linaro.org>
7286
7287 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7288 Find proc_info by find_process_pid. All callers updated.
7289
5e35436e
YQ
72902015-08-25 Yao Qi <yao.qi@linaro.org>
7291
7292 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7293 Remove.
7294 (debug_reg_change_callback): Remove.
7295 (aarch64_notify_debug_reg_change): Remove.
7296
4a8a7965
YQ
72972015-08-25 Yao Qi <yao.qi@linaro.org>
7298
7299 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7300 Call current_lwp_ptid.
7301
32a271ee
YQ
73022015-08-25 Yao Qi <yao.qi@linaro.org>
7303
7304 * linux-aarch64-low.c (debug_reg_change_callback): Use
7305 debug_printf.
7306
0d51c8d7
YQ
73072015-08-25 Yao Qi <yao.qi@linaro.org>
7308
7309 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7310
31a43dd5
YQ
73112015-08-25 Yao Qi <yao.qi@linaro.org>
7312
7313 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7314
8ee52567
YQ
73152015-08-25 Yao Qi <yao.qi@linaro.org>
7316
7317 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7318 the code.
7319
ff3f0f45
YQ
73202015-08-25 Yao Qi <yao.qi@linaro.org>
7321
7322 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7323 Remove.
7324 (debug_reg_change_callback): Remove argument entry and add argument
7325 lwp. Remove local variable thread. Don't print thread id in the
7326 debugging output. Don't check whether pid of thread equals to pid.
7327 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7328 iterate_over_lwps instead find_inferior.
7329
3d40fbb5
PA
73302015-08-24 Pedro Alves <palves@redhat.com>
7331
7332 * inferiors.c (get_first_process): New function.
7333 * inferiors.h (get_first_process): New declaration.
7334 * remote-utils.c (read_ptid): Default to the first process in the
7335 list, instead of to the current thread's process.
7336
438e1e42
PA
73372015-08-24 Pedro Alves <palves@redhat.com>
7338
7339 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7340 * event-loop.c: Likewise.
7341 * remote-utils.c: Likewise.
7342 * tracepoint.c: Likewise.
7343
a8c6d4fc
PA
73442015-08-24 Pedro Alves <palves@redhat.com>
7345
7346 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7347 ptid_get_lwp.
7348
99b0bb12
PA
73492015-08-21 Pedro Alves <palves@redhat.com>
7350
7351 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7352 instead of literal 1.
7353
f8904751
PA
73542015-08-21 Pedro Alves <palves@redhat.com>
7355
7356 * tdesc.c (default_description): Explicitly zero-initialize.
7357
465a859e
PA
73582015-08-21 Pedro Alves <palves@redhat.com>
7359
7360 PR gdb/18749
7361 * inferiors.c (remove_thread): Discard any pending stop reply for
7362 this thread.
7363 * server.c (remove_all_on_match_pid): Rename to ...
7364 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7365 instead of a pid.
7366 (discard_queued_stop_replies): Change parameter to a ptid. Now
7367 extern.
7368 (handle_v_kill, kill_inferior_callback, captured_main)
7369 (process_serial_event): Adjust.
7370 * server.h (discard_queued_stop_replies): Declare.
7371
f0db101d
PA
73722015-08-21 Pedro Alves <palves@redhat.com>
7373
7374 * linux-low.c (wait_for_sigstop): Always switch to no thread
7375 selected if the previously current thread dies.
7376 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7377 process instead of the current thread's.
7378 * remote-utils.c (input_interrupt): Don't check if there's no
7379 current thread.
7380 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7381 current thread to the general thread fails, error out.
7382 (handle_qxfer_auxv, handle_qxfer_libraries)
7383 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7384 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7385 (handle_query): Check if there's a thread selected instead of
7386 checking whether there's any thread in the thread list.
7387 (handle_qxfer_threads, handle_qxfer_btrace)
7388 (handle_qxfer_btrace_conf): Don't error out early if there's no
7389 thread in the thread list.
7390 (handle_v_cont, myresume): Don't set the current thread to the
7391 continue thread.
7392 (process_serial_event) <Hg handling>: Also set thread_id if the
7393 previous general thread is still alive.
7394 (process_serial_event) <g/G handling>: If setting the current
7395 thread to the general thread fails, error out.
7396 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7397 thread's lwp instead of the current thread's.
7398 * target.c (set_desired_thread): If the desired thread was not
7399 found, leave the current thread pointing to NULL. Return an int
7400 (boolean) indicating success.
7401 * target.h (set_desired_thread): Change return type to int.
7402
40045d91
MF
74032015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7404
7405 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7406 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7407 #includes.
7408 (ps_get_thread_area): New function.
7409
45face3b
GB
74102015-08-19 Gary Benson <gbenson@redhat.com>
7411
7412 * hostio.c (handle_pread): Do not attempt to read more data
7413 than hostio_reply_with_data can fit in a packet.
7414
16d5f642
JB
74152015-08-18 Joel Brobecker <brobecker@adacore.com>
7416
7417 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7418
a738da3a
MF
74192015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7420
7421 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7422
33ebda9d
PA
74232015-08-06 Pedro Alves <palves@redhat.com>
7424
7425 * tracepoint.c (expr_eval_result): Now an int.
7426
a44892be
PA
74272015-08-06 Pedro Alves <palves@redhat.com>
7428
7429 * gdbthread.h (struct regcache): Forward declare.
7430 (struct thread_info) <regcache_data>: Now a struct regcache
7431 pointer.
7432 * inferiors.c (inferior_regcache_data)
7433 (set_inferior_regcache_data): Now work with struct regcache
7434 pointers.
7435 * inferiors.h (struct regcache): Forward declare.
7436 (inferior_regcache_data, set_inferior_regcache_data): Now work
7437 with struct regcache pointers.
7438 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7439 (free_register_cache_thread): Remove struct regcache pointer
7440 casts.
7441
608a1e46
PA
74422015-08-06 Pedro Alves <palves@redhat.com>
7443
7444 * server.c (captured_main): On error, print the exception message
7445 to stderr, and if run_once is set, throw a quit.
7446
f0ce0d3a
PA
74472015-08-06 Pedro Alves <palves@redhat.com>
7448
7449 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7450 the current thread.
7451
bf47e248
PA
74522015-08-06 Pedro Alves <palves@redhat.com>
7453
7454 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7455 reading beyond the passed in buffer length.
7456
b6b9ffcc
PL
74572015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7458
7459 * tracepoint.c (symbol_list) <required>: Remove.
7460
863d01bd
PA
74612015-08-06 Pedro Alves <palves@redhat.com>
7462
7463 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7464 count if stopping and suspending threads.
7465 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7466 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7467 (linux_detach): Complete an ongoing step-over.
7468 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7469 throughout.
7470 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7471 (linux_wait_1): If passing a signal to the inferior after
7472 finishing a step-over, unsuspend and re-resume all lwps. If we
7473 see a single-step event but the thread should be continuing, don't
7474 pass the trap to gdb.
7475 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7476 internal_error instead of gdb_assert.
7477 (enqueue_pending_signal): New function.
7478 (check_ptrace_stopped_lwp_gone): Add debug output.
7479 (start_step_over): Use internal_error instead of gdb_assert.
7480 (complete_ongoing_step_over): New function.
7481 (linux_resume_one_thread): Don't resume a suspended thread.
7482 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7483 it stepping.
7484
00db26fa
PA
74852015-08-06 Pedro Alves <palves@redhat.com>
7486
7487 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7488 (linux_thread_alive): Use lwp_is_marked_dead.
7489 (extended_event_reported): Delete.
7490 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7491 instead of extended_event_reported.
7492 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7493 as well.
7494 (lwp_is_marked_dead): New function.
7495 (lwp_running): Use lwp_is_marked_dead.
7496 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7497 comment.
7498
ad071a30
PA
74992015-08-06 Pedro Alves <palves@redhat.com>
7500
7501 * linux-low.c (linux_wait_1): Move fork event output out of the
7502 !report_to_gdb check. Pass event_child->waitstatus to
7503 target_waitstatus_to_string instead of ourstatus.
7504
524b57e6
YQ
75052015-08-04 Yao Qi <yao.qi@linaro.org>
7506
7507 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7508 if current_thread is 32 bit.
7509
6085d6f6
YQ
75102015-08-04 Yao Qi <yao.qi@linaro.org>
7511
7512 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7513 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7514 * server.c (extended_protocol): Remove "static".
7515 * server.h (extended_protocol): Declare it.
7516
8a7e4587
YQ
75172015-08-04 Yao Qi <yao.qi@linaro.org>
7518
7519 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7520 both aarch64 and aarch32.
7521 (aarch64_set_pc): Likewise.
7522
3b53ae99
YQ
75232015-08-04 Yao Qi <yao.qi@linaro.org>
7524
7525 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7526 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7527 arm-with-neon.xml to srv_xmlfiles.
7528 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7529 (is_64bit_tdesc): New function.
7530 (aarch64_linux_read_description): New function.
7531 (aarch64_arch_setup): Call aarch64_linux_read_description.
7532 (regs_info): Rename to regs_info_aarch64.
7533 (aarch64_regs_info): Return right regs_info.
7534 (initialize_low_arch): Call initialize_low_arch_aarch32.
7535
bd9e6534
YQ
75362015-08-04 Yao Qi <yao.qi@linaro.org>
7537
7538 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7539 * linux-aarch32-low.c: New file.
7540 * linux-aarch32-low.h: New file.
7541 * linux-arm-low.c (arm_fill_gregset): Move it to
7542 linux-aarch32-low.c.
7543 (arm_store_gregset): Likewise.
7544 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7545 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7546 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7547 (regs_info): Rename to regs_info_arm.
7548 (arm_regs_info): Return regs_info_aarch32 if
7549 have_ptrace_getregset is 1 and target description is
7550 arm_with_neon or arm_with_vfpv3.
7551 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7552 Call initialize_low_arch_aarch32 instead.
7553
ded48a5e
YQ
75542015-08-04 Yao Qi <yao.qi@linaro.org>
7555
7556 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7557 * linux-low.c: ... here.
7558 * linux-low.h (have_ptrace_getregset): Declare it.
7559
96e9210f
PA
75602015-08-04 Pedro Alves <palves@redhat.com>
7561
7562 * thread-db.c (struct thread_db): Use new typedefs.
7563 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7564 CHK calls.
7565 (disable_thread_event_reporting): Cast result of dlsym to
7566 destination function pointer type.
7567 (thread_db_mourn): Use td_ta_delete_ftype.
7568
af60a1ef
SL
75692015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7570
7571 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7572 arch variant.
7573 (CDX_BREAKPOINT): Define for R2.
7574 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7575 (the_low_target): Add comments.
7576
e8b41681
YQ
75772015-07-30 Yao Qi <yao.qi@linaro.org>
7578
7579 * linux-arm-low.c (arm_hwcap): Remove it.
7580 (arm_read_description): New local variable arm_hwcap. Don't
7581 set arm_hwcap to zero.
7582
89abb039
YQ
75832015-07-30 Yao Qi <yao.qi@linaro.org>
7584
7585 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7586 Use regcache->tdesc instead.
7587 (arm_store_wmmxregset): Likewise.
7588 (arm_fill_vfpregset): Likewise.
7589 (arm_store_vfpregset): Likewise.
7590
deca266c
YQ
75912015-07-30 Yao Qi <yao.qi@linaro.org>
7592
7593 * linux-arm-low.c: Include arch/arm.h.
7594 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7595 (arm_store_gregset): Likewise.
7596
aa58a496
SM
75972015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7598
7599 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7600 ptrace's 4th parameter.
7601
50904b25
YQ
76022015-07-27 Yao Qi <yao.qi@linaro.org>
7603
7604 * configure.srv (case aarch64*-*-linux*): Don't set
7605 srv_linux_usrregs.
7606
5826e159
PA
76072015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7608
7609 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7610 sys/ptrace.h.
7611 * linux-arm-low.c: Likewise.
7612 * linux-cris-low.c: Likewise.
7613 * linux-crisv32-low.c: Likewise.
7614 * linux-low.c: Likewise.
7615 * linux-m68k-low.c: Likewise.
7616 * linux-mips-low.c: Likewise.
7617 * linux-nios2-low.c: Likewise.
7618 * linux-s390-low.c: Likewise.
7619 * linux-sparc-low.c: Likewise.
7620 * linux-tic6x-low.c: Likewise.
7621 * linux-tile-low.c: Likewise.
7622 * linux-x86-low.c: Likewise.
7623
54019719
PA
76242015-07-24 Pedro Alves <palves@redhat.com>
7625
7626 * config.in: Regenerate.
7627 * configure: Regenerate.
7628
eb7aa561
PA
76292015-07-24 Pedro Alves <palves@redhat.com>
7630
7631 * acinclude.m4: Include ../ptrace.m4.
7632 * configure.ac: Call GDB_AC_PTRACE.
7633 * config.in, configure: Regenerate.
7634
55d7b841
YQ
76352015-07-24 Yao Qi <yao.qi@linaro.org>
7636
7637 * linux-low.c (linux_create_inferior): Remove setting to
7638 proc->priv->new_inferior.
7639 (linux_attach): Likewise.
7640 (linux_low_filter_event): Likewise.
7641 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7642
c06cbd92
YQ
76432015-07-24 Yao Qi <yao.qi@linaro.org>
7644
7645 * linux-low.c (linux_arch_setup): New function.
7646 (linux_low_filter_event): If proc->tdesc is NULL and
7647 proc->attached is true, call the_low_target.arch_setup.
7648 Otherwise, keep status pending, and return.
7649 (linux_resume_one_lwp_throw): Don't call get_pc if
7650 thread->while_stepping isn't NULL. Don't call
7651 get_thread_regcache if proc->tdesc is NULL.
7652 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7653 (linux_target_ops): Install arch_setup.
7654 * server.c (start_inferior): Call the_target->arch_setup.
7655 * target.h (struct target_ops) <arch_setup>: New field.
7656 (target_arch_setup): New marco.
7657 * lynx-low.c (lynx_target_ops): Update.
7658 * nto-low.c (nto_target_ops): Update.
7659 * spu-low.c (spu_target_ops): Update.
7660 * win32-low.c (win32_target_ops): Update.
7661
5ae3ebba
YQ
76622015-07-24 Yao Qi <yao.qi@linaro.org>
7663
7664 * linux-low.c (linux_add_process): Don't set
7665 proc->priv->new_inferior.
7666 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7667 (linux_attach): Likewise.
7668
eb97750b
YQ
76692015-07-24 Yao Qi <yao.qi@linaro.org>
7670
7671 * server.c (start_inferior): Code refactor.
7672
51aee833
YQ
76732015-07-24 Yao Qi <yao.qi@linaro.org>
7674
7675 * server.c (process_serial_event): Set general_thread.
7676
af1b22f3
YQ
76772015-07-21 Yao Qi <yao.qi@linaro.org>
7678
7679 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7680 aarch64_linux_get_debug_reg_capacity.
7681
554717a3
YQ
76822015-07-17 Yao Qi <yao.qi@linaro.org>
7683
7684 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7685 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7686 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7687 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7688 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7689 (AARCH64_HWP_ALIGNMENT): Likewise.
7690 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7691 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7692 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7693 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7694 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7695 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7696 (struct aarch64_debug_reg_state): Likewise.
7697 (struct arch_lwp_info): Likewise.
7698 (aarch64_align_watchpoint): Likewise.
7699 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7700 (aarch64_watchpoint_length): Likewise.
7701 (aarch64_point_encode_ctrl_reg): Likewise
7702 (aarch64_point_is_aligned): Likewise.
7703 (aarch64_align_watchpoint): Likewise.
7704 (aarch64_linux_set_debug_regs):
7705 (aarch64_dr_state_insert_one_point): Likewise.
7706 (aarch64_dr_state_remove_one_point): Likewise.
7707 (aarch64_handle_breakpoint): Likewise.
7708 (aarch64_handle_aligned_watchpoint): Likewise.
7709 (aarch64_handle_unaligned_watchpoint): Likewise.
7710 (aarch64_handle_watchpoint): Likewise.
7711
c67ca4de
YQ
77122015-07-17 Yao Qi <yao.qi@linaro.org>
7713
7714 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
7715 and don't aarch64_get_debug_reg_state. All callers update.
7716 (aarch64_handle_aligned_watchpoint): Likewise.
7717 (aarch64_handle_unaligned_watchpoint): Likewise.
7718 (aarch64_handle_watchpoint): Likewise.
7719 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
7720 (aarch64_remove_point): Likewise.
7721
25abf979
YQ
77222015-07-17 Yao Qi <yao.qi@linaro.org>
7723
7724 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
7725 debug_printf.
7726 (aarch64_handle_unaligned_watchpoint): Likewise.
7727
db1ff28b
JK
77282015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7729
7730 Revert the previous 3 commits:
7731 Move gdb_regex* to common/
7732 Move linux_find_memory_regions_full & co.
7733 gdbserver build-id attribute generator
7734
700ca40f
JK
77352015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7736 Jan Kratochvil <jan.kratochvil@redhat.com>
7737
7738 gdbserver build-id attribute generator.
7739 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7740 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7741 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7742 (find_phdr): New.
7743 (get_dynamic): Use find_pdhr to traverse program headers.
7744 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7745 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7746 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7747 (get_hex_build_id): New.
7748 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7749 to reply XML document.
7750
9904185c
JK
77512015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7752 Jan Kratochvil <jan.kratochvil@redhat.com>
7753
7754 * target.c: Include target/target-utils.h and fcntl.h.
7755 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7756 (target_fileio_read_stralloc): New functions.
7757
6e5b4429
JK
77582015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7759
7760 * Makefile.in (OBS): Add gdb_regex.o.
7761 (gdb_regex.o): New.
7762 * config.in: Rebuilt.
7763 * configure: Rebuilt.
7764
ddc98fbf
JK
77652015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7766 Jan Kratochvil <jan.kratochvil@redhat.com>
7767
7768 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7769 * Makefile.in (OBS): Add target-utils.o.
7770 (linux-maps.o, target-utils.o): New.
7771 * configure.srv (srv_linux_obj): Add linux-maps.o.
7772
e57bb7a0
PL
77732015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7774
7775 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7776 function, return 1.
7777 (the_low_target): Install it.
7778
586b02a9
PA
77792015-07-14 Pedro Alves <palves@redhat.com>
7780
7781 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7782 Instead, ignore ECHILD, and throw an error for other errnos.
7783
58c1b36c
PA
77842015-07-10 Pedro Alves <palves@redhat.com>
7785
7786 * event-loop.c (struct callback_event) <data>: Change type to
7787 gdb_client_data instance instead of gdb_client_data pointer.
7788 (append_callback_event): Adjust.
7789
421530db
PL
77902015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7791
7792 * linux-aarch64-low.c: Add comments for each linux_target_ops
7793 method. Remove comments already covered in target_ops and
7794 linux_target_ops definitions.
7795 (the_low_target): Add comments for each unimplemented method.
7796
c2d65f38
YQ
77972015-07-09 Yao Qi <yao.qi@linaro.org>
7798
7799 * linux-aarch64-low.c (aarch64_regmap): Remove.
7800 (aarch64_usrregs_info): Remove.
7801 (regs_info): Set field usrregs to NULL.
7802
b20a6524
MM
78032015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7804
7805 * linux-low.c: Include "rsp-low.h"
7806 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7807 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7808 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7809 (handle_btrace_enable_pt): New.
7810 (handle_btrace_general_set): Support "pt".
7811 (handle_btrace_conf_general_set): Support "pt:size".
7812
96c97461
PL
78132015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7814
7815 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7816 Z_PACKET_SW_BP.
7817
37d66942
PL
78182015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7819
7820 * linux-aarch64-low.c: Remove comment about endianness.
7821 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7822 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7823 memcmp.
7824
dc06243f
GB
78252015-06-24 Gary Benson <gbenson@redhat.com>
7826
7827 * linux-i386-ipa.c (stdint.h): Do not include.
7828 * lynx-i386-low.c (stdint.h): Likewise.
7829 * lynx-ppc-low.c (stdint.h): Likewise.
7830 * mem-break.c (stdint.h): Likewise.
7831 * thread-db.c (stdint.h): Likewise.
7832 * tracepoint.c (stdint.h): Likewise.
7833 * win32-low.c (stdint.h): Likewise.
7834
124e13d9
SM
78352015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7836
7837 * server.c (write_qxfer_response): Update call to
7838 remote_escape_output.
7839
909c2cda
JK
78402015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7841 Jan Kratochvil <jan.kratochvil@redhat.com>
7842
7843 Merge multiple hex conversions.
7844 * gdbreplay.c (tohex): Rename to 'fromhex'.
7845 (logchar): Use fromhex.
7846
24c05f46
JK
78472015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7848
7849 * server.c (handle_qxfer_libraries): Set `version' attribute for
7850 <library-list>.
7851
14d2069a
GB
78522015-06-10 Gary Benson <gbenson@redhat.com>
7853
7854 * target.h (struct target_ops) <multifs_open>: New field.
7855 <multifs_unlink>: Likewise.
7856 <multifs_readlink>: Likewise.
7857 * linux-low.c (nat/linux-namespaces.h): New include.
7858 (linux_target_ops): Initialize the_target->multifs_open,
7859 the_target->multifs_unlink and the_target->multifs_readlink.
7860 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7861 * hostio.c (hostio_fs_pid): New static variable.
7862 (hostio_handle_new_gdb_connection): New function.
7863 (handle_setfs): Likewise.
7864 (handle_open): Use the_target->multifs_open as appropriate.
7865 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7866 (handle_readlink): Use the_target->multifs_readlink as
7867 appropriate.
7868 (handle_vFile): Handle vFile:setfs packets.
7869 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7870 after target_handle_new_gdb_connection.
7871
4b8b5e72
GB
78722015-06-10 Gary Benson <gbenson@redhat.com>
7873
7874 * configure.ac (AC_CHECK_FUNCS): Add setns.
7875 * config.in: Regenerate.
7876 * configure: Likewise.
7877 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7878 (linux-namespaces.o): New rule.
7879 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7880
3ac2e371
GB
78812015-06-09 Gary Benson <gbenson@redhat.com>
7882
7883 * hostio.c (handle_open): Process mode argument with
7884 fileio_to_host_mode.
7885
ca9b78ce
YQ
78862015-06-01 Yao Qi <yao.qi@linaro.org>
7887
7888 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7889 * linux-x86-low.c: Likewise.
7890
bfacd19d
DB
78912015-05-28 Don Breazeal <donb@codesourcery.com>
7892
7893 * linux-low.c (handle_extended_wait): Initialize
7894 thread_info.last_resume_kind for new fork children.
7895
452003ef
PA
78962015-05-15 Pedro Alves <palves@redhat.com>
7897
7898 * target.h (target_handle_new_gdb_connection): Rewrite using if
7899 wrapped in do/while.
7900
1041a03c
JB
79012015-05-14 Joel Brobecker <brobecker@adacore.com>
7902
7903 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7904 * configure, config.in: Regenerate.
7905 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7906 Declare typedef.
7907
c269dbdb
DB
79082015-05-12 Don Breazeal <donb@codesourcery.com>
7909
7910 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7911 PTRACE_EVENT_VFORK_DONE.
7912 (linux_low_ptrace_options, extended_event_reported): Add vfork
7913 events.
7914 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7915 and "vforkdone" for RSP 'T' Stop Reply Packet.
7916 * server.h (report_vfork_events): Declare
7917 global variable.
7918
3a8a0396
DB
79192015-05-12 Don Breazeal <donb@codesourcery.com>
7920
7921 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7922 (the_low_target) <new_fork>: Initialize new member.
7923 * linux-arm-low.c (arm_new_fork): New function.
7924 (the_low_target) <new_fork>: Initialize new member.
7925 * linux-low.c (handle_extended_wait): Call new target function
7926 new_fork.
7927 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7928 * linux-mips-low.c (mips_add_watchpoint): New function
7929 extracted from mips_insert_point.
7930 (the_low_target) <new_fork>: Initialize new member.
7931 (mips_linux_new_fork): New function.
7932 (mips_insert_point): Call mips_add_watchpoint.
7933 * linux-x86-low.c (x86_linux_new_fork): New function.
7934 (the_low_target) <new_fork>: Initialize new member.
7935
de0d863e
DB
79362015-05-12 Don Breazeal <donb@codesourcery.com>
7937
7938 * linux-low.c (handle_extended_wait): Implement return value,
7939 rename argument 'event_child' to 'event_lwp', handle
7940 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7941 (linux_low_ptrace_options): New function.
7942 (linux_low_filter_event): Call linux_low_ptrace_options,
7943 use different argument fo linux_enable_event_reporting,
7944 use return value from handle_extended_wait.
7945 (extended_event_reported): New function.
7946 (linux_wait_1): Call extended_event_reported and set
7947 status to report fork events.
7948 (linux_write_memory): Add pid to debug message.
7949 (reset_lwp_ptrace_options_callback): New function.
7950 (linux_handle_new_gdb_connection): New function.
7951 (linux_target_ops): Initialize new structure member.
7952 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7953 * lynx-low.c: Initialize new structure member.
7954 * remote-utils.c (prepare_resume_reply): Implement stop reason
7955 "fork" for "T" stop message.
7956 * server.c (handle_query): Call handle_new_gdb_connection.
7957 * server.h (report_fork_events): Declare global flag.
7958 * target.h (struct target_ops) <handle_new_gdb_connection>:
7959 New member.
7960 (target_handle_new_gdb_connection): New macro.
7961 * win32-low.c: Initialize new structure member.
7962
ddcbc397
DB
79632015-05-12 Don Breazeal <donb@codesourcery.com>
7964
7965 * mem-break.c (APPEND_TO_LIST): Define macro.
7966 (clone_agent_expr): New function.
7967 (clone_one_breakpoint): New function.
7968 (clone_all_breakpoints): New function.
7969 * mem-break.h: Declare new functions.
7970
89245bc0
DB
79712015-05-12 Don Breazeal <donb@codesourcery.com>
7972
7973 * linux-low.c (linux_supports_fork_events): New function.
7974 (linux_supports_vfork_events): New function.
7975 (linux_target_ops): Initialize new structure members.
7976 (initialize_low): Call linux_check_ptrace_features.
7977 * lynx-low.c (lynx_target_ops): Initialize new structure
7978 members.
7979 * server.c (report_fork_events, report_vfork_events):
7980 New global flags.
7981 (handle_query): Add new features to qSupported packet and
7982 response.
7983 (captured_main): Initialize new global variables.
7984 * target.h (struct target_ops) <supports_fork_events>:
7985 New member.
7986 <supports_vfork_events>: New member.
7987 (target_supports_fork_events): New macro.
7988 (target_supports_vfork_events): New macro.
7989 * win32-low.c (win32_target_ops): Initialize new structure
7990 members.
7991
835205d0
GB
79922015-05-12 Gary Benson <gbenson@redhat.com>
7993
7994 * server.c (handle_qxfer_exec_file): Use current process
7995 if annex is empty.
7996
21e94bd9
SL
79972015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7998
7999 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8000 Remove HAVE_PTRACE_GETREGS conditionals.
8001 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8002 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8003
45614f15
YQ
80042015-05-08 Yao Qi <yao.qi@linaro.org>
8005
8006 * linux-low.c (linux_supports_conditional_breakpoints): New
8007 function.
8008 (linux_target_ops): Install new target method.
8009 * lynx-low.c (lynx_target_ops): Install NULL hook for
8010 supports_conditional_breakpoints.
8011 * nto-low.c (nto_target_ops): Likewise.
8012 * spu-low.c (spu_target_ops): Likewise.
8013 * win32-low.c (win32_target_ops): Likewise.
8014 * server.c (handle_query): Check
8015 target_supports_conditional_breakpoints.
8016 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8017 New field.
8018 (target_supports_conditional_breakpoints): New macro.
8019
80ad801e
PA
80202015-05-06 Pedro Alves <palves@redhat.com>
8021
8022 PR server/18081
8023 * server.c (start_inferior): If the process exits, mourn it.
8024
819843c7
GB
80252015-04-21 Gary Benson <gbenson@redhat.com>
8026
8027 * hostio.c (fileio_open_flags_to_host): Factored out to
8028 fileio_to_host_openflags in common/fileio.c. Single use
8029 updated.
8030
a2d5a9d7
MF
80312015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8032
8033 * linux-xtensa-low.c (xtensa_fill_gregset)
8034 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8035 XCHAL_HAVE_LOOP.
8036
deb44829
MF
80372015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8038
8039 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8040 (regs_info): Replace usrregs pointer with NULL.
8041
e57f1de3
GB
80422015-04-17 Gary Benson <gbenson@redhat.com>
8043
8044 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8045 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8046 * server.c (handle_qxfer_exec_file): New function.
8047 (qxfer_packets): Add exec-file entry.
8048 (handle_query): Report qXfer:exec-file:read as supported packet.
8049
62828379
RN
80502015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8051
8052 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8053
b88bb450
GB
80542015-04-09 Gary Benson <gbenson@redhat.com>
8055
8056 * hostio-errno.c (errno_to_fileio_error): Remove function.
8057 Update caller to use remote_fileio_to_fio_error.
8058
c8f4bfdd
YQ
80592015-04-09 Yao Qi <yao.qi@linaro.org>
8060
8061 * linux-low.c (linux_insert_point): Call
8062 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8063 (linux_remove_point): Call remove_memory_breakpoint if type is
8064 raw_bkpt_type_sw.
8065 * linux-x86-low.c (x86_insert_point): Don't call
8066 insert_memory_breakpoint.
8067 (x86_remove_point): Don't call remove_memory_breakpoint.
8068
41f98f02
PA
80692015-04-01 Pedro Alves <palves@redhat.com>
8070 Cleber Rosa <crosa@redhat.com>
8071
8072 * server.c (gdbserver_usage): Reorganize and extend the usage
8073 message.
8074
2bf6fb9d
PA
80752015-03-24 Pedro Alves <palves@redhat.com>
8076
8077 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8078 output. Also dump TRAP_TRACE.
8079 (linux_low_filter_event): In debug output, distinguish a
8080 resume_stop SIGSTOP from a delayed SIGSTOP.
8081
369f6daa
GB
80822015-03-24 Gary Benson <gbenson@redhat.com>
8083
8084 * linux-x86-low.c (x86_linux_new_thread): Moved to
8085 nat/x86-linux.c.
8086 (x86_linux_prepare_to_resume): Likewise.
8087
8e5d4070
GB
80882015-03-24 Gary Benson <gbenson@redhat.com>
8089
8090 * Makefile.in (x86-linux-dregs.o): New rule.
8091 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8092 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8093 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8094 (x86_linux_dr_get): Likewise.
8095 (x86_linux_dr_set): Likewise.
8096 (update_debug_registers_callback): Likewise.
8097 (x86_linux_dr_set_addr): Likewise.
8098 (x86_linux_dr_get_addr): Likewise.
8099 (x86_linux_dr_set_control): Likewise.
8100 (x86_linux_dr_get_control): Likewise.
8101 (x86_linux_dr_get_status): Likewise.
8102 (x86_linux_update_debug_registers): Likewise.
8103
2b95d440
GB
81042015-03-24 Gary Benson <gbenson@redhat.com>
8105
8106 * linux-x86-low.c (x86_linux_update_debug_registers):
8107 New function, factored out from...
8108 (x86_linux_prepare_to_resume): ...this.
8109
14b0bc68
GB
81102015-03-24 Gary Benson <gbenson@redhat.com>
8111
8112 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8113 (x86_linux_dr_set): Likewise.
8114 (update_debug_registers_callback): Likewise.
8115 (x86_linux_dr_set_addr): Likewise.
8116 (x86_linux_dr_get_addr): Likewise.
8117 (x86_linux_dr_set_control): Likewise.
8118 (x86_linux_dr_get_control): Likewise.
8119 (x86_linux_dr_get_status): Likewise.
8120 (x86_linux_prepare_to_resume): Likewise.
8121
5dfe6ca8
GB
81222015-03-24 Gary Benson <gbenson@redhat.com>
8123
8124 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8125 Use perror_with_name. Pass string through gettext.
8126 (x86_linux_dr_set): Likewise.
8127
d33472ad
GB
81282015-03-24 Gary Benson <gbenson@redhat.com>
8129
8130 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8131 (x86_linux_dr_set_addr): ...this.
8132 (x86_dr_low_get_addr): Rename to...
8133 (x86_linux_dr_get_addr): ...this.
8134 (x86_dr_low_set_control): Rename to...
8135 (x86_linux_dr_set_control): ...this.
8136 (x86_dr_low_get_control): Rename to...
8137 (x86_linux_dr_get_control): ...this.
8138 (x86_dr_low_get_status): Rename to...
8139 (x86_linux_dr_get_status): ...this.
8140 (x86_dr_low): Update with new function names.
8141
4b134ca1
GB
81422015-03-24 Gary Benson <gbenson@redhat.com>
8143
8144 * Makefile.in (x86-linux.o): New rule.
8145 * configure.srv: Add x86-linux.o to relevant targets.
8146 * linux-low.c (lwp_set_arch_private_info): New function.
8147 (lwp_arch_private_info): Likewise.
8148 * linux-x86-low.c: Include nat/x86-linux.h.
8149 (arch_lwp_info): Removed structure.
8150 (update_debug_registers_callback):
8151 Use lwp_set_debug_registers_changed.
8152 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8153 and lwp_set_debug_registers_changed.
8154 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8155
34c703da
GB
81562015-03-24 Gary Benson <gbenson@redhat.com>
8157
8158 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8159 * linux-arm-low.c (arm_new_thread): Likewise.
8160 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8161 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8162 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8163 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8164
cff068da
GB
81652015-03-24 Gary Benson <gbenson@redhat.com>
8166
8167 * linux-low.c (ptid_of_lwp): New function.
8168 (lwp_is_stopped): Likewise.
8169 (lwp_stop_reason): Likewise.
8170 * linux-x86-low.c (update_debug_registers_callback):
8171 Use lwp_is_stopped.
8172 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8173 lwp_stop_reason.
8174
b2f7c7e8
GB
81752015-03-24 Gary Benson <gbenson@redhat.com>
8176
8177 * linux-low.h (linux_stop_lwp): Remove declaration.
8178
6d4ee8c6
GB
81792015-03-24 Gary Benson <gbenson@redhat.com>
8180
8181 * linux-low.h: Include nat/linux-nat.h.
8182 * linux-low.c (iterate_over_lwps_args): New structure.
8183 (iterate_over_lwps_filter): New function.
8184 (iterate_over_lwps): Likewise.
8185 * linux-x86-low.c (update_debug_registers_callback):
8186 Update signature to what iterate_over_lwps expects.
8187 Remove PID check that iterate_over_lwps now performs.
8188 (x86_dr_low_set_addr): Use iterate_over_lwps.
8189 (x86_dr_low_set_control): Likewise.
8190
70a0bb6b
GB
81912015-03-24 Gary Benson <gbenson@redhat.com>
8192
8193 * linux-x86-low.c (x86_debug_reg_state): New function.
8194 (x86_linux_prepare_to_resume): Use the above.
8195
7b669087
GB
81962015-03-24 Gary Benson <gbenson@redhat.com>
8197
8198 * linux-low.c (current_lwp_ptid): New function.
8199 * linux-x86-low.c: Include nat/linux-nat.h.
8200 (x86_dr_low_get_addr): Use current_lwp_ptid.
8201 (x86_dr_low_get_control): Likewise.
8202 (x86_dr_low_get_status): Likewise.
8203
eef49a3d
PA
82042015-03-20 Pedro Alves <palves@redhat.com>
8205
8206 * tracepoint.c (cmd_qtstatus): Make "str" const.
8207
b2333d22
PA
82082015-03-20 Pedro Alves <palves@redhat.com>
8209
8210 * server.c (handle_general_set): Make "req_str" const.
8211
23f238d3
PA
82122015-03-19 Pedro Alves <palves@redhat.com>
8213
8214 * linux-low.c (linux_resume_one_lwp): Rename to ...
8215 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8216 instead call perror_with_name.
8217 (check_ptrace_stopped_lwp_gone): New function.
8218 (linux_resume_one_lwp): Reimplement as wrapper around
8219 linux_resume_one_lwp_throw that swallows errors if the LWP is
8220 gone.
8221
91baf43f
PA
82222015-03-19 Pedro Alves <palves@redhat.com>
8223
8224 * linux-low.c (count_events_callback, select_event_lwp_callback):
8225 No longer check whether the thread has resume_stop as last resume
8226 kind.
8227
8bf3b159
PA
82282015-03-19 Pedro Alves <palves@redhat.com>
8229
8230 * linux-low.c (count_events_callback, select_event_lwp_callback):
8231 Use the lwp's status_pending_p field, not the thread's.
8232
b90fc188
PA
82332015-03-19 Pedro Alves <palves@redhat.com>
8234
8235 * linux-low.c (select_event_lwp_callback): Update comments to
8236 no longer mention SIGTRAP.
8237
464b0089
GB
82382015-03-18 Gary Benson <gbenson@redhat.com>
8239
8240 * server.c (handle_query): Do not report vFile:fstat as supported.
8241
aa9e327f
GB
82422015-03-11 Gary Benson <gbenson@redhat.com>
8243
8244 * hostio.c (sys/types.h): New include.
8245 (sys/stat.h): Likewise.
8246 (common-remote-fileio.h): Likewise.
8247 (handle_fstat): New function.
8248 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 8249
791c0056
GB
82502015-03-11 Gary Benson <gbenson@redhat.com>
8251
8252 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8253 struct stat.st_blocks and struct stat.st_blksize.
8254 * configure: Regenerate.
8255 * config.in: Likewise.
8256 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8257 (OBS): Add common-remote-fileio.o.
8258 (common-remote-fileio.o): New rule.
8259
9a9df970
PA
82602015-03-09 Pedro Alves <palves@redhat.com>
8261
8262 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8263 'struct sockaddr' pointer in 'accept' call.
8264
9eb1356e
PA
82652015-03-09 Pedro Alves <palves@redhat.com>
8266
8267 Revert:
8268 2015-03-07 Pedro Alves <palves@redhat.com>
8269 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8270 or <winsock2.h> here. Instead include "gdb_socket.h".
8271 (remote_open): Use union gdb_sockaddr_u.
8272 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8273 or <winsock2.h> here. Instead include "gdb_socket.h".
8274 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8275 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8276 or <sys/un.h>.
8277 (init_named_socket, gdb_agent_helper_thread): Use union
8278 gdb_sockaddr_u.
8279
aac331e4
PA
82802015-03-07 Pedro Alves <palves@redhat.com>
8281
8282 * configure.ac (build_warnings): Move
8283 -Wdeclaration-after-statement to the C-specific set.
8284 * configure: Regenerate.
8285
366c75fc
PA
82862015-03-07 Pedro Alves <palves@redhat.com>
8287
8288 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8289 or <winsock2.h> here. Instead include "gdb_socket.h".
8290 (remote_open): Use union gdb_sockaddr_u.
8291 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8292 or <winsock2.h> here. Instead include "gdb_socket.h".
8293 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8294 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8295 or <sys/un.h>.
8296 (init_named_socket, gdb_agent_helper_thread): Use union
8297 gdb_sockaddr_u.
8298
492d29ea
PA
82992015-03-07 Pedro Alves <palves@redhat.com>
8300
8301 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8302 instead.
8303
60a191ed
YQ
83042015-03-06 Yao Qi <yao.qi@linaro.org>
8305
8306 * linux-aarch64-low.c (aarch64_insert_point): Use
8307 show_debug_regs as a boolean.
8308 (aarch64_remove_point): Likewise.
8309
f5771b1d
PA
83102015-03-05 Pedro Alves <palves@redhat.com>
8311
8312 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8313 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8314 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8315 * nto-low.c (nto_target_ops): Likewise.
8316 * spu-low.c (spu_target_ops): Likewise.
8317 * win32-low.c (win32_target_ops): Likewise.
8318
3e572f71
PA
83192015-03-04 Pedro Alves <palves@redhat.com>
8320
72f4393d 8321 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
8322 Decide whether a breakpoint triggered based on the SIGTRAP's
8323 siginfo.si_code.
72f4393d
L
8324 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8325 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
8326 (linux_low_filter_event): Check for breakpoints before checking
8327 watchpoints.
8328 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8329 siginfo.si_code.
72f4393d
L
8330 (linux_stopped_by_sw_breakpoint)
8331 (linux_supports_stopped_by_sw_breakpoint)
8332 (linux_stopped_by_hw_breakpoint)
8333 (linux_supports_stopped_by_hw_breakpoint): New functions.
8334 (linux_target_ops): Install new target methods.
3e572f71 8335
1ec68e26
PA
83362015-03-04 Pedro Alves <palves@redhat.com>
8337
8338 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8339 * server.c (swbreak_feature, hwbreak_feature): New globals.
8340 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8341 (captured_main): Clear swbreak_feature and hwbreak_feature.
8342 * server.h (swbreak_feature, hwbreak_feature): Declare.
8343 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8344 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8345 supports_stopped_by_hw_breakpoint>: New fields.
8346 (target_supports_stopped_by_sw_breakpoint)
8347 (target_stopped_by_sw_breakpoint)
8348 (target_supports_stopped_by_hw_breakpoint)
8349 (target_stopped_by_hw_breakpoint): Declare.
8350
15c66dd6
PA
83512015-03-04 Pedro Alves <palves@redhat.com>
8352
8353 enum lwp_stop_reason -> enum target_stop_reason
8354 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8355 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8356 (linux_wait_1, stuck_in_jump_pad_callback)
8357 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8358 (linux_stopped_by_watchpoint):
8359 * linux-low.h (enum lwp_stop_reason): Delete.
8360 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8361 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8362
98fc70d6
YQ
83632015-03-04 Yao Qi <yao.qi@linaro.org>
8364
8365 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8366
dd2ac174
GB
83672015-03-03 Gary Benson <gbenson@redhat.com>
8368
8369 * hostio.c (handle_vFile): Fix prefix lengths.
8370
d68e53f4
MM
83712015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8372
8373 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8374 ptr_bits.
8375
bf2d68ab
AA
83762015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8377
8378 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8379 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8380 (clean): Add "rm -f" for above C files.
8381 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8382 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8383 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8384 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8385 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8386 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8387 (init_registers_s390x_vx_linux64)
8388 (init_registers_s390x_tevx_linux64)
8389 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8390 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8391 declarations.
8392 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8393 (s390_store_vxrs_high): New functions.
8394 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8395 NT_S390_VXRS_HIGH.
8396 (s390_arch_setup): Add logic for selecting one of the new target
8397 descriptions. Activate the new vector regsets if applicable.
8398 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8399 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8400 and init_registers_s390x_tevx_linux64.
8401
c966a859
PA
84022015-03-01 Pedro Alves <palves@redhat.com>
8403
8404 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8405 parameter.
8406
4180215b
PA
84072015-02-27 Pedro Alves <palves@redhat.com>
8408
8409 * linux-x86-low.c (u_debugreg_offset): New function.
8410 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8411
749bab01
PA
84122015-02-27 Pedro Alves <palves@redhat.com>
8413
8414 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8415 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8416 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8417 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8418 (ps_lsetfpregs, ps_getpid)
8419 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8420 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8421 (ps_lsetxregs, ps_plog): Declare.
8422
3c14e5a3
PA
84232015-02-27 Pedro Alves <palves@redhat.com>
8424
8425 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8426 IP_AGENT_EXPORT_FUNC.
8427 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8428 IP_AGENT_EXPORT_FUNC.
8429 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8430 (IP_AGENT_EXPORT): Delete.
8431 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8432 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8433 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8434 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8435 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8436 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8437 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8438 (traceframe_read_count, traceframe_write_count)
8439 (traceframes_created, trace_state_variables, get_raw_reg)
8440 (get_trace_state_variable_value, set_trace_state_variable_value)
8441 (ust_loaded, helper_thread_id, cmd_buf): Use
8442 IPA_SYM_EXPORTED_NAME.
8443 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8444 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8445 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8446 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8447 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8448 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8449 EXTERN_C_PUSH/EXTERN_C_POP.
8450 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8451 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8452 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8453 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8454 (traceframe_write_count, traceframe_read_count)
8455 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8456 (about_to_request_buffer_space, get_trace_state_variable_value)
8457 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8458 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8459 EXTERN_C_PUSH/EXTERN_C_POP.
8460 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8461 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8462 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8463 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8464 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8465 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8466 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8467 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8468 Define.
8469 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8470 (IP_AGENT_EXPORT_VAR_DECL): Define.
8471 (tracing): Declare.
8472 (gdb_agent_get_raw_reg): Declare.
8473
fe978cb0
PA
84742015-02-27 Tom Tromey <tromey@redhat.com>
8475 Pedro Alves <palves@redhat.com>
8476
8477 Rename symbols whose names are reserved C++ keywords throughout.
8478
3bc3d82a
PA
84792015-02-27 Pedro Alves <palves@redhat.com>
8480
8481 * Makefile.in (COMPILER): New, get it from autoconf.
8482 (CXX): Get from autoconf instead.
8483 (COMPILE.pre): Use COMPILER.
8484 (CC-LD): Rename to ...
8485 (CC_LD): ... this. Use COMPILER.
8486 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8487 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8488 * acinclude.m4: Include build-with-cxx.m4.
8489 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8490 Disable -Werror by default if building in C++ mode.
8491 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8492 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8493 the C++ compiler. Save/restore CXXFLAGS too.
8494 * configure: Regenerate.
8495
07697489
PA
84962015-02-27 Pedro Alves <palves@redhat.com>
8497
8498 * acinclude.m4: Include libiberty.m4.
8499 * configure.ac: Call libiberty_INIT.
8500 * config.in, configure: Regenerate.
8501
9beb7c4e
PA
85022015-02-26 Pedro Alves <palves@redhat.com>
8503
8504 * linux-low.c (linux_wait_1): When incrementing the PC past a
8505 program breakpoint always use the_low_target.breakpoint_len as
8506 increment, rather than the maximum between that and
8507 the_low_target.decr_pc_after_break.
8508
8090aef2
PA
85092015-02-23 Pedro Alves <palves@redhat.com>
8510
8511 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8512 thread was doing a step-over; always adjust the PC if
8513 we stepped over a permanent breakpoint.
8514 (linux_wait_1): If we stepped over breakpoint that was on top of a
8515 permanent breakpoint, manually advance the PC past it.
8516
bc9540e8
PA
85172015-02-23 Pedro Alves <palves@redhat.com>
8518
8519 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8520 modes.
8521 (x86_fill_gregset, x86_store_gregset): Use it when handling
8522 $orig_eax.
8523
2db9a427
PA
85242015-02-20 Pedro Alves <palves@redhat.com>
8525
8526 * thread-db.c: Include "nat/linux-procfs.h".
8527 (thread_db_init): Skip listing new threads if the kernel supports
8528 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8529
afa8d396
PA
85302015-02-20 Pedro Alves <palves@redhat.com>
8531
8532 * linux-low.c (status_pending_p_callback): Use ptid_match.
8533
c9587f88
AT
85342015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8535
8536 PR breakpoints/16812
8537 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8538 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8539 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8540
b05ec7a5
AT
85412015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8542
8543 PR breakpoints/15956
8544 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8545
d33501a5
MM
85462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8547
8548 * linux-low.c (linux_low_btrace_conf): Print size.
8549 * server.c (handle_btrace_conf_general_set): New.
8550 (hanle_general_set): Call handle_btrace_conf_general_set.
8551 (handle_query): Report Qbtrace-conf:bts:size as supported.
8552
f4abbc16
MM
85532015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8554
8555 * linux-low.c (linux_low_enable_btrace): Update parameters.
8556 (linux_low_btrace_conf): New.
8557 (linux_target_ops)<to_btrace_conf>: Initialize.
8558 * server.c (current_btrace_conf): New.
8559 (handle_btrace_enable): Rename to ...
8560 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8561 to target_enable_btrace. Update comment. Update users.
8562 (handle_qxfer_btrace_conf): New.
8563 (qxfer_packets): Add btrace-conf entry.
8564 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8565 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8566 (target_ops)<read_btrace_conf>: New.
8567 (target_enable_btrace): Update parameters.
8568 (target_read_btrace_conf): New.
8569
043c3577
MM
85702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8571
8572 * server.c (handle_btrace_general_set): Remove call to
8573 target_supports_btrace.
8574 (supported_btrace_packets): New.
8575 (handle_query): Call supported_btrace_packets.
8576 * target.h: include btrace-common.h.
8577 (btrace_target_info): Removed.
8578 (supports_btrace, target_supports_btrace): Update parameters.
8579
734b0e4b
MM
85802015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8581
8582 * Makefile.in (SFILES): Add common/btrace-common.c.
8583 (OBS): Add common/btrace-common.o.
8584 (btrace-common.o): Add build rules.
8585 * linux-low: Include btrace-common.h.
8586 (linux_low_read_btrace): Use struct btrace_data. Call
8587 btrace_data_init and btrace_data_fini.
8588
d6c146e9
PA
85892015-02-06 Pedro Alves <palves@redhat.com>
8590
8591 * thread-db.c (find_new_threads_callback): Add debug output.
8592
20ba1ce6
PA
85932015-02-04 Pedro Alves <palves@redhat.com>
8594
8595 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8596 (resume_stopped_resumed_lwps): New function.
8597 (linux_wait_for_event_filtered): Use it.
8598
8cc73a39
SDJ
85992015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8600
8601 * Makefile.in (SFILES): Add linux-personality.c.
8602 (linux-personality.o): New rule.
8603 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8604 list of objects to be built.
8605 * linux-low.c: Include nat/linux-personality.h.
8606 (linux_create_inferior): Remove code to disable address space
8607 randomization (moved to ../nat/linux-personality.c). Create
8608 cleanup to disable address space randomization.
8609
fb23d554
SDJ
86102015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8611
8612 * Makefile.in (posix-strerror.o): New rule.
8613 (mingw-strerror.o): Likewise.
8614 * configure: Regenerated.
8615 * configure.ac: Source file ../common/common.host. Initialize new
8616 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8617
cdf43629
YQ
86182015-01-14 Yao Qi <yao@codesourcery.com>
8619
8620 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8621 (ppc-linux.o): New rule.
8622 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8623 * configure.ac: AC_CHECK_FUNCS(getauxval).
8624 * config.in: Re-generated.
8625 * configure: Re-generated.
8626 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8627 ppc64_64bit_inferior_p
8628
514c5338
YQ
86292015-01-14 Yao Qi <yao@codesourcery.com>
8630
8631 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8632 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8633 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8634 (PT_ORIG_R3, PT_TRAP): Likewise.
8635 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8636 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8637 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8638
3368c1e5
JB
86392015-01-10 Joel Brobecker <brobecker@adacore.com>
8640
8641 * i387-fp.c (i387_cache_to_xsave): In look over
8642 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8643 zmmh_low_space field by use of zmmh_high_space.
8644
582511be
PA
86452015-01-09 Pedro Alves <palves@redhat.com>
8646
8647 * linux-low.c (step_over_bkpt): Move higher up in the file.
8648 (handle_extended_wait): Don't store the stop_pc here.
8649 (get_stop_pc): Adjust comments and rename to ...
8650 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8651 stopped for a software breakpoint or hardware breakpoint.
8652 (thread_still_has_status_pending_p): New function.
8653 (status_pending_p_callback): Use
8654 thread_still_has_status_pending_p. If the event is no longer
8655 interesting, resume the LWP.
8656 (handle_tracepoints): Add assert.
8657 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8658 (wstatus_maybe_breakpoint): New function.
8659 (cancel_breakpoint): Delete function.
8660 (check_stopped_by_watchpoint): New function, factored out from
8661 linux_low_filter_event.
8662 (lp_status_maybe_breakpoint): Delete function.
8663 (linux_low_filter_event): Remove filter_ptid argument.
8664 Leave thread group exits pending here. Store the LWP's stop PC.
8665 Always leave events pending.
8666 (linux_wait_for_event_filtered): Pull all events out of the
8667 kernel, and leave them all pending.
8668 (count_events_callback, select_event_lwp_callback): Consider all
8669 events.
8670 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8671 (select_event_lwp): Only give preference to the stepping LWP in
8672 all-stop mode. Adjust comments.
8673 (ignore_event): New function.
8674 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8675 references to cancel_breakpoints. Adjust to renames. Also give
8676 equal priority to all LWPs that have had events in non-stop mode.
8677 If reporting a software breakpoint event, unadjust the LWP's PC.
8678 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8679 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8680 Adjust.
8681 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8682 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8683 (linux_stopped_by_watchpoint): Adjust.
8684 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8685 * linux-low.h (enum lwp_stop_reason): New.
8686 (struct lwp_info) <stop_pc>: Adjust comment.
8687 <stopped_by_watchpoint>: Delete field.
8688 <stop_reason>: New field.
8689 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8690 * mem-break.c (software_breakpoint_inserted_here)
8691 (hardware_breakpoint_inserted_here): New function.
8692 * mem-break.h (software_breakpoint_inserted_here)
8693 (hardware_breakpoint_inserted_here): Declare.
8694 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
8695 (cancel_breakpoints): Delete.
8696 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
8697 (upload_fast_traceframes): Remove references to
8698 cancel_breakpoints.
8699
a33e3959
PA
87002015-01-09 Pedro Alves <palves@redhat.com>
8701
8702 * thread-db.c (find_new_threads_callback): Ignore thread if the
8703 kernel thread ID is -1.
8704
8784d563
PA
87052015-01-09 Pedro Alves <palves@redhat.com>
8706
8707 * linux-low.c (linux_attach_fail_reason_string): Move to
8708 nat/linux-ptrace.c, and rename.
8709 (linux_attach_lwp): Update comment.
8710 (attach_proc_task_lwp_callback): New function.
8711 (linux_attach): Adjust to rename and use
8712 linux_proc_attach_tgid_threads.
8713 (linux_attach_fail_reason_string): Delete declaration.
8714
76f2b779
JB
87152015-01-01 Joel Brobecker <brobecker@adacore.com>
8716
8717 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
8718 * server.c (gdbserver_version): Likewise.
8719
fafcc06a
SDJ
87202014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
8721
8722 * remote-utils.c: Include ctype.h.
8723 (input_interrupt): Explicitly handle the case when the char
8724 received is the NUL byte. Improve the printing of non-ASCII
8725 characters.
8726
beed38b8
JB
87272014-12-16 Joel Brobecker <brobecker@adacore.com>
8728
8729 * linux-low.c (linux_low_filter_event): Update call to
8730 linux_enable_event_reporting following the addition of
8731 a new parameter to that function.
8732
bf330350
CU
87332014-12-16 Catalin Udma <catalin.udma@freescale.com>
8734
8735 PR server/17457
8736 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8737 (AARCH64_FPCR_REGNO): Likewise.
8738 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8739 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8740 (aarch64_store_fpregset): Likewise.
8741
5227d625
JB
87422014-12-15 Joel Brobecker <brobecker@adacore.com>
8743
8744 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8745 Remove FIXME comment about assumption about N.
8746
f93b65a0
JB
87472014-12-13 Joel Brobecker <brobecker@adacore.com>
8748
8749 * configure.ac: If large-file support is disabled in GDBserver,
8750 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8751 * configure: Regenerate.
8752
e5a9158d
AA
87532014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8754
8755 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8756 warning upon ENODATA from ptrace.
8757 * linux-s390-low.c (s390_store_tdb): New.
8758 (s390_regsets): Add regset for NT_S390_TDB.
8759
feea5f36
AA
87602014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8761
8762 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8763 without a fill_function.
8764 * linux-s390-low.c (s390_fill_last_break): Remove.
8765 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8766 (s390_arch_setup): Use regset's size instead of fill_function for
8767 loop end condition.
8768
098dbe61
AA
87692014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8770
8771 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8772 the regset's store function when ptrace returned an error.
8773 * regcache.c (get_thread_regcache): Invalidate register cache
8774 before fetching inferior's registers.
8775
28eef672
AA
87762014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8777
8778 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8779 while-loop as for-loop.
8780 (regsets_store_inferior_registers): Likewise.
8781
bdca27a2
YQ
87822014-11-28 Yao Qi <yao@codesourcery.com>
8783
8784 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8785 * config.in, configure: Re-generate.
8786 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8787 is defined.
8788
9c232dda
YQ
87892014-11-21 Yao Qi <yao@codesourcery.com>
8790
8791 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8792 (AC_CHECK_HEADERS): Remove malloc.h.
8793 * configure: Re-generated.
8794 * config.in: Re-generated.
8795 * server.h: Don't include alloca.h and malloc.h.
8796 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8797 Don't include malloc.h.
8798
43968415
JB
87992014-11-17 Joel Brobecker <brobecker@adacore.com>
8800
8801 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8802 corresponding ERRNO check in same block.
8803
40e91bc7
PA
88042014-11-12 Pedro Alves <palves@redhat.com>
8805
8806 * server.c (cont_thread): Update comment.
8807 (start_inferior, attach_inferior): No longer clear cont_thread.
8808 (handle_v_cont): No longer set cont_thread.
8809 (captured_main): Clear cont_thread each time a GDB connects.
8810
c2c118cf
PA
88112014-11-12 Pedro Alves <palves@redhat.com>
8812
8813 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8814 thread, and don't resume all threads if the Hc thread has exited.
8815
78708b7c
PA
88162014-11-12 Pedro Alves <palves@redhat.com>
8817
8818 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8819 the process group instead of to a specific LWP.
8820
a2abc7de
PA
88212014-10-15 Pedro Alves <palves@redhat.com>
8822
8823 PR server/17487
8824 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8825 parameter.
8826 (arm_set_thread_context): Delete.
8827 (the_low_target): Adjust.
8828 * win32-i386-low.c (debug_registers_changed)
8829 (debug_registers_used): Delete.
8830 (update_debug_registers_callback): New function.
8831 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8832 needing to update their debug registers.
8833 (win32_get_current_dr): New function.
8834 (x86_dr_low_get_addr, x86_dr_low_get_control)
8835 (x86_dr_low_get_status): Fetch the debug register from the thread
8836 record's context.
8837 (i386_initial_stuff): Adjust.
8838 (i386_get_thread_context): Remove current_event parameter. Don't
8839 clear debug_registers_changed nor copy DR values to
8840 debug_reg_state.
8841 (i386_set_thread_context): Delete.
8842 (i386_prepare_to_resume): New function.
8843 (i386_thread_added): Mark the thread as needing to update irs
8844 debug registers.
8845 (the_low_target): Remove i386_set_thread_context and install
8846 i386_prepare_to_resume.
8847 * win32-low.c (win32_get_thread_context): Adjust.
8848 (win32_set_thread_context): Use SetThreadContext
8849 directly.
8850 (win32_prepare_to_resume): New function.
8851 (win32_require_context): New function, factored out from ...
8852 (thread_rec): ... this.
8853 (continue_one_thread): Call win32_prepare_to_resume on each thread
8854 we're about to continue.
8855 (win32_resume): Call win32_prepare_to_resume on the event thread.
8856 * win32-low.h (struct win32_thread_info)
8857 <debug_registers_changed>: New field.
8858 (struct win32_target_ops): Change prototype of set_thread_context,
8859 delete set_thread_context and add prepare_to_resume.
8860 (win32_require_context): New declaration.
8861
a442d071
GB
88622014-10-08 Gary Benson <gbenson@redhat.com>
8863
8864 * server.h: Do not include common-exceptions.h.
8865
6f1947e8
GB
88662014-10-08 Gary Benson <gbenson@redhat.com>
8867
8868 * server.h: Do not include cleanups.h.
8869
63b434a4
JH
88702014-09-30 James Hogan <james.hogan@imgtec.com>
8871
8872 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8873 mips64-dsp-linux.c.
8874
c4d9ceb6
YQ
88752014-09-23 Yao Qi <yao@codesourcery.com>
8876
8877 * linux-low.c (lp_status_maybe_breakpoint): New function.
8878 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8879 (count_events_callback): Likewise.
8880 (select_event_lwp_callback): Likewise.
8881 (cancel_breakpoints_callback): Likewise.
8882
89a5711c
DB
88832014-09-19 Don Breazeal <donb@codesourcery.com>
8884
8885 * linux-low.c (handle_extended_wait): Call
8886 linux_ptrace_get_extended_event.
8887 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8888 linux_is_extended_waitstatus.
8889
bffc0964
JB
88902014-09-16 Joel Brobecker <brobecker@adacore.com>
8891
8892 * Makefile.in (CPPFLAGS): Define.
8893 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8894 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8895
0bfdf32f
GB
88962014-09-16 Gary Benson <gbenson@redhat.com>
8897
8898 * inferiors.h (current_inferior): Renamed as...
8899 (current_thread): New variable. All uses updated.
8900 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8901 (maybe_move_out_of_jump_pad): Likewise.
8902 (cancel_breakpoint): Likewise.
8903 (linux_low_filter_event): Likewise.
8904 (wait_for_sigstop): Likewise.
8905 (linux_resume_one_lwp): Likewise.
8906 (need_step_over_p): Likewise.
8907 (start_step_over): Likewise.
8908 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8909 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8910 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8911 and save_inferior as saved_thread.
8912 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8913 saved_thread.
8914 (regcache_invalidate_thread): Likewise.
8915 * remote-utils.c (prepare_resume_reply): Likewise.
8916 * thread-db.c (thread_db_get_tls_address): Likewise.
8917 (disable_thread_event_reporting): Likewise.
8918 (remove_thread_event_breakpoints): Likewise.
8919 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8920 as saved_thread.
8921 * target.h (set_desired_inferior): Renamed as...
8922 (set_desired_thread): New declaration. All uses updated.
8923 * server.c (myresume): Updated comment to reference thread instead
8924 of inferior.
8925 (handle_serial_event): Likewise.
8926 (handle_target_event): Likewise.
8927
361c8ade
GB
89282014-09-12 Tom Tromey <tromey@redhat.com>
8929 Gary Benson <gbenson@redhat.com>
8930
8931 * regcache.h: Include common-regcache.h.
8932 (regcache_read_pc): Don't declare.
8933 * regcache.c (get_thread_regcache_for_ptid): New function.
8934
bd9269f7
GB
89352014-09-11 Tom Tromey <tromey@redhat.com>
8936 Gary Benson <gbenson@redhat.com>
8937
8938 * symbol.c: New file.
8939 * Makefile.in (SFILES): Add symbol.c.
8940 (OBS): Add symbol.o.
8941
f8c1d06b
GB
89422014-09-11 Gary Benson <gbenson@redhat.com>
8943
8944 * target.c (target_stop_ptid, target_continue_ptid): New
8945 functions.
8946
721ec300
GB
89472014-09-11 Tom Tromey <tromey@redhat.com>
8948 Gary Benson <gbenson@redhat.com>
8949
8950 * target.h: Include target/target.h.
8951 * target.c (target_read_memory, target_read_uint32)
8952 (target_write_memory): New functions.
8953
c5e92cca
GB
89542014-09-11 Gary Benson <gbenson@redhat.com>
8955
8956 * server.h (debug_hw_points): Don't declare.
8957 * server.c (debug_hw_points): Don't define. Replace all uses
8958 with show_debug_regs.
8959 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8960 all uses with show_debug_regs.
8961
2e4bb98a
EBM
89622014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8963
8964 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8965 endianness into account.
8966 (ppc_supply_ptrace_register): Likewise.
8967
ac740bc7
JH
89682014-09-03 James Hogan <james.hogan@imgtec.com>
8969
8970 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8971 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8972
97ea6506
GB
89732014-09-03 Gary Benson <gbenson@redhat.com>
8974
8975 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8976 ALL_DEBUG_ADDRESS_REGISTERS.
8977
df7e5265
GB
89782014-09-02 Gary Benson <gbenson@redhat.com>
8979
8980 * i386-low.h: Renamed as...
8981 * x86-low.h: New file. All type, function and variable name
8982 prefixes changed from "i386_" to "x86_". All references updated.
8983 * i386-low.c: Renamed as...
8984 * x86-low.c: New file. All type, function and variable name
8985 prefixes changed from "i386_" to "x86_". All references updated.
8986
ed859da7
GB
89872014-09-02 Gary Benson <gbenson@redhat.com>
8988
8989 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8990 (x86_linux_new_thread): Likewise.
8991
860789c7
GB
89922014-08-29 Gary Benson <gbenson@redhat.com>
8993
8994 * server.h (setjmp.h): Do not include.
8995 (toplevel): Do not declare.
8996 (common-exceptions.h): Include.
8997 (cleanups.h): Likewise.
8998 * server.c (toplevel): Do not define.
8999 (exit_code): New static global.
9000 (detach_or_kill_for_exit_cleanup): New function.
9001 (main): New function. Original main renamed to...
9002 (captured_main): New function.
9003 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9004
ff55e1b5
GB
90052014-08-29 Gary Benson <gbenson@redhat.com>
9006
9007 * Makefile.in (SFILES): Add common/common-exceptions.c.
9008 (OBS): Add common-exceptions.o.
9009 (common-exceptions.o): New rule.
9010 * utils.c (prepare_to_throw_exception): New function.
9011
e9bcb658
GB
90122014-08-29 Gary Benson <gbenson@redhat.com>
9013
9014 * config.in: Regenerate.
9015 * configure: Likewise.
9016
e3180625
GB
90172014-08-29 Gary Benson <gbenson@redhat.com>
9018
9019 * Makefile.in (SFILES): Add common/cleanups.c.
9020 (OBS): cleanups.o.
9021 (cleanups.o): New rule.
9022
e3d6ba5d
GB
90232014-08-29 Gary Benson <gbenson@redhat.com>
9024
9025 * utils.c (internal_vwarning): New function.
9026
7096e886
GB
90272014-08-28 Gary Benson <gbenson@redhat.com>
9028
9029 * utils.h (fatal): Remove declaration.
9030 * utils.c (fatal): Remove function.
9031
14ce3192
GB
90322014-08-28 Gary Benson <gbenson@redhat.com>
9033
9034 * tracepoint.c (gdb_agent_init): Replace fatal with
9035 perror_with_name.
9036 (initialize_tracepoint): Likewise.
9037
50278d59
GB
90382014-08-28 Gary Benson <gbenson@redhat.com>
9039
9040 * remote-utils.c (remote_prepare): Replace fatal with error.
9041
aa96c426
GB
90422014-08-28 Gary Benson <gbenson@redhat.com>
9043
9044 * linux-low.c (linux_async): Replace fatal with warning.
9045 Tidy up and return.
9046 (linux_start_non_stop): Return -1 if linux_async failed.
9047
f7160e97
GB
90482014-08-28 Gary Benson <gbenson@redhat.com>
9049
9050 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9051 gdb_assert.
9052 (i386_dr_low_get_addr): Remove vague comment.
9053 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9054 gdb_assert.
9055
38e08fca
GB
90562014-08-28 Gary Benson <gbenson@redhat.com>
9057
9058 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9059 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9060 internal_error.
9061 (linux_resume_one_lwp): Likewise.
9062 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9063 gdb_assert.
9064 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9065 with internal_error.
9066 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9067 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9068 (find_register_by_name): Replace fatal with internal_error.
9069 (find_regno): Likewise.
9070 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9071 * thread-db.c (thread_db_create_event): Likewise.
9072 (thread_db_load_search): Likewise.
9073 (try_thread_db_load_1): Likewise.
9074 * tracepoint.c (get_jump_space_head): Replace fatal with
9075 internal_error.
9076 (claim_trampoline_space): Likewise.
9077 (have_fast_tracepoint_trampoline_buffer): Likewise.
9078 (cmd_qtstart): Likewise.
9079 (stop_tracing): Likewise.
9080 (fast_tracepoint_collecting): Likewise.
9081 (target_malloc): Likewise.
9082 (download_tracepoint): Likewise.
9083 (download_trace_state_variables): Replace check with gdb_assert.
9084 (upload_fast_traceframes): Replace fatal with internal_error.
9085
34abf635
GB
90862014-08-19 Tom Tromey <tromey@redhat.com>
9087 Gary Benson <gbenson@redhat.com>
9088
9089 * Makefile.in (SFILES): Add common/common-debug.c.
9090 (OBS): Add common-debug.o.
9091 (common-debug.o): New rule.
9092 * debug.h (debug_printf): Don't declare.
9093 * debug.c (debug_printf): Renamed and rewritten as...
9094 (debug_vprintf): New function.
9095
f6e94d78
GB
90962014-08-19 Gary Benson <gbenson@redhat.com>
9097
9098 * utils.h: Do not include print-utils.h.
9099
9239eeab
GB
91002014-08-19 Tom Tromey <tromey@redhat.com>
9101 Gary Benson <gbenson@redhat.com>
9102
9103 * server.h: Add static assertion.
9104 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9105
ef87c8bb
GB
91062014-08-19 Tom Tromey <tromey@redhat.com>
9107 Gary Benson <gbenson@redhat.com>
9108
9109 * Makefile.in (SFILES): Add common/errors.c.
9110 (OBS): Add errors.o.
9111 (IPA_OBS): Add errors-ipa.o.
9112 (errors.o): New rule.
9113 (errors-ipa.o): Likewise.
9114 * utils.h (perror_with_name, error, warning): Don't declare.
9115 * utils.c (warning): Renamed and rewritten as...
9116 (vwarning): New function.
9117 (error): Renamed and rewritten as...
9118 (verror): New function.
9119 (internal_error): Renamed and rewritten as...
9120 (internal_verror): New function.
9121
bb974a24
GB
91222014-08-07 Gary Benson <gbenson@redhat.com>
9123
9124 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9125 * configure: Regenerate.
9126 * config.in: Likewise.
9127 * server.h: Do not include errno.h.
9128 * event-loop.c: Likewise.
9129 * hostio-errno.c: Likewise.
9130 * linux-low.c: Likewise.
9131 * remote-utils.c: Likewise.
9132 * spu-low.c: Likewise.
9133 * utils.c: Likewise.
9134 * gdbreplay.c: Unconditionally include errno.h.
9135
6d3d12eb
GB
91362014-08-07 Gary Benson <gbenson@redhat.com>
9137
9138 * server.h: Do not include string.h.
9139 * event-loop.c: Likewise.
9140 * linux-low.c: Likewise.
9141 * regcache.c: Likewise.
9142 * remote-utils.c: Likewise.
9143 * spu-low.c: Likewise.
9144 * utils.c: Likewise.
9145
dccbb609
GB
91462014-08-07 Gary Benson <gbenson@redhat.com>
9147
9148 * server.h: Do not include gdb_assert.h.
9149
e76df0d0
GB
91502014-08-07 Gary Benson <gbenson@redhat.com>
9151
9152 * server.h: Do not include common-utils.h.
9153
4cb9c816
GB
91542014-08-07 Gary Benson <gbenson@redhat.com>
9155
9156 * server.h: Do not include ptid.h.
9157 * notif.h: Likewise.
9158
3995eeee
GB
91592014-08-07 Gary Benson <gbenson@redhat.com>
9160
9161 * server.h: Do not include gdb_locale.h.
9162
cb9f1a9b
GB
91632014-08-07 Gary Benson <gbenson@redhat.com>
9164
9165 * server.h: Do not include gdb/signals.h.
9166 * win32-low.c: Likewise.
9167
a5fceff8
GB
91682014-08-07 Gary Benson <gbenson@redhat.com>
9169
9170 * server.h: Do not include pathmax.h.
9171
b9391142
GB
91722014-08-07 Gary Benson <gbenson@redhat.com>
9173
9174 * server.h: Do not include libiberty.h.
9175 * linux-bfin-low.c: Likewise.
9176
0e443c87
GB
91772014-08-07 Gary Benson <gbenson@redhat.com>
9178
9179 * server.h: Do not include ansidecl.h.
9180
8ebb3f56
GB
91812014-08-07 Gary Benson <gbenson@redhat.com>
9182
9183 * linux-x86-low.c: Do not include stddef.h.
9184 * lynx-ppc-low.c: Likewise.
9185 * tracepoint.c: Likewise.
9186
8980bdf6
GB
91872014-08-07 Gary Benson <gbenson@redhat.com>
9188
9189 * server.h: Do not include stdarg.h.
9190 * nto-low.c: Likewise.
9191
d7096f71
GB
91922014-08-07 Gary Benson <gbenson@redhat.com>
9193
9194 * server.h: Do not include stdlib.h.
9195 * inferiors.c: Likewise.
9196 * linux-low.c: Likewise.
9197 * regcache.c: Likewise.
9198 * spu-low.c: Likewise.
9199 * tracepoint.c: Likewise.
9200 * utils.c: Likewise.
9201
d02f550d
GB
92022014-08-07 Gary Benson <gbenson@redhat.com>
9203
9204 * server.h: Do not include stdio.h.
9205 * linux-low.c: Likewise.
9206 * remote-utils.c: Likewise.
9207 * spu-low.c: Likewise.
9208 * utils.c: Likewise.
9209 * wincecompat.c: Likewise.
9210
87f6c4e3
GB
92112014-08-06 Gary Benson <gbenson@redhat.com>
9212
9213 * regcache.c (init_register_cache): Move conditionals inside if.
9214
7089dca4
GB
92152014-08-06 Gary Benson <gbenson@redhat.com>
9216
9217 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9218
462f517e
GB
92192014-07-31 Gary Benson <gbenson@redhat.com>
9220
9221 * ax.h: Do not include server.h.
9222 * gdbthread.h: Likewise.
9223 * lynx-low.h: Likewise.
9224 * notif.h: Likewise.
9225
976411d6
GB
92262014-07-30 Gary Benson <gbenson@redhat.com>
9227
9228 * server.h: Include common-defs.h.
9229 Do not include config.h or build-gnulib-gdbserver/config.h.
9230
d41f6d8e
GB
92312014-07-30 Gary Benson <gbenson@redhat.com>
9232
9233 * hostio-errno.c: Move server.h to top of includes list.
9234 * inferiors.c: Likewise.
9235 * linux-x86-low.c: Likewise.
9236 * notif.c: Include server.h.
9237
314c6a35
TT
92382014-07-24 Tom Tromey <tromey@redhat.com>
9239 Gary Benson <gbenson@redhat.com>
9240
9241 * server.h (CORE_ADDR): Now unsigned.
9242
69ff6be5
PA
92432014-07-16 Pedro Alves <palves@redhat.com>
9244
9245 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9246
ce9e3fe7
PA
92472014-07-15 Pedro Alves <palves@redhat.com>
9248
9249 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9250 copy.
9251
e76126e8
PA
92522014-07-11 Pedro Alves <palves@redhat.com>
9253
9254 * linux-low.c (kill_wait_lwp): New function, based on
9255 kill_one_lwp_callback, but use my_waitpid directly.
9256 (kill_one_lwp_callback, linux_kill): Use it.
9257
8e9db26e
PA
92582014-06-23 Pedro Alves <palves@redhat.com>
9259
9260 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9261 before setting DR0..DR3.
9262
698b3e08
GB
92632014-06-20 Gary Benson <gbenson@redhat.com>
9264
9265 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9266 * configure: Regenerated.
9267 * config.in: Likewise.
9268
125f8a3d
GB
92692014-06-20 Gary Benson <gbenson@redhat.com>
9270
9271 * Makefile.in (SFILES): Update locations for files moved
9272 from common to nat.
9273 (object file files): Reordered.
9274
42995dbd
GB
92752014-06-20 Gary Benson <gbenson@redhat.com>
9276
9277 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9278 (i386_dr_low_set_addr): Likewise.
9279 (i386_dr_low_get_addr): Likewise.
9280 (i386_dr_low_can_set_control): Likewise.
9281 (i386_dr_low_set_control): Likewise.
9282 (i386_dr_low_get_control): Likewise.
9283 (i386_dr_low_get_status): Likewise.
9284 (i386_get_debug_register_length): Likewise.
9285 * linux-x86-low.c (i386_dr_low_set_addr):
9286 Changed signature. Made static.
9287 (i386_dr_low_get_addr): Likewise.
9288 (i386_dr_low_set_control): Likewise.
9289 (i386_dr_low_get_control): Likewise.
9290 (i386_dr_low_get_status): Likewise.
9291 (i386_dr_low): New global variable.
9292 * win32-i386-low.c (i386_dr_low_set_addr):
9293 Changed signature. Made static.
9294 (i386_dr_low_get_addr): Likewise.
9295 (i386_dr_low_set_control): Likewise.
9296 (i386_dr_low_get_control): Likewise.
9297 (i386_dr_low_get_status): Likewise.
9298 (i386_dr_low): New global variable.
9299
e1d2394b
MS
93002014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9301
9302 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9303 * Makefile.in (AR, AR_FLAGS): Define.
9304 * configure: Regenerate.
9305
3a8ee006
GB
93062014-06-19 Gary Benson <gbenson@redhat.com>
9307
9308 * Makefile.in (i386-dregs.o): New rule.
9309 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9310 * i386-low.c (target.h): Remove include.
9311 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9312 (DR_CONTROL_SHIFT): Likewise.
9313 (DR_CONTROL_SIZE): Likewise.
9314 (DR_RW_EXECUTE): Likewise.
9315 (DR_RW_WRITE): Likewise.
9316 (DR_RW_READ): Likewise.
9317 (DR_RW_IORW): Likewise.
9318 (DR_LEN_1): Likewise.
9319 (DR_LEN_2): Likewise.
9320 (DR_LEN_4): Likewise.
9321 (DR_LEN_8): Likewise.
9322 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9323 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9324 (DR_ENABLE_SIZE): Likewise.
9325 (DR_LOCAL_SLOWDOWN): Likewise.
9326 (DR_GLOBAL_SLOWDOWN): Likewise.
9327 (DR_CONTROL_RESERVED): Likewise.
9328 (I386_DR_CONTROL_MASK): Likewise.
9329 (I386_DR_VACANT): Likewise.
9330 (I386_DR_LOCAL_ENABLE): Likewise.
9331 (I386_DR_GLOBAL_ENABLE): Likewise.
9332 (I386_DR_DISABLE): Likewise.
9333 (I386_DR_SET_RW_LEN): Likewise.
9334 (I386_DR_GET_RW_LEN): Likewise.
9335 (I386_DR_WATCH_HIT): Likewise.
9336 (i386_wp_op_t): Likewise.
9337 (i386_show_dr): Likewise.
9338 (i386_length_and_rw_bits): Likewise.
9339 (i386_insert_aligned_watchpoint): Likewise.
9340 (i386_remove_aligned_watchpoint): Likewise.
9341 (i386_handle_nonaligned_watchpoint): Likewise.
9342 i386_update_inferior_debug_regs(): Likewise.
9343 (i386_dr_insert_watchpoint): Likewise.
9344 (i386_dr_remove_watchpoint): Likewise.
9345 (i386_dr_region_ok_for_watchpoint): Likewise.
9346 (i386_dr_stopped_data_address): Likewise.
9347 (i386_dr_stopped_by_watchpoint): Likewise.
9348
8f26655c
GB
93492014-06-19 Gary Benson <gbenson@redhat.com>
9350
9351 * i386-low.c (i386_dr_show): Renamed to
9352 i386_show_dr and made static. All uses updated.
9353 (i386_dr_length_and_rw_bits): Renamed to
9354 i386_length_and_rw_bits and made static.
9355 All uses updated.
9356 (i386_dr_insert_aligned_watchpoint): Renamed to
9357 i386_insert_aligned_watchpoint and made static.
9358 All uses updated.
9359 (i386_dr_remove_aligned_watchpoint): Renamed to
9360 i386_remove_aligned_watchpoint and made static.
9361 All uses updated.
9362 (i386_dr_update_inferior_debug_regs): Renamed to
9363 i386_update_inferior_debug_regs and made static.
9364 All uses updated.
9365
b9228891
GB
93662014-06-18 Gary Benson <gbenson@redhat.com>
9367
5171def3
GB
9368 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9369 (i386_dr_low_can_set_control): Likewise.
9370 (i386_get_debug_register_length): Likewise.
9371 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9372 (i386_dr_low_can_set_control): Likewise.
9373 (i386_get_debug_register_length): Likewise.
9374
93752014-06-17 Gary Benson <gbenson@redhat.com>
9376
b9228891
GB
9377 * i386-low.h (i386-dregs.h): New include.
9378 (DR_FIRSTADDR): Now in i386-dregs.h.
9379 (DR_LASTADDR): Likewise.
9380 (DR_NADDR): Likewise.
9381 (DR_STATUS): Likewise.
9382 (DR_CONTROL): Likewise.
9383 (i386_debug_reg_state): Likewise.
9384 (i386_dr_insert_watchpoint): Likewise.
9385 (i386_dr_remove_watchpoint): Likewise.
9386 (i386_dr_region_ok_for_watchpoint): Likewise.
9387 (i386_dr_stopped_data_address): Likewise.
9388 (i386_dr_stopped_by_watchpoint): Likewise.
9389 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9390
4be83cc2
GB
93912014-06-18 Gary Benson <gbenson@redhat.com>
9392
9393 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9394 i386_dr_insert_watchpoint.
9395 (i386_low_remove_watchpoint): Renamed to
9396 i386_dr_remove_watchpoint.
9397 (i386_low_region_ok_for_watchpoint): Renamed to
9398 i386_dr_region_ok_for_watchpoint.
9399 (i386_low_stopped_data_address): Renamed to
9400 i386_dr_stopped_data_address.
9401 (i386_low_stopped_by_watchpoint): Renamed to
9402 i386_dr_stopped_by_watchpoint.
9403 * i386-low.c (i386_show_dr): Renamed to
9404 i386_dr_show and made nonstatic. All uses updated.
9405 (i386_length_and_rw_bits): Renamed to
9406 i386_dr_length_and_rw_bits and made nonstatic.
9407 All uses updated.
9408 (i386_insert_aligned_watchpoint): Renamed to
9409 i386_dr_insert_aligned_watchpoint and made nonstatic.
9410 All uses updated.
9411 (i386_remove_aligned_watchpoint): Renamed to
9412 i386_dr_remove_aligned_watchpoint and made nonstatic.
9413 All uses updated.
9414 (i386_update_inferior_debug_regs): Renamed to
9415 i386_dr_update_inferior_debug_regs and made nonstatic.
9416 All uses updated.
9417 (i386_low_insert_watchpoint): Renamed to
9418 i386_dr_insert_watchpoint. All uses updated.
9419 (i386_low_remove_watchpoint): Renamed to
9420 i386_dr_remove_watchpoint. All uses updated.
9421 (i386_low_region_ok_for_watchpoint): Renamed to
9422 i386_dr_region_ok_for_watchpoint. All uses updated.
9423 (i386_low_stopped_data_address): Renamed to
9424 i386_dr_stopped_data_address. All uses updated.
9425 (i386_low_stopped_by_watchpoint): Renamed to
9426 i386_dr_stopped_by_watchpoint. All uses updated.
9427
131aa0d4
GB
94282014-06-18 Gary Benson <gbenson@redhat.com>
9429
9430 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9431 (i386_dr_low_can_set_control): Likewise.
9432 (i386_insert_aligned_watchpoint): New check.
9433
d9305f7f
GB
94342014-06-18 Gary Benson <gbenson@redhat.com>
9435
9436 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9437 Renamed to state.
9438
e927c9fc
GB
94392014-06-18 Gary Benson <gbenson@redhat.com>
9440
9441 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9442 instead of fatal and error.
9443 (i386_handle_nonaligned_watchpoint): Likewise.
9444
1b6d4134
GB
94452014-06-18 Gary Benson <gbenson@redhat.com>
9446
9447 * i386-low.c (i386_get_debug_register_length): New macro.
9448 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9449 (i386_show_dr): Use debug_printf instead of fprintf. Use
9450 phex to format values.
9451
6e62758f
GB
94522014-06-18 Gary Benson <gbenson@redhat.com>
9453
9454 * i386-low.h: Comment changes.
9455 * i386-low.c: Likewise.
9456
fc6e2f03
GB
94572014-06-18 Gary Benson <gbenson@redhat.com>
9458
9459 * i386-low.c: Whitespace changes.
9460
f9d1eeed
TT
94612014-06-12 Tom Tromey <tromey@redhat.com>
9462
9463 * utils.c (freeargv): Remove.
9464
0b04e523
TT
94652014-06-12 Tom Tromey <tromey@redhat.com>
9466
9467 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9468 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9469 (parse_debug_format_options): Likewise.
9470 (gdbserver_usage): Likewise.
9471 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9472 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9473 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9474 against libiberty.
9475 ($(LIBGNU)): Depend on libiberty.
9476 (all-lib): Recurse into all subdirs.
9477 (install-only): Invoke "install" target in subdirs.
9478 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9479 targets.
9480 * configure: Rebuild.
9481 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9482 for vasprintf, vsnprintf, or gettimeofday.
9483 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9484 srv_tgtobj.
9485
270c9937
JB
94862014-06-05 Joel Brobecker <brobecker@adacore.com>
9487
9488 * development.sh: Delete.
9489 * Makefile.in (config.status): Adjust dependency on development.sh.
9490 * configure.ac: Adjust development.sh source call.
9491 * configure: Regenerate.
9492
0a261ed8
PA
94932014-06-02 Pedro Alves <palves@redhat.com>
9494
9495 * ax.c (gdb_free_agent_expr): New function.
9496 * ax.h (gdb_free_agent_expr): New declaration.
9497 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9498 list.
9499 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9500 static.
9501 (clear_breakpoint_conditions_and_commands): New function.
9502 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9503 (clear_breakpoint_conditions_and_commands): New declaration.
9504
e9dae05e
RR
95052014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9506
9507 * linux-aarch64-low.c (asm/ptrace.h): Include.
9508
5876f503
JK
95092014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9510
9511 Fix TLS access for -static -pthread.
9512 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9513 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9514 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9515
802e8e6d
PA
95162014-05-20 Pedro Alves <palves@redhat.com>
9517
9518 * linux-aarch64-low.c (aarch64_insert_point)
9519 (aarch64_remove_point): No longer check whether the type is
9520 supported here. Adjust to new interface.
9521 (the_low_target): Install aarch64_supports_z_point_type as
9522 supports_z_point_type method.
9523 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9524 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9525 instead of a Z packet char. Adjust.
9526 (arm_supports_z_point_type): New function.
9527 (arm_insert_point, arm_remove_point): Adjust to new interface.
9528 (the_low_target): Install arm_supports_z_point_type.
9529 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9530 (cris_insert_point, cris_remove_point): Adjust to new interface.
9531 Don't check whether the type is supported here.
9532 (the_low_target): Install cris_supports_z_point_type.
9533 * linux-low.c (linux_supports_z_point_type): New function.
9534 (linux_insert_point, linux_remove_point): Adjust to new interface.
9535 * linux-low.h (struct linux_target_ops) <insert_point,
9536 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9537 raw_breakpoint pointer parameter.
9538 <supports_z_point_type>: New method.
9539 * linux-mips-low.c (mips_supports_z_point_type): New function.
9540 (mips_insert_point, mips_remove_point): Adjust to new interface.
9541 Use mips_supports_z_point_type.
9542 (the_low_target): Install mips_supports_z_point_type.
9543 * linux-ppc-low.c (the_low_target): Install NULL as
9544 supports_z_point_type method.
9545 * linux-s390-low.c (the_low_target): Install NULL as
9546 supports_z_point_type method.
9547 * linux-sparc-low.c (the_low_target): Install NULL as
9548 supports_z_point_type method.
9549 * linux-x86-low.c (x86_supports_z_point_type): New function.
9550 (x86_insert_point): Adjust to new insert_point interface. Use
9551 insert_memory_breakpoint. Adjust to new
9552 i386_low_insert_watchpoint interface.
9553 (x86_remove_point): Adjust to remove_point interface. Use
9554 remove_memory_breakpoint. Adjust to new
9555 i386_low_remove_watchpoint interface.
9556 (the_low_target): Install x86_supports_z_point_type.
9557 * lynx-low.c (lynx_target_ops): Install NULL as
9558 supports_z_point_type callback.
9559 * nto-low.c (nto_supports_z_point_type): New.
9560 (nto_insert_point, nto_remove_point): Adjust to new interface.
9561 (nto_target_ops): Install nto_supports_z_point_type.
9562 * mem-break.c: Adjust intro comment.
9563 (struct raw_breakpoint) <raw_type, size>: New fields.
9564 <inserted>: Update comment.
9565 <shlib_disabled>: Delete field.
9566 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9567 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9568 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9569 (raw_bkpt_type_to_target_hw_bp_type): New function.
9570 (find_enabled_raw_code_breakpoint_at): New function.
9571 (find_raw_breakpoint_at): New type and size parameters. Use them.
9572 (insert_memory_breakpoint): New function, based off
9573 set_raw_breakpoint_at.
9574 (remove_memory_breakpoint): New function.
9575 (set_raw_breakpoint_at): Reimplement.
9576 (set_breakpoint): New, based on set_breakpoint_at.
9577 (set_breakpoint_at): Reimplement.
9578 (delete_raw_breakpoint): Go through the_target->remove_point
9579 instead of assuming memory breakpoints.
9580 (find_gdb_breakpoint_at): Delete.
9581 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9582 (find_gdb_breakpoint): New function.
9583 (set_gdb_breakpoint_at): Delete.
9584 (z_type_supported): New function.
9585 (set_gdb_breakpoint_1): New function, loosely based off
9586 set_gdb_breakpoint_at.
9587 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9588 (delete_gdb_breakpoint_at): Delete.
9589 (delete_gdb_breakpoint_1): New function, loosely based off
9590 delete_gdb_breakpoint_at.
9591 (delete_gdb_breakpoint): New function.
9592 (clear_gdb_breakpoint_conditions): Rename to ...
9593 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9594 breakpoint.
9595 (add_condition_to_breakpoint): Make static.
9596 (add_breakpoint_condition): Take a struct breakpoint pointer
9597 instead of an address. Adjust.
9598 (gdb_condition_true_at_breakpoint): Rename to ...
9599 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9600 z_type parameter.
9601 (gdb_condition_true_at_breakpoint): Reimplement.
9602 (add_breakpoint_commands): Take a struct breakpoint pointer
9603 instead of an address. Adjust.
9604 (gdb_no_commands_at_breakpoint): Rename to ...
9605 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9606 parameter. Return true if no breakpoint was found. Change debug
9607 output.
9608 (gdb_no_commands_at_breakpoint): Reimplement.
9609 (run_breakpoint_commands): Rename to ...
9610 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9611 and change return type to boolean.
9612 (run_breakpoint_commands): New function.
9613 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9614 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9615 breakpoint. Go through the_target->remove_point instead of
9616 assuming memory breakpoint.
9617 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9618 software and hardware breakpoints.
9619 (reinsert_raw_breakpoint): Go through the_target->insert_point
9620 instead of assuming memory breakpoint.
9621 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9622 software and hardware breakpoints.
9623 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9624 Check both software and hardware breakpoints.
9625 (validate_inserted_breakpoint): Assert the breakpoint is a
9626 software breakpoint. Set the inserted flag to -1 instead of
9627 setting shlib_disabled.
9628 (delete_disabled_breakpoints): Adjust.
9629 (validate_breakpoints): Only validate software breakpoints.
9630 Adjust to inserted flag change.
9631 (check_mem_read, check_mem_write): Skip breakpoint types other
9632 than software breakpoints. Adjust to inserted flag change.
9633 * mem-break.h (enum raw_bkpt_type): New enum.
9634 (raw_breakpoint, struct process_info): Forward declare.
9635 (Z_packet_to_target_hw_bp_type): Delete declaration.
9636 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9637 (set_gdb_breakpoint, delete_gdb_breakpoint)
9638 (clear_breakpoint_conditions): New declarations.
9639 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9640 (breakpoint_inserted_here): Update comment.
9641 (add_breakpoint_condition, add_breakpoint_commands): Replace
9642 address parameter with a breakpoint pointer parameter.
9643 (gdb_breakpoint_here): Update comment.
9644 (delete_gdb_breakpoint_at): Delete.
9645 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9646 * server.c (process_point_options): Take a struct breakpoint
9647 pointer instead of an address. Adjust.
9648 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9649 delete_gdb_breakpoint.
9650 * spu-low.c (spu_target_ops): Install NULL as
9651 supports_z_point_type method.
9652 * target.h: Include mem-break.h.
9653 (struct target_ops) <prepare_to_access_memory>: Update comment.
9654 <supports_z_point_type>: New field.
9655 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9656 instead of a char. Also take a raw breakpoint pointer.
9657 * win32-arm-low.c (the_low_target): Install NULL as
9658 supports_z_point_type.
9659 * win32-i386-low.c (i386_supports_z_point_type): New function.
9660 (i386_insert_point, i386_remove_point): Adjust to new interface.
9661 (the_low_target): Install i386_supports_z_point_type.
9662 * win32-low.c (win32_supports_z_point_type): New function.
9663 (win32_insert_point, win32_remove_point): Adjust to new interface.
9664 (win32_target_ops): Install win32_supports_z_point_type.
9665 * win32-low.h (struct win32_target_ops):
9666 <supports_z_point_type>: New method.
9667 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9668 instead of a char. Also take a raw breakpoint pointer.
9669
932539e3
PA
96702014-05-20 Pedro Alves <palves@redhat.com>
9671
9672 * mem-break.h: Include break-common.h.
9673 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9674 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9675 (Z_packet_to_target_hw_bp_type): New declaration.
9676 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9677 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9678 (Z_PACKET_ACCESS_WP): Delete macros.
9679 (Z_packet_to_hw_type): Delete function.
9680 * i386-low.h: Don't include break-common.h here.
9681 (Z_packet_to_hw_type): Delete declaration.
9682 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9683 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9684 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9685 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9686 * linux-aarch64-low.c: Don't include break-common.h here.
9687 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9688 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9689 (Z_packet_to_target_hw_bp_type): Delete function.
9690 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
9691 function.
9692 (mips_insert_point, mips_remove_point): Use
9693 Z_packet_to_target_hw_bp_type.
9694
4ff0d3d8
PA
96952014-05-20 Pedro Alves <palves@redhat.com>
9696
9697 * linux-aarch64-low.c: Include break-common.h.
9698 (enum target_point_type): Delete.
9699 (Z_packet_to_point_type): Rename to ...
9700 (Z_packet_to_target_hw_bp_type): ... this, and return a
9701 target_hw_bp_type instead.
9702 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
9703 instead of an enum target_point_type.
9704 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
9705 breakpoint type.
9706 (aarch64_dr_state_insert_one_point)
9707 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
9708 (aarch64_handle_aligned_watchpoint)
9709 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
9710 Take an enum target_hw_bp_type instead of an enum
9711 target_point_type.
9712 (aarch64_supports_z_point_type): New function.
9713 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
9714 use Z_packet_to_target_hw_bp_type.
9715
786dc519
JB
97162014-05-20 Joel Brobecker <brobecker@adacore.com>
9717
9718 * configure.ac: Only use -Werror by default when DEVELOPMENT
9719 is true.
9720 * configure: Regenerate.
9721
9e0aa64f
JK
97222014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9723
9724 Fix gdbserver qGetTLSAddr for x86_64 -m32.
9725 * linux-x86-low.c (X86_64_USER_REGS): New.
9726 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
9727
2b577b92
YQ
97282014-04-28 Yao Qi <yao@codesourcery.com>
9729
9730 * Makefile.in (i386-avx512.c): Fix the typo of generated file
9731 name.
9732
94611da2
PA
97332014-04-25 Pedro Alves <palves@redhat.com>
9734
9735 PR server/16255
9736 * linux-low.c (linux_attach_fail_reason_string): New function.
9737 (linux_attach_lwp): Delete.
9738 (linux_attach_lwp_1): Rename to ...
9739 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9740 argument. Remove "initial" parameter. Return int instead of
9741 void. Don't error or warn here.
9742 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9743 failure to attach to the tgid. Call warning when failing to
9744 attach to an lwp.
9745 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9746 argument. Remove "initial" parameter. Return int instead of
9747 void. Don't error or warn here.
9748 (linux_attach_fail_reason_string): New declaration.
9749 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9750 interface change. Use linux_attach_fail_reason_string.
9751
01f9f808
MS
97522014-04-24 Michael Sturm <michael.sturm@mintel.com>
9753 Walfred Tedeschi <walfred.tedeschi@intel.com>
9754
9755 * Makefile.in: Added rules to handle new files
9756 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9757 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9758 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9759 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9760 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9761 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9762 x32-avx512-linux.o.
9763 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9764 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9765 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9766 i386/x32-avx512.xml.
9767 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9768 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9769 i386/x32-avx512-linux.xml.
9770 * i387-fp.c (num_avx512_k_registers): New constant for number
9771 of K registers.
9772 (num_avx512_zmmh_low_registers): New constant for number of
9773 lower ZMM registers (0-15).
9774 (num_avx512_zmmh_high_registers): New constant for number of
9775 higher ZMM registers (16-31).
9776 (num_avx512_ymmh_registers): New contant for number of higher
9777 YMM registers (ymm16-31 added by avx521 on x86_64).
9778 (num_avx512_xmm_registers): New constant for number of higher
9779 XMM registers (xmm16-31 added by AVX512 on x86_64).
9780 (struct i387_xsave): Add space for AVX512 registers.
9781 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9782 Add code to handle AVX512 registers.
9783 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9784 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9785 prototypei from generated file.
9786 (tdesc_amd64_avx512_linux): Likewise.
9787 (init_registers_x32_avx512_linux): Likewise.
9788 (tdesc_x32_avx512_linux): Likewise.
9789 (init_registers_i386_avx512_linux): Likewise.
9790 (tdesc_i386_avx512_linux): Likewise.
9791 (x86_64_regmap): Add AVX512 registers.
9792 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9793 mask.
9794 (initialize_low_arch): Add code to initialize AVX512 registers.
9795
51aa91f9
PA
97962014-04-23 Pedro Alves <palves@redhat.com>
9797
9798 * mem-break.c (find_gdb_breakpoint_at): Make static.
9799 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9800
a4165e94
PA
98012014-04-23 Pedro Alves <palves@redhat.com>
9802
9803 * i386-low.c: Don't include break-common.h here.
9804 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9805 prototype to take target_hw_bp_type as argument instead of a Z
9806 packet char.
9807 * i386-low.h: Include break-common.h here.
9808 (Z_packet_to_hw_type): Declare.
9809 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9810 prototypes.
9811 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9812 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9813 (x86_remove_point): Convert the packet number to a
9814 target_hw_bp_type before calling i386_low_remove_watchpoint.
9815 * win32-i386-low.c (i386_insert_point): Convert the packet number
9816 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9817 (i386_remove_point): Convert the packet number to a
9818 target_hw_bp_type before calling i386_low_remove_watchpoint.
9819
b8acf843
PA
98202014-04-23 Pedro Alves <palves@redhat.com>
9821
9822 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9823
d708bcd1
PA
98242014-04-10 Pedro Alves <palves@redhat.com>
9825
9826 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9827 Check if the condition or command is NULL before checking if the
9828 breakpoint is known. On success, return true.
9829 * mem-break.h (add_breakpoint_condition): Document return.
9830 (add_breakpoint_commands): Add describing comment.
9831 * server.c (skip_to_semicolon): New function.
9832 (process_point_options): Use it.
9833
2eec7d5b
PA
98342014-04-09 Pedro Alves <palves@redhat.com>
9835
9836 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9837 to lwpid_of.
9838
fa96cb38
PA
98392014-02-27 Pedro Alves <palves@redhat.com>
9840
9841 PR 12702
9842 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9843 macros.
9844 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9845 output.
9846 (last_thread_of_process_p): Take a PID argument instead of a
9847 thread pointer.
9848 (linux_wait_for_lwp): Delete.
9849 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9850 functions.
9851 (linux_low_filter_event): New function, party factored out from
9852 linux_wait_for_event.
9853 (linux_wait_for_event): Rename to ...
9854 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9855 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9856 sigsuspend. Check for zombie leaders.
9857 (linux_wait_for_event): Reimplement as wrapper around
9858 linux_wait_for_event_filtered.
9859 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9860 a normal or signal exit is seen, it's the whole process exiting.
9861 (wait_for_sigstop): No longer a for_each_inferior callback.
9862 Rewrite on top of linux_wait_for_event_filtered.
9863 (stop_all_lwps): Call wait_for_sigstop directly.
9864 * server.c (resume, handle_target_event): Handle
9865 TARGET_WAITKIND_NO_RESUMED.
9866
d763de10
JB
98672014-02-26 Joel Brobecker <brobecker@adacore.com>
9868
9869 * win32-low.c (psapi_get_dll_name,
9870 * win32_CreateToolhelp32Snapshot): Delete.
9871 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9872 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9873 Delete.
9874 (handle_load_dll): Add function description.
9875 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9876
850a0f76
JB
98772014-02-26 Joel Brobecker <brobecker@adacore.com>
9878
9879 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9880 Add comment.
9881 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9882 base address when calling win32_add_one_solib.
9883 (handle_load_dll): Delete local variable load_addr.
9884 Remove 0x1000 offset applied to DLL base address when calling
9885 win32_add_one_solib.
9886 (handle_unload_dll): Add comment.
9887
f25b3fc3
JB
98882014-02-26 Joel Brobecker <brobecker@adacore.com>
9889
9890 * win32-low.c (win32_add_all_dlls): Renames
9891 win32_ensure_ntdll_loaded. Rewrite function documentation.
9892 Adjust implementation to always load all DLLs.
9893 Add 0x1000 offset to DLL base address when calling
9894 win32_add_one_solib.
9895 (child_initialization_done): New static global.
9896 (do_initial_child_stuff): Set child_initialization_done to
9897 zero during child initialization, and 1 after. Replace call
9898 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9899 Add comment.
9900 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9901 (handle_unload_dll): Add function documentation.
9902 (get_child_debug_event): Ignore load and unload DLL events
9903 during child initialization.
9904
d86d4aaf
DE
99052014-02-20 Doug Evans <dje@google.com>
9906
3bc32da3 9907 Remove global all_lwps.
d86d4aaf
DE
9908 * inferiors.h (ptid_of): Move here from linux-low.h.
9909 (pid_of, lwpid_of): Ditto.
9910 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9911 parameter is a struct thread_info * now.
9912 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9913 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9914 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9915 directly.
9916 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9917 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9918 * linux-arm-low.c (update_registers_callback): Update, "entry"
9919 parameter is a struct thread_info * now.
9920 Fetch lwpid from current_inferior directly.
9921 (arm_insert_point): Pass &all_threads to find_inferior instead of
9922 &all_lwps.
9923 (arm_remove_point): Ditto.
9924 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9925 (arm_prepare_to_resume): Fetch pid from thread.
9926 (arm_read_description): Fetch lwpid from current_inferior directly.
9927 * linux-low.c (all_lwps): Delete.
9928 (delete_lwp): Delete call to remove_inferior.
9929 (handle_extended_wait): Fetch lwpid from thread.
9930 (add_lwp): Don't set lwp->entry.id. Remove call to
9931 add_inferior_to_list.
9932 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9933 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9934 (kill_one_lwp_callback): Ditto.
9935 (linux_kill): Don't dereference NULL pointer.
9936 Fetch ptid,lwpid from thread.
9937 (get_detach_signal): Fetch ptid from thread.
9938 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9939 Simplify call to regcache_invalidate_thread.
9940 (delete_lwp_callback): Update, "entry" parameter is a
9941 struct thread_info * now. Fetch pid from thread.
9942 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9943 (status_pending_p_callback): Update, "entry" parameter is a
9944 struct thread_info * now. Fetch ptid from thread.
9945 (find_lwp_pid): Update, "entry" parameter is a
9946 struct thread_info * now.
9947 (linux_wait_for_lwp): Fetch pid from thread.
9948 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9949 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9950 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9951 (dequeue_one_deferred_signal): Ditto.
9952 (cancel_breakpoint): Fetch ptid from current_inferior.
9953 (linux_wait_for_event): Pass &all_threads to find_inferior,
9954 not &all_lwps. Fetch ptid, lwpid from thread.
9955 (count_events_callback): Update, "entry" parameter is a
9956 struct thread_info * now.
9957 (select_singlestep_lwp_callback): Ditto.
9958 (select_event_lwp_callback): Ditto.
9959 (cancel_breakpoints_callback): Ditto.
9960 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9961 not &all_lwps.
9962 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9963 (unsuspend_one_lwp): Update, "entry" parameter is a
9964 struct thread_info * now.
9965 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9966 not &all_lwps.
9967 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9968 Fetch lwpid from thread, not lwp.
9969 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9970 Pass &all_threads to find_inferior, not &all_lwps.
9971 (send_sigstop): Fetch lwpid from thread, not lwp.
9972 (send_sigstop_callback): Update, "entry" parameter is a
9973 struct thread_info * now.
9974 (suspend_and_send_sigstop_callback): Ditto.
9975 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9976 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9977 struct thread_info * now.
9978 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9979 from thread, lwp.
9980 (lwp_running): Update, "entry" parameter is a
9981 struct thread_info * now.
9982 (stop_all_lwps): Fetch ptid from thread.
9983 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9984 (linux_resume_one_lwp): Fetch lwpid from thread.
9985 (linux_set_resume_request): Update, "entry" parameter is a
9986 struct thread_info * now. Fetch pid, lwpid from thread.
9987 (resume_status_pending_p): Update, "entry" parameter is a
9988 struct thread_info * now.
9989 (need_step_over_p): Ditto. Fetch lwpid from thread.
9990 (start_step_over): Fetch lwpid from thread.
9991 (linux_resume_one_thread): Update, "entry" parameter is a
9992 struct thread_info * now. Fetch lwpid from thread.
9993 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9994 (proceed_one_lwp): Update, "entry" parameter is a
9995 struct thread_info * now. Fetch lwpid from thread.
9996 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9997 struct thread_info * now.
9998 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9999 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10000 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10001 directly.
10002 (regsets_store_inferior_registers): Ditto.
10003 (fetch_register, store_register): Ditto.
10004 (linux_read_memory, linux_write_memory): Ditto.
10005 (linux_request_interrupt): Ditto.
10006 (linux_read_auxv): Ditto.
10007 (linux_xfer_siginfo): Ditto.
10008 (linux_qxfer_spu): Ditto.
10009 (linux_qxfer_libraries_svr4): Ditto.
10010 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10011 moved to inferiors.h.
10012 (get_lwp): Delete.
10013 (get_thread_lwp): Update.
10014 (struct lwp_info): Delete member "entry". Simplify comment for
10015 member "thread".
10016 (all_lwps): Delete.
10017 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10018 current_inferior directly.
10019 (update_watch_registers_callback): Update, "entry" parameter is a
10020 struct thread_info * now. Fetch pid from thread.
10021 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10022 (mips_insert_point): Fetch lwpid from current_inferior.
10023 Pass &all_threads to find_inferior, not &all_lwps.
10024 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10025 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10026 directly.
10027 (mips_stopped_data_address): Ditto.
10028 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10029 directly.
10030 * linux-tile-low.c (tile_arch_setup): Ditto.
10031 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10032 (update_debug_registers_callback): Update, "entry" parameter is a
10033 struct thread_info * now. Fetch pid from thread.
10034 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10035 Pass &all_threads to find_inferior, not &all_lwps.
10036 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10037 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10038 Pass &all_threads to find_inferior, not &all_lwps.
10039 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10040 (i386_dr_low_get_status): Ditto.
10041 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10042 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10043 (x86_linux_read_description): Ditto.
10044 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10045
3b8361aa
DE
100462014-02-20 Doug Evans <dje@google.com>
10047
10048 * inferiors.c (get_first_inferior): Fix buglet.
10049
f7667f0d
DE
100502014-02-19 Doug Evans <dje@google.com>
10051
10052 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10053 * inferiors.c (add_thread): Change result type to struct thread_info *.
10054 All callers updated.
10055 (add_lwp): Call add_thread here instead of in callers.
10056 All callers updated.
10057 * linux-low.h (get_lwp_thread): Rewrite.
10058 (struct lwp_info): New member "thread".
10059
b3312d80
DE
100602014-02-19 Doug Evans <dje@google.com>
10061
10062 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10063 All callers updated.
10064
ecc6f45c
DE
100652014-02-19 Doug Evans <dje@google.com>
10066
10067 * inferiors.c (add_thread): Fix whitespace.
10068
649ebbca
DE
100692014-02-19 Doug Evans <dje@google.com>
10070
10071 * dll.c (clear_dlls): Replace accessing list implemention details
10072 with API function.
10073 * gdbthread.h (get_first_thread): Declare.
10074 * inferiors.c (for_each_inferior_with_data): New function.
10075 (get_first_thread): New function.
10076 (find_thread_ptid): Simplify.
10077 (get_first_inferior): New function.
10078 (clear_list): Delete.
10079 (one_inferior_p): New function.
10080 (clear_inferior_list): New function.
10081 (clear_inferiors): Update.
10082 * inferiors.h (for_each_inferior_with_data): Declare.
10083 (clear_inferior_list): Declare.
10084 (one_inferior_p): Declare.
10085 (get_first_inferior): Declare.
10086 * linux-low.c (linux_wait_for_event): Replace accessing list
10087 implemention details with API function.
10088 * server.c (target_running): Ditto.
10089 (accumulate_file_name_length): New function.
10090 (emit_dll_description): New function.
10091 (handle_qxfer_libraries): Replace accessing list implemention
10092 details with API function.
10093 (handle_qxfer_threads_worker): New function.
10094 (handle_qxfer_threads_proper): Replace accessing list implemention
10095 details with API function.
10096 (handle_query): Ditto.
10097 (visit_actioned_threads_callback_ftype): New typedef.
10098 (visit_actioned_threads_data): New struct.
10099 (visit_actioned_threads): Rewrite to be find_inferior callback.
10100 (resume): Call find_inferior.
10101 (handle_status): Replace accessing list implemention
10102 details with API function.
10103 (process_serial_event): Replace accessing list implemention details
10104 with API function.
10105 * target.c (set_desired_inferior): Replace accessing list implemention
10106 details with API function.
10107 * tracepoint.c (same_process_p): New function.
10108 (gdb_agent_about_to_close): Replace accessing list implemention
10109 details with API function.
10110 * win32-low.c (child_delete_thread): Replace accessing list
10111 implemention details with API function.
10112 (match_dll_by_basename): New function.
10113 (dll_is_loaded_by_basename): New function.
10114 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10115 details call to dll_is_loaded_by_basename.
10116
80894984
DE
101172014-02-19 Doug Evans <dje@google.com>
10118
10119 * dll.h (struct dll_info): Add comment.
10120 * gdbthread.h (struct thread_info): Add comment.
10121 (current_ptid): Simplify.
10122 * inferiors.c (add_process): Update.
10123 (remove_process): Update.
10124 * inferiors.h (struct process_info): Rename member "head" to "entry".
10125 * linux-low.c (delete_lwp): Update.
10126 (add_lwp): Update.
10127 (last_thread_of_process_p): Update.
10128 (kill_one_lwp_callback, linux_kill): Update.
10129 (status_pending_p_callback): Update.
10130 (wait_for_sigstop): Update. Simplify read of ptid.
10131 (start_step_over): Update.
10132 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10133 (get_lwp_thread): Update.
10134 (struct lwp_info): Rename member "head" to "entry".
10135 * regcache.h (inferior_list_entry): Delete.
10136 * server.c (kill_inferior_callback): Update.
10137 (detach_or_kill_inferior_callback): Update.
10138 (print_started_pid): Update.
10139 (print_attached_pid): Update.
10140 (process_serial_event): Simplify read of ptid.
10141 * thread-db.c (thread_db_create_event): Update.
10142 (thread_db_get_tls_address): Update.
10143 * win32-low.c (current_inferior_ptid): Simplify.
10144
46917d26
TT
101452014-02-19 Tom Tromey <tromey@redhat.com>
10146
10147 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10148 argument.
10149 (target_supports_btrace): Update.
10150
0759a81e
YQ
101512014-02-14 Yao Qi <yao@codesourcery.com>
10152
10153 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10154 (rsp-low-ipa.o): New target.
10155
a7191e8b
TT
101562014-02-12 Tom Tromey <tromey@redhat.com>
10157
10158 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10159 convert_ascii_to_int.
10160 * regcache.c (registers_to_string): Likewise.
10161 * remote-utils.c (decode_M_packet): Likewise.
10162 * server.c (process_serial_event): Likewise.
10163
ff0e980e
TT
101642014-02-12 Tom Tromey <tromey@redhat.com>
10165
10166 * server.c (handle_query, handle_v_run): Use hex2bin, not
10167 unhexify.
10168 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10169
e9371aff
TT
101702014-02-12 Tom Tromey <tromey@redhat.com>
10171
10172 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10173 convert_int_to_ascii.
10174 * regcache.c (registers_to_string, collect_register_as_string):
10175 Likewise.
10176 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10177 Likewise.
10178 * server.c (process_serial_event): Likewise.
10179 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10180 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10181
971dc0b8
TT
101822014-02-12 Tom Tromey <tromey@redhat.com>
10183
10184 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10185 bin2hex, not hexify.
10186 * tracepoint.c (cmd_qtstatus): Likewise.
10187
0a822afb
TT
101882014-02-12 Tom Tromey <tromey@redhat.com>
10189
10190 * remote-utils.c (monitor_output): Pass explicit length to
10191 hexify.
10192
9c3d6531
TT
101932014-02-12 Tom Tromey <tromey@redhat.com>
10194
10195 * tracepoint.c: Include rsp-low.h.
10196 * server.c: Include rsp-low.h.
10197 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10198 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10199 declare.
10200 * remote-utils.c: Include rsp-low.h.
10201 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10202 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10203 (convert_int_to_ascii, convert_ascii_to_int): Move to
10204 common/rsp-low.c.
10205 * regcache.c: Include rsp-low.h.
10206 * ax.c: Include rsp-low.h.
10207 * Makefile.in (SFILES): Add common/rsp-low.c.
10208 (OBS): Add rsp-low.o.
10209 (rsp-low.o): New target.
10210
01fd3ea5
TT
102112014-02-12 Tom Tromey <tromey@redhat.com>
10212
10213 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10214 Include print-utils.h.
10215 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10216 (plongest, thirty_two, phex_nz): Remove.
10217 * Makefile.in (SFILES): Add common/print-utils.c.
10218 (OBS): Add print-utils.o.
10219 (print-utils-ipa.o): New target.
10220 (print-utils.o): New target.
10221 (IPA_OBJS): Add print-utils-ipa.o.
10222
e99dc820
TT
102232014-02-06 Tom Tromey <tromey@redhat.com>
10224
10225 * Makefile.in (SFILES): Fix indentation.
10226
ee1e2d4f
DE
102272014-02-05 Doug Evans <dje@google.com>
10228
10229 * linux-low.c (linux_wait_for_event): Improve comment.
10230 (linux_wait_1): Keep current_inferior in sync with event_child.
10231
f5a02773
DE
102322014-01-22 Doug Evans <dje@google.com>
10233
10234 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10235
87ce2a04
DE
102362014-01-22 Doug Evans <dje@google.com>
10237
10238 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10239 * configure: Regenerate.
10240 * config.in: Regenerate.
10241 * Makefile.in (SFILES): Add debug.c.
10242 (OBS): Add debug.o.
10243 * debug.c: New file.
10244 * debug.h: New file.
10245 * linux-aarch64-low.c (*): Update all debugging printfs to use
10246 debug_printf instead of fprintf.
10247 * linux-arm-low.c (*): Ditto.
10248 * linux-cris-low.c (*): Ditto.
10249 * linux-crisv32-low.c (*): Ditto.
10250 * linux-m32r-low.c (*): Ditto.
10251 * linux-sparc-low.c (*): Ditto.
10252 * linux-x86.c (*): Ditto.
10253 * linux-low.c (*): Ditto.
10254 (linux_wait_1): Add calls to debug_enter, debug_exit.
10255 (linux_wait): Remove redundant debugging printf.
10256 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10257 (linux_resume, unstop_all_lwps): Ditto.
10258 * mem-break.c (*): Update all debugging printfs to use
10259 debug_printf instead of fprintf.
10260 * remote-utils.c (*): Ditto.
10261 * thread-db.c (*): Ditto.
10262 * server.c #include <ctype.h>, "gdb_vecs.h".
10263 (debug_threads): Moved to debug.c.
10264 (*): Update all debugging printfs to use debug_printf instead of
10265 fprintf.
10266 (start_inferior): Replace call to fflush with call to debug_flush.
10267 (monitor_show_help): Mention set debug-format.
10268 (parse_debug_format_options): New function.
10269 (handle_monitor_command): Handle "monitor set debug-format".
10270 (gdbserver_usage): Mention --debug-format.
10271 (main): Parse --debug-format.
10272 * server.h (debug_threads): Declaration moved to debug.h.
10273 #include "debug.h".
10274 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10275 trace_debug_1 that uses debug_printf.
10276 (tracepoint_look_up_symbols): Update all debugging printfs to use
10277 debug_printf instead of fprintf.
10278
e671835b
BS
102792014-01-20 Baruch Siach <baruch@tkos.co.il>
10280
10281 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10282 sys/ptrace.h.
10283
b5737fa9
PA
102842014-01-17 Pedro Alves <palves@redhat.com>
10285
ea38d2a9 10286 PR build/16445
c7faa97a
PA
10287 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10288 defined after including gdb_proc_service.h.
b5737fa9 10289
40ed484e
DE
102902014-01-16 Doug Evans <dje@google.com>
10291
10292 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10293 (match_dll): Use it.
10294
969c39fb
MM
102952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10296
10297 * target.h (target_ops) <read_btrace>: Change parameters and
10298 return type to allow error reporting.
10299 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10300 trace reading errors on.
10301 * linux-low.c (linux_low_read_btrace): Pass trace reading
10302 errors on.
10303 (linux_low_disable_btrace): New.
10304
ab7f45ba
DE
103052014-01-15 Doug Evans <dje@google.com>
10306
10307 * inferiors.c (thread_id_to_gdb_id): Delete.
10308 * inferiors.h (thread_id_to_gdb_id): Delete.
10309
66af0f44
EZ
103102014-01-13 Eli Zaretskii <eliz@gnu.org>
10311
10312 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10313 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10314 versions.
10315
9939e131
PA
103162014-01-08 Pedro Alves <palves@redhat.com>
10317
10318 * server.c (handle_status): Don't discard previous queued stop
10319 replies or thread's pending status here.
10320 (main) <disconnection>: Do it here instead.
10321
b7ea362b
PA
103222014-01-08 Pedro Alves <palves@redhat.com>
10323
10324 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10325 * server.c (visit_actioned_threads, handle_pending_status): New
10326 function.
10327 (handle_v_cont): Factor out parts to ...
10328 (resume): ... this new function. If in all-stop, and a thread
10329 being resumed has a pending status, report it without actually
10330 resuming.
10331 (myresume): Adjust to use the new 'resume' function.
10332 (clear_pending_status_callback, set_pending_status_callback)
10333 (find_status_pending_thread_callback): New functions.
10334 (handle_status): Handle the case of multiple threads having
10335 interesting statuses to report. Report threads' real last signal
10336 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10337 with an interesting thread to report the status for, instead of
10338 always reporting the status of the first thread.
10339
28498c42
JB
103402014-01-01 Joel Brobecker <brobecker@adacore.com>
10341
10342 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10343 * gdbreplay.c (gdbreplay_version): Likewise.
10344
f45c82da
YZ
103452013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10346
10347 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10348 iov.iov_len with the real length in use.
10349
379a5e2d
JB
103502013-12-13 Joel Brobecker <brobecker@adacore.com>
10351
10352 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10353 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10354 for all targets that use win32-low.c.
10355 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10356 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10357
4210d83e
PA
103582013-12-13 Pedro Alves <palves@redhat.com>
10359
10360 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10361 if equal to TARGET_WAITKIND_LOADED.
10362 * win32-low.c (cached_status): New static global.
10363 (win32_wait): Add declaration.
10364 (do_initial_child_stuff): Flush all initial pending debug events
10365 up to the initial breakpoint.
10366 (win32_wait): If CACHED_STATUS was set, return that instead
10367 of doing a real wait. Remove the code resuming the execution
10368 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10369 during the initial phase. Also remove the code changing
10370 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10371 TARGET_WAITKIND_STOPPED.
10372
e7f0d979
YQ
103732013-12-11 Yao Qi <yao@codesourcery.com>
10374
10375 * notif.c (handle_notif_ack): Return 0 if no notification
10376 matches.
10377
ebcf782c
DE
103782013-11-20 Doug Evans <dje@google.com>
10379
10380 * linux-low.c (linux_set_resume_request): Fix comment.
10381
20ad9378
DE
103822013-11-20 Doug Evans <dje@google.com>
10383
10384 * linux-low.c (resume_status_pending_p): Tweak comment.
10385
a196ebeb
WT
103862013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10387
10388 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10389 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10390 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10391 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10392 (srv_amd64_regobj): Add amd64-mpx.o.
10393 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10394 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10395 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10396 * i387-fp.c (num_pl_bnd_register) Added constant.
10397 (num_pl_bnd_cfg_registers) Added constant.
10398 (struct i387_xsave) Added reserved area and MPX fields.
10399 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10400 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10401 function.
10402 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10403 (init_registers_amd64_mpx_linux): Declare new function.
10404 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10405 (x86_64_regmap): Add MPX registers.
10406 (x86_linux_read_description): Add MPX case.
10407 (initialize_low_arch): Initialize MPX targets.
10408
0080a2f6
TT
104092013-11-18 Tom Tromey <tromey@redhat.com>
10410
10411 * configure: Rebuild.
10412 * configure.ac: Don't check for stdlib.h.
10413 * gdbreplay.c: Unconditionally include stdlib.h.
10414
2978b111
TT
104152013-11-18 Tom Tromey <tromey@redhat.com>
10416
10417 * config.in: Rebuild.
10418 * configure: Rebuild.
10419 * configure.ac: Don't use AC_HEADER_DIRENT.
10420
a3d08894
TT
104212013-11-18 Tom Tromey <tromey@redhat.com>
10422
10423 * server.h: Don't check HAVE_STRING_H.
10424 * gdbreplay.c: Don't check HAVE_STRING_H.
10425 * configure: Rebuild.
10426
0a5dd17d
TT
104272013-11-18 Tom Tromey <tromey@redhat.com>
10428
10429 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10430 LIBGNU.
10431
1bd2f0ba
TT
104322013-11-08 Tom Tromey <tromey@redhat.com>
10433
10434 * configure, config.in: Rebuild.
10435 * configure.ac: Remove unused configury.
10436
3266f10b
TT
104372013-11-08 Tom Tromey <tromey@redhat.com>
10438
10439 * acinclude.m4: Include common.m4, codeset.m4.
10440 * configure, config.in: Rebuild.
10441 * configure.ac: Use GDB_AC_COMMON.
10442
6682d959
AA
104432013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10444
10445 * linux-s390-low.c (HWCAP_S390_TE): New define.
10446 (s390_arch_setup): Consider the TE field in the HWCAP for
10447 determining 'have_regset_tdb'.
10448
fd0a4d76
SDJ
104492013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10450
10451 PR gdb/16014
10452 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10453 call to sizeof.
10454
1a3d890b
PA
104552013-10-02 Pedro Alves <palves@redhat.com>
10456
10457 * server.c (process_serial_event): Don't output "GDBserver
10458 exiting" if GDB is connected through stdio.
10459 * target.c (mywait): Likewise, be silent if GDB is connected
10460 through stdio.
10461
97ad4581
JB
104622013-10-01 Joel Brobecker <brobecker@adacore.com>
10463
10464 * lynx-low.c (lynx_add_threads_after_attach): New function.
10465 (lynx_attach): Remove call to add_thread. Add call to
10466 lynx_add_threads_after_attach instead.
10467
5b4e221c
MF
104682013-09-28 Mike Frysinger <vapier@gentoo.org>
10469
10470 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10471 * config.in, configure: Regenerated.
10472
ee47b2f8
YQ
104732013-09-18 Yao Qi <yao@codesourcery.com>
10474
10475 PR server/15959
10476 * server.c (start_inferior): Clear 'resume_info'.
10477
d6707650 104782013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10479
d6707650
JW
10480 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10481 for each register.
10482
9243dd0e 104832013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10484
9243dd0e
JW
10485 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10486 linux-tile-low.o to srv_tgtobj.
10487
c623a6ef
WN
104882013-09-16 Will Newton <will.newton@linaro.org>
10489
10490 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10491 out regs.
10492
fb71d39e
PA
104932013-09-06 Pedro Alves <palves@redhat.com>
10494
10495 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10496 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10497 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10498 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10499 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10500 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10501
8e7e9910
PA
105022013-09-06 Pedro Alves <palves@redhat.com>
10503
10504 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10505 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10506
7c3a12ca
PA
105072013-09-06 Pedro Alves <palves@redhat.com>
10508
10509 * linux-amd64-ipa.c: Include tracepoint.h.
10510 * linux-i386-ipa.c: Include tracepoint.h.
10511
8eb3d7b6
RW
105122013-09-06 Ricard Wanderlof <ricardw@axis.com>
10513
10514 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10515 (ps_get_thread_area): New function.
10516
eddddb9d
RW
105172013-09-06 Ricard Wanderlof <ricardw@axis.com>
10518
10519 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10520 (initialize_low_arch): Call init_registers_crisv32 rather than
10521 init_register_crisv32.
10522
533b0600
PA
105232013-09-05 Pedro Alves <palves@redhat.com>
10524
10525 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10526 to ...
10527 * hostio.h: ... this new file.
10528 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10529 win32-low.c: Include hostio.h.
10530
0ce3d3b5
PA
105312013-09-05 Pedro Alves <palves@redhat.com>
10532
10533 * server.h (gdb_client_data, handler_func, callback_handler_func)
10534 (delete_file_handler, add_file_handler, append_callback_event)
10535 (delete_callback_event, start_event_loop, initialize_event_loop):
10536 Move to event-loop.h and include it.
10537 * event-loop.h: New file.
10538
799cdc37
PA
105392013-09-05 Pedro Alves <palves@redhat.com>
10540
10541 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10542 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10543 (loaded_dll, unloaded_dll): Move to ...
10544 * dll.h: ... this new file.
10545 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10546
6a6bbd9d
PA
105472013-09-05 Pedro Alves <palves@redhat.com>
10548
10549 * server.h (current_process, get_thread_process, all_processes)
10550 (add_inferior_to_list, for_each_inferior, current_inferior)
10551 (remove_inferior, add_process, remove_process, find_process_pid)
10552 (have_started_inferiors_p, have_attached_inferiors_p)
10553 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10554 (clear_inferiors, find_inferior, find_inferior_id)
10555 (inferior_target_data, set_inferior_target_data)
10556 (inferior_regcache_data, set_inferior_regcache_data): Move to
10557 inferiors.h, and include it.
10558 * inferiors.h: New file.
10559
f699aaba
PA
105602013-09-05 Pedro Alves <palves@redhat.com>
10561
10562 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10563 Move ...
72f4393d 10564 * ax.h: ... here.
f699aaba 10565
c144c7a0
PA
105662013-09-05 Pedro Alves <palves@redhat.com>
10567
10568 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10569 tracepoint.h.
10570 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10571 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10572 (handle_tracepoint_general_set, handle_tracepoint_query)
10573 (tracepoint_finished_step, tracepoint_was_hit)
10574 (release_while_stepping_state_list, current_traceframe)
10575 (in_readonly_region, traceframe_read_mem)
10576 (fetch_traceframe_registers, traceframe_read_sdata)
10577 (traceframe_read_info, struct fast_tpoint_collect_status)
10578 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10579 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10580 (supply_fast_tracepoint_registers)
10581 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10582 (ipa_tdesc, claim_trampoline_space)
10583 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10584 (agent_mem_read, agent_get_trace_state_variable_value)
10585 (agent_set_trace_state_variable_value, agent_tsv_read)
10586 (agent_mem_read_string, get_raw_reg_func_addr)
10587 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10588 * tracepoint.h: ... this new file.
10589
ff42e6ab
PA
105902013-09-05 Pedro Alves <palves@redhat.com>
10591
10592 * server.h (perror_with_name, error, fatal, warning, paddress)
10593 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10594 include it.
10595 * utils.h: New file.
10596
541af0f4
PA
105972013-09-05 Pedro Alves <palves@redhat.com>
10598
10599 * server.h (remote_debug, noack_mode, transport_is_reliable)
10600 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10601 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10602 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10603 (write_enn, initialize_async_io, enable_async_io)
10604 (disable_async_io, check_remote_input_interrupt_request)
10605 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10606 (dead_thread_notify, prepare_resume_reply)
10607 (decode_address_to_semicolon, decode_address, decode_m_packet)
10608 (decode_M_packet, decode_X_packet, decode_xfer_write)
10609 (decode_search_memory_packet, unhexify, hexify)
10610 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10611 (look_up_one_symbol, relocate_instruction)
10612 (monitor_output): Move to remote-utils.h, and include it.
10613 * remote-utils.h: New file.
10614
eebdf26b
PA
106152013-09-05 Pedro Alves <palves@redhat.com>
10616
10617 * server.h (_): Delete.
10618
3aafd2ff
PA
106192013-09-02 Pedro Alves <palves@redhat.com>
10620
10621 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10622 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10623 allocated.
10624 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10625
cee83bcb
PM
106262013-09-02 Pierre Muller <muller@sourceware.org>
10627
10628 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10629 or WriteProcessMemory complete successfully and handle
10630 ERROR_PARTIAL_COPY error.
10631
9a13b2fa
PA
106322013-09-02 Pedro Alves <palves@redhat.com>
10633
10634 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10635 error instead of EIO.
10636
602e3198
JK
106372013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10638
10639 PR server/15604
10640 * linux-low.c: Include filestuff.h.
10641 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10642 * lynx-low.c: Include filestuff.h.
10643 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10644 * server.c: Include filestuff.h.
10645 (main): Call notice_open_fds.
10646 * spu-low.c: Include filestuff.h.
10647 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10648
96d7229d
LM
106492013-08-22 Luis Machado <lgustavo@codesourcery.com>
10650
10651 * Makefile.in: Explain why ../target and ../nat are not
10652 listed as include file search paths.
10653 (linux-waitpid.o): New object file rule.
10654 * configure.srv (srv_native_linux_obj): New variable.
10655 Replace all occurrences of linux native object files with
10656 $srv_native_linux_obj.
10657 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10658 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10659 (linux_enable_event_reporting): Remove declaration.
10660 (my_waitpid): Moved to common/linux-waitpid.c.
10661 (linux_wait_for_event): Pass ptid when calling
10662 linux_enable_event_reporting.
10663 (linux_supports_tracefork_flag): Remove.
10664 (linux_enable_event_reporting): Likewise.
10665 (linux_tracefork_grandchild): Remove.
10666 (STACK_SIZE): Moved to common/linux-ptrace.c.
10667 (linux_tracefork_child): Remove.
10668 (linux_test_for_tracefork): Remove.
10669 (linux_look_up_symbols): Call linux_supports_traceclone.
10670 (initialize_low): Remove call to linux_test_for_tracefork.
10671 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10672 common/linux-ptrace.h.
10673 (PTRACE_TYPE_ARG4): Likewise.
10674 Include linux-ptrace.h.
10675
32940073
PA
106762013-08-21 Pedro Alves <palves@redhat.com>
10677
10678 * config.in: Renegerate.
10679
33b60d58 106802013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 10681
33b60d58
LM
10682 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10683 (SFILES): Remove $(srcdir)/common/target-common.c and
10684 add $(srcdir)/target/waitstatus.c.
10685 (OBS): Remove target-common.o and add waitstatus.o.
10686 (server_h): Remove $(srcdir)/../common/target-common.h and
10687 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10688 and $(srcdir)/../target/waitstatus.h.
10689 (target-common.o): Remove.
10690 (waitstatus.o): New target object file.
10691 * target.h: Do not include target-common.h and
10692 include target/resume.h, target/wait.h and
10693 target/waitstatus.h.
10694
b8e1b30e
LM
106952013-08-13 Luis Machado <lgustavo@codesourcery.com>
10696
10697 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10698 to PTRACE_TYPE_ARG3.
10699 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10700 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
10701 PTRACE_TYPE_ARG4.
10702 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
10703 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
10704
7a60ad40
YQ
107052013-07-27 Jie Zhang <jie@codesourcery.com>
10706 Daniel Jacobowitz <dan@codesourcery.com>
10707 Yao Qi <yao@codesourcery.com>
10708
10709 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
10710 (mips-linux-watch.o): New rule.
10711 (mips_linux_watch_h): New variable.
10712 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
10713 srv_tgtobj.
10714 * linux-mips-low.c: Include mips-linux-watch.h.
10715 (struct arch_process_info, struct arch_lwp_info): New.
10716 (update_watch_registers_callback): New function.
10717 (mips_linux_new_process, mips_linux_new_thread) New functions.
10718 (mips_linux_prepare_to_resume, mips_insert_point): New
10719 functions.
10720 (mips_remove_point, mips_stopped_by_watchpoint): New
10721 functions.
10722 (rsp_bp_type_to_target_hw_bp_type): New function.
10723 (mips_stopped_data_address): New function.
10724 (the_low_target): Add watchpoint support functions.
10725
de6f69ad
YQ
107262013-07-27 Yao Qi <yao@codesourcery.com>
10727
10728 * i386-low.c: Include break-common.h.
10729 (enum target_hw_bp_type): Remove.
10730
3360c0bf
LM
107312013-07-24 Luis Machado <lgustavo@codesourcery.com>
10732
10733 * Makefile.in (SFILES): /common/target-common.c.
10734 (OBS): Add target-common.o.
10735 (server_h): Add $(srcdir)/../common/target-common.h.
10736 (target-common.o): New target.
10737 * server.c (queue_stop_reply_callback): Free
10738 status string after use.
10739 * target.c (target_waitstatus_to_string): Remove.
10740 * target.h: Include target-common.h.
10741 (resume_kind): Likewise.
10742 (target_waitkind): Likewise.
10743 (target_waitstatus): Likewise.
10744 (TARGET_WNOHANG): Likewise.
10745
bd885420
YQ
107462013-07-04 Yao Qi <yao@codesourcery.com>
10747
10748 * Makefile.in (host_alias): Use @host_noncanonical@.
10749 (target_alias): Use @target_noncanonical@.
10750 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10751 ACX_NONCANONICAL_HOST.
10752 * configure: Regenerated.
10753
10754 Revert:
10755 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10756
10757 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10758 * configure: Rebuild.
10759 * Makefile.in (version_host, version_target): Get from configure.
10760 (version.c): Use $(version_host) and $(version_target).
10761
17ef446e
PA
107622013-07-03 Pedro Alves <palves@redhat.com>
10763
10764 * Makefile.in (config.status): Depend on development.sh.
10765 * acinclude.m4: Include libmcheck.m4.
10766 * configure: Regenerate.
10767
7a9a7487
MG
107682013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10769
10770 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10771 attribute inside the parentheses.
10772 (winapi_DebugSetProcessKillOnExit): Ditto.
10773 (winapi_DebugBreakProcess): Ditto.
10774 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 10775
49b64de6
MG
107762013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10777
10778 * notif.h (notif_event): Add a dummy member to avoid compiler
10779 errors.
10780
d5749ee7
PA
107812013-07-01 Pedro Alves <palves@redhat.com>
10782
10783 * hostio.c (HOSTIO_PATH_MAX): Define.
10784 (require_filename, handle_open, handle_unlink, handle_readlink):
10785 Use it.
10786
d8d2a3ee
PA
107872013-07-01 Pedro Alves <palves@redhat.com>
10788
10789 * server.h: Include "pathmax.h".
10790 * linux-low.c: Don't include sys/param.h.
10791 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10792 MAXPATHLEN.
10793 * win32-low.c: Don't include sys/param.h.
10794 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10795
bc7dea8d
PA
107962013-07-01 Pedro Alves <palves@redhat.com>
10797
10798 * event-loop.c: Don't check HAVE_UNISTD_H before including
10799 <unistd.h>.
10800 * gdbreplay.c: Likewise.
10801 * remote-utils.c: Likewise.
10802 * server.c: Likewise.
10803 * configure.ac: Don't check for unistd.h.
10804 * configure: Regenerate.
10805
d6c2da54
TT
108062013-06-28 Tom Tromey <tromey@redhat.com>
10807
10808 * Makefile.in (version.c): Use version.in, not
10809 common/version.in.
10810
257b6bec
MG
108112013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10812
10813 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10814 * configure: Rebuild.
10815 * Makefile.in (version_host, version_target): Get from configure.
10816 (version.c): Use $(version_host) and $(version_target).
10817
86ebe149
DK
108182013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10819
10820 Fix trace-status to output user name without trailing colon.
10821 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10822
f30aa5af
DK
108232013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10824
10825 Fix trace-status to output proper start-time and stop-time.
10826 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10827 output start time and stop time in hex as gdb expects.
10828
28a93511
YQ
108292013-06-26 Pedro Alves <pedro@codesourcery.com>
10830
10831 * tracepoint.c (build_traceframe_info_xml): Output trace state
10832 variables present in the trace buffer.
10833
01208463
TT
108342013-06-24 Tom Tromey <tromey@redhat.com>
10835
10836 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10837 create-version.sh.
10838 (version.o): Remove.
10839 * gdbreplay.c: Include version.h.
10840 (version, host_name): Don't declare.
10841 * server.h: Include version.h.
10842 (version, host_name): Don't declare.
10843
760256f9
PA
108442013-06-12 Pedro Alves <palves@redhat.com>
10845
10846 * linux-x86-low.c (linux_is_elf64): Delete global.
10847 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10848 with local linux_pid_exe_is_elf_64_file use.
10849
030031ee
PA
108502013-06-11 Pedro Alves <palves@redhat.com>
10851
10852 * linux-low.c (regset_disabled, disable_regset): New functions.
10853 (regsets_fetch_inferior_registers)
10854 (regsets_store_inferior_registers): Use them.
10855 (initialize_regsets_info); Don't allocate the disabled_regsets
10856 array here.
10857 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10858 comment.
10859
5da6eb0a
PA
108602013-06-11 Pedro Alves <palves@redhat.com>
10861
10862 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10863 xmalloc.
10864
7e5aaa09
PA
108652013-06-11 Pedro Alves <palves@redhat.com>
10866
10867 * linux-x86-low.c (initialize_low_arch): Call
10868 init_registers_x32_avx_linux.
10869
d878444c
JK
108702013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10871
10872 Fix compatibility with Android Bionic.
10873 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10874 it is not empty.
10875
3aee8918
PA
108762013-06-07 Pedro Alves <palves@redhat.com>
10877
5f2b57b5 10878 PR server/14823
3aee8918
PA
10879 * Makefile.in (OBS): Add tdesc.o.
10880 (IPA_OBJS): Add tdesc-ipa.o.
10881 (tdesc-ipa.o): New rule.
10882 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10883 interface.
10884 * linux-low.c (new_inferior): Delete.
10885 (disabled_regsets, num_regsets): Delete.
10886 (linux_add_process): Adjust to set the new per-process
10887 new_inferior flag.
10888 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10889 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10890 was a stop. When calling arch_setup, switch the current inferior
10891 to the thread that got an event.
10892 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10893 (regsets_fetch_inferior_registers)
10894 (regsets_store_inferior_registers): New regsets_info parameter.
10895 Adjust to use it.
10896 (linux_register_in_regsets): New regs_info parameter. Adjust to
10897 use it.
10898 (register_addr, fetch_register, store_register): New usrregs_info
10899 parameter. Adjust to use it.
10900 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10901 parameter regs_info. Adjust to use it.
10902 (linux_fetch_registers): Get the current inferior's regs_info, and
10903 adjust to use it.
10904 (linux_store_registers): Ditto.
10905 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10906 (initialize_low): Don't initialize the target_regsets here. Call
10907 initialize_low_arch.
10908 * linux-low.h (target_regsets): Delete declaration.
10909 (struct regsets_info): New.
10910 (struct usrregs_info): New.
10911 (struct regs_info): New.
10912 (struct process_info_private) <new_inferior>: New field.
10913 (struct linux_target_ops): Delete the num_regs, regmap, and
10914 regset_bitmap fields. New field regs_info.
10915 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10916 * i387-fp.c (num_xmm_registers): Delete.
10917 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10918 calls to new interface.
10919 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10920 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10921 Infer the number of xmm registers from the regcache's target
10922 description.
10923 * i387-fp.h (num_xmm_registers): Delete.
10924 * inferiors.c (add_thread): Don't install the thread's regcache
10925 here.
10926 * proc-service.c (gregset_info): Fetch the current inferior's
10927 regs_info. Adjust to use it.
10928 * regcache.c: Include tdesc.h.
10929 (register_bytes, reg_defs, num_registers)
10930 (gdbserver_expedite_regs): Delete.
10931 (get_thread_regcache): If the thread doesn't have a regcache yet,
10932 create one, instead of aborting gdbserver.
10933 (regcache_invalidate_one): Rename to ...
10934 (regcache_invalidate_thread): ... this.
10935 (regcache_invalidate_one): New.
10936 (regcache_invalidate): Only invalidate registers of the current
10937 process.
10938 (init_register_cache): Add target_desc parameter, and use it.
10939 (new_register_cache): Ditto. Assert the target description has a
10940 non zero registers_size.
10941 (regcache_cpy): Add assertions. Adjust.
10942 (realloc_register_cache, set_register_cache): Delete.
10943 (registers_to_string, registers_from_string): Adjust.
10944 (find_register_by_name, find_regno, find_register_by_number)
10945 (register_cache_size): Add target_desc parameter, and use it.
10946 (free_register_cache_thread, free_register_cache_thread_one)
10947 (regcache_release, register_cache_size): New.
10948 (register_size): Add target_desc parameter, and use it.
10949 (register_data, supply_register, supply_register_zeroed)
10950 (supply_regblock, supply_register_by_name, collect_register)
10951 (collect_register_as_string, collect_register_by_name): Adjust.
10952 * regcache.h (struct target_desc): Forward declare.
10953 (struct regcache) <tdesc>: New field.
10954 (init_register_cache, new_register_cache): Add target_desc
10955 parameter.
10956 (regcache_invalidate_thread): Declare.
10957 (regcache_invalidate_one): Delete declaration.
10958 (regcache_release): Declare.
10959 (find_register_by_number, register_cache_size, register_size)
10960 (find_regno): Add target_desc parameter.
10961 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10962 declarations.
10963 * remote-utils.c: Include tdesc.h.
10964 (outreg, prepare_resume_reply): Adjust.
10965 * server.c: Include tdesc.h.
10966 (gdbserver_xmltarget): Delete declaration.
10967 (get_features_xml, process_serial_event): Adjust.
10968 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10969 declare.
10970 (struct process_info) <tdesc>: New field.
10971 (ipa_tdesc): Declare.
10972 * tdesc.c: New file.
10973 * tdesc.h: New file.
10974 * tracepoint.c: Include tdesc.h.
10975 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10976 (get_context_regcache): Adjust to pass ipa_tdesc down.
10977 (do_action_at_tracepoint): Adjust to get the register cache size
10978 from the context regcache's description.
10979 (traceframe_walk_blocks): Adjust to get the register cache size
10980 from the current trace frame's description.
10981 (traceframe_get_pc): Adjust to get current trace frame's
10982 description and pass it down.
10983 (gdb_collect): Adjust to get the register cache size from the
10984 IPA's description.
10985 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10986 (gdbserver_xmltarget): Delete.
10987 (initialize_low_tracepoint): Set the ipa's target description.
10988 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10989 (initialize_low_tracepoint): Set the ipa's target description.
10990 * linux-x86-low.c: Include tdesc.h.
10991 [__x86_64__] (is_64bit_tdesc): New.
10992 (ps_get_thread_area, x86_get_thread_area): Use it.
10993 (i386_cannot_store_register): Rename to ...
10994 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10995 (i386_cannot_fetch_register): Rename to ...
10996 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10997 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10998 to new interface.
10999 (target_regsets): Rename to ...
11000 (x86_regsets): ... this.
11001 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11002 interface.
11003 (x86_siginfo_fixup): Use is_64bit_tdesc.
11004 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11005 (tdesc_x32_avx_linux, tdesc_x32_linux)
11006 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11007 Declare.
11008 (x86_linux_update_xmltarget): Delete.
11009 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11010 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11011 (AMD64_LINUX_USER64_CS): New.
11012 (x86_linux_read_description): New, based on
11013 x86_linux_update_xmltarget.
11014 (same_process_callback): New.
11015 (x86_arch_setup_process_callback): New.
11016 (x86_linux_update_xmltarget): New.
11017 (x86_regsets_info): New.
11018 (amd64_linux_regs_info): New.
11019 (i386_linux_usrregs_info): New.
11020 (i386_linux_regs_info): New.
11021 (x86_linux_regs_info): New.
11022 (x86_arch_setup): Reimplement.
11023 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11024 (x86_emit_ops): Ditto.
11025 (the_low_target): Adjust. Install x86_linux_regs_info,
11026 x86_cannot_fetch_register, and x86_cannot_store_register.
11027 (initialize_low_arch): New.
11028 * linux-ia64-low.c (tdesc_ia64): Declare.
11029 (ia64_fetch_register): Adjust.
11030 (ia64_usrregs_info, regs_info): New globals.
11031 (ia64_regs_info): New function.
11032 (the_low_target): Adjust.
11033 (initialize_low_arch): New function.
11034 * linux-sparc-low.c (tdesc_sparc64): Declare.
11035 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11036 Adjust.
11037 (sparc_arch_setup): New function.
11038 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11039 (the_low_target): Adjust.
11040 (initialize_low_arch): New function.
11041 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11042 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11043 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11044 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11045 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11046 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11047 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11048 (tdesc_powerpc_isa205_vsx64l): Declare.
11049 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11050 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11051 (ppc_set_pc, ppc_get_hwcap): Adjust.
11052 (ppc_usrregs_info): Forward declare.
11053 (!__powerpc64__) ppc_regmap_adjusted: New global.
11054 (ppc_arch_setup): Adjust to the current process'es target
11055 description.
11056 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11057 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11058 (ppc_store_evrregset): Adjust.
11059 (target_regsets): Rename to ...
11060 (ppc_regsets): ... this, and make static.
11061 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11062 (ppc_regs_info): New function.
11063 (the_low_target): Adjust.
11064 (initialize_low_arch): New function.
11065 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11066 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11067 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11068 (tdesc_s390x_linux64v2): Declare.
11069 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11070 (s390_fill_gregset, s390_store_last_break): Adjust.
11071 (target_regsets): Rename to ...
11072 (s390_regsets): ... this, and make static.
11073 (s390_get_pc, s390_set_pc): Adjust.
11074 (s390_get_hwcap): New target_desc parameter, and use it.
11075 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11076 (s390_arch_setup): Adjust to set the current process'es target
11077 description. Don't adjust the regmap.
11078 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11079 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11080 (regs_info_3264): New globals.
11081 (s390_regs_info): New function.
11082 (the_low_target): Adjust.
11083 (initialize_low_arch): New function.
11084 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11085 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11086 [__mips64] (init_registers_mips_linux)
11087 (init_registers_mips_dsp_linux): Delete defines.
11088 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11089 (have_dsp): New global.
11090 (mips_read_description): New, based on mips_arch_setup.
11091 (mips_arch_setup): Reimplement.
11092 (get_usrregs_info): New function.
11093 (mips_cannot_fetch_register, mips_cannot_store_register)
11094 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11095 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11096 (target_regsets): Rename to ...
11097 (mips_regsets): ... this, and make static.
11098 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11099 (dsp_regs_info, regs_info): New globals.
11100 (mips_regs_info): New function.
11101 (the_low_target): Adjust.
11102 (initialize_low_arch): New function.
11103 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11104 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11105 Declare.
11106 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11107 (arm_read_description): New, with bits factored from
11108 arm_arch_setup.
11109 (arm_arch_setup): Reimplement.
11110 (target_regsets): Rename to ...
11111 (arm_regsets): ... this, and make static.
11112 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11113 (arm_regs_info): New function.
11114 (the_low_target): Adjust.
11115 (initialize_low_arch): New function.
11116 * linux-m68k-low.c (tdesc_m68k): Declare.
11117 (target_regsets): Rename to ...
11118 (m68k_regsets): ... this, and make static.
11119 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11120 (m68k_regs_info): New function.
11121 (m68k_arch_setup): New function.
11122 (the_low_target): Adjust.
11123 (initialize_low_arch): New function.
11124 * linux-sh-low.c (tdesc_sharch): Declare.
11125 (target_regsets): Rename to ...
11126 (sh_regsets): ... this, and make static.
11127 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11128 (sh_regs_info, sh_arch_setup): New functions.
11129 (the_low_target): Adjust.
11130 (initialize_low_arch): New function.
11131 * linux-bfin-low.c (tdesc_bfin): Declare.
11132 (bfin_arch_setup): New function.
11133 (bfin_usrregs_info, regs_info): New globals.
11134 (bfin_regs_info): New function.
11135 (the_low_target): Adjust.
11136 (initialize_low_arch): New function.
11137 * linux-cris-low.c (tdesc_cris): Declare.
11138 (cris_arch_setup): New function.
11139 (cris_usrregs_info, regs_info): New globals.
11140 (cris_regs_info): New function.
11141 (the_low_target): Adjust.
11142 (initialize_low_arch): New function.
11143 * linux-cris-low.c (tdesc_crisv32): Declare.
11144 (cris_arch_setup): New function.
11145 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11146 (cris_regs_info): New function.
11147 (the_low_target): Adjust.
11148 (initialize_low_arch): New function.
11149 * linux-m32r-low.c (tdesc_m32r): Declare.
11150 (m32r_arch_setup): New function.
11151 (m32r_usrregs_info, regs_info): New globals.
11152 (m32r_regs_info): Adjust.
11153 (initialize_low_arch): New function.
11154 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11155 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11156 (tic6x_usrregs_info): Forward declare.
11157 (tic6x_read_description): New function, based on ...
11158 (tic6x_arch_setup): ... this. Reimplement.
11159 (target_regsets): Rename to ...
11160 (tic6x_regsets): ... this, and make static.
11161 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11162 (tic6x_regs_info): New function.
11163 (the_low_target): Adjust.
11164 (initialize_low_arch): New function.
11165 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11166 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11167 (target_regsets): Rename to ...
11168 (xtensa_regsets): ... this, and make static.
11169 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11170 globals.
11171 (xtensa_arch_setup, xtensa_regs_info): New functions.
11172 (the_low_target): Adjust.
11173 (initialize_low_arch): New function.
11174 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11175 (nios2_arch_setup): Set the current process'es tdesc.
11176 (target_regsets): Rename to ...
11177 (nios2_regsets): ... this.
11178 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11179 (nios2_regs_info): New function.
11180 (the_low_target): Adjust.
11181 (initialize_low_arch): New function.
a261b8f5
PA
11182 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11183 (aarch64_arch_setup): Set the current process'es tdesc.
11184 (target_regsets): Rename to ...
11185 (aarch64_regsets): ... this.
11186 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11187 (aarch64_regs_info): New function.
11188 (the_low_target): Adjust.
11189 (initialize_low_arch): New function.
3aee8918
PA
11190 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11191 globals.
11192 (target_regsets): Rename to ...
11193 (tile_regsets): ... this.
11194 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11195 (tile_regs_info): New function.
11196 (tile_arch_setup): Set the current process'es tdesc.
11197 (the_low_target): Adjust.
11198 (initialize_low_arch): New function.
11199 * spu-low.c (tdesc_spu): Declare.
11200 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11201 * win32-arm-low.c (tdesc_arm): Declare.
11202 (arm_arch_setup): New function.
11203 (the_low_target): Install arm_arch_setup instead of
11204 init_registers_arm.
11205 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11206 (init_windows_x86): Rename to ...
11207 (i386_arch_setup): ... this. Set `win32_tdesc'.
11208 (the_low_target): Adjust.
11209 * win32-low.c (win32_tdesc): New global.
11210 (child_add_thread): Don't create the thread cache here.
11211 (do_initial_child_stuff): Set the new process'es tdesc.
11212 * win32-low.h (struct target_desc): Forward declare.
11213 (win32_tdesc): Declare.
11214 * lynx-i386-low.c (tdesc_i386): Declare global.
11215 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11216 * lynx-low.c (lynx_tdesc): New global.
11217 (lynx_add_process): Set the new process'es tdesc.
11218 * lynx-low.h (struct target_desc): Forward declare.
11219 (lynx_tdesc): Declare global.
11220 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11221 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11222 * nto-low.c (nto_tdesc): New global.
11223 (do_attach): Set the new process'es tdesc.
11224 * nto-low.h (struct target_desc): Forward declare.
11225 (nto_tdesc): Declare.
11226 * nto-x86-low.c (tdesc_i386): Declare.
11227 (nto_x86_arch_setup): Set `nto_tdesc'.
11228
b1fbec62
GB
112292013-06-04 Gary Benson <gbenson@redhat.com>
11230
11231 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11232 to qSupported response when appropriate.
11233 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11234 with nonzero-length annex.
11235 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11236 arguments supplied in annex.
11237
d1ec4ce7
DE
112382013-05-31 Doug Evans <dje@google.com>
11239
ac44adcb 11240 PR server/15594
d1ec4ce7
DE
11241 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11242 64 bits in 64-cross-32 environment.
11243
9b25f2d3
PA
112442013-05-28 Pedro Alves <palves@redhat.com>
11245
11246 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11247 (aarch64-without-fpu.c): Delete rule.
11248 * configure.srv (aarch64*-*-linux*): Remove references to
11249 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11250 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11251 declaration.
11252
6740dc9c
PA
112532013-05-24 Pedro Alves <palves@redhat.com>
11254
11255 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11256 instead of strchr/decode_address. Error if the range isn't split
11257 with a ','. Don't assume there's be a ':' in the action.
11258
c2d6af84
PA
112592013-05-23 Yao Qi <yao@codesourcery.com>
11260 Pedro Alves <palves@redhat.com>
11261
11262 * linux-low.c (lwp_in_step_range): New function.
11263 (linux_wait_1): If the thread was range stepping and stopped
11264 outside the stepping range, report the stop to GDB. Otherwise,
11265 continue stepping. Add range stepping debug output.
11266 (linux_set_resume_request): Copy the step range from the resume
11267 request to the lwp.
11268 (linux_supports_range_stepping): New.
11269 (linux_target_ops) <supports_range_stepping>: Set to
11270 linux_supports_range_stepping.
11271 * linux-low.h (struct linux_target_ops)
11272 <supports_range_stepping>: New field.
11273 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11274 * linux-x86-low.c (x86_supports_range_stepping): New.
11275 (the_low_target) <supports_range_stepping>: Set to
11276 x86_supports_range_stepping.
11277 * server.c (handle_v_cont): Handle 'r' action.
11278 (handle_v_requests): Append ";r" if the target supports range
11279 stepping.
11280 * target.h (struct thread_resume) <step_range_start,
11281 step_range_end>: New fields.
11282 (struct target_ops) <supports_range_stepping>:
11283 New field.
11284 (target_supports_range_stepping): New macro.
11285
58794e1a
JB
112862013-05-17 Joel Brobecker <brobecker@adacore.com>
11287
11288 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11289 confusion in comment.
11290
d631c5a7
JB
112912013-05-17 Joel Brobecker <brobecker@adacore.com>
11292
11293 * lynx-low.c (struct process_info_private): New type.
11294 (lynx_add_process): New function.
11295 (lynx_create_inferior, lynx_attach): Replace calls to
11296 add_process by calls to lynx_add_process.
11297 (lynx_resume): If PTID is null, then try using
11298 current_process()->private->last_wait_event_ptid.
11299 Add comments.
11300 (lynx_clear_inferiors): Delete. The contents of that function
11301 has been inlined in lynx_mourn;
11302 (lynx_wait_1): Save the ptid in the process's private data.
11303 (lynx_mourn): Free the process' private data. Replace call
11304 to lynx_clear_inferiors by call to clear_inferiors.
11305
96f7a20f
YQ
113062013-05-17 Yao Qi <yao@codesourcery.com>
11307
11308 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11309 the right place.
11310
db0dfaa0
LM
113112013-05-16 Luis Machado <lgustavo@codesourcery.com>
11312
11313 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11314 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11315 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11316 PT_TEXT_END_ADDR guards. Update comments.
11317 (linux_target_op) <read_offsets>: Conditionally define to
11318 linux_read_offsets if the target is UCLIBC and if it defines
11319 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11320
68f5f838
SL
113212013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11322 Andrew Jenner <andrew@codesourcery.com>
11323
11324 * Makefile.in (SFILES): Add linux-nios2-low.c.
11325 (clean): Add action to delete nios2-linux.c.
11326 (nios2-linux.c): New rule.
11327 * configure.srv: Add nios2*-*-linux*.
11328 * linux-nios2-low.c: New.
11329
1ebff1fd
HAQ
113302013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11331
11332 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11333
f6150862
HZ
113342013-04-25 Hui Zhu <hui@codesourcery.com>
11335
11336 PR gdb/15186
f6150862
HZ
11337 * ax.c (ax_printf): Add fflush.
11338
614c279d
TT
113392013-04-22 Tom Tromey <tromey@redhat.com>
11340
11341 * Makefile.in (SFILES): Add filestuff.c.
11342 (OBS): Add filestuff.o.
11343 (filestuff.o): New target.
11344 * config.in, configure: Rebuild.
11345 * configure.ac: Check for fdwalk, pipe2.
11346
7d4e5717
PA
113472013-04-17 Pedro Alves <palves@redhat.com>
11348
11349 * configure.ac (USE_THREAD_DB): Delete variable.
11350 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11351 Don't AC_SUBST USE_THREAD_DB.
11352 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11353 * config.in, configure: Regenerate.
11354
d5c93e41
PA
113552013-04-16 Pedro Alves <palves@redhat.com>
11356
11357 * linux-low.h (struct lwp_info) <thread_known>: Move under
11358 the USE_THREAD_DB #ifdef.
11359
04f5fe89
PA
113602013-04-16 Pedro Alves <palves@redhat.com>
11361
11362 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11363 (linux-low.o): Delete rule.
11364 * linux-low.h: Always include "gdb_thread_db.h" instead of
11365 conditionally including thread_db.h.
11366 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11367 HAVE_THREAD_DB_H.
11368
480b27bf
JK
113692013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11370
11371 * Makefile.in (install-only): Fix make install regression.
11372
43662968
JK
113732013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11374
11375 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11376 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11377 installation.
11378 * gdbserver.1: Remove.
11379
3e74e146
PA
113802013-03-22 Pedro Alves <palves@redhat.com>
11381
11382 * linux-low.c (handle_extended_wait): Don't call
11383 linux_enable_event_reporting.
11384
a8347a2a
TT
113852013-03-15 Tony Theodore <tonyt@logyst.com>
11386
11387 PR build/9098:
11388 * Makefile.in (SHELL): Use @SHELL@.
11389
eeb56fa7
SDJ
113902013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11391
11392 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11393 compiler warning.
11394
4fa7e2ff
JB
113952013-03-13 Joel Brobecker <brobecker@adacore.com>
11396
11397 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11398 Remove extraneous NULL element.
11399
8ddb1965
YQ
114002013-03-13 Yao Qi <yao@codesourcery.com>
11401
11402 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11403 'V' block in trace frame.
11404
9accd112
MM
114052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11406
11407 * target.h (struct target_ops): Add btrace ops.
11408 (target_supports_btrace): New macro.
11409 (target_enable_btrace): New macro.
11410 (target_disable_btrace): New macro.
11411 (target_read_btrace): New macro.
11412 * gdbthread.h (struct thread_info): Add btrace field.
11413 * server.c: Include btrace-common.h.
11414 (handle_btrace_general_set): New function.
11415 (handle_btrace_enable): New function.
11416 (handle_btrace_disable): New function.
11417 (handle_general_set): Call handle_btrace_general_set.
11418 (handle_qxfer_btrace): New function.
11419 (struct qxfer qxfer_packets[]): Add btrace entry.
11420 * inferiors.c (remove_thread): Disable btrace.
11421 * linux-low: Include linux-btrace.h.
11422 (linux_low_enable_btrace): New function.
11423 (linux_low_read_btrace): New function.
11424 (linux_target_ops): Add btrace ops.
11425 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11426 Add srv_linux_btrace=yes.
11427 (x86_64-*-linux*): Add linux-btrace.o.
11428 Add srv_linux_btrace=yes.
11429 * configure.ac: Define HAVE_LINUX_BTRACE.
11430 * config.in: Regenerated.
11431 * configure: Regenerated.
11432
5cc22e4c
MM
114332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11434
11435 * server.c (handle_qxfer): Preserve error message if -3 is
11436 returned.
11437 (qxfer): Document the -3 return value.
11438
7c97f91e
MM
114392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11440
11441 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11442 (linux_btrace_h): New variable.
11443 (linux-btrace.o): New rule.
11444
be9a119c 114452013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11446 Hafiz Abid Qadeer <abidh@codesourcery.com>
11447
11448 * tracepoint.c (trace_buffer_size): New global.
11449 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11450 (init_trace_buffer): Change to one-argument function. Allocate
11451 trace buffer memory.
11452 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11453 handle QTBuffer:size packet.
11454 (cmd_bigqtbuffer_size): New function.
11455 (initialize_tracepoint): Call init_trace_buffer with
11456 DEFAULT_TRACE_BUFFER_SIZE.
11457 * server.c (handle_query): Add QTBuffer:size in the
11458 supported packets.
11459
e64f7499
YQ
114602013-03-07 Yao Qi <yao@codesourcery.com>
11461
11462 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11463 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11464 of -1.
11465 (cmd_qtsp): Adjust condition. Do post increment.
11466 Set cur_action and cur_step_action back to 0.
11467
f0ae6fc3
PA
114682013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11469
11470 PR server/15236
11471 * linux-low.c (linux_write_memory): Return early success if LEN is
11472 zero.
11473
b5b0b0af
CV
114742013-03-05 Corinna Vinschen <vinschen@redhat.de>
11475
334ad4a8 11476 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 11477
589bc927
TT
114782013-02-28 Tom Tromey <tromey@redhat.com>
11479
11480 * configure.ac: Invoke AC_SYS_LARGEFILE.
11481 * configure, config.in: Rebuild.
11482
dfe07582
CV
114832013-02-28 Corinna Vinschen <vinschen@redhat.com>
11484
11485 * win32-low.c: Throughout, fix format strings and casts of
11486 printf-like functions to avoid type related warnings on all
11487 platforms.
11488 (get_child_debug_event): Print dwDebugEventCode as hex since
11489 that's how it's usually documented.
11490
736cd585
YQ
114912013-02-28 Yao Qi <yao@codesourcery.com>
11492
11493 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11494 pulongest.
11495
e1f58301
JW
114962013-02-27 Jiong Wang <jiwang@tilera.com>
11497
11498 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11499 (reg-tilegx32.c): New rule.
11500 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11501 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11502 different register info initializer according to elf class.
11503 (init_registers_tilgx32): New function. The tilegx32 register info
11504 initializer.
11505 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11506 (tile_store_gregset): Likewise.
11507
d171ca78
YQ
115082013-02-27 Yao Qi <yao@codesourcery.com>
11509
11510 * server.c (process_point_options): Print debug message when
11511 debug_threads is true.
11512
282bbdf3
YQ
115132013-02-26 Yao Qi <yao@codesourcery.com>
11514
11515 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11516
aca22551
PA
115172013-02-19 Pedro Alves <palves@redhat.com>
11518 Kai Tietz <ktietz@redhat.com>
11519
11520 PR gdb/15161
11521
11522 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11523 instead of strtoul to extract address from packet.
11524 (process_serial_event) <'z'>: Likewise.
11525
4f3cee1c
YQ
115262013-02-18 Yao Qi <yao@codesourcery.com>
11527
11528 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11529
8e1d55a3
PA
115302013-02-14 Pedro Alves <palves@redhat.com>
11531
11532 Plug memory leak.
11533
11534 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11535 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11536
458820da
PA
115372013-02-14 Pedro Alves <palves@redhat.com>
11538
11539 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11540
baea0dae
PA
115412013-02-14 Pedro Alves <palves@redhat.com>
11542
11543 * tracepoint.c (save_string): Delete.
11544 (add_tracepoint_action): Use savestring instead of save_string.
11545
0b1afbb3
PA
115462013-02-12 Pedro Alves <palves@redhat.com>
11547
11548 * linux-xtensa-low.c: Ditto.
11549 * xtensa-xtregs.c: Ditto.
11550
8a4ac37e
PA
115512013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11552
11553 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11554 thread_db.
11555
148de6bb
MS
115562013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11557
11558 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11559 aarch64_num_wp_regs and aarch64_num_bp_regs to
11560 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11561
55fac6e0
MS
115622013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11563
11564 * linux-aarch64-low.c (ps_get_thread_area): Replace
11565 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11566
176eb98c
MS
115672013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11568 Marcus Shawcroft <marcus.shawcroft@arm.com>
11569 Nigel Stephens <nigel.stephens@arm.com>
11570 Yufeng Zhang <yufeng.zhang@arm.com>
11571
11572 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11573 (aarch64.c, aarch64-without-fpu.c): New targets.
11574 * configure.srv (aarch64*-*-linux*): New.
11575 * linux-aarch64-low.c: New file.
11576
56f7af9c
MS
115772013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11578
43aaf8b6 11579 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
11580 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11581 (dequeue_one_deferred_signal, linux_resume_one_thread)
11582 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11583 (linux_tracefork_grandchild, linux_test_for_tracefork)
11584 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11585 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11586 where the argument is 0.
11587
60f662b0
YQ
115882013-01-25 Yao Qi <yao@codesourcery.com>
11589
11590 * event-loop.c: Include "queue.h".
11591 (gdb_event_p): New typedef.
11592 (struct gdb_event) <next_event>: Remove.
11593 (event_queue): Change to QUEUE(gdb_event_p).
11594 (async_queue_event): Remove.
11595 (gdb_event_xfree): New.
11596 (initialize_event_loop): New.
11597 (process_event): Use API from QUEUE.
11598 (wait_for_event): Likewise.
11599 * server.c (main): Call initialize_event_loop.
11600 * server.h (initialize_event_loop): Declare.
11601
5ae4861a
YQ
116022013-01-18 Yao Qi <yao@codesourcery.com>
11603
11604 * ax.h (struct eval_agent_expr_context): New.
11605 (gdb_eval_agent_expr): Update declaration.
11606 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11607 TFRAME. Add new argument CTX.
11608 * server.h (struct eval_agent_expr_context): Declare.
11609 (agent_mem_read, agent_tsv_read): Update declaration.
11610 (agent_mem_read_string): Likewise.
11611 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11612 (add_traceframe_block): Add new argument TPOINT.
11613 Increase TPOINT->traceframe_usage.
11614 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11615 eval_tracepoint_agent_expr.
11616 (condition_true_at_tracepoint): Likewise.
11617 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11618 (agent_mem_read_string, agent_tsv_read): Likewise.
11619
85e00e85
YQ
116202013-01-16 Yao Qi <yao@codesourcery.com>
11621
11622 * linux-low.c (linux_resume_one_lwp): Don't check
11623 'lwp->bp_reinsert != 0'.
11624
4039cf45
JB
116252013-01-07 Joel Brobecker <brobecker@adacore.com>
11626 Pedro Alves <palves@redhat.com>
11627
11628 * lynx-low.c (ptrace_request_to_str): Define a temporary
11629 macro and use it to simplify this function's implementation.
11630
9044dee2
JB
116312013-01-07 Joel Brobecker <brobecker@adacore.com>
11632
11633 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11634 sets errno.
11635
e6352c8f
JB
116362013-01-07 Joel Brobecker <brobecker@adacore.com>
11637
11638 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11639
50681a27
JB
116402013-01-07 Joel Brobecker <brobecker@adacore.com>
11641
11642 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11643
3f6e77ef
JB
116442013-01-07 Joel Brobecker <brobecker@adacore.com>
11645
11646 * lynx-low.c (lynx_resume): Use the resume_info parameter
11647 to determine the ptid for the lynx_ptrace call, unless
11648 it is equal to minus_one_ptid, in which case we use the
11649 ptid of the current_inferior.
11650 (lynx_wait_1): After having received a thread create/exit
11651 event, resume the inferior's execution using the signaling
11652 thread's ptid, rather than the old ptid.
11653
7fda33ae
JB
116542013-01-07 Joel Brobecker <brobecker@adacore.com>
11655
11656 * lynx-low.c (lynx_resume): Delete variable ret.
11657
b9786c74
JB
116582013-01-01 Joel Brobecker <brobecker@adacore.com>
11659
11660 * gdbreplay.c (gdbreplay_version): Update copyright year.
11661 * server.c (gdbserver_version): Likewise.
11662
8b93d60f
JB
116632012-12-17 Joel Brobecker <brobecker@adacore.com>
11664
11665 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11666 new thread.
11667
037335a7
JB
116682012-12-17 Joel Brobecker <brobecker@adacore.com>
11669
11670 * lynx-low.c (ptrace_request_to_str): Add handling for
11671 PTRACE_GETTRACESIG.
11672
52d4cbd8
JB
116732012-12-17 Joel Brobecker <brobecker@adacore.com>
11674
11675 * lynx-low.c (lynx_attach): Delete variable new_process.
11676
ab8f6ca9
JB
116772012-12-17 Joel Brobecker <brobecker@adacore.com>
11678
11679 * lynx-low.c (lynx_create_inferior): Delete variable
11680 new_process.
11681
78cbc024
JB
116822012-12-17 Joel Brobecker <brobecker@adacore.com>
11683
11684 * lynx-low.c (ptrace_request_to_str): Do not handle
11685 PTRACE_GETTHREADLIST if this macro does not exist.
11686
14a00470
YQ
116872012-12-15 Yao Qi <yao@codesourcery.com>
11688
11689 * Makefile.in (OBS): Add notif.o.
11690 * notif.c, notif.h: New.
11691 * server.c: Include "notif.h".
11692 (struct vstop_notif) <next>: Remove.
11693 <base>: New field.
11694 (queue_stop_reply): Update.
11695 (push_event, send_next_stop_reply): Remove.
11696 (discard_queued_stop_replies): Update.
11697 (notif_stop): New variable.
11698 (handle_v_stopped): Remove.
11699 (handle_v_requests): Don't call handle_v_stopped. Call
11700 handle_ack_notif instead.
11701 (queue_stop_reply_callback): Call notif_event_enque instead
11702 of queue_stop_reply.
11703 (handle_status): Don't call send_next_stop_reply, call
11704 notif_write_event instead.
11705 (kill_inferior_callback): Likewise.
11706 (detach_or_kill_inferior_callback): Likewise.
11707 (main): Call initialize_notif.
11708 (process_serial_event): Call QUEUE_is_empty.
11709 (handle_target_event): Call notif_push instead of push event.
11710 * server.h (push_event): Remove declaration.
11711
61c125b9
TT
117122012-12-10 Tom Tromey <tromey@redhat.com>
11713
11714 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
11715 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
11716 macros.
11717 (.c.o): Rewrite.
11718 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
11719 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
11720 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
11721 (amd64-linux-ipa.o, ax.o): Rewrite.
11722 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
11723 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
11724 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
11725 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
11726 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
11727 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
11728 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
11729 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
11730 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
11731 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
11732 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
11733 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
11734 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
11735 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
11736 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11737 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11738 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11739 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11740 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11741 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11742 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11743 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11744 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11745 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11746 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11747 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11748 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11749 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11750 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11751 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11752 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11753 (reg-tilegx.o): Remove.
11754 (all_object_files): New macro.
11755 Include .deps files.
11756 * aclocal.m4, configure: Rebuild.
11757 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11758 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11759 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11760
e90e9ad9
TT
117612012-12-05 Tom Tromey <tromey@redhat.com>
11762
11763 PR gdb/14917:
11764 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11765
02d403bf 117662012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
11767
11768 * configure.ac: Check for linux/perf_event.h.
11769 * config.in: Regenerated.
11770 * configure: Regenerated.
11771
0270a750
PA
117722012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11773
11774 * hostio.c (handle_readlink): Decrease buffer size
11775 parameter passed to readlink by one byte.
11776
8c29b58e
YQ
117772012-11-26 Yao Qi <yao@codesourcery.com>
11778
11779 * configure.ac (build_warnings): Append '-Wempty-body'.
11780 * configure: Regenerated.
11781 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11782 body.
11783
8bdce1ff
PM
117842012-11-15 Pierre Muller <muller@sourceware.org>
11785
11786 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11787 * config.in: Regenerate.
11788 * configure: Regenerate.
11789 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11790 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11791 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11792 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11793 header.
11794 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11795 instead of <sys/wait.h> header.
11796 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11797
02d403bf 117982012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
11799
11800 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11801 (various make rules): Remove -DGDBSERVER
11802
fbd5db48
YQ
118032012-11-09 Yao Qi <yao@codesourcery.com>
11804
11805 * spu-low.c (current_ptid): Move it to ..
11806 * gdbthread.h: ... here. New.
11807 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11808 * server.c (myresume, process_serial_event): Likewise.
11809 * thread-db.c (thread_db_find_new_threads): Likewise.
11810 * tracepoint.c (run_inferior_command): Likewise.
11811
b3dc46ff
AB
118122012-10-01 Andrew Burgess <aburgess@broadcom.com>
11813
11814 * server.c (handle_search_memory_1): Include access length in
11815 warning message.
11816
07c04788
HPN
118172012-09-05 Michael Brandt <michael.brandt@axis.com>
11818
11819 * linux-crisv32-low.c: Fix compile errors.
11820
918d227b
YQ
118212012-09-04 Yao Qi <yao@codesourcery.com>
11822
11823 * tracepoint.c (cmd_qtsv): Adjust debug message.
11824 Don't check CUR_TPOINT.
11825
18c1b81a
YQ
118262012-08-28 Yao Qi <yao@codesourcery.com>
11827
11828 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11829 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11830 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11831 Remove declarations of xmalloc, xreallloc, xstrdup and
11832 freeargv.
11833 * Makefile.in (libiberty_h): New.
11834 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11835 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11836
dc82f37b
YQ
118372012-08-23 Yao Qi <yao@codesourcery.com>
11838
11839 * server.h: Remove declaration of 'xsnprintf'.
11840
406b1477
KS
118412012-08-22 Keith Seitz <keiths@redhat.com>
11842
11843 * server.h: Include build-gnulib-gbserver/config.h.
11844 * gdbreplay.c: Likewise.
11845
e6712ff1
DE
118462012-08-08 Doug Evans <dje@google.com>
11847
11848 * Makefile.in (SFILES): Add gdb_vecs.c.
11849 (OBS): Add gdb_vecs.o.
11850 (gdb_vecs_h, host_defs_h): New variables.
11851 (thread-db.o): Add $(gdb_vecs_h) dependency.
11852 (gdb_vecs.o): New rule.
11853 * thread-db.c: #include "gdb_vecs.h".
11854 (thread_db_load_search): Use a vector to iterate over path elements.
11855 Handle text appearing after "$pdir".
11856
11857 * configure.ac: Add check for strstr.
11858 * config.in: Regenerate.
11859 * configure: Regenerate.
11860
7c3270ae
UW
118612012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11862
11863 * hostio.c (handle_pread): If pread fails, fall back to attempting
11864 lseek/read.
11865 (handle_pwrite): Likewise for pwrite.
11866
b62e2b27
UW
118672012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11868
11869 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11870 between unsupported TYPE and unimplementable ADDR/LEN combination.
11871 (arm_insert_point): Act on new return value.
11872
78a99e91
PA
118732012-07-31 Pedro Alves <palves@redhat.com>
11874
11875 * server.c (process_point_options): Only skip tokens if we find
11876 one that is unrecognized. Don't treat 'X' specially while
11877 skipping unrecognized tokens.
11878
fcf303ab
UW
118792012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11880
11881 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11882 to 4-byte-align HW breakpoint addresses for Thumb.
11883
7255706c
YQ
118842012-07-27 Yao Qi <yao@codesourcery.com>
11885
11886 PR remote/14161.
11887
11888 * server.h: Declare gdb_agent_about_to_close.
11889 * target.c (kill_inferior): Include "agent.h".
11890 New. Send command 'kill'.
11891 * target.h (kill_inferior): Removed macro.
11892 * tracepoint.c (gdb_agent_about_to_close): New.
11893 (gdb_agent_helper_thread): Handle command 'close'.
11894 Wait endlessly until the inferior stops.
11895 Install gdb_agent_remove_socket to atexit hook.
11896 (agent_socket_name): New static variable.
11897 (gdb_agent_socket_init): Replace local variable 'name' with
11898 'agent_socket_name'.
11899 (gdb_agent_remove_socket): New.
11900
5a3f286f
YQ
119012012-07-27 Yao Qi <yao@codesourcery.com>
11902
11903 * server.c (process_point_options): Stop at 'X' when parsing.
11904
961bd387
ME
119052012-07-19 Michael Eager <eager@eagercon.com>
11906
a261b8f5 11907 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
11908 to hw_execute.
11909 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11910 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11911 hardware breakpoint.
11912
aa7c7447
JK
119132012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11914
11915 * gdbserver/linux-low.c (initialize_low): Call
11916 linux_ptrace_init_warnings.
11917
7f216e7c
DE
119182012-07-02 Doug Evans <dje@google.com>
11919
11920 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11921 pointer to int.
11922
d3ce09f5
SS
119232012-07-02 Stan Shebs <stan@codesourcery.com>
11924
11925 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11926 (ax.o): Add it to build rule.
11927 (ax-ipa.o): Ditto.
11928 (OBS): Add format.o.
11929 (IPA_OBS): Add format.o.
11930 * server.c (handle_query): Claim support for breakpoint commands.
11931 (process_point_options): Add command case.
11932 (process_serial_event): Leave running if there are printfs in
11933 effect.
11934 * mem-break.h (any_persistent_commands): Declare.
11935 (add_breakpoint_commands): Declare.
11936 (gdb_no_commands_at_breakpoint): Declare.
11937 (run_breakpoint_commands): Declare.
11938 * mem-break.c (struct point_command_list): New struct.
11939 (struct breakpoint): New field command_list.
11940 (any_persistent_commands): New function.
11941 (add_commands_to_breakpoint): New function.
11942 (add_breakpoint_commands): New function.
11943 (gdb_no_commands_at_breakpoint): New function.
11944 (run_breakpoint_commands): New function.
11945 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11946 locally.
11947 * ax.c: Include format.h.
11948 (ax_printf): New function.
11949 (gdb_eval_agent_expr): Add printf opcode.
11950
2f8f6aed
YQ
119512012-06-13 Yao Qi <yao@codesourcery.com>
11952
11953 * server.c (start_inferior): Remove duplicated writes to fields
11954 'last_resume_kind' and 'last_status' of 'current_inferior'.
11955
0c9070b3
YQ
119562012-06-12 Yao Qi <yao@codesourcery.com>
11957 Pedro Alves <palves@redhat.com>
11958
11959 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11960 comment.
11961 * server.c (handle_v_cont): Extend comment.
11962
c52daf70
YQ
119632012-06-11 Yao Qi <yao@codesourcery.com>
11964
11965 * linux-low.c (linux_attach): Add 'static'.
11966
d38bbb0a
YQ
119672012-06-06 Yao Qi <yao@codesourcery.com>
11968
11969 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11970
89dc0afd
JK
119712012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11972
11973 Fix gcc -flto compilation warning.
11974 * server.c (main): Make variable multi_mode and attach volatile.
11975
75f62ce7
TJB
119762012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11977
11978 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11979 if the platform doesn't know about it.
11980
65f479b6
PA
119812012-05-30 Jeff Kenton <jkenton@tilera.com>
11982
11983 * Makefile.in (SFILES): Add linux-tile-low.c.
11984 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11985 * configure.srv: Handle tilegx-*-linux*.
11986 * linux-tile-low.c: New file.
11987
0c5bf5a9
JK
119882012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11989
11990 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11991
a493e3e2
PA
119922012-05-24 Pedro Alves <palves@redhat.com>
11993
11994 PR gdb/7205
11995
43aaf8b6 11996 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 11997
2ea28649
PA
119982012-05-24 Pedro Alves <palves@redhat.com>
11999
12000 PR gdb/7205
12001
12002 Replace target_signal with gdb_signal throughout.
12003
8d409d16
MR
120042012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12005
12006 * linux-low.c (linux_store_registers): Avoid the copying sequence
12007 when no data has been retrieved by ptrace.
12008
23512c01
MGD
120092012-05-22 Will Deacon <will.deacon@arm.com>
12010
12011 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12012 Include asm/ptrace.h.
12013 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12014 already defined.
12015
4934b29e
MR
120162012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12017
12018 * linux-low.c (linux_store_registers): Don't re-retrieve data
12019 with ptrace that has already been obtained from /proc. Always
12020 copy any data retrieved with ptrace to the buffer supplied.
12021
bde24c0a
PA
120222012-05-11 Yao Qi <yao@codesourcery.com>
12023 Pedro Alves <palves@redhat.com>
12024
12025 * linux-low.c (enum stopping_threads_kind): New.
12026 (stopping_threads): Change type to `enum stopping_threads_kind'.
12027 (handle_extended_wait): If stopping and suspending threads, leave
12028 the new_lwp suspended too.
12029 (linux_wait_for_event): Adjust.
12030 (stop_all_lwps): Set `stopping_threads' to
12031 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12032 whether we're suspending threads or just stopping them. Assert no
12033 recursion happens.
12034
623b6bdf
YQ
120352012-04-29 Yao Qi <yao@codesourcery.com>
12036
12037 * server.h: Move some code to ...
12038 * gdbthread.h: ... here. New.
12039 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12040 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12041 (nto-low.o, win32-low.o): Likewise.
12042 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12043 * regcache.c, remote-utils.c, server.c: Likewise.
12044 * target.c, tracepoint.c, win32-low.c: Likewise.
12045
f15f9948
TJB
120462012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12047
12048 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12049 (PTRACE_ARG4_TYPE): Likewise.
12050 (PTRACE_XFER_TYPE): Likewise.
12051 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12052 ptrace to PTRACE_ARG3_TYPE.
12053 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12054 (PTRACE_ARG4_TYPE): Likewise.
12055 (PTRACE_XFER_TYPE): Likewise.
12056 (linux_detach_one_lwp): Cast fourth argument of
12057 ptrace to long then PTRACE_ARG4_TYPE.
12058 (regsets_fetch_inferior_registers): Cast third argument of
12059 ptrace to long then PTRACE_ARG3_TYPE.
12060 (regsets_store_inferior_registers): Likewise.
12061
38ea300a
PA
120622012-04-20 Pedro Alves <palves@redhat.com>
12063
12064 * configure: Regenerate.
12065
c971b7fa
PA
120662012-04-19 Pedro Alves <palves@redhat.com>
12067
43aaf8b6 12068 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 12069 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
12070 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12071 (all, install-only, uninstall, clean-info, all-lib, clean): No
12072 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12073 (maintainer-clean realclean distclean): Use subdir_do.
12074 (subdir_do): New.
12075 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 12076 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
12077 * acinclude.m4: Include acx_configure_dir.m4.
12078 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12079 calls. Call AC_PROG_RANLIB. Configure gnulib using
12080 ACX_CONFIGURE_DIR.
12081 (GNULIB): New.
12082 (GNULIB_STDINT_H): Adjust.
12083 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12084 * gdbreplay.c: Include build-gnulib/config.h.
12085 * server.h: Likewise.
12086 * aclocal.m4: Regenerate.
12087 * config.in: Regenerate.
12088 * configure: Regenerate.
c971b7fa 12089
809277f8
PA
120902012-04-19 Pedro Alves <palves@redhat.com>
12091
12092 * Makefile.in (LIBGNU, INCGNU): Adjust.
12093 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12094 (all, install-only, uninstall, clean-info, all-lib, clean)
12095 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12096 * configure.ac: Adjust AC_OUTPUT output.
12097 * aclocal.m4: Regenerate.
12098 * configure: Regenerate.
12099
fd9bb8b8
PA
121002012-04-19 Pedro Alves <palves@redhat.com>
12101
12102 * Makefile.in (generated_files): New.
12103 (server_h): Remove the explicit dependency on config.h, and depend
12104 on $generated_files.
12105
1c298c66
PA
121062012-04-19 Pedro Alves <palves@redhat.com>
12107
12108 * Makefile.in (INCGNU): Add -Ignulib.
12109
57c4b50b
PA
121102012-04-19 Pedro Alves <palves@redhat.com>
12111
12112 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12113 (INCGNU): ... this, and spell out -I here.
12114 (GNULIB_LIB): Rename to ...
12115 (LIBGNU): ... this.
12116 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12117
1030e047
PA
121182012-04-19 Pedro Alves <palves@redhat.com>
12119
12120 * config.in: Regenerate.
12121
447d4319
PA
121222012-04-19 Pedro Alves <palves@redhat.com>
12123
12124 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12125 * server.h (memmem): Remove declaration.
12126 * config.in: Regenerate.
12127 * configure: Regenerate.
12128
aad9eab9
YQ
121292012-04-19 Yao Qi <yao@codesourcery.com>
12130
12131 * Makefile.in (SFILES): Add common/vec.c.
12132 (OBS): Add vec.o.
12133 (vec.o): New rule.
12134
3e10640f
YQ
121352012-04-19 Yao Qi <yao@codesourcery.com>
12136
12137 * remote-utils.c (prepare_resume_reply): Replace with macro
12138 target_core_of_thread.
12139 * server.c (handle_qxfer_threads_proper): Likewise.
12140 * target.h (traget_core_of_thread): New macro.
12141
71622373
PA
121422012-04-18 Pedro Alves <palves@redhat.com>
12143
12144 * aclocal.m4: Regenerate.
12145 * configure: Regenerate.
12146
80d26939
YQ
121472012-04-16 Yao Qi <yao@codesourcery.com>
12148
12149 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12150 duplicated on address.
12151
42476b70
YQ
121522012-04-16 Yao Qi <yao@codesourcery.com>
12153
12154 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12155 (struct tracepoint_action_ops) <send>: New field.
12156 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12157 (agent_expr_send, x_tracepoint_action_send): New.
12158 (l_tracepoint_action_send): New.
12159 (cmd_qtdp): Download and install tracepoint
12160 according to `use_agent'.
12161 (run_inferior_command): Add one more parameter `len'.
12162 Update callers.
12163 (tracepoint_send_agent): New.
12164 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12165
7bc83639
YQ
121662012-04-16 Yao Qi <yao@codesourcery.com>
12167
12168 * tracepoint.c (download_tracepoints): Moved to ...
12169 (cmd_qtstart): ... here.
12170
5f18041e
YQ
121712012-04-14 Yao Qi <yao@codesourcery.com>
12172
12173 * tracepoint.c: Include inttypes.h.
12174 (struct collect_memory_action): Use sized types.
12175 (struct tracepoint): Likewise.
12176 (cmd_qtdp, stop_tracing): Update print specifiers.
12177 (cmd_qtp, response_tracepoint): Likewise.
12178 (collect_data_at_tracepoint): Likewise.
12179 (collect_data_at_step): Likewise.
12180
55a8c076
YQ
121812012-04-14 Yao Qi <yao@codesourcery.com>
12182
12183 Import gnulib module inttypes.
12184 * aclocal.m4, config.in, configure: Regenerated.
12185
dc750257
YQ
121862012-04-14 Yao Qi <yao@codesourcery.com>
12187
12188 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12189 Makefile and config.status at last.
12190
0ab5faf9
YQ
121912012-04-13 Yao Qi <yao@codesourcery.com>
12192
12193 * tracepoint.c: Include stdint.h unconditionally.
12194
18f5fd81
TJB
121952012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12196
12197 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12198 on BFD_HAVE_SYS_PROCFS_TYPE.
12199 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12200 * configure: Regenerate.
12201 * config.in: Likewise.
12202
4d47af5c
L
122032012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12204
12205 * Makefile.in (clean): Also remove x32.c x32-linux.c
12206 x32-avx.c x32-avx-linux.c.
12207 (x32.o): New target.
12208 (x32.c): Likewise.
12209 (x32-linux.o): Likewise.
12210 (x32-linux.c): Likewise.
12211 (x32-avx.o): Likewise.
12212 (x32-avx.c): Likewise.
12213 (x32-avx-linux.o): Likewise.
12214 (x32-avx-linux.c): Likewise.
12215
12216 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12217 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12218 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12219 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12220 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12221 i386/x32-avx-linux.xml.
12222
12223 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12224 (init_registers_x32_avx_linux): Likwise.
12225 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12226 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12227
ecedbe58
PA
122282012-04-13 Pedro Alves <palves@redhat.com>
12229
12230 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12231 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12232 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12233 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12234 the sub-make.
12235
c92b5177
L
122362012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12237
12238 * linux-x86-low.c (compat_x32_clock_t): New.
12239 (compat_x32_siginfo_t): Likewise.
12240 (compat_x32_siginfo_from_siginfo): Likewise.
12241 (siginfo_from_compat_x32_siginfo): Likewise.
12242 (linux_is_elf64): Likewise.
12243 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12244 and siginfo_from_compat_x32_siginfo for x32.
12245 (x86_arch_setup): Set linux_is_elf64.
12246
214d508e
L
122472012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12248
12249 PR gdb/13969
12250 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12251 e_machine field.
12252 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12253 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12254 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12255 compatible with process.
12256
c9a1864a
YQ
122572012-04-12 Yao Qi <yao@codesourcery.com>
12258
12259 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12260 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12261 (install-only, install-info, clean): Handle sub dir gnulib.
12262 (all-lib, am--refresh): New targets.
12263 (memmem.o): Remove target.
12264 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12265 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12266 (AC_REPLACE_FUNCS): Remove memmem.
12267 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12268 (AC_OUTPUT): Generate Makefile in gnulib/.
12269 * aclocal.m4, config.in, configure: Regenerated.
12270
367ba2c2
MR
122712012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12272
12273 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12274
9d236627
PA
122752012-04-05 Pedro Alves <palves@redhat.com>
12276
12277 -Werror=strict-aliasing
12278
12279 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12280 pointer.
12281
111217b3
PA
122822012-04-04 Pedro Alves <palves@redhat.com>
12283
12284 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12285 (sparc_store_gregset_from_stack, sparc_store_gregset)
12286 (sparc_breakpoint_at): Fix formatting.
12287
8365dcf5
TJB
122882012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12289
12290 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12291 are available.
12292 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12293 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12294 * config.in: Regenerate.
12295 * configure: Likewise.
12296
689cc2ae
PA
122972012-03-29 Pedro Alves <palves@redhat.com>
12298
12299 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12300 Correct ptrace arguments.
12301
c14dfd32
PA
123022012-03-28 Pedro Alves <palves@redhat.com>
12303
12304 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12305 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12306 (IA64_FR1_REGNUM): New defines.
12307 (ia64_fetch_register): New.
12308 (the_low_target): Install it.
12309 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12310 field.
12311 * linux-low.c (linux_fetch_registers): Try the
12312 the_low_target.fetch_register hook first.
12313
12314 * linux-arm-low.c (the_low_target): Adjust.
12315 * linux-bfin-low.c (the_low_target): Adjust.
12316 * linux-cris-low.c (the_low_target): Adjust.
12317 * linux-crisv32-low.c (the_low_target): Adjust.
12318 * linux-m32r-low.c (the_low_target): Adjust.
12319 * linux-m68k-low.c (the_low_target): Adjust.
12320 * linux-mips-low.c (the_low_target): Adjust.
12321 * linux-ppc-low.c (the_low_target): Adjust.
12322 * linux-s390-low.c (the_low_target): Adjust.
12323 * linux-sh-low.c (the_low_target): Adjust.
12324 * linux-sparc-low.c (the_low_target): Adjust.
12325 * linux-tic6x-low.c (the_low_target): Adjust.
12326 * linux-x86-low.c (the_low_target): Adjust.
12327 * linux-xtensa-low.c (the_low_target): Adjust.
12328
63c88e13
PA
123292012-03-26 Pedro Alves <palves@redhat.com>
12330
12331 * server.c (handle_qxfer_libraries): Don't bail early if
12332 the_target->qxfer_libraries_svr4 is not NULL.
12333
fb723180
PA
123342012-03-26 Pedro Alves <palves@redhat.com>
12335
12336 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12337
0afae3cf
PA
123382012-03-23 Pedro Alves <palves@redhat.com>
12339
12340 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12341 "library-list-svr4" element's start tag when the the DSO list is
12342 empty.
12343
485f1ee4
PA
123442012-03-23 Pedro Alves <palves@redhat.com>
12345
12346 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12347 a variable whose type size is the same as the inferior's pointer
12348 size.
12349
a5362b9a
TS
123502012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12351
12352 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12353 struct siginfo.
12354 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12355 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12356 * linux-low.h: Include <signal.h>.
12357 (struct siginfo): Remove forward declaration.
12358 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12359 struct siginfo.
12360
d226c142
MF
123612012-03-21 Mike Frysinger <vapier@gentoo.org>
12362
12363 * .gitignore: Ignore more files.
12364
122f36ef
PA
123652012-03-19 Pedro Alves <palves@redhat.com>
12366 Jan Kratochvil <jan.kratochvil@redhat.com>
12367
12368 * server.c (cont_thread, general_thread): Add describing comments.
12369 (start_inferior): Clear `cont_thread'.
12370 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12371 of a process.
12372
fc3e5175
YQ
123732012-03-15 Yao Qi <yao@codesourcery.com>
12374
12375 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12376 handling to ...
12377 (cmd_qtdp): ... here.
12378
8d0d92cd
YQ
123792012-03-15 Yao Qi <yao@codesourcery.com>
12380
12381 * tracepoint.c (struct tracepoint_action_ops): New.
12382 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12383 (m_tracepoint_action_download): New.
12384 (r_tracepoint_action_download): New.
12385 (x_tracepoint_action_download): New.
12386 (l_tracepoint_action_download): New.
12387 (add_tracepoint_action): Install `action->ops' according type.
12388 (download_tracepoint_1): Move code `download' function pointer
12389 of various tracepoint_action_ops.
12390
87b0bb13
JK
123912012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12392
12393 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12394 linux_ptrace_attach_warnings.
12395
5f572dec
JK
123962012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12397
12398 * Makefile.in (linux-ptrace.o): New.
12399 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12400 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12401 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12402 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12403 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12404 of these targets.
12405 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12406
f4647387
YQ
124072012-03-08 Yao Qi <yao@codesourcery.com>
12408 Pedro Alves <palves@redhat.com>
12409
12410 Fix PR server/13392.
12411 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12412 offset of JMP insn.
12413 * tracepoint.c (remove_tracepoint): New.
12414 (cmd_qtdp): Call remove_tracepoint when failed to install.
12415
9b224c5e
PA
124162012-03-07 Pedro Alves <palves@redhat.com>
12417
12418 * linux-low.c (get_detach_signal): New.
12419 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12420 Pass on pending signals to PTRACE_DETACH. Check the result of the
12421 ptrace call.
12422 * server.c (program_signals, program_signals_p): New.
12423 (handle_general_set): Handle QProgramSignals.
12424 * server.h (program_signals, program_signals_p): Declare.
12425
e237a7e2
JK
124262012-03-05 Pedro Alves <palves@redhat.com>
12427 Jan Kratochvil <jan.kratochvil@redhat.com>
12428
12429 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12430 New comment why.
12431
5808517f
YQ
124322012-03-03 Yao Qi <yao@codesourcery.com>
12433
12434 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12435 agent_look_up_symbols.
12436
58b4daa5
YQ
124372012-03-03 Yao Qi <yao@codesourcery.com>
12438
12439 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12440 (linux-x86-low.o): Likewise.
12441 * server.h: Remove in_process_agent_loaded.
12442 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12443 common/agent.c.
12444 Update callers.
12445
8ffcbaaf
YQ
124462012-03-03 Yao Qi <yao@codesourcery.com>
12447
12448 * tracepoint.c (gdb_agent_capability): New global.
12449 (in_process_agent_loaded_ust): Renamed to
12450 `in_process_agent_supports_ust'.
12451 Update callers.
12452 (in_process_agent_supports_ust): Call agent_capability_check.
12453 (clear_installed_tracepoints): Assert that agent supports
12454 agent.
12455
d1feda86
YQ
124562012-03-03 Yao Qi <yao@codesourcery.com>
12457
12458 * linux-low.c (linux_supports_agent): New.
12459 (linux_target_ops): Initialize field `supports_agent' with
12460 linux_supports_agent.
12461 * target.h (struct target_ops) <supports_agent>: New.
12462 (target_supports_agent): New macro.
12463 * server.c (handle_general_set): Handle packet 'QAgent'.
12464 (handle_query): Send `QAgent+'.
12465 * Makefile.in (server.o): Depends on agent.h.
12466
2fa291ac
YQ
124672012-03-03 Yao Qi <yao@codesourcery.com>
12468
12469 * Makefile.in (OBS): Add agent.o.
12470 Add new rule for agent.o.
12471 Track dependence of tracepoint.c on agent.h.
12472 * tracepoint.c (run_inferior_command_1):
12473 (run_inferior_command): Call agent_run_command.
12474 (gdb_ust_connect_sync_socket): Deleted. Move it to
12475 common/agent.c.
12476 (resume_thread, stop_thread): Likewise.
12477 (gdb_ust_socket_init): Renamed to ...
12478 (gdb_agent_socket_init): ... New.
12479 (gdb_ust_thread): Renamed to ...
12480 (gdb_agent_helper_thread): ... New.
12481 (gdb_ust_init): Move some code to ...
12482 (gdb_agent_init): ... here. New.
12483 [HAVE_UST]: Call gdb_ust_init.
12484 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12485 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12486 * config.in, configure: Regenerated.
12487
05044653
PA
124882012-03-02 Pedro Alves <palves@redhat.com>
12489
12490 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12491 * linux-low.c (struct simple_pid_list): New.
12492 (stopped_pids): New a struct simple_pid_list pointer.
12493 (add_to_pid_list, pull_pid_from_list): New.
12494 (handle_extended_wait): Don't assume the first signal new children
12495 report is SIGSTOP. Adjust call to pull_pid_from_list.
12496 (linux_wait_for_lwp): Adjust.
12497
8d00225b
YQ
124982012-03-02 Yao Qi <yao@codesourcery.com>
12499
12500 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12501 debug log.
12502
19560ba5
YQ
125032012-03-02 Yao Qi <yao@codesourcery.com>
12504
12505 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12506 `stop_pc' and `tpoint'. Update caller.
12507
1faeff08
MR
125082012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12509
12510 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12511 * linux-low.c (use_linux_regsets): New macro.
12512 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12513 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12514 (linux_register_in_regsets): New function.
12515 (usr_fetch_inferior_registers): Skip registers covered by
12516 regsets.
12517 (usr_store_inferior_registers): Likewise.
12518 (usr_fetch_inferior_registers): New macro.
12519 (usr_store_inferior_registers): Likewise.
12520 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12521 (linux_store_registers): Likewise.
12522 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12523 prototype.
12524 (init_registers_mips64_dsp_linux): Likewise.
12525 (init_registers_mips_linux): New macro.
12526 (init_registers_mips_dsp_linux): Likewise.
12527 (mips_dsp_num_regs): Likewise.
12528 (DSP_BASE, DSP_CONTROL): New fallback macros.
12529 (mips_base_regs): New macro.
12530 (mips_regmap): Use it. Fix the size.
12531 (mips_dsp_regmap): New variable.
12532 (mips_dsp_regset_bitmap): Likewise.
12533 (mips_arch_setup): New function.
12534 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12535 than mips_regmap.
12536 (mips_cannot_store_register): Likewise.
12537 (the_low_target): Update .arch_setup, .num_regs and .regmap
12538 initializers. Add .regset_bitmap initializer.
12539 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12540 initializer.
12541 * linux-bfin-low.c (the_low_target): Likewise.
12542 * linux-cris-low.c (the_low_target): Likewise.
12543 * linux-crisv32-low.c (the_low_target): Likewise.
12544 * linux-ia64-low.c (the_low_target): Likewise.
12545 * linux-m32r-low.c (the_low_target): Likewise.
12546 * linux-m68k-low.c (the_low_target): Likewise.
12547 * linux-ppc-low.c (the_low_target): Likewise.
12548 * linux-s390-low.c (the_low_target): Likewise.
12549 * linux-sh-low.c (the_low_target): Likewise.
12550 * linux-sparc-low.c (the_low_target): Likewise.
12551 * linux-tic6x-low.c (the_low_target): Likewise.
12552 * linux-x86-low.c (the_low_target): Likewise.
12553 * linux-xtensa-low.c (the_low_target): Likewise.
12554 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12555 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12556 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12557 srv_xmlfiles.
12558 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12559 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12560
c03e6ccc
YQ
125612012-02-29 Yao Qi <yao@codesourcery.com>
12562 Pedro Alves <palves@redhat.com>
12563
12564 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12565 `step_over_finished' is true.
12566
644cebc9
PA
125672012-02-27 Pedro Alves <palves@redhat.com>
12568
12569 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12570 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12571
c14d7ab2
PA
125722012-02-27 Pedro Alves <palves@redhat.com>
12573
12574 PR server/9684
12575 * linux-low.c (pid_is_stopped): New.
12576 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12577
412c89dd
LM
125782012-02-25 Luis Machado <lgustavo@codesourcery.com>
12579
12580 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12581 of conditions.
12582
b745defe
MR
125832012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12584
12585 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12586
9f3a5c85
LM
125872012-02-24 Luis Machado <lgustavo@codesourcery>
12588
12589 * server.c (handle_query): Advertise support for target-side
12590 breakpoint condition evaluation.
12591 (process_point_options): New function.
12592 (process_serial_event): When inserting a breakpoint, check for
12593 a target-side condition that should be evaluated.
12594
12595 * mem-break.c: Include regcache.h and ax.h.
12596 (point_cond_list_t): New data structure.
12597 (breakpoint) <cond_list>: New field.
12598 (find_gdb_breakpoint_at): Make non-static.
12599 (delete_gdb_breakpoint_at): Clear any target-side
12600 conditions.
12601 (clear_gdb_breakpoint_conditions): New function.
12602 (add_condition_to_breakpoint): Likewise.
12603 (add_breakpoint_condition): Likewise.
12604 (gdb_condition_true_at_breakpoint): Likewise.
12605 (gdb_breakpoint_here): Return result directly instead
12606 of going through a local variable.
12607
12608 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12609 (clear_gdb_breakpoint_conditions): Likewise.
12610 (add_breakpoint_condition): Likewise.
12611 (gdb_condition_true_at_breakpoint): Likewise.
12612
12613 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12614 (need_step_over_p): Take target-side breakpoint condition into
12615 consideration.
12616
5e1dc496
LM
126172012-02-24 Luis Machado <lgustavo@codesourcery>
12618
12619 * server.h: Include tracepoint.h.
12620 (agent_mem_read, agent_get_trace_state_variable_value,
12621 agent_set_trace_state_variable_value,
12622 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12623 get_set_tsv_func_addr): New prototypes.
12624
12625 * ax.h: New include file.
12626 * ax.c: New source file.
12627
12628 * tracepoint.c: Include ax.h.
12629 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12630 agent_expr, eval_result_type): Move to ax.h.
12631 (parse_agent_expr): Rename to ...
12632 (gdb_parse_agent_expr): ... this, make it non-static and move
12633 to ax.h.
12634 (unparse_agent_expr) Rename to ...
12635 (gdb_unparse_agent_expr): ... this, make it non-static and move
12636 to ax.h.
12637 (eval_agent_expr): Rename to ...
12638 (eval_tracepoint_agent_expr): ... this.
12639 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12640 forward declarations.
12641 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12642 (agent_get_trace_state_variable_value): New function.
12643 (agent_set_trace_state_variable_value): New function.
12644 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12645 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12646 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12647 (condition_true_at_tracepoint): Likewise.
12648 (parse_agent_expr): Rename to ...
12649 (gdb_parse_agent_expr): ... this and move to ax.c.
12650 (unparse_agent_expr): Rename to ...
12651 (gdb_unparse_agent_expr): ... this and move to ax.c.
12652 (gdb_agent_op_name): Move to ax.c.
12653 (eval_agent_expr): Rename to ...
12654 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12655 and move to ax.c.
12656 (eval_tracepoint_agent_expr): New function.
12657 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 12658 non-static.
5e1dc496
LM
12659 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12660 ax.c.
12661 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12662 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12663 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12664 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12665 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12666 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12667 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12668 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12669 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12670 (compile_bytecodes): Remove forward declaration.
12671 (is_goto_target): Move to ax.c.
12672 (compile_bytecodes): Move to ax.c and call
12673 agent_get_trace_state_variable_value (...) and
12674 agent_set_trace_state_variable_value (...).
12675
12676 * Makefile.in: Update ax.c and IPA dependencies.
12677
277e4e52
PA
126782012-02-24 Pedro Alves <palves@redhat.com>
12679
12680 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12681 (cmd_bigqtbuffer_circular): ... this. Only handle
12682 'QTBuffer:circular:'.
12683 (handle_tracepoint_general_set): Adjust.
12684
bf4c19f7
YQ
126852012-02-16 Yao Qi <yao@codesourcery.com>
12686
12687 * inferiors.c: Move code to ...
12688 * dll.c: .... here. New.
12689 * server.h: Declare clear_dlls.
12690 * Makefile.in (SFILES): Add dll.c.
12691 (OBS): Add dll.o
12692 (dll.o): New rule.
12693
d73f2619
YQ
126942012-02-11 Yao Qi <yao@codesourcery.com>
12695
12696 * server.c: (handle_monitor_command): Add a new parameter
12697 `own_buf'.
12698 (handle_query): Update caller.
12699
f8255c2a
JB
127002012-02-09 Joel Brobecker <brobecker@adacore.com>
12701
12702 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
12703 * configure, config.in: Regenerate.
12704 * hostio.c: Provide an alternate implementation if HAVE_READLINK
12705 is not defined.
12706
da84f473
PA
127072012-02-02 Pedro Alves <palves@redhat.com>
12708
12709 Try SIGKILL first, then PTRACE_KILL.
12710 * linux-low.c (linux_kill_one_lwp): New.
12711 (linux_kill_one_lwp): Rename to ...
12712 (kill_one_lwp_callback): ... this. Use the new
12713 linux_kill_one_lwp.
12714
e886a173
PA
127152012-02-02 Pedro Alves <palves@redhat.com>
12716
12717 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
12718 inferior.
12719
be07f1a2
PA
127202012-01-27 Pedro Alves <palves@redhat.com>
12721
12722 * linux-low.c (linux_child_pid_to_exec_file): Delete.
12723 (elf_64_file_p): Make static.
12724 (linux_pid_exe_is_elf_64_file): New.
12725 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
12726 Delete declarations.
12727 (linux_pid_exe_is_elf_64_file): Declare.
12728 * linux-x86-low.c (x86_arch_setup): Use
12729 linux_pid_exe_is_elf_64_file.
12730
d8301ad1
JK
127312012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12732
12733 * linux-low.c (linux_wait_for_event_1): Rename to ...
12734 (linux_wait_for_event): ... here and merge it with former
12735 linux_wait_for_event - new variable wait_ptid, use it.
12736 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12737
01b17894
PA
127382012-01-23 Pedro Alves <palves@redhat.com>
12739
12740 * server.c (main): Avoid yet another case of infinite loop while
12741 detaching/killing after a longjmp.
12742
e825046f
JK
127432012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12744
12745 Code cleanup.
12746 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12747
b9e7b9c3
UW
127482012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12749
12750 * hostio.c (handle_readlink): New function.
12751 (handle_vFile): Call it to handle "vFile:readlink" packets.
12752
901f9912
UW
127532012-01-20 Pedro Alves <palves@redhat.com>
12754 Ulrich Weigand <ulrich.weigand@linaro.org>
12755
12756 * server.c (handle_v_requests): Only support vAttach and vRun to
12757 start multiple processes when in extended protocol mode.
12758
fc1ab1a0
PA
127592012-01-17 Pedro Alves <palves@redhat.com>
12760
12761 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12762 memalign plus mprotect to allocate the scratch buffer.
12763
7d5d4e98
PA
127642012-01-13 Pedro Alves <palves@redhat.com>
12765
12766 * server.c (attach_inferior): Clear `cont_thread'.
12767
f128d5e9
PA
127682012-01-13 Pedro Alves <palves@redhat.com>
12769
12770 * server.c (main): Avoid infinite loop while detaching/killing
12771 after a longjmp.
12772
06db92f0
DE
127732012-01-09 Doug Evans <dje@google.com>
12774
12775 * server.c (start_inferior): Set last_ptid in --wrapper case.
12776
32d92999
YQ
127772012-01-06 Yao Qi <yao@codesourcery.com>
12778
12779 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12780 defined.
12781 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12782
5e0a92a9
YQ
127832012-01-04 Yao Qi <yao@codesourcery.com>
12784
12785 * tracepoint.c (cmd_qtdp): Print debug message
12786 for static tracepoint.
12787
ae639e8c
YQ
127882012-01-04 Yao Qi <yao@codesourcery.com>
12789
12790 * tracepoint.c (trace_vdebug): Differentiate debug message
12791 between gdbserver and IPA.
12792
f72429c5
YQ
127932012-01-03 Yao Qi <yao@codesourcery.com>
12794
12795 * tracepoint.c (tracepoint_was_hit): Don't collect for
12796 static tracepoint.
12797
12c3e59c
JB
127982012-01-02 Joel Brobecker <brobecker@adacore.com>
12799
12800 * terminal.h: Reformat copyright header.
12801
67827812
JB
128022012-01-02 Joel Brobecker <brobecker@adacore.com>
12803
12804 * server.c (gdbserver_version): Update copyright year.
12805 * gdbreplay.c (gdbreplay_version): Likewise.
12806
3e52c33d
JK
128072011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12808
12809 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12810
12811 Revert:
12812 2011-12-18 Hui Zhu <teawater@gmail.com>
12813 * linux-low.c (linux_create_inferior): Save return value to ret.
12814
66f1260e
HZ
128152011-12-18 Hui Zhu <teawater@gmail.com>
12816
12817 * linux-low.c (linux_create_inferior): Save return value to ret.
12818
e77616d7
DE
128192011-12-16 Doug Evans <dje@google.com>
12820
e7b06c57
DE
12821 * linux-low.c (linux_create_inferior): If stdio connection,
12822 redirect stdin from /dev/null, stdout to stderr.
12823 * remote-utils.c (remote_is_stdio): New static global.
12824 (remote_connection_is_stdio): New function.
12825 (remote_prepare): Handle stdio connection.
12826 (remote_open): Ditto.
12827 (remote_close): Don't close stdin for stdio connections.
12828 (read_prim,write_prim): New functions. Replace all calls to
12829 read/write to these.
12830 * server.c (main): Watch for "-" argument. Move call to
12831 remote_prepare before start_inferior.
12832 * server.h (STDIO_CONNECTION_NAME): New macro.
12833 (remote_connection_is_stdio): Declare.
12834
e77616d7
DE
12835 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12836 in debugging output.
12837
82067193
YQ
128382011-12-15 Yao Qi <yao@codesourcery.com>
12839
12840 * tracepoint.c: Include sys/syscall.h.
12841 (gdb_ust_thread): Remove preprocessor conditional.
12842
82bfbe7e
PA
128432011-12-14 Pedro Alves <pedro@codesourcery.com>
12844
12845 * linux-low.c (linux_detach_one_lwp): Call
12846 the_low_target.prepare_to_resume before detaching.
12847
712c6575
YQ
128482011-12-14 Yao Qi <yao@codesourcery.com>
12849
12850 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12851 of write.
12852
d54d1edf
YQ
128532011-12-14 Yao Qi <yao@codesourcery.com>
12854
12855 * i386-low.c (i386_low_stopped_data_address): Initialize local
12856 variable `control'.
12857
6210a125
PA
128582011-12-13 Pedro Alves <pedro@codesourcery.com>
12859
12860 PR remote/13492
12861
12862 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12863 DR_CONTROL unless necessary. Extend comments.
12864 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12865 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12866
2ece8244
YQ
128672011-12-13 Yao Qi <yao@codesourcery.com>
12868
12869 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12870 macros.
12871 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12872
784867a5
JK
128732011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12874
12875 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12876 Print new debug message for such case.
12877
6bf36717
JK
128782011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12879
12880 Fix overlapping memcpy.
12881 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12882 the read_inferior_memory transfer.
12883 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12884 write_inferior_memory transfer.
12885 (set_fast_tracepoint_jump): New variable buf. Use it for the
12886 read_inferior_memory and write_inferior_memory transfers.
12887 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12888 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12889 Use it for the write_inferior_memory transfer.
12890 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12891 buffers.
12892
50275556
MR
128932011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12894
12895 * linux-low.c (fetch_register, store_register): Make code
12896 consistent, fix formatting.
12897
7325beb4
MR
128982011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12899
12900 * linux-low.c (usr_store_inferior_registers): Factor out code
12901 to handle individual registers into...
12902 (store_register): ... this new function.
12903
c642a434
UW
129042011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12905
12906 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12907 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12908 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12909 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12910 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12911 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12912 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12913 (srv_xmlfiles): Add new XML files.
12914
12915 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12916 and <sys/uio.h>.
12917 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12918 (init_registers_s390_linux32v1): Add prototype.
12919 (init_registers_s390_linux32v2): Likewise.
12920 (init_registers_s390_linux64v1): Likewise.
12921 (init_registers_s390_linux64v2): Likewise.
12922 (init_registers_s390x_linux64v1): Likewise.
12923 (init_registers_s390x_linux64v2): Likewise.
12924 (s390_num_regs): Increment to 52.
12925 (s390_regmap): Add orig_r2 register.
12926 (s390_num_regs_3264): Increment to 68.
12927 (s390_regmap_3264): Add orig_r2 register.
12928 (s390_collect_ptrace_register): Handle orig_r2 register.
12929 (s390_supply_ptrace_register): Likewise.
12930 (s390_fill_last_break): New function.
12931 (s390_store_last_break): Likewise.
12932 (s390_fill_system_call): New function.
12933 (s390_store_system_call): Likewise.
12934 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12935 register sets.
12936 (s390_check_regset): New function.
12937 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12938 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12939 Update target_regsets for available register sets.
12940
2268b414
JK
129412011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12942 Jan Kratochvil <jan.kratochvil@redhat.com>
12943
12944 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12945 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12946 New.
12947 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12948 * linux-low.h (struct process_info_private): New member r_debug.
12949 * server.c (handle_qxfer_libraries): Call
12950 the_target->qxfer_libraries_svr4.
12951 (handle_qxfer_libraries_svr4): New function.
12952 (qxfer_packets): New entry "libraries-svr4".
12953 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12954 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12955 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12956 PACKET_qXfer_libraries_svr4.
12957
d6db1fab
UW
129582011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12959
12960 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12961 PSW address/mask between 8-byte and 16-byte formats.
12962 (s390_supply_ptrace_register): Likewise.
12963 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12964 basic addressing mode bit.
12965
242f5f1c
SS
129662011-11-24 Stan Shebs <stan@codesourcery.com>
12967
12968 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12969
f196051f
SS
129702011-11-17 Stan Shebs <stan@codesourcery.com>
12971
12972 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12973 (tracing_start_time): New global.
12974 (tracing_stop_time): New global.
12975 (tracing_user_name): New global.
12976 (tracing_notes): New global.
12977 (tracing_stop_note): New global.
12978 (cmd_qtstart): Set traceframe_usage, start_time.
12979 (stop_tracing): Set stop_time.
12980 (cmd_qtstatus): Report additional status.
12981 (cmd_qtp): New function.
12982 (handle_tracepoint_query): Call it.
12983 (cmd_qtnotes): New function.
12984 (handle_tracepoint_general_set): Call it.
12985 (get_timestamp): Rename from tsv_get_timestamp.
12986
405f8e94
SS
129872011-11-14 Stan Shebs <stan@codesourcery.com>
12988 Kwok Cheung Yeung <kcy@codesourcery.com>
12989
12990 * linux-x86-low.c (small_jump_insn): New.
12991 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12992 trampoline and error message, build a trampoline and issue a small
12993 jump instruction to it.
12994 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12995 trampoline and error message.
12996 (x86_get_min_fast_tracepoint_insn_len): New.
12997 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12998 * linux-low.h (struct linux_target_ops): Add arguments to
12999 install_fast_tracepoint_jump_pad operation, add new operation.
13000 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13001 arguments.
13002 (linux_get_min_fast_tracepoint_insn_len): New function.
13003 (linux_target_op): Add new operation.
13004 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13005 (gdb_trampoline_buffer_end): Ditto.
13006 (gdb_trampoline_buffer_error): Ditto.
13007 (struct ipa_sym_addresses): Add fields for new IPA variables.
13008 (symbol_list): Add entries for new IPA variables.
13009 (struct tracepoint): Add fields to hold the address range of the
13010 trampoline used by the tracepoint.
13011 (trampoline_buffer_head): New static variable.
13012 (trampoline_buffer_tail): Ditto.
13013 (claim_trampoline_space): New function.
13014 (have_fast_tracepoint_trampoline_buffer): New function.
13015 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13016 structure.
13017 (install_fast_tracepoint): Ditto, also add error buffer argument.
13018 (cmd_qtminftpilen): New function.
13019 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13020 (fast_tracepoint_from_trampoline_address): New function.
13021 (fast_tracepoint_collecting): Handle trampoline as part of jump
13022 pad space.
13023 (set_trampoline_buffer_space): New function.
13024 (initialize_tracepoint): Initialize new IPA variables.
13025 * target.h (struct target_ops): Add arguments to
13026 install_fast_tracepoint_jump_pad operation, add new
13027 get_min_fast_tracepoint_insn_len operation.
13028 (target_get_min_fast_tracepoint_insn_len): New.
13029 (install_fast_tracepoint_jump_pad): Add arguments.
13030 * server.h (IPA_BUFSIZ): Define.
13031 * linux-i386-ipa.c: Include extra header files.
13032 (initialize_fast_tracepoint_trampoline_buffer): New function.
13033 (initialize_low_tracepoint): Call it.
13034 * server.h (set_trampoline_buffer_space): Declare.
13035 (claim_trampoline_space): Ditto.
13036 (have_fast_tracepoint_trampoline_buffer): Ditto.
13037
1e4d1764
YQ
130382011-11-14 Yao Qi <yao@codesourcery.com>
13039
13040 * server.c (handle_query): Handle InstallInTrace for qSupported.
13041 * tracepoint.c (add_tracepoint): Sort list.
13042 (install_tracepoint, download_tracepoint): New.
13043 (cmd_qtdp): Call them to install and download tracepoints.
13044 (sort_tracepoints): Removed.
13045 (cmd_qtstart): Update.
13046
5c73ff4e
YQ
130472011-11-14 Yao Qi <yao@codesourcery.com>
13048
13049 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13050 * mem-break.h: Declare.
13051 * tracepoint.c (cmd_qtstart): Move some code to ...
13052 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13053 New.
13054 (download_tracepoints): Move some code to ...
13055 (download_tracepoint_1): ... here. New.
13056
86a30030
YQ
130572011-11-08 Yao Qi <yao@codesourcery.com>
13058
13059 * remote-utils.c (relocate_instruction): A comment fix.
13060
8d26e50c
JB
130612011-11-07 Joel Brobecker <brobecker@adacore.com>
13062
13063 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13064 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13065 dr_status_mirror and dr_control_mirror from debug_reg_state.
13066 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13067 (i386_initial_stuff): Remove use of deleted globals.
13068 (i386_get_thread_context, i386_set_thread_context,
13069 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13070 from debug_reg_state.
13071
a59306a3
YQ
130722011-11-05 Yao Qi <yao@codesourcery.com>
13073
13074 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13075 address as TPOINT's.
13076
3065dfb6
SS
130772011-11-02 Stan Shebs <stan@codesourcery.com>
13078
13079 * tracepoint.c (agent_mem_read_string): New function.
13080 (eval_agent_expr): Call it for tracenz.
13081 * server.c (handle_query): Report support for tracenz.
13082
fd0d8c7c
YQ
130832011-11-02 Yao Qi <yao@codesourcery.com>
13084
13085 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13086
609086b1
YQ
130872011-11-02 Yao Qi <yao@codesourcery.com>
13088
13089 * target.h: Fix a typo in comment.
13090
b9fd1791
PA
130912011-10-31 Pedro Alves <pedro@codesourcery.com>
13092
13093 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13094 clobber the breakpoints' shadows with fast tracepoint jumps.
13095 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13096 * target.c (write_inferior_memory): Also pass MYADDR down to
13097 check_mem_write.
13098
03583c20
UW
130992011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13100
13101 * configure.ac: Check support for personality routine.
13102 * configure: Regenerate.
13103 * config.in: Likewise.
13104 * linux-low.c: Include <sys/personality.h>.
13105 Define ADDR_NO_RANDOMIZE if necessary.
13106 (linux_create_inferior): Disable address space randomization when
13107 forking inferior, if requested.
13108 (linux_supports_disable_randomization): New function.
13109 (linux_target_ops): Install it.
13110 * server.h (disable_randomization): Declare.
13111 * server.c (disable_randomization): New global variable.
13112 (handle_general_set): Handle QDisableRandomization.
13113 (handle_query): Likewise for qSupported.
13114 (main): Support --disable-randomization and --no-disable-randomization
13115 command line arguments.
13116 * target.h (struct target_ops): Add supports_disable_randomization.
13117 (target_supports_disable_randomization): New macro.
13118
723b724b
MF
131192011-09-29 Mike Frysinger <vapier@gentoo.org>
13120
13121 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13122 ifdef check.
13123 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13124 [!PT_GETDSBT] (target_loadmap): New definition.
13125 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13126 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13127 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13128 and PT_GETDSBT to LINUX_LOADMAP.
13129 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13130 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13131
55329a5c 131322011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
13133
13134 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13135 (arm_linux_hwbp_cap): New static variable.
13136 (arm_linux_get_hwbp_cap): Replace by ...
13137 (arm_linux_init_hwbp_cap): ... this new function.
13138 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13139 (arm_linux_get_hw_watchpoint_count): Likewise.
13140 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13141 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13142 (arm_prepare_to_resume): Use perror_with_name instead of error.
13143
55329a5c 131442011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
13145
13146 * linux-arm-low.c: Include <signal.h>.
13147 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13148 (struct arm_linux_hwbp_cap): New data type.
13149 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13150 (struct arm_linux_hw_breakpoint): New data type.
13151 (MAX_BPTS, MAX_WPTS): Define.
13152 (struct arch_process_info, struct arch_lwp_info): New data types.
13153 (arm_linux_get_hwbp_cap): New function.
13154 (arm_linux_get_hw_breakpoint_count): Likewise.
13155 (arm_linux_get_hw_watchpoint_count): Likewise.
13156 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13157 (arm_hwbp_control_initialize): Likewise.
13158 (arm_hwbp_control_is_enabled): Likewise.
13159 (arm_hwbp_control_is_initialized): Likewise.
13160 (arm_hwbp_control_disable): Likewise.
13161 (arm_linux_hw_breakpoint_equal): Likewise.
13162 (arm_linux_hw_point_initialize): Likewise.
13163 (struct update_registers_data): New data structure.
13164 (update_registers_callback: New function.
13165 (arm_insert_point): Likewise.
13166 (arm_remove_point): Likewise.
13167 (arm_stopped_by_watchpoint): Likewise.
13168 (arm_stopped_data_address): Likewise.
13169 (arm_new_process): Likewise.
13170 (arm_new_thread): Likewise.
13171 (arm_prepare_to_resume): Likewise.
13172 (the_low_target): Register arm_insert_point, arm_remove_point,
13173 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13174 arm_new_thread, and arm_prepare_to_resume.
13175
6b9801d4
SS
131762011-09-15 Stan Shebs <stan@codesourcery.com>
13177
13178 * server.h (struct emit_ops): Add compare-goto fields.
13179 * tracepoint.c (gdb_agent_op_sizes): New table.
13180 (emit_eq_goto): New function.
13181 (emit_ne_goto): New function.
13182 (emit_lt_goto): New function.
13183 (emit_le_goto): New function.
13184 (emit_gt_goto): New function.
13185 (emit_ge_goto): New function.
13186 (is_goto_target): New function.
13187 (compile_bytecodes): Recognize special cases of compare-goto
13188 combinations and call specialized emitters for them.
13189 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13190 (amd64_emit_ne_goto): New function.
13191 (amd64_emit_lt_goto): New function.
13192 (amd64_emit_le_goto): New function.
13193 (amd64_emit_gt_goto): New function.
13194 (amd64_emit_ge_goto): New function.
13195 (amd64_emit_ops): Add the new functions.
13196 (i386_emit_eq_goto): New function.
13197 (i386_emit_ne_goto): New function.
13198 (i386_emit_lt_goto): New function.
13199 (i386_emit_le_goto): New function.
13200 (i386_emit_gt_goto): New function.
13201 (i386_emit_ge_goto): New function.
13202 (i386_emit_ops): Add the new functions.
13203
bf15cbda
SS
132042011-09-08 Stan Shebs <stan@codesourcery.com>
13205
13206 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13207 (i386_emit_epilogue): Restore %ebx.
13208
943ca1dd
JZ
132092011-08-31 Jie Zhang <jzhang918@gmail.com>
13210
13211 * server.c (step_thread): Remove definition.
13212 (process_serial_event): Don't handle Hs.
13213 * server.h (step_thread): Remove declaration.
13214 * target.c (set_desired_inferior): Remove use of step_thread.
13215
e3deef73
LM
132162011-08-24 Luis Machado <lgustavo@codesourcery.com>
13217
13218 * linux-low.c: Include linux-procfs.h.
13219 (linux_attach_lwp_1): Update comments.
13220 (linux_attach): Scan for existing threads when attaching to a
13221 process that is the tgid.
13222 * Makefile.in: Update dependencies.
13223
13da1c97
LM
132242011-08-24 Luis Machado <lgustavo@codesourcery.com>
13225
13226 * configure.srv: Add linux-procfs.o dependencies.
13227
881127c9
YQ
132282011-08-14 Yao Qi <yao@codesourcery.com>
13229
13230 * target.h (struct target_ops): Fix indent.
13231 * win32-low.c (win32_target_ops): Fix comment.
13232
58dbd541
YQ
132332011-08-14 Andrew Jenner <andrew@codesourcery.com>
13234 Yao Qi <yao@codesourcery.com>
13235
13236 * Makefile.in (clean): Remove tic6x-*.c files.
13237 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13238 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13239 (tic6x-c64xp-linux.c): Likewise.
13240 * configure.srv: Add support for tic6x-*-uclinux.
13241 * linux-tic6x-low.c: New.
13242 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13243
78d85199
YQ
132442011-08-14 Andrew Stubbs <ams@codesourcery.com>
13245 Yao Qi <yao@codesourcery.com>
13246
13247 * target.h (struct target_ops): Add read_loadmap.
13248 * linux-low.c (struct target_loadseg): New type.
13249 (struct target_loadmap): New type.
13250 (linux_read_loadmap): New function.
13251 (linux_target_ops): Add linux_read_loadmap.
13252 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
13253 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13254 to NULL.
78d85199 13255
a959a88d
EZ
132562011-08-05 Eli Zaretskii <eliz@gnu.org>
13257
13258 * win32-low.c: Include <stdint.h>.
13259
1ced966e
PA
132602011-07-22 Pedro Alves <pedro@codesourcery.com>
13261
13262 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13263 to the inferior here.
13264 (i386_remove_aligned_watchpoint): Ditto.
13265 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13266 fit part of the watchpoint in the debug registers.
13267 (i386_update_inferior_debug_regs): New.
13268 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13269 registers, and only update the inferior on success.
13270 (i386_low_remove_watchpoint): Ditto.
13271
d26e3629
KY
132722011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13273
13274 * linux-low.c (compare_ints, unique, list_threads, show_process,
13275 linux_core_of_thread): Delete.
13276 (linux_target_ops): Change linux_core_of_thread to
13277 linux_common_core_of_thread.
13278 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13279 * utils.c (malloc_failure): Change type of argument.
13280 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13281 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13282 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13283 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13284 (IPA_OBJS): Add common-utils-ipa.o.
13285 (ptid_h, linux_osdata_h): New macros.
13286 (server_h): Add common/common-utils.h, common/xml-utils.h,
13287 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13288 common/ptid.h.
13289 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13290 ptid.o, buffer.o): New rules.
13291 (linux-low.o): Add common/linux-osdata.h as a dependency.
13292 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13293 * configure.ac: Add AC_HEADER_DIRENT check.
13294 * config.in: Regenerate.
13295 * configure: Regenerate.
13296 * remote-utils.c (xml_escape_text): Delete.
13297 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13298 buffer_xml_printf): Move to common/buffer.c.
13299 * server.c (main): Remove call to initialize_inferiors.
13300 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13301 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13302 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13303 internal_error, gdb_assert, gdb_assert_fail): Delete.
13304 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13305 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13306 common/buffer.h.
13307 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13308 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13309 initialize_inferiors): Delete.
13310
2275a1a7
PA
133112011-07-20 Pedro Alves <pedro@codesourcery.com>
13312
13313 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13314 symbol error.
13315
0a5b1e09
PA
133162011-05-31 Pedro Alves <pedro@codesourcery.com>
13317
13318 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13319 assertion.
13320 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13321
6938fd34
YQ
133222011-05-26 Yao Qi <yao@codesourcery.com>
13323
13324 * Makefile.in (thread-db.o): Track dependence to
13325 common/gdb_thread_db.h.
13326 * thread-db.c: include gdb_thread_db.h from right place.
13327
b481f9e0
TT
133282011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13329
13330 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13331 __FILE__ and __LINE__ to internal_error.
13332
98a5dd13
DE
133332011-05-13 Doug Evans <dje@google.com>
13334
13335 * thread-db.c (try_thread_db_load_from_sdir): New function.
13336 (try_thread_db_load_from_dir): New function.
13337 (thread_db_load_search): Handle $sdir, ignore $pdir.
13338 Remove trying of system directories if search of
13339 libthread-db-search-path fails, that is now done via $sdir.
13340
d248b706
KY
133412011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13342
13343 * server.c (handle_query): Add EnableDisableTracepoints to the list
13344 of supported features.
43aaf8b6 13345 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 13346 tracepoints.
43aaf8b6
PA
13347 (cmd_qtenable_disable): New.
13348 (cmd_qtstart): Install tracepoints even if disabled.
13349 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13350 receiving a QTEnable or QTDisable packet.
13351 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13352 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13353 tracepoints.
13354 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 13355
84e578fb
DE
133562011-05-10 Doug Evans <dje@google.com>
13357
13358 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13359
71f55dd8
DE
133602011-05-04 Doug Evans <dje@google.com>
13361
13362 * linux-low.c (linux_join): Skip process lookup.
13363 * spu-low.c (spu_join): Ditto.
13364 * server.c (join_inferiors_callback): Delete.
13365 (process_serial_event): For 'D' packet (detach) call join_inferior
13366 directly.
13367
4d393d60
JM
133682011-05-04 Joseph Myers <joseph@codesourcery.com>
13369
13370 * README: Don't mention xscale*-*-linux*.
13371 * configure.srv (xscale*-*-linux*): Don't handle target.
13372
b00ad6ff
NF
133732011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13374
13375 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13376 casting pointers.
13377 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13378 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13379 (i386_emit_void_call_2): Likewise.
13380
af96c192
YQ
133812011-04-26 Yao Qi <yao@codesourcery.com>
13382
43aaf8b6
PA
13383 * linux-low.c: Move common macros to linux-ptrace.h.
13384 Include linux-ptrace.h.
af96c192
YQ
13385 * Makefile.in (linux_ptrace_h): New.
13386 (linux-low.o): Depends on linux-ptrace.h.
13387
03f2bd59
JK
133882011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13389
13390 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13391 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13392 (remote_prepare): New function with most of the TCP code from ...
13393 (remote_open): ... here. Detect PORT here unconditionally. Move also
13394 setting transport_is_reliable.
13395 * server.c (run_once): New variable.
13396 (gdbserver_usage): Document it.
13397 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13398 the first run if RUN_ONCE.
13399 * server.h (run_once, remote_prepare): New declarations.
13400
7a9dd1b2
TT
134012011-04-19 Tom Tromey <tromey@redhat.com>
13402
13403 * win32-low.c (handle_load_dll): Remove duplicate "the".
13404
81239425
PM
134052011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13406
13407 Remove support for old Cygwin 1.5 versions.
13408 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13409 function to avoid warning.
13410 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13411 warning.
13412
9e0627f1
PM
134132011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13414
13415 * gdbserver/server.h (Macro _): Define it if not available.
13416
588eebee
MS
134172011-03-14 Michael Snyder <msnyder@vmware.com>
13418
348af9f7 13419 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 13420
43f70d4c
JB
134212011-03-10 Joel Brobecker <brobecker@adacore.com>
13422
13423 * Makefile.in (maintainer-clean realclean distclean): Remove
13424 "make ... subdir_do" command.
13425
348af9f7
MS
134262011-03-10 Michael Snyder <msnyder@vmware.com>
13427
13428 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13429
13430 * server.c (handle_v_run): Free alloced buffer on early return.
13431
e637a4f5
YQ
134322011-03-09 Yao Qi <yao@codesourcery.com>
13433
13434 Revert:
13435 2011-03-04 Yao Qi <yao@codesourcery.com>
13436
13437 * Makefile.in: Remove GNU make feature --directory.
13438
13439 2011-03-05 Yao Qi <yao@codesourcery.com>
13440
13441 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13442 (subdir_do): New make target. Copied from gdb/Makefile.
13443 (maintainer-clean, realclean, distclean, clean): Call corresponding
13444 make targets in common/Makefile.
13445
13446 2011-02-11 Yao Qi <yao@codesourcery.com>
13447
13448 * configure.ac: Call AC_PROG_RANLIB.
13449 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13450 * configure: Regenerate.
13451
e6edda56
JK
134522011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13453
13454 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13455
e5141119
JB
134562011-03-06 Yao Qi <yao@codesourcery.com>
13457
13458 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13459
64794aa4
JB
134602011-03-05 Yao Qi <yao@codesourcery.com>
13461
13462 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13463 (subdir_do): New make target. Copied from gdb/Makefile.
13464 (maintainer-clean, realclean, distclean, clean): Call corresponding
13465 make targets in common/Makefile.
13466
7a762829
YQ
134672011-03-04 Yao Qi <yao@codesourcery.com>
13468
13469 * Makefile.in: Remove GNU make feature --directory.
13470
348af9f7
MS
134712011-03-04 Michael Snyder <msnyder@vmware.com>
13472
13473 * server.c (queue_stop_reply): Call xmalloc not malloc.
13474
134752011-03-02 Michael Snyder <msnyder@vmware.com>
13476
13477 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13478
9f72fee2
MS
134792011-02-28 Michael Snyder <msnyder@vmware.com>
13480
588eebee
MS
13481 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13482 (cmd_qtframe): Ditto.
13483 (cmd_qtbuffer): Ditto.
13484 (cmd_bigqtbuffer): Ditto.
13485
9f72fee2
MS
13486 * utils.c (decimal2str): Initialize 'width' to nine, then
13487 don't mess with it.
13488
8040bd49
UW
134892011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13490
13491 * hostio.c (require_data): Free *data, not data.
13492
7e52cbd0
JK
134932011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13494
13495 * hostio.c (require_data): Use free, not xfree.
13496
9130f83e
MS
134972011-02-27 Michael Snyder <msnyder@vmware.com>
13498
4b812f4e
MS
13499 * server.c (handle_query): Discard unused value.
13500
9130f83e
MS
13501 * hostio.c (require_data): Free malloc memory before returning
13502 error.
13503
69d37113
MS
135042011-02-26 Michael Snyder <msnyder@vmware.com>
13505
13506 * linux-low.c (list_threads): Call closedir for dirent.
13507
35f5825a
MS
135082011-02-27 Michael Snyder <msnyder@vmware.com>
13509
2a589cef
MS
13510 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13511 a case statement falls through.
13512
0adea5f7
MS
13513 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13514
35f5825a
MS
13515 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13516 in comparison.
13517
238f1c74
MS
135182011-02-26 Michael Snyder <msnyder@vmware.com>
13519
13520 * utils.c (decimal2str): Eliminate dead code and dead param.
13521 (pulongest): Drop dead param from call to decimal2str.
13522 (plongest): Ditto.
13523
633ff500
JB
135242011-02-24 Joel Brobecker <brobecker@adacore.com>
13525
13526 Revert the following patch (not approved yet):
13527 2011-02-21 Hui Zhu <teawater@gmail.com>
13528 * tracepoint.c (tp_printf): New function.
13529 (eval_agent_expr): Handle gdb_agent_op_printf.
13530
f9c6ff72
HZ
135312011-02-21 Hui Zhu <teawater@gmail.com>
13532
13533 * tracepoint.c (tp_printf): New function.
13534 (eval_agent_expr): Handle gdb_agent_op_printf.
13535
94d5e490
TT
135362011-02-18 Tom Tromey <tromey@redhat.com>
13537
13538 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13539 (tracepoint.o): Likewise.
13540 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13541 (gdb_agent_op_names): Likewise.
13542
c7f96d2b
TT
135432011-02-18 Tom Tromey <tromey@redhat.com>
13544
13545 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13546 gdb_agent_op_rot>: New constants.
13547 (gdb_agent_op_names): Add pick and roll.
13548 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13549 cases.
13550
0feedb2c
JK
135512011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13552
13553 * aclocal.m4: Regenerated with aclocal-1.11.1.
13554
b3b9301e
PA
135552011-02-14 Pedro Alves <pedro@codesourcery.com>
13556
13557 * server.c (handle_qxfer_traceframe_info): New.
13558 (qxfer_packets): Register "traceframe-info".
13559 (handle_query): Report support for qXfer:traceframe-info:read+.
13560 * tracepoint.c (match_blocktype): New.
13561 (traceframe_find_block_type): Rename to ...
13562 (traceframe_walk_blocks): ... this. Add callback filter argument,
13563 and use it.
13564 (traceframe_find_block_type): New, reimplemented on top of
13565 traceframe_walk_blocks.
13566 (build_traceframe_info_xml): New.
13567 (traceframe_read_info): New.
13568 * server.h (traceframe_read_info): Declare.
13569
4f3e6fb7
YQ
135702011-02-11 Yao Qi <yao@codesourcery.com>
13571
13572 * configure.ac: Call AC_PROG_RANLIB.
13573 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13574 * configure: Regenerate.
13575
764880b7
PA
135762011-02-07 Pedro Alves <pedro@codesourcery.com>
13577
13578 * server.c (gdb_read_memory): Change return semantics to allow
13579 partial transfers.
13580 (handle_search_memory_1): Adjust.
13581 (process_serial_event) <'m' packet>: Handle partial transfers.
13582 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13583
1c79eb8a
PA
135842011-01-28 Pedro Alves <pedro@codesourcery.com>
13585
13586 * regcache.c (init_register_cache): Initialize
13587 regcache->register_status.
13588 (free_register_cache): Release regcache->register_status.
13589 (regcache_cpy): Copy register_status.
13590 (registers_to_string): Print 'x's for unavailable registers.
13591 (supply_register): Mark the register's status valid or
13592 unavailable, depending on whether a buffer was passed in or not.
13593 (supply_register_zeroed): New.
13594 (supply_regblock): Mark the registers' status valid or
13595 unavailable, depending on whether a buffer was passed in or not.
13596 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13597 (struct regcache): New `register_status' field.
13598 (supply_register_zeroed): Declare.
13599 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13600 supply_register_zeroed, rather than passing a NULL buffer to
13601 supply_register.
13602 * tracepoint.c (fetch_traceframe_registers): Update comment.
13603
85724a0e
PA
136042011-01-28 Pedro Alves <pedro@codesourcery.com>
13605
13606 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13607 buffer explicit.
13608
d08aafef
PA
136092011-01-25 Pedro Alves <pedro@codesourcery.com>
13610
13611 * server.h (decode_xfer_write): Change prototype.
13612 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13613 and don't extract the annex here.
13614 * server.c (decode_xfer_read): Remove `annex' parameter,
13615 and don't extract the annex here.
13616 (decode_xfer): New.
13617 (struct qxfer): New.
13618 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13619 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13620 (handle_qxfer_statictrace): New functions, abstracted out from
13621 handle_query, and made to use the struct qxfer interface.
13622 (handle_threads_qxfer_proper): Rename to ...
13623 (handle_qxfer_threads_proper): ... this.
13624 (handle_threads_qxfer): Rename to ...
13625 (handle_qxfer_threads): ... this. Adjust.
13626 (qxfer_packets): New array.
13627 (handle_qxfer): New function.
13628 (handle_query): Use handle_qxfer.
13629
493e2a69
MS
136302011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13631
13632 * gdbreplay.c: Shorten lines of >= 80 columns.
13633 * linux-low.c: Ditto.
13634 * linux-ppc-low.c: Ditto.
13635 * linux-s390-low.c: Ditto.
13636 * linux-sparc-low.c: Ditto.
13637 * linux-x86-low.c: Ditto.
13638 * linux-xtensa-low.c: Ditto.
13639 * mem-break.c: Ditto.
13640 * nto-low.c: Ditto.
13641 * regcache.h: Ditto.
13642 * remote-utils.c: Ditto.
13643 * server.c: Ditto.
13644 * server.h: Ditto.
13645 * thread-db.c: Ditto.
13646 * tracepoint.c: Ditto.
13647 * utils.c: Ditto.
13648 * win32-low.h: Ditto.
13649
44944448
JB
136502011-01-05 Joel Brobecker <brobecker@adacore.com>
13651
13652 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13653 update.
13654
71ce852c
JB
136552011-01-01 Joel Brobecker <brobecker@adacore.com>
13656
13657 * server.c (gdbserver_version): Update copyright year in version
13658 output.
13659 * gdbreplay.c (gdbreplay_version): Ditto.
13660
eb826dc6
MF
136612010-12-29 Jie Zhang <jie.zhang@analog.com>
13662
13663 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13664 * linux-bfin-low.c: New file.
13665 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13666 PT_DATA_ADDR for BFIN targets.
13667 * Makefile.in (SFILES): Add linux-bfin-low.c.
13668 (clean): Remove reg-bfin.c.
13669 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13670 * README: Mention supported Blackfin targets.
13671
39ab222a
MF
136722010-12-23 Mike Frysinger <vapier@gentoo.org>
13673
13674 * .gitignore: New file.
13675
a1f2ce7d
MF
136762010-11-16 Mike Frysinger <vapier@gentoo.org>
13677
13678 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13679
f474844c
JZ
136802010-10-22 Jie Zhang <jie@codesourcery.com>
13681
13682 * Makefile.in: Add FLAGS_TO_PASS variable.
13683 (install): Remove dependency of install-only and recursively
13684 invoke make for install-only.
13685
f1048712
DE
136862010-10-04 Doug Evans <dje@google.com>
13687
13688 * Makefile.in (uninstall): Use $(DESTDIR).
13689
b53a1623
PA
136902010-09-24 Pedro Alves <pedro@codesourcery.com>
13691
e6ee044d
PA
13692 PR gdb/11842
13693
b53a1623
PA
13694 * linux-x86-low.c (compat_siginfo_from_siginfo)
13695 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
13696 si_code is < 0. Check for si_code == SI_TIMER before checking for
13697 si_code < 0.
13698
fa1bd1e4
JB
136992010-09-13 Joel Brobecker <brobecker@adacore.com>
13700
13701 * lynx-i386-low.c: New file.
13702 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
13703
47fac8f8
JB
137042010-09-13 Joel Brobecker <brobecker@adacore.com>
13705
13706 * lynx-low.c (ptrace_request_to_str): Remove handling for
13707 request values that have been removed in LynxOS 5.x.
13708
1adfc54d
JB
137092010-09-13 Joel Brobecker <brobecker@adacore.com>
13710
13711 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
13712 <ptrace.h>
13713
c2a66c29
NS
137142010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13715
13716 * configure.ac: Add --enable-inprocess-agent option.
13717 * configure: Rebuilt.
13718
32fcada3
YQ
137192010-09-06 Yao Qi <yao@codesourcery.com>
13720
13721 * linux-low.c (linux_kill): Remove unused variable.
13722 (linux_stabilize_threads): Likewise.
13723 * server.c (start_inferior): Likewise.
13724 (queue_stop_reply_callback): Likewise.
13725 * tracepoint.c (do_action_at_tracepoint): Likewise.
13726
0cccb683
YQ
137272010-09-06 Yao Qi <yao@codesourcery.com>
13728
13729 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
13730 on return.
13731
423ec54c
JK
137322010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13733
13734 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
13735
12ac6819
PA
137362010-09-06 Pedro Alves <pedro@codesourcery.com>
13737
13738 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13739 "$(IPA_DEPFILES)".
13740
8ed54b31
JB
137412010-09-01 Joel Brobecker <brobecker@adacore.com>
13742
13743 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13744 gdbserver/lynx-ppc-low.c: New files.
13745 * Makefile.in (lynx_low_h): New variable.
13746 (lynx-low.o, lynx-ppc-low.o): New rules.
13747 * configure.ac: On LynxOS, link with -lnetinet.
13748 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13749 * configure: regenerate.
13750
bb0116a4
JB
137512010-09-01 Joel Brobecker <brobecker@adacore.com>
13752
13753 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13754 * configure.ac: Add check for vasprintf and vsnprintf.
13755 * configure, config.in: Regenerate.
13756 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13757
a778ab81 137582010-09-01 Joel Brobecker <brobecker@adacore.com>
13759
13760 * gdbreplay.c: Move include of alloca.h up, next to include of
13761 malloc.h.
13762 * server.h: Add include of malloc.h.
13763 * mem-break.c: Remove include of malloc.h.
13764 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13765
8b034a19 137662010-09-01 Joel Brobecker <brobecker@adacore.com>
13767
13768 * Makefile.in (memmem.o): Build with -Wno-error.
13769
137702010-09-01 Joel Brobecker <brobecker@adacore.com>
13771
13772 * utils.c (xsnprintf): Make non-static.
13773 * server.h: Add xsnprintf declaration.
13774 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13775 replace calls to snprintf by calls to xsnprintf throughout.
13776
137772010-09-01 Joel Brobecker <brobecker@adacore.com>
13778
13779 * configure.ac: Add configure check for alloca.
13780 * configure, config.in: Regenerate.
13781 * server.h: Include alloca.h if it exists.
13782 * gdbreplay.c: Include alloca.h if it exists.
13783
1a981360
PA
137842010-08-28 Pedro Alves <pedro@codesourcery.com>
13785
13786 * linux-low.c (__SIGRTMIN): Define if not already defined.
13787 (linux_create_inferior): Check for __ANDROID__ rather than
13788 __SIGRTMIN.
13789 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13790 are already deferred.
13791 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13792 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13793 stopped and already has a pending signal to report.
13794 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13795 a pending signal to report or is moving out of a jump pad.
13796 (linux_init_signals): Check for __ANDROID__ rather than
13797 __SIGRTMIN.
13798
b4d51a55
PA
137992010-08-28 Pedro Alves <pedro@codesourcery.com>
13800
13801 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13802 debug_threads check. Avoid a linear search when not doing debug
13803 output.
13804
ec48365d
PA
138052010-08-27 Pedro Alves <pedro@codesourcery.com>
13806
13807 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13808 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13809 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13810 (process_event): Change local fd's type to gdb_fildes_t.
13811 (create_file_handler): Adjust prototype.
13812 (delete_file_handler): Adjust prototype.
13813 (handle_file_event): Adjust prototype. Use pfildes.
13814 (create_file_event): Adjsut prototype.
13815 * remote-utils.c (remote_desc, listen_desc): Change type to
13816 gdb_fildes_t.
13817 * server.h: New gdb_fildes_t typedef.
13818 [USE_WIN32API]: Include winsock2.h.
13819 (delete_file_handler, add_file_handler): Adjust prototypes.
13820 (pfildes): Declare.
13821 * utils.c (pfildes): New.
13822
854d88f0
PA
138232010-08-27 Pedro Alves <pedro@codesourcery.com>
13824
13825 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13826 * configure: Regenerate.
13827
0146f85b
PA
138282010-08-27 Pedro Alves <pedro@codesourcery.com>
13829
13830 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13831 (linux_done_accessing_memory): ... this.
13832 (linux_target_ops): Adjust.
13833 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13834 * nto-low.c (nto_target_ops): Adjust comment.
13835 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13836 * spu-low.c (spu_target_ops): Adjust comment.
13837 * target.h (target_ops): Rename unprepare_to_access_memory field
13838 to done_accessing_memory.
13839 (unprepare_to_access_memory): Rename to ...
13840 (done_accessing_memory): ... this.
13841
90d74c30
PA
138422010-08-26 Pedro Alves <pedro@codesourcery.com>
13843
13844 * linux-low.c (linux_prepare_to_access_memory): New.
13845 (linux_unprepare_to_access_memory): New.
13846 (linux_target_ops): Install them.
13847 * server.c (read_memory): Rename to ...
13848 (gdb_read_memory): ... this. Use
13849 prepare_to_access_memory/prepare_to_access_memory.
13850 (write_memory): Rename to ...
13851 (gdb_write_memory): ... this. Use
13852 prepare_to_access_memory/prepare_to_access_memory.
13853 (handle_search_memory_1): Adjust.
13854 (process_serial_event): Adjust.
13855 * target.h (struct target_ops): New fields
13856 prepare_to_access_memory and unprepare_to_access_memory.
13857 (prepare_to_access_memory, unprepare_to_access_memory): New.
13858 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13859 prepare_to_access_memory/prepare_to_access_memory.
13860 * nto-low.c (nto_target_ops): Adjust.
13861 * spu-low.c (spu_target_ops): Adjust.
13862 * win32-low.c (win32_target_ops): Adjust.
13863
fd467969
PA
138642010-08-26 Pedro Alves <pedro@codesourcery.com>
13865
13866 * Makefile.in (WARN_CFLAGS): Get it from configure.
13867 (WERROR_CFLAGS): New.
13868 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13869 * configure.ac: Introduce --enable-werror, which adds -Werror to
13870 the compiler command line. Enabled by default. Disable with
13871 --disable-werror. Add -Wdeclaration-after-statement
13872 Wpointer-arith and -Wformat-nonliteral to warning flags.
13873 * configure: Regenerate.
13874
331e2f5f
PA
138752010-08-26 Pedro Alves <pedro@codesourcery.com>
13876
13877 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13878
e581f2b4
PA
138792010-08-26 Pedro Alves <pedro@codesourcery.com>
13880
13881 * gdbreplay.c (remote_error): New.
13882 (gdbchar): New.
13883 (expect): Use gdbchar. Check for error reading from GDB.
13884 Clarify sync error output.
13885 (play): Check for errors writing to GDB.
13886 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13887 * remote-utils.c (getpkt): Check for errors writing to the remote
13888 descriptor.
13889
3c11dd79
PA
138902010-08-25 Pedro Alves <pedro@codesourcery.com>
13891
13892 * linux-low.c (linux_wait_1): Move non-debugging code out of
13893 `debug_threads' control.
13894
d20a8ad9
PA
138952010-08-25 Pedro Alves <pedro@codesourcery.com>
13896
13897 * linux-low.c (linux_wait_1): Don't set last_status here.
13898 * server.c (push_event, queue_stop_reply_callback): Assert we're
13899 not pushing a TARGET_WAITKIND_IGNORE event.
13900 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13901 (myresume, handle_target_event): Set the thread's last_resume_kind
13902 and last_status from the target returned status.
13903
964e4306
PA
139042010-08-25 Pedro Alves <pedro@codesourcery.com>
13905
13906 PR threads/10729
13907
13908 * linux-x86-low.c (update_debug_registers_callback): New.
13909 (i386_dr_low_set_addr): Use it.
13910 (i386_dr_low_get_addr): New.
13911 (i386_dr_low_set_control): Use update_debug_registers_callback.
13912 (i386_dr_low_get_control): New.
13913 (i386_dr_low_get_status): Adjust.
13914 * linux-low.c (linux_stop_lwp): New.
13915 * linux-low.h (linux_stop_lwp): Declare.
13916
13917 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13918 argument instead of a i386_debug_reg_state.
13919 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13920 a i386_debug_reg_state.
13921 (i386_insert_aligned_watchpoint): Adjust.
13922 (i386_remove_aligned_watchpoint): Adjust.
13923 (i386_low_stopped_data_address): Read the debug registers from the
13924 inferior instead of from the mirrors.
13925 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13926 (i386_dr_low_get_addr): Declare.
13927 (i386_dr_low_get_control): Declare.
13928 (i386_dr_low_get_status): Change prototype.
13929
13930 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13931 (i386_dr_low_get_addr): New.
13932 (i386_dr_low_get_control): New.
13933 (i386_dr_low_get_status): Adjust prototype. Return
13934 dr_status_mirror.
13935 (i386_initial_stuff): Clear dr_status_mirror and
13936 dr_control_mirror.
13937 (i386_get_thread_context): Adjust.
13938 (i386_set_thread_context): Adjust.
13939 (i386_thread_added): Adjust.
13940
5f21a75b
PA
139412010-08-24 Pedro Alves <pedro@codesourcery.com>
13942
13943 * linux-low.h (linux_thread_area): Delete declaration.
13944
3e4c1235
TS
139452010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13946
13947 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13948 after its termination.
13949
1971b033
PA
139502010-08-09 Pedro Alves <pedro@codesourcery.com>
13951
13952 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13953 (gdb_wants_all_stopped): Delete.
13954 (linux_wait_1): Don't call them.
13955 * server.c (handle_v_cont): Tag all threads as want-stopped.
13956 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13957 stopped as "client-wants-stopped".
13958
310444ac
PA
139592010-07-31 Pedro Alves <pedro@codesourcery.com>
13960
13961 * Makefile.in (signals_h): New.
13962 (server_h): Depend on it.
13963 (server.o): Don't depend on $(signals_def).
13964 (signals.o): Depend on $(signals_def).
13965
a19cae16
JK
139662010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13967
13968 * Makefile.in (signals_def): New.
13969 (server_h): Append include/gdb/signals.h and signals_def.
13970 (server.o): Append signals_def.
13971
30d50328
JK
139722010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13973
13974 * server.c (handle_target_event): Use target_signal_to_host for
13975 resume_info.sig initialization.
13976 * target.h (struct thread_resume) <sig>: New comment.
13977
5c3216e2
OS
139782010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13979
c6f46ca0
OS
13980 * server.c (handle_query): strcpy() the returned string from paddress()
13981 instead of sprintf().
5c3216e2
OS
13982 * utils.c (paddress): Return phex_nz().
13983
6bd31874
JB
139842010-07-07 Joel Brobecker <brobecker@adacore.com>
13985
13986 * server.c (handle_v_cont): Call mourn_inferior if process
13987 just exited.
13988 (myresume): Likewise.
13989
0fb4aa4b
PA
139902010-07-01 Pedro Alves <pedro@codesourcery.com>
13991
13992 Static tracepoints, and integration with UST.
13993
13994 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13995 * mem-break.c (uninsert_all_breakpoints)
13996 (reinsert_all_breakpoints): New.
13997 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13998 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13999 (gdb_agent_ust_loaded, helper_thread_id)
14000 (gdb_agent_helper_thread_id): New macros.
14001 (struct ipa_sym_addresses): Add addr_ust_loaded,
14002 addr_helper_thread_id, addr_cmd_buf.
14003 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14004 (in_process_agent_loaded_ust): New.
14005 (write_e_ust_not_loaded): New.
14006 (maybe_write_ipa_ust_not_loaded): New.
14007 (struct collect_static_trace_data_action): New.
14008 (enum tracepoint_type) <static_tracepoint>: New.
14009 (struct tracepoint) <handle>: Mention static tracepoints.
14010 (struct static_tracepoint_ctx): New.
14011 (CMD_BUF_SIZE): New.
14012 (add_tracepoint_action): Handle static tracepoint actions.
14013 (unprobe_marker_at): New.
14014 (clear_installed_tracepoints): Handle static tracepoints.
14015 (cmd_qtdp): Handle static tracepoints.
14016 (probe_marker_at): New.
14017 (cmd_qtstart): Handle static tracepoints.
14018 (response_tracepoint): Handle static tracepoints.
14019 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14020 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14021 (get_context_regcache): Handle static tracepoints.
14022 (do_action_at_tracepoint): Handle static tracepoint actions.
14023 (traceframe_find_block_type): Handle static trace data blocks.
14024 (traceframe_read_sdata): New.
14025 (download_tracepoints): Download static tracepoint actions.
14026 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14027 (GDB_PROBE_NAME): New.
14028 (ust_ops): New.
14029 (GET_UST_SYM): New.
14030 (USTF): New.
14031 (dlsym_ust): New.
14032 (ust_marker_to_static_tracepoint): New.
14033 (gdb_probe): New.
14034 (collect_ust_data_at_tracepoint): New.
14035 (gdb_ust_probe): New.
14036 (UNIX_PATH_MAX, SOCK_DIR): New.
14037 (gdb_ust_connect_sync_socket): New.
14038 (resume_thread, stop_thread): New.
14039 (run_inferior_command): New.
14040 (init_named_socket): New.
14041 (gdb_ust_socket_init): New.
14042 (cstr_to_hexstr): New.
14043 (next_st): New.
14044 (first_marker, next_marker): New.
14045 (response_ust_marker): New.
14046 (cmd_qtfstm, cmd_qtsstm): New.
14047 (unprobe_marker_at, probe_marker_at): New.
14048 (cmd_qtstmat, gdb_ust_thread): New.
14049 (gdb_ust_init): New.
14050 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14051 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14052 (ST_REGENTRY): New.
14053 (x86_64_st_collect_regmap): New.
14054 (X86_64_NUM_ST_COLLECT_GREGS): New.
14055 (AMD64_RIP_REGNUM): New.
14056 (supply_static_tracepoint_registers): New.
14057 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14058 (ST_REGENTRY): New.
14059 (i386_st_collect_regmap): New.
14060 (i386_NUM_ST_COLLECT_GREGS): New.
14061 (supply_static_tracepoint_registers): New.
14062 * server.c (handle_query): Handle qXfer:statictrace:read.
14063 <qSupported>: Report support for StaticTracepoints, and
14064 qXfer:statictrace:read features.
14065 * server.h (traceframe_read_sdata)
14066 (supply_static_tracepoint_registers): Declare.
14067 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14068 (unpack_varlen_hex): Include in IPA build.
14069 * Makefile.in (ustlibs, ustinc): New.
14070 (IPA_OBJS): Add remote-utils-ipa.o.
14071 ($(IPA_LIB)): Link -ldl and -lpthread.
14072 (UST_CFLAGS): New.
14073 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14074 * config.in, configure: Regenerate.
14075
9e4344e5
PA
140762010-06-20 Ian Lance Taylor <iant@google.com>
14077 Pedro Alves <pedro@codesourcery.com>
14078
14079 * linux-x86-low.c (always_true): Delete.
14080 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14081 trying to fool the compiler with always_true.
14082
c6beb2cb
PA
140832010-06-20 Pedro Alves <pedro@codesourcery.com>
14084
14085 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14086 conditions in gdbserver.
14087
d2ed6730
UW
140882010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14089
14090 * spu-low.c (spu_read_memory): Wrap around local store limit.
14091 (spu_write_memory): Likewise.
14092
4e29fb54
PA
140932010-06-15 Pedro Alves <pedro@codesourcery.com>
14094
14095 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14096 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14097 LONGEST uses.
14098 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14099 uses.
14100 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14101 uses with LONGEST uses.
14102
6a271cae
PA
141032010-06-14 Stan Shebs <stan@codesourcery.com>
14104 Pedro Alves <pedro@codesourcery.com>
14105
14106 Bytecode compiler.
14107
14108 * linux-x86-low.c: Include limits.h.
14109 (add_insns): New.
14110 (always_true): New.
14111 (EMIT_ASM): New.
14112 (EMIT_ASM32): New.
14113 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14114 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14115 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14116 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14117 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14118 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14119 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14120 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14121 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14122 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14123 (amd64_emit_void_call_2): New.
14124 (amd64_emit_ops): New.
14125 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14126 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14127 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14128 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14129 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14130 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14131 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14132 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14133 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14134 (i386_emit_stack_adjust, i386_emit_int_call_1)
14135 (i386_emit_void_call_2): New.
14136 (i386_emit_ops): New.
14137 (x86_emit_ops): New.
14138 (the_low_target): Install x86_emit_ops.
14139 * server.h (struct emit_ops): New.
14140 (get_raw_reg_func_addr): Declare.
14141 (current_insn_ptr, emit_error): Declare.
14142 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14143 (set_trace_state_variable_value): New defines.
14144 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14145 addr_get_trace_state_variable_value and
14146 addr_set_trace_state_variable_value.
14147 (symbol_list): New fields for get_raw_reg,
14148 get_trace_state_variable_value and set_trace_state_variable_value.
14149 (condfn): New typedef.
14150 (struct tracepoint): New field `compiled_cond'.
14151 (do_action_at_tracepoint): Clear compiled_cond.
14152 (get_trace_state_variable_value, set_trace_state_variable_value):
14153 Export in the IPA.
14154 (condition_true_at_tracepoint): If there's a compiled condition,
14155 run that.
14156 (current_insn_ptr, emit_error): New globals.
14157 (struct bytecode_address): New.
14158 (get_raw_reg_func_addr): New.
14159 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14160 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14161 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14162 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14163 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14164 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14165 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14166 (compile_tracepoint_condition, compile_bytecodes): New.
14167 * target.h (emit_ops): Forward declare.
14168 (struct target_ops): New field emit_ops.
14169 (target_emit_ops): New.
14170 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14171 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14172 * linux-low.c (linux_emit_ops): New.
14173 (linux_target_ops): Install it.
14174 * linux-low.h (struct linux_target_ops): New field emit_ops.
14175
92b72907
UW
141762010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14177
14178 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14179 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14180
fa593d66
PA
141812010-06-01 Pedro Alves <pedro@codesourcery.com>
14182 Stan Shebs <stan@codesourcery.com>
14183
14184 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14185 (all): Depend on $(extra_libraries).
14186 (install-only): Install the IPA.
14187 (IPA_OBJS, IPA_LIB): New.
14188 (clean): Remove the IPA lib.
14189 (IPAGENT_CFLAGS): New.
14190 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14191 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14192 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14193 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14194 * configure.ac: Check for atomic builtins support in the compiler.
14195 (IPA_DEPFILES, extra_libraries): Define.
14196 * configure.srv (ipa_obj): Add description.
14197 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14198 (i[34567]86-*-linux*): Set ipa_obj.
14199 (x86_64-*-linux*): Set ipa_obj.
14200 * linux-low.c (stabilizing_threads): New.
14201 (supports_fast_tracepoints): New.
14202 (linux_detach): Stabilize threads before detaching.
14203 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14204 the lwp is either not stabilizing, or is moving out of a jump pad.
14205 (linux_fast_tracepoint_collecting): New.
14206 (maybe_move_out_of_jump_pad): New.
14207 (enqueue_one_deferred_signal): New.
14208 (dequeue_one_deferred_signal): New.
14209 (linux_wait_for_event_1): If moving out of a jump pad, defer
14210 pending signals to later.
14211 (linux_stabilize_threads): New.
14212 (linux_wait_1): Check if threads need moving out of jump pads, and
14213 do it if so.
14214 (stuck_in_jump_pad_callback): New.
14215 (move_out_of_jump_pad_callback): New.
14216 (lwp_running): New.
14217 (linux_resume_one_lwp): Handle moving out of jump pads.
14218 (linux_set_resume_request): Dequeue deferred signals.
14219 (need_step_over_p): Also step over fast tracepoint jumps.
14220 (start_step_over): Also uninsert fast tracepoint jumps.
14221 (finish_step_over): Also reinsert fast tracepoint jumps.
14222 (linux_install_fast_tracepoint_jump): New.
14223 (linux_target_ops): Install linux_stabilize_threads and
14224 linux_install_fast_tracepoint_jump_pad.
14225 * linux-low.h (linux_target_ops) <get_thread_area,
14226 install_fast_tracepoint_jump_pad>: New fields.
14227 (struct lwp_info) <collecting_fast_tracepoint,
14228 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14229 (linux_get_thread_area): Declare.
14230 * linux-x86-low.c (jump_insn): New.
14231 (x86_get_thread_area): New.
14232 (append_insns): New.
14233 (push_opcode): New.
14234 (amd64_install_fast_tracepoint_jump_pad): New.
14235 (i386_install_fast_tracepoint_jump_pad): New.
14236 (x86_install_fast_tracepoint_jump_pad): New.
14237 (the_low_target): Install x86_get_thread_area and
14238 x86_install_fast_tracepoint_jump_pad.
14239 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14240 (struct fast_tracepoint_jump): New.
14241 (fast_tracepoint_jump_insn): New.
14242 (fast_tracepoint_jump_shadow): New.
14243 (find_fast_tracepoint_jump_at): New.
14244 (fast_tracepoint_jump_here): New.
14245 (delete_fast_tracepoint_jump): New.
14246 (set_fast_tracepoint_jump): New.
14247 (uninsert_fast_tracepoint_jumps_at): New.
14248 (reinsert_fast_tracepoint_jumps_at): New.
14249 (set_breakpoint_at): Use write_inferior_memory.
14250 (uninsert_raw_breakpoint): Use write_inferior_memory.
14251 (check_mem_read): Mask out fast tracepoint jumps.
14252 (check_mem_write): Mask out fast tracepoint jumps.
14253 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14254 (set_fast_tracepoint_jump): Declare.
14255 (delete_fast_tracepoint_jump)
14256 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14257 (reinsert_fast_tracepoint_jumps_at): Declare.
14258 * regcache.c: Don't compile many functions when building the
14259 in-process agent library.
14260 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14261 the register buffer in the heap.
14262 (free_register_cache): If the register buffer isn't owned by the
14263 regcache, don't free it.
14264 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14265 pre-existing register caches.
14266 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14267 type.
14268 (convert_ascii_to_int): : Constify `from' parameter type.
14269 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14270 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14271 the needed buffer in-place.
14272 (relocate_instruction): New.
14273 * server.c (handle_query) <qSymbols>: If the target supports
14274 tracepoints, give it a chance of looking up symbols. Report
14275 support for fast tracepoints.
14276 (handle_status): Stabilize threads.
14277 (process_serial_event): Adjust.
14278 * server.h (struct fast_tracepoint_jump): Forward declare.
14279 (struct process_info) <fast_tracepoint_jumps>: New field.
14280 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14281 (decode_X_packet, decode_M_packet): Adjust.
14282 (relocate_instruction): Declare.
14283 (in_process_agent_loaded): Declare.
14284 (tracepoint_look_up_symbols): Declare.
14285 (struct fast_tpoint_collect_status): Declare.
14286 (fast_tracepoint_collecting): Declare.
14287 (force_unlock_trace_buffer): Declare.
14288 (handle_tracepoint_bkpts): Declare.
14289 (initialize_low_tracepoint)
14290 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14291 * target.h (struct target_ops) <stabilize_threads,
14292 install_fast_tracepoint_jump_pad>: New fields.
14293 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14294 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14295 [HAVE_STDINT_H]: Include stdint.h.
14296 (trace_debug_1): Rename to ...
14297 (trace_vdebug): ... this.
14298 (trace_debug): Rename to ...
14299 (trace_debug_1): ... this. Add `level' parameter.
14300 (trace_debug): New.
14301 (ATTR_USED, ATTR_NOINLINE): New.
14302 (IP_AGENT_EXPORT): New.
14303 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14304 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14305 (about_to_request_buffer_space, trace_buffer_is_full)
14306 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14307 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14308 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14309 (traceframe_write_count, traceframes_created)
14310 (trace_state_variables)
14311 New renaming defines.
14312 (struct ipa_sym_addresses): New.
14313 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14314 (symbol_list): New.
14315 (ipa_sym_addrs): New.
14316 (all_tracepoint_symbols_looked_up): New.
14317 (in_process_agent_loaded): New.
14318 (write_e_ipa_not_loaded): New.
14319 (maybe_write_ipa_not_loaded): New.
14320 (tracepoint_look_up_symbols): New.
14321 (debug_threads) [IN_PROCESS_AGENT]: New.
14322 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14323 (UNKNOWN_SIDE_EFFECTS): New.
14324 (stop_tracing): New.
14325 (flush_trace_buffer): New.
14326 (stop_tracing_bkpt): New.
14327 (flush_trace_buffer_bkpt): New.
14328 (read_inferior_integer): New.
14329 (read_inferior_uinteger): New.
14330 (read_inferior_data_pointer): New.
14331 (write_inferior_data_pointer): New.
14332 (write_inferior_integer): New.
14333 (write_inferior_uinteger): New.
14334 (struct collect_static_trace_data_action): Delete.
14335 (enum tracepoint_type): New.
14336 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
14337 <actions_str, step_actions, step_actions_str>: Only include in
14338 GDBserver.
fa593d66
PA
14339 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14340 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14341 (tracepoints): Use IP_AGENT_EXPORT.
14342 (last_tracepoint): Don't include in the IPA.
14343 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14344 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14345 (alloced_trace_state_variables): New.
14346 (trace_state_variables): Use IP_AGENT_EXPORT.
14347 (traceframe_t): Delete unused variable.
14348 (circular_trace_buffer): Don't include in the IPA.
14349 (trace_buffer_start): Delete.
14350 (struct trace_buffer_control): New.
14351 (trace_buffer_free): Delete.
14352 (struct ipa_trace_buffer_control): New.
14353 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14354 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14355 New.
14356 (trace_buffer_ctrl): New.
14357 (TRACE_BUFFER_CTRL_CURR): New.
14358 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14359 Reimplement as macros.
14360 (trace_buffer_wrap): Delete.
14361 (traceframe_write_count, traceframe_read_count)
14362 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14363 (struct tracepoint_hit_ctx) <type>: New field.
14364 (struct fast_tracepoint_ctx): New.
14365 (memory_barrier): New.
14366 (cmpxchg): New.
14367 (record_tracepoint_error): Update atomically in the IPA.
14368 (clear_inferior_trace_buffer): New.
14369 (about_to_request_buffer_space): New.
14370 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14371 updating the same buffer.
14372 (add_tracepoint): Default the tracepoint's type to trap
14373 tracepoint, and orig_size to -1.
14374 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14375 internal variables.
14376 (create_trace_state_variable): New parameter `gdb'. Handle it.
14377 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14378 (cmd_qtdp): Handle fast tracepoints.
14379 (cmd_qtdv): Adjust.
14380 (max_jump_pad_size): New.
14381 (gdb_jump_pad_head): New.
14382 (get_jump_space_head): New.
14383 (claim_jump_space): New.
14384 (sort_tracepoints): New.
14385 (MAX_JUMP_SIZE): New.
14386 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14387 IPA.
14388 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14389 support. Upload fast traceframes, and delete internal IPA
14390 breakpoints.
14391 (stop_tracing_handler): New.
14392 (flush_trace_buffer_handler): New.
14393 (cmd_qtstop): Upload fast tracepoints.
14394 (response_tracepoint): Handle fast tracepoints.
14395 (tracepoint_finished_step): Upload fast traceframes. Set the
14396 tracepoint hit context's tracepoint type.
14397 (handle_tracepoint_bkpts): New.
14398 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14399 type. Add comment about fast tracepoints.
14400 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14401 non-existing action_str field.
14402 (get_context_regcache): Handle fast tracepoints.
14403 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14404 to the regcache.
14405 (fast_tracepoint_from_jump_pad_address): New.
14406 (fast_tracepoint_from_ipa_tpoint_address): New.
14407 (collecting_t): New.
14408 (force_unlock_trace_buffer): New.
14409 (fast_tracepoint_collecting): New.
14410 (collecting): New.
14411 (gdb_collect): New.
14412 (write_inferior_data_ptr): New.
14413 (target_tp_heap): New.
14414 (target_malloc): New.
14415 (download_agent_expr): New.
14416 (UALIGN): New.
14417 (download_tracepoints): New.
14418 (download_trace_state_variables): New.
14419 (upload_fast_traceframes): New.
14420 (IPA_FIRST_TRACEFRAME): New.
14421 (IPA_NEXT_TRACEFRAME_1): New.
14422 (IPA_NEXT_TRACEFRAME): New.
14423 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14424 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14425 (gdb_jump_pad_buffer_end): New.
14426 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14427 (initialize_tracepoint): Adjust.
14428 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14429 buffer. Initialize the low module.
14430 * utils.c (PREFIX, TOOLNAME): New.
14431 (malloc_failure): Use PREFIX.
14432 (error): In the IPA, an error causes an exit.
14433 (fatal, warning): Use PREFIX.
14434 (internal_error): Use TOOLNAME.
14435 (NUMCELLS): Increase to 10.
14436 * configure, config.in: Regenerate.
14437
d149dd1d
PA
144382010-06-01 Pedro Alves <pedro@codesourcery.com>
14439
14440 * server.c (handle_query) <qSupported>: Do two passes over the
14441 qSupported string to avoid nesting strtok.
14442
f6528abd
JK
144432010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14444
14445 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14446 (CDEPS): New.
14447 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14448 -Wl,--dynamic-list.
14449 * configure: Regenerate.
14450 * proc-service.list: New.
14451
ca2a87a0
JK
144522010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14453
14454 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14455 New comment.
14456
363a6e9f
OS
144572010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14458
14459 * gdbreplay.c (remote_open): Check error return from socket() call by
14460 its equality to -1 not by it being negative.
14461 * remote-utils.c (remote_open): Likewise.
14462
d23b6cb1
PA
144632010-05-23 Pedro Alves <pedro@codesourcery.com>
14464
14465 * config.h: Regenerate.
14466
28d3cf85
MK
144672010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14468
14469 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14470 doesn't provide PTRACE_GET_THREAD_AREA.
14471
fea36a59
MK
144722010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14473
14474 * linux-m68k-low.c: Include <asm/ptrace.h>
14475 (ps_get_thread_area): Implement.
14476
24b066ba
DE
144772010-05-03 Doug Evans <dje@google.com>
14478
14479 * event-loop.c (struct callback_event): New struct.
14480 (callback_list): New global.
14481 (append_callback_event, delete_callback_event): New functions.
14482 (process_callback): New function.
14483 (start_event_loop): Call it.
14484 * remote-utils.c (NOT_SCHEDULED): Define.
14485 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14486 moved out of readchar.
14487 (readchar): Rewrite. Call reschedule before returning.
14488 (reset_readchar): New function.
14489 (remote_close): Call it.
14490 (process_remaining, reschedule): New functions.
14491 * server.h (callback_handler_func): New typedef.
14492 (append_callback_event, delete_callback_event): Declare.
14493
9836d6ea
PA
144942010-05-03 Pedro Alves <pedro@codesourcery.com>
14495
14496 * proc-service.c (ps_pglobal_lookup): Use
14497 thread_db_look_up_one_symbol.
14498 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14499 parameter. Use it instead of all_symbols_looked_up.
14500 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14501 field.
14502 (all_symbols_looked_up): Don't declare.
14503 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14504 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14505 field.
14506 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14507 Set all_symbols_looked_up here.
14508 (thread_db_look_up_one_symbol): New.
14509 (thread_db_get_tls_address): Adjust.
14510 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14511 thread_db object on the heap, and tentatively set it in the
14512 process structure.
14513 (thread_db_init): Don't set all_symbols_looked_up here.
14514 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14515
7984d532
PA
145162010-05-03 Pedro Alves <pedro@codesourcery.com>
14517
14518 * linux-low.c (linux_kill, linux_detach): Adjust.
14519 (status_pending_p_callback): Remove redundant statement. Check
14520 for !TARGET_WAITIKIND_IGNORE, instead of
14521 TARGET_WAITKIND_STOPPED.
14522 (handle_tracepoints): Make sure LWP is locked. Adjust.
14523 (linux_wait_for_event_1): Adjust.
14524 (linux_cancel_breakpoints): New.
14525 (unsuspend_one_lwp): New.
14526 (unsuspend_all_lwps): New.
14527 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14528 (send_sigstop_callback): Change return type to int, add new
14529 `except' parameter and handle it.
14530 (suspend_and_send_sigstop_callback): New.
14531 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14532 pass them down. If SUSPEND, also increment the lwp's suspend
14533 count.
14534 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14535 (need_step_over_p): Don't consider suspended LWPs.
14536 (start_step_over): Adjust.
14537 (proceed_one_lwp): Change return type to int, add new `except'
14538 parameter and handle it.
14539 (unsuspend_and_proceed_one_lwp): New.
14540 (proceed_all_lwps): Use find_inferior instead of
14541 for_each_inferior.
14542 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14543 also decrement the suspend count of LWPs. Pass `except' down,
14544 instead of hacking its suspend count.
14545 (linux_pause_all): Add `freeze' parameter. Adjust.
14546 (linux_unpause_all): New.
14547 (linux_target_ops): Install linux_unpause_all.
14548 * server.c (handle_status): Adjust.
14549 * target.h (struct target_ops): New fields `unpause_all' and
14550 `cancel_breakpoints'. Add new parameter to `pause_all'.
14551 (pause_all): Add new `freeze' parameter.
14552 (unpause_all): New.
14553 (cancel_breakpoints): New.
14554 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14555 cancel breakpoints.
14556 (cmd_qtstart): Pause threads.
14557 (stop_tracing): Pause threads, and cancel breakpoints.
14558 * win32-low.c (win32_target_ops): Adjust.
14559
e471f25b
PA
145602010-05-03 Pedro Alves <pedro@codesourcery.com>
14561
14562 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14563 the inferior right away from here...
14564 (linux_wait_1): ... to here, and adjust to check the thread's
14565 last_resume_kind instead of the lwp's step or stop_expected flags.
14566
1915ef4f
PA
145672010-05-02 Pedro Alves <pedro@codesourcery.com>
14568
14569 * README: Use consistent `GDB' and `GDBserver' spellings.
14570
f9e39928
PA
145712010-05-02 Pedro Alves <pedro@codesourcery.com>
14572
14573 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14574 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14575 (linux_detach_one_lwp): Assume the lwp is stopped.
14576 (any_thread_of): Delete.
14577 (linux_detach): Stop all lwps here. Don't blindly delete all
14578 breakpoints.
14579 (delete_lwp_callback): New.
14580 (linux_mourn): Delete all lwps of the process that is gone.
14581 (linux_wait_1): Don't delete the last lwp of the process here.
14582 * mem-break.h (mark_breakpoints_out): Declare.
14583 * mem-break.c (mark_breakpoints_out): New.
14584 (free_all_breakpoints): Use it.
14585 * server.c (handle_target_event): If the process is gone, mark
14586 breakpoints out.
14587 * thread-db.c (struct thread_db) <create_bp>: New field.
14588 (thread_db_enable_reporting): Fix prototype. Store a thread event
14589 breakpoint reference in the thread_db struct.
14590 (thread_db_load_search): Clear the thread_db object.
14591 (try_thread_db_load_1): Ditto.
14592 (switch_to_process): New.
14593 (disable_thread_event_reporting): Use it.
14594 (remove_thread_event_breakpoints): New.
14595 (thread_db_detach, thread_db_mourn): Use it.
14596
1e7fc18c
PA
145972010-05-01 Pedro Alves <pedro@codesourcery.com>
14598
14599 * linux-low.c (linux_enable_event_reporting): New.
14600 (linux_wait_for_event_1, handle_extended_wait): Use it.
14601
02fc4de7
PA
146022010-04-30 Pedro Alves <pedro@codesourcery.com>
14603
14604 * linux-low.c (linux_kill_one_lwp, linux_kill)
14605 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14606 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14607 SIGSTOP even if the LWP is stopped.
14608 (send_sigstop_callback): New.
14609 (stop_all_lwps): Use send_sigstop_callback instead.
14610 (linux_resume_one_thread): Adjust.
14611 (proceed_one_lwp): Still proceed an LWP that the client has
14612 requested to stop, if we haven't reported it as stopped yet. Make
14613 sure that LWPs the client want stopped, have a pending SIGSTOP.
14614
bc3b5632
DE
146152010-04-26 Doug Evans <dje@google.com>
14616
ae1ada35
DE
14617 * server.c (handle_general_set): Make static.
14618
bc3b5632
DE
14619 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14620 Print received char after testing for error/eof instead of before.
14621 (input_interrupt): Tweak comment.
14622
65730243
DE
146232010-04-23 Doug Evans <dje@google.com>
14624
14625 * server.c (start_inferior): Print inferior argv if --debug.
14626
a8ae7dc0
AR
146272010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14628
14629 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14630 * nto-x86-low.c: Include server.h
14631
1c07cc19
PM
146322010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14633
14634 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14635 be consistent with other sources of this directory.
14636 (init_registers_amd64): Correct name of source file of this function
14637 in the comment.
14638
e0a61e09
PM
146392010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14640
14641 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14642 64-bit executables.
14643
54709339
PM
146442010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14645
14646 * win32-i386-low.c: Add 64-bit support.
14647 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14648 (init_registers_amd64): Declare.
14649 (mappings): Add 64-bit version of array.
14650 (init_windows_x86): New function.
14651 (the_low_target): Change init_arch field to init_windows_x86.
14652
e8f0053d
PM
146532010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14654
14655 * win32-low.c: Adapt to support also 64-bit architecture.
14656 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14657 (get_image_name): Use SIZE_T type for local variable `done'.
14658 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14659 (toolhelp_get_dll_name): Idem.
14660 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14661 Use uintptr_t typecast to avoid warning.
14662 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14663 (handle_exception): Use phex_nz to avoid warning.
14664 (win32_wait): Remove unused local variable `process'.
14665
c481e77e
PM
146662010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14667
14668 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14669 `amd64-avx.o'.
14670
12ea4b69
PM
146712010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14672
14673 * configure.ac: Use `ws2_32' library for srv_mingw.
14674 * configure: Regenerate.
14675 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14676 * remote-utils.c: Likewise.
14677
f6d1620c
L
146782010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14679
14680 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14681 if __x86_64__ is defined.
14682
8e642873
PM
146832010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14684
14685 * configure: Regenerate.
14686
711e434b
PM
146872010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14688
14689 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14690 * target.h (target_ops): New get_tib_address field.
14691 * win32-low.h (win32_thread_info): Add thread_local_base field.
14692 * win32-low.c (child_add_thread): Add tlb argument.
14693 Set thread_local_base field to TLB.
14694 (get_child_debug_event): Adapt to child_add_thread change.
14695 (win32_get_tib_address): New function.
14696 (win32_target_ops): Set get_tib_address field to
14697 win32_get_tib_address.
14698 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
14699
505106cd
PA
147002010-04-12 Pedro Alves <pedro@codesourcery.com>
14701
505106cd
PA
14702 * linux-low.c (linux_mourn): Also remove the process.
14703 * server.c (handle_target_event): Don't remove the process here.
14704 * nto-low.c (nto_mourn): New.
14705 (nto_target_ops): Install it.
14706 * spu-low.c (spu_mourn): New.
14707 (spu_target_ops): Install it.
14708 * win32-low.c (win32_mourn): New.
14709 (win32_target_ops): Install it.
14710
e8470a06
PA
147112010-04-12 Pedro Alves <pedro@codesourcery.com>
14712
14713 * server.h (buffer_xml_printf): Remove redundant `;'.
14714
45ba0d02
PA
147152010-04-12 Pedro Alves <pedro@codesourcery.com>
14716
14717 * regcache.c (set_register_cache): Invalidate regcaches before
14718 changing the register cache layout.
14719 (regcache_invalidate_one): Allow a NULL regcache.
14720 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
14721 regcaches before changing the register cache layout or the target
14722 regsets.
14723
59e04013
L
147242010-04-12 H.J. Lu <hongjiu.lu@intel.com>
14725
14726 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
14727 variable warning on Linux/x86-64.
14728
8336d594
PA
147292010-04-11 Pedro Alves <pedro@codesourcery.com>
14730
14731 GDBserver disconnected tracing support.
14732
14733 * linux-low.c (linux_remove_process): Delete.
14734 (add_lwp): Don't set last_resume_kind here.
14735 (linux_kill): Use `mourn'.
14736 (linux_detach): Use `thread_db_detach', and `mourn'.
14737 (linux_mourn): New.
14738 (linux_attach_lwp_1): Adjust comment.
14739 (linux_attach): last_resume_kind moved the thread_info; adjust.
14740 (status_pending_p_callback): Adjust.
14741 (linux_wait_for_event_1): Adjust.
14742 (count_events_callback, select_singlestep_lwp_callback)
14743 (select_event_lwp_callback, cancel_breakpoints_callback)
14744 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14745 (proceed_one_lwp): Adjust.
14746 (linux_async): Add debug output.
14747 (linux_thread_stopped): New.
14748 (linux_pause_all): New.
14749 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14750 linux_pause_all.
14751 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14752 (thread_db_free): Delete declaration.
14753 (thread_db_detach, thread_db_mourn): Declare.
14754 * thread-db.c (thread_db_init): Use thread_db_mourn.
14755 (thread_db_free): Delete, split in two.
14756 (disable_thread_event_reporting): New.
14757 (thread_db_detach): New.
14758 (thread_db_mourn): New.
14759
14760 * server.h (struct thread_info) <last_resume_kind>: New field.
14761 <attached>: Add comment.
14762 <gdb_detached>: New field.
14763 (handler_func): Change return type to int.
14764 (handle_serial_event, handle_target_event): Ditto.
14765 (gdb_connected): Declare.
14766 (tracing): Delete.
14767 (disconnected_tracing): Declare.
14768 (stop_tracing): Declare.
14769
14770 * server.c (handle_query) <qSupported>: Report support for
14771 disconnected tracing.
14772 (queue_stop_reply_callback): Account for running threads.
14773 (gdb_wants_thread_stopped): New.
14774 (gdb_wants_all_threads_stopped): New.
14775 (gdb_reattached_process): New.
14776 (handle_status): Clear the `gdb_detached' flag of all processes.
14777 In all-stop, stop all threads.
14778 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14779 (process_serial_event): If the remote connection breaks, or if an
14780 exit was forced with "monitor exit", force an event loop exit.
14781 Handle disconnected tracing on detach.
14782 (handle_serial_event): Adjust.
14783 (handle_target_event): If GDB isn't connected, forward events back
14784 to the inferior, unless the last process exited, in which case,
14785 exit gdbserver. Adjust interface.
14786
14787 * remote-utils.c (remote_open): Don't block in accept. Instead
14788 register an event loop source on the listen socket file
14789 descriptor. Refactor bits into ...
14790 (listen_desc): ... this new global.
14791 (gdb_connected): ... this new function.
14792 (enable_async_notification): ... this new function.
14793 (handle_accept_event): ... this new function.
14794 (remote_close): Clear remote_desc.
14795
14796 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14797
14798 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14799 New fields.
14800 (mourn_inferior): Define.
14801 (target_process_qsupported): Avoid the dangling else problem.
14802 (thread_stopped): Define.
14803 (pause_all): Define.
14804 (target_waitstatus_to_string): Declare.
14805 * target.c (target_waitstatus_to_string): New.
14806
14807 * tracepoint.c (tracing): Make extern.
14808 (disconnected_tracing): New.
14809 (stop_tracing): Make extern. Handle tracing stops due to GDB
14810 disconnecting.
14811 (cmd_qtdisconnected): New.
14812 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14813 (handle_tracepoint_general_set): Handle QTDisconnected.
14814
14815 * event-loop.c (event_handler_func): Change return type to int.
14816 (process_event): Bail out if the event handler wants the event
14817 loop to stop.
14818 (handle_file_event): Ditto.
14819 (start_event_loop): Bail out if the event handler wants the event
14820 loop to stop.
14821
14822 * nto-low.c (nto_target_ops): Adjust.
14823 * spu-low.c (spu_wait): Don't remove the process here.
14824 (spu_target_ops): Adjust.
14825 * win32-low.c (win32_wait): Don't remove the process here.
14826 (win32_target_ops): Adjust.
14827
5d267c4c
PA
148282010-04-11 Pedro Alves <pedro@codesourcery.com>
14829
14830 * regcache.c (realloc_register_cache): Invalidate inferior's
14831 regcache before recreating it.
14832
623ccd72
PA
148332010-04-09 Pedro Alves <pedro@codesourcery.com>
14834
14835 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14836
219f2f23
PA
148372010-04-09 Stan Shebs <stan@codesourcery.com>
14838 Pedro Alves <pedro@codesourcery.com>
14839
14840 * server.h (LONGEST): New.
14841 (struct thread_info) <while_stepping>: New field.
14842 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14843 Declare.
14844 (initialize_tracepoint, handle_tracepoint_general_set)
14845 (handle_tracepoint_query, tracepoint_finished_step)
14846 (tracepoint_was_hit, release_while_stepping_state_list):
14847 (current_traceframe): Declare.
14848 * server.c (handle_general_set): Handle tracepoint packets.
14849 (read_memory): New.
14850 (write_memory): New.
14851 (handle_search_memory_1): Use read_memory.
14852 (handle_query): Report support for conditional tracepoints, trace
14853 state variables, and tracepoint sources. Handle tracepoint
14854 queries.
14855 (main): Initialize the tracepoints module.
14856 (process_serial_event): Handle traceframe reads/writes.
14857
14858 * linux-low.c (handle_tracepoints): New.
14859 (linux_wait_1): Call it.
14860 (linux_resume_one_lwp): Handle while-stepping.
14861 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14862 (linux_target_ops): Install them.
14863 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14864 New field.
14865 * linux-x86-low.c (x86_supports_tracepoints): New.
14866 (the_low_target). Install it.
14867
14868 * mem-break.h (delete_breakpoint): Declare.
14869 * mem-break.c (delete_breakpoint): Make external.
14870
14871 * target.h (struct target_ops): Add `supports_tracepoints',
14872 `read_pc', and `write_pc' fields.
14873 (target_supports_tracepoints): Define.
14874 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14875 (phex_nz): New.
14876
14877 * regcache.h (struct regcache) <registers_owned>: New field.
14878 (init_register_cache, regcache_cpy): Declare.
14879 (regcache_read_pc, regcache_write_pc): Declare.
14880 (register_cache_size): Declare.
14881 (supply_regblock): Declare.
14882 * regcache.c (init_register_cache): New.
14883 (new_register_cache): Use it.
14884 (regcache_cpy): New.
14885 (register_cache_size): New.
14886 (supply_regblock): New.
14887 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 14888
219f2f23
PA
14889 * tracepoint.c: New.
14890
14891 * Makefile.in (OBS): Add tracepoint.o.
14892 (tracepoint.o): New rule.
14893
3a13a53b
L
148942010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14895
14896 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14897 (i386-mmx.o): New.
14898 (i386-mmx.c): Likewise.
14899 (i386-mmx-linux.o): Likewise.
14900 (i386-mmx-linux.c): Likewise.
14901
14902 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14903 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14904 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14905 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14906
14907 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14908 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14909 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14910
1570b33e
L
149112010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14912
14913 * Makefile.in (clean): Updated.
14914 (i386-avx.o): New.
14915 (i386-avx.c): Likewise.
14916 (i386-avx-linux.o): Likewise.
14917 (i386-avx-linux.c): Likewise.
14918 (amd64-avx.o): Likewise.
14919 (amd64-avx.c): Likewise.
14920 (amd64-avx-linux.o): Likewise.
14921 (amd64-avx-linux.c): Likewise.
14922
14923 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14924 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14925 (srv_amd64_regobj): Add amd64-avx.o.
14926 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14927 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14928 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14929 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14930 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14931 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14932 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14933
14934 * i387-fp.c: Include "i386-xstate.h".
14935 (i387_xsave): New.
14936 (i387_cache_to_xsave): Likewise.
14937 (i387_xsave_to_cache): Likewise.
14938 (x86_xcr0): Likewise.
14939
14940 * i387-fp.h (i387_cache_to_xsave): Likewise.
14941 (i387_xsave_to_cache): Likewise.
14942 (x86_xcr0): Likewise.
14943
14944 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14945 * linux-crisv32-low.c (target_regsets): Likewise.
14946 * linux-m68k-low.c (target_regsets): Likewise.
14947 * linux-mips-low.c (target_regsets): Likewise.
14948 * linux-ppc-low.c (target_regsets): Likewise.
14949 * linux-s390-low.c (target_regsets): Likewise.
14950 * linux-sh-low.c (target_regsets): Likewise.
14951 * linux-sparc-low.c (target_regsets): Likewise.
14952 * linux-xtensa-low.c (target_regsets): Likewise.
14953
14954 * linux-low.c: Include <sys/uio.h>.
14955 (regsets_fetch_inferior_registers): Support nt_type.
14956 (regsets_store_inferior_registers): Likewise.
14957 (linux_process_qsupported): New.
14958 (linux_target_ops): Add linux_process_qsupported.
14959
14960 * linux-low.h (regset_info): Add nt_type.
14961 (linux_target_ops): Add process_qsupported.
14962
14963 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14964 and <sys/uio.h>.
14965 (init_registers_i386_avx_linux): New.
14966 (init_registers_amd64_avx_linux): Likewise.
14967 (xmltarget_i386_linux_no_xml): Likewise.
14968 (xmltarget_amd64_linux_no_xml): Likewise.
14969 (PTRACE_GETREGSET): Likewise.
14970 (PTRACE_SETREGSET): Likewise.
14971 (x86_fill_xstateregset): Likewise.
14972 (x86_store_xstateregset): Likewise.
14973 (use_xml): Likewise.
14974 (x86_linux_update_xmltarget): Likewise.
14975 (x86_linux_process_qsupported): Likewise.
14976 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14977 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14978 init_registers_i386_linux here. Call
14979 x86_linux_update_xmltarget.
14980 (the_low_target): Add x86_linux_process_qsupported.
14981
14982 * server.c (handle_query): Call target_process_qsupported.
14983
14984 * target.h (target_ops): Add process_qsupported.
14985 (target_process_qsupported): New.
14986
fc7238bb
PA
149872010-04-03 Pedro Alves <pedro@codesourcery.com>
14988
14989 * inferiors.c (add_thread): Set last_status kind to
14990 TARGET_WAITKIND_IGNORE.
14991 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14992 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14993 (linux_wait_1): Move `thread' local definition to block that uses
14994 it. Don't NULL initialize `event_child'.
14995 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14996 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14997 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14998
bdabb078
PA
149992010-04-01 Pedro Alves <pedro@codesourcery.com>
15000
15001 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15002 an extended waitstatus, or by a watchpoint.
15003 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15004 thread was stepping or has been stopped by a watchpoint.
15005
d3bbe7a0
PA
150062010-04-01 Pedro Alves <pedro@codesourcery.com>
15007
15008 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15009 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15010 of another, then delete the previous, and validate all
15011 breakpoints.
15012 (validate_inserted_breakpoint): New.
15013 (delete_disabled_breakpoints): New.
15014 (validate_breakpoints): New.
15015 (check_mem_read): Validate breakpoints before trusting their
15016 shadow. Delete disabled breakpoints.
15017 (check_mem_write): Validate breakpoints before trusting they
15018 should be inserted. Delete disabled breakpoints.
15019 * mem-break.h (validate_breakpoints):
15020 * server.c (handle_query): Validate breakpoints when we see a
15021 qSymbol query.
15022
8b07ae33
PA
150232010-04-01 Pedro Alves <pedro@codesourcery.com>
15024
15025 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15026 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15027 if we could tell there's a GDB breakpoint at stop_pc.
15028 (need_step_over_p): Don't do a step over if we find a GDB
15029 breakpoint at the resume PC.
15030
15031 * mem-break.c (struct raw_breakpoint): New.
15032 (enum bkpt_type): New type `gdb_breakpoint'.
15033 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15034 fields. New field `raw'.
15035 (find_raw_breakpoint_at): New.
15036 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15037 breakpoint instead.
15038 (set_breakpoint_at): Adjust.
15039 (delete_raw_breakpoint): New.
15040 (release_breakpoint): New.
15041 (delete_breakpoint): Rename to...
15042 (delete_breakpoint_1): ... this. Add proc parameter. Use
15043 release_breakpoint. Return ENOENT.
15044 (delete_breakpoint): Reimplement.
15045 (find_breakpoint_at): Delete.
15046 (find_gdb_breakpoint_at): New.
15047 (delete_breakpoint_at): Delete.
15048 (set_gdb_breakpoint_at): New.
15049 (delete_gdb_breakpoint_at): New.
15050 (gdb_breakpoint_here): New.
15051 (set_reinsert_breakpoint): Use release_breakpoint.
15052 (uninsert_breakpoint): Rename to ...
15053 (uninsert_raw_breakpoint): ... this.
15054 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15055 (reinsert_raw_breakpoint): Change parameter type to
15056 raw_breakpoint.
15057 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15058 instead.
15059 (check_breakpoints): Adjust. Use release_breakpoint.
15060 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15061 (breakpoint_inserted_here): Ditto.
15062 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15063 Don't trust the breakpoint's shadow if it is not inserted.
15064 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15065 (delete_all_breakpoints): Adjust.
15066 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15067 use delete_breakpoint_1.
15068
15069 * mem-break.h (breakpoints_supported): Delete declaration.
15070 (set_gdb_breakpoint_at): Declare.
15071 (gdb_breakpoint_here): Declare.
15072 (delete_breakpoint_at): Delete.
15073 (delete_gdb_breakpoint_at): Declare.
15074
15075 * server.h (struct raw_breakpoint): Forward declare.
15076 (struct process_info): New field `raw_breakpoints'.
15077
15078 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15079 breakpoints.
15080
6bf5e0ba
PA
150812010-03-24 Pedro Alves <pedro@codesourcery.com>
15082
15083 * linux-low.c (status_pending_p_callback): Fix comment.
15084 (linux_wait_for_event_1): Move most of the internal breakpoint
15085 handling from here...
15086 (linux_wait_1): ... to here.
15087 (count_events_callback): New.
15088 (select_singlestep_lwp_callback): New.
15089 (select_event_lwp_callback): New.
15090 (cancel_breakpoints_callback): New.
15091 (select_event_lwp): New.
15092 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15093 priority to all LWPs that have had events that should be reported
15094 to the client. Cancel breakpoints when about to reporting the
15095 event to the client, not while stopping lwps. No longer cancel
15096 finished single-steps here.
15097 (cancel_finished_single_step): Delete.
15098 (cancel_finished_single_steps): Delete.
15099
414a389f
PA
151002010-03-24 Pedro Alves <pedro@codesourcery.com>
15101
15102 * mem-break.c (enum bkpt_type): New.
15103 (struct breakpoint): New field `type'.
15104 (set_breakpoint_at): Change return type to struct breakpoint
15105 pointer. Set type to `other_breakpoint' by default.
15106 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15107 in the breakpoint list.
15108 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15109 (reinsert_breakpoint): Rename to ...
15110 (reinsert_raw_breakpoint): ... this.
15111 (reinsert_breakpoints_at): Adjust.
15112 * mem-break.h (struct breakpoint): Declare.
15113 (set_breakpoint_at): Change return type to struct breakpoint
15114 pointer.
15115
2280c721
PA
151162010-03-24 Pedro Alves <pedro@codesourcery.com>
15117
15118 * server.c (handle_query): Assign, not compare.
15119
d50171e4
PA
151202010-03-24 Pedro Alves <pedro@codesourcery.com>
15121
15122 Teach linux gdbserver to step-over-breakpoints.
15123
15124 * linux-low.c (can_hardware_single_step): New.
15125 (supports_breakpoints): New.
15126 (handle_extended_wait): If stopping threads, read the stop pc of
15127 the new cloned LWP.
15128 (get_pc): New.
15129 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15130 low target doesn't support retrieving the PC.
15131 (add_lwp): Set last_resume_kind to resume_continue.
15132 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15133 (linux_attach): Don't clear stop_expected. Set the lwp's
15134 last_resume_kind to resume_stop.
15135 (linux_detach_one_lwp): Don't check for removed breakpoints.
15136 (check_removed_breakpoint): Delete.
15137 (status_pending_p): Rename to ...
15138 (status_pending_p_callback): ... this. Don't check for removed
15139 breakpoints. Don't consider threads that are stopped from GDB's
15140 perspective.
15141 (linux_wait_for_lwp): Always read the stop_pc here.
15142 (cancel_breakpoint): New.
15143 (step_over_bkpt): New global.
15144 (linux_wait_for_event_1): Implement stepping over breakpoints.
15145 (gdb_wants_lwp_stopped): New.
15146 (gdb_wants_all_stopped): New.
15147 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15148 single-step traps here. Store the thread's last reported target
15149 wait status.
15150 (send_sigstop): Don't clear stop_expected. Always set it,
15151 instead.
15152 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15153 (cancel_finished_single_step): New.
15154 (cancel_finished_single_steps): New.
15155 (wait_for_sigstop): Don't cancel finished single-step traps here.
15156 (linux_resume_one_lwp): Don't check for removed breakpoints.
15157 Don't set `step' on non-hardware step archs.
15158 (linux_set_resume_request): Ignore resume_stop requests if already
15159 stopping or stopped. Set the lwp's last_resume_kind.
15160 (resume_status_pending_p): Don't check for removed breakpoints.
15161 (need_step_over_p): New.
15162 (start_step_over): New.
15163 (finish_step_over): New.
15164 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15165 requests. Clear the thread's last reported target waitstatus.
15166 Don't use the `suspended' flag. Don't consider pending breakpoints.
15167 (linux_resume): Start a step-over if necessary.
15168 (proceed_one_lwp): New.
15169 (proceed_all_lwps): New.
15170 (unstop_all_lwps): New.
15171 * linux-low.h (struct lwp_info): Rewrite comment for the
15172 `suspended' flag. Add the `stop_pc' field. Delete the
15173 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15174 Add `'last_resume_kind' and `need_step_over' fields.
15175 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15176 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15177 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15178 (set_raw_breakpoint_at): New.
15179 (set_breakpoint_at): Rewrite to use it.
15180 (reinsert_breakpoint_handler): Delete.
15181 (set_reinsert_breakpoint): New.
15182 (reinsert_breakpoint_by_bp): Delete.
15183 (delete_reinsert_breakpoints): New.
15184 (uninsert_breakpoint): Rewrite.
15185 (uninsert_breakpoints_at): New.
15186 (reinsert_breakpoint): Rewrite.
15187 (reinsert_breakpoints_at): New.
15188 (check_breakpoints): Rewrite.
15189 (breakpoint_here): New.
15190 (breakpoint_inserted_here): New.
15191 (check_mem_read): Adjust.
15192 * mem-break.h (breakpoints_supported, breakpoint_here)
15193 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15194 (reinsert_breakpoint_by_bp): Delete declaration.
15195 (delete_reinsert_breakpoints): Declare.
15196 (reinsert_breakpoint): Delete declaration.
15197 (reinsert_breakpoints_at): Declare.
15198 (uninsert_breakpoint): Delete declaration.
15199 (uninsert_breakpoints_at): Declare.
15200 (check_breakpoints): Adjust prototype.
15201 * server.h: Adjust include order.
15202 (struct thread_info): Declare here. Add a `last_status' field.
15203
30ba68cb
MS
152042010-03-23 Michael Snyder <msnyder@vmware.com>
15205
15206 * server.c (crc32): New function.
15207 (handle_query): Add handling for 'qCRC:' request.
15208
b9a881c2
PA
152092010-03-23 Pedro Alves <pedro@codesourcery.com>
15210
15211 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15212 lwp had been stopped by a watchpoint.
15213
e92d13d5
PA
152142010-03-16 Pedro Alves <pedro@codesourcery.com>
15215
15216 * server.h (internal_error): Declare.
15217 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15218 * utils.c (internal_error): New function.
15219
64daa791
AS
152202010-03-15 Andreas Schwab <schwab@redhat.com>
15221
15222 * configure.srv: Fix typo setting srv_regobj.
15223
f52cd8cd
PA
152242010-03-15 Pedro Alves <pedro@codesourcery.com>
15225
15226 * linux-low.c (fetch_register): Avoid passing a non string literal
15227 format to `error'.
15228 (usr_store_inferior_registers): Ditto.
15229
93ae6fdc
PA
152302010-03-14 Pedro Alves <pedro@codesourcery.com>
15231
15232 * linux-low.c (linux_write_memory): Bail out early if peeking
15233 memory failed.
15234
c3adc08c
PA
152352010-03-14 Pedro Alves <pedro@codesourcery.com>
15236
15237 * linux-low.h (struct lwp_info): New fields
15238 `stopped_by_watchpoint' and `stopped_data_address'.
15239 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15240 here, and cache them in the lwp object.
15241 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15242 directly.
15243 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15244 field.
15245 (linux_stopped_by_watchpoint): Rewrite.
15246 (linux_stopped_data_address): Rewrite.
15247
bce522a2
PA
152482010-03-06 Simo Melenius <simo.melenius@iki.fi>
15249
15250 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15251 switching the current inferior, not before.
15252
90884b2b
L
152532010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15254
15255 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15256 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15257 i386-linux.c and amd64-linux.c.
15258 (reg-i386.o): Removed.
15259 (reg-i386.c): Likewise.
15260 (reg-i386-linux.o): Likewise.
15261 (reg-i386-linux.c): Likewise.
15262 (reg-x86-64.o): Likewise.
15263 (reg-x86-64.c): Likewise.
15264 (reg-x86-64-linux.o): Likewise.
15265 (reg-x86-64-linux.c): Likewise.
15266 (i386.o): New.
15267 (i386.c): Likewise.
15268 (i386-linux.o): Likewise.
15269 (i386-linux.c): Likewise.
15270 (amd64.o): Likewise.
15271 (amd64.c): Likewise.
15272 (amd64-linux.o): Likewise.
15273 (amd64-linux.c): Likewise.
15274
15275 * configure.srv (srv_i386_regobj): New.
15276 (srv_i386_linux_regobj): Likewise.
15277 (srv_amd64_regobj): Likewise.
15278 (srv_amd64_linux_regobj): Likewise.
15279 (srv_i386_32bit_xmlfiles): Likewise.
15280 (srv_i386_64bit_xmlfiles): Likewise.
15281 (srv_i386_xmlfiles): Likewise.
15282 (srv_amd64_xmlfiles): Likewise.
15283 (srv_i386_linux_xmlfiles): Likewise.
15284 (srv_amd64_linux_xmlfiles): Likewise.
15285 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15286 srv_xmlfiles to $srv_i386_xmlfiles.
15287 (i[34567]86-*-mingw32ce*): Likewise.
15288 (i[34567]86-*-mingw*): Likewise.
15289 (i[34567]86-*-nto*): Likewise.
15290 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15291 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15292 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15293 (x86_64-*-linux*): Likewise.
15294
15295 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15296 (init_registers_amd64_linux): New.
15297 (x86_arch_setup): Replace init_registers_x86_64_linux with
15298 init_registers_amd64_linux.
15299
193f13e6
MK
153002010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15301
15302 * configure.ac: Check for libdl. If it is not available link against
15303 static libthread_db.
15304 * configure: Regenerate.
15305
85d721b8
PA
153062010-02-22 Pedro Alves <pedro@codesourcery.com>
15307
15308 PR9605
15309
15310 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15311 handing a read watchpoint.
15312 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15313
6076632b
DE
153142010-02-12 Doug Evans <dje@google.com>
15315
15316 * linux-low.c (linux_supports_tracefork_flag): Document.
15317 (linux_look_up_symbols): Add comment.
15318
3327ccf7
L
153192010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15320
15321 * regcache.c (supply_register): Clear regcache if buf is NULL.
15322
0718675c 153232010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 15324 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
15325
15326 * inferiors.c (find_inferior): Add function documentation.
15327 (unloaded_dll): Handle the case where the unloaded dll has not
15328 been previously registered in the dll list.
15329
177321bd
DJ
153302010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15331
15332 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15333 (thumb2_breakpoint): New.
15334 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15335
2b009048
DJ
153362010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15337
15338 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15339 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15340 breakpoints.
15341
3be029c7
PA
153422010-01-21 Pedro Alves <pedro@codesourcery.com>
15343
15344 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15345
18f5de3b
JK
153462010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15347
15348 * linux-s390-low.c (s390_collect_ptrace_register)
15349 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15350
3743bb4f
DE
153512010-01-21 Doug Evans <dje@google.com>
15352
14ce3065
DE
15353 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15354 (PTRACE_ARG4_TYPE): New macro.
15355 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15356 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15357 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15358 (usr_store_inferior_registers): Ditto.
15359 (linux_read_memory, linux_write_memory): Ditto.
15360 (linux_test_for_tracefork): Ditto.
15361
3743bb4f
DE
15362 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15363 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15364
8b315be5
PA
153652010-01-21 Pedro Alves <pedro@codesourcery.com>
15366
15367 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15368 target.
15369
85492558
PA
153702010-01-21 Pedro Alves <pedro@codesourcery.com>
15371
15372 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15373 prototype to take a regcache. Adjust.
15374
442ea881
PA
153752010-01-20 Pedro Alves <pedro@codesourcery.com>
15376
15377 * regcache.h (struct thread_info): Forward declare.
15378 (struct regcache): New.
15379 (new_register_cache): Adjust prototype.
15380 (get_thread_regcache): Declare.
15381 (free_register_cache): Adjust prototype.
15382 (registers_to_string, registers_from_string): Ditto.
15383 (supply_register, supply_register_by_name, collect_register)
15384 (collect_register_as_string, collect_register_by_name): Ditto.
15385 * regcache.c (struct inferior_regcache_data): Delete.
15386 (get_regcache): Rename to ...
15387 (get_thread_regcache): ... this. Adjust. Switch inferior before
15388 fetching registers.
15389 (regcache_invalidate_one): Adjust.
15390 (regcache_invalidate): Fix prototype.
15391 (new_register_cache): Return the new register cache.
15392 (free_register_cache): Change prototype.
15393 (realloc_register_cache): Adjust.
15394 (registers_to_string): Change prototype to take a regcache. Adjust.
15395 (registers_from_string): Ditto.
15396 (register_data): Ditto.
15397 (supply_register): Ditto.
15398 (supply_register_by_name): Ditto.
15399 (collect_register): Ditto.
15400 (collect_register_as_string): Ditto.
15401 (collect_register_by_name): Ditto.
15402 * server.c (process_serial_event): Adjust.
15403 * linux-low.h (regset_fill_func, regset_store_func): Change
15404 prototype.
15405 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15406 Change prototype.
15407 * linux-low.c (get_stop_pc): Adjust.
15408 (check_removed_breakpoint): Adjust.
15409 (linux_wait_for_event): Adjust.
15410 (linux_resume_one_lwp): Adjust.
15411 (fetch_register): Add regcache parameter. Adjust.
15412 (usr_store_inferior_registers): Ditto.
15413 (regsets_fetch_inferior_registers): Ditto.
15414 (regsets_store_inferior_registers): Ditto.
15415 (linux_fetch_registers, linux_store_registers): Ditto.
15416 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15417 regcache. Adjust.
43aaf8b6
PA
15418 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15419 Ditto.
442ea881
PA
15420 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15421 prototype to take a regcache.
15422 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15423 * remote-utils.c (convert_ascii_to_int, outreg)
15424 (prepare_resume_reply): Change prototype to take a regcache.
15425 Adjust.
15426 * target.h (struct target_ops) <fetch_registers, store_registers>:
15427 Change prototype to take a regcache.
15428 (fetch_inferior_registers, store_inferior_registers): Change
15429 prototype to take a regcache. Adjust.
15430 * proc-service.c (ps_lgetregs): Adjust.
15431 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15432 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15433 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15434 take a regcache. Adjust.
15435 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15436 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15437 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15438 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15439 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15440 (cris_cannot_fetch_register):
15441 (cris_breakpoint_at): Change prototype to take a regcache.
15442 Adjust.
15443 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15444 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15445 to take a regcache. Adjust.
15446 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15447 Adjust.
15448 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15449 take a regcache. Adjust.
15450 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15451 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15452 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15453 * linux-mips-low.c (mips_get_pc):
15454 (mips_set_pc): Change prototype to take a regcache. Adjust.
15455 (mips_reinsert_addr): Adjust.
15456 (mips_collect_register): Change prototype to take a regcache.
15457 Adjust.
15458 (mips_supply_register):
15459 (mips_collect_register_32bit, mips_supply_register_32bit)
15460 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15461 (mips_store_fpregset): Ditto.
43aaf8b6
PA
15462 * linux-ppc-low.c (ppc_supply_ptrace_register)
15463 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
15464 (parse_spufs_run): Adjust.
15465 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15466 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15467 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15468 take a regcache. Adjust.
15469 * linux-s390-low.c (s390_collect_ptrace_register)
15470 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15471 (s390_set_pc): Change prototype to take a regcache. Adjust.
15472 (s390_arch_setup): Adjust.
15473 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15474 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15475 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15476 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15477 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15478 regcache. Adjust.
15479 (sparc_breakpoint_at): Adjust.
15480 * linux-xtensa-low.c (xtensa_fill_gregset):
15481 (xtensa_store_gregset):
15482 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15483 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15484 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15485 prototype to take a regcache. Adjust.
15486 * win32-arm-low.c (arm_fetch_inferior_register)
15487 (arm_store_inferior_register): Change prototype to take a
15488 regcache. Adjust.
15489 * win32-i386-low.c (i386_fetch_inferior_register)
15490 (i386_store_inferior_register): Change prototype to take a
15491 regcache. Adjust.
15492 * win32-low.c (child_fetch_inferior_registers)
15493 (child_store_inferior_registers): Change prototype to take a
15494 regcache. Adjust.
15495 (win32_wait): Adjust.
15496 (win32_fetch_inferior_registers): Change prototype to take a
15497 regcache. Adjust.
15498 (win32_store_inferior_registers): Adjust.
15499 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15500 store_inferior_register>: Change prototype to take a regcache.
15501
60c3d7b0
DE
155022010-01-20 Doug Evans <dje@google.com>
15503
15504 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15505 #ifdef.
15506 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 15507 (W_STOPCODE): Provide definition if missing.
60c3d7b0 15508
dc146f7c
VP
155092010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15510
15511 * linux-low.c (linux_core_of_thread): New.
15512 (compare_ints, show_process, list_threads): New.
15513 (linux_qxfer_osdata): Report threads and cores.
15514 (linux_target_op): Register linux_core_of_thread.
15515 * remote-utils.c (prepare_resume_reply): Report the core.
15516 (buffer_xml_printf): Support %d specifier.
15517 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15518 New.
15519 (handle_query): Handle qXfer:threads. Announce availability
15520 thereof.
15521 * target.h (struct target_ops): New field core_of_thread.
15522
7803799a
UW
155232010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15524
15525 * Makefile.in (clean): Remove new generated files.
15526 (reg-s390.o, reg-s390.c): Remove rules.
15527 (reg-s390x.o, reg-s390x.c): Likewise.
15528 (s390-linux32.o, s390-linux32.c): Add rules.
15529 (s390-linux64.o, s390-linux64.c): Likewise.
15530 (s390x-linux64.o, s390x-linux64.c): Likewise.
15531 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15532 * linux-s390-low.c: Include <elf.h>.
15533 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15534 (init_registers_s390): Remove prototype.
15535 (init_registers_s390x): Likewise.
15536 (init_registers_s390_linux32): Add prototype.
15537 (init_registers_s390_linux64): Likewise.
15538 (init_registers_s390x_linux64): Likewise.
15539 (s390_num_regs_3264): New define.
15540 (s390_regmap_3264): New global variable.
15541 (s390_cannot_fetch_register): Remove obsolete check.
15542 (s390_cannot_store_register): Likewise.
15543 (s390_collect_ptrace_register): Handle upper/lower register halves.
15544 (s390_supply_ptrace_register): Likewise.
15545 (s390_fill_gregset): Update to register number changes.
15546 (s390_get_hwcap): New routine.
15547 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15548 Install appropriate regmap and register set.
15549
6e7ffa39
JB
155502010-01-01 Joel Brobecker <brobecker@adacore.com>
15551
15552 * server.c (gdbserver_version): Update copyright year to 2010.
15553 * gdbreplay.c (gdbreplay_version): Likewise.
15554
957f3f49
DE
155552009-12-28 Doug Evans <dje@google.com>
15556
15557 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15558 elf/external.h. Include <elf.h> instead but only if necessary.
15559
ca5c370d
PA
155602009-12-28 Pedro Alves <pedro@codesourcery.com>
15561
15562 * linux-low.c (linux_remove_process): Remove `detaching'
15563 parameter. Don't release/detach from thread_db here.
15564 (linux_kill): Release/detach from thread_db here, ...
15565 (linux_detach): ... and here, before actually detaching.
15566 (linux_wait_1): ... and here, when a process exits.
15567 * thread-db.c (any_thread_of): New.
15568 (thread_db_free): Switch the current inferior to a thread of the
15569 passed in process.
15570
4ee62156
DE
155712009-12-21 Doug Evans <dje@google.com>
15572
d90e6a88
DE
15573 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15574
c5f62d5f
DE
15575 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15576 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15577 warning ifndef __NR_tkill. Move setting of errno there too.
15578 Delete unnecessary resetting of errno after syscall.
15579 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15580
10e86dd7
DE
15581 * configure.ac: Check for dladdr.
15582 * config.in: Regenerate.
15583 * configure: Regenerate.
15584 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15585 (try_thread_db_load): Update.
15586
4ee62156
DE
15587 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15588
00f515da
DE
155892009-12-18 Doug Evans <dje@google.com>
15590
e9464885
DE
15591 * event-loop.c: Include unistd.h if it exists.
15592
07d4f67e
DE
15593 * linux-low.c (my_waitpid): Move definition away from being in
15594 between linux_tracefork_child/linux_test_for_tracefork.
15595
00f515da
DE
15596 * gdb_proc_service.h (psaddr_t): Fix type.
15597 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15598 signature to match glibc.
15599
1de1badb
DE
156002009-12-16 Doug Evans <dje@google.com>
15601
15602 * linux-low.c (linux_read_memory): Fix argument to read.
15603
aeeb81d1
PA
156042009-11-26 Pedro Alves <pedro@codesourcery.com>
15605
15606 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15607 events, don't leave current_inferior pointing at null.
15608
10357975
PA
156092009-11-26 Pedro Alves <pedro@codesourcery.com>
15610
15611 * win32-low.c (LOG): Delete.
15612 (OUTMSG): Output to stderr.
15613 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15614 on compile time LOG macro.
15615 (win32_wait): Fix debug output.
15616
cf6e3471
PA
156172009-11-26 Pedro Alves <pedro@codesourcery.com>
15618
15619 * win32-low.c (win32_add_one_solib): If the dll name is
15620 "ntdll.dll", prepend the system directory to the dll path.
15621
0c85e18e
MK
156222009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15623
15624 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15625
9ac544ce 156262009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 15627 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
15628
15629 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15630 * configure.ac: Check for __mcoldfire__ and set
15631 gdb_cv_m68k_is_coldfire.
15632 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15633 reg-cf.o and reg-m68k.o.
15634 * configure: Regenerated.
15635
fd7dd3e6
PA
156362009-11-16 Pedro Alves <pedro@codesourcery.com>
15637
15638 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15639 Pass it to thread_db_free.
15640 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15641 proper `detaching' argument to linux_remove_process.
15642 * linux-low.h (thread_db_free): Add `detaching' parameter.
15643 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15644 to thread_db_free.
15645 (thread_db_free): Add `detaching' parameter. Only
15646 call td_ta_clear_event if detaching from process.
15647
75aa492e
MK
156482009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15649
15650 * thread-db.c (thread_db_free): Fix typo.
15651
21e1bee4
PP
156522009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15653
15654 PR gdb/10838
15655 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15656
8838b45e
NS
156572009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15658
15659 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15660 with an i686 compiler.
15661 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15662 needed.
15663 * configure: Rebuilt.
15664
8a35fb51
SL
156652009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15666
15667 PR gdb/10783
15668
15669 * server.c (handle_search_memory_1): Correct read_addr initialization
15670 in loop for searching subsequent chunks.
15671
96f15937
PP
156722009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15673
15674 * configure.ac: New --with-libthread-db option.
15675 * thread-db.c: Allow direct dependence on libthread_db.
15676 (thread_db_free): Adjust.
15677 * config.in: Regenerate.
15678 * configure: Likewise.
889bf7c5 15679
5f7d1694
PP
156802009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15681
15682 PR gdb/10757
15683 * thread-db.c (attach_thread): New function.
15684 (maybe_attach_thread): Return success/failure.
15685 (find_new_threads_callback): Adjust.
889bf7c5
PA
15686 (thread_db_find_new_threads): Loop until no new threads.
15687
88e3b899
PA
156882009-10-13 Pedro Alves <pedro@codesourcery.com>
15689
15690 * proc-service.c (ps_lgetregs): Formatting.
15691
cdbfd419
PP
156922009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
15693
15694 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
15695 * configure.ac: Adjust.
15696 * linux-low.h (struct process_info_private): Move members to struct
15697 thread_db.
15698 (thread_db_free, thread_db_handle_monitor_command): New prototype.
15699 * linux-low.c (linux_remove_process): Adjust.
15700 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
15701 * server.c (handle_query): Move code ...
15702 (handle_monitor_command): ... here. New function.
15703 * target.h (struct target_ops): New member.
15704 * thread-db.c (struct thread_db): New.
15705 (libthread_db_search_path): New variable.
15706 (thread_db_create_event, thread_db_enable_reporting)
15707 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
15708 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
15709 (try_thread_db_load_1, dladdr_to_soname): New functions.
15710 (try_thread_db_load, thread_db_load_search): New functions.
15711 (thread_db_init): Search for libthread_db.
15712 (thread_db_free): New function.
15713 (thread_db_handle_monitor_command): Likewise.
15714 * config.in: Regenerate.
15715 * configure: Regenerate.
889bf7c5 15716
4168d2d6
UW
157172009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
15718
15719 * spu-low.c (spu_kill): Wait for inferior to terminate.
15720 Call clear_inferiors.
15721 (spu_detach): Call clear_inferiors.
15722
81ecdfbb
RW
157232009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15724
15725 * aclocal.m4: Regenerate.
15726 * config.in: Likewise.
15727 * configure: Likewise.
15728
0b9ff2c0
UW
157292009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15730
15731 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
15732 (parse_spufs_run): New function.
15733 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
15734 (ppc_breakpoint_at): Handle SPU breakpoints.
15735
efcbbd14
UW
157362009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15737
15738 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15739 (SPUFS_MAGIC): Define.
15740 (spu_enumerate_spu_ids): New function.
15741 (linux_qxfer_spu): New function.
15742 (linux_target_ops): Install linux_qxfer_spu.
15743
f4d9bade
UW
157442009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15745
15746 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15747 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15748 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15749 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15750 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15751 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15752 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15753 (init_registers_powerpc_cell32l): Add prototype.
15754 (init_registers_powerpc_cell64l): Likewise.
15755 (ppc_arch_setup): Detect Cell/B.E. architecture.
15756
96e946ca
RW
157572009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15758
15759 * Makefile.in (datarootdir): New variable.
15760
58d6951d
DJ
157612009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15762
15763 * linux-low.c (linux_write_memory): Update debugging output.
15764 * Makefile.in (clean): Add new descriptions.
15765 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15766 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15767 * configure.srv: Add new files for arm*-*-linux*.
15768 * linux-arm-low.c: Add new declarations.
15769 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15770 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15771 (HWCAP_VFPv3D16): New.
15772 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15773 instead of __IWMMXT__.
15774 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15775 (arm_arch_setup): New.
15776 (target_regsets): Remove #ifdef. Add VFP regset.
15777 (the_low_target): Use arm_arch_setup.
15778
12b42a12
DJ
157792009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15780
15781 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15782 the main thread again.
15783
ac8c974e
AR
157842009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15785
15786 Adding Neutrino gdbserver.
15787 * configure: Regenerated.
15788 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15789 * configure.srv (i[34567]86-*-nto*): New target.
15790 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15791 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15792 (nto_comctrl) [__QNX__]: New function.
15793 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15794
4424e0c3 157952009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
15796
15797 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15798 srv_tgtobj.
15799
912cf4ba
PA
158002009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15801 Pedro Alves <pedro@codesourcery.com>
15802
15803 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15804 don't support CONTEXT_EXTENDED_REGISTERS.
15805 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15806 (the_low_target): Install them.
15807 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15808 failing with ERROR_PIPE_NOT_CONNECTED.
15809
aa5ca48f
DE
158102009-06-30 Doug Evans <dje@google.com>
15811 Pierre Muller <muller@ics.u-strasbg.fr>
15812
15813 Add h/w watchpoint support to x86-linux, win32-i386.
15814 * Makefile.in (SFILES): Add i386-low.c
15815 (i386_low_h): Define.
15816 (i386-low.o): Add dependencies.
15817 (linux-x86-low.o): Add i386-low.h dependency.
15818 (win32-i386-low.o): Ditto.
15819 * i386-low.c: New file.
15820 * i386-low.h: New file.
15821 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15822 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15823 * linux-low.c (linux_add_process): Initialize arch_private.
15824 (linux_remove_process): Free arch_private.
15825 (add_lwp): Initialize arch_private.
15826 (delete_lwp): Free arch_private.
15827 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15828 provided.
15829 * linux-low.h (process_info_private): New member arch_private.
15830 (lwp_info): New member arch_private.
15831 (linux_target_ops): New members new_process, new_thread,
15832 prepare_to_resume.
15833 (ptid_of): New macro.
15834 * linux-x86-low.c: Include stddef.h, i386-low.h.
15835 (arch_process_info): New struct.
15836 (arch_lwp_info): New struct.
15837 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15838 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15839 (i386_dr_low_get_status): New function.
15840 (x86_insert_point, x86_remove_point): New functions.
15841 (x86_stopped_by_watchpoint): New function.
15842 (x86_stopped_data_address): New function.
15843 (x86_linux_new_process, x86_linux_new_thread): New functions.
15844 (x86_linux_prepare_to_resume): New function.
15845 (the_low_target): Add entries for insert_point, remove_point,
15846 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15847 prepare_to_resume.
15848 * server.c (debug_hw_points): New global.
15849 (monitor_show_help): Document set debug-hw-points.
15850 (handle_query): Process "set debug-hw-points".
15851 * server.h (debug_hw_points): Declare.
15852 (paddress): Declare.
15853 * utils.c (NUMCELLS, CELLSIZE): New macros.
15854 (get_sell, xsnprintf, paddress): New functions.
15855 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15856 remove_point, stopped_by_watchpoint, stopped_data_address.
15857 * win32-i386-low.c: Include i386-low.h.
15858 (debug_reg_state): Replaces dr.
15859 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15860 (i386_dr_low_get_status): New function.
15861 (i386_insert_point, i386_remove_point): New functions.
15862 (i386_stopped_by_watchpoint): New function.
15863 (i386_stopped_data_address): New function.
15864 (i386_initial_stuff): Update.
15865 (get_thread_context,set_thread_context,i386_thread_added): Update.
15866 (the_low_target): Add entries for insert_point,
15867 remove_point, stopped_by_watchpoint, stopped_data_address.
15868 * win32-low.c (win32_insert_watchpoint): New function.
15869 (win32_remove_watchpoint): New function.
15870 (win32_stopped_by_watchpoint): New function.
15871 (win32_stopped_data_address): New function.
15872 (win32_target_ops): Add entries for insert_watchpoint,
15873 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15874 * win32-low.h (win32_target_ops): New members insert_point,
15875 remove_point, stopped_by_watchpoint, stopped_data_address.
15876
d993e290
PA
158772009-06-25 Pedro Alves <pedro@codesourcery.com>
15878
15879 * server.c (process_serial_event): Re-return unsupported, not
15880 error, if the type isn't recognized. Re-allow supporting only
15881 insert or remove packets. Also call require_running for
15882 breakpoints. Add missing break statement to default case. Tidy.
15883 * target.h (struct target_ops): Rename insert_watchpoint to
15884 insert_point, and remove_watchpoint to remove_point.
15885
15886 * linux-low.h (struct linux_target_ops): Likewise.
15887 * linux-low.c (linux_insert_watchpoint): Rename to ...
15888 (linux_insert_point): ... this. Adjust.
15889 (linux_remove_watchpoint): Rename to ...
15890 (linux_remove_point): ... this. Adjust.
15891 (linux_target_ops): Adjust.
15892 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15893 (cris_insert_point): ... this.
15894 (cris_remove_watchpoint): Rename to ...
15895 (cris_remove_point): ... this.
15896 (the_low_target): Adjust.
15897
0f54c268
PM
158982009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15899
15900 * server.c (handle_v_kill): Pass signal_pid to
15901 kill_inferior if multi_process is zero.
15902
c6314022
AR
159032009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15904
15905 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15906 * target.h (target_ops): Comment for *_watchpoint to make it clear
15907 the functions can get types '0' and '1'.
15908
4463ce24
AR
159092009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15910
15911 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15912 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15913 * regcache.c (get_regcache): Likewise.
15914 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15915 * win32-low.c (child_fetch_inferior_registers): Remove check for
15916 regno 0.
15917
cf8fd78b
PA
159182009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15919 Pedro Alves <pedro@codesourcery.com>
15920
15921 * target.h (struct target_ops) <supports_multi_process>: New
15922 callback.
15923 (target_supports_multi_process): New.
15924 * server.c (handle_query): Even if GDB reports support, only
15925 enable multi-process if the target also supports it. Report
15926 multi-process support only if the target backend supports it.
15927 * linux-low.c (linux_supports_multi_process): New function.
15928 (linux_target_ops): Install it as target_supports_multi_process
15929 callback.
15930
47c0c975
DE
159312009-05-24 Doug Evans <dje@google.com>
15932
e09875d4
DE
15933 Global renaming of find_thread_pid to find_thread_ptid.
15934 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15935 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15936 All callers updated.
15937
e27d73f6
DE
15938 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15939 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15940 directly.
15941
47c0c975
DE
15942 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15943 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15944 (linux_resume_one_lwp): Ditto.
15945
2acc282a
DE
159462009-05-23 Doug Evans <dje@google.com>
15947
15948 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15949 from struct inferior_list_entry * to struct lwp_info *.
15950 All callers updated.
15951
9f1036c1
DE
159522009-05-13 Doug Evans <dje@google.com>
15953
15954 * linux-x86-low.c: Don't include assert.h.
15955 (x86_siginfo_fixup): Use fatal, not assert.
15956 (x86_arch_setup): Fix comment.
15957
d0722149
DE
159582009-05-12 Doug Evans <dje@google.com>
15959
15960 Biarch support for i386/amd64 gdbserver.
15961 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15962 Add linux-x86-low.c.
15963 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15964 (linux-x86-low.o): Add.
15965 * linux-x86-64-low.c: Delete.
15966 * linux-i386-low.c: Delete.
15967 * linux-x86-low.c: New file.
15968 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15969 linux-x86-low.o.
15970 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15971 linux-x86-low.o.
15972 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15973 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15974 (linux_child_pid_to_exec_file): New function.
15975 (elf_64_header_p, elf_64_file_p): New functions.
15976 (siginfo_fixup): New function.
15977 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15978 give target a chance to convert layout.
15979 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15980 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15981
fdeb2a12
DE
159822009-05-07 Doug Evans <dje@google.com>
15983
15984 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15985 (regsets_store_inferior_registers): Ditto.
15986
a6dbe5df
PA
159872009-05-06 Pedro Alves <pedro@codesourcery.com>
15988
15989 PR server/10048
15990
15991 * linux-low.c (must_set_ptrace_flags): Delete.
15992 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15993 of the global.
15994 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15995 `lwp->must_set_ptrace_flags' instead.
ba42693b 15996 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
15997 (linux_wait_1): ... not here.
15998
5091eb23
DE
159992009-04-30 Doug Evans <dje@google.com>
16000
9f767825
DE
16001 * inferiors.c (started_inferior_callback): New function.
16002 (attached_inferior_callback): New function.
16003 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16004 * server.c (print_started_pid, print_attached_pid): New functions.
16005 (detach_or_kill_for_exit): New function.
16006 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16007 * server.h (have_started_inferiors_p): Declare.
16008 (have_attached_inferiors_p): Declare.
16009
5091eb23
DE
16010 * inferiors.c (remove_process): Fix memory leak, free process.
16011 * linux-low.c (linux_remove_process): New function.
16012 (linux_kill): Call it instead of remove_process.
16013 (linux_detach, linux_wait_1): Ditto.
16014
155c8968
PA
160152009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16016
16017 * configure.srv: Add x86 Windows CE target.
16018
7fe519cb
UW
160192009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16020
16021 * inferiors.c (get_thread_process): Make global.
16022 * server.h (get_thread_process): Add prototype.
16023 * thread-db.c (find_one_thread): Use get_thread_process
16024 instead of current_process.
16025 (thread_db_get_tls_address): Do not crash if called when
16026 thread layer is not yet initialized.
16027
5472f405
UW
160282009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16029
16030 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16031 * spu-low.c (current_tid): Rename to ...
16032 (current_ptid): ... this.
16033 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16034 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16035 ptid_get_lwp (current_ptid) instead of current_tid.
16036 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16037 instead of current_tid. Use find_process_pid to verify pid
16038 argument is valid. Pass proper argument to remove_process.
16039 (spu_thread_alive): Compare current_ptid instead of current_tid.
16040 (spu_resume): Likewise.
16041
55ac2b99
PA
160422009-04-02 Pedro Alves <pedro@codesourcery.com>
16043
16044 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16045 variable.
16046
95954743
PA
160472009-04-01 Pedro Alves <pedro@codesourcery.com>
16048
16049 Implement the multiprocess extensions, and add linux multiprocess
16050 support.
16051
16052 * server.h (ULONGEST): Declare.
16053 (struct ptid, ptid_t): New.
16054 (minus_one_ptid, null_ptid): Declare.
16055 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16056 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16057 (struct inferior_list_entry): Change `id' type from unsigned from
16058 to ptid_t.
16059 (struct sym_cache, struct breakpoint, struct
16060 process_info_private): Forward declare.
16061 (struct process_info): Declare.
16062 (current_process): Declare.
16063 (all_processes): Declare.
16064 (initialize_inferiors): Declare.
16065 (add_thread): Adjust to use ptid_t.
16066 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16067 (add_process, remove_process, find_thread_pid): Declare.
16068 (find_inferior_id): Adjust to use ptid_t.
16069 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16070 (multi_process): Declare.
16071 (push_event): Adjust to use ptid_t.
16072 (read_ptid, write_ptid): Declare.
16073 (prepare_resume_reply): Adjust to use ptid_t.
16074 (clear_symbol_cache): Declare.
16075 * inferiors.c (all_processes): New.
16076 (null_ptid, minus_one_ptid): New.
16077 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16078 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16079 (add_thread): Change unsigned long to ptid. Remove gdb_id
16080 parameter. Adjust.
16081 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16082 (gdb_id_to_thread): Rename to ...
16083 (find_thread_pid): ... this. Change unsigned long to ptid.
16084 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16085 (loaded_dll, pull_pid_from_list): Adjust.
16086 (add_process, remove_process, find_process_pid)
16087 (get_thread_process, current_process, initialize_inferiors): New.
16088 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16089 (struct target_waitstatus) <related_pid>: Ditto.
16090 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16091 return type to int.
16092 (struct target_ops) <join>: Add `pid' argument.
16093 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16094 (struct target_ops) <wait>: Add `ptid' field. Change return type
16095 to ptid.
16096 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16097 (mywait): Add `ptid' argument. Change return type to ptid_t.
16098 (target_pid_to_str): Declare.
16099 * target.c (set_desired_inferior): Adjust to use ptids.
16100 (mywait): Add new `ptid' argument. Adjust.
16101 (target_pid_to_str): New.
16102 * mem-break.h (free_all_breakpoints): Declare.
16103 * mem-break.c (breakpoints): Delelete.
16104 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16105 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16106 to use per-process breakpoint list.
16107 (free_all_breakpoints): New.
16108 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16109 (symbol_cache, all_symbols_looked_up): Delete.
16110 (hexchars): New.
16111 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16112 read_ptid): New.
16113 (prepare_resume_reply): Change ptid argument's type from unsigned
16114 long to ptid_t. Adjust. Implement W;process and X;process.
16115 (free_sym_cache, clear_symbol_cache): New.
16116 (look_up_one_symbol): Adjust to per-process symbol cache. *
16117 * server.c (cont_thread, general_thread, step_thread): Change type
16118 to ptid_t.
16119 (attached): Delete.
16120 (multi_process): New.
16121 (last_ptid): Change type to ptid_t.
16122 (struct vstop_notif) <ptid>: Change type to ptid_t.
16123 (queue_stop_reply, push_event): Change `ptid' argument's type to
16124 ptid_t.
16125 (discard_queued_stop_replies): Add `pid' argument.
16126 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16127 changes. Don't reference the `attached' global.
16128 (attach_inferior): Adjust to mywait interface changes.
16129 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16130 features. Handle and report "multiprocess+". Handle
16131 "qAttached:PID".
16132 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16133 changes.
16134 (handle_v_kill): New.
16135 (handle_v_stopped): Adjust to use target_pid_to_str.
16136 (handle_v_requests): Allow multiple attaches and runs when
16137 multiprocess extensions are in effect. Handle "vKill".
16138 (myresume): Adjust to use ptids.
16139 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16140 (handle_status): Adjust to discard_queued_stop_replies interface
16141 change.
16142 (first_thread_of, kill_inferior_callback)
16143 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16144 (main): Call initialize_inferiors. Adjust to use ptids, killing
16145 and detaching from all inferiors. Handle multiprocess packet
16146 variants.
16147 * linux-low.h: Include gdb_proc_service.h.
16148 (struct process_info_private): New.
16149 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16150 <lwpid_of>: Use ptid_get_lwp.
16151 (get_lwp_thread): Adjust.
16152 (struct lwp_info): Add `dead' member.
16153 (find_lwp_pid): Declare.
16154 * linux-low.c (thread_db_active): Delete.
16155 (new_inferior): Adjust comment.
16156 (inferior_pid): Delete.
16157 (linux_add_process): New.
16158 (handle_extended_wait): Adjust.
16159 (add_lwp): Change unsigned long to ptid.
16160 (linux_create_inferior): Add process to processes table. Adjust
16161 to use ptids. Don't set new_inferior here.
16162 (linux_attach_lwp): Rename to ...
16163 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16164 it. Adjust to use ptids.
16165 (linux_attach_lwp): New.
16166 (linux_attach): Add process to processes table. Don't set
16167 new_inferior here.
16168 (struct counter): New.
16169 (second_thread_of_pid_p, last_thread_of_process_p): New.
16170 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16171 multiple processes.
16172 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16173 processes. Remove process from process table.
16174 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16175 to multiple processes.
16176 (any_thread_of): New.
16177 (linux_detach): Add `pid' argument, and handle it. Remove process
16178 from processes table.
16179 (linux_join): Add `pid' argument. Handle it.
16180 (linux_thread_alive): Change unsighed long argument to ptid_t.
16181 Consider dead lwps as not being alive.
16182 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16183 threads we're not interested in.
16184 (same_lwp, find_lwp_pid): New.
16185 (linux_wait_for_lwp): Change `pid' argument's type from int to
16186 ptid_t. Adjust.
16187 (linux_wait_for_event): Rename to ...
16188 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16189 from int to ptid_t. Adjust.
16190 (linux_wait_for_event): New.
16191 (linux_wait_1): Add `ptid' argument. Change return type to
16192 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16193 that exit from the process table.
16194 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16195 Adjust.
16196 (mark_lwp_dead): New.
16197 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16198 stopping all threads, mark its main lwp as dead.
16199 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16200 ptids.
16201 (fetch_register, usr_store_inferior_registers)
16202 (regsets_fetch_inferior_registers)
16203 (regsets_store_inferior_registers, linux_read_memory)
16204 (linux_write_memory): Inline `inferior_pid'.
16205 (linux_look_up_symbols): Adjust to use per-process
16206 `thread_db_active'.
16207 (linux_request_interrupt): Adjust to use ptids.
16208 (linux_read_auxv): Inline `inferior_pid'.
16209 (initialize_low): Don't reference thread_db_active.
16210 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16211 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16212 (ps_getpid): Return the pid of the current inferior.
16213 * thread-db.c (proc_handle, thread_agent): Delete.
16214 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16215 per-process data.
16216 (find_one_thread): Change argument type to ptid_t. Adjust to
16217 per-process data.
16218 (maybe_attach_thread): Adjust to per-process data and ptids.
16219 (thread_db_find_new_threads): Ditto.
16220 (thread_db_init): Ditto.
16221 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16222 processes table. Adjust to use ptids.
16223 (spu_kill, spu_detach): Adjust interface. Remove process from
16224 processes table.
16225 (spu_join, spu_thread_alive): Adjust interface.
16226 (spu_wait): Adjust interface. Remove process from processes
16227 table. Adjust to use ptids.
16228 * win32-low.c (current_inferior_tid): Delete.
16229 (current_inferior_ptid): New.
16230 (debug_event_ptid): New.
16231 (thread_rec): Take a ptid. Adjust.
16232 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16233 (child_delete_thread): Ditto.
16234 (do_initial_child_stuff): Add `attached' argument. Add process to
16235 processes table.
16236 (child_fetch_inferior_registers, child_store_inferior_registers):
16237 Adjust.
16238 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16239 (win32_attach): Pass 1 to do_initial_child_stuff.
16240 (win32_kill): Adjust interface. Remove process from processes
16241 table.
16242 (win32_detach): Ditto.
16243 (win32_join): Adjust interface.
16244 (win32_thread_alive): Take a ptid.
16245 (win32_resume): Adjust to use ptids.
16246 (get_child_debug_event): Ditto.
16247 (win32_wait): Adjust interface. Remove exiting process from
16248 processes table.
16249
bd99dc85
PA
162502009-04-01 Pedro Alves <pedro@codesourcery.com>
16251
16252 Non-stop mode support.
16253
16254 * server.h (non_stop): Declare.
16255 (gdb_client_data, handler_func): Declare.
16256 (delete_file_handler, add_file_handler, start_event_loop):
16257 Declare.
16258 (handle_serial_event, handle_target_event, push_event)
16259 (putpkt_notif): Declare.
16260 * target.h (enum resume_kind): New.
16261 (struct thread_resume): Replace `step' field by `kind' field.
16262 (TARGET_WNOHANG): Define.
16263 (struct target_ops) <wait>: Add `options' argument.
16264 <supports_non_stop, async, start_non_stop>: New fields.
16265 (target_supports_non_stop, target_async): New.
16266 (start_non_stop): Declare.
16267 (mywait): Add `options' argument.
16268 * target.c (mywait): Add `options' argument. Print child exit
16269 notifications here.
16270 (start_non_stop): New.
16271 * server.c (non_stop, own_buf, mem_buf): New globals.
16272 (struct vstop_notif): New.
16273 (notif_queue): New global.
16274 (queue_stop_reply, push_event, discard_queued_stop_replies)
16275 (send_next_stop_reply): New.
16276 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16277 interface changes.
16278 (attach_inferior): In non-stop mode, don't wait for the target
16279 here.
16280 (handle_general_set): Handle QNonStop.
16281 (handle_query): When handling qC, return the current general
16282 thread, instead of the first thread of the list.
16283 (handle_query): If the backend supports non-stop mode, include
16284 QNonStop+ in the qSupported query response.
16285 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16286 and non-stop mode.
16287 (handle_v_attach, handle_v_run): Handle non-stop mode.
16288 (handle_v_stopped): New.
16289 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16290 (myresume): Adjust to use resume_kind. Handle non-stop.
16291 (queue_stop_reply_callback): New.
16292 (handle_status): Handle non-stop mode.
16293 (main): Clear non_stop flag on reconnection. Use the event-loop.
16294 Refactor serial protocol handling from here ...
16295 (process_serial_event): ... to this new function. When GDB
16296 selects any thread, select one here. In non-stop mode, wait until
16297 GDB acks all pending events before exiting.
16298 (handle_serial_event, handle_target_event): New.
16299 * remote-utils.c (remote_open): Install remote_desc in the event
16300 loop.
16301 (remote_close): Remove remote_desc from the event loop.
16302 (putpkt_binary): Rename to...
16303 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16304 (putpkt_binary): New as wrapper around putpkt_binary_1.
16305 (putpkt_notif): New.
16306 (prepare_resume_reply): In non-stop mode, don't change the
16307 general_thread.
16308 * event-loop.c: New.
16309 * Makefile.in (OBJ): Add event-loop.o.
16310 (event-loop.o): New rule.
16311
16312 * linux-low.h (pid_of): Moved here.
16313 (lwpid_of): New.
16314 (get_lwp_thread): Use lwpid_of.
16315 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16316 * linux-low.c (pid_of): Delete.
16317 (inferior_pid): Use lwpid_of.
16318 (linux_event_pipe): New.
16319 (target_is_async_p): New.
16320 (delete_lwp): New.
16321 (handle_extended_wait): Use lwpid_of.
16322 (add_lwp): Don't set lwpid field.
16323 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16324 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16325 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16326 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16327 first. Adjust to linux_wait_for_event interface changes. Use
16328 lwpid_of.
16329 (linux_detach): Don't delete the main lwp here.
16330 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16331 (status_pending_p): Don't consider explicitly suspended lwps.
16332 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16333 pointer. Add OPTIONS argument. Change return type to int. Use
16334 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16335 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16336 pointer. Add status pointer argument. Return a pid instead of a
16337 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16338 changes. In non-stop mode, don't switch to a random thread.
16339 (linux_wait): Rename to...
16340 (linux_wait_1): ... this. Add target_options argument, and handle
16341 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16342 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16343 clean exit and signal exit code. Don't stop all threads in
16344 non-stop mode. In all-stop mode, only stop all threads when
16345 reporting a stop to GDB. Handle explicit thread stop requests.
16346 (async_file_flush, async_file_mark): New.
16347 (linux_wait): New.
16348 (send_sigstop): Use lwpid_of.
16349 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16350 interface changes. In non-stop mode, don't switch to a random
16351 thread.
16352 (linux_resume_one_lwp): Use lwpid_of.
16353 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16354 (linux_resume_one_thread): ... this. Handle resume_stop. In
16355 non-stop mode, don't look for pending flag in all threads.
16356 (resume_status_pending_p): Don't consider explicitly suspended
16357 threads.
16358 (my_waitpid): Reimplement. Emulate __WALL.
16359 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16360 Use lwpid_of.
16361 (sigchld_handler, linux_supports_non_stop, linux_async)
16362 (linux_start_non_stop): New.
16363 (linux_target_ops): Register linux_supports_non_stop, linux_async
16364 and linux_start_non_stop.
16365 (initialize_low): Install SIGCHLD handler.
16366 * thread-db.c (thread_db_create_event, find_one_thread)
16367 (thread_db_get_tls_address): Use lwpid_of.
16368 * win32-low.c (win32_detach): Adjust to use resume_kind.
16369 (win32_wait): Add `options' argument.
16370 * spu-low.c (spu_resume): Adjust to use resume_kind.
16371 (spu_wait): Add `options' argument.
16372
5b1c542e
PA
163732009-04-01 Pedro Alves <pedro@codesourcery.com>
16374
16375 Decouple target code from remote protocol.
16376
16377 * target.h (enum target_waitkind): New.
16378 (struct target_waitstatus): New.
16379 (struct target_ops) <wait>: Return an unsigned long. Take a
16380 target_waitstatus pointer instead of a char pointer.
16381 (mywait): Likewise.
16382 * target.c (mywait): Change prototype to return an unsigned long.
16383 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16384 * server.h (thread_from_wait, old_thread_from_wait): Delete
16385 declarations.
16386 (prepare_resume_reply): Change prototype to take a
16387 target_waitstatus.
16388 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16389 (last_status, last_ptid): New.
16390 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16391 pid instead of a signal.
16392 (attach_inferior): Remove "status" and "signal" parameters.
16393 Adjust.
16394 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16395 not as an address.
16396 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16397 (handle_v_requests, myresume): Remove "status" and "signal"
16398 parameters. Adjust.
16399 (handle_status): New.
16400 (main): Delete local `status'. Adjust.
16401 * remote-utils.c: Include target.h.
16402 (prepare_resume_reply): Change prototype to take a
16403 target_waitstatus. Adjust.
16404
16405 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16406 interface.
16407 * spu-low.c (spu_wait): Adjust.
16408 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16409 Delete.
16410 (win32_wait): Adjust.
16411
2bd7c093
PA
164122009-04-01 Pedro Alves <pedro@codesourcery.com>
16413
16414 * target.h (struct thread_resume): Delete leave_stopped member.
16415 (struct target_ops): Add a `n' argument to the `resume' callback.
16416 * server.c (start_inferior): Adjust.
16417 (handle_v_cont, myresume): Adjust.
16418 * linux-low.c (check_removed_breakpoint): Adjust to resume
16419 interface change, and to removed leave_stopped field.
16420 (resume_ptr): Delete.
16421 (struct thread_resume_array): New.
16422 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16423 resume interface change.
16424 (linux_continue_one_thread, linux_queue_one_thread)
16425 (resume_status_pending_p): Check if the resume field is NULL
16426 instead of checking the leave_stopped member.
16427 (linux_resume): Adjust to the target resume interface change.
16428 * spu-low.c (spu_resume): Adjust to the target resume interface
16429 change.
16430 * win32-low.c (win32_detach, win32_resume): Ditto.
16431
c35fafde
PA
164322009-04-01 Pedro Alves <pedro@codesourcery.com>
16433
16434 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16435 flag.
16436 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16437 pending.
16438 (linux_continue_one_thread): Only preserve the stepping flag if
16439 there's a pending breakpoint.
16440
0a59d50b
PA
164412009-03-31 Pedro Alves <pedro@codesourcery.com>
16442
16443 * server.c (main): After the inferior having exited, call
16444 remote_close before exiting gdbserver.
16445
f04c6d38
TJB
164462009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16447
16448 Fix size of FPSCR in Power 7 processors.
16449 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16450 (PPC_FEATURE_HAS_DFP): New #define.
16451 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16452 size of the FPSCR.
16453
78e5cee6
PA
164542009-03-23 Pedro Alves <pedro@codesourcery.com>
16455
16456 * server.c (handle_query) Whitespace and formatting.
16457
1b3f6016
PA
164582009-03-22 Pedro Alves <pedro@codesourcery.com>
16459
16460 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16461 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16462 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16463 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16464 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16465 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16466 Makefile.in, configure.ac: Fix whitespace throughout.
16467 * configure: Regenerate.
16468
a07b2135
PA
164692009-03-22 Pedro Alves <pedro@codesourcery.com>
16470
16471 * inferiors.c (find_inferior): Make it safe for the callback
16472 function to delete the currently iterated inferior.
16473
67cc2626
PA
164742009-03-22 Pedro Alves <pedro@codesourcery.com>
16475
16476 * Makefile.in (linuw_low_h): Move higher.
16477 (thread-db.o): Depend on $(linux_low_h).
16478
54a0b537
PA
164792009-03-17 Pedro Alves <pedro@codesourcery.com>
16480
16481 Rename "process" to "lwp" throughout.
16482
16483 * linux-low.c (all_processes): Rename to...
16484 (all_lwps): ... this.
16485 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16486 (add_process): Rename to ...
16487 (add_lwp): ... this. Adjust.
16488 (linux_create_inferior): Adjust.
16489 (linux_attach_lwp): Adjust.
16490 (linux_attach): Adjust.
16491 (linux_kill_one_process): Rename to ...
16492 (linux_kill_one_lwp): ... this. Adjust.
16493 (linux_kill): Adjust.
16494 (linux_detach_one_process): Rename to ...
16495 (linux_detach_one_lwp): ... this. Adjust.
16496 (linux_detach): Adjust.
16497 (check_removed_breakpoint): Adjust.
16498 (status_pending_p): Adjust.
16499 (linux_wait_for_process): Rename to ...
16500 (linux_wait_for_lwp): ... this. Adjust.
16501 (linux_wait_for_event): Adjust.
16502 (send_sigstop): Adjust.
16503 (wait_for_sigstop): Adjust.
16504 (stop_all_processes): Rename to ...
16505 (stop_all_lwps): ... this.
16506 (linux_resume_one_process): Rename to ...
16507 (linux_resume_one_lwp): ... this. Adjust.
16508 (linux_set_resume_request, linux_continue_one_thread)
16509 (linux_queue_one_thread, resume_status_pending_p)
16510 (usr_store_inferior_registers, regsets_store_inferior_registers)
16511 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16512 Adjust.
16513 * linux-low.h (get_process): Rename to ...
16514 (get_lwp): ... this. Adjust.
16515 (get_thread_process): Rename to ...
16516 (get_thread_lwp): ... this. Adjust.
16517 (get_process_thread): Rename to ...
16518 (get_lwp_thread): ... this. Adjust.
16519 (struct process_info): Rename to ...
16520 (struct lwp_info): ... this.
16521 (all_processes): Rename to ...
16522 (all_lwps): ... this.
16523 * proc-service.c (ps_lgetregs): Adjust.
16524 * thread-db.c (thread_db_create_event, find_one_thread)
16525 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16526
0b16c5cf
PA
165272009-03-14 Pedro Alves <pedro@codesourcery.com>
16528
16529 * server.c (handle_query): Handle "qAttached".
16530
32de4b9d
NS
165312009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16532
16533 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16534 GPLv3, update license URL.
16535
2aecd87f
DE
165362009-03-01 Doug Evans <dje@google.com>
16537
93efd302 16538 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
16539 (server_h): Add gdb_signals.h.
16540 (signals.o): Update.
16541 * server.h (target_signal_from_host,target_signal_to_host_p)
16542 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16543
86b1f9c5
PM
165442009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16545
16546 * remote-utils.c (getpkt): Also generate remote-debug
16547 information if noack_mode is set.
16548
4aa995e1
PA
165492009-02-06 Pedro Alves <pedro@codesourcery.com>
16550
16551 * server.c (handle_query): Report qXfer:siginfo:read and
16552 qXfer:siginfo:write as supported and handle them.
16553 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16554 * linux-low.c (linux_xfer_siginfo): New.
16555 (linux_target_ops): Set it.
16556
62709adf
PA
165572009-01-26 Pedro Alves <pedro@codesourcery.com>
16558
16559 * server.c (gdbserver_usage): Mention --remote-debug.
16560 (main): Accept '--remote-debug' switch.
16561
aef93bd7
DE
165622009-01-18 Doug Evans <dje@google.com>
16563
16564 * regcache.c (new_register_cache): No need to check result of xcalloc.
16565 * server.c (handle_search_memory): Back out calls to xmalloc,
16566 result is checked and error is returned to user upon failure.
16567 (handle_query): Ditto. Add more checks for result of malloc.
16568 (handle_v_cont): Check result of malloc, report error back to
16569 user upon failure.
16570 (handle_v_run): Ditto. Call freeargv.
16571 * server.h (freeargv): Declare.
16572 * utils.c (freeargv): New fn.
16573
54363045
DE
165742009-01-15 Doug Evans <dje@google.com>
16575
f626972c
DE
16576 * gdbreplay.c (perror_with_name): Make arg const char *.
16577 * server.h (target_signal_to_name): Make return type const char *.
0842e787 16578 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 16579 * utils.c (perror_with_name): Make arg const char *.
54363045 16580
18aae699
PA
165812009-01-14 Pedro Alves <pedro@codesourcery.com>
16582
16583 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16584 when handling a EXIT_PROCESS_DEBUG_EVENT.
16585
ff703abe
JB
165862009-01-06 Joel Brobecker <brobecker@adacore.com>
16587
16588 * gdbreplay.c (gdbreplay_version): Update copyright year.
16589 * server.c (gdbserver_version): Likewise.
16590
f21cc1a2 165912009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
16592
16593 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 16594 (handle_extended_wait): Improve comment.
0e21c1ec 16595
bca929d3
DE
165962008-12-13 Doug Evans <dje@google.com>
16597
16598 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16599 * server.h (ATTR_MALLOC): New macro.
16600 (xmalloc,xcalloc,xstrdup): Declare.
16601 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16602 * inferiors.c: Ditto.
16603 * linux-low.c: Ditto.
16604 * mem-break.c: Ditto.
16605 * regcache.c: Ditto.
16606 * remote-utils.c: Ditto.
16607 * server.c: Ditto.
16608 * target.c: Ditto.
16609 * win32-low.c: Ditto.
16610
97438e3f
DE
166112008-12-12 Doug Evans <dje@google.com>
16612
896c7fbb
DE
16613 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16614 in debugging printf.
16615
97438e3f
DE
16616 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16617
e3b886f8
DE
166182008-12-09 Doug Evans <dje@google.com>
16619
16620 * linux-low.h (struct process_info): Delete member tid, unused.
16621 * thread-db.c (find_one_thread): Update.
16622 (maybe_attach_thread): Update.
16623
07e059b5
VP
166242008-12-02 Pedro Alves <pedro@codesourcery.com>
16625
889bf7c5
PA
16626 * target.h (struct target_ops): Add qxfer_osdata member.
16627 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16628 and dirent.h.
16629 (linux_qxfer_osdata): New functions.
16630 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16631 callback.
16632 * server.c (handle_query): Handle "qXfer:osdata:read:".
16633 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16634 (buffer_xml_printf): New functions.
16635 * server.h (struct buffer): New.
16636 (buffer_grow_str, buffer_grow_str0): New macros.
16637 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16638 (buffer_xml_printf): Declare.
07e059b5 16639
4cab47ab
DE
166402008-11-24 Doug Evans <dje@google.com>
16641
16642 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16643
f142445f
DJ
166442008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16645
16646 * server.c (handle_v_run): Always use the supplied argument list.
16647
d0107bb6 166482008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 16649
d0107bb6
BW
16650 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16651 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 16652
2c4ad781
TJB
166532008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16654
16655 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16656 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16657 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16658 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16659 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16660 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16661 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16662 XML target descriptions.
16663 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16664 when inferior is running on an ISA 2.05 or later processor. Add
16665 special case to return offset for full 64-bit slot of FPSCR when
16666 in 32-bits.
16667
dfb64f85
DJ
166682008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16669
16670 * Makefile.in (SFILES, clean): Added sparc64 files.
16671 (reg-sparc64.o, reg-sparc64.c): New.
16672 * configure.srv (sparc*-*-linux*): New configuration.
16673 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16674 syscall arguments for SPARC.
16675 (regsets_store_inferior_registers): Likewise.
16676 * linux-sparc-low.c: New file.
16677
66b6e1dd
DE
166782008-10-21 Doug Evans <dje@google.com>
16679
16680 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16681 (READLINE_DIR,READLINE_DEP): Delete.
16682 (INTERNAL_CFLAGS): Update.
16683 (LINTFLAGS): Update.
16684
9b710a42
PA
166852008-10-10 Pedro Alves <pedro@codesourcery.com>
16686
16687 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16688 whole argv from the last run, not just argv[0].
16689
5822d809
PA
166902008-09-08 Pedro Alves <pedro@codesourcery.com>
16691
16692 * regcache.c (new_register_cache): Return NULL if the register
16693 cache size isn't known yet.
16694 (free_register_cache): Avoid dereferencing a NULL regcache.
16695
74aac56f
DJ
166962008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16697
16698 * configure.srv: Merge MIPS and MIPS64.
16699
400b20f5
MR
167002008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
16701
16702 * Makefile.in (uninstall): Apply $(EXEEXT) too.
16703
677c5bb1
LM
167042008-08-18 Luis Machado <luisgpm@br.ibm.com>
16705
16706 * Makefile.in: Add required vsx dependencies.
16707
16708 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
16709 Declare init_registers_powerpc_vsx32l.
16710 Declare init_registers_powerpc_vsx64l.
16711 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
16712 (ppc_arch_setup): Check for VSX in hwcap.
16713 (ppc_fill_vsxregset): New function.
16714 (ppc_store_vsxregset): New function.
16715 Add new VSX entry in regset_info target_regsets.
16716
16717 * configure.srv: Add new VSX dependencies.
16718
a6f3e723
SL
167192008-08-12 Pedro Alves <pedro@codesourcery.com>
16720
16721 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
16722 (remote_open): Set or clear transport_is_reliable.
16723 (putpkt_binary): Don't expect acks in noack mode.
16724 (getpkt): Don't send ack/nac in noack mode.
16725 * server.c (handle_general_set): Handle QStartNoAckMode.
16726 (handle_query): If connected by tcp pass QStartNoAckMode+ in
16727 qSupported.
16728 (main): Reset noack_mode on every connection.
16729 * server.h (noack_mode): Declare.
16730
a417dc56
RW
167312008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16732
16733 * Makefile.in (GDBREPLAY_OBS): New variable.
16734 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
16735
3221518c
UW
167362008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16737 Daniel Jacobowitz <dan@codesourcery.com>
16738
16739 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16740 (usr_store_inferior_registers): Likewise.
16741 (regsets_store_inferior_registers): Likewise.
16742
ec56be1b
PA
167432008-07-31 Rolf Jansen <rj@surtec.com>
16744 Pedro Alves <pedro@codesourcery.com>
16745
16746 * configure.ac: Check for memmem declaration.
16747 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16748 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16749 (disable_packet_qfThreadInfo): Unconditionally compile.
16750 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16751 * configure, config.in: Regenerate.
16752
2fe5e3ff
DE
167532008-07-28 Doug Kwan <dougkwan@google.com>
16754
16755 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16756 (linux_write_memory): Remove declaration of errno.
16757
836acd6d
UW
167582008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16759
16760 * linux-low.c (handle_extended_wait): Do not use "status"
16761 variable uninitialized.
16762
aeba519e
PA
167632008-07-07 Pedro Alves <pedro@codesourcery.com>
16764
16765 * server.c (handle_v_attach): Inhibit reporting dll changes.
16766
db42f210
PA
167672008-06-27 Pedro Alves <pedro@codesourcery.com>
16768
16769 * remote-utils.c (prepare_resume_reply): If requested, don't
16770 output "thread:TID" in the T stop reply.
16771
16772 * server.c (disable_packet_vCont, disable_packet_Tthread)
16773 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16774 (handle_query): If requested, disable support for qC, qfThreadInfo
16775 and qsThreadInfo.
16776 (handle_v_requests): If requested, disable support for vCont.
16777 (gdbserver_show_disableable): New.
16778 (main): Handle --disable-packet and --disable-packet=LIST.
16779
16780 * server.h (disable_packet_vCont, disable_packet_Tthread)
16781 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16782
8e4c5421
CD
167832008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16784
16785 * server.c (gdbserver_usage): Mention --version.
16786
6e23a804
DJ
167872008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16788
16789 * Makefile.in (gdbreplay.o): New rule.
16790
90aa6a40
JM
167912008-06-06 Joseph Myers <joseph@codesourcery.com>
16792
16793 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16794 message, not gdbserver.
16795
c16158bc 167962008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
16797 Nathan Sidwell <nathan@codesourcery.com>
16798 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
16799
16800 * acinclude.m4: Include ../../config/acx.m4.
16801 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16802 * configure, config.in: Regenerate.
16803 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16804 * server.c (gdbserver_version): Print PKGVERSION.
16805 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16806 (main): Adjust gdbserver_usage calls.
16807 * gdbreplay.c (version, host_name): Add declarations.
16808 (gdbreplay_version, gdbreplay_usage): New.
16809 (main): Accept --version and --help options.
16810
aeb75bf5
DJ
168112008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16812
16813 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16814 (arm_breakpoint_at): Handle Thumb.
16815 (the_low_target): Add comment.
16816
76b233dd
UW
168172008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16818
16819 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16820
08388c79
DE
168212008-05-09 Doug Evans <dje@google.com>
16822
a3c83fae
DE
16823 * server.h (decode_search_memory_packet): Declare.
16824 * remote-utils.c (decode_search_memory_packet): New fn.
16825 * server.c (handle_search_memory_1): New fn.
08388c79
DE
16826 (handle_search_memory): New fn.
16827 (handle_query): Process qSearch:memory packets.
16828
bb9c3d36
UW
168292008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16830
16831 * regcache.c (registers_length): Remove.
16832 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16833 full register packet.
16834 * regcache.h (registers_length): Remove prototype.
16835 * server.h (PBUFSIZ): Define to 16384.
16836
7284e1be
UW
168372008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16838
16839 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16840 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16841 powerpc-64l.o, and powerpc-altivec64l.o.
16842 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16843 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16844 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16845 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16846 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16847 to srv_xmlfiles.
16848
16849 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16850 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16851 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16852 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16853 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16854 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16855 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16856 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16857 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16858 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16859 (clean): Update.
16860
16861 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16862 (init_registers_powerpc_32l): ... this new prototype.
16863 (init_registers_powerpc_32): Remove, replace by ...
16864 (init_registers_powerpc_altivec32l): ... this new prototype.
16865 (init_registers_powerpc_e500): Remove, replace by ...
16866 (init_registers_powerpc_e500l): ... this new prototype.
16867 (init_registers_ppc64): Remove, replace by ...
16868 (init_registers_powerpc_64l): ... this new prototype.
16869 (init_registers_powerpc_64): Remove, replace by ...
16870 (init_registers_powerpc_altivec64l): ... this new prototype.
16871 (ppc_num_regs): Set to 73.
16872 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16873 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16874 (ppc_cannot_store_register): Handle orig_r3 and trap.
16875 (ppc_arch_setup): Update init_registers_... calls.
16876 (ppc_fill_gregset): Handle orig_r3 and trap.
16877
16878 * inferiors.c (clear_inferiors): Reset current_inferior.
16879
fdc59709
PB
168802008-04-23 Paolo Bonzini <bonzini@gnu.org>
16881
889bf7c5
PA
16882 * acinclude.m4: Add override.m4.
16883 * configure: Regenerate.
fdc59709 16884
c9b2f845
UW
168852008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16886
16887 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16888 initial call to init_register_ppc64.
16889
550512b8
UW
168902008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16891
43aaf8b6
PA
16892 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16893 single powerpc*-*-linux* case.
550512b8
UW
16894 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16895
b6430ec3
UW
168962008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16897
16898 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 16899 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
16900 from reg_xmlfiles.
16901 * linux-ppc-low.c: Include <elf.h>.
16902 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16903 (ppc_hwcap): New global variable.
16904 (ppc_regmap): Remove __SPE__ #ifdef sections.
16905 (ppc_regmap_e500): New global variable.
16906 (ppc_cannot_store_register): Update __SPE__ special case.
16907 (ppc_get_hwcap): New function.
16908 (ppc_arch_setup): Use it to determine whether inferior supports
16909 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16910 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16911 Do not access registers if target does not support AltiVec.
16912 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16913 Do not access registers if target does not support SPE.
16914 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16915
52fa2412
UW
169162008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16917
16918 * linux-low.c (disabled_regsets, num_regsets): New.
16919 (use_regsets_p): Delete.
16920 (linux_wait_for_process): Clear disabled_regsets.
16921 (regsets_fetch_inferior_registers): Check and set it.
16922 (regsets_store_inferior_registers): Likewise.
16923 (linux_fetch_registers, linux_store_registers): Do not use
16924 use_regsets_p.
16925 (initialize_low): Allocate disabled_regsets.
16926
e28b3332
DJ
169272008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16928
16929 * Makefile.in (LIBOBJS): New.
16930 (OBS): Use LIBOBJS.
16931 (memmem.o): New rule.
16932 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16933 * configure: Regenerated.
16934
4536995d
UW
169352008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16936
16937 * server.c (handle_query): Never return "unsupported" for
16938 qXfer:features:read queries.
16939
221c031f
UW
169402008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16941
16942 * server.c (get_features_xml): Fix inverted condition.
16943 (handle_query): Always support qXfer:feature:read.
16944
ccd213ac
DJ
169452008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16946
16947 * server.c (wrapper_argv): New.
16948 (start_inferior): Handle wrapper_argv. If set, expect an extra
16949 trap.
16950 (gdbserver_usage): Document --wrapper.
16951 (main): Parse --wrapper.
16952
6fe305f7
UW
169532008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16954
16955 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16956 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16957 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16958 (ppc_set_pc): Likewise.
16959 (ppc_arch_setup): New function.
16960 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16961 of collect_register.
889bf7c5 16962 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 16963
5b0a002e
UW
169642008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16965
16966 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16967 instead of linux-ppc64-low.o.
16968 * linux-ppc64-low.c: Remove file.
16969 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16970 (linux-ppc64-low.o): Remove rule.
16971
16972 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16973 (init_registers_powerpc_64): Likewise.
16974 (ppc_regmap): Conditionally define depending on __powerpc64__.
16975 (ppc_cannot_store_register): Do not special-case "fpscr" when
16976 compiled on __powerpc64__.
16977 (ppc_collect_ptrace_register): New function.
16978 (ppc_supply_ptrace_register): New function.
16979 (ppc_breakpoint): Change type to "unsigned int".
16980 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16981 (the_low_target): Conditionally provide initializers for the
889bf7c5 16982 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
16983 collect_ptrace_register and supply_ptrace_register members.
16984
9b4b61c8
UW
169852008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16986
16987 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16988 * server.c (gdbserver_xmltarget): Define.
16989 (get_features_xml): Use it to replace "target.xml" and arch_string.
16990
16991 * configure.srv: Remove srv_xmltarget. Add XML files that were
16992 mentioned there to srv_xmlfiles instead. Remove conditional tests
16993 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16994 srv_xmlfiles and srv_regobj to include all possible choices.
16995 * configure.ac (srv_xmltarget): Remove.
16996 (srv_xmlfiles): Do not add "target.xml".
16997 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16998 checks for supplementary target information.
16999 * configure: Regenerate.
17000 * Makefile.in (XML_TARGET): Remove.
17001 (target.xml): Remove rule.
17002 (clean): Do not clean up target.xml.
17003 (.PRECIOUS): Do not mention target.xml.
17004
17005 * target.h (struct target_ops): Remove arch_string member.
17006 * linux-low.c (linux_arch_string): Remove.
17007 (linux_target_ops): Remove arch_string initializer.
17008 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17009 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17010 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17011 * spu-low.c (spu_arch_string): Remove.
17012 (spu_target_ops): Remove arch_string initializer.
17013 * win32-low.c (win32_arch_string): Remove.
17014 (win32_target_ops): Remove arch_string initializer.
17015 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17016 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17017 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17018
ee1a7ae4
UW
170192008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17020
17021 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17022 by collect_ptrace_register and supply_ptrace_register hooks.
17023 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17024 instead of checking for the_low_target.left_pad_xfer.
17025 (usr_store_inferior_registers): Use collect_ptrace_register callback
17026 instead of checking for the_low_target.left_pad_xfer.
17027
17028 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17029 (s390_supply_ptrace_register): Likewise.
17030 (s390_fill_gregset): Call s390_collect_ptrace_register.
17031 (the_low_target): Update.
17032
17033 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17034 (ppc_supply_ptrace_register): Likewise.
17035 (the_low_target): Update.
17036
17037 * linux-i386-low.c (the_low_target): Update.
17038 * linux-x86-64-low.c (the_low_target): Update.
17039
d61ddec4
UW
170402008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17041
17042 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17043 reg-s390.o and reg-s390x.o.
17044
17045 * linux-low.c (new_inferior): New global variable.
17046 (linux_create_inferior, linux_attach): Set it.
17047 (linux_wait_for_process): Call the_low_target.arch_setup after the
17048 target has stopped for the first time.
17049 (initialize_low): Do not call the_low_target.arch_setup.
17050
17051 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17052 (s390_set_pc): Likewise.
17053 (s390_arch_setup): New function.
17054 (the_low_target): Use s390_arch_setup as arch_setup routine.
17055
17056 * regcache.c (realloc_register_cache): New function.
17057 (set_register_cache): Call it for each existing regcache.
17058
d05b4ac3
UW
170592008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17060
17061 * server.h (init_registers): Remove prototype.
17062
17063 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17064 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17065 instead of init_registers ().
17066 * linux-arm-low.c (init_registers_arm): Add prototype.
17067 (init_registers_arm_with_iwmmxt): Likewise.
17068 (the_low_target): Add initializer for arch_setup field.
17069 * linux-cris-low.c (init_registers_cris): Add prototype.
17070 (the_low_target): Add initializer for arch_setup field.
17071 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17072 (the_low_target): Add initializer for arch_setup field.
17073 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17074 (the_low_target): Add initializer for arch_setup field.
17075 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17076 (the_low_target): Add initializer for arch_setup field.
17077 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17078 (the_low_target): Add initializer for arch_setup field.
17079 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17080 (the_low_target): Add initializer for arch_setup field.
17081 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17082 (init_registers_mips64_linux): Likewise.
17083 (the_low_target): Add initializer for arch_setup field.
17084 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17085 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17086 (the_low_target): Add initializer for arch_setup field.
17087 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17088 (init_registers_powerpc_64): Likewise.
17089 (the_low_target): Add initializer for arch_setup field.
17090 * linux-s390-low.c (init_registers_s390): Add prototype.
17091 (init_registers_s390x): Likewise.
17092 (the_low_target): Add initializer for arch_setup field.
17093 * linux-sh-low.c (init_registers_sh): Add prototype.
17094 (the_low_target): Add initializer for arch_setup field.
17095 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17096 (the_low_target): Add initializer for arch_setup field.
17097 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17098 (the_low_target): Add initializer for arch_setup field.
17099
17100 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17101 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17102 instead of init_registers ().
17103 * win32-arm-low.c (init_registers_arm): Add prototype.
17104 (the_low_target): Add initializer for arch_setup field.
17105 * win32-i386-low.c (init_registers_i386): Add prototype.
17106 (the_low_target): Add initializer for arch_setup field.
17107
17108 * spu-low.c (init_registers_spu): Add prototype.
17109 (initialize_low): Call initialie_registers_spu () instead of
17110 initialize_registers ().
17111
fd96d250
PA
171122008-02-19 Pedro Alves <pedro@codesourcery.com>
17113
17114 * server.c (handle_v_requests): When handling the vRun and vAttach
17115 packets, if already debugging a process, don't kill it. Return an
17116 error instead.
17117
d41b6bb4
DJ
171182008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17119
17120 * server.c (handle_query): Correct length check.
17121
5ac588cf
PA
171222008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17123
17124 * win32-low.c (do_initial_child_stuff): Add process handle
17125 parameter. Set current_process_handle and current_process_id from the
17126 parameters. Clear globals.
17127 (win32_create_inferior): Don't set current_process_handle and
17128 current_process_id here. Instead pass them on the call to
17129 do_initial_child_stuff.
17130 (win32_attach): Likewise.
17131 (win32_clear_inferiors): New.
17132 (win32_kill): Don't close the current process handle or the
17133 current thread handle here. Instead call win32_clear_inferiors.
17134 (win32_detach): Don't open a new handle to the process. Call
17135 win32_clear_inferiors.
17136 (win32_join): Don't rely on current_process_handle; open a new
17137 handle using the process id.
17138 (win32_wait): Call win32_clear_inferiors when the inferior process
17139 has exited.
17140
ecd7ecbc
DJ
171412008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17142
17143 * server.c (monitor_show_help): Add "exit".
17144
1525d545
MG
171452008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17146
ecd7ecbc 17147 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
17148 (clean): Add reg-xtensa.c.
17149 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
17150 * configure.srv (xtensa*-*-linux*) New target.
17151 * linux-xtensa-low.c: New.
17152 * xtensa-xtregs.c: New.
1525d545 17153
59a016f0
PA
171542008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17155
17156 * hostio.c: Don't include errno.h.
17157 (errno_to_fileio_errno): Move to hostio-errno.
17158 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17159 error number outputting to the target->hostio_last_error callback.
17160 (hostio_packet_error): Use FILEIO_EINVAL directly.
17161 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17162 calls to hostio_error.
17163 * hostio-errno.c: New.
17164 * server.h (hostio_last_error_from_errno): Declare.
17165 * target.h (target_ops): Add hostio_last_error member.
17166 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17167 as hostio_last_error handler.
889bf7c5 17168 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
17169 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17170 (wince_hostio_last_error): New functions.
17171 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17172 as hostio_last_error handler.
17173 (win32_target_ops) [!_WIN32_WCE]: Register
17174 hostio_last_error_from_errno as hostio_last_error handler.
17175 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17176 (hostio-errno.o): New rule.
17177 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17178 * configure.srv (srv_hostio_err_objs): New variable. Default to
17179 hostio-errno.o.
17180 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17181 * configure: Regenerate.
17182
2d717e4f
DJ
171832008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17184
17185 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17186 (linux_kill, linux_detach): Clean up the process list.
17187 * remote-utils.c (remote_open): Improve port number parsing.
17188 (putpkt_binary, input_interrupt): Only send interrupts if the target
17189 is running.
17190 * server.c (extended_protocol): Make static.
17191 (attached): Define earlier.
17192 (exit_requested, response_needed, program_argv): New variables.
17193 (target_running): New.
17194 (start_inferior): Clear attached here.
17195 (attach_inferior): Set attached here.
17196 (require_running): Define.
17197 (handle_query): Use require_running and target_running. Implement
17198 "monitor exit".
17199 (handle_v_attach, handle_v_run): New.
17200 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17201 (gdbserver_usage): Update.
17202 (main): Redo argument parsing. Handle --debug and --multi. Handle
17203 --attach along with other options or after the port. Save
17204 program_argv. Support no initial program. Resynchronize
17205 communication with GDB after an error. Handle "monitor exit".
17206 Use require_running and target_running. Always allow the extended
17207 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17208 restart in extended mode.
17209 * README: Refer to the GDB manual. Update --attach usage.
17210
7407e2de
AS
172112007-12-20 Andreas Schwab <schwab@suse.de>
17212
17213 * linux-low.c (STACK_SIZE): Define.
17214 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17215 (linux_test_for_tracefork): Likewise.
17216
b65d95c5
DJ
172172007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17218
17219 * linux-low.c (linux_wait_for_event): Update messages. Do not
17220 reinsert auto-delete breakpoints.
17221 * mem-break.c (struct breakpoint): Change return type of handler to
17222 int.
17223 (set_breakpoint_at): Update handler type.
17224 (reinsert_breakpoint_handler): Return 1 instead of calling
17225 delete_breakpoint.
17226 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17227 setting a new one.
17228 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17229 * mem-break.h (set_breakpoint_at): Update handler type.
17230 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17231 * win32-low.c (auto_delete_breakpoint): New.
17232 (get_child_debug_event): Use it.
17233
4e799345
DJ
172342007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17235
17236 * configure.ac: Check for pread and pwrite.
17237 * hostio.c (handle_pread): Fall back to lseek and read.
17238 (handle_pwrite): Fall back to lseek and write.
17239 * config.in, configure: Regenerated.
17240
27524b67
DJ
172412007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17242
17243 * server.c (myresume): Add own_buf argument.
17244 (main): Update calls.
17245
a20d5e98
DJ
172462007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17247
17248 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17249 * remote-utils.c (remote_open): Do not call disable_async_io.
17250 (block_async_io): Delete.
17251 (unblock_async_io): Make static.
17252 (initialize_async_io): New.
17253 * server.c (handle_v_cont): Handle async I/O here.
17254 (myresume): Likewise. Move other common resume tasks here...
17255 (main): ... from here. Call initialize_async_io. Disable async
17256 I/O before the main loop.
17257 * server.h (initialize_async_io): Declare.
17258 (block_async_io, unblock_async_io): Delete prototypes.
17259 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17260
b79d787e
DJ
172612007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17262
17263 * remote-utils.c (readchar): Allow binary data in received messages.
17264
d97903b2
PA
172652007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17266
17267 * win32-low.c (attaching): New global.
17268 (win32_create_inferior): Clear the `attaching' global.
17269 (win32_attach): Set the `attaching' global.
17270 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17271 attaching. Only set a breakpoint at the entry point if not
17272 attaching.
17273
311de423
PA
172742007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17275
17276 * server.c (main): Don't report dll events on the initial
17277 connection on attaches.
17278
6c2d16d2
PA
172792007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17280
17281 * server.c (main): Relax numerical bases supported for the pid of
17282 the --attach command line argument.
17283
5ca906e6
PA
172842007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17285
17286 * win32-low.c (win32_attach): Call OpenProcess before
17287 DebugActiveProcess, not after. Add last error output to error
17288 call.
17289
9c6c8194
PA
172902007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17291
17292 * win32-low.c (win32_get_thread_context)
17293 (win32_set_thread_context): New functions.
17294 (thread_rec): Use win32_get_thread_context.
17295 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17296 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17297 field.
17298
4d5d1aaa
PA
172992007-12-03 Leo Zayas
17300 Pedro Alves <pedro_alves@portugalmail.pt>
17301
17302 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17303 global variables.
17304 (child_add_thread): Minor cleanup.
17305 (child_continue): Resume artificially suspended threads before
17306 calling ContinueDebugEvent.
17307 (suspend_one_thread): New.
17308 (fake_breakpoint_event): New.
17309 (get_child_debug_event): Change return type to int. Check here if
17310 gdb sent an interrupt request. If a soft interrupt was requested,
17311 fake a breakpoint event. Return 0 if there is no event to handle,
17312 and 1 otherwise.
17313 (win32_wait): Don't check here if gdb sent an interrupt request.
17314 Ensure there is a valid event to handle.
17315 (win32_request_interrupt): Add soft interruption method as last
17316 resort.
17317
c436e841
PA
173182007-12-03 Leo Zayas
17319 Pedro Alves <pedro_alves@portugalmail.pt>
17320
17321 * win32-low.h (win32_thread_info): Add descriptions to the
17322 structure members. Replace `suspend_count' counter by a
17323 `suspended' flag.
17324 * win32-low.c (thread_rec): Update condition of when to get the
17325 context from the inferior. Rely on ContextFlags being set if it
17326 has already been retrieved. Only suspend the inferior thread if
17327 we haven't already. Warn if that fails.
17328 (continue_one_thread): s/suspend_count/suspended/. Only call
17329 ResumeThread once. Warn if that fails.
17330
e7b5fa67
PA
173312007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17332
17333 * win32-low.c (win32_wait): Don't read from the inferior when it
17334 has already exited.
17335
a385171d
PA
173362007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17337
17338 * Makefile.in (win32_low_h): New variable.
17339 (win32-low.o): Add dependency on $(win32_low_h).
17340 (win32-arm-low.o, win32-i386-low.o): New rules.
17341
f80c84b3
DJ
173422007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17343
17344 * hostio.c: Correct copyright year.
17345
a6b151f1
DJ
173462007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17347
17348 * Makefile.in (OBS): Add hostio.o.
17349 (hostio.o): New rule.
17350 * server.h (handle_vFile): Declare.
17351 * hostio.c: New file.
17352 * server.c (handle_v_requests): Take packet_len and new_packet_len
17353 for binary packets. Call handle_vFile.
17354 (main): Update call to handle_v_requests.
17355
f9387fc3
DJ
173562007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17357
17358 * linux-low.c: Include <sched.h>.
17359
51c2684e
DJ
173602007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17361
17362 * linux-low.c (linux_tracefork_grandchild): New.
17363 (linux_tracefork_child): Use clone.
17364 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17365
75f83163
JB
173662007-10-31 Joel Brobecker <brobecker@adacore.com>
17367
17368 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17369
da5898ce
DJ
173702007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17371
17372 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17373
24a09b5f
DJ
173742007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17375
17376 * inferiors.c (change_inferior_id): Delete.
17377 (add_pid_to_list, pull_pid_from_list): New.
17378 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17379 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17380 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17381 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17382 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17383 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17384 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17385 (using_threads): Always set to 1.
17386 (handle_extended_wait): New.
17387 (add_process): Do not set TID.
17388 (linux_create_inferior): Set must_set_ptrace_flags.
17389 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17390 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17391 (linux_thread_alive): Rename TID argument to LWPID.
17392 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17393 (linux_wait_for_event): Do not use TID or check using_threads. Update
17394 call to dead_thread_notify. Call handle_extended_wait.
17395 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17396 (send_sigstop): Delete sigstop_sent.
17397 (wait_for_sigstop): Avoid TID.
17398 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17399 (linux_test_for_tracefork): New.
17400 (linux_lookup_signals): Use thread_db_active and
17401 linux_supports_tracefork_flag.
17402 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17403 * linux-low.h (get_process_thread): Avoid TID.
17404 (struct process_ifo): Move thread_known and tid to the end. Remove
17405 sigstop_sent.
17406 (linux_attach_lwp, thread_db_init): Update prototypes.
17407 * server.h (change_inferior_id): Delete prototype.
17408 (add_pid_to_list, pull_pid_from_list): New prototypes.
17409 * thread-db.c (thread_db_use_events): New.
17410 (find_first_thread): Rename to...
17411 (find_one_thread): ...this. Update callers and messages. Do not
17412 call fatal. Check thread_db_use_events. Do not call
17413 change_inferior_id or new_thread_notify.
17414 (maybe_attach_thread): Update. Do not call new_thread_notify.
17415 (thread_db_init): Set thread_db_use_events. Check use_events.
17416 * utils.c (fatal, warning): Correct message prefix.
17417
30ed0a8f
DJ
174182007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17419
17420 * Makefile.in (clean): Remove new files.
17421 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17422 (powerpc-64.o, powerpc-64.c): New rules.
17423 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17424 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17425 with SPE.
17426 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17427 SPE targets.
17428 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17429 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17430 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17431 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17432 (target_regsets): Add AltiVec and SPE register sets.
17433 * configure.ac: Check for AltiVec and SPE.
17434 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17435 (ppc_fill_vrregset, ppc_store_vrregset): New.
17436 (target_regsets): Add AltiVec register set.
17437 * configure: Regenerated.
17438
fd462a61
DJ
174392007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17440
17441 * linux-low.c (O_LARGEFILE): Define.
17442 (linux_read_memory): Use /proc/PID/mem.
17443 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17444 * configure, config.in: Regenerated.
17445
69f223ed
DJ
174462007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17447
17448 * linux-low.c (linux_wait_for_event): Do not pass signals while
17449 single-stepping.
17450
aec18585
PA
174512007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17452
17453 * win32-low.c (create_process): New.
17454 (win32_create_inferior): Use create_process instead of
17455 CreateProcess. If create_process failed retry appending an ".exe"
17456 suffix. Store the GetLastError result immediatelly after
17457 create_process calls and use it on the call to error.
17458
34d86ddd
PA
174592007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17460
17461 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17462
5a0e3bd0
JB
174632007-08-23 Joel Brobecker <brobecker@adacore.com>
17464
17465 * configure.ac: Switch license to GPLv3.
17466
f88c79e6
MS
174672007-08-01 Michael Snyder <msnyder@access-company.com>
17468
17469 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17470
6b3d9b83
PA
174712007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17472
17473 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17474 typedef.
17475 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17476 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17477 CloseToolhelp32Snapshot.
17478 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17479 CloseToolhelp32Snapshot.
17480
c588c53c
MS
174812007-07-27 Michael Snyder <michael.snyder@access-company.com>
17482
17483 * server.c (main): Check for inferior exit before main loop.
17484
aa0403d9
PA
174852007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17486
17487 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17488 instead of on tmp_desc.
17489
255e7678
DJ
174902007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17491 Daniel Jacobowitz <dan@codesourcery.com>
17492
17493 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17494 (add_thread): Minor cleanups.
17495 (clear_inferiors): Move lower in the file. Clear the DLL
17496 list.
17497 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17498 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17499 (xml_escape_text): New.
17500 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17501 for qSupported.
17502 (handle_v_cont): Report errors.
17503 (gdbserver_version): Update.
17504 (main): Correct size of own_buf. Do not report initial DLL events.
17505 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17506 (unloaded_dll, xml_escape_text): New.
17507 * win32-low.c (enum target_waitkind): Update comments.
17508 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17509 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17510 (win32_EnumProcessModules, win32_GetModuleInformation)
17511 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17512 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17513 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17514 (win32_Module32First, win32_Module32Next, load_toolhelp)
17515 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17516 (get_child_debug_event): Handle DLL events.
17517 (win32_wait): Likewise.
17518
0d37add9
DJ
175192007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17520
17521 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17522 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17523
45e2715e
PA
175242007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17525
17526 * win32-low.c (handle_output_debug_string): Ignore event if not
17527 waiting.
17528
c5674cf1
PA
175292007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17530
17531 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17532
2bbe3cc1
DJ
175332007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17534
17535 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17536
ae13219e
DJ
175372007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17538
17539 * inferiors.c (change_inferior_id): Add comment.
17540 * linux-low.c (check_removed_breakpoint): Add an early
17541 prototype. Improve debug output.
17542 (linux_attach): Doc update.
17543 (linux_detach_one_process, linux_detach): Clean up before releasing
17544 each process.
17545 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17546 * linux-low.h (struct process_info): Doc improvement.
17547 * mem-break.c (delete_all_breakpoints): New.
17548 * mem-break.h (delete_all_breakpoints): New prototype.
17549 * thread-db.c (find_first_thread): New.
17550 (thread_db_create_event): Call it instead of
17551 thread_db_find_new_threads. Clean up unused variables.
17552 (maybe_attach_thread): Remove first thread handling.
17553 (thread_db_find_new_threads): Use find_first_thread.
17554 (thread_db_get_tls_address): Likewise.
17555
4105de34
DJ
175562007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17557
17558 * thread-db.c (thread_db_find_new_threads): Add prototype.
17559 (thread_db_create_event): Check for the main thread before adding
17560 a new thread.
17561 (maybe_attach_thread): Only enable event reporting if TID == 0.
17562 (thread_db_get_tls_address): Check for new threads.
17563
2b876972
DJ
175642007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17565
17566 * linux-low.c (linux_create_inferior): Try execv before execvp.
17567 * spu-low.c (spu_create_inferior): Likewise.
17568
7a245884
DJ
175692007-06-13 Mike Frysinger <vapier@gentoo.org>
17570
17571 * linux-low.c (linux_create_inferior): Change execv to execvp.
17572 * spu-low.c (spu_create_inferior): Likewies.
17573
117ce543
DJ
175742007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17575
17576 * Makefile.in (clean): Clean new files instead of deleted ones.
17577 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17578 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17579 rules.
17580 * configure.srv: Specify XML files and new regformats for MIPS and
17581 MIPS64 GNU/Linux.
17582 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17583 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17584 an entry for the restart register.
17585 (mips_cannot_fetch_register, mips_cannot_store_register)
17586 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17587 register names to match the XML descriptions.
17588 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17589 restart register instead of $0.
17590
0e7f50da
UW
175912007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17592 Markus Deuling <deuling@de.ibm.com>
17593
17594 * remote-utils.c (decode_xfer_write): New function.
17595 * server.h (decode_xfer_write): Add prototype.
17596 * server.c (handle_query): Add PACKET_LEN argument. Support
17597 qXfer:spu:read and qXfer:spu:write packets.
17598 (main): Pass packet_len to handle_query.
17599 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17600 * target.h (target_ops): Add qxfer_spu.
17601
374c1d38
UW
176022007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17603
17604 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17605 accessing non-seekable spufs files.
17606
bb63802a
UW
176072007-05-16 Markus Deuling <deuling@de.ibm.com>
17608
889bf7c5 17609 * server.c (handle_query): Add reply for qC packet.
bb63802a 17610
7390519e
PA
176112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17612 Leo Zayas <lerele@champenstudios@com>
17613
17614 * server.h (check_remote_input_interrupt_request): New function.
17615 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17616 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17617 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17618 (check_remote_input_interrupt_request): New function.
17619 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 17620 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
17621 winapi_GenerateConsoleCtrlEvent): New typedefs.
17622 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17623 to 250 ms.
17624 (win32_wait): Check for remote interrupt request
17625 with check_remote_input_interrupt_request.
17626 (win32_request_interrupt): New function.
17627 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17628
34b34921
PA
176292007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17630
17631 * win32-low.c (debug_registers_changed,
17632 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17633 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17634 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17635 (thread_rec): Get context using the low target.
17636 (child_add_thread): Call thread_added on the low target,
17637 which does the same thing.
17638 (regptr): Delete.
17639 (do_initial_child_stuff): Remove debug registers references.
17640 Set context using the low target. Resume threads after
17641 setting the contexts.
17642 (child_continue): Remove dead variable. Remove debug
17643 registers references.
17644 (child_fetch_inferior_registers): Go through the low target.
17645 (do_child_store_inferior_registers): Remove.
17646 (child_store_inferior_registers): Go through the low target.
17647 (win32_resume): Remove debug registers references.
17648 Set context using the low target.
17649 (handle_exception): Change return type to void. Don't record
17650 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17651 first chance exception.
889bf7c5 17652 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
17653 goto loop. Always return after waiting for debug event.
17654 (win32_wait): Convert to switch statement. Handle spurious
17655 events.
17656
17657 * win32-i386-low.c (debug_registers_changed,
17658 debug_registers_used): New.
17659 (initial_stuff): Rename to ...
17660 (i386_initial_stuff): ... this. Clear debug registers
17661 state variables.
17662 (store_debug_registers): Delete.
17663 (i386_get_thread_context): New.
17664 (load_debug_registers): Delete.
17665 (i386_set_thread_context): New.
17666 (i386_thread_added): New.
17667 (single_step): Rename to ...
17668 (i386_single_step): ... this.
17669 (do_fetch_inferior_registers): Rename to ...
17670 (i386_fetch_inferior_register): ... this.
17671 (i386_store_inferior_register): New.
17672 (the_low_target): Adapt to new interface.
17673
17674 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17675 (arm_get_thread_context): New.
17676 (arm_set_thread_context): New.
17677 (regptr): New.
17678 (do_fetch_inferior_registers): Rename to ...
17679 (arm_fetch_inferior_register): ... this.
17680 (arm_store_inferior_register): New.
17681 (arm_wince_breakpoint): Reimplement as unsigned long.
17682 (arm_wince_breakpoint_len): Define.
17683 (the_low_target): Adapt to new interface.
17684
17685 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17686 load_debug_registers. Add get_thread_context, set_thread_context,
17687 thread_added and store_inferior_register. Rename
17688 fetch_inferior_registers to fetch_inferior_register.
17689 (regptr): Remove declaration.
17690
dd6953e1
PA
176912007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17692
17693 * linux-low.c (linux_detach): Change return type to int. Return 0.
17694 * spu-low.c (spu_detach): Likewise.
17695
444d6139
PA
176962007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17697
17698 * target.h (target_ops): Change return type of detach to int.
17699 Add join.
17700 (join_inferior): New.
17701 * server.c (main): Don't skip detach support on mingw32.
17702 If the inferior doesn't support detaching return error.
17703 Call join_inferior instead of using waitpid.
17704 * linux-low.c (linux_join): New.
17705 (linux_target_op): Add linux_join.
17706 * spu-low.c (spu_join): New.
17707 (spu_target_ops): Add spu_join.
17708 * win32-low.c (win32_detach): Adapt to new interface.
17709 Reopen current_process_handle before detaching. Issue a child
17710 resume before detaching.
17711 (win32_join): New.
17712 (win32_target_op): Add win32_join.
17713
1d5315fe
PA
177142007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17715
17716 * win32-low.c (win32-attach): Fix return value.
17717 * target.h (target_ops): Describe ATTACH return values.
17718
bf914831
PA
177192007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17720
17721 * win32-low.c (GETPROCADDRESS): Define.
17722 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
17723 (winapi_DebugSetProcessKillOnExit): Likewise.
17724 (win32_create_inferior): Force usage of ansi CreateProcessA.
17725 (win32_attach): Use GETPROCADDRESS.
17726 (win32_detach): Likewise.
17727
f72f3e60
PA
177282007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17729
17730 * win32-low.c (win32_wait): Don't use WSTOPSIG.
17731
ed50f18f
PA
177322007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
17733
17734 * win32-low.c: Commit leftover changes from 2007-03-29.
17735
0c2ead7e
DJ
177362007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17737
17738 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17739 fields short instead of int. Add explicit padding.
17740 (i387_cache_to_fsave): Remove unnecessary casts.
17741 (i387_fsave_to_cache): Doc fix.
17742 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17743
73725ff3
DJ
177442007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17745
17746 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17747 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17748
d99f33d8
PA
177492007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17750
17751 * configure.srv (arm*-*-mingw32ce*): Move near the other
17752 arm targets.
17753
68070c10
PA
177542007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17755
2482afc6 17756 * configure.ac: Add errno checking.
68070c10
PA
17757 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17758 sys/file.h and malloc.h.
17759 (AC_CHECK_DECLS): Add perror.
17760 (srv_mingwce): Handle.
2482afc6 17761 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
17762 win32-i386-low.o to srv_tgtobj.
17763 (i[34567]86-*-mingw*): Likewise.
17764 (arm*-*-mingw32ce*): Add case.
17765 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17766 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17767 [__MINGW32CE__] (strerror): New function.
17768 [__MINGW32CE__] (errno): Define to GetLastError.
17769 [__MINGW32CE__] (COUNTOF): New macro.
17770 (remote_open): Remove extra close call.
17771 * mem-break.c (delete_breakpoint_at): New function.
17772 * mem-break.h (delete_breakpoint_at): Declare.
17773 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17774 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17775 [USE_WIN32API] (read, write): Add char* casts.
17776 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17777 * server.h: Include wincecompat.h on Windows CE.
17778 [HAVE_ERRNO_H]: Check.
17779 (perror): Declare if not declared.
17780 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17781 (perror_with_name): Remove errno declaration.
17782 * wincecompat.h: New.
17783 * wincecompat.c: New.
17784 * win32-low.h: New.
17785 * win32-arm-low.c: New.
17786 * win32-i386-low.c: New.
17787 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17788 (OUTMSG2): Make it safe.
17789 (_T): New macro.
17790 (COUNTOF): New macro.
17791 (NUM_REGS): Get it from the low target.
17792 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17793 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17794 (thread_rec): Let low target handle debug registers.
17795 (child_add_thread): Likewise.
17796 (child_init_thread_list): Likewise.
17797 (continue_one_thread): Likewise.
17798 (regptr): New.
17799 (do_child_fetch_inferior_registers): Move to ...
17800 * win32-i386-low.c: ... here, and rename to ...
17801 (do_fetch_inferior_registers): ... this.
889bf7c5 17802 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
17803 Go through the low target.
17804 (do_child_store_inferior_registers): Use regptr.
17805 (strwinerror): New function.
17806 (win32_create_inferior): Handle Windows CE.
17807 Use strwinerror instead of strerror on Windows error
17808 codes. Add program to the error output.
17809 Don't close the main thread handle on Windows CE.
17810 (win32_attach): Use coredll.dll on Windows CE.
17811 (win32_kill): Close current process and current
17812 thread handles.
17813 (win32_detach): Use coredll.dll on Windows CE.
17814 (win32_resume): Let low target handle debug registers, and
17815 step request.
17816 (handle_exception): Add/Remove initial breakpoint. Avoid
17817 non-existant WSTOPSIG on Windows CE.
17818 (win32_read_inferior_memory): Cast to remove warning.
17819 (win32_arch_string): Go through the low target.
17820 (initialize_low): Call set_breakpoint_data with the low
17821 target's breakpoint.
17822 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17823 FOP_REGNUM, mappings): Move to ...
17824 * win32-i386-low.c: ... here.
17825 * win32-low.c (win32_thread_info): Move to ...
17826 * win32-low.h: ... here.
17827 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17828 win32-arm-low.c and wincecompat.c.
17829 (all:): Add $EXEEXT.
17830 (install-only:): Likewise.
17831 (gdbserver:): Likewise.
17832 (gdbreplay:): Likewise.
17833 * config.in: Regenerate.
17834 * configure: Regenerate.
17835
41093d81
PA
178362007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17837
17838 * win32-low.c: Rename typedef thread_info to
17839 win32_thread_info throughout.
17840
544afa54
PA
178412007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17842
17843 * win32-i386-low.c: Rename to ...
17844 * win32-low.c: ... this.
17845 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17846 * Makefile.in: Likewise.
17847
bce7165d
PA
178482007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17849
17850 * remote-utils.c (monitor_output): Constify msg parameter.
17851 * server.h (monitor_output): Likewise.
17852 * win32-i386-low.c (handle_output_debug_string): New.
17853 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17854 handle_output_debug_string.
17855 (get_child_debug_event): Likewise.
17856
506c7aa0
DJ
178572007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17858
17859 * server.c (main): Correct strtoul check.
17860
42c81e2a
DJ
178612007-03-27 Jon Ringle <jon@ringle.org>
17862
17863 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17864
9453113a
DJ
178652007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17866
17867 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17868
64a69107
DJ
178692007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17870
17871 * terminal.h: Check HAVE_SGTTY_H.
17872
178732007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
17874
17875 * remote-utils.c (remote_open): Print out the assigned port number.
17876
c74d0ad8
DJ
178772007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17878
17879 * remote-utils.c (monitor_output): New function.
17880 * server.c (debug_threads): Define here.
17881 (monitor_show_help): New function.
17882 (handle_query): Handle qRcmd.
17883 (main): Do not handle 'd' packet.
17884 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17885 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17886 of debug_threads.
17887
de7c3b4a
PA
178882007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17889
17890 * Makefile.in (EXEEXT): New.
17891 (clean): Use $(EXEEXT).
17892
ef57601b
PA
178932007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17894
17895 * target.h (target_ops): Rename send_signal to request_interrupt,
17896 and remove enum target_signal parameter.
17897 * linux-low.c (linux_request_interrupt): Rename from
17898 linux_send_signal, and always send SIGINT.
17899 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17900 and always send SIGINT.
17901 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17902 of send_signal.
17903 (input_interrupt): Likewise.
17904
820f2bda
PA
179052007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17906
17907 * server.c (get_features_xml): Check if target implemented
17908 arch_string.
17909 * win32-i386-low.c (win32_arch_string): New.
17910 (win32_target_ops): Add win32_arch_string as arch_string member.
17911
ab39bf24
UW
179122007-02-22 Markus Deuling <deuling@de.ibm.com>
17913
17914 * spu-low.c (spu_arch_string): New.
17915 (spu_target_ops): Add spu_arch_string.
17916
61ff6e04
DJ
179172007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17918
17919 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17920 * configure.ac: Do not check for terminal.h.
17921 * configure, config.in: Regenerated.
17922
fb1e4ffc
DJ
179232007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17924
17925 * Makefile.in (OBS): Add $(XML_BUILTIN).
17926 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17927 (clean): Update.
17928 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17929 (arm-with-iwmmxt.c): New.
17930 * config.in, configure: Regenerate.
17931 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17932 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17933 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17934 (arm*-*-linux*): Add iWMMXt and regset support.
17935 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17936 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17937 (arm_store_wmmxregset, target_regsets): New.
17938 * server.c (get_features_xml): Take annex argument. Check builtin
17939 XML documents.
17940 (handle_query): Handle multiple annexes.
17941
0f48aa01
DJ
179422007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17943
17944 * remote-utils.c [USE_WIN32API] (read, write): Define.
17945 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17946 write.
17947
23181151
DJ
179482007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17949
17950 * linux-i386-low.c (the_low_target): Set arch_string.
17951 * linux-x86-64-low.c (the_low_target): Likewise.
17952 * linux-low.c (linux_arch_string): New.
17953 (linux_target_ops): Add it.
17954 * linux-low.h (struct linux_target_ops): Add arch_string.
17955 * server.c (write_qxfer_response): Use const void * for DATA.
17956 (get_features_xml): New.
17957 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17958 * target.h (struct target_ops): Add arch_string method.
17959
9d606399
DJ
179602007-01-03 Denis Pilat <denis.pilat@st.com>
17961 Daniel Jacobowitz <dan@codesourcery.com>
17962
17963 * linux-low.c (linux_kill): Handle being called with no threads.
17964 * win32-i386-low.c (win32_kill): Likewise.
17965 (get_child_debug_event): Clear current_process_handle.
17966
179672006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
17968 Daniel Jacobowitz <dan@codesourcery.com>
17969
17970 * remote-utils.c (remote_open): Check the type of specified
17971 serial port devices before opening them.
17972 * server.c (main): Kill the inferior if an error occurs during
17973 the first remote_open.
17974
a5e13d24
DJ
179752006-12-05 Markus Deuling <deuling@de.ibm.com>
17976
17977 * README: Update supported targets.
17978
186947f7
DJ
179792006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17980
17981 * Makefile.in (clean): Remove reg-mips64.c.
17982 (reg-mips64.c, reg-mips64.o): New rules.
17983 * configure.srv: Handle mips64. Include regset support for mips.
17984 * linux-mips-low.c (union mips_register): New.
17985 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17986 (mips_breakpoint, mips_breakpoint_at): Use int.
17987 (mips_collect_register, mips_supply_register)
17988 (mips_collect_register_32bit, mips_supply_register_32bit)
17989 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17990 (mips_store_fpregset, target_regsets): New.
17991 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17992
a13e2c95
UW
179932006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17994
17995 * configure.srv: Add target "spu*-*-*".
17996 * Makefile.in (clean): Remove reg-spu.c.
17997 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17998 * spu-low.c: New file.
17999
cb7283db
DJ
180002006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18001
18002 * configure.ac: Correct td_thr_tls_get_addr test.
18003 * configure: Regenerated.
18004
89be2091
DJ
180052006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18006
18007 * linux-low.c (linux_wait_for_event): Reformat. Use the
18008 pass_signals array.
18009 * remote-utils.c (decode_address_to_semicolon): New.
18010 * server.c (pass_signals, handle_general_set): New.
18011 (handle_query): Mention QPassSignals for qSupported.
18012 (main): Call handle_general_set.
18013 * server.h (pass_signals, decode_address_to_semicolon): New.
18014
000ef4f0
DJ
180152006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18016
18017 * server.c (handle_query): Correct error handling for read_auxv.
18018
b7149293
UW
180192005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18020
18021 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18022 and srv_linux_thread_db to yes.
18023 * linux-s390-low.c (s390_fill_gregset): New function.
18024 (target_regsets): Define data structure.
18025
dae5f5cf
DJ
180262006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18027
18028 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18029 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18030 * config.in, configure: Regenerated.
18031 * inferiors.c (gdb_id_to_thread): New function.
18032 (gdb_id_to_thread_id): Use it.
18033 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18034 * linux-low.h (struct process_info): Add th member.
18035 (thread_db_get_tls_address): New prototype.
18036 * remote-utils.c (decode_address): Make non-static.
18037 * server.c (handle_query): Handle qGetTLSAddr.
18038 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18039 * target.h (struct target_ops): Add get_tls_address.
18040 * thread-db.c (maybe_attach_thread): Save the thread handle.
18041 (thread_db_get_tls_address): New.
18042
32ca6d61
DJ
180432006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18044
18045 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18046 (linux_resume_one_process): Take a siginfo_t *. Update all
18047 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18048 (struct pending_signals): Add a siginfo_t.
18049 (linux_wait_for_process): Always set last_status.
18050 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18051 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18052 * linux-low.h (struct process_info): Add last_status.
18053
5ffff7c1
DJ
180542006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18055
18056 * remote-utils.c (try_rle): New function.
18057 (putpkt_binary): Use it.
18058
8695c747
DJ
180592006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18060
18061 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18062 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18063 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18064 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18065 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18066 point registers.
18067
290fadea
RS
180682006-08-08 Richard Sandiford <richard@codesourcery.com>
18069
18070 * server.c (terminal_fd): New variable.
18071 (old_foreground_pgrp): Likewise.
18072 (restore_old_foreground_pgrp): New function.
18073 (start_inferior): Record the terminal file descriptor in terminal_fd
18074 and its original foreground group in old_foreground_pgrp. Register
18075 restore_old_foreground_pgrp with atexit().
18076
9f2e1e63
DJ
180772006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18078
18079 * server.c (handle_query): Correct qPart to qXfer.
18080
b80864fb
DJ
180812006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18082
18083 * configure.ac: Check for more headers which are missing on
18084 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18085 * configure.srv: Add Cygwin and mingw32.
18086 * remote-utils.c: Don't include headers unconditionally which
18087 are missing on mingw32. Include <winsock.h> for mingw32.
18088 (remote_open): Adjust for mingw32 support. Flush
18089 standard error after writing to it.
18090 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18091 (unblock_async_io, enable_async_io, disable_async_io)
18092 (readchar, getpkt): Update for Winsock support.
18093 (prepare_resume_reply): Expect a protocol signal number.
18094 * server.c: Disable <sys/wait.h> on mingw32.
18095 (start_inferior): Adjust for mingw32 support. Flush
18096 standard error after writing to it.
18097 (attach_inferior): Likewise. Use protocol signal
18098 numbers.
18099 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18100 and names.
18101 * win32-i386-low.c: New file.
18102 * Makefile.in (XM_CLIBS): Set.
18103 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18104 (win32-i386-low.o): New dependency rule.
18105 * linux-low.c (linux_wait): Use target signal numbers.
18106 * target.h (struct target_ops): Doc fix.
18107 * server.h (target_signal_to_name): New prototype.
18108 * gdbreplay.c: Don't include headers unconditionally which
18109 are missing on mingw32. Include <winsock.h> for mingw32.
18110 (remote_close, remote_open): Adjust for Winsock support.
18111 * configure, config.in: Regenerated.
18112
0876f84a
DJ
181132006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18114
18115 * server.c (decode_xfer_read, write_qxfer_response): New.
18116 (handle_query): Take a packet length argument. Handle
18117 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18118 the qSupported response.
18119 (main): Update call to handle_query.
18120
01f9e8fa
DJ
181212006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18122
18123 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18124 (putpkt_binary): Renamed from putpkt and adjusted for binary
18125 data.
18126 (putpkt): New wrapper for putpkt_binary.
18127 (readchar): Don't mask off the high bit.
18128 (decode_X_packet): New function.
18129 * server.c (main): Call putpkt_binary if a handler sets the packet
18130 length. Save the length of the incoming packet. Handle 'X'.
18131 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18132
be2a5f71
DJ
181332006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18134
18135 * server.c (handle_query): Handle qSupported.
18136
ea025f5f
DJ
181372006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18138
18139 * remote-utils.c (all_symbols_looked_up): New variable.
18140 (look_up_one_symbol): Check it.
18141 * server.h (look_up_one_symbol): New declaration.
18142 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18143
9308fc88
DJ
181442006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18145
18146 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 18147 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
18148 (PTRACE_GET_THREAD_AREA): Define.
18149 (ps_get_thread_area): New function.
18150
52fb6437
NS
181512006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18152
18153 * configure.srv (m68k*-*-uclinux*): New target.
18154 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18155 (linux_resume_one_process): Remove extraneous cast.
18156 (linux_read_offsets): New.
18157 (linux_target_op): Add linux_read_offsets on mmuless systems.
18158 * server.c (handle_query): Add qOffsets logic.
18159 * target.h (struct target_ops): Add read_offsets.
18160
21b0f40c
DJ
181612006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18162
18163 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18164 (PTRACE_GET_THREAD_AREA): Define.
18165 (ps_get_thread_area): New function.
18166 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18167 (linux-x86-64-low.o): Update.
18168
0050a760
DJ
181692006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18170
18171 * configure.ac: Remove checks for prfpregset_t.
18172 * gdb_proc_service.h: New file.
18173 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18174 new "gdb_proc_service.h".
18175 * proc-service.c: Likewise.
18176 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18177 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18178 * Makefile.in (gdb_proc_service_h): Updated.
18179 * configure, config.in: Regenerated.
18180
b92a518e
DJ
181812006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18182
18183 * remote-utils.c (prepare_resume_reply): Move declaration
18184 of gdb_id_from_wait to the top of the block.
18185
545587ee
DJ
181862006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18187
18188 * linux-low.c (regsets_store_inferior_registers): Read the regset
18189 from the target before filling it.
18190
9db87ebd
DJ
181912006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18192
18193 * server.c (attach_inferior): Return SIGTRAP for a successful
18194 attach.
18195
dd24457d
DJ
181962006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18197
18198 * Makefile.in (OBS): Add version.o.
18199 (STAGESTUFF): Delete.
18200 (version.o): Add dependencies.
18201 (version.c): Replace rule.
18202 (clean): Remove version.c.
18203 * server.c (gdbserver_version): New.
18204 (gdbserver_usage): Use printf.
18205 (main): Handle --version and --help.
18206 * server.h (version, host_name): Add declarations.
18207
6f0f660e
EZ
182082005-12-23 Eli Zaretskii <eliz@gnu.org>
18209
889bf7c5
PA
18210 * linux-arm-low.c:
18211 * linux-arm-low.c:
18212 * inferiors.c:
18213 * i387-fp.h:
18214 * i387-fp.c:
18215 * gdbreplay.c:
18216 * regcache.c:
18217 * proc-service.c:
18218 * mem-break.h:
18219 * mem-break.c:
18220 * linux-x86-64-low.c:
18221 * linux-sh-low.c:
18222 * linux-s390-low.c:
18223 * linux-ppc64-low.c:
18224 * linux-ppc-low.c:
18225 * linux-mips-low.c:
18226 * linux-m68k-low.c:
18227 * linux-m32r-low.c:
18228 * linux-low.h:
18229 * linux-low.c:
18230 * linux-ia64-low.c:
18231 * linux-i386-low.c:
18232 * linux-crisv32-low.c:
18233 * thread-db.c:
18234 * terminal.h:
18235 * target.h:
18236 * target.c:
18237 * server.h:
18238 * server.c:
18239 * remote-utils.c:
18240 * regcache.h:
18241 * utils.c:
18242 * Makefile.in:
18243 * configure.ac:
6f0f660e
EZ
18244 * gdbserver.1: Add (C) after Copyright. Update the FSF
18245 address.
18246
9d1fb177
DJ
182472005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18248
18249 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18250 (arm_breakpoint_at): Recognize both breakpoints.
18251 (the_low_target): Use the correct breakpoint instruction.
18252
011a70c2
DJ
182532005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18254
18255 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18256 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18257 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18258 (the_low_target): Update.
18259
7fb85e41
AS
182602005-10-25 Andreas Schwab <schwab@suse.de>
18261
18262 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18263
18264 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18265 (ia64_num_regs): Reduce to 462.
18266
3db0444b
DJ
182672005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18268
18269 * acinclude.m4: Correct quoting.
18270 * aclocal.m4: Regenerated.
18271
18272 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18273 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18274 (thread_db_init): Call thread_db_err_str.
18275 * configure.ac: Check for TD_VERSION.
18276 * config.in, configure: Regenerated.
18277
bee0189a
DJ
182782005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18279
18280 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18281
e9d25b98
DJ
182822005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18283
18284 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18285 is not available. Define HAVE_PTRACE_GETREGS if it is.
18286 * config.in, configure: Regenerated.
18287 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18288 * linux-i386-low.c, linux-m68k-low.c: Update to use
18289 HAVE_PTRACE_GETREGS.
18290 * linux-low.c (regsets_fetch_inferior_registers)
18291 (regsets_store_inferior_registers): Only return 0 if we processed
18292 GENERAL_REGS.
18293 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18294 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18295
a06660f7
DJ
182962005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18297
18298 * inferiors.c (struct thread_info): Add gdb_id.
18299 (add_thread): Add gdb_id argument.
18300 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18301 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18302 calls to add_thread.
18303 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18304 * server.c (handle_query): Use thread_to_gdb_id.
18305 (handle_v_cont, main): Use gdb_id_to_thread_id.
18306 * server.h (add_thread): Update prototype.
18307 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18308 prototypes.
18309
5a1f5858
DJ
183102005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18311
18312 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18313 left-padded registers.
18314 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18315 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18316
e122f1f5
SE
183172005-07-01 Steve Ellcey <sje@cup.hp.com>
18318
18319 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18320 * configure: Regenerate.
18321 * config.in: Regenerate.
18322 * server.h (NEED_DECLARATION_STRERROR):
18323 Replace with !HAVE_DECL_STRERROR.
18324
d592fa2f
DJ
183252005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18326
18327 * linux-low.c (linux_wait, linux_send_signal): Don't test
18328 an unsigned long variable for > 0 if it could be MAX_ULONG.
18329 * server.c (myresume): Likewise.
18330 * target.c (set_desired_inferior): Likewise.
18331
ccbd4912
MK
183322005-06-13 Mark Kettenis <kettenis@gnu.org>
18333
18334 * configure.ac: Simplify and improve check for socklen_t.
18335 * configure, config.in: Regenerate.
18336
f450004a
DJ
183372005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18338
18339 * acconfig.h: Remove.
18340 * configure.ac: Add a test for socklen_t. Use three-argument
18341 AC_DEFINE throughout.
18342 * config.in: Regenerated using autoheader 2.59.
18343 * configure: Regenerated.
18344
18345 * gdbreplay.c (socklen_t): Provide a default.
18346 (remote_open): Use socklen_t.
18347 * remote-utils.c (socklen_t): Provide a default.
18348 (remote_open): Use socklen_t.
18349 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18350 unsigned char.
18351
18352 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18353 char for buffers.
18354 * linux-low.c (linux_read_memory, linux_write_memory)
18355 (linux_read_auxv): Likewise.
18356 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18357 (check_mem_write): Likewise.
18358 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18359 Likewise.
18360 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18361 (registers_from_string, register_data): Likewise.
18362 * server.c (handle_query, main): Likewise.
18363 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18364 (decode_M_packet): Likewise.
18365 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18366 * target.h (struct target_ops): Update read_memory, write_memory,
18367 and read_auxv.
18368 (read_inferior_memory, write_inferior_memory): Update.
18369 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18370 to unsigned char *.
18371 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18372 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18373 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18374 linux-s390-low.c, linux-sh-low.c: Update for changes in
18375 read_inferior_memory and the_low_target->breakpoint.
18376
eee84df1
DJ
183772005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18378
18379 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18380 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18381 * configure.srv: Add powerpc64-*-linux*.
18382 * linux-ppc64-low.c: New file.
18383
45b134e5
OF
183842005-05-23 Orjan Friberg <orjanf@axis.com>
18385
18386 * linux-cris-low.c: New file with support for CRIS.
18387 * linux-crisv32-low.c: Ditto for CRISv32.
18388 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18389 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 18390 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
18391 reg-crisv32.o, and reg-crisv32.c to make rules.
18392 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18393 recognized targets.
18394
48d93c75
UW
183952005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18396
18397 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18398 of sizeof (PTRACE_XFER_TYPE).
18399 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18400
e013ee27
OF
184012005-05-12 Orjan Friberg <orjanf@axis.com>
18402
889bf7c5 18403 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
18404 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18405 pointers for hardware watchpoint support.
18406 * linux-low.h (struct linux_target_ops): Ditto.
18407 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18408 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18409 to linux_target_ops.
18410 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18411 reply packet.
18412 * server.c (main): Recognize 'Z' and 'z' packets.
18413
b0ded00b
UW
184142005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18415
18416 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18417 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18418 (the_low_target): Add new members.
18419
8643e2ad
DJ
184202005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18421
18422 * proc-service.c (ps_lgetregs): Search all_processes instead of
18423 all_threads.
18424
fc620387
DJ
184252005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18426
18427 * server.c (start_inferior): Change return type to int.
18428 (attach_inferior): Change sigptr to int *.
18429 (handle_v_cont, handle_v_requests): Change signal to int *.
18430 (main): Change signal to int.
18431
184322005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
18433
18434 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18435 * configure.srv: Add m32r*-*-linux*.
18436 * linux-m32r-low.c: New file.
18437
e0e76420
DJ
184382005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18439
18440 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18441
a1928bad
DJ
184422005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18443
18444 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18445 Take unsigned long arguments for PIDs.
18446 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18447 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18448 (wait_for_sigstop, linux_resume_one_process)
18449 (regsets_fetch_inferior_registers, linux_send_signal)
18450 (linux_read_auxv): Likewise. Update the types of variables holding
18451 PIDs. Update format string specifiers.
18452 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18453 * remote-utils.c (prepare_resume_reply): Likewise.
18454 * server.c (cont_thread, general_thread, step_thread)
18455 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18456 unsigned long.
18457 (handle_query): Update format specifiers.
18458 (handle_v_cont, main): Use strtoul for thread IDs.
18459 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18460 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18461 (general_thread, step_thread, thread_from_wait)
18462 (old_thread_from_wait): Update.
18463 * target.h (struct thread_resume): Use unsigned long for THREAD.
18464 (struct target_ops): Use unsigned long for arguments to attach and
18465 thread_alive.
18466
dcdb98d2
DJ
184672005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18468
18469 * acinclude.m4: Include bfd/bfd.m4 directly.
18470 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18471 <agriffis@toolchain.org>.
18472 * aclocal.m4, configure: Regenerated.
18473
bec39cab
AC
184742005-01-07 Andrew Cagney <cagney@gnu.org>
18475
18476 * configure.ac: Rename configure.in, require autoconf 2.59.
18477 * configure: Re-generate.
18478
434c4c77
DJ
184792004-12-08 Daniel Jacobowitz <dan@debian.org>
18480
18481 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18482 LIBS when finished.
18483 * aclocal.m4: Regenerated.
18484 * configure: Regenerated.
18485
db1d3e1b
AS
184862004-11-21 Andreas Schwab <schwab@suse.de>
18487
18488 * linux-m68k-low.c (m68k_num_gregs): Define.
18489 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18490 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18491 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18492 (m68k_breakpoint_at): New. Add to the_low_target.
18493
18494 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18495 srv_linux_thread_db to yes.
18496
43360365
JB
184972004-10-20 Joel Brobecker <brobecker@gnat.com>
18498
18499 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18500 (ARCH_SET_FS): Likewise.
18501 (ARCH_GET_FS): Likewise.
18502 (ARCH_GET_GS): Likewise.
18503
fd500816
DJ
185042004-10-16 Daniel Jacobowitz <dan@debian.org>
18505
18506 * linux-i386-low.c (ps_get_thread_area): New.
18507 * linux-x86-64-low.c (ps_get_thread_area): New.
18508 * linux-low.c: Include <sys/syscall.h>.
18509 (linux_kill_one_process): Don't kill the first thread here.
18510 (linux_kill): Kill the first thread here.
18511 (kill_lwp): New function.
18512 (send_sigstop, linux_send_signal): Use it.
18513 * proc-service.c: Clean up #ifdefs.
18514 (fpregset_info): Delete.
18515 (ps_lgetregs): Update and enable implementation.
18516 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18517 implementations.
18518 * remote-utils.c (struct sym_cache, symbol_cache): New.
18519 (input_interrupt): Print a clearer message.
18520 (async_io_enabled): New variable.
18521 (enable_async_io, disable_async_io): Use it. Update comments.
18522 (look_up_one_symbol): Use the symbol cache.
18523 * thread-db.c (thread_db_look_up_symbols): New function.
18524 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18525
f6de3c42
DJ
185262004-10-16 Daniel Jacobowitz <dan@debian.org>
18527
18528 * configure.in: Test for -rdynamic.
18529 * configure: Regenerated.
18530 * Makefile (INTERNAL_LDFLAGS): New.
18531 (gdbserver, gdbreplay): Use it.
18532
2c0fc042
AC
185332004-09-02 Andrew Cagney <cagney@gnu.org>
18534
18535 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18536
075b3282
DJ
185372004-03-23 Daniel Jacobowitz <drow@mvista.com>
18538
18539 * linux-low.c (linux_wait): Clear all_processes list also.
18540
fa6a77dc
DJ
185412004-03-12 Daniel Jacobowitz <drow@mvista.com>
18542
18543 * linux-low.c: Include <errno.h>. Remove extern declaration of
18544 errno.
18545
6d782a97
DJ
185462004-03-12 Daniel Jacobowitz <drow@mvista.com>
18547
18548 * gdbreplay.c, server.h, utils.c: Update copyright years.
18549
3a7fb99b
DJ
185502004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18551
18552 * server.c (main): Print child status or termination signal from
18553 variable 'signal', not 'sig'.
18554
c3e735a6
DJ
185552004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18556
18557 * linux-low.c (linux_read_memory): Change return type to
18558 int. Check for and return error from ptrace().
18559 * target.c (read_inferior_memory): Change return type to int. Pass
18560 back return status from the_target->read_memory().
18561 * target.h (struct target_ops): Adapt *read_memory() prototype.
18562 Update comment.
18563 (read_inferior_memory): Adapt prototype.
18564 * server.c (main): Return an error packet if
18565 read_inferior_memory() returns an error.
18566
a59d1c82
DJ
185672004-03-04 Daniel Jacobowitz <drow@mvista.com>
18568
18569 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18570 Unify with other clean targets.
18571
dc3f8883
DJ
185722004-02-29 Daniel Jacobowitz <drow@mvista.com>
18573
18574 * server.c (handle_v_cont): Call set_desired_inferior.
18575
89a208da
DJ
185762004-02-29 Daniel Jacobowitz <drow@mvista.com>
18577
18578 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18579
62ea82f5
DJ
185802004-02-29 Daniel Jacobowitz <drow@mvista.com>
18581
18582 * linux-low.c (linux_wait): Unblock async I/O.
18583 (linux_resume): Block and enable async I/O.
18584 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18585 * server.h (block_async_io, unblock_async_io): Add prototypes.
18586
6910d122
DJ
185872004-02-29 Daniel Jacobowitz <drow@mvista.com>
18588
18589 * remote-utils.c (remote_open): Print a status notice after
18590 opening a TCP port.
18591 * server.c (attach_inferior): Print a status notice after
18592 attaching.
18593
185942004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
18595
18596 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18597
c89dc5d4
DJ
185982004-02-26 Daniel Jacobowitz <drow@mvista.com>
18599
18600 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18601 error packet.
18602 * server.c, target.h: Update copyright years.
18603
4b8dad4a
RM
186042004-02-25 Roland McGrath <roland@redhat.com>
18605
18606 * target.h (struct target_ops): New member `read_auxv'.
18607 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18608 * linux-low.c (linux_read_auxv): New function.
18609 (linux_target_ops): Initialize `read_auxv' member to that.
18610
d7446758
JB
186112004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18612
18613 Committed by Jim Blandy <jimb@redhat.com>.
18614
18615 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 18616 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
18617 instead of GPR_SIZE to distiguish s390 and s390x targets.
18618
5544ad89
DJ
186192004-01-31 Daniel Jacobowitz <drow@mvista.com>
18620
18621 * linux-low.c: Update copyright year.
18622 (check_removed_breakpoint): Clear pending_is_breakpoint.
18623 (linux_set_resume_request, linux_queue_one_thread)
18624 (resume_status_pending_p): New functions.
18625 (linux_continue_one_thread): Use process->resume.
18626 (linux_resume): Only resume threads if there are no pending events.
18627 * linux-low.h (struct process_info): Add resume request
18628 pointer.
18629
2a68b70e
DJ
186302004-01-30 Daniel Jacobowitz <drow@mvista.com>
18631
18632 * regcache.c (new_register_cache): Clear the allocated register
18633 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18634
64386c31
DJ
186352003-10-13 Daniel Jacobowitz <drow@mvista.com>
18636
18637 * linux-low.c (linux_resume): Take a struct thread_resume *
18638 argument.
18639 (linux_wait): Update call.
18640 (resume_ptr): New static variable.
18641 (linux_continue_one_thread): Renamed from
18642 linux_continue_one_process. Use resume_ptr.
18643 (linux_resume): Use linux_continue_one_thread.
18644 * server.c (handle_v_cont, handle_v_requests): New functions.
18645 (myresume): New function.
18646 (main): Handle 'v' case.
18647 * target.h (struct thread_resume): New type.
18648 (struct target_ops): Change argument of "resume" to struct
18649 thread_resume *.
18650 (myresume): Delete macro.
18651
c938e9b0
L
186522003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18653
18654 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18655 (uninstall): Support DESTDIR.
18656
7f313d07
BC
18657Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18658
18659 * configure.srv: Add xscale*linux copy of arm*linux entry.
18660
3b2fc2ea
DJ
186612003-07-24 Daniel Jacobowitz <drow@mvista.com>
18662
18663 * linux-arm-low.c (arm_reinsert_addr): New function.
18664 (the_low_target): Add arm_reinsert_addr.
18665
1c0a559e
MK
186662003-07-08 Mark Kettenis <kettenis@gnu.org>
18667
18668 * mem-break.c: Remove whitespace at end of file.
18669
43d5792c
DJ
186702003-06-28 Daniel Jacobowitz <drow@mvista.com>
18671
18672 * configure.in: Check whether we need to prototype strerror.
18673 * server.h: Optionally prototype strerror.
18674 * gdbreplay.c (perror_with_name): Use strerror.
18675 * linux-low.c (linux_attach_lwp): Use strerror.
18676 * utils.c (perror_with_name): Use strerror.
18677 * config.in, configure: Regenerated.
18678
c8a86edf
DJ
186792003-06-28 Daniel Jacobowitz <drow@mvista.com>
18680
18681 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18682 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18683
73d37363
DJ
186842003-06-20 Daniel Jacobowitz <drow@mvista.com>
18685
18686 * Makefile.in (SFILES): Update.
18687 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18688 low-sun3.c: Remove files.
18689
6ad8ae5c
DJ
186902003-06-17 Daniel Jacobowitz <drow@mvista.com>
18691
18692 * linux-low.c: Move comment to linux_thread_alive where it belonged.
18693 (linux_detach_one_process, linux_detach): New functions.
18694 (linux_target_ops): Add linux_detach.
18695 * server.c (main): Handle 'D' packet.
18696 * target.h (struct target_ops): Add "detach" member.
18697 (detach_inferior): Define.
18698
1581182a
MK
186992003-06-13 Mark Kettenis <kettenis@gnu.org>
18700
18701 From Kelley Cook <kelleycook@wideopenwest.com>:
18702 * configure.srv: Accept i[34567]86 variants.
18703
e5379b03
DJ
187042003-06-05 Daniel Jacobowitz <drow@mvista.com>
18705
18706 * linux-low.c (linux_wait_for_event): Correct comment typos.
18707 (linux_resume_one_process): Call check_removed_breakpoint.
18708 (linux_send_signal): New function.
18709 (linux_target_ops): Add linux_send_signal.
18710 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
18711 of kill.
18712 * target.h (struct target_ops): Add send_signal.
18713
2ff29de4
JB
187142003-05-29 Jim Blandy <jimb@redhat.com>
18715
18716 * linux-low.c (usr_store_inferior_registers): Transfer buf in
18717 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
18718 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
18719 away part of the register's value.
18720
254787d4
DJ
187212003-03-26 Daniel Jacobowitz <drow@mvista.com>
18722
18723 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
18724 (linux_wait_for_event, linux_init_signals): Likewise.
18725
94e10508
DJ
187262003-03-17 Daniel Jacobowitz <drow@mvista.com>
18727
18728 * configure.in: Check for stdlib.h.
18729 * configure: Regenerated.
18730 * config.in: Regenerated.
18731
4c0711e0
DJ
187322003-01-04 Andreas Schwab <schwab@suse.de>
18733
18734 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
18735
ef66e766
AC
187362003-01-02 Andrew Cagney <ac131313@redhat.com>
18737
18738 * Makefile.in: Remove obsolete code.
18739
a1358604
DJ
187402002-11-20 Daniel Jacobowitz <drow@mvista.com>
18741
18742 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18743 defined(PT_FPR0_HI).
18744
23ce3b1c
DJ
187452002-11-17 Stuart Hughes <seh@zee2.com>
18746
18747 * linux-arm-low.c (arm_num_regs): Increase.
18748 (arm_regmap): Include status register.
18749
187502002-11-17 Daniel Jacobowitz <drow@mvista.com>
18751
18752 * linux-low.c (register_addr): Remove incorrect -1 check.
18753
a9fa9f7d
DJ
187542002-08-29 Daniel Jacobowitz <drow@mvista.com>
18755
18756 * linux-low.c (linux_create_inferior): Call setpgid. Return
18757 the new PID.
18758 (unstopped_p, linux_signal_pid): Remove.
18759 (linux_target_ops): Remove linux_signal_pid.
18760 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18761 global instead of target method.
18762 * target.h (struct target_ops): Remove signal_pid. Update comment
18763 for create_inferior.
18764 * server.c (signal_pid): New variable.
18765 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 18766 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
18767 (attach_inferior): Set signal_pid.
18768
17574093
DJ
187692002-08-23 Daniel Jacobowitz <drow@mvista.com>
18770
18771 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18772
187732002-08-20 Jim Blandy <jimb@redhat.com>
18774
18775 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18776 default for this.
18777
187782002-08-01 Andrew Cagney <cagney@redhat.com>
18779
18780 * Makefile.in: Make chill references obsolete.
18781
187822002-07-24 Kevin Buettner <kevinb@redhat.com>
18783
18784 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18785 * configure: Regenerate.
18786 * config.in: Regenerate.
18787
187882002-07-09 David O'Brien <obrien@FreeBSD.org>
18789
18790 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18791 (perror_with_name, remote_close, remote_open, expect, play): Static.
18792
187932002-07-04 Michal Ludvig <mludvig@suse.cz>
18794
4b8dad4a 18795 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
18796 byte offsets instead of an array of indexes.
18797 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18798
187992002-06-13 Daniel Jacobowitz <drow@mvista.com>
18800
18801 * regcache.c: Add comment.
18802
188032002-06-11 Daniel Jacobowitz <drow@mvista.com>
18804
18805 * thread-db.c: New file.
18806 * proc-service.c: New file.
18807 * acinclude.m4: New file.
18808 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18809 proc-service.o, and thread-db.o.
18810 (linux-low.o): Add USE_THREAD_DB.
18811 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18812 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18813 * aclocal.m4: Regenerated.
18814 * config.in: Regenerated.
18815 * configure: Regenerated.
18816 * configure.in: Check for proc_service.h, sys/procfs.h,
18817 thread_db.h, and linux/elf.h headrs.
18818 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18819 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18820 Check for -lthread_db and thread support.
18821 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18822 PowerPC, and SuperH.
18823 * i387-fp.c: Constify arguments.
18824 * i387-fp.h: Likewise.
18825 * inferiors.c: (struct thread_info): Renamed from
18826 `struct inferior_info'. Remove PID member. Use generic inferior
18827 list header. All uses updated.
18828 (inferiors, signal_pid): Removed.
18829 (all_threads): New variable.
18830 (get_thread): Define.
18831 (add_inferior_to_list): New function.
18832 (for_each_inferior): New function.
18833 (change_inferior_id): New function.
18834 (add_inferior): Removed.
18835 (remove_inferior): New function.
18836 (add_thread): New function.
18837 (free_one_thread): New function.
18838 (remove_thread): New function.
18839 (clear_inferiors): Use for_each_inferior and free_one_thread.
18840 (find_inferior): New function.
18841 (find_inferior_id): New function.
18842 (inferior_target_data): Update argument type.
18843 (set_inferior_target_data): Likewise.
18844 (inferior_regcache_data): Likewise.
18845 (set_inferior_regcache_data): Likewise.
18846 * linux-low.c (linux_bp_reinsert): Remove.
18847 (all_processes, stopping_threads, using_thrads)
18848 (struct pending_signals, debug_threads, pid_of): New.
18849 (inferior_pid): Replace with macro.
18850 (struct inferior_linux_data): Remove.
18851 (get_stop_pc, add_process): New functions.
18852 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18853 Use add_process and add_thread.
18854 (linux_attach_lwp): New function, based on old linux_attach. Use
18855 add_process and add_thread. Set stop_expected for new threads.
18856 (linux_attach): New function.
18857 (linux_kill_one_process): New function.
18858 (linux_kill): Kill all LWPs.
18859 (linux_thread_alive): Use find_inferior_id.
18860 (check_removed_breakpoints, status_pending_p): New functions.
18861 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18862 Update. Use WNOHANG. Wait for cloned processes also. Update process
18863 struct for the found process.
18864 (linux_wait_for_event): New function.
18865 (linux_wait): Use it. Support LWPs.
18866 (send_sigstop, wait_for_sigstop, stop_all_processes)
18867 (linux_resume_one_process, linux_continue_one_process): New functions.
18868 (linux_resume): Support LWPs.
18869 (REGISTER_RAW_SIZE): Remove.
18870 (fetch_register): Use register_size instead. Call supply_register.
18871 (usr_store_inferior_registers): Likewise. Call collect_register.
18872 Fix recursive case.
18873 (regsets_fetch_inferior_registers): Improve error message.
18874 (regsets_store_inferior_registers): Add debugging.
18875 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18876 (unstopped_p, linux_signal_pid): New functions.
18877 (linux_target_ops): Add linux_signal_pid.
18878 (linux_init_signals): New function.
18879 (initialize_low): Call it. Initialize using_threads.
18880 * regcache.c (inferior_regcache_data): Add valid
18881 flag.
18882 (get_regcache): Fetch registers lazily. Add fetch argument
18883 and update all callers.
18884 (regcache_invalidate_one, regcache_invalidate): New
18885 functions.
18886 (new_register_cache): Renamed from create_register_cache.
18887 Return the new regcache.
18888 (free_register_cache): Change argument to a void *.
18889 (registers_to_string, registers_from_string): Call get_regcache
18890 with fetch flag set.
18891 (register_data): Make static. Pass fetch flag to get_regcache.
18892 (supply_register): Call get_regcache with fetch flag clear.
18893 (collect_register): Call get_regcache with fetch flag set.
18894 (collect_register_as_string): New function.
18895 * regcache.h: Update.
18896 * remote-utils.c (putpkt): Flush after debug output and use
18897 stderr.
18898 Handle input interrupts while waiting for an ACK.
18899 (input_interrupt): Use signal_pid method.
18900 (getpkt): Flush after debug output and use stderr.
18901 (outreg): Use collect_register_as_string.
18902 (new_thread_notify, dead_thread_notify): New functions.
18903 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18904 and general_thread.
18905 (look_up_one_symbol): Flush after debug output.
18906 * server.c (step_thread, server_waiting): New variables.
18907 (start_inferior): Don't use signal_pid. Update call to mywait.
18908 (attach_inferior): Update call to mywait.
18909 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18910 (main): Don't fetch/store registers explicitly. Use
18911 set_desired_inferior. Support proposed ``Hs'' packet. Update
18912 calls to mywait.
18913 * server.h: Update.
18914 (struct inferior_list, struct_inferior_list_entry): New.
18915 * target.c (set_desired_inferior): New.
18916 (write_inferior_memory): Constify.
18917 (mywait): New function.
18918 * target.h: Update.
18919 (struct target_ops): New signal_pid method.
18920 (mywait): Removed macro, added prototype.
18921
18922 * linux-low.h (regset_func): Removed.
18923 (regset_fill_func, regset_store_func): New.
18924 (enum regset_type): New.
18925 (struct regset_info): Add type field. Use new operation types.
18926 (struct linux_target_ops): stop_pc renamed to get_pc.
18927 Add decr_pc_after_break and breakpoint_at.
18928 (get_process, get_thread_proess, get_process_thread)
18929 (strut process_info, all_processes, linux_attach_lwp)
18930 (thread_db_init): New.
18931
18932 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18933 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18934 (the_low_target): Add new members.
18935 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18936 (i386_store_fpxregset): Constify.
18937 (target_regsets): Add new kind identifier.
18938 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18939 (i386_set_pc): Add debugging.
18940 (i386_breakpoint_at): New function.
18941 (the_low_target): Add new members.
18942 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18943 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18944 (mips_breakpoint_at): New.
18945 (the_low_target): Add new members.
18946 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18947 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18948 (the_low_target): Add new members.
18949 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18950 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18951 (the_low_target): Add new members.
18952 * linux-x86-64-low.c (target_regsets): Add new kind
18953 identifier.
18954
189552002-05-15 Daniel Jacobowitz <drow@mvista.com>
18956
18957 From Martin Pool <mbp@samba.org>:
18958 * server.c (gdbserver_usage): New function.
18959 (main): Call it.
18960
189612002-05-14 Daniel Jacobowitz <drow@mvista.com>
18962
18963 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18964 stop_at -> stop_pc.
18965
189662002-05-04 Andrew Cagney <ac131313@redhat.com>
18967
18968 * Makefile.in: Remove obsolete code.
18969
189702002-04-24 Michal Ludvig <mludvig@suse.cz>
18971
18972 * linux-low.c (regsets_fetch_inferior_registers),
18973 (regsets_store_inferior_registers): Removed cast to int from
18974 ptrace() calls.
18975 * regcache.h: Added declaration of struct inferior_info.
18976
189772002-04-20 Daniel Jacobowitz <drow@mvista.com>
18978
18979 * inferiors.c (struct inferior_info): Add regcache_data.
18980 (add_inferior): Call create_register_cache.
18981 (clear_inferiors): Call free_register_cache.
18982 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18983 * regcache.c (struct inferior_regcache_data): New.
18984 (registers): Remove.
18985 (get_regcache): New function.
18986 (create_register_cache, free_register_cache): New functions.
18987 (set_register_cache): Don't initialize the register cache here.
18988 (registers_to_string, registers_from_string, register_data): Call
18989 get_regcache.
18990 * regcache.h: Add prototypes.
18991 * server.h: Likewise.
18992
189932002-04-20 Daniel Jacobowitz <drow@mvista.com>
18994
18995 * mem-break.c: New file.
18996 * mem-break.h: New file.
18997 * Makefile.in: Add mem-break.o rule; update server.h
18998 dependencies.
18999 * inferiors.c (struct inferior_info): Add target_data
19000 member.
19001 (clear_inferiors): Free target_data member if set.
19002 (inferior_target_data, set_inferior_target_data): New functions.
19003 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19004 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19005 * linux-low.c (linux_bp_reinsert): New variable.
19006 (struct inferior_linux_data): New.
19007 (linux_create_inferior): Use set_inferior_target_data.
19008 (linux_attach): Likewise. Call add_inferior.
19009 (linux_wait_for_one_inferior): New function.
19010 (linux_wait): Call it.
19011 (linux_write_memory): Add const.
19012 (initialize_low): Call set_breakpoint_data.
19013 * linux-low.h (struct linux_target_ops): Add breakpoint
19014 handling members.
19015 * server.c (attach_inferior): Remove extra add_inferior
19016 call.
19017 * server.h: Include mem-break.h. Update inferior.c
19018 prototypes.
19019 * target.c (read_inferior_memory)
19020 (write_inferior_memory): New functions.
19021 * target.h (read_inferior_memory)
19022 (write_inferior_memory): Change macros to prototypes.
19023 (struct target_ops): Update comments. Add const to write_memory
19024 definition.
19025
190262002-04-11 Daniel Jacobowitz <drow@mvista.com>
19027
19028 * linux-low.c (usr_store_inferior_registers): Support
19029 registers which are allowed to fail to store.
19030 * linux-low.h (linux_target_ops): Likewise.
19031 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19032 (ppc_cannot_store_register): FPSCR may not be storable.
19033
190342002-04-09 Daniel Jacobowitz <drow@mvista.com>
19035
19036 * server.h: Include <string.h> if HAVE_STRING_H.
19037 * ChangeLog: Correct paths in last ChangeLog entry.
19038
190392002-04-09 Daniel Jacobowitz <drow@mvista.com>
19040
19041 * linux-low.h: Remove obsolete prototypes.
19042 (struct linux_target_ops): New.
19043 (extern the_low_target): New.
19044 * linux-low.c (num_regs, regmap): Remove declarations.
19045 (register_addr): Use the_low_target explicitly.
19046 (fetch_register): Likewise.
19047 (usr_fetch_inferior_registers): Likewise.
19048 (usr_store_inferior_registers): Likewise.
19049 * linux-arm-low.c (num_regs): Remove.
19050 (arm_num_regs): Define.
19051 (arm_regmap): Renamed from regmap, made static.
19052 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19053 made static.
19054 (arm_cannot_store_register): Renamed from cannot_store_register,
19055 made static.
19056 (the_low_target): New.
19057 * linux-i386-low.c (num_regs): Remove.
19058 (i386_num_regs): Define.
19059 (i386_regmap): Renamed from regmap, made static.
19060 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19061 made static.
19062 (i386_cannot_store_register): Renamed from cannot_store_register,
19063 made static.
19064 (the_low_target): New.
19065 * linux-ia64-low.c (num_regs): Remove.
19066 (ia64_num_regs): Define.
19067 (ia64_regmap): Renamed from regmap, made static.
19068 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19069 made static.
19070 (ia64_cannot_store_register): Renamed from cannot_store_register,
19071 made static.
19072 (the_low_target): New.
19073 * linux-m68k-low.c (num_regs): Remove.
19074 (m68k_num_regs): Define.
19075 (m68k_regmap): Renamed from regmap, made static.
19076 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19077 made static.
19078 (m68k_cannot_store_register): Renamed from cannot_store_register,
19079 made static.
19080 (the_low_target): New.
19081 * linux-mips-low.c (num_regs): Remove.
19082 (mips_num_regs): Define.
19083 (mips_regmap): Renamed from regmap, made static.
19084 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19085 made static.
19086 (mips_cannot_store_register): Renamed from cannot_store_register,
19087 made static.
19088 (the_low_target): New.
19089 * linux-ppc-low.c (num_regs): Remove.
19090 (ppc_num_regs): Define.
19091 (ppc_regmap): Renamed from regmap, made static.
19092 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19093 made static.
19094 (ppc_cannot_store_register): Renamed from cannot_store_register,
19095 made static.
19096 (the_low_target): New.
19097 * linux-s390-low.c (num_regs): Remove.
19098 (s390_num_regs): Define.
19099 (s390_regmap): Renamed from regmap, made static.
19100 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19101 made static.
19102 (s390_cannot_store_register): Renamed from cannot_store_register,
19103 made static.
19104 (the_low_target): New.
19105 * linux-sh-low.c (num_regs): Remove.
19106 (sh_num_regs): Define.
19107 (sh_regmap): Renamed from regmap, made static.
19108 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19109 made static.
19110 (sh_cannot_store_register): Renamed from cannot_store_register,
19111 made static.
19112 (the_low_target): New.
19113 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19114 (the_low_target): New.
19115
191162002-04-09 Daniel Jacobowitz <drow@mvista.com>
19117
19118 * Makefile.in: Add stamp-h target.
19119 * configure.in: Create stamp-h.
19120 * configure: Regenerated.
19121
191222002-04-09 Daniel Jacobowitz <drow@mvista.com>
19123
19124 * inferiors.c: New file.
19125 * target.c: New file.
19126 * target.h: New file.
19127 * Makefile.in: Add target.o and inferiors.o. Update
19128 dependencies.
19129 * linux-low.c (inferior_pid): New static variable,
19130 moved from server.c.
19131 (linux_create_inferior): Renamed from create_inferior.
19132 Call add_inferior. Return 0 on success instead of a PID.
19133 (linux_attach): Renamed from myattach.
19134 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19135 (linux_thread_alive): Renamed from mythread_alive.
19136 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19137 child dies.
19138 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19139 (regsets_store_inferior_registers): Correct error message.
19140 Add missing ``return 0''.
19141 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19142 (linux_store_registers): Renamed from store_inferior_registers.
19143 (linux_read_memory): Renamed from read_inferior_memory.
19144 (linux_write_memory): Renamed from write_inferior_memory.
19145 (linux_target_ops): New structure.
19146 (initialize_low): Call set_target_ops ().
19147 * remote-utils.c (unhexify): New function.
19148 (hexify): New function.
19149 (input_interrupt): Send signals to ``signal_pid''.
19150 * server.c (inferior_pid): Remove.
19151 (start_inferior): Update create_inferior call.
19152 (attach_inferior): Call add_inferior.
19153 (handle_query): New function.
19154 (main): Call handle_query for `q' packets.
19155 * server.h: Include "target.h". Remove obsolete prototypes.
19156 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19157
191582002-04-09 Daniel Jacobowitz <drow@mvista.com>
19159
19160 * Makefile.in: Add WARN_CFLAGS. Update configury
19161 dependencies.
19162 * configure.in: Check for <string.h>
19163 * configure: Regenerate.
19164 * config.in: Regenerate.
19165 * gdbreplay.c: Include needed system headers.
19166 (remote_open): Remove strchr prototype.
19167 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19168 * regcache.c (supply_register): Change buf argument to const void *.
19169 (supply_register_by_name): Likewise.
19170 (collect_register): Change buf argument to void *.
19171 (collect_register_by_name): Likewise.
19172 * regcache.h: Add missing prototypes.
19173 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19174 * server.c (handle_query): New function.
19175 (attached): New static variable, moved out of main.
19176 (main): Quiet longjmp clobber warnings.
19177 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19178 * utils.c (error): Remove NORETURN.
19179 (fatal): Likewise.