gdbserver: turn target op 'supports_tracepoints' into a method
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
290732bf
TBA
12020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's supports_tracepoints op into a
4 method of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target op.
7 (class process_target): Add the target op.
8 (target_supports_tracepoints): Update the macro.
9 * target.cc (process_target::supports_tracepoints): Define.
10
11 Update the derived classes and callers below.
12
13 * linux-low.cc (linux_target_ops): Update.
14 (linux_supports_tracepoints): Turn into ...
15 (linux_process_target::supports_tracepoints): ... this.
16 * linux-low.h (class linux_process_target): Update.
17 * lynx-low.cc (lynx_target_ops): Update.
18 * nto-low.cc (nto_target_ops): Update.
19 * win32-low.cc (win32_target_ops): Update.
20
0df28b1b
TBA
212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
22
23 Turn process_stratum_target's process_qsupported op into a method
24 of process_target.
25
26 * target.h (struct process_stratum_target): Remove the target op.
27 (class process_target): Add the target op.
28 (target_process_qsupported): Update the macro.
29 * target.cc (process_target::process_qsupported): Define.
30
31 Update the derived classes and callers below.
32
33 * linux-low.cc (linux_target_ops): Update.
34 (linux_process_qsupported): Turn into ...
35 (linux_process_target::process_qsupported): ... this.
36 * linux-low.h (class linux_process_target): Update.
37 * lynx-low.cc (lynx_target_ops): Update.
38 * nto-low.cc (nto_target_ops): Update.
39 * win32-low.cc (win32_target_ops): Update.
40
9da41fda
TBA
412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
42
43 Turn process_stratum_target's read_loadmap op into a method of
44 process_target.
45
46 * target.h (struct process_stratum_target): Remove the target op.
47 (class process_target): Add the target op. Also add
48 'supports_read_loadmap'.
49 * target.cc (process_target::read_loadmap): Define.
50 (process_target::supports_read_loadmap): Define.
51
52 Update the derived classes and callers below.
53
54 * server.cc (handle_qxfer_fdpic): Update.
55 (handle_query): Update.
56 * linux-low.cc (linux_target_ops): Update.
57 (linux_process_target::supports_read_loadmap): Define.
58 (linux_read_loadmap): Turn into ...
59 (linux_process_target::read_loadmap): ... this.
60 * linux-low.h (class linux_process_target): Update.
61 * lynx-low.cc (lynx_target_ops): Update.
62 * nto-low.cc (nto_target_ops): Update.
63 * win32-low.cc (win32_target_ops): Update.
64
95a45fc1
TBA
652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
66
67 Turn process_stratum_target's core_of_thread op into a method of
68 process_target.
69
70 * target.h (struct process_stratum_target): Remove the target op.
71 (class process_target): Add the target op.
72 (target_core_of_thread): Update the macro.
73 * target.cc (process_target::core_of_thread): Define.
74
75 Update the derived classes and callers below.
76
77 * linux-low.cc (linux_target_ops): Update.
78 (linux_process_target::core_of_thread): Define.
79 * linux-low.h (class linux_process_target): Update.
80 * lynx-low.cc (lynx_target_ops): Update.
81 * nto-low.cc (nto_target_ops): Update.
82 * win32-low.cc (win32_target_ops): Update.
83
55cf3021
TBA
842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
85
86 Turn process_stratum_target's handle_monitor_command op into a
87 method of process_target.
88
89 * target.h (struct process_stratum_target): Remove the target op.
90 (class process_target): Add the target op.
91 (target_handle_monitor_command): Update the macro.
92 * target.cc (process_target::handle_monitor_command): Define.
93
94 Update the derived classes and callers below.
95
96 * server.cc (handle_query): Update.
97 * linux-low.cc (linux_target_ops): Update.
98 (linux_process_target::handle_monitor_command): Define.
99 * linux-low.h (class linux_process_target): Update.
100 * lynx-low.cc (lynx_target_ops): Update.
101 * nto-low.cc (nto_target_ops): Update.
102 * win32-low.cc (win32_target_ops): Update.
103
fb00dfce
TBA
1042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
105
106 Turn process_stratum_target's handle_new_gdb_connection op into a
107 method of process_target.
108
109 * target.h (struct process_stratum_target): Remove the target op.
110 (class process_target): Add the target op.
111 (target_handle_new_gdb_connection): Update the macro.
112 * target.cc (process_target::handle_new_gdb_connection): Define.
113
114 Update the derived classes and callers below.
115
116 * linux-low.cc (linux_target_ops): Update.
117 (linux_handle_new_gdb_connection): Turn into ...
118 (linux_process_target::handle_new_gdb_connection): ... this.
119 * linux-low.h (class linux_process_target): Update.
120 * lynx-low.cc (lynx_target_ops): Update.
121 * nto-low.cc (nto_target_ops): Update.
122 * win32-low.cc (win32_target_ops): Update.
123
9690a72a
TBA
1242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
125
126 Turn process_stratum_target's supports_fork_events,
127 supports_vfork_events, and supports_exec_events ops into methods
128 of process_target.
129
130 * target.h (struct process_stratum_target): Remove the target ops.
131 (class process_target): Add the target ops.
132 (target_supports_fork_events): Update the macro.
133 (target_supports_vfork_events): Update the macro.
134 (target_supports_exec_events): Update the macro.
135 * target.cc (process_target::supports_fork_events): Define.
136 (process_target::supports_vfork_events): Define.
137 (process_target::supports_exec_events): Define.
138
139 Update the derived classes and callers below.
140
141 * linux-low.cc (linux_target_ops): Update.
142 (linux_supports_fork_events): Turn into ...
143 (linux_process_target::supports_fork_events): ... this.
144 (linux_supports_vfork_events): Turn into ...
145 (linux_process_target::supports_vfork_events): ... this.
146 (linux_supports_exec_events): Turn into ...
147 (linux_process_target::supports_exec_events): ... this.
148 * linux-low.h (class linux_process_target): Update.
149 * lynx-low.cc (lynx_target_ops): Update.
150 * nto-low.cc (nto_target_ops): Update.
151 * win32-low.cc (win32_target_ops): Update.
152
652aef77
TBA
1532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
154
155 Turn process_stratum_target's supports_multi_process op into a
156 method of process_target.
157
158 * target.h (struct process_stratum_target): Remove the target op.
159 (class process_target): Add the target op.
160 * target.cc (process_target::supports_multi_process): Define.
161 (target_supports_multi_process): Update.
162
163 Update the derived classes and callers below.
164
165 * linux-low.cc (linux_target_ops): Update.
166 (linux_supports_multi_process): Turn into ...
167 (linux_process_target::supports_multi_process): ... 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
0dc587d4
TBA
1732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
174
175 Turn process_stratum_target's supports_non_stop, async, and
176 start_non_stop ops into methods of process_target.
177
178 * target.h (struct process_stratum_target): Remove the target ops.
179 (class process_target): Add the target ops.
180 (target_supports_non_stop): Update the macro.
181 (target_async): Update the macro.
182 (start_non_stop): Remove declaration.
183 * target.cc (process_target::supports_non_stop): Define.
184 (process_target::async): Define.
185 (process_target::start_non_stop): Define.
186 (start_non_stop): Remove.
187
188 Update the derived classes and callers below.
189
190 * server.cc (handle_qxfer_siginfo): Update.
191 (handle_query): Update.
192 * linux-low.cc (linux_target_ops): Update.
193 (linux_supports_non_stop): Turn into ...
194 (linux_process_target::supports_non_stop): ... this.
195 (linux_async): Turn into ...
196 (linux_process_target::async): ... this.
197 (linux_start_non_stop): Turn into ...
198 (linux_process_target::start_non_stop): ... this.
199 * linux-low.h (class linux_process_target): Update.
200 * lynx-low.cc (lynx_target_ops): Update.
201 * nto-low.cc (nto_target_ops): Update.
202 (nto_supports_non_stop): Remove; rely on the default behavior
203 instead.
204 * win32-low.cc (win32_target_ops): Update.
205
d7abedf7
TBA
2062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
207
208 Turn process_stratum_target's qxfer_siginfo op into a method of
209 process_target.
210
211 * target.h (struct process_stratum_target): Remove the target op.
212 (class process_target): Add the target op. Also add
213 'supports_qxfer_siginfo'.
214 * target.cc (process_target::qxfer_siginfo): Define.
215 (process_target::supports_qxfer_siginfo): Define.
216
217 Update the derived classes and callers below.
218
219 * server.cc (handle_qxfer_siginfo): Update.
220 (handle_query): Update.
221 * linux-low.cc (linux_target_ops): Update.
222 (linux_process_target::supports_qxfer_siginfo): Define.
223 (linux_xfer_siginfo): Turn into ...
224 (linux_process_target::qxfer_siginfo): ... this.
225 * linux-low.h (class linux_process_target): Update.
226 * lynx-low.cc (lynx_target_ops): Update.
227 * nto-low.cc (nto_target_ops): Update.
228 * win32-low.cc (win32_target_ops): Update.
229
2d0795ee
TBA
2302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
231
232 Turn process_stratum_target's qxfer_osdata op into a method of
233 process_target.
234
235 * target.h (struct process_stratum_target): Remove the target op.
236 (class process_target): Add the target op. Also add
237 'supports_qxfer_osdata'.
238 * target.cc (process_target::qxfer_osdata): Define.
239 (process_target::supports_qxfer_osdata): Define.
240
241 Update the derived classes and callers below.
242
243 * server.cc (handle_qxfer_osdata): Update.
244 (handle_query): Update.
245 * linux-low.cc (linux_target_ops): Update.
246 (linux_process_target::supports_qxfer_osdata): Define.
247 (linux_qxfer_osdata): Turn into ...
248 (linux_process_target::qxfer_osdata): ... this.
249 * linux-low.h (class linux_process_target): Update.
250 * lynx-low.cc (lynx_target_ops): Update.
251 * nto-low.cc (nto_target_ops): Update.
252 * win32-low.cc (win32_target_ops): Update.
253
ea06bbaa
TBA
2542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255
256 Turn process_stratum_target's hostio_last_error op into a
257 method of process_target.
258
259 * target.h (struct process_stratum_target): Remove the target op.
260 (class process_target): Add the target op.
261 * target.cc: Add "hostio.h" to includes.
262 (process_target::hostio_last_error): Define.
263
264 Update the derived classes and callers below.
265
266 * hostio.cc (hostio_error): Update.
267 * linux-low.cc: Remove "hostio.h" from includes.
268 (linux_target_ops): Update.
269 * lynx-low.cc (lynx_target_ops): Update.
270 * nto-low.cc (nto_target_ops): Update.
271 * win32-low.h (class win32_process_target): Update.
272 * win32-low.cc (win32_target_ops): Update.
273 (wince_hostio_last_error): Turn into ...
274 (win32_process_target::hostio_last_error): ... this.
275
6e3fd7e9
TBA
2762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
277
278 Turn process_stratum_target's get_tls_address op into a method of
279 process_target.
280
281 * target.h (struct process_stratum_target): Remove the target op.
282 (class process_target): Add the target op. Also add
283 'supports_get_tls_address'.
284 * target.cc (process_target::get_tls_address): Define.
285 (process_target::supports_get_tls_address): Define.
286
287 Update the derived classes and callers below.
288
289 * server.cc (handle_query): Update.
290 * linux-low.cc (linux_target_ops): Update.
291 (linux_process_target::supports_get_tls_address): Define.
292 (linux_process_target::get_tls_address): Define.
293 * linux-low.h (class linux_process_target): Update.
294 * lynx-low.cc (lynx_target_ops): Update.
295 * nto-low.cc (nto_target_ops): Update.
296 * win32-low.cc (win32_target_ops): Update.
297
5203ae1e
TBA
2982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
299
300 Turn process_stratum_target's read_offsets op into a method of
301 process_target.
302
303 * target.h (struct process_stratum_target): Remove the target op.
304 (class process_target): Add the target op. Also add
305 'supports_read_offsets'.
306 * target.cc (process_target::read_offsets): Define.
307 (process_target::supports_read_offsets): Define.
308
309 Update the derived classes and callers below.
310
311 * server.cc (handle_query): Update.
312 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
313 (linux_target_ops): Update.
314 (linux_process_target::supports_read_offsets): Define.
315 (linux_read_offsets): Turn into ...
316 (linux_process_target::read_offsets): ... this.
317 * linux-low.h (class linux_process_target): Update.
318 * lynx-low.cc (lynx_target_ops): Update.
319 * nto-low.cc (nto_target_ops): Update.
320 * win32-low.cc (win32_target_ops): Update.
321
6eeb5c55
TBA
3222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
323
324 Turn process_stratum_target's stopped_by_watchpoint and
325 stopped_data_address ops into methods of process_target.
326
327 * target.h (struct process_stratum_target): Remove the target ops.
328 (class process_target): Add the target ops.
329 * target.cc (process_target::stopped_by_watchpoint): Define.
330 (process_target::stopped_data_address): Define.
331
332 Update the derived classes and callers below.
333
334 * remote-utils.cc (prepare_resume_reply): Update.
335 * linux-low.cc (linux_target_ops): Update.
336 (linux_stopped_by_watchpoint): Turn into ...
337 (linux_process_target::stopped_by_watchpoint): ... this.
338 (linux_stopped_data_address): Turn into ...
339 (linux_process_target::stopped_data_address): ... this.
340 * linux-low.h (class linux_process_target): Update.
341 * lynx-low.cc (lynx_target_ops): Update.
342 * nto-low.cc (nto_target_ops): Update.
343 (nto_stopped_by_watchpoint): Turn into ...
344 (nto_process_target::stopped_by_watchpoint): ... this.
345 (nto_stopped_data_address): Turn into ...
346 (nto_process_target::stopped_data_address): ... this.
347 * nto-low.h (class nto_process_target): Update.
348 * win32-low.cc (win32_target_ops): Update.
349 (win32_stopped_by_watchpoint): Turn into ...
350 (win32_process_target::stopped_by_watchpoint): ... this.
351 (win32_stopped_data_address): Turn into ...
352 (win32_process_target::stopped_data_address): ... this.
353 * win32-low.h (class win32_process_target): Update.
354
22aa6223
TBA
3552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
356
357 Turn process_stratum_target's supports_hardware_single_step op into
358 a method of process_target.
359
360 * target.h (struct process_stratum_target): Remove the target op.
361 (class process_target): Add the target op.
362 (target_supports_hardware_single_step): Update the macro.
363 (target_can_do_hardware_single_step): Remove declaration.
364 * target.cc (process_target::supports_hardware_single_step): Define.
365 (target_can_do_hardware_single_step): Remove.
366
367 Update the derived classes and callers below.
368
369 * linux-low.h (class linux_process_target): Update.
370 * linux-low.cc (linux_target_ops): Update.
371 (linux_supports_hardware_single_step): Turn into ...
372 (linux_process_target::supports_hardware_single_step): ... this.
373 * lynx-low.h (class lynx_process_target): Update.
374 * lynx-low.cc (lynx_target_ops): Update.
375 (lynx_process_target::supports_hardware_single_step): Define.
376 * nto-low.h (class nto_process_target): Update.
377 * nto-low.cc (nto_target_ops): Update.
378 (nto_process_target::supports_hardware_single_step): Define.
379 * win32-low.h (class win32_process_target): Update.
380 * win32-low.cc (win32_target_ops): Update.
381 (win32_process_target::supports_hardware_single_step): Define.
382
93fe88b2
TBA
3832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
384
385 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
386 ops into methods of process_target.
387
388 * target.h (struct process_stratum_target): Remove the target ops.
389 (class process_target): Add the target ops.
390 (target_stopped_by_hw_breakpoint): Update the macro.
391 (target_supports_stopped_by_hw_breakpoint): Update the macro.
392 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
393 (process_target::supports_stopped_by_hw_breakpoint): Define.
394
395 Update the derived classes and callers below.
396
397 * linux-low.cc (linux_target_ops): Update.
398 (linux_stopped_by_hw_breakpoint): Turn into ...
399 (linux_process_target::stopped_by_hw_breakpoint): ... this.
400 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
401 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
402 * linux-low.h (class linux_process_target): Update.
403 * lynx-low.cc (lynx_target_ops): Update.
404 * nto-low.cc (nto_target_ops): Update.
405 * win32-low.cc (win32_target_ops): Update.
406
84320c4e
TBA
4072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
408
409 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
410 ops into methods of process_target.
411
412 * target.h (struct process_stratum_target): Remove the target ops.
413 (class process_target): Add the target ops.
414 (target_stopped_by_sw_breakpoint): Update the macro.
415 (target_supports_stopped_by_sw_breakpoint): Update the macro.
416 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
417 (process_target::supports_stopped_by_sw_breakpoint): Define.
418
419 Update the derived classes and callers below.
420
421 * linux-low.cc (linux_target_ops): Update.
422 (linux_stopped_by_sw_breakpoint): Turn into ...
423 (linux_process_target::stopped_by_sw_breakpoint): ... this.
424 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
425 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
426 * linux-low.h (class linux_process_target): Update.
427 * lynx-low.cc (lynx_target_ops): Update.
428 * nto-low.cc (nto_target_ops): Update.
429 * win32-low.cc (win32_target_ops): Update.
430
7e0bde70
TBA
4312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432
433 Turn process_stratum_target's insert_point and remove_point ops
434 into methods of process_target.
435
436 * target.h (struct process_stratum_target): Remove the target ops.
437 (class process_target): Add the target ops.
438 * target.cc (process_target::insert_point): Define.
439 (process_target::remove_point): Define.
440
441 Update the derived classes and callers below.
442
443 * mem-break.cc (set_raw_breakpoint_at): Update.
444 (delete_raw_breakpoint): Update.
445 (uninsert_raw_breakpoint): Update.
446 (reinsert_raw_breakpoint): Update.
447 * linux-low.cc (linux_target_ops): Update.
448 (linux_insert_point): Turn into ...
449 (linux_process_target::insert_point): ... this.
450 (linux_remove_point): Turn into ...
451 (linux_process_target::remove_point): ... this.
452 * linux-low.h (class linux_process_target): Update.
453 * lynx-low.cc (lynx_target_ops): Update.
454 * nto-low.cc (nto_target_ops): Update.
455 (nto_insert_point): Turn into ...
456 (nto_process_target::insert_point): ... this.
457 (nto_remove_point): Turn into ...
458 (nto_process_target::remove_point): ... this.
459 * nto-low.h (class nto_process_target): Update.
460 * win32-low.cc (win32_target_ops): Update.
461 (win32_insert_point): Turn into ...
462 (win32_process_target::insert_point): ... this.
463 (win32_remove_point): Turn into ...
464 (win32_process_target::remove_point): ... this.
465 * win32-low.h (class win32_process_target): Update.
466
a2b2297a
TBA
4672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
468
469 Turn process_stratum_target's supports_z_point_type op into a
470 method of process_target.
471
472 * target.h (struct process_stratum_target): Remove the target op.
473 (class process_target): Add the target op.
474 * target.cc (process_target::supports_z_point_type): Define.
475
476 Update the derived classes and callers below.
477
478 * mem-break.cc (z_type_supported): Update.
479 * linux-low.cc (linux_target_ops): Update.
480 (linux_supports_z_point_type): Turn into ...
481 (linux_process_target::supports_z_point_type): ... this.
482 * linux-low.h (class linux_process_target): Update.
483 * lynx-low.cc (lynx_target_ops): Update.
484 * nto-low.cc (nto_target_ops): Update.
485 (nto_supports_z_point_type): Turn into ...
486 (nto_process_target::supports_z_point_type): ... this.
487 * nto-low.h (class nto_process_target): Update.
488 * win32-low.cc (win32_target_ops): Update.
489 (win32_supports_z_point_type): Turn into ...
490 (win32_process_target::supports_z_point_type): ... this.
491 * win32-low.h (class win32_process_target): Update.
492
eac215cc
TBA
4932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
494
495 Turn process_stratum_target's read_auxv op into a method of
496 process_target.
497
498 * target.h (class process_stratum_target): Remove the target op.
499 (struct process_target): Add the target op. Also add
500 'supports_read_auxv'.
501 * target.cc (process_target::read_auxv): Define.
502 (process_target::supports_read_auxv): Define.
503
504 Update the derived classes and callers below.
505
506 * server.cc (handle_qxfer_auxv): Update.
507 (handle_query): Update.
508 * linux-low.cc (linux_target_ops): Update.
509 (linux_process_target::supports_read_auxv): Define.
510 (linux_read_auxv): Turn into ...
511 (linux_process_target::read_auxv): ... this.
512 * linux-low.h (class linux_process_target): Update.
513 * lynx-low.cc (lynx_target_ops): Update.
514 * nto-low.cc (nto_target_ops): Update.
515 (nto_process_target::supports_read_auxv): Define.
516 (nto_read_auxv): Turn into ...
517 (nto_process_target::read_auxv): ... this.
518 * nto-low.h (class nto_process_target): Update.
519 * win32-low.cc (win32_target_ops): Update.
520
eb497a2a
TBA
5212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
522
523 Turn process_stratum_target's request_interrupt op into a method of
524 process_target.
525
526 * target.h (struct process_stratum_target): Remove the target op.
527 (class process_target): Add the target op.
528
529 Update the derived classes and callers below.
530
531 * remote-utils.cc (putpkt_binary_1): Update.
532 (input_interrupt): Update.
533 (getpkt): Update.
534 * server.cc (handle_v_requests): Update.
535 * linux-low.cc (linux_target_ops): Update.
536 (linux_request_interrupt): Turn into ...
537 (linux_process_target::request_interrupt): ... this.
538 * linux-low.h (class linux_process_target): Update.
539 * lynx-low.cc (lynx_target_ops): Update.
540 (lynx_request_interrupt): Turn into ...
541 (lynx_process_target::request_interrupt): ... this.
542 * lynx-low.h (class lynx_process_target): Update.
543 * nto-low.cc (nto_target_ops): Update.
544 (nto_request_interrupt): Turn into ...
545 (nto_process_target::request_interrupt): ... this.
546 * nto-low.h (class nto_process_target): Update.
547 * win32-low.cc (win32_target_ops): Update.
548 (win32_request_interrupt): Turn into ...
549 (win32_process_target::request_interrupt): ... this.
550 * win32-low.h (class win32_process_target): Update.
551
2a31c7aa
TBA
5522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
553
554 Turn process_stratum_target's look_up_symbols op into a method of
555 process_target.
556
557 * target.h (struct process_stratum_target): Remove the target op.
558 (class process_target): Add the target op.
559 * target.cc (process_target::look_up_symbols): Define.
560
561 Update the derived classes and callers below.
562
563 * server.cc (handle_query): Update.
564 * linux-low.cc (linux_target_ops): Update.
565 (linux_look_up_symbols): Turn into ...
566 (linux_process_target::look_up_symbols): ... this.
567 * linux-low.h (class linux_process_target): Update.
568 * lynx-low.cc (lynx_target_ops): Update.
569 * nto-low.cc (nto_target_ops): Update.
570 * win32-low.cc (win32_target_ops): Update.
571
e2558df3
TBA
5722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
573
574 Turn process_stratum_target's read_memory and write_memory
575 ops into methods of process_target.
576
577 * target.h (struct process_stratum_target): Remove the target ops.
578 (class process_target): Add the target ops.
579
580 Update the derived classes and callers below.
581
582 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
583 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
584 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
585 (arm_get_syscall_trapinfo): Update.
586 * linux-cris-low.cc (cris_breakpoint_at): Update.
587 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
588 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
589 * linux-mips-low.cc (mips_breakpoint_at): Update.
590 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
591 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
592 * linux-sh-low.cc (sh_breakpoint_at): Update.
593 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
594 (sparc_store_gregset_from_stack): Update.
595 (sparc_breakpoint_at): Update.
596 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
597 * linux-tile-low.cc (tile_breakpoint_at): Update.
598 * linux-x86-low.cc (x86_breakpoint_at): Update.
599 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
600 * mem-brea.cc (insert_memory_breakpoint): Update.
601 (validate_inserted_breakpoint): Update.
602 * target.cc (read_inferior_memory): Update.
603 (target_write_memory): Update.
604 * linux-low.cc (linux_target_ops): Update.
605 (linux_read_memory): Make a wrapper around the read_memory target
606 op call.
607 (linux_process_target::read_memory): Rename from linux_read_memory.
608 (linux_write_memory): Turn into ...
609 (linux_process_target::write_memory): ... this.
610 * linux-low.h (class linux_process_target): Update.
611 * lynx-low.cc (lynx_target_ops): Update.
612 (lynx_read_memory): Turn into ...
613 (lynx_process_target::read_memory): ... this.
614 (lynx_write_memory): Turn into ...
615 (lynx_process_target::write_memory): ... this.
616 * lynx-low.h (class lynx_process_target): Update.
617 * nto-low.cc (nto_target_ops): Update.
618 (nto_read_memory): Turn into ...
619 (nto_process_target::read_memory): ... this.
620 (nto_write_memory): Turn into ...
621 (nto_process_target::write_memory): ... this.
622 * nto-low.h (class nto_process_target): Update.
623 * win32-low.cc (win32_target_ops): Update.
624 (win32_read_inferior_memory): Turn into ...
625 (win32_process_target::read_memory): ... this.
626 (win32_write_inferior_memory): Turn into ...
627 (win32_process_target::write_memory): ... this.
628 * win32-low.h (class win32_process_target): Update.
629
79b44087
TBA
6302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
631
632 Turn process_stratum_target's prepare_to_access_memory and
633 done_accessing_memory ops into methods of process_target.
634
635 * target.h (struct process_stratum_target): Remove the target ops.
636 (class process_target): Add the target ops.
637 * target.cc (process_target::prepare_to_access_memory): Define.
638 (process_target::done_accessing_memory): Define.
639 (prepare_to_access_memory): Update.
640 (done_accessing_memory): Update.
641
642 Update the derived classes and callers below.
643
644 * linux-low.cc (linux_target_ops): Update.
645 (linux_prepare_to_access_memory): Turn into ...
646 (linux_process_target::prepare_to_access_memory): ... this.
647 (linux_done_accessing_memory): Turn into ...
648 (linux_process_target::done_accessing_memory): ... this.
649 * linux-low.h (class linux_process_target): Update.
650 * lynx-low.cc (lynx_target_ops): Update.
651 * nto-low.cc (nto_target_ops): Update.
652 * win32-low.cc (win32_target_ops): Update.
653
a5a4d4cd
TBA
6542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
655
656 Turn process_stratum_target's fetch_registers and store_registers
657 ops into methods of process_target.
658
659 * target.h (struct process_stratum_target): Remove the target ops.
660 (class process_target): Add the target ops.
661 (fetch_inferior_registers): Update the macro.
662 (store_inferior_registers): Update the macro.
663
664 Update the derived classes and callers below.
665
666 * linux-low.cc (linux_target_ops): Update.
667 (linux_fetch_registers): Turn into ...
668 (linux_process_target::fetch_registers): ... this.
669 (linux_store_registers): Turn into ...
670 (linux_process_target::store_registers): ... this.
671 * linux-low.h (class linux_process_target): Update.
672 * lynx-low.cc (lynx_target_ops): Update.
673 (lynx_fetch_registers): Turn into ...
674 (lynx_process_target::fetch_registers): ... this.
675 (lynx_store_registers): Turn into ...
676 (lynx_process_target::store_registers): ... this.
677 * lynx-low.h (class lynx_process_target): Update.
678 * nto-low.cc (nto_target_ops): Update.
679 (nto_fetch_registers): Turn into ...
680 (nto_process_target::fetch_registers): ... this.
681 (nto_store_registers): Turn into ...
682 (nto_process_target::store_registers): ... this.
683 * nto-low.h (class nto_process_target): Update.
684 * win32-low.cc (win32_target_ops): Update.
685 (win32_fetch_inferior_registers): Turn into ...
686 (win32_process_target::fetch_registers): ... this.
687 (win32_store_inferior_registers): Turn into ...
688 (win32_process_target::store_registers): ... this.
689 * win32-low.h (class win32_process_target): Update.
690
6532e7e3
TBA
6912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692
693 Turn process_stratum_target's wait op into a method of
694 process_target.
695
696 * target.h (struct process_stratum_target): Remove the target op.
697 (class process_target): Add the target op.
698
699 Update the derived classes and callers below.
700
701 * target.cc (target_wait): Update.
702 * linux-low.cc (linux_target_ops): Update.
703 (linux_wait): Turn into ...
704 (linux_process_target::wait): ... this.
705 * linux-low.h (class linux_process_target): Update.
706 * lynx-low.cc (lynx_target_ops): Update.
707 (lynx_wait): Turn into ...
708 (lynx_process_target::wait): ... this.
709 * lynx-low.h (class lynx_process_target): Update.
710 * nto-low.cc (nto_target_ops): Update.
711 (nto_wait): Turn into ...
712 (nto_process_target::wait): ... this.
713 * nto-low.h (class nto_process_target): Update.
714 * win32-low.cc (win32_target_ops): Update.
715 (win32_wait): Turn into ...
716 (win32_process_target::wait): ... this.
717 (do_initial_child_stuff): Update.
718 * win32-low.h (class win32_process_target): Update.
719
0e4d7e35
TBA
7202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
721
722 Turn process_stratum_target's resume op into a method of
723 process_target.
724
725 * target.h (struct process_stratum_target): Remove the target op.
726 (class process_target): Add the target op.
727
728 Update the derived classes and callers below.
729
730 * server.cc (resume): Update.
731 * target.cc (target_stop_and_wait): Update.
732 (target_continue_no_signal): Update.
733 (target_continue): Update.
734 * linux-low.cc (linux_target_ops): Update.
735 (linux_resume): Turn into ...
736 (linux_process_target::resume): ... this.
737 * linux-low.h (class linux_process_target): Update.
738 * lynx-low.cc (lynx_target_ops): Update.
739 (lynx_resume): Turn into ...
740 (lynx_process_target::resume): ... this.
741 * lynx-low.h (class lynx_process_target): Update.
742 * nto-low.cc (nto_target_ops): Update.
743 (nto_resume): Turn into ...
744 (nto_process_target::resume): ... this.
745 * nto-low.h (class nto_process_target): Update.
746 * win32-low.cc (win32_target_ops): Update.
747 (win32_resume): Turn into ...
748 (win32_process_target::resume): ... this.
749 (win32_process_target::detach): Update.
750 (do_initial_child_stuff): Update.
751 * win32-low.h (class win32_process_target): Update.
752
13d3d99b
TBA
7532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
754
755 Turn process_stratum_target's thread_alive op into a method of
756 process_target.
757
758 * target.h (struct process_stratum_target): Remove the target op.
759 (class process_target): Add the target op.
760 (mythread_alive): Update the macro.
761
762 Update the derived classes and callers below.
763
764 * linux-low.cc (linux_target_ops): Update.
765 (linux_thread_alive): Turn into ...
766 (linux_process_target::thread_alive): ... this.
767 (wait_for_sigstop): Update.
768 * linux-low.h (class linux_process_target): Update.
769 * lynx-low.cc (lynx_target_ops): Update.
770 (lynx_thread_alive): Turn into ...
771 (lynx_process_target::thread_alive): ... this.
772 * lynx-low.h (class lynx_process_target): Update.
773 * nto-low.cc (nto_target_ops): Update.
774 (nto_thread_alive): Turn into ...
775 (nto_process_target::thread_alive): ... this.
776 * nto-low.h (class nto_process_target): Update.
777 * win32-low.cc (win32_target_ops): Update.
778 (win32_thread_alive): Turn into ...
779 (win32_process_target::thread_alive): ... this.
780 * win32-low.h (class win32_process_target): Update.
781
95a49a39
TBA
7822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
783
784 Turn process_stratum_target's join op into a method of
785 process_target.
786
787 * target.h (struct process_stratum_target): Remove the target op.
788 (class process_target): Add the target op.
789 (join_inferior): Update the macro.
790
791 Update the derived classes and callers below.
792
793 * linux-low.cc (linux_target_ops): Update.
794 (linux_join): Turn into ...
795 (linux_process_target::join): ... this.
796 * linux-low.h (class linux_process_target): Update.
797 * lynx-low.cc (lynx_target_ops): Update.
798 (lynx_join): Turn into ...
799 (lynx_process_target::join): ... this.
800 * lynx-low.h (class lynx_process_target): Update.
801 * nto-low.cc (nto_target_ops): Update.
802 (nto_process_target::join): Define.
803 * nto-low.h (class nto_process_target): Update.
804 * win32-low.cc (win32_target_ops): Update.
805 (win32_join): Turn into ...
806 (win32_process_target::join): ... this.
807 * win32-low.h (class win32_process_target): Update.
808
8adb37b9
TBA
8092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
810
811 Turn process_stratum_target's mourn op into a method of
812 process_target.
813
814 * target.h (struct process_stratum_target): Remove the target op.
815 (class process_target): Add the target op.
816
817 Update the derived classes and callers below.
818
819 * target.cc (target_mourn_inferior): Update.
820 * linux-low.cc (linux_target_ops): Update.
821 (linux_mourn): Turn into ...
822 (linux_process_target::mourn): ... this.
823 (handle_extended_wait): Update.
824 (linux_process_target::kill): Update.
825 (linux_process_target::detach): Update.
826 * linux-low.h (class linux_process_target): Update.
827 * lynx-low.cc (lynx_target_ops): Update.
828 (lynx_mourn): Turn into ...
829 (lynx_process_target::mourn): ... this.
830 * lynx-low.h (class lynx_process_target): Update.
831 * nto-low.cc (nto_target_ops): Update.
832 (nto_mourn): Turn into ...
833 (nto_process_target::mourn): ... this.
834 * nto-low.h (class nto_process_target): Update.
835 * win32-low.cc (win32_target_ops): Update.
836 (win32_mourn): Turn into ...
837 (win32_process_target::mourn): ... this.
838 * win32-low.h (class win32_process_target): Update.
839
9061c9cf
TBA
8402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 Turn process_stratum_target's detach op into a method of
843 process_target.
844
845 * target.h (struct process_stratum_target): Remove the target op.
846 (class process_target): Add the target op.
847 (detach_inferior): Update the macro.
848
849 Update the derived classes and callers below.
850
851 * linux-low.cc (linux_target_ops): Update.
852 (linux_detach): Turn into ...
853 (linux_process_target::detach): ... this.
854 * linux-low.h (class linux_process_target): Update.
855 * lynx-low.cc (lynx_target_ops): Update.
856 (lynx_detach): Turn into ...
857 (lynx_process_target::detach): ... this.
858 * lynx-low.h (class lynx_process_target): Update.
859 * nto-low.cc (nto_target_ops): Update.
860 (nto_detach): Turn into ...
861 (nto_process_target::detach): ... this.
862 * nto-low.h (class nto_process_target): Update.
863 * win32-low.cc (win32_target_ops): Update.
864 (win32_detach): Turn into ...
865 (win32_process_target::detach): ... this.
866 * win32-low.h (class win32_process_target): Update.
867
c6885a57
TBA
8682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
869
870 Turn process_stratum_target's kill op into a method of
871 process_target.
872
873 * target.h (struct process_stratum_target): Remove the target op.
874 (class process_target): Add the target op.
875
876 Update the derived classes and callers below.
877
878 * target.cc (kill_inferior): Update.
879 * linux-low.cc (linux_target_ops): Update.
880 (linux_kill): Turn into ...
881 (linux_process_target::kill): ... this.
882 * linux-low.h (class linux_process_target): Update.
883 * lynx-low.cc (lynx_target_ops): Update.
884 (lynx_kill): Turn into ...
885 (lynx_process_target::kill): ... this.
886 * lynx-low.h (class lynx_process_target): Update.
887 * nto-low.cc (nto_target_ops): Update.
888 (nto_kill): Turn into ...
889 (nto_process_target::kill): ... this.
890 * nto-low.h (class nto_process_target): Update.
891 * win32-low.cc (win32_target_ops): Update.
892 (win32_kill): Turn into ...
893 (win32_process_target::kill): ... this.
894 * win32-low.h (class win32_process_target): Update.
895
ef03dad8
TBA
8962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
897
898 Turn process_stratum_target's attach op into a method of
899 process_target.
900
901 * target.h (struct process_stratum_target): Remove the target op.
902 (class process_target): Add the target op.
903 (myattach): Update the macro.
904
905 Update the derived classes and callers below.
906
907 * linux-low.cc (linux_target_ops): Update.
908 (linux_attach): Turn into ...
909 (linux_process_target::attach): ... this.
910 * linux-low.h (class linux_process_target): Update.
911 * lynx-low.cc (lynx_target_ops): Update.
912 (lynx_attach): Turn into ...
913 (lynx_process_target::attach): ... this.
914 * lynx-low.h (class lynx_process_target): Update.
915 * nto-low.cc (nto_target_ops): Update.
916 (nto_attach): Turn into ...
917 (nto_process_target::attach): ... this.
918 * nto-low.h (class nto_process_target): Update.
919 * win32-low.cc (win32_target_ops): Update.
920 (win32_attach): Turn into ...
921 (win32_process_target::attach): ... this.
922 * win32-low.h (class win32_process_target): Update.
923
6dee9afb
TBA
9242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
925
926 Turn process_stratum_target's post_create_inferior op into a method
927 of process_target.
928
929 * target.h (struct process_stratum_target): Remove the target op.
930 (class process_target): Add the target op.
931 (target_post_create_inferior): Update the macro.
932 * target.cc (process_target::post_create_inferior): Define.
933
934 Update the derived classes and callers below.
935
936 * linux-low.cc (linux_target_ops): Update.
937 (linux_post_create_inferior): Turn into ...
938 (linux_process_target::post_create_inferior): ... this.
939 * linux-low.h (class linux_process_target): Update.
940 * lynx-low.cc (lynx_target_ops): Update.
941 * nto-low.cc (nto_target_ops): Update.
942 * win32-low.cc (win32_target_ops): Update.
943
15295543
TBA
9442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
945
946 Turn process_stratum_target's create_inferior op into a method of
947 process_target.
948
949 * target.h (struct process_stratum_target): Remove the target op.
950 (class process_target): Add the target op.
951 (create_inferior): Rename the macro to ...
952 (target_create_inferior): ... this.
953
954 Update the derived classes and callers below.
955
956 * server.cc (handle_v_run): Update.
957 (captured_main): Update.
958 (process_serial_event): Update.
959 * linux-low.cc (linux_target_ops): Update.
960 (linux_create_inferior): Turn into ...
961 (linux_process_target::create_inferior): ... this.
962 * linux-low.h (class linux_process_target): Update.
963 * lynx-low.cc (lynx_target_ops): Update.
964 (lynx_create_inferior): Turn into ...
965 (lynx_process_target::create_inferior): ... this.
966 * lynx-low.h (class lynx_process_target): Update.
967 * nto-low.cc (nto_target_ops): Update.
968 (nto_create_inferior): Turn into ...
969 (nto_process_target::create_inferior): ... this.
970 * nto-low.h (class nto_process_target): Update.
971 * win32-low.cc (win32_target_ops): Update.
972 (win32_create_inferior): Turn into ...
973 (win32_process_target::create_inferior): ... this.
974 * win32-low.h (class win32_process_target): Update.
975
5ef9273d
TBA
9762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977
978 * target.h (class process_target): New class definition.
979 (struct process_stratum_target) <pt>: New field with type
980 'process_target*'.
981 * linux-low.h (class linux_process_target): Define as a derived
982 class of 'process_target'.
983 * linux-low.cc (linux_target_ops): Add a linux_process_target*
984 as the 'pt' field.
985 * lynx-low.h (class lynx_process_target): Define as a derived
986 class of 'process_target'.
987 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
988 as the 'pt' field.
989 * nto-low.h (class nto_process_target): Define as a derived
990 class of 'process_target'.
991 * nto-low.cc (nto_target_ops): Add an nto_process_target*
992 as the 'pt' field.
993 * win32-low.h (class win32_process_target): Define as a derived
994 class of 'process_target'.
995 * win32-low.cc (win32_target_ops): Add a win32_process_target*
996 as the 'pt' field.
997
9f1528a1
AB
9982020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
999
1000 * configure: Regenerate.
1001
bf84f706
MR
10022020-02-19 Maciej W. Rozycki <macro@wdc.com>
1003 Andrew Burgess <andrew.burgess@embecosm.com>
1004
1005 * linux-riscv-low.cc: New file.
1006 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1007 and nat/riscv-linux-tdesc.c.
1008 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1009 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1010 Define.
1011
1a627e7e
TT
10122020-02-14 Tom Tromey <tom@tromey.com>
1013
1014 * acinclude.m4: Don't include acx_configure_dir.m4.
1015 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1016 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1017 (all, install-only, uninstall, clean-info, clean)
1018 (maintainer-clean): Don't recurse.
1019 (subdir_do, all-lib): Remove.
1020 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1021 (GNULIB_H): Remove.
1022 (generated_files): Update.
1023 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1024 * configure: Rebuild.
1025 * configure.ac: Don't configure gnulib or libiberty.
1026 (GNULIB): Update.
1027
a9b34532
EZ
10282020-02-14 Eli Zaretskii <eliz@gnu.org>
1029
1030 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1031 preparing the command line for CreateProcess.
1032 (win32_create_inferior): Reflect the program name in debugging
1033 output that shows the process and its command line.
1034
feacfcac
SM
10352020-02-13 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * Makefile.in: Rename source files from .c to .cc.
1038 * %.c: Rename to %.cc.
1039 * configure.ac: Rename server.c to server.cc.
1040 * configure: Re-generate.
1041
06b3c5bd
SM
10422020-02-13 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1045
052793ad
HD
10462020-02-12 Hannes Domani <ssbssa@yahoo.de>
1047
1048 * win32-low.c (win32_create_inferior): Set signal_pid.
1049
f20e3e82
MR
10502020-02-12 Maciej W. Rozycki <macro@wdc.com>
1051 Pedro Alves <palves@redhat.com>
1052
1053 Skip building gdbserver in a cross-configuration.
1054 * configure.srv: Set $gdbserver_host depending on whether $target
1055 is $host. Use $gdbserver_host instead of $host.
1056
8ddd8e0e
SM
10572020-02-11 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * configure: Re-generate.
1060
898e7f60
SM
10612020-02-11 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * configure: Re-generate.
1064
58df732b
SM
10652020-02-11 Simon Marchi <simon.marchi@efficios.com>
1066
1067 * acinclude.m4: Update warning.m4 path.
1068
7928d571
HD
10692020-02-09 Hannes Domani <ssbssa@yahoo.de>
1070
1071 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1072 (handle_exception): Set siginfo_er.
1073 (win32_xfer_siginfo): New function.
1074
919adfe8
TT
10752020-02-07 Tom Tromey <tom@tromey.com>
1076 Pedro Alves <palves@redhat.com>
1077
1078 * README: Update build documentation.
1079 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1080 host, not target.
1081 * configure.ac: Update paths.
1082 * configure: Rebuild.
1083 * acinclude.m4: Update paths.
1084 * Makefile.in: Update include paths.
1085 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1086 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1087 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1088 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1089 (%-generated.c): Update paths.
1090 * Move entire directory from ../gdb/gdbserver.
1091
287c844a
MR
10922020-01-29 Maciej W. Rozycki <macro@wdc.com>
1093
1094 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1095
548a204f
PFC
10962020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1097
1098 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1099 assignment instead of srv_linux_obj.
1100
a2236a08
HD
11012020-01-28 Hannes Domani <ssbssa@yahoo.de>
1102
1103 * server.c (handle_qxfer_libraries): Write segment-address with
1104 paddress.
1105
bdaed379
HD
11062020-01-24 Hannes Domani <ssbssa@yahoo.de>
1107
1108 * Makefile.in (install-strip): New target.
1109 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1110 * aclocal.m4: Regenerate.
1111 * configure: Regenerate.
1112 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1113
42cd72aa
MR
11142020-01-24 Maciej W. Rozycki <macro@wdc.com>
1115
1116 * Makefile.in (SFILES): Adjust paths to point to real files.
1117 (OBS): Move waitstatus.o to target/waitstatus.o.
1118 (TAGS): Transform paths appropriately.
1119 (%.o): Rename to...
1120 (nat/%.o): ... this pattern rule.
1121 (%.o): Rename to...
1122 (target/%.o): ... this pattern rule.
1123 * configure.srv: Adjust paths throughout to include nat/ prefix
1124 with the revant files.
1125 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1126 * configure: Regenerate.
1127
42ba50ec
MR
11282020-01-24 Maciej W. Rozycki <macro@wdc.com>
1129
1130 * Makefile.in (TAGS): Remove config files from the recipe.
1131
05ea2a05
TT
11322020-01-14 Tom Tromey <tom@tromey.com>
1133
1134 * configure: Rebuild.
1135 * configure.ac: Remove any checks that were added to common.m4.
1136 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1137 lib-link.m4.
1138
01027315
TT
11392020-01-14 Tom Tromey <tom@tromey.com>
1140
1141 * server.h: Include config.h.
1142 * gdbreplay.c: Include config.h.
1143 * configure: Rebuild.
1144 * configure.ac: Don't source common.host.
1145 * acinclude.m4: Update path.
1146 * Makefile.in (INCSUPPORT): New variable.
1147 (INCLUDE_CFLAGS): Add INCSUPPORT.
1148 (SFILES): Update paths.
1149 (version-generated.c): Update path to create-version.sh.
1150 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1151
b2ceabe8
TT
11522020-01-14 Tom Tromey <tom@tromey.com>
1153
1154 * configure.ac (LIBS): Use WIN32APILIBS.
1155 (USE_WIN32API): Don't define.
1156 * configure: Rebuild.
1157
25c51f71
TT
11582020-01-14 Tom Tromey <tom@tromey.com>
1159
1160 * configure: Rebuild.
1161
c0bd321d
SM
11622020-01-13 Simon Marchi <simon.marchi@efficios.com>
1163
1164 * Makefile.in (%-generated.c): Remove rule for files from
1165 regformats/i386.
1166
bb564c58
SM
11672020-01-13 Simon Marchi <simon.marchi@efficios.com>
1168
1169 * configure: Re-generate.
1170
6e37c371
SM
11712020-01-13 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1174 Define to static.
1175 * tracepoint.c (stop_tracing, flush_trace_buffer,
1176 about_to_request_buffer_space, get_trace_state_variable_value,
1177 set_trace_state_variable_value, gdb_collect): Add declaration.
1178
df4a0200
SM
11792020-01-13 Simon Marchi <simon.marchi@efficios.com>
1180
1181 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1182 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1183 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1184 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1185 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1186 static.
1187
89e94ec9
SM
11882020-01-13 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * inferiors.c: Include gdbsupport/common-inferior.h.
1191
2552728a
SM
11922020-01-13 Simon Marchi <simon.marchi@efficios.com>
1193
1194 * hostio-errno.c: Include hostio.h.
1195
4025fa09
SM
11962020-01-13 Simon Marchi <simon.marchi@efficios.com>
1197
1198 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1199 prerequisite.
1200
c0b0a142
SM
12012020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1202
1203 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1204 * linux-arm-tdesc.h: Include arch/arm.h.
1205
bb1183e2
SM
12062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1207
1208 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1209
f5df0b5f
SM
12102020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1211
1212 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1213 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1214
5b6d1e4f
PA
12152020-01-10 Pedro Alves <palves@redhat.com>
1216
1217 * fork-child.c (post_fork_inferior): Pass target down to
1218 startup_inferior.
1219 * inferiors.c (switch_to_thread): Add process_stratum_target
1220 parameter.
1221 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1222 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1223 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1224 * remote-utils.c (prepare_resume_reply): Pass the target to
1225 switch_to_thread.
1226 * target.c (the_target): Now a process_stratum_target.
1227 (done_accessing_memory): Pass the target to switch_to_thread.
1228 (set_target_ops): Ajust to use process_stratum_target.
1229 * target.h (struct target_ops): Rename to ...
1230 (struct process_stratum_target): ... this.
1231 (the_target, set_target_ops): Adjust.
1232 (prepare_to_access_memory): Adjust comment.
1233 * win32-low.c (child_xfer_memory): Adjust to use
1234 process_stratum_target.
1235 (win32_target_ops): Now a process_stratum_target.
1236
559e7e50
EZ
12372020-01-06 Eli Zaretskii <eliz@gnu.org>
1238 Pedro Alves <palves@redhat.com>
1239
1240 * win32-low.c (get_child_debug_event): Extract the fatal exception
1241 from the exit status and convert to the equivalent Posix signal
1242 number.
1243 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1244 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1245
48189bec
HD
12462020-01-01 Hannes Domani <ssbssa@yahoo.de>
1247
1248 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1249
5dd8bf88
JB
12502020-01-01 Joel Brobecker <brobecker@adacore.com>
1251
1252 * server.c (gdbserver_version): Change copyright year to 2020.
1253 * gdbreplay.c (gdbreplay_version): Likewise.
1254
0ad6b8ee
CB
12552019-12-19 Christian Biesinger <cbiesinger@google.com>
1256
1257 * configure: Regenerate.
1258 * configure.ac: Quote variable arguments of test.
1259
1ee7b812
BE
12602019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1261
1262 * Makefile.in: Fix build with GNU Make 3.81
1263
d9fa87f4
TT
12642019-12-16 Tom Tromey <tromey@adacore.com>
1265
1266 * server.c (get_exec_file): Constify result.
1267
ab7d13f0
CB
12682019-12-10 Christian Biesinger <cbiesinger@google.com>
1269
1270 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1271 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1272 * config.in: Regenerate.
1273 * configure: Regenerate.
1274 * configure.ac: Don't check for strerror.
1275 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1276 Call safe_strerror instead of strerror.
1277 * server.h (strerror): Remove this now-unnecessary declaration.
1278 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1279 strerror.
1280 (gdb_agent_helper_thread): Likewise.
1281 * utils.c (perror_with_name): Likewise.
1282
4da8c3a8
TT
12832019-11-26 Tom Tromey <tom@tromey.com>
1284
1285 * configure, config.in: Rebuild.
1286
21987b9c
TT
12872019-11-26 Tom Tromey <tom@tromey.com>
1288
1289 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1290 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1291 gdb_sigmask.
1292 * configure, config.in: Rebuild.
1293
5e030278
TT
12942019-11-26 Tom Tromey <tom@tromey.com>
1295
1296 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1297 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1298 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1299 * acinclude.m4: Include ax_pthread.m4.
1300 * config.in, configure: Rebuild.
1301
6d91ce9a
CB
13022019-11-26 Christian Biesinger <cbiesinger@google.com>
1303
1304 * debug.c (debug_set_output): Call safe_strerror instead of
1305 strerror.
1306 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1307 (linux_kill_one_lwp): Likewise.
1308 (linux_detach_one_lwp): Likewise.
1309 (linux_wait_for_event_filtered): Likewise.
1310 (store_register): Likewise.
1311 * lynx-low.c (lynx_attach): Likewise.
1312 * mem-break.c (insert_memory_breakpoint): Likewise.
1313 (remove_memory_breakpoint): Likewise.
1314 (delete_fast_tracepoint_jump): Likewise.
1315 (set_fast_tracepoint_jump): Likewise.
1316 (uninsert_fast_tracepoint_jumps_at): Likewise.
1317 (reinsert_fast_tracepoint_jumps_at): Likewise.
1318 * nto-low.c (nto_xfer_memory): Likewise.
1319 (nto_resume): Likewise.
1320
6cdd651f
LM
13212019-11-20 Luis Machado <luis.machado@linaro.org>
1322
1323 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1324 instead of register count.
1325 * tdesc.c (tdesc_contains_feature): New function.
1326 * tdesc.h (tdesc_contains_feature): New prototype.
1327
cd850b40
CB
13282019-11-15 Christian Biesinger <cbiesinger@google.com>
1329
1330 * Makefile.in: Add safe-strerror.c.
1331 * configure: Regenerate.
1332 * configure.ac: Don't source common.host.
1333
5abebf3c
CB
13342019-11-15 Christian Biesinger <cbiesinger@google.com>
1335
1336 * config.in: Regenerate.
1337 * configure: Regenerate.
1338
e06f3d6e
AB
13392019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * ax.c (ax_printf): Handle size_t_arg.
1342
ca3a04f6
CB
13432019-11-06 Christian Biesinger <cbiesinger@google.com>
1344
1345 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1346 * mi/mi-main.c (output_cores): Likewise.
1347 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1348 (linux_xfer_osdata_modules): Likewise.
1349 * remote.c (register_remote_support_xml): Likewise.
1350 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1351 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1352
e48f6033
CB
13532019-11-01 Christian Biesinger <cbiesinger@google.com>
1354
1355 * configure: Regenerate.
1356 * configure.ac: Remove check for strerror_r.
1357
e7e97a2e
CB
13582019-10-31 Christian Biesinger <cbiesinger@google.com>
1359
1360 * config.in: Regenerate.
1361 * configure: Regenerate.
1362 * configure.ac: Also check for strerror_r.
1363
75cafaa6
CB
13642019-10-31 Christian Biesinger <cbiesinger@google.com>
1365
1366 * ax.h (debug_agent): Remove duplicate declaration.
1367
30baf67b
TV
13682019-10-26 Tom de Vries <tdevries@suse.de>
1369
1370 * linux-aarch64-low.c: Fix typos in comments.
1371 * linux-arm-low.c: Same.
1372 * linux-low.c: Same.
1373 * linux-ppc-low.c: Same.
1374 * proc-service.c: Same.
1375 * regcache.h: Same.
1376 * server.c: Same.
1377 * tracepoint.c: Same.
1378 * win32-low.c: Same.
1379
52c64cf7
TT
13802019-10-25 Tom Tromey <tromey@adacore.com>
1381
1382 * utils.c (xstrdup): Remove.
1383
c12d372d
TT
13842019-10-23 Tom Tromey <tom@tromey.com>
1385
1386 * configure, config.in: Rebuild.
1387
4d0b984b
TT
13882019-10-23 Tom Tromey <tom@tromey.com>
1389
1390 * configure: Rebuild.
1391 * acinclude.m4: Use m4_include, not sinclude.
1392
c5adaa19
TT
13932019-10-17 Tom Tromey <tromey@adacore.com>
1394
1395 * configure: Rebuild.
1396 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1397 in AC_CONFIG_FILES invocation.
1398 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1399 invocation.
1400
fec4e896
CB
14012019-10-16 Christian Biesinger <cbiesinger@google.com>
1402
1403 * server.c: Include xml-builtin.h.
1404 (get_xml_features): Don't declare xml_builtins here.
1405
00975ff6
AB
14062019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * Makefile.in: Remove references to vec-ipa.o.
1409
0dc32745
AB
14102019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * Makefile.in: Remove references to vec.c.
1413
3e6ec53a
CB
14142019-10-02 Christian Biesinger <cbiesinger@google.com>
1415
1416 * server.c (server_waiting): Change to bool.
1417 (extended_protocol): Likewise.
1418 (response_needed): Likewise.
1419 (exit_requested): Likewise.
1420 (run_once): Likewise.
1421 (report_no_resumed): Likewise.
1422 (non_stop): Likewise.
1423 (disable_packet_vCont): Likewise.
1424 (disable_packet_Tthread): Likewise.
1425 (disable_packet_qC): Likewise.
1426 (disable_packet_qfThreadInfo): Likewise.
1427 (handle_general_set): Update.
1428 (handle_detach): Update.
1429 (handle_monitor_command): Update.
1430 (handle_query): Update.
1431 (captured_main): Update.
1432 (process_serial_event): Update.
1433 * server.h (server_waiting): Change to bool.
1434 (disable_packet_vCont): Likewise.
1435 (disable_packet_Tthread): Likewise.
1436 (disable_packet_qC): Likewise.
1437 (disable_packet_qfThreadInfo): Likewise.
1438 (run_once): Likewise.
1439 (non_stop): Likewise.
1440 * target.c (target_stop_and_wait): Update.
1441
80fd2826
TT
14422019-10-02 Tom Tromey <tromey@adacore.com>
1443
1444 * Makefile.in (SFILES): Add common-inferior.c.
1445 (OBS): Add common-inferior.o.
1446 * server.c (startup_with_shell): Don't define.
1447
46f29a9a
AB
14482019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 * linux-low.c (linux_low_read_btrace): Update for change to
1451 std::vector.
1452
f9d949fb
CB
14532019-09-20 Christian Biesinger <cbiesinger@google.com>
1454
1455 * debug.c (debug_threads): Remove comment in favor of the header.
1456 * debug.h (using_threads): Add declaration.
1457 (debug_threads): Add comment.
1458 * linux-aarch64-low.c: Include debug.h and remove declaration of
1459 debug_threads.
1460 * nto-low.c: Likewise.
1461 * remote-utils.c: Likewise.
1462 * thread-db.c: Likewise.
1463
abf516c6
UW
14642019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1465
1466 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1467 and powerpc-cell64l-ipa.o.
1468 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1469 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1470 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1471 (spu*-*-*): Remove.
1472
1473 * spu-low.c: Remove file.
1474
1475 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1476 (parse_spufs_run): Remove.
1477 (ppc_get_pc): Remove Cell/B.E. support.
1478 (ppc_set_pc): Likewise.
1479 (ppc_breakpoint_at): Likewise.
1480 (ppc_arch_setup): Likewise.
1481 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1482 tdesc_powerpc_cell32l.
1483 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1484 or init_registers_powerpc_cell32l.
1485 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1486 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1487 or init_registers_powerpc_cell32l.
1488 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1489 (init_registers_powerpc_cell32l): Remove prototype.
1490 (init_registers_powerpc_cell64l): Likewise.
1491
1492 * target.h (struct target_ops): Remove qxfer_spu member.
1493 * server.c (handle_qxfer_spu): Remove.
1494 (qxfer_packets): Remove entry for "spu".
1495 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1496 * linux-low.c (SPUFS_MAGIC): Remove.
1497 (spu_enumerate_spu_ids): Remove.
1498 (linux_qxfer_spu): Remove.
1499 (linux_target_ops): Remove qxfer_spu member.
1500 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1501 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1502 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1503
2d41fa11
SDJ
15042019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1505
1506 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1507 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1508 * config.in: Regenerate.
1509 * configure: Regenerate.
1510
d59b55f0
TT
15112019-08-15 Tom Tromey <tromey@adacore.com>
1512
1513 * target.c (target_write_memory): Use gdb::byte_vector.
1514
4196ab2a
TT
15152019-08-15 Tom Tromey <tromey@adacore.com>
1516
1517 * tracepoint.c (write_inferior_data_pointer)
1518 (write_inferior_integer, write_inferior_int8)
1519 (write_inferior_uinteger, m_tracepoint_action_download)
1520 (r_tracepoint_action_download, x_tracepoint_action_download)
1521 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1522 (download_agent_expr, download_tracepoint_1)
1523 (download_trace_state_variables, upload_fast_traceframes): Update.
1524 * server.c (gdb_write_memory): Update.
1525 * remote-utils.c (relocate_instruction): Update.
1526 * proc-service.c (ps_pdwrite): Update.
1527 * mem-break.c (remove_memory_breakpoint)
1528 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1529 (uninsert_fast_tracepoint_jumps_at)
1530 (reinsert_fast_tracepoint_jumps_at): Update.
1531 * linux-x86-low.c (append_insns)
1532 (i386_install_fast_tracepoint_jump_pad)
1533 (amd64_write_goto_address, i386_write_goto_address): Update.
1534 * linux-s390-low.c (append_insns, s390_write_goto_address):
1535 Update.
1536 * linux-ppc-low.c (ppc_relocate_instruction)
1537 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1538 (ppc_write_goto_address): Update.
1539 * linux-aarch64-low.c (append_insns): Update.
1540 * target.h (struct target_ops): Update.
1541 (write_inferior_memory): Don't declare.
1542 * target.c (target_write_memory): Rename from
1543 write_inferior_memory. Remove old target_write_memory.
1544
c6778d00
TT
15452019-08-15 Tom Tromey <tromey@adacore.com>
1546
1547 * target.c (write_inferior_memory): Use std::vector.
1548
404f2902
FCE
15492019-08-06 Frank Ch. Eigler <fche@redhat.com>
1550
1551 PR build/24886
1552 * configure.ac: Drop enable-libmcheck support.
1553 * configure, config.in: Rebuild.
1554 * acinclude.m4: Don't include it.
1555
4c5aa8e0
AH
15562019-07-19 Alan Hayward <alan.hayward@arm.com>
1557
1558 * configure.srv: Remove Arm xml files.
1559
7cc17433
AH
15602019-07-19 Alan Hayward <alan.hayward@arm.com>
1561
1562 * configure.srv: Add new files. Remove xml generated files.
1563 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1564 registers.
1565 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1566 * linux-aarch32-tdesc.c: New file.
1567 * linux-aarch32-tdesc.h: New file.
1568 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1569 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1570 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1571 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1572 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1573 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1574 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1575 (arm_read_description): Call arm_linux_read_description.
1576 (initialize_low_arch): Don't init registers.
1577 * linux-arm-tdesc.c: New file.
1578 * linux-arm-tdesc.h: New file.
1579
166a82be
AH
15802019-07-10 Alan Hayward <alan.hayward@arm.com>
1581
1582 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
1583 Move counter inside for.
1584 (arm_read_description): Check ptrace earlier.
1585 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
1586
268a13a5
TT
15872019-07-09 Tom Tromey <tom@tromey.com>
1588
1589 * configure: Rebuild.
1590 * configure.ac: Change common to gdbsupport.
1591 * acinclude.m4: Change common to gdbsupport.
1592 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
1593 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
1594 common to gdbsupport.
1595 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
1596 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
1597 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
1598 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
1599 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
1600 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
1601 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
1602 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
1603 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
1604 common to gdbsupport.
1605
350fab54
AH
16062019-07-04 Alan Hayward <alan.hayward@arm.com>
1607
1608 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
1609 defines.
1610 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
1611
2b40fda7
AH
16122019-07-04 Alan Hayward <alan.hayward@arm.com>
1613
1614 * configure.srv: Remove legacy xml.
1615 * linux-aarch64-low.c (initialize_low_arch): Remove
1616 initialize_low_tdesc call.
1617 * linux-aarch64-tdesc-selftest.c: Remove file.
1618 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
1619 * linux-x86-low.c (initialize_low_arch): Remove
1620 initialize_low_tdesc call.
1621 * linux-x86-tdesc-selftest.c: Remove file.
1622 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
1623
7d10623d
TV
16242019-06-20 Tom de Vries <tdevries@suse.de>
1625
1626 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
1627 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
1628
8d6a48df
TV
16292019-06-19 Tom de Vries <tdevries@suse.de>
1630
1631 * debug.h (debug_write): Change return type to ssize_t.
1632 * debug.c (debug_write): Same.
1633
73cc7272
TT
16342019-06-14 Tom Tromey <tom@tromey.com>
1635
1636 * configure.ac: Use new path to gnulib.
1637 * configure: Rebuild.
1638 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1639 to gnulib.
1640
08f10e02
TT
16412019-06-11 Tom Tromey <tom@tromey.com>
1642
1643 * Makefile.in (SFILES): Add alloc.c.
1644 (OBS): Add alloc.o.
1645 (IPA_OBJS): Add alloc-ipa.o.
1646 (alloc-ipa.o): New target.
1647 (%.o: ../%.c): New pattern rule.
1648
422186a9
TT
16492019-06-10 Tom Tromey <tromey@adacore.com>
1650
1651 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1652 end warning with a newline.
1653 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1654 newline.
1655 * thread-db.c (attach_thread): Don't end warning with a newline.
1656 (thread_db_notice_clone): Likewise.
1657 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1658 newline.
1659 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1660 end warning with a newline.
1661
b02f78f9
PA
16622019-06-04 Pedro Alves <palves@redhat.com>
1663
1664 * server.c (captured_main): Use make_unique_xstrdup.
1665
88ed7edb
TT
16662019-06-02 Tom Tromey <tom@tromey.com>
1667
1668 * gdbreplay.c (fromhex): Remove.
1669 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1670
33a6bc35
TT
16712019-05-29 Tom Tromey <tromey@adacore.com>
1672
1673 * configure: Rebuild.
1674
e90a813d
KB
16752019-05-06 Kevin Buettner <kevinb@redhat.com>
1676
1677 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1678 sign extension code on 32-bit builds.
1679
353ea2d1
EZ
16802019-05-03 Eli Zaretskii <eliz@gnu.org>
1681
1682 * remote-utils.c:
1683 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1684
b494cdff
TT
16852019-04-19 Tom Tromey <tom@tromey.com>
1686
1687 * server.c (struct vstop_notif): Derive from notif_event.
1688 <base>: Remove.
1689 (queue_stop_reply): Update.
1690 (remove_all_on_match_ptid): Change type. Rewrite.
1691 (discard_queued_stop_replies): Rewrite.
1692 (in_queued_stop_replies_ptid): Change type.
1693 (in_queued_stop_replies): Rewrite.
1694 (notif_stop): Update.
1695 (queue_stop_reply_callback): Update.
1696 (captured_main): Don't call initialize_notif.
1697 (push_stop_notification): Update.
1698 * notif.c (notif_write_event, handle_notif_ack)
1699 (notif_event_enque, notif_push): Update.
1700 (notif_event_xfree, initialize_notif): Remove.
1701 * notif.h (struct notif_event): Include <list>, not
1702 "common/queue.h".
1703 (struct notif_server) <queue>: Now a std::list.
1704 (notif_event_p): Remove typedef.
1705 (initialize_notif): Don't declare.
1706 (struct notif_event): Add virtual destructor.
1707
a7e559cc
AH
17082019-04-17 Alan Hayward <alan.hayward@arm.com>
1709
1710 * ax.c (ax_vdebug): Call debug_printf.
1711 * debug.c (debug_write): New function.
1712 * debug.h (debug_write): New declaration.
1713 * linux-low.c (sigchld_handler): Call debug_write.
1714
aeb2e706
AH
17152019-04-17 Alan Hayward <alan.hayward@arm.com>
1716
1717 * debug.c (debug_set_output): New function.
1718 (debug_vprintf): Send output to debug_file.
1719 (debug_flush): Likewise.
1720 * debug.h (debug_set_output): New declaration.
1721 * server.c (handle_monitor_command): Add debug-file option.
1722 (captured_main): Likewise.
1723
c1bc0935
AH
17242019-04-17 Alan Hayward <alan.hayward@arm.com>
1725
1726 * debug.c (remote_debug): Add definition.
1727 * debug.h (remote_debug): Add declaration.
1728 * hostio.c (remote_debug): Remove declaration.
1729 * remote-utils.c (struct ui_file): Likewise.
1730 (remote_debug): Likewise.
1731 * remote-utils.h (remote_debug): Likewise,
1732 * server.c (remote_debug): Remove definition.
1733
3f52fdbc
KB
17342019-04-10 Kevin Buettner <kevinb@redhat.com>
1735
1736 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1737 when using a 64-bit gdbserver.
1738
b0319eaa
TT
17392019-04-09 Tom Tromey <tromey@adacore.com>
1740
1741 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1742
eedc3f4f
TT
17432019-04-08 Tom Tromey <tom@tromey.com>
1744
1745 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1746 throw.
1747 (linux_resume_one_lwp): Likewise.
1748
230d2906
TT
17492019-04-08 Tom Tromey <tom@tromey.com>
1750
1751 * gdbreplay.c: Update.
1752 * linux-low.c: Update.
1753 * server.c: Update.
1754
a70b8144
TT
17552019-04-08 Tom Tromey <tom@tromey.com>
1756
1757 * server.c: Use C++ exception handling.
1758 * linux-low.c: Use C++ exception handling.
1759 * gdbreplay.c: Use C++ exception handling.
1760
3d6e9d23
TT
17612019-04-08 Tom Tromey <tom@tromey.com>
1762
1763 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1764 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1765 (captured_main, main): Update.
1766 * gdbreplay.c (main): Update.
1767
0570503d
PFC
17682019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1769
1770 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1771 value in argument pointer, return 1 if the entry is found and 0
1772 otherwise. Move comment.
1773 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1774 * linux-low.h (linux_get_auxv): Declare.
1775 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1776
227a9e65
TT
17772019-04-05 Tom Tromey <tromey@adacore.com>
1778
1779 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1780 variables.
1781
69f4c9cc
AH
17822019-03-28 Alan Hayward <alan.hayward@arm.com>
1783
1784 * linux-low.c (AT_HWCAP2): Add define if not already included.
1785
974c89e0
AH
17862019-03-26 Alan Hayward <alan.hayward@arm.com>
1787
1788 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1789 (aarch64_arch_setup): Call linux_get_hwcap.
1790 * linux-arm-low.c (arm_get_hwcap): Remove function.
1791 (arm_read_description): Call linux_get_hwcap.
1792 * linux-low.c (linux_get_auxv): New function.
1793 (linux_get_hwcap): Likewise.
1794 (linux_get_hwcap2): Likewise.
1795 * linux-low.h (linux_get_hwcap): New declaration.
1796 (linux_get_hwcap2): Likewise.
1797 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1798 (ppc_arch_setup): Call linux_get_hwcap.
1799 * linux-s390-low.c (s390_get_hwcap): Remove function.
1800 (s390_arch_setup): Call linux_get_hwcap.
1801
1ef53e6b
AH
18022019-03-22 Alan Hayward <alan.hayward@arm.com>
1803 Jiong Wang <jiong.wang@arm.com>
1804
1805 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1806 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1807 to fail.
1808 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1809
ee4fbcfa
AH
18102019-03-22 Alan Hayward <alan.hayward@arm.com>
1811 Jiong Wang <jiong.wang@arm.com>
1812
1813 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1814 (aarch64_get_hwcap): New function.
1815 (aarch64_arch_setup): Read APIA hwcap.
1816
6dc0ebde
AH
18172019-03-22 Alan Hayward <alan.hayward@arm.com>
1818 Jiong Wang <jiong.wang@arm.com>
1819
1820 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1821 (initialize_low_tracepoint): Likewise.
1822 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1823 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1824 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1825 (aarch64_linux_read_description): Likewise.
1826 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1827
1163a4b7
JB
18282019-03-12 John Baldwin <jhb@FreeBSD.org>
1829
1830 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1831 i386_create_target_description for 'segments' parameter.
1832 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1833 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1834 * win32-i386-low.c (i386_arch_setup): Likewise.
1835
d3a70e03
TT
18362019-03-12 Tom Tromey <tromey@adacore.com>
1837
1838 * linux-low.c (iterate_over_lwps): Update.
1839
37991b4f
TT
18402019-03-06 Tom Tromey <tom@tromey.com>
1841
1842 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1843 (captured_main): Use SCOPE_EXIT.
1844
45950eb6
SDJ
18452019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1846
1847 * configure.srv: Use '$enable_unittest' instead of '$development'
1848 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1849 case.
1850
43ac54fc
TT
18512019-02-27 Tom Tromey <tromey@adacore.com>
1852
1853 * gdbreplay.c (logchar): Handle \r\n.
1854
df0da8a2
AH
18552019-02-07 Alan Hayward <alan.hayward@arm.com>
1856
1857 * linux-low.c (linux_attach): Add process before lwp.
1858 * server.c (attach_inferior): Check if already attached.
1859
1a5c2598
TT
18602019-02-07 Tom Tromey <tom@tromey.com>
1861
1862 * x86-tdesc.h: Rename include guard.
1863 * x86-low.h: Add include guard.
1864 * wincecompat.h: Rename include guard.
1865 * win32-low.h: Add include guard.
1866 * utils.h: Rename include guard.
1867 * tracepoint.h: Rename include guard.
1868 * tdesc.h: Rename include guard.
1869 * target.h: Rename include guard.
1870 * server.h: Rename include guard.
1871 * remote-utils.h: Rename include guard.
1872 * regcache.h: Rename include guard.
1873 * nto-low.h: Rename include guard.
1874 * notif.h: Add include guard.
1875 * mem-break.h: Rename include guard.
1876 * lynx-low.h: Add include guard.
1877 * linux-x86-tdesc.h: Add include guard.
1878 * linux-s390-tdesc.h: Add include guard.
1879 * linux-ppc-tdesc-init.h: Add include guard.
1880 * linux-low.h: Add include guard.
1881 * linux-aarch64-tdesc.h: Add include guard.
1882 * linux-aarch32-low.h: Add include guard.
1883 * inferiors.h: Rename include guard.
1884 * i387-fp.h: Rename include guard.
1885 * hostio.h: Rename include guard.
1886 * gdbthread.h: Rename include guard.
1887 * gdb_proc_service.h: Rename include guard.
1888 * event-loop.h: Rename include guard.
1889 * dll.h: Rename include guard.
1890 * debug.h: Rename include guard.
1891 * ax.h: Rename include guard.
1892
956cc47c
SN
18932018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1894
1895 PR gdb/23985
1896 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1897 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1898
a0707f3c
TT
18992019-01-25 Tom Tromey <tom@tromey.com>
1900
1901 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1902
0747795c
TT
19032019-01-25 Tom Tromey <tom@tromey.com>
1904
1905 * win32-low.c: Fix common/ includes.
1906 * win32-i386-low.c: Fix common/ includes.
1907 * tracepoint.c: Fix common/ includes.
1908 * thread-db.c: Fix common/ includes.
1909 * target.h: Fix common/ includes.
1910 * symbol.c: Fix common/ includes.
1911 * spu-low.c: Fix common/ includes.
1912 * server.h: Fix common/ includes.
1913 * server.c: Fix common/ includes.
1914 * remote-utils.c: Fix common/ includes.
1915 * regcache.h: Fix common/ includes.
1916 * regcache.c: Fix common/ includes.
1917 * nto-x86-low.c: Fix common/ includes.
1918 * notif.h: Fix common/ includes.
1919 * mem-break.h: Fix common/ includes.
1920 * lynx-low.c: Fix common/ includes.
1921 * lynx-i386-low.c: Fix common/ includes.
1922 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1923 * linux-x86-low.c: Fix common/ includes.
1924 * linux-low.c: Fix common/ includes.
1925 * inferiors.h: Fix common/ includes.
1926 * i387-fp.c: Fix common/ includes.
1927 * hostio.c: Fix common/ includes.
1928 * hostio-errno.c: Fix common/ includes.
1929 * gdbthread.h: Fix common/ includes.
1930 * gdbreplay.c: Fix common/ includes.
1931 * fork-child.c: Fix common/ includes.
1932 * event-loop.c: Fix common/ includes.
1933 * ax.c:
1934 (enum gdb_agent_op): Fix common/ includes.
1935
be6d4f74
TT
19362019-01-21 Tom Tromey <tom@tromey.com>
1937
1938 * tracepoint.c: Fix includes.
1939 * remote-utils.c: Fix includes.
1940 * linux-x86-low.c: Fix includes.
1941
66d91b39
JB
19422019-01-01 Joel Brobecker <brobecker@adacore.com>
1943
1944 * gdbreplay.c (gdbreplay_version): Update copyright year in
1945 version message.
1946 * server.c (gdbserver_version): Likewise.
1947
754e3168
AH
19482018-12-05 Alan Hayward <alan.hayward@arm.com>
1949
1950 * linux-low.c (add_lwp): Switch ordering.
1951
d105de22
TT
19522018-11-29 Tom Tromey <tom@tromey.com>
1953
1954 * win32-low.c (win32_join): Take pid, not process.
1955 * target.h (struct target_ops) <join>: Change argument type.
1956 (join_inferior): Change argument name.
1957 * spu-low.c (spu_join): Take pid, not process.
1958 * server.c (handle_detach): Preserve pid before destroying
1959 process.
1960 * lynx-low.c (lynx_join): Take pid, not process.
1961 * linux-low.c (linux_join): Take pid, not process.
1962
50138245
AH
19632018-11-23 Alan Hayward <alan.hayward@arm.com>
1964
1965 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1966 (aarch64_cannot_fetch_register): Likewise.
1967 (struct linux_target_ops): Update references.
1968
64f57f3d
PFC
19692018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1970
1971 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1972
8d619c01
EBM
19732018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1974
1975 * configure.srv (ipa_ppc_linux_regobj): Add
1976 powerpc-isa207-htm-vsx32l-ipa.o and
1977 powerpc-isa207-htm-vsx64l-ipa.o.
1978 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1979 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1980 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1981 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1982 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1983 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1984 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1985 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1986 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1987 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1988 (init_registers_powerpc_isa207_htm_vsx32l)
1989 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1990 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1991 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1992 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1993 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1994 (ppc_store_tm_ctarregset): New functions.
1995 (ppc_regsets): Add entries for HTM regsets.
1996 (ppc_arch_setup): Set htm in features struct when needed. Set
1997 sizes for the HTM regsets.
1998 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1999 (initialize_low_arch): Call
2000 init_registers_powerpc_isa207_htm_vsx32l and
2001 init_registers_powerpc_isa207_htm_vsx64l.
2002 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2003 PPC_TDESC_ISA207_HTM_VSX.
2004 (initialize_low_tracepoint): Call
2005 init_registers_powerpc_isa207_htm_vsx32l and
2006 init_registers_powerpc_isa207_htm_vsx64l.
2007
232bfb86
EBM
20082018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2009
2010 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2011 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2012 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2013 (ppc_store_pmuregset): New functions.
2014 (ppc_regsets): Add entries for ebb and pmu regsets.
2015 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2016 pmu regsets are available. Set sizes for these regsets.
2017
f2cf6173
EBM
20182018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2019
2020 * configure.srv (ipa_ppc_linux_regobj): Add
2021 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2022 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2023 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2024 rs6000/powerpc-isa207-vsx32l.xml, and
2025 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2026 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2027 <PPC_TDESC_ISA207_VSX>: New enum value.
2028 (init_registers_powerpc_isa207_vsx32l): Declare.
2029 (init_registers_powerpc_isa207_vsx64l): Declare.
2030 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2031 (ppc_store_tarregset): New function.
2032 (ppc_regsets): Add entry for the TAR regset.
2033 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2034 size for the TAR regsets.
2035 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2036 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2037 and init_registers_powerpc_isa207_vsx64l.
2038 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2039 (initialize_low_tracepoint): Call
2040 init_registers_powerpc_isa207_vsx32l and
2041 init_registers_powerpc_isa207_vsx64l.
2042
7ca18ed6
EBM
20432018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2044 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2045
2046 * configure.srv (ipa_ppc_linux_regobj): Add
2047 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2048 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2049 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2050 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2051 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2052 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2053 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2054 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2055 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2056 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2057 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2058 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2059 (ppc_hwcap): Add comment.
2060 (ppc_hwcap2): New global.
2061 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2062 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2063 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2064 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2065 when needed. Set sizes for the the DSCR and PPR regsets.
2066 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2067 (initialize_low_arch): Call
2068 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2069 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2070 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2071 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2072 (initialize_low_tracepoint): Call
2073 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2074 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2075
5c849b22
PFC
20762018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2077
2078 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2079
8ecfd7bd
SDJ
20802018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2081 Simon Marchi <simark@simark.ca>
2082
2083 * acinclude.m4: Include "../selftest.m4".
2084 * configure: Regenerate.
2085 * configure.ac: Use "GDB_AC_SELFTEST".
2086 * configure.srv: Use "$enable_unittests" instead of
2087 "$development" when checking whether unit tests have been
2088 enabled.
2089 * server.c (captured_main): Update message informing that
2090 selftests have been disabled.
2091
96643e35
TT
20922018-10-04 Tom Tromey <tom@tromey.com>
2093
2094 * configure: Rebuild.
2095
da4ae14a
TT
20962018-10-04 Tom Tromey <tom@tromey.com>
2097
2098 * server.c (handle_status): Rename inner "thread".
2099 (process_serial_event): Declare "res" in 'm' case.
2100 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2101 (iterate_over_lwps): Rename inner "thread".
2102 (linux_qxfer_libraries_svr4): Rename inner "len".
2103 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2104
7c619dbd
GB
21052018-10-01 Gary Benson <gbenson@redhat.com>
2106
2107 * gdb_proc_service.h: Moved common code to
2108 common/gdb_proc_service.h.
2109
3795e814
GB
21102018-10-01 Gary Benson <gbenson@redhat.com>
2111
2112 * gdb_proc_service.h: Synchronize comments and whitespace with
2113 GDB's version of this file.
2114
49b036f1
TT
21152018-09-25 Tom Tromey <tom@tromey.com>
2116
2117 * configure: Rebuild.
2118 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2119
8ff03f0b
SM
21202018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2123 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2124 ($(IPA_LIB)): Sort IPA_OBJS.
2125
a1cd91dc
SM
21262018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2127
2128 * Makefile.in: Remove references to $(ADD_DEPS).
2129
752312ba
TT
21302018-09-16 Tom Tromey <tom@tromey.com>
2131
2132 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2133 variables.
2134 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2135 variables.
2136
f1628857
TT
21372018-09-05 Tom Tromey <tom@tromey.com>
2138
2139 * configure: Rebuild.
2140
ad202fcc
SM
21412018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 PR build/23399
2144 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2145
d3d8724a
TT
21462018-08-27 Tom Tromey <tom@tromey.com>
2147
2148 PR build/23087:
2149 * configure: Rebuild.
2150
b4f183d2
TT
21512018-08-27 Tom Tromey <tom@tromey.com>
2152
2153 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2154 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2155 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2156 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2157 (s390x_emit_stack_adjust): Add casts to unsigned char.
2158
4e2aa472
SM
21592018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2160
2161 PR gdb/23374
2162 PR gdb/23375
2163 * server.h (struct client_state) <disable_randomization>:
2164 Initialize to 1.
2165
cf4088a9
SM
21662018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2169 variable.
2170 (mips_supply_ptrace_register): Likewise.
2171
a0de763e
TT
21722018-07-22 Tom Tromey <tom@tromey.com>
2173
2174 * configure: Rebuild.
2175
b0a7723d
TT
21762018-07-22 Tom Tromey <tom@tromey.com>
2177
2178 * win32-low.c (win32_create_inferior): Remove unused variables.
2179 * gdbreplay.c (remote_open): Remove unused variable.
2180 * remote-utils.c (remote_prepare): Remove unused variable.
2181 * x86-tdesc.h (X86_TDESC_H): Define.
2182 (amd64_expedite_regs): Define conditionally.
2183 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2184 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2185 * remote-utils.c (readchar): Remove unused variable.
2186
a780ef4f
PA
21872018-07-13 Pedro Alves <palves@redhat.com>
2188
2189 * linux-low.c (linux_kill): Change parameter to process_info
2190 pointer instead of pid. Adjust.
2191 * lynx-low.c (lynx_kill): Likewise.
2192 * nto-low.c (nto_kill): Likewise.
2193 * spu-low.c (spu_kill): Likewise.
2194 * win32-low.c (win32_kill): Likewise.
2195 * server.c (handle_v_kill, kill_inferior_callback)
2196 (detach_or_kill_for_exit): Adjust.
2197 * target.c (kill_inferior): Change parameter to process_info
2198 pointer instead of pid. Adjust.
2199 * target.h (struct target_ops) <kill>: Change parameter to
2200 process_info pointer instead of pid. Adjust all implementations
2201 and callers.
2202 (kill_inferior): Likewise.
2203
ef2ddb33
PA
22042018-07-13 Pedro Alves <palves@redhat.com>
2205
2206 * linux-low.c (linux_detach, linux_join): Change parameter to
2207 process_info pointer instead of pid. Adjust.
2208 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2209 * nto-low.c (nto_detach): Likewise.
2210 * spu-low.c (spu_detach, spu_join): Likewise.
2211 * win32-low.c (win32_detach, win32_join): Likewise.
2212 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2213 * target.h (struct target_ops) <detach, join>: Change parameter to
2214 process_info pointer instead of pid. Adjust all implementations
2215 and callers.
2216 (detach_inferior, join_inferior): Rename 'pid' parameter to
2217 'proc'.
2218
c7ab0aef
SDJ
22192018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2220 Jan Kratochvil <jan.kratochvil@redhat.com>
2221 Paul Fertser <fercerpav@gmail.com>
2222 Tsutomu Seki <sekiriki@gmail.com>
2223
2224 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2225 (OBS): Add 'common/netstuff.o'.
2226 (GDBREPLAY_OBS): Likewise.
2227 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2228 (remote_open): Implement support for IPv6
2229 connections.
2230 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2231 and 'wspiapi.h'.
2232 (handle_accept_event): Accept connections from IPv6 sources.
2233 (remote_prepare): Handle IPv6-style hostnames; implement
2234 support for IPv6 connections.
2235 (remote_open): Implement support for printing connections from
2236 IPv6 sources.
2237
31445d10
PA
22382018-07-11 Pedro Alves <palves@redhat.com>
2239
2240 PR gdb/23377
2241 * mem-break.c (any_persistent_commands): Add process_info
2242 parameter and use it instead of relying on the current process.
2243 Change return type to bool.
2244 * mem-break.h (any_persistent_commands): Add process_info
2245 parameter and change return type to bool.
2246 * server.c (handle_detach): Remove require_running_or_return call.
2247 Look up the process_info for the process we're about to detach.
2248 If not found, return back error to GDB. Adjust
2249 any_persistent_commands call to pass down a process pointer.
2250
cb197132
PA
22512018-07-11 Pedro Alves <palves@redhat.com>
2252
2253 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2254 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2255 instead of collect_register_by_name.
2256 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2257 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2258
1b919490
VB
22592018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2260 Pedro Alves <palves@redhat.com>
2261
2262 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2263
d7e15655
TT
22642018-07-03 Tom Tromey <tom@tromey.com>
2265
2266 * linux-low.c: Update.
2267 * lynx-low.c: Update.
2268 * mem-break.c: Update.
2269 * nto-low.c: Update.
2270 * remote-utils.c: Update.
2271 * server.c: Update.
2272 * spu-low.c: Update.
2273 * target.c: Update.
2274 * win32-low.c: Update.
2275
26a57c92
TT
22762018-07-03 Tom Tromey <tom@tromey.com>
2277
2278 * server.c: Update.
2279
0e998d96
TT
22802018-07-03 Tom Tromey <tom@tromey.com>
2281
2282 * linux-low.c: Update.
2283
cc6bcb54
TT
22842018-07-03 Tom Tromey <tom@tromey.com>
2285
2286 * target.c: Update.
2287
e38504b3
TT
22882018-07-03 Tom Tromey <tom@tromey.com>
2289
2290 * linux-low.c: Update.
2291 * linux-mips-low.c: Update.
2292 * lynx-low.c: Update.
2293 * nto-low.c: Update.
2294 * remote-utils.c: Update.
2295 * server.c: Update.
2296 * spu-low.c: Update.
2297 * target.c: Update.
2298 * thread-db.c: Update.
2299
e99b03dc
TT
23002018-07-03 Tom Tromey <tom@tromey.com>
2301
2302 * linux-low.c: Update.
2303 * linux-mips-low.c: Update.
2304 * lynx-low.c: Update.
2305 * mem-break.c: Update.
2306 * nto-low.c: Update.
2307 * remote-utils.c: Update.
2308 * server.c: Update.
2309 * spu-low.c: Update.
2310 * target.c: Update.
2311 * tracepoint.c: Update.
2312
f2907e49
TT
23132018-07-03 Tom Tromey <tom@tromey.com>
2314
2315 * linux-low.c: Update.
2316 * linux-ppc-low.c: Update.
2317 * linux-x86-low.c: Update.
2318 * proc-service.c: Update.
2319 * server.c: Update.
2320 * spu-low.c: Update.
2321 * thread-db.c: Update.
2322 * win32-low.c: Update.
2323
fd79271b
TT
23242018-07-03 Tom Tromey <tom@tromey.com>
2325
2326 * linux-low.c: Update.
2327 * lynx-low.c: Update.
2328 * nto-low.c: Update.
2329 * remote-utils.c: Update.
2330 * spu-low.c: Update.
2331 * thread-db.c: Update.
2332 * win32-low.c: Update.
2333
c0867626
SDJ
23342018-06-29 Joel Brobecker <brobecker@adacore.com>
2335
2336 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2337 parameter in call to 'amd64_create_target_description'.
2338
2512d7ef
JK
23392018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 * x86-tdesc.h: Remove executable permission flag.
2342
d0ac1c44
SM
23432018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2344
2345 * configure.ac: Remove AC_PREREQ, add missing quoting.
2346 * configure: Re-generate.
2347 * config.in: Re-generate.
2348 * aclocal.m4: Re-generate.
2349
c4eb05ff
SM
23502018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2351
2352 * tracepoint.h (current_traceframe): Remove declaration.
2353
02895270
AH
23542018-06-18 Alan Hayward <alan.hayward@arm.com>
2355
2356 * linux-aarch64-low.c (is_sve_tdesc): New function.
2357 (aarch64_sve_regs_copy_to_regcache): Likewise.
2358 (aarch64_sve_regs_copy_from_regcache): Likewise.
2359 (aarch64_regs_info): Add SVE checks.
2360 (initialize_low_arch): Initialize SVE.
2361
e9902bfc
AH
23622018-06-18 Alan Hayward <alan.hayward@arm.com>
2363
2364 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2365
fefa175e
AH
23662018-06-11 Alan Hayward <alan.hayward@arm.com>
2367
2368 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2369 (initialize_low_tracepoint): Likewise
2370 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2371 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2372 param.
2373 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2374 checks.
2375 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2376
b91ad3ff
AH
23772018-06-11 Alan Hayward <alan.hayward@arm.com>
2378
2379 * server.h (PBUFSIZ): Increase size
2380
f868386e
AH
23812018-06-11 Alan Hayward <alan.hayward@arm.com>
2382
2383 * regcache.c (regcache::raw_compare): New function.
2384 * regcache.h (regcache::raw_compare): New declaration.
2385
9c861883
AH
23862018-06-11 Alan Hayward <alan.hayward@arm.com>
2387
2388 * regcache.c (new_register_cache): Use new.
2389 (free_register_cache): Use delete.
2390 (register_data): Use const.
2391 (supply_register): Move body inside regcache.
2392 (regcache::raw_supply): New override function.
2393 (collect_register): Move body inside regcache.
2394 (regcache::raw_collect): New override function.
2395 (regcache::get_register_status): New override function.
2396 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2397
40591844
TT
23982018-06-09 Tom Tromey <tom@tromey.com>
2399
2400 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2401 declare queue.
2402 (event_queue): Use std::queue.
2403 (gdb_event_xfree): Remove.
2404 (initialize_event_loop, process_event, wait_for_event): Update.
2405
6341380d
SC
24062018-06-08 Stan Cox <scox@redhat.com>
2407
2408 * win32-low.c (win32_create_inferior): last_ptid and last_status
2409 moved to client_state.
2410
03349c93
PA
24112018-06-08 Pedro Alves <palves@redhat.com>
2412
2413 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2414 common/common-exceptions.o, common/common-utils.o,
2415 common/errors.o, common/print-utils.o and utils.o.
2416 * gdbreplay.c: Include "common-defs.h" instead of the two
2417 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2418 string.h or alloca.h.
2419 (perror_with_name): Delete.
2420 (remote_open): Use xstrdup instead of strdup.
2421 (main): Rename to ...
2422 (captured_main): ... this.
2423 (main): New.
2424
8dcc53b3
TT
24252018-06-08 Tom Tromey <tom@tromey.com>
2426
2427 * linux-low.c (linux_low_read_btrace): Update.
2428
c12a5089
SC
24292018-06-04 Stan Cox <scox@redhat.com>
2430
2431 * server.h (struct client_state): New.
2432 * server.c (cont_thread, general_thread, multi_process)
2433 (report_fork_events, report_vfork_events, report_exec_events)
2434 (report_thread_events, swbreak_feature, hwbreak_feature)
2435 (vCont_supported, disable_randomization, pass_signals)
2436 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2437 Moved to client_state.
2438 * remote-utils.c (remote_debug, noack_mode)
2439 (transport_is_reliable): Moved to client_state.
2440 * tracepoint.c (current_traceframe): Moved to client_state.
2441
2442 Update all callers.
2443 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2444 linux-low.c, remote-utils.h, target.c: Use client_state.
2445
122394f1
AH
24462018-05-31 Alan Hayward <alan.hayward@arm.com>
2447
2448 * configure.srv: Add new c/h file.
2449
95228a0d
AH
24502018-05-31 Alan Hayward <alan.hayward@arm.com>
2451
2452 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2453 null VQ.
2454
d8dab6c3
MR
24552018-05-25 Maciej W. Rozycki <macro@mips.com>
2456
2457 * gdb.arch/mips-fpregset-core.exp: New test.
2458 * gdb.arch/mips-fpregset-core.c: New test source.
2459
81e25b7c
EK
24602018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2461
2462 PR server/23198
2463 * hostio.c (require_int): Do not report overflow for integers
2464 between 0xfffffff and 0x7fffffff.
2465
7e947ad3
MR
24662018-05-22 Maciej W. Rozycki <macro@mips.com>
2467
2468 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2469 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2470 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2471 functions.
2472 (the_low_target): Wire them.
2473
1d75a658
PFC
24742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2475
2476 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2477 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2478 mode. Call collect_register_by_name with vscr using
2479 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2480 (ppc_store_vrregset): Add and set vscr_offset variable as in
2481 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2482 vscr_offset.
2483
d078308a
PFC
24842018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2485
2486 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2487 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2488 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2489
7273b5fc
PFC
24902018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2491
2492 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2493 (ppc_store_vsxregset): Likewise.
2494 (ppc_fill_vrregset): Likewise.
2495 (ppc_store_vrregset): Likewise.
2496 (ppc_fill_evrregset): Likewise.
2497 (ppc_store_evrregset): Likewise.
2498 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2499 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2500 needed.
2501
2e077f5e
PFC
25022018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2503
2504 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2505 wordsize of the inferior. Call ppc_linux_target_wordsize.
2506
bd64614e
PFC
25072018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2508
2509 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2510 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2511 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2512 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2513 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2514 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2515 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2516 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2517 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2518 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2519 (tdesc_powerpc_e500l): Remove.
2520 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2521 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2522 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2523 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2524 linux-ppc-tdesc.h.
2525 (ppc_arch_setup): Remove target description matching code. Fill a
2526 ppc_linux_features struct and call ppc_linux_match_description
2527 with it.
2528
75d74cca
MR
25292018-05-22 Maciej W. Rozycki <macro@mips.com>
2530
2531 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2532 width of the requested register exceeds the width of the
2533 `ptrace' data type.
2534 (mips_cannot_store_register): Likewise.
2535
e4439e43
MR
25362018-05-21 Maciej W. Rozycki <macro@mips.com>
2537
2538 * linux-mips-low.c (mips_fetch_register): New function. Update
2539 preceding comment.
2540 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2541 (the_low_target): Wire `mips_fetch_register'.
2542
55271bf9
JB
25432018-05-10 Joel Brobecker <brobecker@adacore.com>
2544
2545 * lynx-i386-low.c (LYNXOS_178): New macro.
2546 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2547 the layout on LynxOS-178.
2548 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2549 handle floating point registers that are not supported by
2550 LynxOS-178.
2551
1a34f210
TT
25522018-05-10 Tom Tromey <tom@tromey.com>
2553
2554 * configure: Rebuild.
2555
190852c8
JB
25562018-05-10 Joel Brobecker <brobecker@adacore.com>
2557
2558 PR server/23158:
2559 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2560 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2561 Use it to set the expedite_regs field in the given tdesc.
2562 * x86-tdesc.h: New file.
2563 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2564 Adjust following the addition of the new expedite_regs parameter
2565 to init_target_desc.
2566 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2567 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2568 (i386_linux_read_description, amd64_linux_read_description):
2569 Adjust following the addition of the new expedite_regs parameter
2570 to init_target_desc.
2571 * lynx-i386-low.c: #include "x86-tdesc.h".
2572 (lynx_i386_arch_setup): Adjust following the addition of the new
2573 expedite_regs parameter to init_target_desc.
2574 * nto-x86-low.c: #include "x86-tdesc.h".
2575 (nto_x86_arch_setup): Adjust following the addition of the new
2576 expedite_regs parameter to init_target_desc.
2577 * win32-i386-low.c: #include "x86-tdesc.h".
2578 (i386_arch_setup): Adjust following the addition of the new
2579 expedite_regs parameter to init_target_desc.
2580
7dbac825
JB
25812018-05-10 Joel Brobecker <brobecker@adacore.com>
2582
2583 PR server/23158:
2584 * win32-low.c (win32_create_inferior): Add call to my_wait
2585 setting last_status global.
2586
906994d9
JB
25872018-05-10 Joel Brobecker <brobecker@adacore.com>
2588
2589 PR server/23158:
2590 * win32-low.c (create_process): Only call gdb_tilde_expand if
2591 inferior_cwd is not NULL.
2592
8ee22052
AB
25932018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
2596 registers to the cache if their values have changed.
2597 (i387_xsave_to_cache): Provide default values for x87 control
2598 registers when these features are available, but disabled.
2599 * regcache.c (supply_register_by_name_zeroed): New function.
2600 * regcache.h (supply_register_by_name_zeroed): Declare new
2601 function.
2602
aff689d3
TT
26032018-05-07 Tom Tromey <tom@tromey.com>
2604
2605 * configure: Rebuild.
2606
85e26832
TT
26072018-05-04 Tom Tromey <tom@tromey.com>
2608
2609 * configure: Rebuild.
2610
a3b60e45
JK
26112018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2612 Pedro Alves <palves@redhat.com>
2613
2614 * linux-aarch64-low.c (aarch64_stopped_data_address):
2615 Likewise.
2616
632e107b
TT
26172018-04-27 Tom Tromey <tom@tromey.com>
2618
2619 * configure: Rebuild.
2620
458412c3
TT
26212018-04-23 Tom Tromey <tom@tromey.com>
2622
2623 * configure: Rebuild.
2624
f31c089e
SM
26252018-04-19 Simon Marchi <simon.marchi@ericsson.com>
2626
2627 * Makefile.in (depcomp): Add "..".
2628 (all_deps_files): New and use it.
2629
b319b098
AH
26302018-04-18 Alan Hayward <alan.hayward@arm.com>
2631
2632 * configure.srv (aarch64*-*-linux*): Don't include xml.
2633 (i[34567]86-*-cygwin*): Likewise.
2634 (i[34567]86-*-linux*): Likewise.
2635 (i[34567]86-*-lynxos*): Likewise.
2636 (i[34567]86-*-mingw32ce*): Likewise.
2637 (i[34567]86-*-mingw*): Likewise.
2638 (i[34567]86-*-nto*): Likewise.
2639 (tic6x-*-uclinux): Likewise.
2640 (x86_64-*-linux*): Likewise.
2641 (x86_64-*-mingw*): Likewise.
2642 (x86_64-*-cygwin*): Likewise.
2643
3b74854b
AH
26442018-04-18 Alan Hayward <alan.hayward@arm.com>
2645
2646 * tdesc.c: Remove xml parameter.
2647
e98577a9
AH
26482018-04-18 Alan Hayward <alan.hayward@arm.com>
2649
2650 * server.c (get_features_xml): Remove cast.
2651 * tdesc.c (void target_desc::accept): Fill in function.
2652 (tdesc_get_features_xml): Remove old xml creation.
2653 (print_xml_feature::visit_pre): Add xml vistor.
2654 * tdesc.h (struct target_desc): Make xmltarget mutable.
2655 (tdesc_get_features_xml): Remove declaration.
2656
d278f585
AH
26572018-04-18 Alan Hayward <alan.hayward@arm.com>
2658
2659 * tdesc.c (tdesc_architecture_name): Add new function.
2660 (tdesc_osabi_name): Likewise.
2661 (tdesc_get_features_xml): Use new functions.
2662
eee8a18d
AH
26632018-04-18 Alan Hayward <alan.hayward@arm.com>
2664
2665 * tdesc.c (tdesc_create_flags): Remove.
2666 (tdesc_add_flag): Likewise.
2667 (tdesc_named_type): Likewise.
2668 (tdesc_create_union): Likewise.
2669 (tdesc_create_struct): Likewise.
2670 (tdesc_create_vector): Likewise.
2671 (tdesc_add_bitfield): Likewise.
2672 (tdesc_add_field): Likewise.
2673 (tdesc_set_struct_size): Likewise.
2674
82ec9bc7
AH
26752018-04-18 Alan Hayward <alan.hayward@arm.com>
2676
2677 * tdesc.c (~target_desc): Remove implictly deleted items.
2678 (init_target_desc): Iterate all features.
2679 (tdesc_get_features_xml): Use vector.
2680 (tdesc_create_feature): Create feature.
2681 * tdesc.h (tdesc_feature) Remove
2682 (target_desc): Add features.
2683
ea3e7d71
AH
26842018-04-18 Alan Hayward <alan.hayward@arm.com>
2685
2686 * Makefile.in: Add common/tdesc.c
2687 * tdesc.c (init_target_desc): init all reg_defs from register
2688 vector.
2689 (tdesc_create_reg): Create tdesc_reg.
2690 * tdesc.h (tdesc_feature): Add register vector.
2691
17d08cd4
SM
26922018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * tdesc.h (struct target_desc) <features>: Change type to
2695 std::vector<std::string>.
2696 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2697 changes.
2698 (tdesc_get_features_xml): Likewise.
2699 (tdesc_create_feature): Likewise.
2700
5cd3e386
AH
27012018-03-26 Alan Hayward <alan.hayward@arm.com>
2702
2703 * regcache.c (find_register_by_number): Return a ref.
2704 (find_regno): Use references.
2705 (register_size): Likewise.
2706 (register_data): Likewise.
2707 * tdesc.c (target_desc::~target_desc): Remove free calls.
2708 (target_desc::operator==): Use std::vector compare.
2709 (init_target_desc): Use reference.
2710 (tdesc_create_reg): Use reg constructors.
2711 * tdesc.h (struct target_desc): Replace pointer with object.
2712
dff7492c
AH
27132018-03-23 Alan Hayward <alan.hayward@arm.com>
2714
2715 * regcache.c (find_register_by_number): Make static.
2716 (find_regno): Use find_register_by_number
2717 * regcache.h (struct reg): Remove declaration.
2718
d80e5242
AH
27192018-03-23 Alan Hayward <alan.hayward@arm.com>
2720
2721 * tdesc.c (target_desc::~target_desc): Move to here.
2722 (target_desc::operator==): Likewise.
2723 * tdesc.h (target_desc::~target_desc): Move from here.
2724 (target_desc::operator==): Likewise.
2725
f69c5afb
AA
27262018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2727
2728 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2729
ce29f843
AA
27302018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2731
2732 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2733 S390_TDESC_GS.
2734 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2735 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2736 and init_registers_s390_gs_linux64.
2737
c49bd90b
AA
27382018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2739
2740 * linux-s390-low.c (s390_fill_gs): Remove function.
2741 (s390_fill_gsbc): Remove function.
2742 (s390_regsets): Set fill functions for the guarded storage regsets
2743 to NULL.
2744
7edb9bd3
AA
27452018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2746
2747 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2748 the word size. Add comment.
2749 (s390_get_wordsize): New function.
2750 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2751 pswm with it. Instead, use s390_get_wordsize to determine the
2752 word size first and derive the correct tdesc from that directly.
2753
39be3c7e
SM
27542018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2755
2756 * Makefile.in: Include silent-rules.mk.
2757 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2758 (COMPILE): Add ECHO_CXX.
2759 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2760 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2761 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2762 (version-generated.c): Add ECHO_GEN.
2763 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2764 (IPAGENT_COMPILE): Add ECHO_CXX.
2765 (%-generated.c): Add ECHO_REGDAT.
2766
3ae9ce5d
TT
27672018-03-14 Tom Tromey <tom@tromey.com>
2768
2769 PR cli/14977:
2770 * ax.c (ax_printf): Special case for NULL.
2771
e6a58aa8
SM
27722018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2773
2774 * linux-low.c (linux_qxfer_libraries_svr4): Use
2775 xml_escape_text_append.
2776
f6e8a41e
SM
27772018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2778
2779 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2780
b9671caf
SM
27812018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2782
2783 * server.c (handle_general_set): Remove unnecessary xstrdup.
2784
e80aaf61
SM
27852018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * server.c (parse_debug_format_options): Adjust to
2788 delim_string_to_char_ptr_vec changes.
2789 * thread-db.c (thread_db_load_search): Adjust to
2790 dirnames_to_char_ptr_vec changes.
2791
b1223e78
MM
27922018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2793
2794 * target.h (target_enable_btrace, target_disable_btrace)
2795 (target_read_btrace, target_read_btrace_conf): Turn macro into
2796 inline function. Throw error if target method is not defined.
2797 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2798 check for btrace target method. Be prepared to handle exceptions
2799 from btrace target methods.
2800
81561546
SDJ
28012018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2802
2803 * server.c (captured_main): Change order of error message printed
2804 when the current working directory cannot be found.
2805
25e3c82c
SDJ
28062018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2807
2808 * server.c: Include "filenames.h" and "pathstuff.h".
2809 (program_name): Delete variable.
2810 (program_path): New anonymous class.
2811 (get_exec_wrapper): Use "program_path" instead of
2812 "program_name".
2813 (handle_v_run): Likewise.
2814 (captured_main): Likewise.
2815 (process_serial_event): Likewise.
2816
b4987c95
SDJ
28172018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2818
2819 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2820 (OBJS): Add "pathstuff.o".
2821 * server.c (current_directory): New global variable.
2822 (captured_main): Initialize "current_directory".
2823
f46cd62a
AH
28242018-02-26 Alan Hayward <alan.hayward@arm.com>
2825
2826 * tdesc.c: Use common/tdesc.h.
2827 * tdesc.h: Likewise.
2828
a543c5ca
AH
28292018-02-20 Alan Hayward <alan.hayward@arm.com>
2830 Simon Marchi <simon.marchi@ericsson.com>
2831
2832 * Makefile.in: Switch order of make rules.
2833
b5884fa7
AH
28342018-02-19 Alan Hayward <alan.hayward@arm.com>
2835
2836 * Makefile.in: Add common directory in build.
2837 * configure.ac: Add common reference.
2838 * configure: Regenerate.
2839
de6242d3
MM
28402018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2841
2842 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2843 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2844 * spu-low.c (spu_target_ops): Likewise.
2845 * win32-low.c (win32_target_ops): Likewise.
2846 * server.c (supported_btrace_packets): Report packets unconditionally.
2847 * target.h (target_ops) <supports_btrace>: Remove.
2848 (target_supports_btrace): Remove.
2849
9ee23a85
MM
28502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2851
2852 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2853 (handle_btrace_disable): Change return type to void. Use exceptions
2854 to report errors.
2855 (handle_btrace_general_set): Catch exception and copy message to
2856 return message.
2857
8ce47547
TT
28582018-02-08 Tom Tromey <tom@tromey.com>
2859
2860 * linux-low.c (install_software_single_step_breakpoints): Use
2861 make_scoped_restore.
2862 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2863 (do_restore_current_thread_cleanup): Remove.
2864 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2865 declare.
2866
45dd3607
TT
28672018-02-08 Tom Tromey <tom@tromey.com>
2868
2869 * mem-break.c (set_raw_breakpoint_at): Use
2870 gdb::unique_xmalloc_ptr.
2871
e671cd59
PA
28722018-01-30 Pedro Alves <palves@redhat.com>
2873
2874 PR gdb/13211
2875 * target.c (target_terminal::terminal_state): Rename to ...
2876 (target_terminal::m_terminal_state): ... this.
2877
a0aad537
JC
28782018-01-19 James Clarke <jrtc27@jrtc27.com>
2879
2880 * linux-low.c (handle_extended_wait): Surround call to
2881 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2882
4d9b86e1
SM
28832018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2884
2885 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2886 linux_ptrace_attach_fail_reason_string now returning an
2887 std::string.
2888 (linux_attach): Likewise.
2889 * thread-db.c (attach_thread): Likewise.
2890
f517c180
EA
28912018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2892
2893 PR gdb/21559
2894 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2895 checking for fs_base/gs_base fields in struct user_regs_struct.
2896 * configure: Regenerate.
2897
9a70f35c
YQ
28982018-01-16 Yao Qi <yao.qi@linaro.org>
2899
2900 PR gdb/18749
2901 * linux-low.c (fetch_register): Call supply_register instead of
2902 error.
2903
605fd3c6
YQ
29042018-01-08 Yao Qi <yao.qi@linaro.org>
2905 Simon Marchi <simon.marchi@ericsson.com>
2906
2907 * Makefile.in (OBS): Remove selftest.o.
2908 * configure.ac: Set srv_selftest_objs if $development is true.
2909 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2910 * configure: Re-generated.
2911 * server.c (captured_main): Wrap variable selftest_filter with
2912 GDB_SELF_TEST.
2913
2cc05030
SM
29142018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * server.c (parse_debug_format_options): Return std::string.
2917 (handle_monitor_command, captured_main): Adjust.
2918
e379cee6
PA
29192018-01-05 Pedro Alves <palves@redhat.com>
2920
2921 PR gdb/18653
2922 * server.c (captured_main): Pass quiet=false to
2923 save_original_signals_state.
2924
82e1e79a
JB
29252018-01-01 Joel Brobecker <brobecker@adacore.com>
2926
2927 * gdbreplay.c (gdbreplay_version): Update copyright year in
2928 version message.
2929 * server.c (gdbserver_version): Likewise.
2930
8e481c3b
TT
29312017-12-08 Tom Tromey <tom@tromey.com>
2932
2933 * ax.c (ax_printf): Update.
2934
a8806230
YQ
29352017-12-07 Yao Qi <yao.qi@linaro.org>
2936
2937 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2938 aarch64_linux_read_description.
2939 * linux-amd64-ipa.c (idx2mask): New array.
2940 (get_ipa_tdesc): Move idx2mask out.
2941 (initialize_low_tracepoint): Initialize target descriptions.
2942 * linux-i386-ipa.c (idx2mask): New array.
2943 (get_ipa_tdesc): Move idx2mask out.
2944 (initialize_low_tracepoint): Initialize target descriptions.
2945
d4a0e8b5
SM
29462017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * tdesc.c (struct tdesc_type): Change return type.
2949 (tdesc_add_flag): Change parameter type.
2950 (tdesc_add_bitfield): Likewise.
2951 (tdesc_add_field): Likewise.
2952 (tdesc_set_struct_size): Likewise.
2953
798a7429
SM
29542017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2955
2956 * regcache.c (registers_to_string): Remove unused variable.
2957
c0e15c9b
SM
29582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2959
2960 * inferiors.c (for_each_inferior_with_data): Remove.
2961 * inferiors.h (for_each_inferior_with_data): Remove.
2962 * server.c (handle_qxfer_threads_worker): Change parameter type.
2963 (handle_qxfer_threads_proper): Use for_each_thread.
2964
f0045347
SM
29652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * inferiors.c (for_each_inferior): Remove.
2968 (clear_inferiors): Use for_each_thread.
2969 * inferiors.h (for_each_inferior): Remove.
2970 * linux-low.c (linux_wait_for_event_filtered): Use
2971 for_each_thread.
2972 (linux_stabilize_threads): Likewise.
2973 * regcache.c (regcache_release): Likewise.
2974 * server.c (gdb_wants_all_threads_stopped): Likewise.
2975 (clear_pending_status_callback): Remove.
2976 (handle_status): Use for_each_thread.
2977 (captured_main): Likewise.
2978 * win32-low.c (child_init_thread_list): Likewise.
2979 (win32_clear_inferiors): Likewise.
2980 (fake_breakpoint_event): Likewise.
2981
9521758b
SM
29822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 * inferiors.h (find_inferior): Remove.
2985 * inferiors.c (find_inferior): Remove.
2986
8f86d7aa
SM
29872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2988
2989 * linux-low.c (resume_status_pending_p): Update comment.
2990 (need_step_over_p): Update comment.
2991
e2b44075
SM
29922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2993
2994 * linux-low.c (proceed_one_lwp): Return void, change parameter
2995 type.
2996 (unsuspend_and_proceed_one_lwp): Likewise.
2997 (proceed_all_lwps): Use for_each_thread.
2998 (unstop_all_lwps): Likewise.
2999
c80825ff
SM
30002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * linux-low.c (linux_resume_one_thread): Return void, take
3003 parameter directly.
3004 (linux_resume): Use for_each_thread.
3005
df3e4dbe
SM
30062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3007
3008 * linux-low.c (send_sigstop_callback): Return void, change
3009 parameter type. Rename to...
3010 (send_sigstop): ... this.
3011 (suspend_and_send_sigstop_callback): Return void, change parameter
3012 type. Rename to...
3013 (suspend_and_send_sigstop): ... this.
3014 (stop_all_lwps): Use for_each_thread.
3015
5a6b0a41
SM
30162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * linux-low.c (lwp_running): Return bool, remove unused
3019 argument.
3020 (linux_stabilize_threads): Use find_thread.
3021
39a64da5
SM
30222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3023
3024 * linux-low.c (select_singlestep_lwp_callback): Remove.
3025 (count_events_callback): Remove.
3026 (select_event_lwp_callback): Remove.
3027 (select_event_lwp): Use find_thread/for_each_thread.
3028
a1385b7b
SM
30292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3030
3031 * linux-low.c (not_stopped_callback): Return bool, take filter
3032 argument directly.
3033 (linux_wait_for_event_filtered): Use find_thread.
3034 (linux_wait_1): Likewise.
3035
454296a2
SM
30362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3037
3038 * linux-low.c (same_lwp): Remove.
3039 (find_lwp_pid): Use find_thread.
3040
6b2a85da
SM
30412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3042
3043 * linux-low.c (delete_lwp_callback): Remove.
3044 (linux_mourn): Use for_each_thread.
3045
798a38e8
SM
30462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3049 args parameter, don't check for pid.
3050 (linux_detach): Use for_each_thread.
3051
e4eb0dec
SM
30522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * linux-low.c (struct counter): Remove.
3055 (second_thread_of_pid_p): Remove.
3056 (last_thread_of_process_p): Use find_thread.
3057
83e1b6c1
SM
30582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3059
3060 * inferiors.c (find_inferior_in_random): Remove.
3061 * inferiors.h (find_inferior_in_random): Remove.
3062 * linux-low.c (status_pending_p_callback): Return bool, accept
3063 parameter ptid directly.
3064 (linux_wait_for_event_filtered): Use find_thread_in_random.
3065 (linux_wait_1): Likewise.
3066
8dc7b443
SM
30672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3068
3069 * inferiors.c (find_inferior_id): Remove.
3070 (find_thread_ptid): Move implemention from find_inferior_id to
3071 here.
3072 * inferiors.h (find_inferior_id): Remove.
3073 * server.c (handle_status): Use find_thread_ptid.
3074 (process_serial_event): Likewise.
3075 * thread-db.c (find_one_thread): Likewise.
3076 (thread_db_thread_handle): Likewise.
3077 * win32-low.c (thread_rec): Likewise.
3078 (child_delete_thread): Likewise.
3079 (win32_thread_alive): Likewise.
3080 (get_child_debug_event): Likewise.
3081
da25033c
SM
30822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3083
3084 * linux-mips-low.c (update_watch_registers_callback): Return
3085 void, remove pid_p parameter, don't check for pid.
3086 (mips_insert_point, mips_remove_point): Use for_each_thread.
3087
c91bb56b
SM
30882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3089
3090 * lynx.low (lynx_delete_thread_callback): Remove.
3091 (lynx_mourn): Use for_each_thread.
3092
634a3254
SM
30932017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3094
3095 * regcache.c (regcache_invalidate_one): Remove.
3096 (regcache_invalidate_pid): use for_each_thread.
3097
41272101
TT
30982017-11-26 Tom Tromey <tom@tromey.com>
3099
3100 * linux-low.c (linux_create_inferior): Update.
3101
f5291a6f
UW
31022017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3103
3104 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3105
6654d750
AH
31062017-11-24 Alan Hayward <alan.hayward@arm.com>
3107
3108 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3109 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3110 * linux-aarch64-tdesc-selftest.c: New file.
3111 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3112
31132017-11-24 Alan Hayward <alan.hayward@arm.com>
3114
3115 * configure.srv: Add new file.
3116 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3117 * linux-aarch64-tdesc-selftest.c: New file.
3118 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3119
49bdb7ee
AH
31202017-11-24 Alan Hayward <alan.hayward@arm.com>
3121
3122 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3123 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3124 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3125
d6d7ce56
AH
31262017-11-24 Alan Hayward <alan.hayward@arm.com>
3127
3128 * configure.srv: Add new files.
3129 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3130 aarch64_linux_read_description.
3131 * linux-aarch64-low.c (aarch64_linux_read_description):
3132 Merge with aarch64_arch_setup.
3133 (aarch64_arch_setup): Call aarch64_linux_read_description.
3134 * linux-aarch64-tdesc.c: New file.
3135 * linux-aarch64-tdesc.h: New file.
3136
506fe5f4
YQ
31372017-11-24 Yao Qi <yao.qi@linaro.org>
3138
3139 * configure.srv: Set $srv_regobj for tic6x-linux.
3140 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3141 (tic6x_read_description): Move some code to tic6x_arch_setup.
3142 (tic6x_tdesc_test): New function.
3143 (initialize_low_arch): Call selftests::register_test.
3144
29f9a567
YQ
31452017-11-22 Yao Qi <yao.qi@linaro.org>
3146
3147 * remote-utils.c (prepare_resume_reply): Use memcpy.
3148
578290ec
SM
31492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3150
3151 * linux-low.c (kill_one_lwp_callback): Return void, take
3152 argument directly, don't filter on pid.
3153 (linux_kill): Use for_each_thread.
3154
eca55aec
SM
31552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3156
3157 * linux-low.c (need_step_over_p): Return bool, remove dummy
3158 argument.
3159 (linux_resume, proceed_all_lwps): Use find_thread.
3160
25c28b4d
SM
31612017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3162
3163 * linux-low.c (resume_status_pending_p): Return bool, remove
3164 flag_p argument.
3165 (linux_resume): Use find_thread.
3166
5fdda392
SM
31672017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3168
3169 * linux-low.c (struct thread_resume_array): Remove.
3170 (linux_set_resume_request): Return void, take arguments
3171 directly.
3172 (linux_resume): Use for_each_thread.
3173
fcb056a5
SM
31742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3175
3176 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3177 return bool, remove data argument.
3178 (linux_stabilize_threads): Use find_thread.
3179
139720c5
SM
31802017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3181
3182 * linux-low.c (unsuspend_one_lwp): Remove.
3183 (unsuspend_all_lwps): Use for_each_thread, inline code from
3184 unsuspend_one_lwp.
3185
6d1e5673
SM
31862017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3187
3188 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3189 * linux-low.c (struct iterate_over_lwps_args): Remove.
3190 (iterate_over_lwps_filter): Remove.
3191 (iterate_over_lwps): Use find_thread.
3192
bbf550d5
SM
31932017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3194
3195 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3196 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3197 code from reset_lwp_ptrace_options_callback.
3198
00192f77
SM
31992017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3200
3201 * linux-arm-low.c (struct update_registers_data): Remove.
3202 (update_registers_callback): Return void, take arguments
3203 directly, don't check thread's pid.
3204 (arm_insert_point, arm_remove_point): Use for_each_thread.
3205
2bee2b6c
SM
32062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3207
3208 * win32-low.c (continue_one_thread): Return void, take argument
3209 directly.
3210 (child_continue): Use for_each_thread.
3211
0b360f19
SM
32122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3213
3214 * win32-i386-low.c (update_debug_registers_callback): Rename
3215 to ...
3216 (update_debug_registers): ... this, return void, remove pid_p arg.
3217 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3218
f27866ba
SM
32192017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3220
3221 * inferiors.h (struct process_info): Add constructor, initialize
3222 fields..
3223 <syscalls_to_catch>: Change type to std::vector<int>.
3224 * inferiors.c (add_process): Allocate process_info with new.
3225 (remove_process): Free process_info with delete.
3226 * linux-low.c (handle_extended_wait): Adjust.
3227 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3228 * server.c (handle_general_set): Adjust.
3229
e849ea89
PA
32302017-11-16 Pedro Alves <palves@redhat.com>
3231
3232 * remote-utils.c (remote_close): Block SIGIO signals instead of
3233 uninstalling the SIGIO handler.
3234
1d0aa65c
AH
32352017-11-16 Alan Hayward <alan.hayward@arm.com>
3236
3237 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3238
3491a34c
YQ
32392017-11-16 Yao Qi <yao.qi@linaro.org>
3240
3241 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3242 (tic6x_store_gregset): Likewise.
3243 (tic6x_usrregs_info): Move it up.
3244
a602f924
AH
32452017-11-15 Alan Hayward <alan.hayward@arm.com>
3246
3247 * Makefile.in: Update arch rules.
3248 * configure.srv: Explicitly mark arch/ files.
3249
5616b6c3
AS
32502017-11-13 Andreas Schwab <schwab@suse.de>
3251
3252 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3253 function.
3254 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3255
d1928160
PA
32562017-11-06 Pedro Alves <palves@redhat.com>
3257
3258 * config.in, configure: Regenerate.
3259
bac608e7
SM
32602017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3261
3262 * target.c (struct thread_search): Remove.
3263 (thread_search_callback): Remove.
3264 (prepare_to_access_memory): Use for_each_thread instead of
3265 find_inferior. Inline code from thread_search_callback.
3266
eaddb425
SM
32672017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3268
3269 * server.c (struct visit_actioned_threads_data): Remove.
3270 (visit_actioned_threads): Change prototype to take arguments
3271 directly.
3272 (resume): Use find_thread instead of find_inferior.
3273
99078d34
SM
32742017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3275
3276 * server.c (queue_stop_reply_callback): Change prototype, return
3277 void.
3278 (find_status_pending_thread_callback): Remove.
3279 (handle_status): Replace find_inferior with find_thread and
3280 for_each_thread.
3281
cc628f3d
AH
32822017-10-25 Alan Hayward <alan.hayward@arm.com>
3283
3284 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3285 with REGNO.
3286 (aarch64_store_gregset): Likewise.
3287 (aarch64_fill_fpregset): Likewise.
3288 (aarch64_store_fpregset): Likewise.
3289
4d3bb80e
SM
32902017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3291
3292 * gdbthread.h (find_thread, for_each_thread): New functions.
3293 * inferiors.c (thread_of_pid): Remove.
3294 (find_any_thread_of_pid): Use find_thread.
3295 * linux-low.c (num_lwps): Use for_each_thread.
3296
7a7cdfa0
YQ
32972017-10-17 Yao Qi <yao.qi@linaro.org>
3298
3299 * Makefile.in: Remove one rule.
3300 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3301
e675d170
YQ
33022017-10-17 Yao Qi <yao.qi@linaro.org>
3303
3304 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3305 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3306
7eb4e0f9
YQ
33072017-10-17 Yao Qi <yao.qi@linaro.org>
3308
3309 * configure.srv: Rename arm.o with arch/arm.o.
3310
60d6cfc9
YQ
33112017-10-17 Yao Qi <yao.qi@linaro.org>
3312
3313 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3314 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3315 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3316 (arch-i386.o, arch-amd64.o): Remove rules.
3317 (arch/%.o): New rule.
3318 Update POSTCOMPILE and COMPILE.pre.
3319 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3320 * configure: Re-generated.
3321 * configure.srv: Replace arch-i386.o with arch/i386.o.
3322 Replace arch-amd64.o with arch/amd64.o.
3323
5bfda255
YQ
33242017-10-16 Yao Qi <yao.qi@linaro.org>
3325
3326 * configure: Regenerated.
3327
9c80ecd6
SM
33282017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3329
3330 * inferiors.h: (struct inferior_list): Remove.
3331 (struct inferior_list_entry); Remove.
3332 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3333 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3334 get_first_inferior): Remove.
3335 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3336 find_inferior_id, find_inferior_in_random): Change signature.
3337 * inferiors.c (all_threads): Change type to
3338 std::list<thread_info *>.
3339 (get_thread): Remove macro.
3340 (find_inferior, find_inferior_id): Change signature, implement
3341 using find_thread.
3342 (find_inferior_in_random): Change signature, implement using
3343 find_thread_in_random.
3344 (for_each_inferior, for_each_inferior_with_data): Change
3345 signature, implement using for_each_thread.
3346 (add_inferior_to_list, remove_inferior): Remove.
3347 (add_thread, get_first_thread, thread_of_pid,
3348 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3349 (get_first_inferior, one_inferior_p, clear_inferior_list):
3350 Remove.
3351 (clear_inferiors, get_thread_process): Update.
3352 * gdbthread.h: Include <list>.
3353 (struct thread_info) <entry>: Remove field.
3354 <id>: New field.
3355 (all_threads): Change type to std::list<thread_info *>.
3356 (get_first_inferior): Add doc.
3357 (find_thread, for_each_thread, find_thread_in_random): New
3358 functions.
3359 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3360 * linux-arm-low.c (update_registers_callback): Update.
3361 * linux-low.c (second_thread_of_pid_p): Update.
3362 (kill_one_lwp_callback, linux_detach_lwp_callback,
3363 delete_lwp_callback, status_pending_p_callback, same_lwp,
3364 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3365 iterate_over_lwps, not_stopped_callback,
3366 resume_stopped_resumed_lwps, count_events_callback,
3367 select_singlestep_lwp_callback, select_event_lwp_callback,
3368 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3369 suspend_and_send_sigstop_callback, wait_for_sigstop,
3370 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3371 lwp_running, linux_set_resume_request, resume_status_pending_p,
3372 need_step_over_p, start_step_over, linux_resume_one_thread,
3373 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3374 reset_lwp_ptrace_options_callback): Update.
3375 * linux-mips-low.c (update_watch_registers_callback): Update.
3376 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3377 Update.
3378 (free_register_cache_thread_one): Remove.
3379 (regcache_release): Update.
3380 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3381 handle_qxfer_threads_worker): Update.
3382 (handle_query): Update, use list iterator.
3383 (visit_actioned_threads, handle_pending_status,
3384 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3385 clear_pending_status_callback, set_pending_status_callback,
3386 find_status_pending_thread_callback, handle_status,
3387 process_serial_event): Update.
3388 * target.c (thread_search_callback): Update.
3389 * thread-db.c (thread_db_get_tls_address): Update.
3390 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3391 Update.
3392 * win32-i386-low.c (update_debug_registers_callback): Update.
3393 * win32-low.c (delete_thread_info, child_delete_thread,
3394 continue_one_thread, suspend_one_thread,
3395 get_child_debug_event): Adjust.
3396
9179355e
SM
33972017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3398
3399 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3400 * inferiors.h: Include <list>.
3401 (struct process_info) <entry>: Remove field.
3402 <pid>: New field.
3403 (pid_of): Change macro to function.
3404 (ptid_of, lwpid_of): Remove macro.
3405 (all_processes): Change type to std::list<process_info *>.
3406 (ALL_PROCESSES): Remove macro.
3407 (for_each_process, find_process): New function.
3408 * inferiors.c (all_processes): Change type to
3409 std::list<process_info *>.
3410 (find_thread_process): Adjust.
3411 (add_process): Likewise.
3412 (remove_process): Likewise.
3413 (find_process_pid): Likewise.
3414 (get_first_process): Likewise.
3415 (started_inferior_callback): Remove.
3416 (have_started_inferiors_p): Adjust.
3417 (attached_inferior_callback): Remove.
3418 (have_attached_inferiors_p): Adjust.
3419 * linux-low.c (check_zombie_leaders): Likewise.
3420 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3421 (x86_linux_update_xmltarget): Adjust.
3422 * server.c (handle_query): Likewise.
3423 (gdb_reattached_process): Remove.
3424 (handle_status): Adjust.
3425 (kill_inferior_callback): Likewise.
3426 (detach_or_kill_inferior): Remove.
3427 (print_started_pid): Likewise.
3428 (print_attached_pid): Likewise.
3429 (detach_or_kill_for_exit): Update.
3430 (process_serial_event): Likewise.
3431 * linux-arm-low.c (arm_new_fork): Likewise.
3432
c9cb8905
SM
34332017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * dll.h: Include <list>.
3436 (struct dll_info): Add constructor.
3437 <entry>: Remove field.
3438 (all_dlls): Change type to std::list<dll_info>.
3439 * dll.c: Include <algorithm>.
3440 (get_dll): Remove macro.
3441 (all_dlls): Change type to std::list<dll_info *>.
3442 (free_one_dll): Remove.
3443 (match_dll): Likewise.
3444 (loaded_dll): Adjust.
3445 (unloaded_dll): Adjust to all_dlls type change, use
3446 std::find_if. Inline code from match_dll.
3447 (clear_dlls): Adjust to all_dlls type change.
3448 * server.c (emit_dll_description): Remove.
3449 (handle_qxfer_libraries): Adjust to all_dlls type change,
3450 integrate emit_dll_description's functionality.
3451
04ec7890
SM
34522017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3453
3454 * linux-low.h (struct linux_target_ops) <delete_process>: New
3455 field.
3456 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3457 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3458 (struct linux_target_ops): Add delete_process callback.
3459 * linux-arm-low.c (arm_delete_process): New.
3460 (struct linux_target_ops): Add delete_process callback.
3461 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3462 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3463 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3464 * linux-mips-low.c (mips_linux_delete_process): New.
3465 (struct linux_target_ops): Add delete_process callback.
3466 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3467 * linux-s390-low.c (struct linux_target_ops): Likewise.
3468 * linux-sh-low.c (struct linux_target_ops): Likewise.
3469 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3470 * linux-tile-low.c (struct linux_target_ops): Likewise.
3471 * linux-x86-low.c (x86_linux_delete_process): New.
3472 (struct linux_target_ops): Add delete_process callback.
3473 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3474
466eecee
SM
34752017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3476
3477 * linux-aarch64-low.c (the_low_target): Add thread delete
3478 callback.
3479 * linux-arm-low.c (arm_delete_thread): New function.
3480 (the_low_target): Add thread delete callback.
3481 * linux-bfin-low.c (the_low_target): Likewise.
3482 * linux-crisv32-low.c (the_low_target): Likewise.
3483 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3484 set.
3485 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3486 field.
3487 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3488 * linux-mips-low.c (mips_linux_delete_thread): New function.
3489 (the_low_target): Add thread delete callback.
3490 * linux-ppc-low.c (the_low_target): Likewise.
3491 * linux-s390-low.c (the_low_target): Likewise.
3492 * linux-sh-low.c (the_low_target): Likewise.
3493 * linux-tic6x-low.c (the_low_target): Likewise.
3494 * linux-tile-low.c (the_low_target): Likewise.
3495 * linux-x86-low.c (the_low_target): Likewise.
3496 * linux-xtensa-low.c (the_low_target): Likewise.
3497
b79f7801
YZ
34982017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3499
3500 * win32-low.c: Include "common-inferior.h".
3501
bc3b087d
SDJ
35022017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3503
3504 * inferiors.c (set_inferior_cwd): New function.
3505 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3506 (handle_query): Inform that QSetWorkingDir is supported.
3507 * win32-low.c (create_process): Pass the inferior's cwd to
3508 CreateProcess.
3509
d092c5a2
SDJ
35102017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3511
3512 * inferiors.c (current_inferior_cwd): New global variable.
3513 (get_inferior_cwd): New function.
3514 * inferiors.h (struct process_info) <cwd>: New field.
3515
7da0a886
SDJ
35162017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3517
3518 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3519 (OBS): Add gdb_tilde_expand.o.
3520
289a6840
SM
35212017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3522
3523 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3524 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3525
256642e8
PA
35262017-09-29 Pedro Alves <palves@redhat.com>
3527
3528 * ax.c (gdb_parse_agent_expr): Constify.
3529 * ax.h (gdb_parse_agent_expr): Constify.
3530 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3531 Constify.
3532 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3533 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3534 * remote-utils.h (read_ptid): Constify.
3535 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3536 (process_point_options, process_serial_event): Constify.
3537 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3538 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3539 (cmd_qtbuffer): Constify.
3540
5b9ca4d4
PA
35412017-09-29 Pedro Alves <palves@redhat.com>
3542
3543 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3544 fails.
3545
94c207e0
PA
35462017-09-29 Pedro Alves <palves@redhat.com>
3547
3548 * linux-low.c (handle_extended_wait): Pass parent thread instead
3549 of process to thread_db_notice_clone.
3550 * linux-low.h (thread_db_notice_clone): Replace parent process
3551 parameter with parent thread parameter.
3552 * thread-db.c (find_one_thread): Add comment.
3553 (thread_db_notice_clone): Replace parent process parameter with
3554 parent thread parameter. Temporarily switch to the parent thread.
3555
75352e28
SDJ
35562017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3557
3558 * gdbthread.h: Include "common-gdbthread.h".
3559 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3560 "if" when validating the ptid.
3561 * remote-utils.c: Include "gdbthread.h".
3562 (prepare_resume_reply): Use "switch_to_thread".
3563 * target.c (done_accessing_memory): Likewise.
3564
ad339634
AA
35652017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3566
3567 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3568 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3569 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3570 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3571 s390x-gs-linux64-ipa.o to ipa_obj.
3572 * linux-s390-low.c (HWCAP_S390_GS): New define.
3573 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3574 New functions.
3575 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3576 (s390_arch_setup): Check for guarded-storage support and choose
3577 appropriate tdesc.
3578 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3579 init_registers_s390x_gs_linux64.
3580 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3581 enum value.
3582 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
3583 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
3584
cc4d742f
SM
35852017-09-22 Simon Marchi <simon.marchi@ericsson.com>
3586
3587 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
3588
f6327dcb
KB
35892017-09-21 Kevin Buettner <kevinb@redhat.com>
3590
3591 * linux-low.h (struct lwp_info): Add new field, thread_handle.
3592 (thread_db_thread_handle): Declare.
3593 * linux-low.c (linux_target_ops): Initialize thread_handle.
3594 * server.c (handle_qxfer_threads_worker): Add support for
3595 "handle" attribute.
3596 * target.h (struct target_ops): Add new function pointer,
3597 thread_handle.
3598 (target_thread_handle): Define.
3599 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
3600 field in lwp.
3601 (thread_db_thread_handle): New function.
3602
86299109
KB
36032017-09-21 Kevin Buettner <kevinb@redhat.com>
3604
3605 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
3606 * linux-low.h (thread_db_notice_clone): Declare.
3607 * thread-db.c (thread_db_notice_clone): New function.
3608
f557a88a
PA
36092017-09-21 Pedro Alves <palves@redhat.com>
3610
3611 * server.c (gdb_read_memory, handle_status, process_serial_event)
3612 (handle_serial_event, handle_target_event): Adjust to
3613 set_desired_thread prototype change.
3614 * target.c (set_desired_thread): Remove 'use_general' parameter
3615 and adjust.
3616 * target.h (set_desired_thread): Remove 'use_general' parameter.
3617
223ffa71
TT
36182017-09-20 Tom Tromey <tom@tromey.com>
3619
3620 * target.c (target_terminal::terminal_state): Define.
3621 (target_terminal::init): Rename from target_terminal_init.
3622 (target_terminal::inferior): Rename from
3623 target_terminal_inferior.
3624 (target_terminal::ours): Rename from target_terminal_ours.
3625 (target_terminal::ours_for_output, target_terminal::info): New.
3626
04fd3ba9
SM
36272017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3628
3629 * server.c (accumulate_file_name_length): Remove.
3630 (emit_dll_description): Adjust to std::string change.
3631 (handle_qxfer_libraries): Use std::string to hold document.
3632
5e187554
SM
36332017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3634
3635 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3636 return type of xml_escape_text.
3637 * server.c (emit_dll_description): Likewise.
3638
1526853e
SM
36392017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3640
3641 * server.c (captured_main): Accept argument for --selftest.
3642 Update run_tests call.
3643 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3644 when registering selftests.
3645
c4dfafab
SDJ
36462017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3647
3648 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3649 instead of "VEC" for "target_desc.reg_defs".
3650 (regcache_cpy): Likewise.
3651 (registers_to_string): Likewise.
3652 (registers_from_string): Likewise.
3653 (find_regno): Likewise.
3654 (supply_regblock): Likewise.
3655 (regcache_raw_read_unsigned): Likewise.
3656 * tdesc.c (init_target_desc): Likewise.
3657 (tdesc_create_reg): Likewise.
3658 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3659 (struct target_desc) <reg_defs>: Convert to "std::vector".
3660 (target_desc): Do not initialize "reg_defs".
3661 (~target_desc): Update code to use "std::vector" instead of "VEC"
3662 for "target_desc.reg_defs".
3663 (operator==): Likewise.
3664
124aceb4
SM
36652017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3666
3667 * inferiors.h (thread_to_gdb_id): Remove.
3668 * inferiors.c (thread_to_gdb_id): Remove.
3669 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3670 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3671 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3672 Likewise.
3673 * nto-low.c (nto_fetch_registers, nto_store_registers,
3674 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3675
96cde54f
SM
36762017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 * inferiors.h (gdb_id_to_thread_id): Remove.
3679 * inferiors.c (gdb_id_to_thread_id): Remove.
3680 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3681 removal. Move pid declaration closer to where it's used.
3682
e8ca139e
SM
36832017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3684
3685 * server.c (handle_detach): New function.
3686 (process_serial_event): Move code out, call handle_detach.
3687
f8a4e119
SM
36882017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3689
3690 * server.c (require_running): Rename to ...
3691 (require_running_or_return): ... this ...
3692 (require_running_or_break): ... and this.
3693 (handle_query, process_serial_event): Adjust.
3694
0eb0a407
SM
36952017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3696
3697 * linux-low.c (linux_set_resume_request): Remove unused
3698 variables.
3699
785922a5
SM
37002017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3701
3702 * server.c (first_thread_of): Remove.
3703 (process_serial_event): Replace usage of first_thread_of with
3704 find_any_thread_of_pid.
3705 * tracepoint.c (same_process_p): Remove.
3706 (gdb_agent_about_to_close): Replace usage of same_process_p with
3707 find_any_thread_of_pid.
3708 * linux-x86-low.c (same_process_callback): Remove.
3709 (x86_arch_setup_process_callback): Replace usage of
3710 same_process_callback with find_any_thread_of_pid.
3711 * thread-db.c (any_thread_of): Remove.
3712 (switch_to_process): Replace usage of any_thread_of with
3713 find_any_thread_of_pid.
3714 * inferiors.c (thread_pid_matches_callback): Remove.
3715 (find_thread_process): Adjust to use find_any_thread_of_pid.
3716
a059f00c
SDJ
37172017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3718
3719 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 3720 with "!VEC_empty".
a059f00c 3721
cc397f3a
SDJ
37222017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3723
3724 * linux-low.c (handle_extended_wait): Use
3725 "allocate_target_description" instead of "XNEW".
3726 * linux-x86-low.c (initialize_low_arch): Likewise.
3727
22916b07
YQ
37282017-09-05 Yao Qi <yao.qi@linaro.org>
3729
3730 * configure.srv (srv_i386_regobj): Remove.
3731 (srv_amd64_regobj): Remove.
3732 (srv_regobj): Set it to "" for x86 non-linux targets.
3733 * linux-x86-tdesc.c (i386_linux_read_description):
3734 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3735 (init_registers_i386): Remove the declaration.
3736 (tdesc_i386): Remove the declaration.
3737 (lynx_i386_arch_setup): Call i386_create_target_description.
3738 * nto-x86-low.c: Likewise.
3739 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3740 [!__x86_64__]: include arch/i386.h.
3741 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3742
38602d55
YQ
37432017-09-05 Yao Qi <yao.qi@linaro.org>
3744
3745 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3746 i386/amd64-XXX-linux from it.
3747
44b886ff
YQ
37482017-09-05 Yao Qi <yao.qi@linaro.org>
3749
3750 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3751 false.
3752 (ipa_amd64_linux_regobj): Remove.
3753 (ipa_x32_linux_regobj): Remove.
3754
b4570e4b
YQ
37552017-09-05 Yao Qi <yao.qi@linaro.org>
3756
3757 * Makefile.in (arch-amd64.o): New rule.
3758 * configure.srv: Append arch-amd64.o.
3759 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3760 (get_ipa_tdesc): Call amd64_linux_read_description.
3761 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3762 and init_registers_amd64_XXX.
3763 * linux-x86-low.c (x86_linux_read_description): Call
3764 amd64_linux_read_description.
3765 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3766 (initialize_low_arch): Don't call init_registers_x32_XXX and
3767 init_registers_amd64_XXX.
3768 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3769 and tdesc_amd64_XXX.
3770 [__x86_64__] (amd64_tdesc_test): New function.
3771 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3772 and init_registers_amd64_XXX.
3773 * linux-x86-tdesc.c: Include arch/amd64.h.
3774 (xcr0_to_tdesc_idx): New function.
3775 (i386_linux_read_description): New function.
3776 (amd64_get_ipa_tdesc_idx): New function.
3777 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3778 (amd64_get_ipa_tdesc): Declare.
3779
d1f28ea2
YQ
37802017-09-05 Yao Qi <yao.qi@linaro.org>
3781
3782 * configure.srv (srv_i386_linux_xmlfiles): Remove
3783 i386/i386-XXX-linux.xml from it.
3784
25a93583
YQ
37852017-09-05 Yao Qi <yao.qi@linaro.org>
3786
3787 * configure.srv: Set srv_i386_linux_regobj empty if $development
3788 is false.
3789 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3790 initialize_low_tdesc.
3791 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3792 with #if initialize_low_tdesc.
3793 * linux-x86-tdesc-selftest.c: New file.
3794 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3795
5f035c07
YQ
37962017-09-05 Yao Qi <yao.qi@linaro.org>
3797
3798 * Makefile.in (arch-i386.o): New rule.
3799 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3800 (x86_64-*-linux*): Likewise.
3801 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3802 include arch/i386.h.
3803 (i386_linux_read_description): Remove code and call
3804 i386_create_target_description.
3805 * tdesc.c (allocate_target_description): New function.
3806 * tdesc.h (set_tdesc_architecture): Remove declaration.
3807 (set_tdesc_osabi): Likewise.
3808
0abe8a89
YQ
38092017-09-05 Yao Qi <yao.qi@linaro.org>
3810
3811 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3812 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3813 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3814 .xmltarget.
3815 * server.c (get_features_xml): Call tdesc_get_features_xml.
3816 * tdesc.c (set_tdesc_architecture): New function.
3817 (set_tdesc_osabi): New function.
3818 (tdesc_get_features_xml): New function.
3819 (tdesc_create_feature): Add an argument.
3820 * tdesc.h (struct target_desc) <features>: New field.
3821 <arch, osabi>: New field.
3822 (~target_desc): xfree features, arch, and osabi.
3823 (target_desc::oerator==): Don't compare .xmltarget.
3824 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3825 (set_tdesc_osabi): Likewise.
3826 (tdesc_get_features_xml): Likewise.
3827
0a188386
YQ
38282017-09-05 Yao Qi <yao.qi@linaro.org>
3829
3830 * linux-x86-tdesc.c: Include selftest.h.
3831 (i386_tdesc_test): New function.
3832 (initialize_low_tdesc): Call selftests::register_test.
3833 * tdesc.h: Include regdef.h.
3834 (target_desc): Override operator == and !=.
3835
f49ff000
YQ
38362017-09-05 Yao Qi <yao.qi@linaro.org>
3837
3838 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3839 (ipa_obj): Likewise.
3840 * linux-i386-ipa.c: Include common/x86-xstate.h
3841 (get_ipa_tdesc): Call i386_linux_read_description.
3842 (initialize_low_tracepoint): Don't call init_registers_XXX
3843 functions, call initialize_low_tdesc instead.
3844 * linux-x86-low.c (x86_linux_read_description): Call
3845 i386_linux_read_description.
3846 (initialize_low_arch): Don't call init_registers_i386_XXX
3847 functions, call initialize_low_tdesc.
3848 * linux-x86-tdesc.c: New file.
3849 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3850 (i386_get_ipa_tdesc_idx): Declare.
3851 (i386_get_ipa_tdesc): Declare.
3852 (initialize_low_tdesc): Declare.
3853
2b68ef2f
YQ
38542017-09-05 Yao Qi <yao.qi@linaro.org>
3855
3856 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3857 instead of 0.
3858
f7000548
YQ
38592017-09-05 Yao Qi <yao.qi@linaro.org>
3860
3861 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3862 * regcache.c (get_thread_regcache): Use VEC_length.
3863 (init_register_cache): Likewise.
3864 (regcache_cpy): Likewise.
3865 (registers_to_string): Iterate reg_defs via VEC_iterate.
3866 (find_regno): Likewise.
3867 (find_register_by_number): Use VEC_index.
3868 (register_size): Call find_register_by_number.
3869 (register_data): Call find_register_by_number.
3870 (supply_regblock): Use VEC_length.
3871 (regcache_raw_read_unsigned): Likewise.
3872 * tdesc.c (init_target_desc): Iterate reg_defs via
3873 VEC_iterate.
3874 (default_description): Update initializer.
3875 (copy_target_description): Don't update field num_registers.
3876 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3877 <num_registers>: Remove.
3878
50a421ac
SM
38792017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3880
3881 * Makefile.in (.SECONDARY): Define target.
3882
23fdd69e
SM
38832017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3884
3885 * linux-low.c (linux_wait_1): Adjust.
3886 * server.c (queue_stop_reply_callback): Adjust.
3887
0a2dde4a
SDJ
38882017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3889
3890 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3891 QEnvironmentUnset and QEnvironmentReset packets.
3892 (handle_query): Inform remote that QEnvironmentHexEncoded,
3893 QEnvironmentUnset and QEnvironmentReset are supported.
3894
6afd337d
SM
38952017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3896
3897 * inferiors.h (inferior_target_data): Rename to ...
3898 (thread_target_data): ... this.
3899 (inferior_regcache_data): Rename to ...
3900 (thread_regcache_data): ... this.
3901 (set_inferior_regcache_data): Rename to ...
3902 (set_thread_regcache_data): ... this.
3903 * inferiors.c (inferior_target_data): Rename to ...
3904 (thread_target_data): ... this.
3905 (inferior_regcache_data): Rename to ...
3906 (thread_regcache_data): ... this.
3907 (set_inferior_regcache_data): Rename to ...
3908 (set_thread_regcache_data): ... this.
3909 (free_one_thread): Update.
3910 * linux-low.h (get_thread_lwp): Update.
3911 * regcache.c (get_thread_regcache): Update.
3912 (regcache_invalidate_thread): Update.
3913 (free_register_cache_thread): Update.
3914 * win32-i386-low.c (update_debug_registers_callback): Update.
3915 (win32_get_current_dr): Update.
3916 * win32-low.c (thread_rec): Update.
3917 (delete_thread_info): Update.
3918 (continue_one_thread): Update.
3919 (suspend_one_thread): Update.
3920
a160cc46
SM
39212017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3922
3923 * inferiors.c (set_inferior_target_data): Remove.
3924 * inferiors.h (set_inferior_target_data): Remove.
3925
6d580b63
YQ
39262017-08-18 Yao Qi <yao.qi@linaro.org>
3927
3928 * Makefile.in (OBS): Add selftest.o.
3929 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3930 * configure, config.in: Re-generated.
3931 * server.c: Include common/sefltest.h.
3932 (captured_main): Handle option --selftest.
3933
f5a29eb0
YQ
39342017-08-09 Yao Qi <yao.qi@linaro.org>
3935
3936 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3937 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3938 i386-avx-mpx.o and i386-mmx.o.
3939 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3940 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3941 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3942 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3943 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3944 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3945 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3946 i386/amd64-avx-mpx.xml.
3947
57757c2f
YQ
39482017-08-09 Yao Qi <yao.qi@linaro.org>
3949
3950 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3951 and x32-avx-avx512.o.
3952 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3953 i386/x32-avx-avx512.xml.
3954
229d26fc
SM
39552017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3956
3957 * tracepoint.h (enum class fast_tpoint_collect_result): New
3958 enumeration.
3959 (fast_tracepoint_collecting): Change return type to
3960 fast_tpoint_collect_result.
3961 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3962 * linux-low.h: Include tracepoint.h.
3963 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3964 fast_tpoint_collect_result.
3965 * linux-low.c (handle_tracepoints): Adjust.
3966 (linux_fast_tracepoint_collecting): Change return type to
3967 fast_tpoint_collect_result.
3968 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3969 linux_wait_1, stuck_in_jump_pad_callback,
3970 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3971 proceed_one_lwp): Adjust to type change.
3972
2e1e43e1
YQ
39732017-07-10 Yao Qi <yao.qi@linaro.org>
3974
3975 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3976
adc764e7
YQ
39772017-06-29 Yao Qi <yao.qi@linaro.org>
3978
3979 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3980 Remove.
3981 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3982
a206891a
SM
39832017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3984
3985 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3986
9a6c7d9c
SDJ
39872017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3988
3989 * linux-low.c (linux_create_inferior): Adjust code to access the
3990 environment information via 'gdb_environ' class.
3991 * lynx-low.c (lynx_create_inferior): Likewise.
3992 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3993 (get_environ): Return a pointer to 'our_environ'.
3994 (captured_main): Initialize 'our_environ'.
3995 * server.h (get_environ): Adjust prototype.
3996 * spu-low.c (spu_create_inferior): Adjust code to access the
3997 environment information via 'gdb_environ' class.
3998
ae3e2ccf
SM
39992017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4000
4001 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4002 usage of "register" keyword.
4003
3e019bdc
SM
40042017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4005
4006 * configure: Re-generate.
4007
8465943a
SM
40082017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4009
4010 * configure: Re-generate.
4011
cf0dd6f0
SM
40122017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4013
4014 * Makefile.in (COMPILE.pre): Add "-x c++".
4015
9845682b
SDJ
40162017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4017
4018 * fork-child.c: Conditionally include <signal.h>.
4019
aefd8b33
SDJ
40202017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4021
4022 * server.c (handle_general_set): Handle new packet
4023 "QStartupWithShell".
4024 (handle_query): Add "QStartupWithShell" to the list of supported
4025 packets.
4026 (gdbserver_usage): Add help text explaining the
4027 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4028 options.
4029 (captured_main): Recognize and act upon the presence of the new
4030 CLI options.
4031
2090129c
SDJ
40322017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4033 Pedro Alves <palves@redhat.com>
4034
4035 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4036 * configure: Regenerate.
4037 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4038 "fork-inferior.o".
4039 (i[34567]86-*-lynxos*): Likewise.
4040 (spu*-*-*): Likewise.
4041 * fork-child.c: New file.
4042 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4043 and "environ.h".
4044 (linux_ptrace_fun): New function.
4045 (linux_create_inferior): Adjust function prototype to reflect
4046 change on "target.h". Adjust function code to use
4047 "fork_inferior".
4048 (linux_request_interrupt): Delete "signal_pid".
4049 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4050 (lynx_ptrace_fun): New function.
4051 (lynx_create_inferior): Adjust function prototype to reflect
4052 change on "target.h". Adjust function code to use
4053 "fork_inferior".
4054 * nto-low.c (nto_create_inferior): Adjust function prototype and
4055 code to reflect change on "target.h". Update comments.
4056 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4057 "common-terminal.h" and "environ.h".
4058 (terminal_fd): Moved to fork-child.c.
4059 (old_foreground_pgrp): Likewise.
4060 (restore_old_foreground_pgrp): Likewise.
4061 (last_status): Make it global.
4062 (last_ptid): Likewise.
4063 (our_environ): New variable.
4064 (startup_with_shell): Likewise.
4065 (program_name): Likewise.
4066 (program_argv): Rename to...
4067 (program_args): ...this.
4068 (wrapper_argv): New variable.
4069 (start_inferior): Delete function.
4070 (get_exec_wrapper): New function.
4071 (get_exec_file): Likewise.
4072 (get_environ): Likewise.
4073 (prefork_hook): Likewise.
4074 (post_fork_inferior): Likewise.
4075 (postfork_hook): Likewise.
4076 (postfork_child_hook): Likewise.
4077 (handle_v_run): Update code to deal with arguments coming from the
4078 remote host. Update calls from "start_inferior" to
4079 "create_inferior".
4080 (captured_main): Likewise. Initialize environment variable. Call
4081 "have_job_control".
4082 * server.h (post_fork_inferior): New prototype.
4083 (get_environ): Likewise.
4084 (last_status): Declare.
4085 (last_ptid): Likewise.
4086 (signal_pid): Likewise.
4087 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4088 (spu_ptrace_fun): New function.
4089 (spu_create_inferior): Adjust function prototype to reflect change
4090 on "target.h". Adjust function code to use "fork_inferior".
4091 * target.c (target_terminal_init): New function.
4092 (target_terminal_inferior): Likewise.
4093 (target_terminal_ours): Likewise.
4094 * target.h: Include <vector>.
4095 (struct target_ops) <create_inferior>: Update prototype.
4096 (create_inferior): Update macro.
4097 * utils.c (gdb_flush_out_err): New function.
4098 * win32-low.c (win32_create_inferior): Adjust function prototype
4099 and code to reflect change on "target.h".
4100
043a4934
SDJ
41012017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4102
4103 * inferiors.c (switch_to_thread): New function.
4104
15652511
SDJ
41052017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4106
4107 * Makefile.in (SFILE): Add "common/job-control.c".
4108 (OBS): Add "job-control.o".
4109
21ea5acd
SDJ
41102017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4111
4112 * Makefile: Remove "@host_makefile_frag@".
4113
e13cb306
PA
41142017-05-05 Pedro Alves <palves@redhat.com>
4115
4116 * configure: Regenerate.
4117
c94fee56
SDJ
41182017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4119
4120 * configure: Regenerate.
4121
a0ff9e1a
SM
41222017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4125 software_single_step change of return type to
4126 std::vector<CORE_ADDR>.
4127 * linux-low.c (install_software_single_step_breakpoints):
4128 Likewise.
4129 * linux-low.h (install_software_single_step_breakpoints):
4130 Likewise.
4131
be628ab8
SDJ
41322017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4133
4134 * remote-utils.c: Include "gdb_termios.h" instead of
4135 "terminal.h".
4136 * terminal.h: Delete file.
4137
7c5ded6a
SDJ
41382017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4139
4140 * server.c: Include <vector>.
4141 <program_argv, wrapper_argv>: Convert to std::vector.
4142 (start_inferior): Rewrite function to use C++.
4143 (handle_v_run): Likewise. Update code that calculates the argv
4144 based on the vRun packet; use C++.
4145 (captured_main): Likewise.
4146
436252de
SM
41472017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4148
4149 * server.c (handle_v_cont): Initialize thread_resume::thread
4150 with null_ptid.
4151
9bf2a700
PA
41522017-04-05 Pedro Alves <palves@redhat.com>
4153
4154 * configure: Regenerate.
4155
a121b7c1
PA
41562017-04-05 Pedro Alves <palves@redhat.com>
4157
4158 * gdbreplay.c (sync_error): Constify.
4159 * linux-x86-low.c (push_opcode): Constify.
4160
21c8a587
PA
41612017-04-05 Pedro Alves <palves@redhat.com>
4162
4163 * win32-low.c (get_child_debug_event)
4164 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4165 Report TARGET_WAITKIND_SPURIOUS instead.
4166
fb32b4f7
PA
41672017-04-05 Pedro Alves <palves@redhat.com>
4168
e79be6e5
SM
4169 * remote-utils.c (remote_prepare, remote_open): Constify.
4170 * remote-utils.h (remote_prepare, remote_open): Constify.
4171 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 4172
65dd1e59
SM
41732017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4174
4175 * Makefile.in (clean): Clear .deps.
4176
8fa5b777
SM
41772017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * .gitignore: Remove generated files, replace with wildcard.
4180 * (clean): Replace removal of generated files with wildcard.
4181 (version.c): Replace with...
4182 (version-generated.c): ...this.
4183 (xml-builtin.c): Replace with...
4184 (xml-builtin-generated.c): ...this.
4185 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4186 (%.c: *regformats*): Replace with...
4187 (%-generated.c: *regformats*): ...this.
4188
a12e714b
MF
41892017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4190
4191 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4192 (xtensa_fill_gregset): Call collect_register_by_name for
4193 threadptr register.
4194 (xtensa_store_gregset): Call supply_register_by_name for
4195 threadptr register.
4196
1a09b50a
MF
41972017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4198
4199 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4200 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4201 (xtensa_store_gregset): Call supply_register for all registers in
4202 a0_regnum..a0_regnum + C0_NREGS range.
4203
1a01e7c6
SM
42042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4205
4206 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4207 (ax-ipa.o: ax.c): Remove.
4208 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4209 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4210 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4211 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4212 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4213
36bc18a8
SM
42142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4215
4216 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4217 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4218 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4219 (errors-ipa.o: ../common/errors.c): Remove.
4220 (format-ipa.o: ../common/format.c): Remove.
4221 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4222
a8ebe3d5
SM
42232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4224
4225 * Makefile.in (%-ipa.o: %.c): New rule.
4226 (tracepoint-ipa.o: tracepoint.c): Remove.
4227 (utils-ipa.o: utils.c): Remove.
4228 (remote-utils-ipa.o: remote-utils.c): Remove.
4229 (regcache-ipa.o: regcache.c): Remove.
4230 (i386-linux-ipa.o: i386-linux.c): Remove.
4231 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4232 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4233 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4234 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4235 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4236 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4237 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4238 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4239 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4240 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4241 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4242 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4243 (aarch64-ipa.o: aarch64.c): Remove.
4244 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4245 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4246 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4247 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4248 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4249 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4250 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4251 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4252 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4253 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4254 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4255 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4256 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4257 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4258 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4259 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4260 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4261 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4262 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4263 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4264 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4265 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4266 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4267 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4268 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4269 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4270 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4271 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4272 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4273 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4274 (tdesc-ipa.o: tdesc.c): Remove.
4275 (x32-linux-ipa.o: x32-linux.c): Remove.
4276 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4277 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4278
50cfacb7
SM
42792017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4280
4281 * Makefile.in (%.o: ../arch/%.c): New rule.
4282 (arm.o: ../arch/arm.c): Remove.
4283 (arm-linux.o: ../arch/arm-linux.c): Remove.
4284 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4285 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4286
c5a22423
SM
42872017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4288
4289 * Makefile.in (%.o: ../nat/%.c): New rule.
4290 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4291 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4292 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4293 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4294 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4295 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4296 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4297 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4298 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4299 (linux-personality.o: ../nat/linux-personality.c): Remove.
4300 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4301 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4302 (x86-linux.o: ../nat/x86-linux.c): Remove.
4303 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4304 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4305
6bda016b
SM
43062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4307
4308 * Makefile.in (%.o: ../common/%.c): New rule.
4309 (signals.o: ../common/signals.c): Remove.
4310 (print-utils.o: ../common/print-utils.c): Remove.
4311 (rsp-low.o: ../common/rsp-low.c): Remove.
4312 (common-utils.o: ../common/common-utils.c): Remove.
4313 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4314 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4315 (vec.o: ../common/vec.c): Remove.
4316 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4317 (xml-utils.o: ../common/xml-utils.c): Remove.
4318 (ptid.o: ../common/ptid.c): Remove.
4319 (buffer.o: ../common/buffer.c): Remove.
4320 (format.o: ../common/format.c): Remove.
4321 (filestuff.o: ../common/filestuff.c): Remove.
4322 (agent.o: ../common/agent.c): Remove.
4323 (errors.o: ../common/errors.c): Remove.
4324 (environ.o: ../common/environ.c): Remove.
4325 (common-debug.o: ../common/common-debug.c): Remove.
4326 (cleanups.o: ../common/cleanups.c): Remove.
4327 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4328 (fileio.o: ../common/fileio.c): Remove.
4329 (common-regcache.o: ../common/common-regcache.c): Remove.
4330 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4331 (new-op.o: ../common/new-op.c): Remove.
4332 (btrace-common.o: ../common/btrace-common.c): Remove.
4333
21122961
SM
43342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4335
4336 * Makefile.in (%.o: ../target/%.c): New rule.
4337 (waitstatus.o: ../target/waitstatus.c): Remove.
4338
c362e621
SM
43392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4340
4341 * Makefile.in
4342 (%.c: ../regformats/%.dat,
4343 (%.c: ../regformats/arm/%.dat,
4344 (%.c: ../regformats/i386/%.dat,
4345 (%.c: ../regformats/rs6000/%.dat): New rules.
4346 (aarch64.c): Remove.
4347 (reg-arm.c): Remove.
4348 (arm-with-iwmmxt.c): Remove.
4349 (arm-with-vfpv2.c): Remove.
4350 (arm-with-vfpv3.c): Remove.
4351 (arm-with-neon.c): Remove.
4352 (reg-bfin.c): Remove.
4353 (reg-cris.c): Remove.
4354 (reg-crisv32.c): Remove.
4355 (i386.c): Remove.
4356 (i386-linux.c): Remove.
4357 (i386-avx.c): Remove.
4358 (i386-avx-linux.c): Remove.
4359 (i386-avx-avx512.c): Remove.
4360 (i386-avx-avx512-linux.c): Remove.
4361 (i386-mpx.c): Remove.
4362 (i386-mpx-linux.c): Remove.
4363 (i386-avx-mpx-avx512-pku.c): Remove.
4364 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4365 (i386-avx-mpx.c): Remove.
4366 (i386-avx-mpx-linux.c): Remove.
4367 (i386-mmx.c): Remove.
4368 (i386-mmx-linux.c): Remove.
4369 (reg-ia64.c): Remove.
4370 (reg-m32r.c): Remove.
4371 (reg-m68k.c): Remove.
4372 (reg-cf.c): Remove.
4373 (mips-linux.c): Remove.
4374 (mips-dsp-linux.c): Remove.
4375 (mips64-linux.c): Remove.
4376 (mips64-dsp-linux.c): Remove.
4377 (nios2-linux.c): Remove.
4378 (powerpc-32.c): Remove.
4379 (powerpc-32l.c): Remove.
4380 (powerpc-altivec32l.c): Remove.
4381 (powerpc-cell32l.c): Remove.
4382 (powerpc-vsx32l.c): Remove.
4383 (powerpc-isa205-32l.c): Remove.
4384 (powerpc-isa205-altivec32l.c): Remove.
4385 (powerpc-isa205-vsx32l.c): Remove.
4386 (powerpc-e500l.c): Remove.
4387 (powerpc-64l.c): Remove.
4388 (powerpc-altivec64l.c): Remove.
4389 (powerpc-cell64l.c): Remove.
4390 (powerpc-vsx64l.c): Remove.
4391 (powerpc-isa205-64l.c): Remove.
4392 (powerpc-isa205-altivec64l.c): Remove.
4393 (powerpc-isa205-vsx64l.c): Remove.
4394 (s390-linux32.c): Remove.
4395 (s390-linux32v1.c): Remove.
4396 (s390-linux32v2.c): Remove.
4397 (s390-linux64.c): Remove.
4398 (s390-linux64v1.c): Remove.
4399 (s390-linux64v2.c): Remove.
4400 (s390-te-linux64.c): Remove.
4401 (s390-vx-linux64.c): Remove.
4402 (s390-tevx-linux64.c): Remove.
4403 (s390x-linux64.c): Remove.
4404 (s390x-linux64v1.c): Remove.
4405 (s390x-linux64v2.c): Remove.
4406 (s390x-te-linux64.c): Remove.
4407 (s390x-vx-linux64.c): Remove.
4408 (s390x-tevx-linux64.c): Remove.
4409 (tic6x-c64xp-linux.c): Remove.
4410 (tic6x-c64x-linux.c): Remove.
4411 (tic6x-c62x-linux.c): Remove.
4412 (reg-sh.c): Remove.
4413 (reg-sparc64.c): Remove.
4414 (reg-spu.c): Remove.
4415 (amd64.c): Remove.
4416 (amd64-linux.c): Remove.
4417 (amd64-avx.c): Remove.
4418 (amd64-avx-linux.c): Remove.
4419 (amd64-avx-avx512.c): Remove.
4420 (amd64-avx-avx512-linux.c): Remove.
4421 (amd64-mpx.c): Remove.
4422 (amd64-mpx-linux.c): Remove.
4423 (amd64-avx-mpx-avx512-pku.c): Remove.
4424 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4425 (amd64-avx-mpx.c): Remove.
4426 (amd64-avx-mpx-linux.c): Remove.
4427 (x32.c): Remove.
4428 (x32-linux.c): Remove.
4429 (x32-avx.c): Remove.
4430 (x32-avx-linux.c): Remove.
4431 (x32-avx-avx512.c): Remove.
4432 (x32-avx-avx512-linux.c): Remove.
4433 (reg-xtensa.c): Remove.
4434 (reg-tilegx.c): Remove.
4435 (reg-tilegx32.c): Remove.
4436
1672e0d9
SDJ
44372017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4438
4439 * Makefile.in (SFILES): Add "common/environ.c".
4440 (OBJS): Add "common/environ.h".
4441
239b6d10
WT
44422017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4443
4444 * configure.ac: Check if the fs_base and gs_base members of
4445 `struct user_regs_struct' exist.
4446 * config.in: Regenerated.
4447 * configure: Likewise.
4448
694b382c
AT
44492017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4450
4451 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4452 target_read_memory.
4453 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4454 (get_next_pcs_syscall_next_pc): Likewise.
4455
7dc53023
LM
44562016-12-23 Luis Machado <lgustavo@codesourcery.com>
4457
4458 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4459 * nto-x86-low.c: Likewise.
4460
ad02e4fe
SM
44612016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4462
4463 * Makefile.in: Include disable-implicit-rules.mk.
4464
dcb07cfa
PA
44652016-11-23 Pedro Alves <palves@redhat.com>
4466
4467 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4468 (debug_vprintf): Use std::chrono::steady_clock instead of
4469 gettimeofday. Use '.' instead of ':'.
4470 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4471 (get_timestamp): Use std::chrono::steady_clock instead of
4472 gettimeofday.
4473
8629c02c
SM
44742016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4475
4476 * Makefile.in: Fix whitespace formatting.
4477
b593ecca
SM
44782016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 * Makefile.in (SFILES, OBS): Flatten list and order
4481 alphabetically.
4482
9986ba08
PA
44832016-11-23 Pedro Alves <palves@redhat.com>
4484
4485 * event-loop.c (handle_file_event): Use warning.
4486 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4487 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4488 Use warning.
4489
4eefa7bc
PA
44902016-11-23 Pedro Alves <palves@redhat.com>
4491
4492 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4493 output.
4494 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4495 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4496 debug_printf and debug_flush for debug output.
4497 * server.c (handle_general_set): Likewise.
4498 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4499 output.
4500
5443506e
SM
45012016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4502
4503 * Makefile.in (.c.o): Replace rule with ...
4504 (%.o: %.c): ... this one.
4505
3b165252
SM
45062016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4507
4508 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4509 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4510 make.
4511 * configure.ac: Remove checks for the make program.
4512 * configure: Re-generate.
4513
0bcda685
PA
45142016-10-28 Pedro Alves <palves@redhat.com>
4515
4516 * Makefile.in (CXX_DIALECT): Get from configure.
4517 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4518 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4519 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4520 * config.in: Regenerate.
4521 * configure: Regenerate.
4522
c3805894
YQ
45232016-10-27 Yao Qi <yao.qi@linaro.org>
4524
4525 * linux-low.c (linux_supports_range_stepping): Return true if
4526 can_software_single_step return true.
4527
89342618
YQ
45282016-10-27 Yao Qi <yao.qi@linaro.org>
4529
4530 * inferiors.c (find_inferior_in_random): New function.
4531 * inferiors.h (find_inferior_in_random): Declare.
4532 * linux-low.c (linux_wait_for_event_filtered): Call
4533 find_inferior_in_random instead of find_inferior.
4534
e3652c84
YQ
45352016-10-27 Yao Qi <yao.qi@linaro.org>
4536
4537 * linux-low.c (linux_wait_1): If single-step breakpoints are
4538 inserted, remove them.
4539
5a04c4cf
PA
45402016-10-26 Pedro Alves <palves@redhat.com>
4541
4542 * linux-low.c (handle_extended_wait): Link parent/child fork
4543 threads.
4544 (linux_wait_1): Unlink them.
4545 (linux_set_resume_request): Ignore resume requests for
4546 already-resumed and unhandled fork child threads.
4547 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4548 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4549 New functions.
4550 (handle_v_requests) <vCont>: Don't call require_running.
4551 * server.h (in_queued_stop_replies): New declaration.
4552
cb93dc7f
YQ
45532016-10-24 Yao Qi <yao.qi@linaro.org>
4554
4555 PR server/20733
4556 * linux-aarch64-low.c (append_insns): Cast the return value to
4557 'uint32_t *'.
4558
a1078bea
YQ
45592016-10-10 Yao Qi <yao.qi@linaro.org>
4560
4561 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4562
1fb77080
SDJ
45632016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4564
4565 * target.c (target_supports_multi_process): New function, moved
4566 from...
4567 * target.h (target_supports_multi_process): ... here. Remove
4568 macro.
4569
39b5a3b9
TT
45702016-10-05 Tom Tromey <tom@tromey.com>
4571
4572 PR remote/20655:
4573 * tracepoint.c (handle_tracepoint_bkpts): Check
4574 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4575
c1d0b70a
YQ
45762016-10-05 Yao Qi <yao.qi@linaro.org>
4577
4578 * configure.srv: Update the path of arm-*.xml files.
4579
0a69eedb
YQ
45802016-10-05 Terry Guo <terry.guo@arm.com>
4581 Yao Qi <yao.qi@linaro.org>
4582
4583 * Makefile.in: Adjust the path of rules.
4584 * configure.srv: Update the path of xml files.
4585 * regformats/arm-with-iwmmxt.dat: Regenerated.
4586 * regformats/arm-with-neon.dat: Likewise.
4587 * regformats/arm-with-vfpv2.dat: Likewise.
4588 * regformats/arm-with-vfpv3.dat Likewise.
4589
17e16485
YQ
45902016-09-30 Yao Qi <yao.qi@linaro.org>
4591
4592 PR gdbserver/20627
4593 * target.c (target_stop_and_wait): Don't call
4594 target_continue_no_signal, use resume_stop instead.
4595
edeeb602
YQ
45962016-09-26 Yao Qi <yao.qi@linaro.org>
4597
4598 * linux-low.c (linux_wait_1): Call debug_exit.
4599
503b1c39
PA
46002016-09-23 Pedro Alves <palves@redhat.com>
4601
4602 * Makefile.in (SFILES): Add common/new-op.c.
4603 (OBS): Add common/new-op.o.
4604 (new-op.o): New rule.
4605
74172ecf
SM
46062016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4607
4608 * .gitinore: Ignore more files.
4609
fc6cda2e
YQ
46102016-09-21 Yao Qi <yao.qi@linaro.org>
4611
4612 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
4613 23.
4614
bc1e6c81
SDJ
46152016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4616
4617 * server.c (start_inferior): Call target_mourn_inferior instead of
4618 mourn_inferior; pass ptid_t argument to it.
4619 (resume): Likewise.
4620 (handle_target_event): Likewise.
4621 * target.c (target_mourn_inferior): New function.
4622 * target.h (mourn_inferior): Delete macro.
4623
0e00e962
AA
46242016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4625
4626 * linux-low.c (lwp_is_stepping): New function.
4627
1d8cb77d
CL
46282016-09-06 Carl Love <cel@us.ibm.com>
4629
4630 * server.c (start_inferior): Fixed comment, requested comment change
4631 didn't get updated correctly. Removed reference to ptrace () call as
4632 it is only true on Linux systems.
4633
7313bced
CL
46342016-09-06 Carl Love <cel@us.ibm.com>
4635
4636 * server.c (start_inferior): Do not call
4637 function target_post_create_inferior () if the
4638 inferior process has already exited.
4639
cf6de44d
PA
46402016-09-05 Pedro Alves <palves@redhat.com>
4641
4642 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4643 (COMPILE.pre, CC_LD): Use CXX directly.
4644 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4645 * acinclude.m4: Don't include build-with-cxx.m4.
4646 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4647 * configure: Regenerate.
4648
c1da6748
AT
46492016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4650
4651 PR gdb/19495
4652 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4653 call writing data to own_buf.
4654
f2b9e3df
SDJ
46552016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4656
4657 * target.c (mywait): Call target_wait instead of
4658 the_target->wait.
4659 (target_wait): New function.
4660
049a8570
SDJ
46612016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4662
4663 * server.c (start_inferior): New variable 'ptid'. Replace calls
4664 to the_target->resume by target_continue{,_no_signal}, depending
4665 on the case.
4666 * target.c (target_stop_and_wait): Call target_continue_no_signal
4667 instead of the_target->resume.
4668 (target_continue): New function.
4669
3aa5cfa0
AT
46702016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4671
4672 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4673
754653a7
AZ
46742016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4675
4676 PR server/20491
4677 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4678 ps_prochandle.
4679 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4680 * linux-arm-low.c (ps_get_thread_area): Likewise.
4681 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4682 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4683 * linux-mips-low.c (ps_get_thread_area): Likewise.
4684 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4685 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4686 * linux-x86-low.c (ps_get_thread_area): Likewise.
4687 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4688
ed036b40
PA
46892016-08-19 Pedro Alves <palves@redhat.com>
4690
4691 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4692
c8ef42ee
PA
46932016-08-19 Pedro Alves <palves@redhat.com>
4694
4695 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4696 comment. Use memcpy instead of casting through unsigned long.
4697
9c235a72
PA
46982016-08-19 Pedro Alves <palves@redhat.com>
4699
4700 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4701 allocating around 0x80000000.
4702
201506da
PA
47032016-08-19 Pedro Alves <palves@redhat.com>
4704
4705 PR gdb/20415
4706 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4707 (x32-avx512-linux-ipa.o): New rules.
4708 * configure.ac (x86_64-*-linux*): New x32 check.
4709 * configure.srv (ipa_x32_linux_regobj): New.
4710 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4711 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4712 descriptions.
4713 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4714 descriptions.
4715 * configure: Regenerate.
4716
f348d89a
PA
47172016-08-09 Pedro Alves <palves@redhat.com>
4718
4719 PR gdb/18653
4720 * Makefile.in (OBS): Add signals-state-save-restore.o.
4721 (signals-state-save-restore.o): New rule.
4722 * config.in: Regenerate.
4723 * configure: Regenerate.
4724 * linux-low.c: Include "signals-state-save-restore.h".
4725 (linux_create_inferior): Call
4726 restore_original_signals_state.
4727 * server.c: Include "dispositions-save-restore.h".
4728 (captured_main): Call save_original_signals_state.
4729
1baf5149
PA
47302016-08-05 Pedro Alves <palves@redhat.com>
4731
4732 * configure: Regenerate.
4733
fcd4a73d
YQ
47342016-08-04 Yao Qi <yao.qi@linaro.org>
4735
4736 * linux-low.c (regsets_fetch_inferior_registers): Check
4737 errno is ESRCH or not.
4738
979659d0
YQ
47392016-08-02 Yao Qi <yao.qi@linaro.org>
4740
4741 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4742 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4743 (thread_db_load_search): Update.
4744 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4745 td_ta_set_event and td_ta_event_getmsg.
4746
6598661d
PA
47472016-07-26 Pedro Alves <palves@redhat.com>
4748
4749 PR server/20414
4750 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4751 of unsigned long for 64-bit registers and use uint32_t instead of
4752 unsigned int for 32-bit registers.
4753
9cf12d57
PA
47542016-07-26 Pedro Alves <palves@redhat.com>
4755
4756 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4757 to 'ptrace'.
4758
305450ed
TT
47592016-07-21 Tom Tromey <tom@tromey.com>
4760
4761 * configure: Rebuild.
4762
2583da7c
YQ
47632016-07-21 Yao Qi <yao.qi@linaro.org>
4764
4765 * mem-break.c (find_gdb_breakpoint): Cast bp to
4766 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4767
21536b36
YQ
47682016-07-21 Yao Qi <yao.qi@linaro.org>
4769
4770 * server.c (handle_v_requests): Support s and S actions
4771 if target_supports_software_single_step return true.
4772
8901d193
YQ
47732016-07-21 Yao Qi <yao.qi@linaro.org>
4774
4775 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4776 is resume_step, call maybe_hw_step.
4777 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4778 and unstop them.
4779 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4780 breakpoints or not.
4781 (proceed_one_lwp): If resume request is resume_step, install
4782 reinsert breakpoints and call maybe_hw_step.
4783
0e9a339e
YQ
47842016-07-21 Yao Qi <yao.qi@linaro.org>
4785
4786 * linux-low.c (proceed_one_lwp): Declare.
4787 (linux_resume_one_thread): Remove local variable 'step'.
4788 Lift code enqueue signal. Call proceed_one_lwp instead of
4789 linux_resume_one_lwp.
4790
4281b351
YQ
47912016-07-21 Yao Qi <yao.qi@linaro.org>
4792
4793 * linux-low.c (linux_resume_one_thread): Call
4794 enqueue_pending_signal.
4795
984a2c04
YQ
47962016-07-21 Yao Qi <yao.qi@linaro.org>
4797
4798 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4799 * inferiors.c (do_restore_current_thread_cleanup): New function.
4800 (make_cleanup_restore_current_thread): Likewise.
4801 * linux-low.c (install_software_single_step_breakpoints): Call
4802 make_cleanup_restore_current_thread. Switch current_thread to
4803 thread.
4804
bec903c9
YQ
48052016-07-21 Yao Qi <yao.qi@linaro.org>
4806
4807 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4808 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4809 (clone_one_breakpoint): Likewise.
4810 (delete_reinsert_breakpoints): Change parameter to thread.
4811 Callers updated.
4812 (has_reinsert_breakpoints): Likewise.
4813 (uninsert_reinsert_breakpoints): Likewise.
4814 (reinsert_reinsert_breakpoints): Likewise.
4815 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4816 (delete_reinsert_breakpoints): Likewise.
4817 (reinsert_reinsert_breakpoints): Likewise.
4818 (uninsert_reinsert_breakpoints): Likewise.
4819 (has_reinsert_breakpoints): Likewise.
4820
63c40ec7
YQ
48212016-07-21 Yao Qi <yao.qi@linaro.org>
4822
4823 * inferiors.c (get_thread_process): Make parameter const.
4824 * inferiors.h (get_thread_process): Update declaration.
4825 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4826 Add new parameters child_thread and parent_thread. Callers
4827 updated.
4828 * mem-break.h (clone_all_breakpoints): Update declaration.
4829
9aa76cd0
YQ
48302016-07-21 Yao Qi <yao.qi@linaro.org>
4831
4832 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4833 <command_list, handler>: Remove.
4834 (struct gdb_breakpoint): New.
4835 (struct other_breakpoint): New.
4836 (struct reinsert_breakpoint): New.
4837 (is_gdb_breakpoint): New function.
4838 (any_persistent_commands): Update command_list if
4839 is_gdb_breakpoint returns true.
4840 (set_breakpoint): Create breakpoints according to their types.
4841 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4842 (set_gdb_breakpoint_1): Likewise.
4843 (set_gdb_breakpoint): Likewise.
4844 (clear_breakpoint_conditions): Change parameter type to
4845 'struct gdb_breakpoint *'.
4846 (clear_breakpoint_commands): Likewise.
4847 (clear_breakpoint_conditions_and_commands): Likewise.
4848 (add_condition_to_breakpoint): Likewise.
4849 (add_breakpoint_condition): Likewise.
4850 (add_commands_to_breakpoint): Likewise.
4851 (check_breakpoints): Check other_breakpoint.
4852 (clone_one_breakpoint): Clone breakpopint according to its type.
4853 * mem-break.h (struct gdb_breakpoint): Declare.
4854 (set_gdb_breakpoint): Update declaration.
4855 (clear_breakpoint_conditions_and_commands): Likewise.
4856 (add_breakpoint_condition): Likewise.
4857 (add_breakpoint_commands): Likewise.
4858 * server.c (process_point_options): Change parameter type to
4859 'struct gdb_breakpoint *'.
4860
811f8301
YQ
48612016-07-21 Yao Qi <yao.qi@linaro.org>
4862
4863 * mem-break.c (set_breakpoint_at): Rename it to ...
4864 (set_breakpoint_type_at): ... it.
4865 (set_breakpoint_at): Call set_breakpoint_type_at.
4866 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4867 * mem-break.h (set_breakpoint_at): Update comments.
4868
b1c51e36
CLT
48692016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4870
4871 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4872 to buf parameter.
4873 (nios2_store_gregset): Likewise.
4874
ced2dffb
PA
48752016-07-01 Pedro Alves <palves@redhat.com>
4876 Antoine Tremblay <antoine.tremblay@ericsson.com>
4877
4878 * linux-low.c: Change interface to take the target lwp_info
4879 pointer directly and return void. Handle detaching from a zombie
4880 thread.
4881 (linux_detach_lwp_callback): New function.
4882 (linux_detach): Detach from the leader thread after detaching from
4883 the clone threads.
4884
2ac09a5b
YQ
48852016-06-28 Yao Qi <yao.qi@linaro.org>
4886
4887 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4888 for variable new_offset.
4889 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4890 (aarch64_ftrace_insn_reloc_cb): Likewise.
4891 (aarch64_ftrace_insn_reloc_tb): Likewise.
4892 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4893 PRIx64 instead of PRIx32.
4894
79e7fd4f
YQ
48952016-06-28 Yao Qi <yao.qi@linaro.org>
4896
4897 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4898 (the_low_target): Install arm_get_syscall_trapinfo.
4899
061fc021
YQ
49002016-06-28 Yao Qi <yao.qi@linaro.org>
4901
4902 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4903 function.
4904 (the_low_target): Install aarch64_get_syscall_trapinfo.
4905
4cc32bec
YQ
49062016-06-28 Yao Qi <yao.qi@linaro.org>
4907
4908 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4909 Callers updated.
4910 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4911 Remove parameter sysno.
4912 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4913 sysret.
4914
782c1122
AA
49152016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4916
4917 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4918 (s390_emit_ne_goto): Likewise.
4919 (s390_emit_lt_goto): Likewise.
4920 (s390_emit_le_goto): Likewise.
4921 (s390_emit_gt_goto): Likewise.
4922 (s390_emit_ge_goto): Likewise.
4923 (s390x_emit_eq_goto): Likewise.
4924 (s390x_emit_ne_goto): Likewise.
4925 (s390x_emit_lt_goto): Likewise.
4926 (s390x_emit_le_goto): Likewise.
4927 (s390x_emit_gt_goto): Likewise.
4928 (s390x_emit_ge_goto): Likewise.
4929 (s390_emit_ops_impl): Mark variable static.
4930 (s390x_emit_ops): Likewise.
4931
2e7b624b
YQ
49322016-06-17 Yao Qi <yao.qi@linaro.org>
4933
4934 * linux-low.c (handle_extended_wait): Call
4935 uninsert_reinsert_breakpoints for the parent process. Remove
4936 reinsert breakpoints from the child process. Reinsert them to
4937 the parent process when vfork is done.
4938 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4939 (reinsert_reinsert_breakpoints): New function.
4940 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4941 (reinsert_reinsert_breakpoints): Declare.
4942
8a81c5d7
YQ
49432016-06-17 Yao Qi <yao.qi@linaro.org>
4944
4945 * linux-low.c (handle_extended_wait): If the parent is doing
4946 step-over, remove the reinsert breakpoints from the forked child.
4947
f50bf8e5
YQ
49482016-06-17 Yao Qi <yao.qi@linaro.org>
4949
4950 * linux-low.c (unsuspend_all_lwps): Declare.
4951 (linux_low_filter_event): If thread exited, call finish_step_over.
4952 If step-over is finished, unsuspend other threads.
4953
8376a3cb
YQ
49542016-06-17 Yao Qi <yao.qi@linaro.org>
4955
4956 * linux-low.c (linux_resume_one_lwp_throw): Assert
4957 has_reinsert_breakpoints returns false.
4958 * mem-break.c (delete_disabled_breakpoints): Assert
4959 bp type isn't reinsert_breakpoint.
4960
f79b145d
YQ
49612016-06-17 Yao Qi <yao.qi@linaro.org>
4962
4963 * linux-low.c (maybe_hw_step): New function.
4964 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4965 (finish_step_over): Switch current_thread to lwp temporarily,
4966 and assert has_reinsert_breakpoints returns true.
4967 (proceed_one_lwp): Call maybe_hw_step.
4968 * mem-break.c (has_reinsert_breakpoints): New function.
4969 * mem-break.h (has_reinsert_breakpoints): Declare.
4970
0ae534d2
JT
49712016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4972
4973 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4974
fcdad592
YQ
49752016-05-17 Yao Qi <yao.qi@linaro.org>
4976
4977 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4978 instead of find_inferior.
4979
9e784964
YQ
49802016-05-05 Yao Qi <yao.qi@linaro.org>
4981
4982 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4983 Initialize res to zero.
4984
cf2ebb6e
YQ
49852016-05-05 Yao Qi <yao.qi@linaro.org>
4986
4987 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4988 to uint32_t.
4989
c1aebf87
UW
49902016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4991
4992 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4993 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4994 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4995
35fd2deb 49962016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 4997 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
4998
4999 * tracepoint.c (write_inferior_int8): New function.
5000 (cmd_qtenable_disable): Write enable flag using
5001 write_inferior_int8.
5002
484b3c32
YQ
50032016-04-25 Yao Qi <yao.qi@linaro.org>
5004
5005 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5006 (need_step_over_p): Return zero if the LWP has pending signals
5007 can be delivered on software single step target.
5008
85ba7d86
YQ
50092016-04-25 Yao Qi <yao.qi@linaro.org>
5010
5011 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5012 return instead of error.
5013
3539aa13
YQ
50142016-04-22 Yao Qi <yao.qi@linaro.org>
5015
5016 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5017 to 23.
5018
5b061e98
YQ
50192016-04-22 Yao Qi <yao.qi@linaro.org>
5020
5021 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5022 signal when stepping over breakpoint with software single
5023 step.
5024
3451269c
PA
50252016-04-21 Pedro Alves <palves@redhat.com>
5026
5027 * linux-s390-low.c (s390_collect_ptrace_register)
5028 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5029 add casts.
5030 (s390_check_regset): Use void * instead of gdb_byte *.
5031
a2358508
PA
50322016-04-20 Pedro Alves <palves@redhat.com>
5033
5034 * configure: Renegerate.
5035
6885166d
YQ
50362016-04-20 Yao Qi <yao.qi@linaro.org>
5037
5038 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5039 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5040 number 16.
5041 (arm_store_gregset): Likewise.
5042
2b863f51
WT
50432016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5044
5045 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5046 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5047 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5048 (amd64-avx-mpx-linux.c): New rules.
5049 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5050 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5051 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5052 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5053 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5054 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5055 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5056 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5057 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5058 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5059 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5060 * linux-x86-low.c (x86_linux_read_description): Add case for
5061 X86_XSTATE_AVX_MPX_MASK.
5062 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5063 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5064 init_registers_i386_avx_mpx_linux.
5065 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5066 (initialize_low_tracepoint): Call
5067 init_registers_i386_avx_mpx_linux.
5068 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5069 (initialize_low_tracepoint): Call
5070 init_registers_amd64_avx_mpx_linux.
5071 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5072 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5073 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5074 declarations.
5075
9b30624b
PA
50762016-04-18 Pedro Alves <palves@redhat.com>
5077
5078 * configure: Regenerate.
5079
45e3745e
AT
50802016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5081
5082 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5083 (aarch64_emit_sub): Likewise.
5084
2afc13ff
PA
50852016-04-12 Pedro Alves <palves@redhat.com>
5086
5087 * utils.c (prepare_to_throw_exception): Delete.
5088
6e774b13
SM
50892016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5090
5091 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5092
4dca19f8
MK
50932016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5094
5095 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5096
d0a9981f
MK
50972016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5098
5099 * linux-aarch64-ipa.c: Add <elf.h> include.
5100 * linux-ppc-ipa.c: Add <elf.h> include.
5101 * linux-s390-ipa.c: Add <elf.h> include.
5102
252db07e
MK
51032016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5104
5105 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5106 (get_raw_reg_ptr): Likewise.
5107 (get_trace_state_variable_value_ptr): Likewise.
5108 (set_trace_state_variable_value_ptr): Likewise.
5109 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5110 char *.
5111
14e2b6d9
MK
51122016-03-31 Wei-cheng Wang <cole945@gmail.com>
5113 Marcin Kościelnicki <koriakin@0x04.net>
5114
5115 PR/17221
5116 * linux-ppc-low.c (emit_insns): New function.
5117 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5118 (ppc_emit_prologue): New function.
5119 (ppc_emit_epilogue): New function.
5120 (ppc_emit_add): New function.
5121 (ppc_emit_sub): New function.
5122 (ppc_emit_mul): New function.
5123 (ppc_emit_lsh): New function.
5124 (ppc_emit_rsh_signed): New function.
5125 (ppc_emit_rsh_unsigned): New function.
5126 (ppc_emit_ext): New function.
5127 (ppc_emit_zero_ext): New function.
5128 (ppc_emit_log_not): New function.
5129 (ppc_emit_bit_and): New function.
5130 (ppc_emit_bit_or): New function.
5131 (ppc_emit_bit_xor): New function.
5132 (ppc_emit_bit_not): New function.
5133 (ppc_emit_equal): New function.
5134 (ppc_emit_less_signed): New function.
5135 (ppc_emit_less_unsigned): New function.
5136 (ppc_emit_ref): New function.
5137 (ppc_emit_const): New function.
5138 (ppc_emit_reg): New function.
5139 (ppc_emit_pop): New function.
5140 (ppc_emit_stack_flush): New function.
5141 (ppc_emit_swap): New function.
5142 (ppc_emit_stack_adjust): New function.
5143 (ppc_emit_call): New function.
5144 (ppc_emit_int_call_1): New function.
5145 (ppc_emit_void_call_2): New function.
5146 (ppc_emit_if_goto): New function.
5147 (ppc_emit_goto): New function.
5148 (ppc_emit_eq_goto): New function.
5149 (ppc_emit_ne_goto): New function.
5150 (ppc_emit_lt_goto): New function.
5151 (ppc_emit_le_goto): New function.
5152 (ppc_emit_gt_goto): New function.
5153 (ppc_emit_ge_goto): New function.
5154 (ppc_write_goto_address): New function.
5155 (ppc_emit_ops_impl): New static variable.
5156 (ppc64v1_emit_prologue): New function.
5157 (ppc64v2_emit_prologue): New function.
5158 (ppc64_emit_epilogue): New function.
5159 (ppc64_emit_add): New function.
5160 (ppc64_emit_sub): New function.
5161 (ppc64_emit_mul): New function.
5162 (ppc64_emit_lsh): New function.
5163 (ppc64_emit_rsh_signed): New function.
5164 (ppc64_emit_rsh_unsigned): New function.
5165 (ppc64_emit_ext): New function.
5166 (ppc64_emit_zero_ext): New function.
5167 (ppc64_emit_log_not): New function.
5168 (ppc64_emit_bit_and): New function.
5169 (ppc64_emit_bit_or): New function.
5170 (ppc64_emit_bit_xor): New function.
5171 (ppc64_emit_bit_not): New function.
5172 (ppc64_emit_equal): New function.
5173 (ppc64_emit_less_signed): New function.
5174 (ppc64_emit_less_unsigned): New function.
5175 (ppc64_emit_ref): New function.
5176 (ppc64_emit_const): New function.
5177 (ppc64v1_emit_reg): New function.
5178 (ppc64v2_emit_reg): New function.
5179 (ppc64_emit_pop): New function.
5180 (ppc64_emit_stack_flush): New function.
5181 (ppc64_emit_swap): New function.
5182 (ppc64v1_emit_call): New function.
5183 (ppc64v2_emit_call): New function.
5184 (ppc64v1_emit_int_call_1): New function.
5185 (ppc64v2_emit_int_call_1): New function.
5186 (ppc64v1_emit_void_call_2): New function.
5187 (ppc64v2_emit_void_call_2): New function.
5188 (ppc64_emit_if_goto): New function.
5189 (ppc64_emit_eq_goto): New function.
5190 (ppc64_emit_ne_goto): New function.
5191 (ppc64_emit_lt_goto): New function.
5192 (ppc64_emit_le_goto): New function.
5193 (ppc64_emit_gt_goto): New function.
5194 (ppc64_emit_ge_goto): New function.
5195 (ppc64v1_emit_ops_impl): New static variable.
5196 (ppc64v2_emit_ops_impl): New static variable.
5197 (ppc_emit_ops): New function.
5198 (linux_low_target): Wire in ppc_emit_ops.
5199
a2174ba4
MK
52002016-03-31 Wei-cheng Wang <cole945@gmail.com>
5201 Marcin Kościelnicki <koriakin@0x04.net>
5202
5203 PR/17221
5204 * Makefile.in: Add powerpc-*-ipa.o
5205 * configure.srv: Add ipa_obj for powerpc*-linux.
5206 * linux-ppc-ipa.c: New file.
5207 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5208 includes.
5209 (PPC_FIELD): New macro.
5210 (PPC_SEXT): New macro.
5211 (PPC_OP6): New macro.
5212 (PPC_BO): New macro.
5213 (PPC_LI): New macro.
5214 (PPC_BD): New macro.
5215 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5216 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5217 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5218 (ppc_get_thread_area): New function.
5219 (is_elfv2_inferior): New function.
5220 (gen_ds_form): New function.
5221 (GEN_STD): New macro.
5222 (GEN_STDU): New macro.
5223 (GEN_LD): New macro.
5224 (GEN_LDU): New macro.
5225 (gen_d_form): New function.
5226 (GEN_ADDI): New macro.
5227 (GEN_ADDIS): New macro.
5228 (GEN_LI): New macro.
5229 (GEN_LIS): New macro.
5230 (GEN_ORI): New macro.
5231 (GEN_ORIS): New macro.
5232 (GEN_LWZ): New macro.
5233 (GEN_STW): New macro.
5234 (GEN_STWU): New macro.
5235 (gen_xfx_form): New function.
5236 (GEN_MFSPR): New macro.
5237 (GEN_MTSPR): New macro.
5238 (GEN_MFCR): New macro.
5239 (GEN_MTCR): New macro.
5240 (GEN_SYNC): New macro.
5241 (GEN_LWSYNC): New macro.
5242 (gen_x_form): New function.
5243 (GEN_OR): New macro.
5244 (GEN_MR): New macro.
5245 (GEN_LWARX): New macro.
5246 (GEN_STWCX): New macro.
5247 (GEN_CMPW): New macro.
5248 (gen_md_form): New function.
5249 (GEN_RLDICL): New macro.
5250 (GEN_RLDICR): New macro.
5251 (gen_i_form): New function.
5252 (GEN_B): New macro.
5253 (GEN_BL): New macro.
5254 (gen_b_form): New function.
5255 (GEN_BNE): New macro.
5256 (GEN_LOAD): New macro.
5257 (GEN_STORE): New macro.
5258 (gen_limm): New function.
5259 (gen_atomic_xchg): New function.
5260 (gen_call): New function.
5261 (ppc_relocate_instruction): New function.
5262 (ppc_install_fast_tracepoint_jump_pad): New function.
5263 (ppc_get_min_fast_tracepoint_insn_len): New function.
5264 (ppc_get_ipa_tdesc_idx): New function.
5265 (the_low_target): Wire in the new functions.
5266 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5267 tdescs.
5268 * linux-ppc-tdesc.h: New file.
5269
a13c4696
MK
52702016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5271
5272 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5273 (alloc_jump_pad_buffer): New function.
5274 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5275 (alloc_jump_pad_buffer): New function.
5276 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5277 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5278 (alloc_jump_pad_buffer): New function.
5279 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5280 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5281 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5282 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5283
1cda1512
MK
52842016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5285
5286 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5287 * linux-amd64-ipa.c: Likewise.
5288 * linux-i386-ipa.c: Likewise.
5289 * linux-s390-ipa.c: Likewise.
5290 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5291 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5292 set_trace_state_variable_value_ptr.
5293 (struct ipa_sym_addresses): Likewise.
5294 (symbol_list): Likewise.
5295 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5296 accessing gdb_collect directly.
5297 (gdb_collect_ptr_type): New typedef.
5298 (get_raw_reg_ptr_type): New typedef.
5299 (get_trace_state_variable_value_ptr_type): New typedef.
5300 (set_trace_state_variable_value_ptr_type): New typedef.
5301 (gdb_collect_ptr): New global.
5302 (get_raw_reg_ptr): New global.
5303 (get_trace_state_variable_value_ptr): New global.
5304 (set_trace_state_variable_value_ptr): New global.
5305 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5306 accessing get_raw_reg directly.
5307 (get_get_tsv_func_addr): Likewise for
5308 get_trace_state_variable_value_ptr.
5309 (get_set_tsv_func_addr): Likewise for
5310 set_trace_state_variable_value_ptr.
5311 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5312
72fb5488
SM
53132016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5314
5315 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5316
28170b88
MK
53172016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5318
5319 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5320 packets.
5321 (relocate_instruction): Remove own_buf.
5322 * server.c (own_buf): Make global.
5323 (handle_v_requests): Make global.
5324 * server.h (own_buf): New declaration.
5325 (handle_v_requests): New prototype.
5326
f39e8743
MK
53272016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5328
5329 PR 18377
5330 * linux-s390-low.c (add_insns): New function.
5331 (s390_emit_prologue): New function.
5332 (s390_emit_epilogue): New function.
5333 (s390_emit_add): New function.
5334 (s390_emit_sub): New function.
5335 (s390_emit_mul): New function.
5336 (s390_emit_lsh): New function.
5337 (s390_emit_rsh_signed): New function.
5338 (s390_emit_rsh_unsigned): New function.
5339 (s390_emit_ext): New function.
5340 (s390_emit_log_not): New function.
5341 (s390_emit_bit_and): New function.
5342 (s390_emit_bit_or): New function.
5343 (s390_emit_bit_xor): New function.
5344 (s390_emit_bit_not): New function.
5345 (s390_emit_equal): New function.
5346 (s390_emit_less_signed): New function.
5347 (s390_emit_less_unsigned): New function.
5348 (s390_emit_ref): New function.
5349 (s390_emit_if_goto): New function.
5350 (s390_emit_goto): New function.
5351 (s390_write_goto_address): New function.
5352 (s390_emit_litpool): New function.
5353 (s390_emit_const): New function.
5354 (s390_emit_call): New function.
5355 (s390_emit_reg): New function.
5356 (s390_emit_pop): New function.
5357 (s390_emit_stack_flush): New function.
5358 (s390_emit_zero_ext): New function.
5359 (s390_emit_swap): New function.
5360 (s390_emit_stack_adjust): New function.
5361 (s390_emit_set_r2): New function.
5362 (s390_emit_int_call_1): New function.
5363 (s390_emit_void_call_2): New function.
5364 (s390_emit_eq_goto): New function.
5365 (s390_emit_ne_goto): New function.
5366 (s390_emit_lt_goto): New function.
5367 (s390_emit_le_goto): New function.
5368 (s390_emit_gt_goto): New function.
5369 (s390_emit_ge_goto): New function.
5370 (s390x_emit_prologue): New function.
5371 (s390x_emit_epilogue): New function.
5372 (s390x_emit_add): New function.
5373 (s390x_emit_sub): New function.
5374 (s390x_emit_mul): New function.
5375 (s390x_emit_lsh): New function.
5376 (s390x_emit_rsh_signed): New function.
5377 (s390x_emit_rsh_unsigned): New function.
5378 (s390x_emit_ext): New function.
5379 (s390x_emit_log_not): New function.
5380 (s390x_emit_bit_and): New function.
5381 (s390x_emit_bit_or): New function.
5382 (s390x_emit_bit_xor): New function.
5383 (s390x_emit_bit_not): New function.
5384 (s390x_emit_equal): New function.
5385 (s390x_emit_less_signed): New function.
5386 (s390x_emit_less_unsigned): New function.
5387 (s390x_emit_ref): New function.
5388 (s390x_emit_if_goto): New function.
5389 (s390x_emit_const): New function.
5390 (s390x_emit_call): New function.
5391 (s390x_emit_reg): New function.
5392 (s390x_emit_pop): New function.
5393 (s390x_emit_stack_flush): New function.
5394 (s390x_emit_zero_ext): New function.
5395 (s390x_emit_swap): New function.
5396 (s390x_emit_stack_adjust): New function.
5397 (s390x_emit_int_call_1): New function.
5398 (s390x_emit_void_call_2): New function.
5399 (s390x_emit_eq_goto): New function.
5400 (s390x_emit_ne_goto): New function.
5401 (s390x_emit_lt_goto): New function.
5402 (s390x_emit_le_goto): New function.
5403 (s390x_emit_gt_goto): New function.
5404 (s390x_emit_ge_goto): New function.
5405 (s390_emit_ops): New function.
5406 (struct linux_target_ops): Fill in emit_ops hook.
5407
abd9baf9
MK
54082016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5409
5410 PR 18377
5411 * Makefile.in: Add s390 IPA files.
5412 * configure.srv: Build IPA for s390.
5413 * linux-s390-ipa.c: New file.
5414 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5415 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5416 (tdesc_s390_linux32): Likewise.
5417 (init_registers_s390_linux32v1): Likewise.
5418 (tdesc_s390_linux32v1): Likewise.
5419 (init_registers_s390_linux32v2): Likewise.
5420 (tdesc_s390_linux32v2): Likewise.
5421 (init_registers_s390_linux64): Likewise.
5422 (tdesc_s390_linux64): Likewise.
5423 (init_registers_s390_linux64v1): Likewise.
5424 (tdesc_s390_linux64v1): Likewise.
5425 (init_registers_s390_linux64v2): Likewise.
5426 (tdesc_s390_linux64v2): Likewise.
5427 (init_registers_s390_te_linux64): Likewise.
5428 (tdesc_s390_te_linux64): Likewise.
5429 (init_registers_s390_vx_linux64): Likewise.
5430 (tdesc_s390_vx_linux64): Likewise.
5431 (init_registers_s390_tevx_linux64): Likewise.
5432 (tdesc_s390_tevx_linux64): Likewise.
5433 (init_registers_s390x_linux64): Likewise.
5434 (tdesc_s390x_linux64): Likewise.
5435 (init_registers_s390x_linux64v1): Likewise.
5436 (tdesc_s390x_linux64v1): Likewise.
5437 (init_registers_s390x_linux64v2): Likewise.
5438 (tdesc_s390x_linux64v2): Likewise.
5439 (init_registers_s390x_te_linux64): Likewise.
5440 (tdesc_s390x_te_linux64): Likewise.
5441 (init_registers_s390x_vx_linux64): Likewise.
5442 (tdesc_s390x_vx_linux64): Likewise.
5443 (init_registers_s390x_tevx_linux64): Likewise.
5444 (tdesc_s390x_tevx_linux64): Likewise.
5445 (have_hwcap_s390_vx): New static variable.
5446 (s390_arch_setup): Fill have_hwcap_s390_vx.
5447 (s390_get_thread_area): New function.
5448 (s390_ft_entry_gpr_esa): New const.
5449 (s390_ft_entry_gpr_zarch): New const.
5450 (s390_ft_entry_misc): New const.
5451 (s390_ft_entry_fr): New const.
5452 (s390_ft_entry_vr): New const.
5453 (s390_ft_main_31): New const.
5454 (s390_ft_main_64): New const.
5455 (s390_ft_exit_fr): New const.
5456 (s390_ft_exit_vr): New const.
5457 (s390_ft_exit_misc): New const.
5458 (s390_ft_exit_gpr_esa): New const.
5459 (s390_ft_exit_gpr_zarch): New const.
5460 (append_insns): New function.
5461 (s390_relocate_instruction): New function.
5462 (s390_install_fast_tracepoint_jump_pad): New function.
5463 (s390_get_min_fast_tracepoint_insn_len): New function.
5464 (s390_get_ipa_tdesc_idx): New function.
5465 (struct linux_target_ops): Wire in the above functions.
5466 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5467 * linux-s390-tdesc.h: New file.
5468
a4105d04
MK
54692016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5470
5471 * linux-s390-low.c (s390_supports_tracepoints): New function.
5472 (struct linux_target_ops): Fill supports_tracepoints hook.
5473
35ac8b3e
YQ
54742016-03-18 Yao Qi <yao.qi@linaro.org>
5475
5476 * linux-low.c (lwp_signal_can_be_delivered): New function.
5477 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5478
94610ec4
YQ
54792016-03-18 Yao Qi <yao.qi@linaro.org>
5480
5481 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5482 0 if signal is enqueued. Remove 'signal' from one debugging
5483 message. Move one debugging message to some lines below.
5484 Remove code setting 'signal' to 0.
5485
80aea927
YQ
54862016-03-18 Yao Qi <yao.qi@linaro.org>
5487
5488 * linux-low.c (linux_low_filter_event): Remove redundant
5489 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5490
b04fd3be
MK
54912016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5492
5493 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5494 (struct linux_target_ops): Wire in the above.
5495
c40c8d4b
YQ
54962016-03-03 Yao Qi <yao.qi@linaro.org>
5497
5498 * linux-low.c: Update comments to start_step_over.
5499
0f8288ae
YQ
55002016-03-03 Yao Qi <yao.qi@linaro.org>
5501
5502 PR server/19736
5503 * linux-low.c (handle_extended_wait): Set child suspended
5504 if event_lwp->bp_reinsert isn't zero.
5505
fdbd04a8
YQ
55062016-03-02 Yao Qi <yao.qi@linaro.org>
5507
5508 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5509 enqueue_pending_signal.
5510
6896a8fa
MK
55112016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5512
5513 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5514 is actually loaded.
5515
ab503087
MK
55162016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5517
5518 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5519 (s390_regmap_3264) [!__s390x__]: New global.
5520 (s390_collect_ptrace_register): Skip map entries containing -1.
5521 (s390_supply_ptrace_register): Ditto.
5522 (s390_fill_gprs_high): New function.
5523 (s390_store_gprs_high): New function.
5524 (s390_regsets): Add NT_S390_HIGH_GPRS.
5525 (s390_get_hwcap): Enable on 31-bit.
5526 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5527 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5528 Detect NT_S390_HIGH_GPRS.
5529 (s390_usrregs_info_3264): Enable on 31-bit.
5530 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5531 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5532
ae91f625
MK
55332016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5534
5535 PR gdb/13808
5536 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5537 * configure.srv: Ditto.
5538 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5539 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5540 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5541 (init_registers_amd64_linux): Remove prototype.
5542 (tdesc_amd64_linux): Remove declaration.
5543 (get_ipa_tdesc): New function.
5544 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5545 initialize remaining tdescs.
5546 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5547 (init_registers_i386_linux): Remove prototype.
5548 (tdesc_i386_linux): Remove declaration.
5549 (get_ipa_tdesc): New function.
5550 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5551 initialize remaining tdescs.
5552 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5553 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5554 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5555 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5556 (x86_get_ipa_tdesc_idx): New function.
5557 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5558 * linux-x86-tdesc.h: New file.
5559 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5560 (target_get_ipa_tdesc_idx): New macro.
5561 * tracepoint.c (ipa_tdesc_idx): New macro.
5562 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5563 (symbol_list): Add ipa_tdesc_idx.
5564 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5565 (ipa_tdesc): Remove.
5566 (ipa_tdesc_idx): New variable.
5567 (get_context_regcache): Use get_ipa_tdesc.
5568 (gdb_collect): Ditto.
5569 (gdb_probe): Ditto.
5570 * tracepoint.h (get_ipa_tdesc): New prototype.
5571 (ipa_tdesc): Remove.
5572
e7ad2f14
PA
55732016-02-24 Pedro Alves <palves@redhat.com>
5574
5575 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5576 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5577 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5578 Factor out common code between the USE_SIGTRAP_SIGINFO and
5579 !USE_SIGTRAP_SIGINFO blocks.
5580 (linux_low_filter_event): Call save_stop_reason instead of
5581 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5582 Update comments.
5583 (linux_wait_1): Update comments.
5584
657f9cde
WW
55852016-02-24 Wei-cheng Wang <cole945@gmail.com>
5586
5587 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
5588 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
5589 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
5590 ppc_insert_point, ppc_remove_point.
5591
b00b61e1
MK
55922016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
5593
5594 * linux-s390-low.c (s390_supports_z_point_type): New function.
5595 (struct linux_target_ops): Wire s390_supports_z_point_type in.
5596
553cb527
YQ
55972016-02-16 Yao Qi <yao.qi@linaro.org>
5598
5599 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
5600 PC. Get pc from regcache_read_pc.
5601
a5652c21
YQ
56022016-02-12 Yao Qi <yao.qi@linaro.org>
5603
5604 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
5605 or linux_get_pc_32bit.
5606 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
5607
ed443b61
YQ
56082016-02-12 Yao Qi <yao.qi@linaro.org>
5609
5610 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
5611 arm_linux_get_next_pcs_fixup.
5612
020ecd38
MK
56132016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5614
5615 * tracepoint.c (x_tracepoint_action_download): Change
5616 write_inferior_data_ptr to write_inferior_data_pointer.
5617 (cmd_qtstart): Likewise.
5618 (write_inferior_data_ptr): Remove.
5619 (download_agent_expr): Change write_inferior_data_ptr to
5620 write_inferior_data_pointer.
5621 (download_tracepoint_1): Likewise.
5622 (download_tracepoint): Likewise.
5623 (download_trace_state_variables): Likewise.
5624
7cae9051
WW
56252016-02-11 Wei-cheng Wang <cole945@gmail.com>
5626 Marcin Kościelnicki <koriakin@0x04.net>
5627
5628 * tracepoint.c (struct tracepoint_action_ops): Remove.
5629 (struct tracepoint_action): Remove ops.
5630 (m_tracepoint_action_download, r_tracepoint_action_download)
5631 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5632 size and offset accordingly.
5633 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5634 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5635 (tracepoint_action_send, tracepoint_action_download): New functions.
5636 Helpers for trace action handlers.
5637 (add_tracepoint_action): Remove setup actions ops.
5638 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5639
9f6a71b4
YQ
56402016-02-10 Yao Qi <yao.qi@linaro.org>
5641
5642 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5643
1e94266c
SM
56442016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5645
5646 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5647 to AC_OUTPUT.
5648 * configure: Regenerate.
5649
8adce034
SM
56502016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5651
5652 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5653 void * to gdb_byte *.
5654 * linux-low.c (siginfo_fixup): Likewise.
5655 (linux_xfer_siginfo): Likewise.
5656 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5657 Likewise.
5658 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5659
93813b37
WT
56602016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5661
5662 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5663 to srv_tgtobj.
5664 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5665 to srv_tgtobj.
5666 * linux-x86-low.c [__x86_64__]: Include
5667 "nat/amd64-linux-siginfo.h".
5668 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5669 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5670 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5671 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5672 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5673 (cpt_si_fd, si_timerid, si_overrun): Move from
5674 nat/amd64-linux-siginfo.c.
5675 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5676
8424cc97
SM
56772016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5678
5679 * server.c (skip_to_semicolon): Remove.
5680 (process_point_options): Use strchrnul instead of
5681 skip_to_semicolon.
5682
4d18591b
YQ
56832016-01-26 Yao Qi <yao.qi@linaro.org>
5684
5685 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5686 * linux-low.c (install_software_single_step_breakpoints): Don't
5687 call regcache_read_pc.
5688 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5689 argument pc.
5690
d8020970
YQ
56912016-01-26 Yao Qi <yao.qi@linaro.org>
5692
5693 * linux-low.c (install_software_single_step_breakpoints): Call
5694 regcache_read_pc instead of get_pc.
5695
8b207339
YQ
56962016-01-26 Yao Qi <yao.qi@linaro.org>
5697
5698 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5699 (unblock_async_io): Rename to ...
5700 (block_unblock_async_io): ... it. New function.
5701 (enable_async_io): Don't install SIGIO handler. Unblock it
5702 instead.
5703 (disable_async_io): Don't ignore SIGIO. Block it instead.
5704 (initialize_async_io): Install SIGIO handler. Don't call
5705 unblock_async_io.
5706
18879fef
YQ
57072016-01-26 Yao Qi <yao.qi@linaro.org>
5708
5709 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5710 first character is '\003', call *the_target->request_interrupt.
5711
a0f8e08a
YQ
57122016-01-25 Yao Qi <yao.qi@linaro.org>
5713
5714 * remote-utils.c (new_thread_notify): Remove.
5715 (dead_thread_notify): Likewise.
5716 * remote-utils.h (new_thread_notify): Remove declaration.
5717 (dead_thread_notify): Likewise.
5718
cc5fd9ab
MK
57192016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5720
5721 * gdb.trace/pending.exp: Fix expected message on continue.
5722
99e8eb11
MK
57232016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5724
5725 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5726 it works properly on big-endian machines where sizeof (CORE_ADDR)
5727 != sizeof (void *).
5728
a994041d
PA
57292016-01-21 Pedro Alves <palves@redhat.com>
5730
5731 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5732 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5733 * configure: Regenerate.
5734
f7a6a40d
YQ
57352016-01-21 Yao Qi <yao.qi@linaro.org>
5736
5737 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5738 is_thumb and set it according to CPSR saved on the stack.
5739 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5740 arm_sigreturn_next_pc.
5741
6f69e520
YQ
57422016-01-18 Yao Qi <yao.qi@linaro.org>
5743
5744 * linux-low.c (linux_set_pc_64bit): New function.
5745 (linux_get_pc_64bit): New function.
5746 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5747 Declare.
5748 * linux-sparc-low.c (debug_threads): Remove declaration.
5749 (sparc_get_pc): Remove.
5750 (the_low_target): Use linux_get_pc_64bit instead of
5751 sparc_get_pc.
5752 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5753 (the_low_target): Use linux_get_pc_64bit and
5754 linux_set_pc_64bit.
5755
276d4552
YQ
57562016-01-18 Yao Qi <yao.qi@linaro.org>
5757
5758 * linux-arm-low.c (debug_threads): Remove declaration.
5759 (arm_get_pc, arm_set_pc): Remove.
5760 (the_low_target): Use linux_get_pc_32bit and
5761 linux_set_pc_32bit.
5762 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5763 (the_low_target): Use linux_get_pc_32bit and
5764 linux_set_pc_32bit.
5765 * linux-cris-low.c (debug_threads): Remove declaration.
5766 (cris_get_pc, cris_set_pc,): Remove.
5767 (the_low_target): Use linux_get_pc_32bit and
5768 linux_set_pc_32bit.
5769 * linux-crisv32-low.c (debug_threads): Remove declaration.
5770 (cris_get_pc, cris_set_pc): Remove.
5771 (the_low_target): Use linux_get_pc_32bit and
5772 linux_set_pc_32bit.
5773 * linux-low.c: Include inttypes.h.
5774 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5775 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5776 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5777 (the_low_target): Use linux_get_pc_32bit and
5778 linux_set_pc_32bit.
5779 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5780 (the_low_target): Use linux_get_pc_32bit and
5781 linux_set_pc_32bit.
5782 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5783 (the_low_target): Use linux_get_pc_32bit and
5784 linux_set_pc_32bit.
5785 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5786 (the_low_target): Use linux_get_pc_32bit and
5787 linux_set_pc_32bit.
5788 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5789 (the_low_target): Use linux_get_pc_32bit and
5790 linux_set_pc_32bit.
5791
eb0edac8
GB
57922016-01-18 Gary Benson <gbenson@redhat.com>
5793
5794 * configure.ac (AC_FUNC_FORK): New check.
5795 * config.in: Regenerate.
5796 * configure: Likewise.
5797
1b451dda
YQ
57982016-01-14 Yao Qi <yao.qi@linaro.org>
5799
5800 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5801 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5802 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5803 arm_get_next_pcs_ctor.
5804
82075af2
JS
58052016-01-12 Josh Stone <jistone@redhat.com>
5806 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5807
5808 * inferiors.h: Include "gdb_vecs.h".
5809 (struct process_info): Add syscalls_to_catch.
5810 * inferiors.c (remove_process): Free syscalls_to_catch.
5811 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5812 syscall_return stops.
5813 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5814 * server.c (handle_general_set): Handle QCatchSyscalls.
5815 (handle_query): Report support for QCatchSyscalls.
5816 * target.h (struct target_ops): Add supports_catch_syscall.
5817 (target_supports_catch_syscall): New macro.
5818 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5819 (struct lwp_info): Add syscall_state.
5820 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5821 Maintain syscall_state and syscalls_to_catch across exec.
5822 (get_syscall_trapinfo): New function, proxy to the_low_target.
5823 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5824 (linux_low_filter_event): Toggle syscall_state entry/return for
5825 syscall traps, and set it ignored for all others.
5826 (gdb_catching_syscalls_p): New function.
5827 (gdb_catch_this_syscall_p): New function.
5828 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5829 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5830 (linux_supports_catch_syscall): New function.
5831 (linux_target_ops): Install it.
5832 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5833 (the_low_target): Install it.
5834
8f13a3ce
MF
58352016-01-12 Mike Frysinger <vapier@gentoo.org>
5836
5837 * acinclude.m4: Include new ../warning.m4 file.
5838 * configure: Regenerated.
5839 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5840
5b3da067
MF
58412016-01-12 Mike Frysinger <vapier@gentoo.org>
5842
5843 * ax.c (is_goto_target): Mark static.
5844 * linux-low.c (register_addr): Likewise.
5845 (linux_fetch_registers, linux_store_registers): Likewise.
5846 * mem-break.c (any_persistent_commands): Fix old prototype.
5847 (add_commands_to_breakpoint): Mark static.
5848 * regcache.c (find_register_by_name): Delete unused func.
5849 * remote-utils.c (hex_or_minus_one): Mark static.
5850 * server.c (monitor_show_help): Mark static.
5851 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5852 handle_v_requests): Likewise.
5853
bc504a31
PA
58542016-01-12 Pedro Alves <palves@redhat.com>
5855
5856 Remove use of the registered trademark symbol throughout.
5857
5a0dd67a
YQ
58582016-01-08 Yao Qi <yao.qi@linaro.org>
5859
5860 * remote-utils.c (getpkt): If c is '\003', call target hook
5861 request_interrupt.
5862
b2ca446f
YQ
58632016-01-06 Yao Qi <yao.qi@linaro.org>
5864
5865 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5866 linux-aarch32-low.c.
5867 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5868 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5869 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5870 (thumb2_breakpoint): Declare.
5871 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5872 linux-aarch32-low.h.
5873 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5874 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5875 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5876
edd88788
JB
58772016-01-01 Joel Brobecker <brobecker@adacore.com>
5878
5879 * gdbreplay.c (gdbreplay_version): Change copyright year in
5880 version message.
5881 * server.c (gdbserver_version): Likewise.
5882
65da7f14
PP
58832015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5884
5885 * server.c (crc32_table): Delete.
5886 (crc32): Use libiberty's xcrc32 function.
5887
4abd5ed2
JB
58882015-12-22 Joel Brobecker <brobecker@adacore.com>
5889
5890 * lynx-low.c (lynx_delete_thread_callback): New function.
5891 (lynx_mourn): Properly delete our process and all of its
5892 threads. Remove call to clear_inferiors.
5893
0e50fe5c
JB
58942015-12-22 Joel Brobecker <brobecker@adacore.com>
5895
5896 * target.c (thread_search_callback): Add check that
5897 the thread_stopped target callback is not NULL before
5898 calling it.
5899
35adc03f
YQ
59002015-12-21 Yao Qi <yao.qi@linaro.org>
5901
5902 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5903 arm breakpoint.
5904
bd2b2909
AT
59052015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5906
5907 * server.c (handle_query): Call target_supports_software_single_step.
5908
7fe5e27e
AT
59092015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5910
5911 * linux-low.c (single_step): New function.
5912 (linux_resume_one_lwp_throw): Call single_step.
5913 (start_step_over): Likewise.
5914
d9311bfa
AT
59152015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5916
5917 * Makefile.in (SFILES): Append arch/arm-linux.c,
5918 arch/arm-get-next-pcs.c.
5919 (arm-linux.o): New rule.
5920 (arm-get-next-pcs.o): New rule.
5921 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5922 arm-linux.o.
5923 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5924 to linux-aarch32-low.c.
5925 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5926 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5927 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5928 (thumb2_breakpoint_len): Likewise.
5929 (arm_is_thumb_mode): Make non-static.
5930 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5931 from linux-aarch32-low.c.
5932 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5933 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5934 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5935 (thumb2_breakpoint_len): Likewise.
5936 (arm_is_thumb_mode): New declaration.
5937 * linux-arm-low.c: Include arch/arm-linux.h
5938 aarch/arm-get-next-pcs.h, sys/syscall.h.
5939 (get_next_pcs_ops): New struct.
5940 (get_next_pcs_addr_bits_remove): New function.
5941 (get_next_pcs_is_thumb): New function.
5942 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5943 (arm_sigreturn_next_pc): Likewise.
5944 (get_next_pcs_syscall_next_pc): Likewise.
5945 (arm_gdbserver_get_next_pcs): Likewise.
5946 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5947 Initialize.
5948 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5949 * server.h: Include gdb_vecs.h.
5950
68ce2059
AT
59512015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5952
5953 * Makefile.in (SFILES): Append common/common-regcache.c.
5954 (OBS): Append common-regcache.o.
5955 (common-regcache.o): New rule.
5956 * regcache.c (init_register_cache): Initialize cache to
5957 REG_UNAVAILABLE.
5958 (regcache_raw_read_unsigned): New function.
5959 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5960 register_status enum.
5961
fa5308bd
AT
59622015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5963
5964 * linux-aarch64-low.c (the_low_targets): Rename
5965 breakpoint_reinsert_addr to get_next_pcs.
5966 * linux-arm-low.c (the_low_targets): Likewise.
5967 * linux-bfin-low.c (the_low_targets): Likewise.
5968 * linux-cris-low.c (the_low_targets): Likewise.
5969 * linux-crisv32-low.c (the_low_targets): Likewise.
5970 * linux-low.c (can_software_single_step): Likewise.
5971 (install_software_single_step_breakpoints): New function.
5972 (start_step_over): Use install_software_single_step_breakpoints.
5973 * linux-low.h: New CORE_ADDR vector.
5974 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5975 get_next_pcs.
5976 * linux-mips-low.c (the_low_targets): Likewise.
5977 * linux-nios2-low.c (the_low_targets): Likewise.
5978 * linux-sparc-low.c (the_low_targets): Likewise.
5979
4a6ed09b
PA
59802015-12-17 Pedro Alves <palves@redhat.com>
5981
5982 * linux-low.c (linux_kill_one_lwp): Remove references to
5983 LinuxThreads.
5984 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5985 to 'kill'.
5986 (linux_init_signals): Delete.
5987 (initialize_low): Adjust.
5988 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5989
7544db95
PA
59902015-12-16 Pedro Alves <palves@redhat.com>
5991
5992 * configure.ac (compiler warning flags): When testing a
5993 -Wno-foo option, check whether -Wfoo works instead.
5994 * configure: Regenerate.
5995
8020350c
DB
59962015-12-11 Don Breazeal <donb@codesourcery.com>
5997
5998 * server.c (process_serial_event): Don't exit from gdbserver
5999 in remote mode if there are still active inferiors.
6000
db91f502
YQ
60012015-12-11 Yao Qi <yao.qi@linaro.org>
6002
6003 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6004 arm_breakpoint_at if the process is 32-bit.
6005
b37a6290
YQ
60062015-12-11 Yao Qi <yao.qi@linaro.org>
6007
6008 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6009 arm breakpoint.
6010
17b1509a
YQ
60112015-12-07 Yao Qi <yao.qi@linaro.org>
6012
6013 * configure.srv: Append arm.o to srv_tgtobj for
6014 aarch64*-*-linux* target.
6015 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6016 from linux-arm-low.c.
6017 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6018 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6019 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6020 (thumb2_breakpoint_len): Likewise.
6021 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6022 (arm_breakpoint_kinds): Likewise.
6023 (arm_breakpoint_kind_from_pc): Likewise.
6024 (arm_sw_breakpoint_from_kind): Likewise.
6025 (arm_breakpoint_kind_from_current_state): Likewise.
6026 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6027 (arm_sw_breakpoint_from_kind): Declare.
6028 (arm_breakpoint_kind_from_current_state): Declare.
6029 (arm_breakpoint_at): Declare.
6030 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6031 arm_sw_breakpoint_from_kind if process is 32-bit.
6032 (aarch64_breakpoint_kind_from_pc): New function.
6033 (aarch64_breakpoint_kind_from_current_state): New function.
6034 (the_low_target): Initialize fields breakpoint_kind_from_pc
6035 and breakpoint_kind_from_current_state.
6036 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6037 linux-aarch32-low.c.
6038 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6039 (arm_breakpoint, arm_breakpoint_len): Likewise.
6040 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6041 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6042 (arm_is_thumb_mode): Likewise.
6043 (arm_breakpoint_at): Likewise.
6044 (arm_breakpoint_kind_from_pc): Likewise.
6045 (arm_sw_breakpoint_from_kind): Likewise.
6046 (arm_breakpoint_kind_from_current_state): Likewise.
6047
6048 Revert:
6049 2015-08-04 Yao Qi <yao.qi@linaro.org>
6050
6051 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6052 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6053 * server.c (extended_protocol): Remove "static".
6054 * server.h (extended_protocol): Declare it.
6055
ece66d65
JS
60562015-12-04 Josh Stone <jistone@redhat.com>
6057
6058 * target.h (struct target_ops) <arch_setup>: Rename to ...
6059 (struct target_ops) <post_create_inferior>: ... this.
6060 (target_arch_setup): Rename to ...
6061 (target_post_create_inferior): ... this, calling post_create_inferior.
6062 * server.c (start_inferior): Update target_arch_setup calls to
6063 target_post_create_inferior.
6064 * linux-low.c (linux_low_ptrace_options): Forward declare.
6065 (linux_arch_setup): Update its comment for general use.
6066 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6067 (struct linux_target_ops): Use linux_post_create_inferior.
6068 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6069 to post_create_inferior.
6070 * nto-low.c (struct nto_target_ops): Likewise.
6071 * spu-low.c (struct spu_target_ops): Likewise.
6072 * win32-low.c (struct win32_target_ops): Likewise.
6073
e58c48b4
AT
60742015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6075
6076 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6077
fbec8956
AT
60782015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6079
6080 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6081 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6082 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6083 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6084 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6085 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6086 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6087 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6088 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6089 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6090 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6091 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6092
9b4c5f87
AT
60932015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6094
6095 * linux-low.c (linux_look_up_symbols): Don't call
6096 linux_supports_traceclone.
6097 * linux-low.h (thread_db_init): Remove use_events argument.
6098 * thread-db.c (thread_db_use_event): Remove global variable.
6099 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6100 (struct thread_db) <td_create_bp>: Remove field.
6101 (thread_db_create_event): Remove function.
6102 (thread_db_enable_reporting): Likewise.
6103 (find_one_thread): Don't check for thread_db_use_events.
6104 (attach_thread): Likewise.
6105 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6106 (try_thread_db_load_1): Don't check for thread_db_use_events.
6107 (thread_db_init): Remove use_events argument and thread events
6108 handling.
6109 (remove_thread_event_breakpoints): Remove function.
6110 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6111
7d00775e
AT
61122015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6113
6114 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6115 New function.
6116 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6117 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6118 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6119 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6120 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6121 Initialize.
6122 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6123 New function.
6124 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6125 * linux-low.c (can_hardware_single_step): Use
6126 supports_hardware_single_step.
6127 (can_software_single_step): New function.
6128 (start_step_over): Call can_software_single_step.
6129 (linux_supports_hardware_single_step): New function.
6130 (struct target_ops) <supports_software_single_step>: Initialize.
6131 * linux-low.h (struct linux_target_ops)
6132 <supports_hardware_single_step>: Initialize.
6133 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6134 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6135 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6136 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6137 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6138 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6139 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6140 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6141 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6142 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6143 Initialize.
6144 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6145 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6146 Initialize.
6147 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6148 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6149 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6150 New function.
6151 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6152 * target.h (struct target_ops): <supports_software_single_step>:
6153 New field.
6154 (target_supports_software_single_step): New macro.
6155
2d97cd35
AT
61562015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6157
6158 * linux-low.c (linux_wait_1): Fix pc advance condition.
6159 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6160 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6161
769ef81f
AT
61622015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6163
6164 * linux-arm-low.c (arm_is_thumb_mode): New function.
6165 (arm_breakpoint_at): Use arm_is_thumb_mode.
6166 (arm_breakpoint_kind_from_current_state): New function.
6167 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6168 Initialize.
6169 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6170 (linux_breakpoint_kind_from_current_state): New function.
6171 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6172 * linux-low.h (struct linux_target_ops)
6173 <breakpoint_kind_from_current_state>: New field.
6174 * target.h (struct target_ops): Likewise.
6175 (target_breakpoint_kind_from_current_state): New macro.
6176
1bebeeca
PA
61772015-11-30 Pedro Alves <palves@redhat.com>
6178
6179 * linux-low.c (linux_resume): Wake up the event loop before
6180 returning.
6181
a67a9fae
PA
61822015-11-30 Pedro Alves <palves@redhat.com>
6183
6184 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6185 check.
6186 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6187 to -1.
6188 * target.c (struct thread_search): New structure.
6189 (thread_search_callback): New function.
6190 (prev_general_thread): New global.
6191 (prepare_to_access_memory, done_accessing_memory): New functions.
6192 * target.h (prepare_to_access_memory, done_accessing_memory):
6193 Replace macros with function declarations.
6194
f2faf941
PA
61952015-11-30 Pedro Alves <palves@redhat.com>
6196
6197 PR 14618
6198 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6199 report TARGET_WAITKIND_NO_RESUMED.
6200 * remote-utils.c (prepare_resume_reply): Handle
6201 TARGET_WAITKIND_NO_RESUMED.
6202 * server.c (report_no_resumed): New global.
6203 (handle_query) <qSupported>: Handle "no-resumed+". Report
6204 "no-resumed+" support.
6205 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6206 return error if the client doesn't support no-resumed events.
6207 (push_stop_notification): New function.
6208 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6209 events if the client supports them.
6210
a681f9c9
PA
62112015-11-30 Pedro Alves <palves@redhat.com>
6212
6213 * linux-low.c (thread_still_has_status_pending_p): Don't check
6214 vCont;t here.
6215 (lwp_resumed): New function.
6216 (status_pending_p_callback): Return early if the LWP is not
6217 supposed to be resumed.
6218
65706a29
PA
62192015-11-30 Pedro Alves <palves@redhat.com>
6220
6221 * linux-low.c (handle_extended_wait): Assert that the LWP's
6222 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6223 thread create events, leave the new child's status pending.
6224 (linux_low_filter_event): If GDB wants to hear about thread exit
6225 events, leave the LWP marked dead and don't delete it.
6226 (linux_wait_for_event_filtered): Don't check for thread exit.
6227 (filter_exit_event): New function.
6228 (linux_wait_1): Use it, when returning an exit event.
6229 (linux_resume_one_lwp_throw): Assert that the LWP's
6230 waitstatus is TARGET_WAITKIND_IGNORE.
6231 * remote-utils.c (prepare_resume_reply): Handle
6232 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6233 * server.c (report_thread_events): New global.
6234 (handle_general_set): Handle QThreadEvents.
6235 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6236 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6237 TARGET_WAITKIND_THREAD_EXITED.
6238 * server.h (report_thread_events): Declare.
6239
56cf4bed
PA
62402015-11-30 Pedro Alves <palves@redhat.com>
6241
6242 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6243 the thread's last_resume_kind was resume_stop.
6244
500c1d85
PA
62452015-11-30 Pedro Alves <palves@redhat.com>
6246
6247 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6248 before returning.
6249
de979965
PA
62502015-11-30 Pedro Alves <palves@redhat.com>
6251
6252 * server.c (handle_v_requests): Handle vCtrlC.
6253
34c65914
PA
62542015-11-30 Pedro Alves <palves@redhat.com>
6255
6256 * gdbthread.h (find_any_thread_of_pid): Declare.
6257 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6258 functions.
6259 * server.c (handle_query): If current_thread is NULL, look for
6260 another thread of the selected process.
6261
79efa585 62622015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 6263 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
6264
6265 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6266 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6267 name in reply.
6268 * target.h (struct target_ops) <thread_name>: New field.
6269 (target_thread_name): New macro.
6270
80d82c19
JB
62712015-11-23 Joel Brobecker <brobecker@adacore.com>
6272
6273 * regcache.h (regcache_invalidate_pid): Add declaration.
6274 * regcache.c (regcache_invalidate_pid): New function, extracted
6275 from regcache_invalidate.
6276 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6277 Add trivial documentation comment.
6278 * lynx-low.c: Use regcache_invalidate_pid instead of
6279 regcache_invalidate.
6280
64da5dd5
JB
62812015-11-23 Joel Brobecker <brobecker@adacore.com>
6282
6283 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6284 and Elf64_auxv_t if the target is Android.
6285
37ce4055
DE
62862015-11-22 Doug Evans <xdje42@gmail.com>
6287
6288 * target.h: #include <sys/types.h>.
6289
06e03fff
PA
62902015-11-19 Pedro Alves <palves@redhat.com>
6291
6292 * linux-low.c (linux_process_qsupported): Change prototype.
6293 Adjust.
6294 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6295 Change prototype.
6296 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6297 and adjust to loop over all features.
6298 * server.c (handle_query) <qSupported>: Adjust to call
6299 target_process_qsupported once, passing it a vector of unprocessed
6300 features.
6301 * target.h (struct target_ops) <process_qsupported>: Change
6302 prototype.
6303 (target_process_qsupported): Adjust.
6304
9a084706
PA
63052015-11-19 Pedro Alves <palves@redhat.com>
6306
6307 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6308 mode.
6309 * configure: Regenerate.
6310
dad44a1f
PA
63112015-11-19 Pedro Alves <palves@redhat.com>
6312
6313 * configure: Regenerate.
6314
231c0592
YQ
63152015-11-19 Yao Qi <yao.qi@linaro.org>
6316
6317 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6318 type to uint32_t.
6319
6c1c9a8b
YQ
63202015-11-19 Yao Qi <yao.qi@linaro.org>
6321
6322 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6323 (struct aarch64_operand): Move enum out.
6324
9caa3311
YQ
63252015-11-19 Yao Qi <yao.qi@linaro.org>
6326
6327 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6328 struct user_fpsimd_state *.
6329 (aarch64_store_fpregset): Likewise.
6330
6a69a054
YQ
63312015-11-19 Yao Qi <yao.qi@linaro.org>
6332
6333 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6334 struct user_pt_regs *.
6335 (aarch64_store_gregset): Likewise.
6336
1798301e
PA
63372015-11-18 Pedro Alves <palves@redhat.com>
6338
6339 * Makefile.in (all_object_files): Add $IPA_OBJS.
6340
ce7715e2
PA
63412015-11-17 Pedro Alves <palves@redhat.com>
6342
6343 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6344 GDB_SIGNAL_0 and gdb_signal_to_string.
6345
c0879059
PA
63462015-11-17 Pedro Alves <palves@redhat.com>
6347
6348 * win32-low.c (handle_output_debug_string): Remove parameter.
6349 (win32_kill): Remove our_status local and adjust call to
6350 handle_output_debug_string.
6351 (get_child_debug_event): Adjust call to
6352 handle_output_debug_string.
6353
1996e237
SM
63542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6355
6356 * linux-mips-low.c (mips_fill_gregset): Add cast.
6357 (mips_store_gregset): Likewise.
6358 (mips_fill_fpregset): Likewise.
6359 (mips_store_fpregset): Likewise.
6360
cbec665b
SM
63612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6364 priv.
6365
eb3e3c67
SM
63662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * linux-mips-low.c (mips_linux_new_thread): Change type of
6369 watch_type to enum target_hw_bp_type.
6370
171de4b8
SM
63712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6372
6373 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6374 Change return type to arm_hwbp_type.
6375
04248ead
SM
63762015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6379 (arm_store_gregset): Likewise.
6380 * linux-arm-low.c (arm_get_hwcap): Likewise.
6381 (arm_read_description): Likewise.
6382
04b3479c
SM
63832015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6384
6385 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6386
2bc84e8a
SM
63872015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6388
6389 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6390 (ppc_fill_vsxregset): Likewise.
6391 (ppc_store_vsxregset): Likewise.
6392 (ppc_fill_vrregset): Likewise.
6393 (ppc_store_vrregset): Likewise.
6394 (ppc_fill_evrregset): Likewise.
6395 (ppc_store_evrregset): Likewise.
6396
e6c5bb05
SM
63972015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * linux-ppc-low.c (ppc_usrregs_info): Remove
6400 forward-declaration.
6401 (ppc_arch_setup): Move lower in file.
6402
7ea45d72
SM
64032015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6406 (ps_pdwrite): Likewise.
6407
69291610
HW
64082015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6409
6410 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6411 to after assert checks.
6412
b42945fd
SM
64132015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6414
6415 * proc-service.c (ps_pdread): Add/adjust casts.
6416 (ps_pdwrite): Add/adjust casts.
6417
d6f85c84
SM
64182015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6419
6420 * server.c (handle_search_memory_1): Cast return value of
6421 memmem.
6422
f98cd059
SM
64232015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6424
6425 * server.c (write_qxfer_response): Change type of data to
6426 gdb_byte *.
6427
d2412fa5
PA
64282015-10-29 Pedro Alves <palves@redhat.com>
6429
6430 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6431
c17414a2
PA
64322015-10-29 Pedro Alves <palves@redhat.com>
6433
6434 * tracepoint.c (clear_installed_tracepoints): Add casts.
6435
e053fbc4
PA
64362015-10-29 Pedro Alves <palves@redhat.com>
6437
6438 * server.c (handle_v_cont, process_serial_event): Add enum
6439 gdb_signal casts to signal parsing code.
6440
add67df8
PA
64412015-10-29 Pedro Alves <palves@redhat.com>
6442
6443 * linux-low.h (NULL_REGSET): Define.
6444 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6445 * linux-arm-low.c (arm_regsets): Likewise.
6446 * linux-crisv32-low.c (cris_regsets): Likewise.
6447 * linux-m68k-low.c (m68k_regsets): Likewise.
6448 * linux-mips-low.c (mips_regsets): Likewise.
6449 * linux-nios2-low.c (nios2_regsets): Likewise.
6450 * linux-ppc-low.c (ppc_regsets): Likewise.
6451 * linux-s390-low.c (s390_regsets): Likewise.
6452 * linux-sh-low.c (sh_regsets): Likewise.
6453 * linux-sparc-low.c (sparc_regsets): Likewise.
6454 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6455 * linux-tile-low.c (tile_regsets): Likewise.
6456 * linux-x86-low.c (x86_regsets): Likewise.
6457 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6458
50bc912a
PA
64592015-10-29 Pedro Alves <palves@redhat.com>
6460
6461 * linux-low.h (NULL_REGSET): Define.
6462 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6463 * linux-arm-low.c (arm_regsets): Likewise.
6464 * linux-crisv32-low.c (cris_regsets): Likewise.
6465 * linux-m68k-low.c (m68k_regsets): Likewise.
6466 * linux-mips-low.c (mips_regsets): Likewise.
6467 * linux-nios2-low.c (nios2_regsets): Likewise.
6468 * linux-ppc-low.c (ppc_regsets): Likewise.
6469 * linux-s390-low.c (s390_regsets): Likewise.
6470 * linux-sh-low.c (sh_regsets): Likewise.
6471 * linux-sparc-low.c (sparc_regsets): Likewise.
6472 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6473 * linux-tile-low.c (tile_regsets): Likewise.
6474 * linux-x86-low.c (x86_regsets): Likewise.
6475 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6476
682b2546
DE
64772015-10-26 Doug Evans <dje@google.com>
6478
6479 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6480
963843d4
DE
64812015-10-26 Doug Evans <dje@google.com>
6482
6483 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6484
d41401ac
DE
64852015-10-26 Doug Evans <dje@google.com>
6486
6487 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6488 for debug_printf.
6489 (attach_thread, find_new_threads_callback): Ditto.
6490
3db28855
AT
64912015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6492
6493 * mem-break.h (set_breakpoint_data): Remove.
6494
fb78e89c
AT
64952015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6496
6497 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6498 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6499 (initialize_low): Remove set_breakpoint_data call.
6500 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6501 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6502 (initialize_low): Remove set_breakpoint_data call.
6503 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6504 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6505 (initialize_low): Remove set_breakpoint_data call.
6506
2e6ee069
AT
65072015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6508
6509 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6510 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6511 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6512 * target.h (target_breakpoint_kind_from_pc): New macro.
6513
1652a986
AT
65142015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6515
6516 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6517 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6518 the default breakpoint kind.
6519
abeead09
AT
65202015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6521
6522 * linux-arm-low.c (arm_supports_z_point_type): Add software
6523 breakpoint support.
6524
b0b4b501
AT
65252015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6526
6527 * linux-arm-low.c: Refactor breakpoint definitions.
6528 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6529 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6530
8689682c
AT
65312015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6532
6533 * Makefile.in: Add arm.c/o.
6534 * configure.srv: Likewise.
6535 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6536 (arm_breakpoint_kind_from_pc): New function.
6537 (arm_sw_breakpoint_from_kind): Return proper kind.
6538 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6539
27165294
AT
65402015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6541
6542 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6543 removal.
6544 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6545 (struct raw_breakpoint) <size>: Remove.
6546 (struct raw_breakpoint) <kind>: Add.
6547 (bp_size): New function.
6548 (bp_opcode): Likewise.
6549 (find_raw_breakpoint_at): Adjust for kind.
6550 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6551 (remove_memory_breakpoint): Adjust for kind call bp_size.
6552 (set_raw_breakpoint_at): Adjust for kind.
6553 (set_breakpoint): Likewise.
6554 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6555 (delete_raw_breakpoint): Adjust for kind.
6556 (delete_breakpoint): Likewise.
6557 (find_gdb_breakpoint): Likewise.
6558 (set_gdb_breakpoint_1): Likewise.
6559 (set_gdb_breakpoint): Likewise.
6560 (delete_gdb_breakpoint_1): Likewise.
6561 (delete_gdb_breakpoint): Likewise.
6562 (uninsert_raw_breakpoint): Likewise.
6563 (reinsert_raw_breakpoint): Likewise.
6564 (set_breakpoint_data): Remove.
6565 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6566 (check_mem_read): Adjust for kind call bp_size.
6567 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6568 (clone_one_breakpoint): Adjust for kind.
6569 * mem-break.h (set_gdb_breakpoint): Likewise.
6570 (delete_gdb_breakpoint): Likewise.
6571 * server.c (process_serial_event): Likewise.
6572
dd373349
AT
65732015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6574
6575 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6576 (struct linux_target_ops) <breakpoint>: Remove.
6577 (struct linux_target_ops) <breakpoint_len>: Remove.
6578 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6579 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6580 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6581 (arm_sw_breakpoint_from_kind): New function.
6582 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
6583 (struct linux_target_ops) <breakpoint>: Remove.
6584 (struct linux_target_ops) <breakpoint_len>: Remove.
6585 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6586 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6587 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
6588 (struct linux_target_ops) <breakpoint>: Remove.
6589 (struct linux_target_ops) <breakpoint_len>: Remove.
6590 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6591 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6592 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
6593 (struct linux_target_ops) <breakpoint>: Remove.
6594 (struct linux_target_ops) <breakpoint_len>: Remove.
6595 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6596 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6597 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
6598 and sw_breakpoint_from_kind to increment the pc.
6599 (linux_breakpoint_kind_from_pc): New function.
6600 (linux_sw_breakpoint_from_kind): New function.
6601 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
6602 (initialize_low): Call breakpoint_kind_from_pc and
6603 sw_breakpoint_from_kind to replace breakpoint_data/len.
6604 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
6605 New field.
6606 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
6607 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
6608 (struct linux_target_ops) <breakpoint>: Remove.
6609 (struct linux_target_ops) <breakpoint_len>: Remove.
6610 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6611 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6612 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
6613 (struct linux_target_ops) <breakpoint>: Remove.
6614 (struct linux_target_ops) <breakpoint_len>: Remove.
6615 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6616 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6617 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
6618 (struct linux_target_ops) <breakpoint>: Remove.
6619 (struct linux_target_ops) <breakpoint_len>: Remove.
6620 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6621 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6622 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
6623 (struct linux_target_ops) <breakpoint>: Remove.
6624 (struct linux_target_ops) <breakpoint_len>: Remove.
6625 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6626 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6627 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
6628 (struct linux_target_ops) <breakpoint>: Remove.
6629 (struct linux_target_ops) <breakpoint_len>: Remove.
6630 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6631 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6632 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6633 (struct linux_target_ops) <breakpoint>: Remove.
6634 (struct linux_target_ops) <breakpoint_len>: Remove.
6635 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6636 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6637 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6638 (struct linux_target_ops) <breakpoint>: Remove.
6639 (struct linux_target_ops) <breakpoint_len>: Remove.
6640 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6641 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6642 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6643 (struct linux_target_ops) <breakpoint>: Remove.
6644 (struct linux_target_ops) <breakpoint_len>: Remove.
6645 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6646 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6647 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6648 (struct linux_target_ops) <breakpoint>: Remove.
6649 (struct linux_target_ops) <breakpoint_len>: Remove.
6650 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6651 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6652 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6653 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6654 (struct linux_target_ops) <breakpoint>: Remove.
6655 (struct linux_target_ops) <breakpoint_len>: Remove.
6656 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6657 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6658 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6659 (struct linux_target_ops) <breakpoint>: Remove.
6660 (struct linux_target_ops) <breakpoint_len>: Remove.
6661 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6662 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6663
4cd98a19
AT
66642015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6665
6666 * linux-cris-low.c (cris_get_pc): Remove void arg.
6667
774ee6d2
AR
66682015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6669
6670 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6671 variable name.
6672
833dcd29
AR
66732015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6674
6675 * inferiors.c (thread_pid_matches_callback): New function.
6676 (find_thread_process): New function.
6677 (remove_thread): Reset current_thread.
6678 (remove_process): Assert threads have been removed first.
6679
8d689ee5
YQ
66802015-10-15 Yao Qi <yao.qi@linaro.org>
6681
6682 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6683 if it is 3.
6684 (aarch64_remove_point): Likewise.
6685 * regcache.c (regcache_register_size): New function.
6686
1c2e1515
YQ
66872015-10-12 Yao Qi <yao.qi@linaro.org>
6688
6689 * linux-aarch64-low.c: Update all callers as emit_load_store
6690 is renamed to aarch64_emit_load_store.
6691
e1c587c3
YQ
66922015-10-12 Yao Qi <yao.qi@linaro.org>
6693
6694 * linux-aarch64-low.c: Update all callers of function renaming
6695 from emit_insn to aarch64_emit_insn.
6696
b6542f81
YQ
66972015-10-12 Yao Qi <yao.qi@linaro.org>
6698
6699 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6700 arch/aarch64-insn.h.
6701 (struct aarch64_memory_operand): Likewise.
6702 (ENCODE): Likewise.
6703 (emit_insn): Move to arch/aarch64-insn.c.
6704 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6705 (emit_load_store): Move to arch/aarch64-insn.c.
6706 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6707 (can_encode_int32): Remove.
6708
246994ce
YQ
67092015-10-12 Yao Qi <yao.qi@linaro.org>
6710
6711 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6712 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6713 (aarch64_relocate_instruction): Likewise.
6714 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6715 (struct aarch64_insn_visitor): Likewise.
6716
0badd99f
YQ
67172015-10-12 Yao Qi <yao.qi@linaro.org>
6718
6719 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6720 (struct aarch64_insn_visitor): New.
6721 (struct aarch64_insn_relocation_data): New.
6722 (aarch64_ftrace_insn_reloc_b): New function.
6723 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6724 (aarch64_ftrace_insn_reloc_cb): Likewise.
6725 (aarch64_ftrace_insn_reloc_tb): Likewise.
6726 (aarch64_ftrace_insn_reloc_adr): Likewise.
6727 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6728 (aarch64_ftrace_insn_reloc_others): Likewise.
6729 (visitor): New.
6730 (aarch64_relocate_instruction): Use visitor.
6731
dfaffe9d
YQ
67322015-10-12 Yao Qi <yao.qi@linaro.org>
6733
6734 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6735 int. Add argument buf.
6736 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6737 aarch64_relocate_instruction.
6738
70b439f0
YQ
67392015-10-12 Yao Qi <yao.qi@linaro.org>
6740
6741 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6742 argument insn. Remove local variable insn. Don't call
6743 target_read_uint32.
6744 (aarch64_install_fast_tracepoint_jump_pad): Call
6745 target_read_uint32.
6746
7781c06f
YQ
67472015-09-30 Yao Qi <yao.qi@linaro.org>
6748
6749 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6750 (emit_load_store_pair): Likewise.
6751
9a3c8263
SM
67522015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6753
6754 * dll.c (match_dll): Add cast(s).
6755 (unloaded_dll): Likewise.
6756 * linux-low.c (second_thread_of_pid_p): Likewise.
6757 (delete_lwp_callback): Likewise.
6758 (count_events_callback): Likewise.
6759 (select_event_lwp_callback): Likewise.
6760 (linux_set_resume_request): Likewise.
6761 * server.c (accumulate_file_name_length): Likewise.
6762 (emit_dll_description): Likewise.
6763 (handle_qxfer_threads_worker): Likewise.
6764 (visit_actioned_threads): Likewise.
6765 * thread-db.c (any_thread_of): Likewise.
6766 * tracepoint.c (same_process_p): Likewise.
6767 (match_blocktype): Likewise.
6768 (build_traceframe_info_xml): Likewise.
6769
224c3ddb
SM
67702015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6771
6772 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6773 assignment.
6774 (gdb_unparse_agent_expr): Likewise.
6775 * hostio.c (require_data): Likewise.
6776 (handle_pread): Likewise.
6777 * linux-low.c (disable_regset): Likewise.
6778 (fetch_register): Likewise.
6779 (store_register): Likewise.
6780 (get_dynamic): Likewise.
6781 (linux_qxfer_libraries_svr4): Likewise.
6782 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6783 (set_fast_tracepoint_jump): Likewise.
6784 (uninsert_fast_tracepoint_jumps_at): Likewise.
6785 (reinsert_fast_tracepoint_jumps_at): Likewise.
6786 (validate_inserted_breakpoint): Likewise.
6787 (clone_agent_expr): Likewise.
6788 * regcache.c (init_register_cache): Likewise.
6789 * remote-utils.c (putpkt_binary_1): Likewise.
6790 (decode_M_packet): Likewise.
6791 (decode_X_packet): Likewise.
6792 (look_up_one_symbol): Likewise.
6793 (relocate_instruction): Likewise.
6794 (monitor_output): Likewise.
6795 * server.c (handle_search_memory): Likewise.
6796 (handle_qxfer_exec_file): Likewise.
6797 (handle_qxfer_libraries): Likewise.
6798 (handle_qxfer): Likewise.
6799 (handle_query): Likewise.
6800 (handle_v_cont): Likewise.
6801 (handle_v_run): Likewise.
6802 (captured_main): Likewise.
6803 * target.c (write_inferior_memory): Likewise.
6804 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6805 * tracepoint.c (init_trace_buffer): Likewise.
6806 (add_tracepoint_action): Likewise.
6807 (add_traceframe): Likewise.
6808 (add_traceframe_block): Likewise.
6809 (cmd_qtdpsrc): Likewise.
6810 (cmd_qtdv): Likewise.
6811 (cmd_qtstatus): Likewise.
6812 (response_source): Likewise.
6813 (response_tsv): Likewise.
6814 (cmd_qtnotes): Likewise.
6815 (gdb_collect): Likewise.
6816 (initialize_tracepoint): Likewise.
6817
afbe19f8
PL
68182015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6819
6820 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6821 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6822 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6823 <NOP>: New.
6824 (enum aarch64_condition_codes): New enum.
6825 (w0): New static global.
6826 (fp): Likewise.
6827 (lr): Likewise.
6828 (struct aarch64_memory_operand) <type>: New
6829 MEMORY_OPERAND_POSTINDEX type.
6830 (postindex_memory_operand): New helper function.
6831 (emit_ret): New function.
6832 (emit_load_store_pair): New function, factored out of emit_stp
6833 with support for MEMORY_OPERAND_POSTINDEX.
6834 (emit_stp): Rewrite using emit_load_store_pair.
6835 (emit_ldp): New function.
6836 (emit_load_store): Likewise.
6837 (emit_ldr): Mention post-index instruction in comment.
6838 (emit_ldrh): New function.
6839 (emit_ldrb): New function.
6840 (emit_ldrsw): Mention post-index instruction in comment.
6841 (emit_str): Likewise.
6842 (emit_subs): New function.
6843 (emit_cmp): Likewise.
6844 (emit_and): Likewise.
6845 (emit_orr): Likewise.
6846 (emit_orn): Likewise.
6847 (emit_eor): Likewise.
6848 (emit_mvn): Likewise.
6849 (emit_lslv): Likewise.
6850 (emit_lsrv): Likewise.
6851 (emit_asrv): Likewise.
6852 (emit_mul): Likewise.
6853 (emit_sbfm): Likewise.
6854 (emit_sbfx): Likewise.
6855 (emit_ubfm): Likewise.
6856 (emit_ubfx): Likewise.
6857 (emit_csinc): Likewise.
6858 (emit_cset): Likewise.
6859 (emit_nop): Likewise.
6860 (emit_ops_insns): New helper function.
6861 (emit_pop): Likewise.
6862 (emit_push): Likewise.
6863 (aarch64_emit_prologue): New function.
6864 (aarch64_emit_epilogue): Likewise.
6865 (aarch64_emit_add): Likewise.
6866 (aarch64_emit_sub): Likewise.
6867 (aarch64_emit_mul): Likewise.
6868 (aarch64_emit_lsh): Likewise.
6869 (aarch64_emit_rsh_signed): Likewise.
6870 (aarch64_emit_rsh_unsigned): Likewise.
6871 (aarch64_emit_ext): Likewise.
6872 (aarch64_emit_log_not): Likewise.
6873 (aarch64_emit_bit_and): Likewise.
6874 (aarch64_emit_bit_or): Likewise.
6875 (aarch64_emit_bit_xor): Likewise.
6876 (aarch64_emit_bit_not): Likewise.
6877 (aarch64_emit_equal): Likewise.
6878 (aarch64_emit_less_signed): Likewise.
6879 (aarch64_emit_less_unsigned): Likewise.
6880 (aarch64_emit_ref): Likewise.
6881 (aarch64_emit_if_goto): Likewise.
6882 (aarch64_emit_goto): Likewise.
6883 (aarch64_write_goto_address): Likewise.
6884 (aarch64_emit_const): Likewise.
6885 (aarch64_emit_call): Likewise.
6886 (aarch64_emit_reg): Likewise.
6887 (aarch64_emit_pop): Likewise.
6888 (aarch64_emit_stack_flush): Likewise.
6889 (aarch64_emit_zero_ext): Likewise.
6890 (aarch64_emit_swap): Likewise.
6891 (aarch64_emit_stack_adjust): Likewise.
6892 (aarch64_emit_int_call_1): Likewise.
6893 (aarch64_emit_void_call_2): Likewise.
6894 (aarch64_emit_eq_goto): Likewise.
6895 (aarch64_emit_ne_goto): Likewise.
6896 (aarch64_emit_lt_goto): Likewise.
6897 (aarch64_emit_le_goto): Likewise.
6898 (aarch64_emit_gt_goto): Likewise.
6899 (aarch64_emit_ge_got): Likewise.
6900 (aarch64_emit_ops_impl): New static global variable.
6901 (aarch64_emit_ops): New target function, return
6902 &aarch64_emit_ops_impl.
6903 (struct linux_target_ops): Install it.
6904
bb903df0
PL
69052015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6906
6907 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6908 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6909 aarch64-ipa.o.
6910 * linux-aarch64-ipa.c: New file.
6911 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6912 and endian.h.
6913 (aarch64_get_thread_area): New target method.
6914 (extract_signed_bitfield): New helper function.
6915 (aarch64_decode_ldr_literal): New function.
6916 (enum aarch64_opcodes): New enum.
6917 (struct aarch64_register): New struct.
6918 (struct aarch64_operand): New struct.
6919 (x0): New static global.
6920 (x1): Likewise.
6921 (x2): Likewise.
6922 (x3): Likewise.
6923 (x4): Likewise.
6924 (w2): Likewise.
6925 (ip0): Likewise.
6926 (sp): Likewise.
6927 (xzr): Likewise.
6928 (aarch64_register): New helper function.
6929 (register_operand): Likewise.
6930 (immediate_operand): Likewise.
6931 (struct aarch64_memory_operand): New struct.
6932 (offset_memory_operand): New helper function.
6933 (preindex_memory_operand): Likewise.
6934 (enum aarch64_system_control_registers): New enum.
6935 (ENCODE): New macro.
6936 (emit_insn): New helper function.
6937 (emit_b): New function.
6938 (emit_bcond): Likewise.
6939 (emit_cb): Likewise.
6940 (emit_tb): Likewise.
6941 (emit_blr): Likewise.
6942 (emit_stp): Likewise.
6943 (emit_ldp_q_offset): Likewise.
6944 (emit_stp_q_offset): Likewise.
6945 (emit_load_store): Likewise.
6946 (emit_ldr): Likewise.
6947 (emit_ldrsw): Likewise.
6948 (emit_str): Likewise.
6949 (emit_ldaxr): Likewise.
6950 (emit_stxr): Likewise.
6951 (emit_stlr): Likewise.
6952 (emit_data_processing_reg): Likewise.
6953 (emit_data_processing): Likewise.
6954 (emit_add): Likewise.
6955 (emit_sub): Likewise.
6956 (emit_mov): Likewise.
6957 (emit_movk): Likewise.
6958 (emit_mov_addr): Likewise.
6959 (emit_mrs): Likewise.
6960 (emit_msr): Likewise.
6961 (emit_sevl): Likewise.
6962 (emit_wfe): Likewise.
6963 (append_insns): Likewise.
6964 (can_encode_int32_in): New helper function.
6965 (aarch64_relocate_instruction): New function.
6966 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6967 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6968 (struct linux_target_ops): Install aarch64_get_thread_area,
6969 aarch64_install_fast_tracepoint_jump_pad and
6970 aarch64_get_min_fast_tracepoint_insn_len.
6971
787749ea
PL
69722015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6973
6974 * Makefile.in (aarch64-insn.o): New rule.
6975 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6976
9812b2e6
YQ
69772015-09-21 Yao Qi <yao.qi@linaro.org>
6978
6979 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6980
18fe412b
YQ
69812015-09-21 Yao Qi <yao.qi@linaro.org>
6982
6983 * tracepoint.c (max_jump_pad_size): Remove.
6984
a0cc84cd
YQ
69852015-09-18 Yao Qi <yao.qi@linaro.org>
6986
6987 * linux-aarch64-low.c: Don't include sys/uio.h.
6988 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6989
d78908cf
WW
69902015-09-16 Wei-cheng Wang <cole945@gmail.com>
6991
6992 * tracepoint.c (eval_result_type): Change prototype.
6993 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6994
d57e0d50
PA
69952015-09-15 Pedro Alves <palves@redhat.com>
6996
6997 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6998 Check whether to report exec events instead of checking whether
6999 multiprocess is enabled.
7000
5a676acc
PA
70012015-09-15 Pedro Alves <palves@redhat.com>
7002
7003 PR remote/18965
7004 * remote-utils.c (prepare_resume_reply): Merge
7005 TARGET_WAITKIND_VFORK_DONE switch case with the
7006 TARGET_WAITKIND_FORKED case.
7007
7c5d0fad
YQ
70082015-09-15 Yao Qi <yao.qi@linaro.org>
7009
7010 * server.c (handle_query): Check string comparison using
7011 "else if" instead of "if".
7012
750ce8d1
YQ
70132015-09-15 Yao Qi <yao.qi@linaro.org>
7014
7015 * server.c (vCont_supported): New global variable.
7016 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7017 matches. Append ";vContSupported+" to own_buf.
7018 (handle_v_requests): Append ";s;S" to own_buf if target supports
7019 hardware single step or vCont_supported is false.
7020 (capture_main): Set vCont_supported to zero.
7021
70b90b91
YQ
70222015-09-15 Yao Qi <yao.qi@linaro.org>
7023
7024 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7025 it to ...
7026 (linux_supports_hardware_single_step): ... New function.
7027 (linux_target_ops): Update.
7028 * lynx-low.c (lynx_target_ops): Set field
7029 supports_hardware_single_step to target_can_do_hardware_single_step.
7030 * nto-low.c (nto_target_ops): Likewise.
7031 * spu-low.c (spu_target_ops): Likewise.
7032 * win32-low.c (win32_target_ops): Likewise.
7033 * target.c (target_can_do_hardware_single_step): New function.
7034 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7035 Remove. <supports_hardware_single_step>: New field.
7036 (target_supports_conditional_breakpoints): Remove.
7037 (target_supports_hardware_single_step): New macro.
7038 (target_can_do_hardware_single_step): Declare.
7039 * server.c (handle_query): Use target_supports_hardware_single_step
7040 instead of target_supports_conditional_breakpoints.
7041
ade90bde
YQ
70422015-09-15 Yao Qi <yao.qi@linaro.org>
7043
7044 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7045 function.
7046 (struct linux_target_ops the_low_target): Install
7047 aarch64_linux_siginfo_fixup.
7048
94585166
DB
70492015-09-11 Don Breazeal <donb@codesourcery.com>
7050 Luis Machado <lgustavo@codesourcery.com>
7051
7052 * linux-low.c (linux_mourn): Static declaration.
7053 (linux_arch_setup): Move in front of
7054 handle_extended_wait.
7055 (linux_arch_setup_thread): New function.
7056 (handle_extended_wait): Handle exec events. Call
7057 linux_arch_setup_thread. Make event_lwp argument a
7058 pointer-to-a-pointer.
7059 (check_zombie_leaders): Do not check stopped threads.
7060 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7061 (linux_low_filter_event): Add lwp and thread for exec'ing
7062 non-leader thread if leader thread has been deleted.
7063 Refactor code into linux_arch_setup_thread and call it.
7064 Pass child lwp pointer by reference to handle_extended_wait.
7065 (linux_wait_for_event_filtered): Update comment.
7066 (linux_wait_1): Prevent clobbering exec event status.
7067 (linux_supports_exec_events): New function.
7068 (linux_target_ops) <supports_exec_events>: Initialize new member.
7069 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7070 new member.
7071 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7072 * server.c (report_exec_events): New global variable.
7073 (handle_query): Handle qSupported query for exec-events feature.
7074 (captured_main): Initialize report_exec_events.
7075 * server.h (report_exec_events): Declare new global variable.
7076 * target.h (struct target_ops) <supports_exec_events>: New
7077 member.
7078 (target_supports_exec_events): New macro.
7079 * win32-low.c (win32_target_ops) <supports_exec_events>:
7080 Initialize new member.
7081
0568462b
MM
70822015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7083
7084 * linux-low.c (linux_low_enable_btrace): Remove.
7085 (linux_target_ops): Replace linux_low_enable_btrace with
7086 linux_enable_btrace.
7087
39edd165
YQ
70882015-09-03 Yao Qi <yao.qi@linaro.org>
7089
7090 * linux-aarch64-low.c (aarch64_insert_point): Call
7091 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7092 returns true.
7093
1db33b5a
UW
70942015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7095
7096 * linux-low.c (check_stopped_by_breakpoint): Use
7097 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7098
ab290430
PA
70992015-08-27 Pedro Alves <palves@redhat.com>
7100
7101 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7102
8d749320
SM
71032015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7104
6711b7f8
SM
7105 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7106 the XNEW-family equivalent.
8d749320
SM
7107 (compile_bytecodes): Likewise.
7108 * dll.c (loaded_dll): Likewise.
7109 * event-loop.c (append_callback_event): Likewise.
7110 (create_file_handler): Likewise.
7111 (create_file_event): Likewise.
7112 * hostio.c (handle_open): Likewise.
7113 * inferiors.c (add_thread): Likewise.
7114 (add_process): Likewise.
7115 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7116 * linux-arm-low.c (arm_new_process): Likewise.
7117 (arm_new_thread): Likewise.
7118 * linux-low.c (add_to_pid_list): Likewise.
7119 (linux_add_process): Likewise.
7120 (handle_extended_wait): Likewise.
7121 (add_lwp): Likewise.
7122 (enqueue_one_deferred_signal): Likewise.
7123 (enqueue_pending_signal): Likewise.
7124 (linux_resume_one_lwp_throw): Likewise.
7125 (linux_resume_one_thread): Likewise.
7126 (linux_read_memory): Likewise.
7127 (linux_write_memory): Likewise.
7128 * linux-mips-low.c (mips_linux_new_process): Likewise.
7129 (mips_linux_new_thread): Likewise.
7130 (mips_add_watchpoint): Likewise.
7131 * linux-x86-low.c (initialize_low_arch): Likewise.
7132 * lynx-low.c (lynx_add_process): Likewise.
7133 * mem-break.c (set_raw_breakpoint_at): Likewise.
7134 (set_breakpoint): Likewise.
7135 (add_condition_to_breakpoint): Likewise.
7136 (add_commands_to_breakpoint): Likewise.
7137 (clone_agent_expr): Likewise.
7138 (clone_one_breakpoint): Likewise.
7139 * regcache.c (new_register_cache): Likewise.
7140 * remote-utils.c (look_up_one_symbol): Likewise.
7141 * server.c (queue_stop_reply): Likewise.
7142 (start_inferior): Likewise.
7143 (queue_stop_reply_callback): Likewise.
7144 (handle_target_event): Likewise.
7145 * spu-low.c (fetch_ppc_memory): Likewise.
7146 (store_ppc_memory): Likewise.
7147 * target.c (set_target_ops): Likewise.
7148 * thread-db.c (thread_db_load_search): Likewise.
7149 (try_thread_db_load_1): Likewise.
7150 * tracepoint.c (add_tracepoint): Likewise.
7151 (add_tracepoint_action): Likewise.
7152 (create_trace_state_variable): Likewise.
7153 (cmd_qtdpsrc): Likewise.
7154 (cmd_qtro): Likewise.
7155 (add_while_stepping_state): Likewise.
7156 * win32-low.c (child_add_thread): Likewise.
7157 (get_image_name): Likewise.
7158
ed8b7b42
YQ
71592015-08-25 Yao Qi <yao.qi@linaro.org>
7160
7161 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7162
db3cb7cb
YQ
71632015-08-25 Yao Qi <yao.qi@linaro.org>
7164
7165 * Makefile.in (aarch64-linux.o): New rule.
7166 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7167 srv_tgtobj.
7168 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7169 (aarch64_init_debug_reg_state): Make it extern.
7170 (aarch64_linux_prepare_to_resume): Remove.
7171
f6011a1c
YQ
71722015-08-25 Yao Qi <yao.qi@linaro.org>
7173
7174 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7175 lwp_arch_private_info and ptid_of_lwp.
7176
88e2cf7e
YQ
71772015-08-25 Yao Qi <yao.qi@linaro.org>
7178
7179 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7180 Find proc_info by find_process_pid. All callers updated.
7181
5e35436e
YQ
71822015-08-25 Yao Qi <yao.qi@linaro.org>
7183
7184 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7185 Remove.
7186 (debug_reg_change_callback): Remove.
7187 (aarch64_notify_debug_reg_change): Remove.
7188
4a8a7965
YQ
71892015-08-25 Yao Qi <yao.qi@linaro.org>
7190
7191 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7192 Call current_lwp_ptid.
7193
32a271ee
YQ
71942015-08-25 Yao Qi <yao.qi@linaro.org>
7195
7196 * linux-aarch64-low.c (debug_reg_change_callback): Use
7197 debug_printf.
7198
0d51c8d7
YQ
71992015-08-25 Yao Qi <yao.qi@linaro.org>
7200
7201 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7202
31a43dd5
YQ
72032015-08-25 Yao Qi <yao.qi@linaro.org>
7204
7205 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7206
8ee52567
YQ
72072015-08-25 Yao Qi <yao.qi@linaro.org>
7208
7209 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7210 the code.
7211
ff3f0f45
YQ
72122015-08-25 Yao Qi <yao.qi@linaro.org>
7213
7214 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7215 Remove.
7216 (debug_reg_change_callback): Remove argument entry and add argument
7217 lwp. Remove local variable thread. Don't print thread id in the
7218 debugging output. Don't check whether pid of thread equals to pid.
7219 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7220 iterate_over_lwps instead find_inferior.
7221
3d40fbb5
PA
72222015-08-24 Pedro Alves <palves@redhat.com>
7223
7224 * inferiors.c (get_first_process): New function.
7225 * inferiors.h (get_first_process): New declaration.
7226 * remote-utils.c (read_ptid): Default to the first process in the
7227 list, instead of to the current thread's process.
7228
438e1e42
PA
72292015-08-24 Pedro Alves <palves@redhat.com>
7230
7231 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7232 * event-loop.c: Likewise.
7233 * remote-utils.c: Likewise.
7234 * tracepoint.c: Likewise.
7235
a8c6d4fc
PA
72362015-08-24 Pedro Alves <palves@redhat.com>
7237
7238 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7239 ptid_get_lwp.
7240
99b0bb12
PA
72412015-08-21 Pedro Alves <palves@redhat.com>
7242
7243 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7244 instead of literal 1.
7245
f8904751
PA
72462015-08-21 Pedro Alves <palves@redhat.com>
7247
7248 * tdesc.c (default_description): Explicitly zero-initialize.
7249
465a859e
PA
72502015-08-21 Pedro Alves <palves@redhat.com>
7251
7252 PR gdb/18749
7253 * inferiors.c (remove_thread): Discard any pending stop reply for
7254 this thread.
7255 * server.c (remove_all_on_match_pid): Rename to ...
7256 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7257 instead of a pid.
7258 (discard_queued_stop_replies): Change parameter to a ptid. Now
7259 extern.
7260 (handle_v_kill, kill_inferior_callback, captured_main)
7261 (process_serial_event): Adjust.
7262 * server.h (discard_queued_stop_replies): Declare.
7263
f0db101d
PA
72642015-08-21 Pedro Alves <palves@redhat.com>
7265
7266 * linux-low.c (wait_for_sigstop): Always switch to no thread
7267 selected if the previously current thread dies.
7268 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7269 process instead of the current thread's.
7270 * remote-utils.c (input_interrupt): Don't check if there's no
7271 current thread.
7272 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7273 current thread to the general thread fails, error out.
7274 (handle_qxfer_auxv, handle_qxfer_libraries)
7275 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7276 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7277 (handle_query): Check if there's a thread selected instead of
7278 checking whether there's any thread in the thread list.
7279 (handle_qxfer_threads, handle_qxfer_btrace)
7280 (handle_qxfer_btrace_conf): Don't error out early if there's no
7281 thread in the thread list.
7282 (handle_v_cont, myresume): Don't set the current thread to the
7283 continue thread.
7284 (process_serial_event) <Hg handling>: Also set thread_id if the
7285 previous general thread is still alive.
7286 (process_serial_event) <g/G handling>: If setting the current
7287 thread to the general thread fails, error out.
7288 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7289 thread's lwp instead of the current thread's.
7290 * target.c (set_desired_thread): If the desired thread was not
7291 found, leave the current thread pointing to NULL. Return an int
7292 (boolean) indicating success.
7293 * target.h (set_desired_thread): Change return type to int.
7294
40045d91
MF
72952015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7296
7297 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7298 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7299 #includes.
7300 (ps_get_thread_area): New function.
7301
45face3b
GB
73022015-08-19 Gary Benson <gbenson@redhat.com>
7303
7304 * hostio.c (handle_pread): Do not attempt to read more data
7305 than hostio_reply_with_data can fit in a packet.
7306
16d5f642
JB
73072015-08-18 Joel Brobecker <brobecker@adacore.com>
7308
7309 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7310
a738da3a
MF
73112015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7312
7313 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7314
33ebda9d
PA
73152015-08-06 Pedro Alves <palves@redhat.com>
7316
7317 * tracepoint.c (expr_eval_result): Now an int.
7318
a44892be
PA
73192015-08-06 Pedro Alves <palves@redhat.com>
7320
7321 * gdbthread.h (struct regcache): Forward declare.
7322 (struct thread_info) <regcache_data>: Now a struct regcache
7323 pointer.
7324 * inferiors.c (inferior_regcache_data)
7325 (set_inferior_regcache_data): Now work with struct regcache
7326 pointers.
7327 * inferiors.h (struct regcache): Forward declare.
7328 (inferior_regcache_data, set_inferior_regcache_data): Now work
7329 with struct regcache pointers.
7330 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7331 (free_register_cache_thread): Remove struct regcache pointer
7332 casts.
7333
608a1e46
PA
73342015-08-06 Pedro Alves <palves@redhat.com>
7335
7336 * server.c (captured_main): On error, print the exception message
7337 to stderr, and if run_once is set, throw a quit.
7338
f0ce0d3a
PA
73392015-08-06 Pedro Alves <palves@redhat.com>
7340
7341 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7342 the current thread.
7343
bf47e248
PA
73442015-08-06 Pedro Alves <palves@redhat.com>
7345
7346 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7347 reading beyond the passed in buffer length.
7348
b6b9ffcc
PL
73492015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7350
7351 * tracepoint.c (symbol_list) <required>: Remove.
7352
863d01bd
PA
73532015-08-06 Pedro Alves <palves@redhat.com>
7354
7355 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7356 count if stopping and suspending threads.
7357 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7358 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7359 (linux_detach): Complete an ongoing step-over.
7360 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7361 throughout.
7362 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7363 (linux_wait_1): If passing a signal to the inferior after
7364 finishing a step-over, unsuspend and re-resume all lwps. If we
7365 see a single-step event but the thread should be continuing, don't
7366 pass the trap to gdb.
7367 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7368 internal_error instead of gdb_assert.
7369 (enqueue_pending_signal): New function.
7370 (check_ptrace_stopped_lwp_gone): Add debug output.
7371 (start_step_over): Use internal_error instead of gdb_assert.
7372 (complete_ongoing_step_over): New function.
7373 (linux_resume_one_thread): Don't resume a suspended thread.
7374 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7375 it stepping.
7376
00db26fa
PA
73772015-08-06 Pedro Alves <palves@redhat.com>
7378
7379 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7380 (linux_thread_alive): Use lwp_is_marked_dead.
7381 (extended_event_reported): Delete.
7382 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7383 instead of extended_event_reported.
7384 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7385 as well.
7386 (lwp_is_marked_dead): New function.
7387 (lwp_running): Use lwp_is_marked_dead.
7388 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7389 comment.
7390
ad071a30
PA
73912015-08-06 Pedro Alves <palves@redhat.com>
7392
7393 * linux-low.c (linux_wait_1): Move fork event output out of the
7394 !report_to_gdb check. Pass event_child->waitstatus to
7395 target_waitstatus_to_string instead of ourstatus.
7396
524b57e6
YQ
73972015-08-04 Yao Qi <yao.qi@linaro.org>
7398
7399 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7400 if current_thread is 32 bit.
7401
6085d6f6
YQ
74022015-08-04 Yao Qi <yao.qi@linaro.org>
7403
7404 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7405 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7406 * server.c (extended_protocol): Remove "static".
7407 * server.h (extended_protocol): Declare it.
7408
8a7e4587
YQ
74092015-08-04 Yao Qi <yao.qi@linaro.org>
7410
7411 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7412 both aarch64 and aarch32.
7413 (aarch64_set_pc): Likewise.
7414
3b53ae99
YQ
74152015-08-04 Yao Qi <yao.qi@linaro.org>
7416
7417 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7418 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7419 arm-with-neon.xml to srv_xmlfiles.
7420 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7421 (is_64bit_tdesc): New function.
7422 (aarch64_linux_read_description): New function.
7423 (aarch64_arch_setup): Call aarch64_linux_read_description.
7424 (regs_info): Rename to regs_info_aarch64.
7425 (aarch64_regs_info): Return right regs_info.
7426 (initialize_low_arch): Call initialize_low_arch_aarch32.
7427
bd9e6534
YQ
74282015-08-04 Yao Qi <yao.qi@linaro.org>
7429
7430 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7431 * linux-aarch32-low.c: New file.
7432 * linux-aarch32-low.h: New file.
7433 * linux-arm-low.c (arm_fill_gregset): Move it to
7434 linux-aarch32-low.c.
7435 (arm_store_gregset): Likewise.
7436 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7437 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7438 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7439 (regs_info): Rename to regs_info_arm.
7440 (arm_regs_info): Return regs_info_aarch32 if
7441 have_ptrace_getregset is 1 and target description is
7442 arm_with_neon or arm_with_vfpv3.
7443 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7444 Call initialize_low_arch_aarch32 instead.
7445
ded48a5e
YQ
74462015-08-04 Yao Qi <yao.qi@linaro.org>
7447
7448 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7449 * linux-low.c: ... here.
7450 * linux-low.h (have_ptrace_getregset): Declare it.
7451
96e9210f
PA
74522015-08-04 Pedro Alves <palves@redhat.com>
7453
7454 * thread-db.c (struct thread_db): Use new typedefs.
7455 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7456 CHK calls.
7457 (disable_thread_event_reporting): Cast result of dlsym to
7458 destination function pointer type.
7459 (thread_db_mourn): Use td_ta_delete_ftype.
7460
af60a1ef
SL
74612015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7462
7463 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7464 arch variant.
7465 (CDX_BREAKPOINT): Define for R2.
7466 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7467 (the_low_target): Add comments.
7468
e8b41681
YQ
74692015-07-30 Yao Qi <yao.qi@linaro.org>
7470
7471 * linux-arm-low.c (arm_hwcap): Remove it.
7472 (arm_read_description): New local variable arm_hwcap. Don't
7473 set arm_hwcap to zero.
7474
89abb039
YQ
74752015-07-30 Yao Qi <yao.qi@linaro.org>
7476
7477 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7478 Use regcache->tdesc instead.
7479 (arm_store_wmmxregset): Likewise.
7480 (arm_fill_vfpregset): Likewise.
7481 (arm_store_vfpregset): Likewise.
7482
deca266c
YQ
74832015-07-30 Yao Qi <yao.qi@linaro.org>
7484
7485 * linux-arm-low.c: Include arch/arm.h.
7486 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7487 (arm_store_gregset): Likewise.
7488
aa58a496
SM
74892015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7490
7491 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7492 ptrace's 4th parameter.
7493
50904b25
YQ
74942015-07-27 Yao Qi <yao.qi@linaro.org>
7495
7496 * configure.srv (case aarch64*-*-linux*): Don't set
7497 srv_linux_usrregs.
7498
5826e159
PA
74992015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7500
7501 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7502 sys/ptrace.h.
7503 * linux-arm-low.c: Likewise.
7504 * linux-cris-low.c: Likewise.
7505 * linux-crisv32-low.c: Likewise.
7506 * linux-low.c: Likewise.
7507 * linux-m68k-low.c: Likewise.
7508 * linux-mips-low.c: Likewise.
7509 * linux-nios2-low.c: Likewise.
7510 * linux-s390-low.c: Likewise.
7511 * linux-sparc-low.c: Likewise.
7512 * linux-tic6x-low.c: Likewise.
7513 * linux-tile-low.c: Likewise.
7514 * linux-x86-low.c: Likewise.
7515
54019719
PA
75162015-07-24 Pedro Alves <palves@redhat.com>
7517
7518 * config.in: Regenerate.
7519 * configure: Regenerate.
7520
eb7aa561
PA
75212015-07-24 Pedro Alves <palves@redhat.com>
7522
7523 * acinclude.m4: Include ../ptrace.m4.
7524 * configure.ac: Call GDB_AC_PTRACE.
7525 * config.in, configure: Regenerate.
7526
55d7b841
YQ
75272015-07-24 Yao Qi <yao.qi@linaro.org>
7528
7529 * linux-low.c (linux_create_inferior): Remove setting to
7530 proc->priv->new_inferior.
7531 (linux_attach): Likewise.
7532 (linux_low_filter_event): Likewise.
7533 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7534
c06cbd92
YQ
75352015-07-24 Yao Qi <yao.qi@linaro.org>
7536
7537 * linux-low.c (linux_arch_setup): New function.
7538 (linux_low_filter_event): If proc->tdesc is NULL and
7539 proc->attached is true, call the_low_target.arch_setup.
7540 Otherwise, keep status pending, and return.
7541 (linux_resume_one_lwp_throw): Don't call get_pc if
7542 thread->while_stepping isn't NULL. Don't call
7543 get_thread_regcache if proc->tdesc is NULL.
7544 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7545 (linux_target_ops): Install arch_setup.
7546 * server.c (start_inferior): Call the_target->arch_setup.
7547 * target.h (struct target_ops) <arch_setup>: New field.
7548 (target_arch_setup): New marco.
7549 * lynx-low.c (lynx_target_ops): Update.
7550 * nto-low.c (nto_target_ops): Update.
7551 * spu-low.c (spu_target_ops): Update.
7552 * win32-low.c (win32_target_ops): Update.
7553
5ae3ebba
YQ
75542015-07-24 Yao Qi <yao.qi@linaro.org>
7555
7556 * linux-low.c (linux_add_process): Don't set
7557 proc->priv->new_inferior.
7558 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7559 (linux_attach): Likewise.
7560
eb97750b
YQ
75612015-07-24 Yao Qi <yao.qi@linaro.org>
7562
7563 * server.c (start_inferior): Code refactor.
7564
51aee833
YQ
75652015-07-24 Yao Qi <yao.qi@linaro.org>
7566
7567 * server.c (process_serial_event): Set general_thread.
7568
af1b22f3
YQ
75692015-07-21 Yao Qi <yao.qi@linaro.org>
7570
7571 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7572 aarch64_linux_get_debug_reg_capacity.
7573
554717a3
YQ
75742015-07-17 Yao Qi <yao.qi@linaro.org>
7575
7576 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7577 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7578 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7579 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7580 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7581 (AARCH64_HWP_ALIGNMENT): Likewise.
7582 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7583 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7584 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7585 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7586 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7587 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7588 (struct aarch64_debug_reg_state): Likewise.
7589 (struct arch_lwp_info): Likewise.
7590 (aarch64_align_watchpoint): Likewise.
7591 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7592 (aarch64_watchpoint_length): Likewise.
7593 (aarch64_point_encode_ctrl_reg): Likewise
7594 (aarch64_point_is_aligned): Likewise.
7595 (aarch64_align_watchpoint): Likewise.
7596 (aarch64_linux_set_debug_regs):
7597 (aarch64_dr_state_insert_one_point): Likewise.
7598 (aarch64_dr_state_remove_one_point): Likewise.
7599 (aarch64_handle_breakpoint): Likewise.
7600 (aarch64_handle_aligned_watchpoint): Likewise.
7601 (aarch64_handle_unaligned_watchpoint): Likewise.
7602 (aarch64_handle_watchpoint): Likewise.
7603
c67ca4de
YQ
76042015-07-17 Yao Qi <yao.qi@linaro.org>
7605
7606 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
7607 and don't aarch64_get_debug_reg_state. All callers update.
7608 (aarch64_handle_aligned_watchpoint): Likewise.
7609 (aarch64_handle_unaligned_watchpoint): Likewise.
7610 (aarch64_handle_watchpoint): Likewise.
7611 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
7612 (aarch64_remove_point): Likewise.
7613
25abf979
YQ
76142015-07-17 Yao Qi <yao.qi@linaro.org>
7615
7616 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
7617 debug_printf.
7618 (aarch64_handle_unaligned_watchpoint): Likewise.
7619
db1ff28b
JK
76202015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7621
7622 Revert the previous 3 commits:
7623 Move gdb_regex* to common/
7624 Move linux_find_memory_regions_full & co.
7625 gdbserver build-id attribute generator
7626
700ca40f
JK
76272015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7628 Jan Kratochvil <jan.kratochvil@redhat.com>
7629
7630 gdbserver build-id attribute generator.
7631 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7632 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7633 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7634 (find_phdr): New.
7635 (get_dynamic): Use find_pdhr to traverse program headers.
7636 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7637 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7638 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7639 (get_hex_build_id): New.
7640 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7641 to reply XML document.
7642
9904185c
JK
76432015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7644 Jan Kratochvil <jan.kratochvil@redhat.com>
7645
7646 * target.c: Include target/target-utils.h and fcntl.h.
7647 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7648 (target_fileio_read_stralloc): New functions.
7649
6e5b4429
JK
76502015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7651
7652 * Makefile.in (OBS): Add gdb_regex.o.
7653 (gdb_regex.o): New.
7654 * config.in: Rebuilt.
7655 * configure: Rebuilt.
7656
ddc98fbf
JK
76572015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7658 Jan Kratochvil <jan.kratochvil@redhat.com>
7659
7660 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7661 * Makefile.in (OBS): Add target-utils.o.
7662 (linux-maps.o, target-utils.o): New.
7663 * configure.srv (srv_linux_obj): Add linux-maps.o.
7664
e57bb7a0
PL
76652015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7666
7667 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7668 function, return 1.
7669 (the_low_target): Install it.
7670
586b02a9
PA
76712015-07-14 Pedro Alves <palves@redhat.com>
7672
7673 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7674 Instead, ignore ECHILD, and throw an error for other errnos.
7675
58c1b36c
PA
76762015-07-10 Pedro Alves <palves@redhat.com>
7677
7678 * event-loop.c (struct callback_event) <data>: Change type to
7679 gdb_client_data instance instead of gdb_client_data pointer.
7680 (append_callback_event): Adjust.
7681
421530db
PL
76822015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7683
7684 * linux-aarch64-low.c: Add comments for each linux_target_ops
7685 method. Remove comments already covered in target_ops and
7686 linux_target_ops definitions.
7687 (the_low_target): Add comments for each unimplemented method.
7688
c2d65f38
YQ
76892015-07-09 Yao Qi <yao.qi@linaro.org>
7690
7691 * linux-aarch64-low.c (aarch64_regmap): Remove.
7692 (aarch64_usrregs_info): Remove.
7693 (regs_info): Set field usrregs to NULL.
7694
b20a6524
MM
76952015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7696
7697 * linux-low.c: Include "rsp-low.h"
7698 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7699 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7700 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7701 (handle_btrace_enable_pt): New.
7702 (handle_btrace_general_set): Support "pt".
7703 (handle_btrace_conf_general_set): Support "pt:size".
7704
96c97461
PL
77052015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7706
7707 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7708 Z_PACKET_SW_BP.
7709
37d66942
PL
77102015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7711
7712 * linux-aarch64-low.c: Remove comment about endianness.
7713 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7714 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7715 memcmp.
7716
dc06243f
GB
77172015-06-24 Gary Benson <gbenson@redhat.com>
7718
7719 * linux-i386-ipa.c (stdint.h): Do not include.
7720 * lynx-i386-low.c (stdint.h): Likewise.
7721 * lynx-ppc-low.c (stdint.h): Likewise.
7722 * mem-break.c (stdint.h): Likewise.
7723 * thread-db.c (stdint.h): Likewise.
7724 * tracepoint.c (stdint.h): Likewise.
7725 * win32-low.c (stdint.h): Likewise.
7726
124e13d9
SM
77272015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7728
7729 * server.c (write_qxfer_response): Update call to
7730 remote_escape_output.
7731
909c2cda
JK
77322015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7733 Jan Kratochvil <jan.kratochvil@redhat.com>
7734
7735 Merge multiple hex conversions.
7736 * gdbreplay.c (tohex): Rename to 'fromhex'.
7737 (logchar): Use fromhex.
7738
24c05f46
JK
77392015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7740
7741 * server.c (handle_qxfer_libraries): Set `version' attribute for
7742 <library-list>.
7743
14d2069a
GB
77442015-06-10 Gary Benson <gbenson@redhat.com>
7745
7746 * target.h (struct target_ops) <multifs_open>: New field.
7747 <multifs_unlink>: Likewise.
7748 <multifs_readlink>: Likewise.
7749 * linux-low.c (nat/linux-namespaces.h): New include.
7750 (linux_target_ops): Initialize the_target->multifs_open,
7751 the_target->multifs_unlink and the_target->multifs_readlink.
7752 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7753 * hostio.c (hostio_fs_pid): New static variable.
7754 (hostio_handle_new_gdb_connection): New function.
7755 (handle_setfs): Likewise.
7756 (handle_open): Use the_target->multifs_open as appropriate.
7757 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7758 (handle_readlink): Use the_target->multifs_readlink as
7759 appropriate.
7760 (handle_vFile): Handle vFile:setfs packets.
7761 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7762 after target_handle_new_gdb_connection.
7763
4b8b5e72
GB
77642015-06-10 Gary Benson <gbenson@redhat.com>
7765
7766 * configure.ac (AC_CHECK_FUNCS): Add setns.
7767 * config.in: Regenerate.
7768 * configure: Likewise.
7769 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7770 (linux-namespaces.o): New rule.
7771 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7772
3ac2e371
GB
77732015-06-09 Gary Benson <gbenson@redhat.com>
7774
7775 * hostio.c (handle_open): Process mode argument with
7776 fileio_to_host_mode.
7777
ca9b78ce
YQ
77782015-06-01 Yao Qi <yao.qi@linaro.org>
7779
7780 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7781 * linux-x86-low.c: Likewise.
7782
bfacd19d
DB
77832015-05-28 Don Breazeal <donb@codesourcery.com>
7784
7785 * linux-low.c (handle_extended_wait): Initialize
7786 thread_info.last_resume_kind for new fork children.
7787
452003ef
PA
77882015-05-15 Pedro Alves <palves@redhat.com>
7789
7790 * target.h (target_handle_new_gdb_connection): Rewrite using if
7791 wrapped in do/while.
7792
1041a03c
JB
77932015-05-14 Joel Brobecker <brobecker@adacore.com>
7794
7795 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7796 * configure, config.in: Regenerate.
7797 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7798 Declare typedef.
7799
c269dbdb
DB
78002015-05-12 Don Breazeal <donb@codesourcery.com>
7801
7802 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7803 PTRACE_EVENT_VFORK_DONE.
7804 (linux_low_ptrace_options, extended_event_reported): Add vfork
7805 events.
7806 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7807 and "vforkdone" for RSP 'T' Stop Reply Packet.
7808 * server.h (report_vfork_events): Declare
7809 global variable.
7810
3a8a0396
DB
78112015-05-12 Don Breazeal <donb@codesourcery.com>
7812
7813 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7814 (the_low_target) <new_fork>: Initialize new member.
7815 * linux-arm-low.c (arm_new_fork): New function.
7816 (the_low_target) <new_fork>: Initialize new member.
7817 * linux-low.c (handle_extended_wait): Call new target function
7818 new_fork.
7819 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7820 * linux-mips-low.c (mips_add_watchpoint): New function
7821 extracted from mips_insert_point.
7822 (the_low_target) <new_fork>: Initialize new member.
7823 (mips_linux_new_fork): New function.
7824 (mips_insert_point): Call mips_add_watchpoint.
7825 * linux-x86-low.c (x86_linux_new_fork): New function.
7826 (the_low_target) <new_fork>: Initialize new member.
7827
de0d863e
DB
78282015-05-12 Don Breazeal <donb@codesourcery.com>
7829
7830 * linux-low.c (handle_extended_wait): Implement return value,
7831 rename argument 'event_child' to 'event_lwp', handle
7832 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7833 (linux_low_ptrace_options): New function.
7834 (linux_low_filter_event): Call linux_low_ptrace_options,
7835 use different argument fo linux_enable_event_reporting,
7836 use return value from handle_extended_wait.
7837 (extended_event_reported): New function.
7838 (linux_wait_1): Call extended_event_reported and set
7839 status to report fork events.
7840 (linux_write_memory): Add pid to debug message.
7841 (reset_lwp_ptrace_options_callback): New function.
7842 (linux_handle_new_gdb_connection): New function.
7843 (linux_target_ops): Initialize new structure member.
7844 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7845 * lynx-low.c: Initialize new structure member.
7846 * remote-utils.c (prepare_resume_reply): Implement stop reason
7847 "fork" for "T" stop message.
7848 * server.c (handle_query): Call handle_new_gdb_connection.
7849 * server.h (report_fork_events): Declare global flag.
7850 * target.h (struct target_ops) <handle_new_gdb_connection>:
7851 New member.
7852 (target_handle_new_gdb_connection): New macro.
7853 * win32-low.c: Initialize new structure member.
7854
ddcbc397
DB
78552015-05-12 Don Breazeal <donb@codesourcery.com>
7856
7857 * mem-break.c (APPEND_TO_LIST): Define macro.
7858 (clone_agent_expr): New function.
7859 (clone_one_breakpoint): New function.
7860 (clone_all_breakpoints): New function.
7861 * mem-break.h: Declare new functions.
7862
89245bc0
DB
78632015-05-12 Don Breazeal <donb@codesourcery.com>
7864
7865 * linux-low.c (linux_supports_fork_events): New function.
7866 (linux_supports_vfork_events): New function.
7867 (linux_target_ops): Initialize new structure members.
7868 (initialize_low): Call linux_check_ptrace_features.
7869 * lynx-low.c (lynx_target_ops): Initialize new structure
7870 members.
7871 * server.c (report_fork_events, report_vfork_events):
7872 New global flags.
7873 (handle_query): Add new features to qSupported packet and
7874 response.
7875 (captured_main): Initialize new global variables.
7876 * target.h (struct target_ops) <supports_fork_events>:
7877 New member.
7878 <supports_vfork_events>: New member.
7879 (target_supports_fork_events): New macro.
7880 (target_supports_vfork_events): New macro.
7881 * win32-low.c (win32_target_ops): Initialize new structure
7882 members.
7883
835205d0
GB
78842015-05-12 Gary Benson <gbenson@redhat.com>
7885
7886 * server.c (handle_qxfer_exec_file): Use current process
7887 if annex is empty.
7888
21e94bd9
SL
78892015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7890
7891 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7892 Remove HAVE_PTRACE_GETREGS conditionals.
7893 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7894 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7895
45614f15
YQ
78962015-05-08 Yao Qi <yao.qi@linaro.org>
7897
7898 * linux-low.c (linux_supports_conditional_breakpoints): New
7899 function.
7900 (linux_target_ops): Install new target method.
7901 * lynx-low.c (lynx_target_ops): Install NULL hook for
7902 supports_conditional_breakpoints.
7903 * nto-low.c (nto_target_ops): Likewise.
7904 * spu-low.c (spu_target_ops): Likewise.
7905 * win32-low.c (win32_target_ops): Likewise.
7906 * server.c (handle_query): Check
7907 target_supports_conditional_breakpoints.
7908 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7909 New field.
7910 (target_supports_conditional_breakpoints): New macro.
7911
80ad801e
PA
79122015-05-06 Pedro Alves <palves@redhat.com>
7913
7914 PR server/18081
7915 * server.c (start_inferior): If the process exits, mourn it.
7916
819843c7
GB
79172015-04-21 Gary Benson <gbenson@redhat.com>
7918
7919 * hostio.c (fileio_open_flags_to_host): Factored out to
7920 fileio_to_host_openflags in common/fileio.c. Single use
7921 updated.
7922
a2d5a9d7
MF
79232015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7924
7925 * linux-xtensa-low.c (xtensa_fill_gregset)
7926 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7927 XCHAL_HAVE_LOOP.
7928
deb44829
MF
79292015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7930
7931 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7932 (regs_info): Replace usrregs pointer with NULL.
7933
e57f1de3
GB
79342015-04-17 Gary Benson <gbenson@redhat.com>
7935
7936 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7937 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7938 * server.c (handle_qxfer_exec_file): New function.
7939 (qxfer_packets): Add exec-file entry.
7940 (handle_query): Report qXfer:exec-file:read as supported packet.
7941
62828379
RN
79422015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7943
7944 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7945
b88bb450
GB
79462015-04-09 Gary Benson <gbenson@redhat.com>
7947
7948 * hostio-errno.c (errno_to_fileio_error): Remove function.
7949 Update caller to use remote_fileio_to_fio_error.
7950
c8f4bfdd
YQ
79512015-04-09 Yao Qi <yao.qi@linaro.org>
7952
7953 * linux-low.c (linux_insert_point): Call
7954 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7955 (linux_remove_point): Call remove_memory_breakpoint if type is
7956 raw_bkpt_type_sw.
7957 * linux-x86-low.c (x86_insert_point): Don't call
7958 insert_memory_breakpoint.
7959 (x86_remove_point): Don't call remove_memory_breakpoint.
7960
41f98f02
PA
79612015-04-01 Pedro Alves <palves@redhat.com>
7962 Cleber Rosa <crosa@redhat.com>
7963
7964 * server.c (gdbserver_usage): Reorganize and extend the usage
7965 message.
7966
2bf6fb9d
PA
79672015-03-24 Pedro Alves <palves@redhat.com>
7968
7969 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7970 output. Also dump TRAP_TRACE.
7971 (linux_low_filter_event): In debug output, distinguish a
7972 resume_stop SIGSTOP from a delayed SIGSTOP.
7973
369f6daa
GB
79742015-03-24 Gary Benson <gbenson@redhat.com>
7975
7976 * linux-x86-low.c (x86_linux_new_thread): Moved to
7977 nat/x86-linux.c.
7978 (x86_linux_prepare_to_resume): Likewise.
7979
8e5d4070
GB
79802015-03-24 Gary Benson <gbenson@redhat.com>
7981
7982 * Makefile.in (x86-linux-dregs.o): New rule.
7983 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7984 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7985 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7986 (x86_linux_dr_get): Likewise.
7987 (x86_linux_dr_set): Likewise.
7988 (update_debug_registers_callback): Likewise.
7989 (x86_linux_dr_set_addr): Likewise.
7990 (x86_linux_dr_get_addr): Likewise.
7991 (x86_linux_dr_set_control): Likewise.
7992 (x86_linux_dr_get_control): Likewise.
7993 (x86_linux_dr_get_status): Likewise.
7994 (x86_linux_update_debug_registers): Likewise.
7995
2b95d440
GB
79962015-03-24 Gary Benson <gbenson@redhat.com>
7997
7998 * linux-x86-low.c (x86_linux_update_debug_registers):
7999 New function, factored out from...
8000 (x86_linux_prepare_to_resume): ...this.
8001
14b0bc68
GB
80022015-03-24 Gary Benson <gbenson@redhat.com>
8003
8004 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8005 (x86_linux_dr_set): Likewise.
8006 (update_debug_registers_callback): Likewise.
8007 (x86_linux_dr_set_addr): Likewise.
8008 (x86_linux_dr_get_addr): Likewise.
8009 (x86_linux_dr_set_control): Likewise.
8010 (x86_linux_dr_get_control): Likewise.
8011 (x86_linux_dr_get_status): Likewise.
8012 (x86_linux_prepare_to_resume): Likewise.
8013
5dfe6ca8
GB
80142015-03-24 Gary Benson <gbenson@redhat.com>
8015
8016 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8017 Use perror_with_name. Pass string through gettext.
8018 (x86_linux_dr_set): Likewise.
8019
d33472ad
GB
80202015-03-24 Gary Benson <gbenson@redhat.com>
8021
8022 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8023 (x86_linux_dr_set_addr): ...this.
8024 (x86_dr_low_get_addr): Rename to...
8025 (x86_linux_dr_get_addr): ...this.
8026 (x86_dr_low_set_control): Rename to...
8027 (x86_linux_dr_set_control): ...this.
8028 (x86_dr_low_get_control): Rename to...
8029 (x86_linux_dr_get_control): ...this.
8030 (x86_dr_low_get_status): Rename to...
8031 (x86_linux_dr_get_status): ...this.
8032 (x86_dr_low): Update with new function names.
8033
4b134ca1
GB
80342015-03-24 Gary Benson <gbenson@redhat.com>
8035
8036 * Makefile.in (x86-linux.o): New rule.
8037 * configure.srv: Add x86-linux.o to relevant targets.
8038 * linux-low.c (lwp_set_arch_private_info): New function.
8039 (lwp_arch_private_info): Likewise.
8040 * linux-x86-low.c: Include nat/x86-linux.h.
8041 (arch_lwp_info): Removed structure.
8042 (update_debug_registers_callback):
8043 Use lwp_set_debug_registers_changed.
8044 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8045 and lwp_set_debug_registers_changed.
8046 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8047
34c703da
GB
80482015-03-24 Gary Benson <gbenson@redhat.com>
8049
8050 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8051 * linux-arm-low.c (arm_new_thread): Likewise.
8052 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8053 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8054 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8055 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8056
cff068da
GB
80572015-03-24 Gary Benson <gbenson@redhat.com>
8058
8059 * linux-low.c (ptid_of_lwp): New function.
8060 (lwp_is_stopped): Likewise.
8061 (lwp_stop_reason): Likewise.
8062 * linux-x86-low.c (update_debug_registers_callback):
8063 Use lwp_is_stopped.
8064 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8065 lwp_stop_reason.
8066
b2f7c7e8
GB
80672015-03-24 Gary Benson <gbenson@redhat.com>
8068
8069 * linux-low.h (linux_stop_lwp): Remove declaration.
8070
6d4ee8c6
GB
80712015-03-24 Gary Benson <gbenson@redhat.com>
8072
8073 * linux-low.h: Include nat/linux-nat.h.
8074 * linux-low.c (iterate_over_lwps_args): New structure.
8075 (iterate_over_lwps_filter): New function.
8076 (iterate_over_lwps): Likewise.
8077 * linux-x86-low.c (update_debug_registers_callback):
8078 Update signature to what iterate_over_lwps expects.
8079 Remove PID check that iterate_over_lwps now performs.
8080 (x86_dr_low_set_addr): Use iterate_over_lwps.
8081 (x86_dr_low_set_control): Likewise.
8082
70a0bb6b
GB
80832015-03-24 Gary Benson <gbenson@redhat.com>
8084
8085 * linux-x86-low.c (x86_debug_reg_state): New function.
8086 (x86_linux_prepare_to_resume): Use the above.
8087
7b669087
GB
80882015-03-24 Gary Benson <gbenson@redhat.com>
8089
8090 * linux-low.c (current_lwp_ptid): New function.
8091 * linux-x86-low.c: Include nat/linux-nat.h.
8092 (x86_dr_low_get_addr): Use current_lwp_ptid.
8093 (x86_dr_low_get_control): Likewise.
8094 (x86_dr_low_get_status): Likewise.
8095
eef49a3d
PA
80962015-03-20 Pedro Alves <palves@redhat.com>
8097
8098 * tracepoint.c (cmd_qtstatus): Make "str" const.
8099
b2333d22
PA
81002015-03-20 Pedro Alves <palves@redhat.com>
8101
8102 * server.c (handle_general_set): Make "req_str" const.
8103
23f238d3
PA
81042015-03-19 Pedro Alves <palves@redhat.com>
8105
8106 * linux-low.c (linux_resume_one_lwp): Rename to ...
8107 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8108 instead call perror_with_name.
8109 (check_ptrace_stopped_lwp_gone): New function.
8110 (linux_resume_one_lwp): Reimplement as wrapper around
8111 linux_resume_one_lwp_throw that swallows errors if the LWP is
8112 gone.
8113
91baf43f
PA
81142015-03-19 Pedro Alves <palves@redhat.com>
8115
8116 * linux-low.c (count_events_callback, select_event_lwp_callback):
8117 No longer check whether the thread has resume_stop as last resume
8118 kind.
8119
8bf3b159
PA
81202015-03-19 Pedro Alves <palves@redhat.com>
8121
8122 * linux-low.c (count_events_callback, select_event_lwp_callback):
8123 Use the lwp's status_pending_p field, not the thread's.
8124
b90fc188
PA
81252015-03-19 Pedro Alves <palves@redhat.com>
8126
8127 * linux-low.c (select_event_lwp_callback): Update comments to
8128 no longer mention SIGTRAP.
8129
464b0089
GB
81302015-03-18 Gary Benson <gbenson@redhat.com>
8131
8132 * server.c (handle_query): Do not report vFile:fstat as supported.
8133
aa9e327f
GB
81342015-03-11 Gary Benson <gbenson@redhat.com>
8135
8136 * hostio.c (sys/types.h): New include.
8137 (sys/stat.h): Likewise.
8138 (common-remote-fileio.h): Likewise.
8139 (handle_fstat): New function.
8140 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 8141
791c0056
GB
81422015-03-11 Gary Benson <gbenson@redhat.com>
8143
8144 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8145 struct stat.st_blocks and struct stat.st_blksize.
8146 * configure: Regenerate.
8147 * config.in: Likewise.
8148 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8149 (OBS): Add common-remote-fileio.o.
8150 (common-remote-fileio.o): New rule.
8151
9a9df970
PA
81522015-03-09 Pedro Alves <palves@redhat.com>
8153
8154 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8155 'struct sockaddr' pointer in 'accept' call.
8156
9eb1356e
PA
81572015-03-09 Pedro Alves <palves@redhat.com>
8158
8159 Revert:
8160 2015-03-07 Pedro Alves <palves@redhat.com>
8161 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8162 or <winsock2.h> here. Instead include "gdb_socket.h".
8163 (remote_open): Use union gdb_sockaddr_u.
8164 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8165 or <winsock2.h> here. Instead include "gdb_socket.h".
8166 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8167 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8168 or <sys/un.h>.
8169 (init_named_socket, gdb_agent_helper_thread): Use union
8170 gdb_sockaddr_u.
8171
aac331e4
PA
81722015-03-07 Pedro Alves <palves@redhat.com>
8173
8174 * configure.ac (build_warnings): Move
8175 -Wdeclaration-after-statement to the C-specific set.
8176 * configure: Regenerate.
8177
366c75fc
PA
81782015-03-07 Pedro Alves <palves@redhat.com>
8179
8180 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8181 or <winsock2.h> here. Instead include "gdb_socket.h".
8182 (remote_open): Use union gdb_sockaddr_u.
8183 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8184 or <winsock2.h> here. Instead include "gdb_socket.h".
8185 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8186 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8187 or <sys/un.h>.
8188 (init_named_socket, gdb_agent_helper_thread): Use union
8189 gdb_sockaddr_u.
8190
492d29ea
PA
81912015-03-07 Pedro Alves <palves@redhat.com>
8192
8193 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8194 instead.
8195
60a191ed
YQ
81962015-03-06 Yao Qi <yao.qi@linaro.org>
8197
8198 * linux-aarch64-low.c (aarch64_insert_point): Use
8199 show_debug_regs as a boolean.
8200 (aarch64_remove_point): Likewise.
8201
f5771b1d
PA
82022015-03-05 Pedro Alves <palves@redhat.com>
8203
8204 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8205 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8206 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8207 * nto-low.c (nto_target_ops): Likewise.
8208 * spu-low.c (spu_target_ops): Likewise.
8209 * win32-low.c (win32_target_ops): Likewise.
8210
3e572f71
PA
82112015-03-04 Pedro Alves <palves@redhat.com>
8212
72f4393d 8213 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
8214 Decide whether a breakpoint triggered based on the SIGTRAP's
8215 siginfo.si_code.
72f4393d
L
8216 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8217 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
8218 (linux_low_filter_event): Check for breakpoints before checking
8219 watchpoints.
8220 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8221 siginfo.si_code.
72f4393d
L
8222 (linux_stopped_by_sw_breakpoint)
8223 (linux_supports_stopped_by_sw_breakpoint)
8224 (linux_stopped_by_hw_breakpoint)
8225 (linux_supports_stopped_by_hw_breakpoint): New functions.
8226 (linux_target_ops): Install new target methods.
3e572f71 8227
1ec68e26
PA
82282015-03-04 Pedro Alves <palves@redhat.com>
8229
8230 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8231 * server.c (swbreak_feature, hwbreak_feature): New globals.
8232 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8233 (captured_main): Clear swbreak_feature and hwbreak_feature.
8234 * server.h (swbreak_feature, hwbreak_feature): Declare.
8235 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8236 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8237 supports_stopped_by_hw_breakpoint>: New fields.
8238 (target_supports_stopped_by_sw_breakpoint)
8239 (target_stopped_by_sw_breakpoint)
8240 (target_supports_stopped_by_hw_breakpoint)
8241 (target_stopped_by_hw_breakpoint): Declare.
8242
15c66dd6
PA
82432015-03-04 Pedro Alves <palves@redhat.com>
8244
8245 enum lwp_stop_reason -> enum target_stop_reason
8246 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8247 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8248 (linux_wait_1, stuck_in_jump_pad_callback)
8249 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8250 (linux_stopped_by_watchpoint):
8251 * linux-low.h (enum lwp_stop_reason): Delete.
8252 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8253 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8254
98fc70d6
YQ
82552015-03-04 Yao Qi <yao.qi@linaro.org>
8256
8257 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8258
dd2ac174
GB
82592015-03-03 Gary Benson <gbenson@redhat.com>
8260
8261 * hostio.c (handle_vFile): Fix prefix lengths.
8262
d68e53f4
MM
82632015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8264
8265 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8266 ptr_bits.
8267
bf2d68ab
AA
82682015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8269
8270 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8271 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8272 (clean): Add "rm -f" for above C files.
8273 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8274 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8275 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8276 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8277 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8278 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8279 (init_registers_s390x_vx_linux64)
8280 (init_registers_s390x_tevx_linux64)
8281 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8282 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8283 declarations.
8284 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8285 (s390_store_vxrs_high): New functions.
8286 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8287 NT_S390_VXRS_HIGH.
8288 (s390_arch_setup): Add logic for selecting one of the new target
8289 descriptions. Activate the new vector regsets if applicable.
8290 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8291 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8292 and init_registers_s390x_tevx_linux64.
8293
c966a859
PA
82942015-03-01 Pedro Alves <palves@redhat.com>
8295
8296 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8297 parameter.
8298
4180215b
PA
82992015-02-27 Pedro Alves <palves@redhat.com>
8300
8301 * linux-x86-low.c (u_debugreg_offset): New function.
8302 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8303
749bab01
PA
83042015-02-27 Pedro Alves <palves@redhat.com>
8305
8306 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8307 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8308 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8309 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8310 (ps_lsetfpregs, ps_getpid)
8311 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8312 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8313 (ps_lsetxregs, ps_plog): Declare.
8314
3c14e5a3
PA
83152015-02-27 Pedro Alves <palves@redhat.com>
8316
8317 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8318 IP_AGENT_EXPORT_FUNC.
8319 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8320 IP_AGENT_EXPORT_FUNC.
8321 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8322 (IP_AGENT_EXPORT): Delete.
8323 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8324 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8325 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8326 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8327 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8328 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8329 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8330 (traceframe_read_count, traceframe_write_count)
8331 (traceframes_created, trace_state_variables, get_raw_reg)
8332 (get_trace_state_variable_value, set_trace_state_variable_value)
8333 (ust_loaded, helper_thread_id, cmd_buf): Use
8334 IPA_SYM_EXPORTED_NAME.
8335 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8336 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8337 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8338 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8339 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8340 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8341 EXTERN_C_PUSH/EXTERN_C_POP.
8342 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8343 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8344 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8345 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8346 (traceframe_write_count, traceframe_read_count)
8347 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8348 (about_to_request_buffer_space, get_trace_state_variable_value)
8349 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8350 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8351 EXTERN_C_PUSH/EXTERN_C_POP.
8352 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8353 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8354 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8355 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8356 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8357 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8358 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8359 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8360 Define.
8361 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8362 (IP_AGENT_EXPORT_VAR_DECL): Define.
8363 (tracing): Declare.
8364 (gdb_agent_get_raw_reg): Declare.
8365
fe978cb0
PA
83662015-02-27 Tom Tromey <tromey@redhat.com>
8367 Pedro Alves <palves@redhat.com>
8368
8369 Rename symbols whose names are reserved C++ keywords throughout.
8370
3bc3d82a
PA
83712015-02-27 Pedro Alves <palves@redhat.com>
8372
8373 * Makefile.in (COMPILER): New, get it from autoconf.
8374 (CXX): Get from autoconf instead.
8375 (COMPILE.pre): Use COMPILER.
8376 (CC-LD): Rename to ...
8377 (CC_LD): ... this. Use COMPILER.
8378 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8379 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8380 * acinclude.m4: Include build-with-cxx.m4.
8381 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8382 Disable -Werror by default if building in C++ mode.
8383 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8384 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8385 the C++ compiler. Save/restore CXXFLAGS too.
8386 * configure: Regenerate.
8387
07697489
PA
83882015-02-27 Pedro Alves <palves@redhat.com>
8389
8390 * acinclude.m4: Include libiberty.m4.
8391 * configure.ac: Call libiberty_INIT.
8392 * config.in, configure: Regenerate.
8393
9beb7c4e
PA
83942015-02-26 Pedro Alves <palves@redhat.com>
8395
8396 * linux-low.c (linux_wait_1): When incrementing the PC past a
8397 program breakpoint always use the_low_target.breakpoint_len as
8398 increment, rather than the maximum between that and
8399 the_low_target.decr_pc_after_break.
8400
8090aef2
PA
84012015-02-23 Pedro Alves <palves@redhat.com>
8402
8403 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8404 thread was doing a step-over; always adjust the PC if
8405 we stepped over a permanent breakpoint.
8406 (linux_wait_1): If we stepped over breakpoint that was on top of a
8407 permanent breakpoint, manually advance the PC past it.
8408
bc9540e8
PA
84092015-02-23 Pedro Alves <palves@redhat.com>
8410
8411 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8412 modes.
8413 (x86_fill_gregset, x86_store_gregset): Use it when handling
8414 $orig_eax.
8415
2db9a427
PA
84162015-02-20 Pedro Alves <palves@redhat.com>
8417
8418 * thread-db.c: Include "nat/linux-procfs.h".
8419 (thread_db_init): Skip listing new threads if the kernel supports
8420 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8421
afa8d396
PA
84222015-02-20 Pedro Alves <palves@redhat.com>
8423
8424 * linux-low.c (status_pending_p_callback): Use ptid_match.
8425
c9587f88
AT
84262015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8427
8428 PR breakpoints/16812
8429 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8430 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8431 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8432
b05ec7a5
AT
84332015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8434
8435 PR breakpoints/15956
8436 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8437
d33501a5
MM
84382015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8439
8440 * linux-low.c (linux_low_btrace_conf): Print size.
8441 * server.c (handle_btrace_conf_general_set): New.
8442 (hanle_general_set): Call handle_btrace_conf_general_set.
8443 (handle_query): Report Qbtrace-conf:bts:size as supported.
8444
f4abbc16
MM
84452015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8446
8447 * linux-low.c (linux_low_enable_btrace): Update parameters.
8448 (linux_low_btrace_conf): New.
8449 (linux_target_ops)<to_btrace_conf>: Initialize.
8450 * server.c (current_btrace_conf): New.
8451 (handle_btrace_enable): Rename to ...
8452 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8453 to target_enable_btrace. Update comment. Update users.
8454 (handle_qxfer_btrace_conf): New.
8455 (qxfer_packets): Add btrace-conf entry.
8456 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8457 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8458 (target_ops)<read_btrace_conf>: New.
8459 (target_enable_btrace): Update parameters.
8460 (target_read_btrace_conf): New.
8461
043c3577
MM
84622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8463
8464 * server.c (handle_btrace_general_set): Remove call to
8465 target_supports_btrace.
8466 (supported_btrace_packets): New.
8467 (handle_query): Call supported_btrace_packets.
8468 * target.h: include btrace-common.h.
8469 (btrace_target_info): Removed.
8470 (supports_btrace, target_supports_btrace): Update parameters.
8471
734b0e4b
MM
84722015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8473
8474 * Makefile.in (SFILES): Add common/btrace-common.c.
8475 (OBS): Add common/btrace-common.o.
8476 (btrace-common.o): Add build rules.
8477 * linux-low: Include btrace-common.h.
8478 (linux_low_read_btrace): Use struct btrace_data. Call
8479 btrace_data_init and btrace_data_fini.
8480
d6c146e9
PA
84812015-02-06 Pedro Alves <palves@redhat.com>
8482
8483 * thread-db.c (find_new_threads_callback): Add debug output.
8484
20ba1ce6
PA
84852015-02-04 Pedro Alves <palves@redhat.com>
8486
8487 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8488 (resume_stopped_resumed_lwps): New function.
8489 (linux_wait_for_event_filtered): Use it.
8490
8cc73a39
SDJ
84912015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8492
8493 * Makefile.in (SFILES): Add linux-personality.c.
8494 (linux-personality.o): New rule.
8495 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8496 list of objects to be built.
8497 * linux-low.c: Include nat/linux-personality.h.
8498 (linux_create_inferior): Remove code to disable address space
8499 randomization (moved to ../nat/linux-personality.c). Create
8500 cleanup to disable address space randomization.
8501
fb23d554
SDJ
85022015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8503
8504 * Makefile.in (posix-strerror.o): New rule.
8505 (mingw-strerror.o): Likewise.
8506 * configure: Regenerated.
8507 * configure.ac: Source file ../common/common.host. Initialize new
8508 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8509
cdf43629
YQ
85102015-01-14 Yao Qi <yao@codesourcery.com>
8511
8512 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8513 (ppc-linux.o): New rule.
8514 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8515 * configure.ac: AC_CHECK_FUNCS(getauxval).
8516 * config.in: Re-generated.
8517 * configure: Re-generated.
8518 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8519 ppc64_64bit_inferior_p
8520
514c5338
YQ
85212015-01-14 Yao Qi <yao@codesourcery.com>
8522
8523 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8524 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8525 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8526 (PT_ORIG_R3, PT_TRAP): Likewise.
8527 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8528 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8529 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8530
3368c1e5
JB
85312015-01-10 Joel Brobecker <brobecker@adacore.com>
8532
8533 * i387-fp.c (i387_cache_to_xsave): In look over
8534 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8535 zmmh_low_space field by use of zmmh_high_space.
8536
582511be
PA
85372015-01-09 Pedro Alves <palves@redhat.com>
8538
8539 * linux-low.c (step_over_bkpt): Move higher up in the file.
8540 (handle_extended_wait): Don't store the stop_pc here.
8541 (get_stop_pc): Adjust comments and rename to ...
8542 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8543 stopped for a software breakpoint or hardware breakpoint.
8544 (thread_still_has_status_pending_p): New function.
8545 (status_pending_p_callback): Use
8546 thread_still_has_status_pending_p. If the event is no longer
8547 interesting, resume the LWP.
8548 (handle_tracepoints): Add assert.
8549 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8550 (wstatus_maybe_breakpoint): New function.
8551 (cancel_breakpoint): Delete function.
8552 (check_stopped_by_watchpoint): New function, factored out from
8553 linux_low_filter_event.
8554 (lp_status_maybe_breakpoint): Delete function.
8555 (linux_low_filter_event): Remove filter_ptid argument.
8556 Leave thread group exits pending here. Store the LWP's stop PC.
8557 Always leave events pending.
8558 (linux_wait_for_event_filtered): Pull all events out of the
8559 kernel, and leave them all pending.
8560 (count_events_callback, select_event_lwp_callback): Consider all
8561 events.
8562 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8563 (select_event_lwp): Only give preference to the stepping LWP in
8564 all-stop mode. Adjust comments.
8565 (ignore_event): New function.
8566 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8567 references to cancel_breakpoints. Adjust to renames. Also give
8568 equal priority to all LWPs that have had events in non-stop mode.
8569 If reporting a software breakpoint event, unadjust the LWP's PC.
8570 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8571 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8572 Adjust.
8573 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8574 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8575 (linux_stopped_by_watchpoint): Adjust.
8576 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8577 * linux-low.h (enum lwp_stop_reason): New.
8578 (struct lwp_info) <stop_pc>: Adjust comment.
8579 <stopped_by_watchpoint>: Delete field.
8580 <stop_reason>: New field.
8581 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8582 * mem-break.c (software_breakpoint_inserted_here)
8583 (hardware_breakpoint_inserted_here): New function.
8584 * mem-break.h (software_breakpoint_inserted_here)
8585 (hardware_breakpoint_inserted_here): Declare.
8586 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
8587 (cancel_breakpoints): Delete.
8588 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
8589 (upload_fast_traceframes): Remove references to
8590 cancel_breakpoints.
8591
a33e3959
PA
85922015-01-09 Pedro Alves <palves@redhat.com>
8593
8594 * thread-db.c (find_new_threads_callback): Ignore thread if the
8595 kernel thread ID is -1.
8596
8784d563
PA
85972015-01-09 Pedro Alves <palves@redhat.com>
8598
8599 * linux-low.c (linux_attach_fail_reason_string): Move to
8600 nat/linux-ptrace.c, and rename.
8601 (linux_attach_lwp): Update comment.
8602 (attach_proc_task_lwp_callback): New function.
8603 (linux_attach): Adjust to rename and use
8604 linux_proc_attach_tgid_threads.
8605 (linux_attach_fail_reason_string): Delete declaration.
8606
76f2b779
JB
86072015-01-01 Joel Brobecker <brobecker@adacore.com>
8608
8609 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
8610 * server.c (gdbserver_version): Likewise.
8611
fafcc06a
SDJ
86122014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
8613
8614 * remote-utils.c: Include ctype.h.
8615 (input_interrupt): Explicitly handle the case when the char
8616 received is the NUL byte. Improve the printing of non-ASCII
8617 characters.
8618
beed38b8
JB
86192014-12-16 Joel Brobecker <brobecker@adacore.com>
8620
8621 * linux-low.c (linux_low_filter_event): Update call to
8622 linux_enable_event_reporting following the addition of
8623 a new parameter to that function.
8624
bf330350
CU
86252014-12-16 Catalin Udma <catalin.udma@freescale.com>
8626
8627 PR server/17457
8628 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8629 (AARCH64_FPCR_REGNO): Likewise.
8630 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8631 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8632 (aarch64_store_fpregset): Likewise.
8633
5227d625
JB
86342014-12-15 Joel Brobecker <brobecker@adacore.com>
8635
8636 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8637 Remove FIXME comment about assumption about N.
8638
f93b65a0
JB
86392014-12-13 Joel Brobecker <brobecker@adacore.com>
8640
8641 * configure.ac: If large-file support is disabled in GDBserver,
8642 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8643 * configure: Regenerate.
8644
e5a9158d
AA
86452014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8646
8647 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8648 warning upon ENODATA from ptrace.
8649 * linux-s390-low.c (s390_store_tdb): New.
8650 (s390_regsets): Add regset for NT_S390_TDB.
8651
feea5f36
AA
86522014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8653
8654 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8655 without a fill_function.
8656 * linux-s390-low.c (s390_fill_last_break): Remove.
8657 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8658 (s390_arch_setup): Use regset's size instead of fill_function for
8659 loop end condition.
8660
098dbe61
AA
86612014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8662
8663 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8664 the regset's store function when ptrace returned an error.
8665 * regcache.c (get_thread_regcache): Invalidate register cache
8666 before fetching inferior's registers.
8667
28eef672
AA
86682014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8669
8670 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8671 while-loop as for-loop.
8672 (regsets_store_inferior_registers): Likewise.
8673
bdca27a2
YQ
86742014-11-28 Yao Qi <yao@codesourcery.com>
8675
8676 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8677 * config.in, configure: Re-generate.
8678 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8679 is defined.
8680
9c232dda
YQ
86812014-11-21 Yao Qi <yao@codesourcery.com>
8682
8683 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8684 (AC_CHECK_HEADERS): Remove malloc.h.
8685 * configure: Re-generated.
8686 * config.in: Re-generated.
8687 * server.h: Don't include alloca.h and malloc.h.
8688 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8689 Don't include malloc.h.
8690
43968415
JB
86912014-11-17 Joel Brobecker <brobecker@adacore.com>
8692
8693 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8694 corresponding ERRNO check in same block.
8695
40e91bc7
PA
86962014-11-12 Pedro Alves <palves@redhat.com>
8697
8698 * server.c (cont_thread): Update comment.
8699 (start_inferior, attach_inferior): No longer clear cont_thread.
8700 (handle_v_cont): No longer set cont_thread.
8701 (captured_main): Clear cont_thread each time a GDB connects.
8702
c2c118cf
PA
87032014-11-12 Pedro Alves <palves@redhat.com>
8704
8705 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8706 thread, and don't resume all threads if the Hc thread has exited.
8707
78708b7c
PA
87082014-11-12 Pedro Alves <palves@redhat.com>
8709
8710 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8711 the process group instead of to a specific LWP.
8712
a2abc7de
PA
87132014-10-15 Pedro Alves <palves@redhat.com>
8714
8715 PR server/17487
8716 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8717 parameter.
8718 (arm_set_thread_context): Delete.
8719 (the_low_target): Adjust.
8720 * win32-i386-low.c (debug_registers_changed)
8721 (debug_registers_used): Delete.
8722 (update_debug_registers_callback): New function.
8723 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8724 needing to update their debug registers.
8725 (win32_get_current_dr): New function.
8726 (x86_dr_low_get_addr, x86_dr_low_get_control)
8727 (x86_dr_low_get_status): Fetch the debug register from the thread
8728 record's context.
8729 (i386_initial_stuff): Adjust.
8730 (i386_get_thread_context): Remove current_event parameter. Don't
8731 clear debug_registers_changed nor copy DR values to
8732 debug_reg_state.
8733 (i386_set_thread_context): Delete.
8734 (i386_prepare_to_resume): New function.
8735 (i386_thread_added): Mark the thread as needing to update irs
8736 debug registers.
8737 (the_low_target): Remove i386_set_thread_context and install
8738 i386_prepare_to_resume.
8739 * win32-low.c (win32_get_thread_context): Adjust.
8740 (win32_set_thread_context): Use SetThreadContext
8741 directly.
8742 (win32_prepare_to_resume): New function.
8743 (win32_require_context): New function, factored out from ...
8744 (thread_rec): ... this.
8745 (continue_one_thread): Call win32_prepare_to_resume on each thread
8746 we're about to continue.
8747 (win32_resume): Call win32_prepare_to_resume on the event thread.
8748 * win32-low.h (struct win32_thread_info)
8749 <debug_registers_changed>: New field.
8750 (struct win32_target_ops): Change prototype of set_thread_context,
8751 delete set_thread_context and add prepare_to_resume.
8752 (win32_require_context): New declaration.
8753
a442d071
GB
87542014-10-08 Gary Benson <gbenson@redhat.com>
8755
8756 * server.h: Do not include common-exceptions.h.
8757
6f1947e8
GB
87582014-10-08 Gary Benson <gbenson@redhat.com>
8759
8760 * server.h: Do not include cleanups.h.
8761
63b434a4
JH
87622014-09-30 James Hogan <james.hogan@imgtec.com>
8763
8764 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8765 mips64-dsp-linux.c.
8766
c4d9ceb6
YQ
87672014-09-23 Yao Qi <yao@codesourcery.com>
8768
8769 * linux-low.c (lp_status_maybe_breakpoint): New function.
8770 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8771 (count_events_callback): Likewise.
8772 (select_event_lwp_callback): Likewise.
8773 (cancel_breakpoints_callback): Likewise.
8774
89a5711c
DB
87752014-09-19 Don Breazeal <donb@codesourcery.com>
8776
8777 * linux-low.c (handle_extended_wait): Call
8778 linux_ptrace_get_extended_event.
8779 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8780 linux_is_extended_waitstatus.
8781
bffc0964
JB
87822014-09-16 Joel Brobecker <brobecker@adacore.com>
8783
8784 * Makefile.in (CPPFLAGS): Define.
8785 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8786 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8787
0bfdf32f
GB
87882014-09-16 Gary Benson <gbenson@redhat.com>
8789
8790 * inferiors.h (current_inferior): Renamed as...
8791 (current_thread): New variable. All uses updated.
8792 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8793 (maybe_move_out_of_jump_pad): Likewise.
8794 (cancel_breakpoint): Likewise.
8795 (linux_low_filter_event): Likewise.
8796 (wait_for_sigstop): Likewise.
8797 (linux_resume_one_lwp): Likewise.
8798 (need_step_over_p): Likewise.
8799 (start_step_over): Likewise.
8800 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8801 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8802 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8803 and save_inferior as saved_thread.
8804 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8805 saved_thread.
8806 (regcache_invalidate_thread): Likewise.
8807 * remote-utils.c (prepare_resume_reply): Likewise.
8808 * thread-db.c (thread_db_get_tls_address): Likewise.
8809 (disable_thread_event_reporting): Likewise.
8810 (remove_thread_event_breakpoints): Likewise.
8811 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8812 as saved_thread.
8813 * target.h (set_desired_inferior): Renamed as...
8814 (set_desired_thread): New declaration. All uses updated.
8815 * server.c (myresume): Updated comment to reference thread instead
8816 of inferior.
8817 (handle_serial_event): Likewise.
8818 (handle_target_event): Likewise.
8819
361c8ade
GB
88202014-09-12 Tom Tromey <tromey@redhat.com>
8821 Gary Benson <gbenson@redhat.com>
8822
8823 * regcache.h: Include common-regcache.h.
8824 (regcache_read_pc): Don't declare.
8825 * regcache.c (get_thread_regcache_for_ptid): New function.
8826
bd9269f7
GB
88272014-09-11 Tom Tromey <tromey@redhat.com>
8828 Gary Benson <gbenson@redhat.com>
8829
8830 * symbol.c: New file.
8831 * Makefile.in (SFILES): Add symbol.c.
8832 (OBS): Add symbol.o.
8833
f8c1d06b
GB
88342014-09-11 Gary Benson <gbenson@redhat.com>
8835
8836 * target.c (target_stop_ptid, target_continue_ptid): New
8837 functions.
8838
721ec300
GB
88392014-09-11 Tom Tromey <tromey@redhat.com>
8840 Gary Benson <gbenson@redhat.com>
8841
8842 * target.h: Include target/target.h.
8843 * target.c (target_read_memory, target_read_uint32)
8844 (target_write_memory): New functions.
8845
c5e92cca
GB
88462014-09-11 Gary Benson <gbenson@redhat.com>
8847
8848 * server.h (debug_hw_points): Don't declare.
8849 * server.c (debug_hw_points): Don't define. Replace all uses
8850 with show_debug_regs.
8851 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8852 all uses with show_debug_regs.
8853
2e4bb98a
EBM
88542014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8855
8856 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8857 endianness into account.
8858 (ppc_supply_ptrace_register): Likewise.
8859
ac740bc7
JH
88602014-09-03 James Hogan <james.hogan@imgtec.com>
8861
8862 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8863 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8864
97ea6506
GB
88652014-09-03 Gary Benson <gbenson@redhat.com>
8866
8867 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8868 ALL_DEBUG_ADDRESS_REGISTERS.
8869
df7e5265
GB
88702014-09-02 Gary Benson <gbenson@redhat.com>
8871
8872 * i386-low.h: Renamed as...
8873 * x86-low.h: New file. All type, function and variable name
8874 prefixes changed from "i386_" to "x86_". All references updated.
8875 * i386-low.c: Renamed as...
8876 * x86-low.c: New file. All type, function and variable name
8877 prefixes changed from "i386_" to "x86_". All references updated.
8878
ed859da7
GB
88792014-09-02 Gary Benson <gbenson@redhat.com>
8880
8881 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8882 (x86_linux_new_thread): Likewise.
8883
860789c7
GB
88842014-08-29 Gary Benson <gbenson@redhat.com>
8885
8886 * server.h (setjmp.h): Do not include.
8887 (toplevel): Do not declare.
8888 (common-exceptions.h): Include.
8889 (cleanups.h): Likewise.
8890 * server.c (toplevel): Do not define.
8891 (exit_code): New static global.
8892 (detach_or_kill_for_exit_cleanup): New function.
8893 (main): New function. Original main renamed to...
8894 (captured_main): New function.
8895 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8896
ff55e1b5
GB
88972014-08-29 Gary Benson <gbenson@redhat.com>
8898
8899 * Makefile.in (SFILES): Add common/common-exceptions.c.
8900 (OBS): Add common-exceptions.o.
8901 (common-exceptions.o): New rule.
8902 * utils.c (prepare_to_throw_exception): New function.
8903
e9bcb658
GB
89042014-08-29 Gary Benson <gbenson@redhat.com>
8905
8906 * config.in: Regenerate.
8907 * configure: Likewise.
8908
e3180625
GB
89092014-08-29 Gary Benson <gbenson@redhat.com>
8910
8911 * Makefile.in (SFILES): Add common/cleanups.c.
8912 (OBS): cleanups.o.
8913 (cleanups.o): New rule.
8914
e3d6ba5d
GB
89152014-08-29 Gary Benson <gbenson@redhat.com>
8916
8917 * utils.c (internal_vwarning): New function.
8918
7096e886
GB
89192014-08-28 Gary Benson <gbenson@redhat.com>
8920
8921 * utils.h (fatal): Remove declaration.
8922 * utils.c (fatal): Remove function.
8923
14ce3192
GB
89242014-08-28 Gary Benson <gbenson@redhat.com>
8925
8926 * tracepoint.c (gdb_agent_init): Replace fatal with
8927 perror_with_name.
8928 (initialize_tracepoint): Likewise.
8929
50278d59
GB
89302014-08-28 Gary Benson <gbenson@redhat.com>
8931
8932 * remote-utils.c (remote_prepare): Replace fatal with error.
8933
aa96c426
GB
89342014-08-28 Gary Benson <gbenson@redhat.com>
8935
8936 * linux-low.c (linux_async): Replace fatal with warning.
8937 Tidy up and return.
8938 (linux_start_non_stop): Return -1 if linux_async failed.
8939
f7160e97
GB
89402014-08-28 Gary Benson <gbenson@redhat.com>
8941
8942 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8943 gdb_assert.
8944 (i386_dr_low_get_addr): Remove vague comment.
8945 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8946 gdb_assert.
8947
38e08fca
GB
89482014-08-28 Gary Benson <gbenson@redhat.com>
8949
8950 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8951 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8952 internal_error.
8953 (linux_resume_one_lwp): Likewise.
8954 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8955 gdb_assert.
8956 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8957 with internal_error.
8958 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8959 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8960 (find_register_by_name): Replace fatal with internal_error.
8961 (find_regno): Likewise.
8962 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8963 * thread-db.c (thread_db_create_event): Likewise.
8964 (thread_db_load_search): Likewise.
8965 (try_thread_db_load_1): Likewise.
8966 * tracepoint.c (get_jump_space_head): Replace fatal with
8967 internal_error.
8968 (claim_trampoline_space): Likewise.
8969 (have_fast_tracepoint_trampoline_buffer): Likewise.
8970 (cmd_qtstart): Likewise.
8971 (stop_tracing): Likewise.
8972 (fast_tracepoint_collecting): Likewise.
8973 (target_malloc): Likewise.
8974 (download_tracepoint): Likewise.
8975 (download_trace_state_variables): Replace check with gdb_assert.
8976 (upload_fast_traceframes): Replace fatal with internal_error.
8977
34abf635
GB
89782014-08-19 Tom Tromey <tromey@redhat.com>
8979 Gary Benson <gbenson@redhat.com>
8980
8981 * Makefile.in (SFILES): Add common/common-debug.c.
8982 (OBS): Add common-debug.o.
8983 (common-debug.o): New rule.
8984 * debug.h (debug_printf): Don't declare.
8985 * debug.c (debug_printf): Renamed and rewritten as...
8986 (debug_vprintf): New function.
8987
f6e94d78
GB
89882014-08-19 Gary Benson <gbenson@redhat.com>
8989
8990 * utils.h: Do not include print-utils.h.
8991
9239eeab
GB
89922014-08-19 Tom Tromey <tromey@redhat.com>
8993 Gary Benson <gbenson@redhat.com>
8994
8995 * server.h: Add static assertion.
8996 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8997
ef87c8bb
GB
89982014-08-19 Tom Tromey <tromey@redhat.com>
8999 Gary Benson <gbenson@redhat.com>
9000
9001 * Makefile.in (SFILES): Add common/errors.c.
9002 (OBS): Add errors.o.
9003 (IPA_OBS): Add errors-ipa.o.
9004 (errors.o): New rule.
9005 (errors-ipa.o): Likewise.
9006 * utils.h (perror_with_name, error, warning): Don't declare.
9007 * utils.c (warning): Renamed and rewritten as...
9008 (vwarning): New function.
9009 (error): Renamed and rewritten as...
9010 (verror): New function.
9011 (internal_error): Renamed and rewritten as...
9012 (internal_verror): New function.
9013
bb974a24
GB
90142014-08-07 Gary Benson <gbenson@redhat.com>
9015
9016 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9017 * configure: Regenerate.
9018 * config.in: Likewise.
9019 * server.h: Do not include errno.h.
9020 * event-loop.c: Likewise.
9021 * hostio-errno.c: Likewise.
9022 * linux-low.c: Likewise.
9023 * remote-utils.c: Likewise.
9024 * spu-low.c: Likewise.
9025 * utils.c: Likewise.
9026 * gdbreplay.c: Unconditionally include errno.h.
9027
6d3d12eb
GB
90282014-08-07 Gary Benson <gbenson@redhat.com>
9029
9030 * server.h: Do not include string.h.
9031 * event-loop.c: Likewise.
9032 * linux-low.c: Likewise.
9033 * regcache.c: Likewise.
9034 * remote-utils.c: Likewise.
9035 * spu-low.c: Likewise.
9036 * utils.c: Likewise.
9037
dccbb609
GB
90382014-08-07 Gary Benson <gbenson@redhat.com>
9039
9040 * server.h: Do not include gdb_assert.h.
9041
e76df0d0
GB
90422014-08-07 Gary Benson <gbenson@redhat.com>
9043
9044 * server.h: Do not include common-utils.h.
9045
4cb9c816
GB
90462014-08-07 Gary Benson <gbenson@redhat.com>
9047
9048 * server.h: Do not include ptid.h.
9049 * notif.h: Likewise.
9050
3995eeee
GB
90512014-08-07 Gary Benson <gbenson@redhat.com>
9052
9053 * server.h: Do not include gdb_locale.h.
9054
cb9f1a9b
GB
90552014-08-07 Gary Benson <gbenson@redhat.com>
9056
9057 * server.h: Do not include gdb/signals.h.
9058 * win32-low.c: Likewise.
9059
a5fceff8
GB
90602014-08-07 Gary Benson <gbenson@redhat.com>
9061
9062 * server.h: Do not include pathmax.h.
9063
b9391142
GB
90642014-08-07 Gary Benson <gbenson@redhat.com>
9065
9066 * server.h: Do not include libiberty.h.
9067 * linux-bfin-low.c: Likewise.
9068
0e443c87
GB
90692014-08-07 Gary Benson <gbenson@redhat.com>
9070
9071 * server.h: Do not include ansidecl.h.
9072
8ebb3f56
GB
90732014-08-07 Gary Benson <gbenson@redhat.com>
9074
9075 * linux-x86-low.c: Do not include stddef.h.
9076 * lynx-ppc-low.c: Likewise.
9077 * tracepoint.c: Likewise.
9078
8980bdf6
GB
90792014-08-07 Gary Benson <gbenson@redhat.com>
9080
9081 * server.h: Do not include stdarg.h.
9082 * nto-low.c: Likewise.
9083
d7096f71
GB
90842014-08-07 Gary Benson <gbenson@redhat.com>
9085
9086 * server.h: Do not include stdlib.h.
9087 * inferiors.c: Likewise.
9088 * linux-low.c: Likewise.
9089 * regcache.c: Likewise.
9090 * spu-low.c: Likewise.
9091 * tracepoint.c: Likewise.
9092 * utils.c: Likewise.
9093
d02f550d
GB
90942014-08-07 Gary Benson <gbenson@redhat.com>
9095
9096 * server.h: Do not include stdio.h.
9097 * linux-low.c: Likewise.
9098 * remote-utils.c: Likewise.
9099 * spu-low.c: Likewise.
9100 * utils.c: Likewise.
9101 * wincecompat.c: Likewise.
9102
87f6c4e3
GB
91032014-08-06 Gary Benson <gbenson@redhat.com>
9104
9105 * regcache.c (init_register_cache): Move conditionals inside if.
9106
7089dca4
GB
91072014-08-06 Gary Benson <gbenson@redhat.com>
9108
9109 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9110
462f517e
GB
91112014-07-31 Gary Benson <gbenson@redhat.com>
9112
9113 * ax.h: Do not include server.h.
9114 * gdbthread.h: Likewise.
9115 * lynx-low.h: Likewise.
9116 * notif.h: Likewise.
9117
976411d6
GB
91182014-07-30 Gary Benson <gbenson@redhat.com>
9119
9120 * server.h: Include common-defs.h.
9121 Do not include config.h or build-gnulib-gdbserver/config.h.
9122
d41f6d8e
GB
91232014-07-30 Gary Benson <gbenson@redhat.com>
9124
9125 * hostio-errno.c: Move server.h to top of includes list.
9126 * inferiors.c: Likewise.
9127 * linux-x86-low.c: Likewise.
9128 * notif.c: Include server.h.
9129
314c6a35
TT
91302014-07-24 Tom Tromey <tromey@redhat.com>
9131 Gary Benson <gbenson@redhat.com>
9132
9133 * server.h (CORE_ADDR): Now unsigned.
9134
69ff6be5
PA
91352014-07-16 Pedro Alves <palves@redhat.com>
9136
9137 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9138
ce9e3fe7
PA
91392014-07-15 Pedro Alves <palves@redhat.com>
9140
9141 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9142 copy.
9143
e76126e8
PA
91442014-07-11 Pedro Alves <palves@redhat.com>
9145
9146 * linux-low.c (kill_wait_lwp): New function, based on
9147 kill_one_lwp_callback, but use my_waitpid directly.
9148 (kill_one_lwp_callback, linux_kill): Use it.
9149
8e9db26e
PA
91502014-06-23 Pedro Alves <palves@redhat.com>
9151
9152 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9153 before setting DR0..DR3.
9154
698b3e08
GB
91552014-06-20 Gary Benson <gbenson@redhat.com>
9156
9157 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9158 * configure: Regenerated.
9159 * config.in: Likewise.
9160
125f8a3d
GB
91612014-06-20 Gary Benson <gbenson@redhat.com>
9162
9163 * Makefile.in (SFILES): Update locations for files moved
9164 from common to nat.
9165 (object file files): Reordered.
9166
42995dbd
GB
91672014-06-20 Gary Benson <gbenson@redhat.com>
9168
9169 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9170 (i386_dr_low_set_addr): Likewise.
9171 (i386_dr_low_get_addr): Likewise.
9172 (i386_dr_low_can_set_control): Likewise.
9173 (i386_dr_low_set_control): Likewise.
9174 (i386_dr_low_get_control): Likewise.
9175 (i386_dr_low_get_status): Likewise.
9176 (i386_get_debug_register_length): Likewise.
9177 * linux-x86-low.c (i386_dr_low_set_addr):
9178 Changed signature. Made static.
9179 (i386_dr_low_get_addr): Likewise.
9180 (i386_dr_low_set_control): Likewise.
9181 (i386_dr_low_get_control): Likewise.
9182 (i386_dr_low_get_status): Likewise.
9183 (i386_dr_low): New global variable.
9184 * win32-i386-low.c (i386_dr_low_set_addr):
9185 Changed signature. Made static.
9186 (i386_dr_low_get_addr): Likewise.
9187 (i386_dr_low_set_control): Likewise.
9188 (i386_dr_low_get_control): Likewise.
9189 (i386_dr_low_get_status): Likewise.
9190 (i386_dr_low): New global variable.
9191
e1d2394b
MS
91922014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9193
9194 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9195 * Makefile.in (AR, AR_FLAGS): Define.
9196 * configure: Regenerate.
9197
3a8ee006
GB
91982014-06-19 Gary Benson <gbenson@redhat.com>
9199
9200 * Makefile.in (i386-dregs.o): New rule.
9201 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9202 * i386-low.c (target.h): Remove include.
9203 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9204 (DR_CONTROL_SHIFT): Likewise.
9205 (DR_CONTROL_SIZE): Likewise.
9206 (DR_RW_EXECUTE): Likewise.
9207 (DR_RW_WRITE): Likewise.
9208 (DR_RW_READ): Likewise.
9209 (DR_RW_IORW): Likewise.
9210 (DR_LEN_1): Likewise.
9211 (DR_LEN_2): Likewise.
9212 (DR_LEN_4): Likewise.
9213 (DR_LEN_8): Likewise.
9214 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9215 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9216 (DR_ENABLE_SIZE): Likewise.
9217 (DR_LOCAL_SLOWDOWN): Likewise.
9218 (DR_GLOBAL_SLOWDOWN): Likewise.
9219 (DR_CONTROL_RESERVED): Likewise.
9220 (I386_DR_CONTROL_MASK): Likewise.
9221 (I386_DR_VACANT): Likewise.
9222 (I386_DR_LOCAL_ENABLE): Likewise.
9223 (I386_DR_GLOBAL_ENABLE): Likewise.
9224 (I386_DR_DISABLE): Likewise.
9225 (I386_DR_SET_RW_LEN): Likewise.
9226 (I386_DR_GET_RW_LEN): Likewise.
9227 (I386_DR_WATCH_HIT): Likewise.
9228 (i386_wp_op_t): Likewise.
9229 (i386_show_dr): Likewise.
9230 (i386_length_and_rw_bits): Likewise.
9231 (i386_insert_aligned_watchpoint): Likewise.
9232 (i386_remove_aligned_watchpoint): Likewise.
9233 (i386_handle_nonaligned_watchpoint): Likewise.
9234 i386_update_inferior_debug_regs(): Likewise.
9235 (i386_dr_insert_watchpoint): Likewise.
9236 (i386_dr_remove_watchpoint): Likewise.
9237 (i386_dr_region_ok_for_watchpoint): Likewise.
9238 (i386_dr_stopped_data_address): Likewise.
9239 (i386_dr_stopped_by_watchpoint): Likewise.
9240
8f26655c
GB
92412014-06-19 Gary Benson <gbenson@redhat.com>
9242
9243 * i386-low.c (i386_dr_show): Renamed to
9244 i386_show_dr and made static. All uses updated.
9245 (i386_dr_length_and_rw_bits): Renamed to
9246 i386_length_and_rw_bits and made static.
9247 All uses updated.
9248 (i386_dr_insert_aligned_watchpoint): Renamed to
9249 i386_insert_aligned_watchpoint and made static.
9250 All uses updated.
9251 (i386_dr_remove_aligned_watchpoint): Renamed to
9252 i386_remove_aligned_watchpoint and made static.
9253 All uses updated.
9254 (i386_dr_update_inferior_debug_regs): Renamed to
9255 i386_update_inferior_debug_regs and made static.
9256 All uses updated.
9257
b9228891
GB
92582014-06-18 Gary Benson <gbenson@redhat.com>
9259
5171def3
GB
9260 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9261 (i386_dr_low_can_set_control): Likewise.
9262 (i386_get_debug_register_length): Likewise.
9263 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9264 (i386_dr_low_can_set_control): Likewise.
9265 (i386_get_debug_register_length): Likewise.
9266
92672014-06-17 Gary Benson <gbenson@redhat.com>
9268
b9228891
GB
9269 * i386-low.h (i386-dregs.h): New include.
9270 (DR_FIRSTADDR): Now in i386-dregs.h.
9271 (DR_LASTADDR): Likewise.
9272 (DR_NADDR): Likewise.
9273 (DR_STATUS): Likewise.
9274 (DR_CONTROL): Likewise.
9275 (i386_debug_reg_state): Likewise.
9276 (i386_dr_insert_watchpoint): Likewise.
9277 (i386_dr_remove_watchpoint): Likewise.
9278 (i386_dr_region_ok_for_watchpoint): Likewise.
9279 (i386_dr_stopped_data_address): Likewise.
9280 (i386_dr_stopped_by_watchpoint): Likewise.
9281 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9282
4be83cc2
GB
92832014-06-18 Gary Benson <gbenson@redhat.com>
9284
9285 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9286 i386_dr_insert_watchpoint.
9287 (i386_low_remove_watchpoint): Renamed to
9288 i386_dr_remove_watchpoint.
9289 (i386_low_region_ok_for_watchpoint): Renamed to
9290 i386_dr_region_ok_for_watchpoint.
9291 (i386_low_stopped_data_address): Renamed to
9292 i386_dr_stopped_data_address.
9293 (i386_low_stopped_by_watchpoint): Renamed to
9294 i386_dr_stopped_by_watchpoint.
9295 * i386-low.c (i386_show_dr): Renamed to
9296 i386_dr_show and made nonstatic. All uses updated.
9297 (i386_length_and_rw_bits): Renamed to
9298 i386_dr_length_and_rw_bits and made nonstatic.
9299 All uses updated.
9300 (i386_insert_aligned_watchpoint): Renamed to
9301 i386_dr_insert_aligned_watchpoint and made nonstatic.
9302 All uses updated.
9303 (i386_remove_aligned_watchpoint): Renamed to
9304 i386_dr_remove_aligned_watchpoint and made nonstatic.
9305 All uses updated.
9306 (i386_update_inferior_debug_regs): Renamed to
9307 i386_dr_update_inferior_debug_regs and made nonstatic.
9308 All uses updated.
9309 (i386_low_insert_watchpoint): Renamed to
9310 i386_dr_insert_watchpoint. All uses updated.
9311 (i386_low_remove_watchpoint): Renamed to
9312 i386_dr_remove_watchpoint. All uses updated.
9313 (i386_low_region_ok_for_watchpoint): Renamed to
9314 i386_dr_region_ok_for_watchpoint. All uses updated.
9315 (i386_low_stopped_data_address): Renamed to
9316 i386_dr_stopped_data_address. All uses updated.
9317 (i386_low_stopped_by_watchpoint): Renamed to
9318 i386_dr_stopped_by_watchpoint. All uses updated.
9319
131aa0d4
GB
93202014-06-18 Gary Benson <gbenson@redhat.com>
9321
9322 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9323 (i386_dr_low_can_set_control): Likewise.
9324 (i386_insert_aligned_watchpoint): New check.
9325
d9305f7f
GB
93262014-06-18 Gary Benson <gbenson@redhat.com>
9327
9328 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9329 Renamed to state.
9330
e927c9fc
GB
93312014-06-18 Gary Benson <gbenson@redhat.com>
9332
9333 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9334 instead of fatal and error.
9335 (i386_handle_nonaligned_watchpoint): Likewise.
9336
1b6d4134
GB
93372014-06-18 Gary Benson <gbenson@redhat.com>
9338
9339 * i386-low.c (i386_get_debug_register_length): New macro.
9340 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9341 (i386_show_dr): Use debug_printf instead of fprintf. Use
9342 phex to format values.
9343
6e62758f
GB
93442014-06-18 Gary Benson <gbenson@redhat.com>
9345
9346 * i386-low.h: Comment changes.
9347 * i386-low.c: Likewise.
9348
fc6e2f03
GB
93492014-06-18 Gary Benson <gbenson@redhat.com>
9350
9351 * i386-low.c: Whitespace changes.
9352
f9d1eeed
TT
93532014-06-12 Tom Tromey <tromey@redhat.com>
9354
9355 * utils.c (freeargv): Remove.
9356
0b04e523
TT
93572014-06-12 Tom Tromey <tromey@redhat.com>
9358
9359 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9360 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9361 (parse_debug_format_options): Likewise.
9362 (gdbserver_usage): Likewise.
9363 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9364 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9365 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9366 against libiberty.
9367 ($(LIBGNU)): Depend on libiberty.
9368 (all-lib): Recurse into all subdirs.
9369 (install-only): Invoke "install" target in subdirs.
9370 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9371 targets.
9372 * configure: Rebuild.
9373 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9374 for vasprintf, vsnprintf, or gettimeofday.
9375 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9376 srv_tgtobj.
9377
270c9937
JB
93782014-06-05 Joel Brobecker <brobecker@adacore.com>
9379
9380 * development.sh: Delete.
9381 * Makefile.in (config.status): Adjust dependency on development.sh.
9382 * configure.ac: Adjust development.sh source call.
9383 * configure: Regenerate.
9384
0a261ed8
PA
93852014-06-02 Pedro Alves <palves@redhat.com>
9386
9387 * ax.c (gdb_free_agent_expr): New function.
9388 * ax.h (gdb_free_agent_expr): New declaration.
9389 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9390 list.
9391 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9392 static.
9393 (clear_breakpoint_conditions_and_commands): New function.
9394 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9395 (clear_breakpoint_conditions_and_commands): New declaration.
9396
e9dae05e
RR
93972014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9398
9399 * linux-aarch64-low.c (asm/ptrace.h): Include.
9400
5876f503
JK
94012014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9402
9403 Fix TLS access for -static -pthread.
9404 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9405 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9406 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9407
802e8e6d
PA
94082014-05-20 Pedro Alves <palves@redhat.com>
9409
9410 * linux-aarch64-low.c (aarch64_insert_point)
9411 (aarch64_remove_point): No longer check whether the type is
9412 supported here. Adjust to new interface.
9413 (the_low_target): Install aarch64_supports_z_point_type as
9414 supports_z_point_type method.
9415 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9416 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9417 instead of a Z packet char. Adjust.
9418 (arm_supports_z_point_type): New function.
9419 (arm_insert_point, arm_remove_point): Adjust to new interface.
9420 (the_low_target): Install arm_supports_z_point_type.
9421 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9422 (cris_insert_point, cris_remove_point): Adjust to new interface.
9423 Don't check whether the type is supported here.
9424 (the_low_target): Install cris_supports_z_point_type.
9425 * linux-low.c (linux_supports_z_point_type): New function.
9426 (linux_insert_point, linux_remove_point): Adjust to new interface.
9427 * linux-low.h (struct linux_target_ops) <insert_point,
9428 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9429 raw_breakpoint pointer parameter.
9430 <supports_z_point_type>: New method.
9431 * linux-mips-low.c (mips_supports_z_point_type): New function.
9432 (mips_insert_point, mips_remove_point): Adjust to new interface.
9433 Use mips_supports_z_point_type.
9434 (the_low_target): Install mips_supports_z_point_type.
9435 * linux-ppc-low.c (the_low_target): Install NULL as
9436 supports_z_point_type method.
9437 * linux-s390-low.c (the_low_target): Install NULL as
9438 supports_z_point_type method.
9439 * linux-sparc-low.c (the_low_target): Install NULL as
9440 supports_z_point_type method.
9441 * linux-x86-low.c (x86_supports_z_point_type): New function.
9442 (x86_insert_point): Adjust to new insert_point interface. Use
9443 insert_memory_breakpoint. Adjust to new
9444 i386_low_insert_watchpoint interface.
9445 (x86_remove_point): Adjust to remove_point interface. Use
9446 remove_memory_breakpoint. Adjust to new
9447 i386_low_remove_watchpoint interface.
9448 (the_low_target): Install x86_supports_z_point_type.
9449 * lynx-low.c (lynx_target_ops): Install NULL as
9450 supports_z_point_type callback.
9451 * nto-low.c (nto_supports_z_point_type): New.
9452 (nto_insert_point, nto_remove_point): Adjust to new interface.
9453 (nto_target_ops): Install nto_supports_z_point_type.
9454 * mem-break.c: Adjust intro comment.
9455 (struct raw_breakpoint) <raw_type, size>: New fields.
9456 <inserted>: Update comment.
9457 <shlib_disabled>: Delete field.
9458 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9459 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9460 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9461 (raw_bkpt_type_to_target_hw_bp_type): New function.
9462 (find_enabled_raw_code_breakpoint_at): New function.
9463 (find_raw_breakpoint_at): New type and size parameters. Use them.
9464 (insert_memory_breakpoint): New function, based off
9465 set_raw_breakpoint_at.
9466 (remove_memory_breakpoint): New function.
9467 (set_raw_breakpoint_at): Reimplement.
9468 (set_breakpoint): New, based on set_breakpoint_at.
9469 (set_breakpoint_at): Reimplement.
9470 (delete_raw_breakpoint): Go through the_target->remove_point
9471 instead of assuming memory breakpoints.
9472 (find_gdb_breakpoint_at): Delete.
9473 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9474 (find_gdb_breakpoint): New function.
9475 (set_gdb_breakpoint_at): Delete.
9476 (z_type_supported): New function.
9477 (set_gdb_breakpoint_1): New function, loosely based off
9478 set_gdb_breakpoint_at.
9479 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9480 (delete_gdb_breakpoint_at): Delete.
9481 (delete_gdb_breakpoint_1): New function, loosely based off
9482 delete_gdb_breakpoint_at.
9483 (delete_gdb_breakpoint): New function.
9484 (clear_gdb_breakpoint_conditions): Rename to ...
9485 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9486 breakpoint.
9487 (add_condition_to_breakpoint): Make static.
9488 (add_breakpoint_condition): Take a struct breakpoint pointer
9489 instead of an address. Adjust.
9490 (gdb_condition_true_at_breakpoint): Rename to ...
9491 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9492 z_type parameter.
9493 (gdb_condition_true_at_breakpoint): Reimplement.
9494 (add_breakpoint_commands): Take a struct breakpoint pointer
9495 instead of an address. Adjust.
9496 (gdb_no_commands_at_breakpoint): Rename to ...
9497 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9498 parameter. Return true if no breakpoint was found. Change debug
9499 output.
9500 (gdb_no_commands_at_breakpoint): Reimplement.
9501 (run_breakpoint_commands): Rename to ...
9502 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9503 and change return type to boolean.
9504 (run_breakpoint_commands): New function.
9505 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9506 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9507 breakpoint. Go through the_target->remove_point instead of
9508 assuming memory breakpoint.
9509 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9510 software and hardware breakpoints.
9511 (reinsert_raw_breakpoint): Go through the_target->insert_point
9512 instead of assuming memory breakpoint.
9513 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9514 software and hardware breakpoints.
9515 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9516 Check both software and hardware breakpoints.
9517 (validate_inserted_breakpoint): Assert the breakpoint is a
9518 software breakpoint. Set the inserted flag to -1 instead of
9519 setting shlib_disabled.
9520 (delete_disabled_breakpoints): Adjust.
9521 (validate_breakpoints): Only validate software breakpoints.
9522 Adjust to inserted flag change.
9523 (check_mem_read, check_mem_write): Skip breakpoint types other
9524 than software breakpoints. Adjust to inserted flag change.
9525 * mem-break.h (enum raw_bkpt_type): New enum.
9526 (raw_breakpoint, struct process_info): Forward declare.
9527 (Z_packet_to_target_hw_bp_type): Delete declaration.
9528 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9529 (set_gdb_breakpoint, delete_gdb_breakpoint)
9530 (clear_breakpoint_conditions): New declarations.
9531 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9532 (breakpoint_inserted_here): Update comment.
9533 (add_breakpoint_condition, add_breakpoint_commands): Replace
9534 address parameter with a breakpoint pointer parameter.
9535 (gdb_breakpoint_here): Update comment.
9536 (delete_gdb_breakpoint_at): Delete.
9537 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9538 * server.c (process_point_options): Take a struct breakpoint
9539 pointer instead of an address. Adjust.
9540 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9541 delete_gdb_breakpoint.
9542 * spu-low.c (spu_target_ops): Install NULL as
9543 supports_z_point_type method.
9544 * target.h: Include mem-break.h.
9545 (struct target_ops) <prepare_to_access_memory>: Update comment.
9546 <supports_z_point_type>: New field.
9547 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9548 instead of a char. Also take a raw breakpoint pointer.
9549 * win32-arm-low.c (the_low_target): Install NULL as
9550 supports_z_point_type.
9551 * win32-i386-low.c (i386_supports_z_point_type): New function.
9552 (i386_insert_point, i386_remove_point): Adjust to new interface.
9553 (the_low_target): Install i386_supports_z_point_type.
9554 * win32-low.c (win32_supports_z_point_type): New function.
9555 (win32_insert_point, win32_remove_point): Adjust to new interface.
9556 (win32_target_ops): Install win32_supports_z_point_type.
9557 * win32-low.h (struct win32_target_ops):
9558 <supports_z_point_type>: New method.
9559 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9560 instead of a char. Also take a raw breakpoint pointer.
9561
932539e3
PA
95622014-05-20 Pedro Alves <palves@redhat.com>
9563
9564 * mem-break.h: Include break-common.h.
9565 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9566 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9567 (Z_packet_to_target_hw_bp_type): New declaration.
9568 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9569 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9570 (Z_PACKET_ACCESS_WP): Delete macros.
9571 (Z_packet_to_hw_type): Delete function.
9572 * i386-low.h: Don't include break-common.h here.
9573 (Z_packet_to_hw_type): Delete declaration.
9574 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9575 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9576 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9577 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9578 * linux-aarch64-low.c: Don't include break-common.h here.
9579 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9580 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9581 (Z_packet_to_target_hw_bp_type): Delete function.
9582 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
9583 function.
9584 (mips_insert_point, mips_remove_point): Use
9585 Z_packet_to_target_hw_bp_type.
9586
4ff0d3d8
PA
95872014-05-20 Pedro Alves <palves@redhat.com>
9588
9589 * linux-aarch64-low.c: Include break-common.h.
9590 (enum target_point_type): Delete.
9591 (Z_packet_to_point_type): Rename to ...
9592 (Z_packet_to_target_hw_bp_type): ... this, and return a
9593 target_hw_bp_type instead.
9594 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
9595 instead of an enum target_point_type.
9596 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
9597 breakpoint type.
9598 (aarch64_dr_state_insert_one_point)
9599 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
9600 (aarch64_handle_aligned_watchpoint)
9601 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
9602 Take an enum target_hw_bp_type instead of an enum
9603 target_point_type.
9604 (aarch64_supports_z_point_type): New function.
9605 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
9606 use Z_packet_to_target_hw_bp_type.
9607
786dc519
JB
96082014-05-20 Joel Brobecker <brobecker@adacore.com>
9609
9610 * configure.ac: Only use -Werror by default when DEVELOPMENT
9611 is true.
9612 * configure: Regenerate.
9613
9e0aa64f
JK
96142014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9615
9616 Fix gdbserver qGetTLSAddr for x86_64 -m32.
9617 * linux-x86-low.c (X86_64_USER_REGS): New.
9618 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
9619
2b577b92
YQ
96202014-04-28 Yao Qi <yao@codesourcery.com>
9621
9622 * Makefile.in (i386-avx512.c): Fix the typo of generated file
9623 name.
9624
94611da2
PA
96252014-04-25 Pedro Alves <palves@redhat.com>
9626
9627 PR server/16255
9628 * linux-low.c (linux_attach_fail_reason_string): New function.
9629 (linux_attach_lwp): Delete.
9630 (linux_attach_lwp_1): Rename to ...
9631 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9632 argument. Remove "initial" parameter. Return int instead of
9633 void. Don't error or warn here.
9634 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9635 failure to attach to the tgid. Call warning when failing to
9636 attach to an lwp.
9637 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9638 argument. Remove "initial" parameter. Return int instead of
9639 void. Don't error or warn here.
9640 (linux_attach_fail_reason_string): New declaration.
9641 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9642 interface change. Use linux_attach_fail_reason_string.
9643
01f9f808
MS
96442014-04-24 Michael Sturm <michael.sturm@mintel.com>
9645 Walfred Tedeschi <walfred.tedeschi@intel.com>
9646
9647 * Makefile.in: Added rules to handle new files
9648 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9649 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9650 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9651 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9652 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9653 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9654 x32-avx512-linux.o.
9655 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9656 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9657 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9658 i386/x32-avx512.xml.
9659 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9660 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9661 i386/x32-avx512-linux.xml.
9662 * i387-fp.c (num_avx512_k_registers): New constant for number
9663 of K registers.
9664 (num_avx512_zmmh_low_registers): New constant for number of
9665 lower ZMM registers (0-15).
9666 (num_avx512_zmmh_high_registers): New constant for number of
9667 higher ZMM registers (16-31).
9668 (num_avx512_ymmh_registers): New contant for number of higher
9669 YMM registers (ymm16-31 added by avx521 on x86_64).
9670 (num_avx512_xmm_registers): New constant for number of higher
9671 XMM registers (xmm16-31 added by AVX512 on x86_64).
9672 (struct i387_xsave): Add space for AVX512 registers.
9673 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9674 Add code to handle AVX512 registers.
9675 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9676 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9677 prototypei from generated file.
9678 (tdesc_amd64_avx512_linux): Likewise.
9679 (init_registers_x32_avx512_linux): Likewise.
9680 (tdesc_x32_avx512_linux): Likewise.
9681 (init_registers_i386_avx512_linux): Likewise.
9682 (tdesc_i386_avx512_linux): Likewise.
9683 (x86_64_regmap): Add AVX512 registers.
9684 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9685 mask.
9686 (initialize_low_arch): Add code to initialize AVX512 registers.
9687
51aa91f9
PA
96882014-04-23 Pedro Alves <palves@redhat.com>
9689
9690 * mem-break.c (find_gdb_breakpoint_at): Make static.
9691 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9692
a4165e94
PA
96932014-04-23 Pedro Alves <palves@redhat.com>
9694
9695 * i386-low.c: Don't include break-common.h here.
9696 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9697 prototype to take target_hw_bp_type as argument instead of a Z
9698 packet char.
9699 * i386-low.h: Include break-common.h here.
9700 (Z_packet_to_hw_type): Declare.
9701 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9702 prototypes.
9703 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9704 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9705 (x86_remove_point): Convert the packet number to a
9706 target_hw_bp_type before calling i386_low_remove_watchpoint.
9707 * win32-i386-low.c (i386_insert_point): Convert the packet number
9708 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9709 (i386_remove_point): Convert the packet number to a
9710 target_hw_bp_type before calling i386_low_remove_watchpoint.
9711
b8acf843
PA
97122014-04-23 Pedro Alves <palves@redhat.com>
9713
9714 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9715
d708bcd1
PA
97162014-04-10 Pedro Alves <palves@redhat.com>
9717
9718 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9719 Check if the condition or command is NULL before checking if the
9720 breakpoint is known. On success, return true.
9721 * mem-break.h (add_breakpoint_condition): Document return.
9722 (add_breakpoint_commands): Add describing comment.
9723 * server.c (skip_to_semicolon): New function.
9724 (process_point_options): Use it.
9725
2eec7d5b
PA
97262014-04-09 Pedro Alves <palves@redhat.com>
9727
9728 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9729 to lwpid_of.
9730
fa96cb38
PA
97312014-02-27 Pedro Alves <palves@redhat.com>
9732
9733 PR 12702
9734 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9735 macros.
9736 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9737 output.
9738 (last_thread_of_process_p): Take a PID argument instead of a
9739 thread pointer.
9740 (linux_wait_for_lwp): Delete.
9741 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9742 functions.
9743 (linux_low_filter_event): New function, party factored out from
9744 linux_wait_for_event.
9745 (linux_wait_for_event): Rename to ...
9746 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9747 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9748 sigsuspend. Check for zombie leaders.
9749 (linux_wait_for_event): Reimplement as wrapper around
9750 linux_wait_for_event_filtered.
9751 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9752 a normal or signal exit is seen, it's the whole process exiting.
9753 (wait_for_sigstop): No longer a for_each_inferior callback.
9754 Rewrite on top of linux_wait_for_event_filtered.
9755 (stop_all_lwps): Call wait_for_sigstop directly.
9756 * server.c (resume, handle_target_event): Handle
9757 TARGET_WAITKIND_NO_RESUMED.
9758
d763de10
JB
97592014-02-26 Joel Brobecker <brobecker@adacore.com>
9760
9761 * win32-low.c (psapi_get_dll_name,
9762 * win32_CreateToolhelp32Snapshot): Delete.
9763 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9764 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9765 Delete.
9766 (handle_load_dll): Add function description.
9767 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9768
850a0f76
JB
97692014-02-26 Joel Brobecker <brobecker@adacore.com>
9770
9771 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9772 Add comment.
9773 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9774 base address when calling win32_add_one_solib.
9775 (handle_load_dll): Delete local variable load_addr.
9776 Remove 0x1000 offset applied to DLL base address when calling
9777 win32_add_one_solib.
9778 (handle_unload_dll): Add comment.
9779
f25b3fc3
JB
97802014-02-26 Joel Brobecker <brobecker@adacore.com>
9781
9782 * win32-low.c (win32_add_all_dlls): Renames
9783 win32_ensure_ntdll_loaded. Rewrite function documentation.
9784 Adjust implementation to always load all DLLs.
9785 Add 0x1000 offset to DLL base address when calling
9786 win32_add_one_solib.
9787 (child_initialization_done): New static global.
9788 (do_initial_child_stuff): Set child_initialization_done to
9789 zero during child initialization, and 1 after. Replace call
9790 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9791 Add comment.
9792 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9793 (handle_unload_dll): Add function documentation.
9794 (get_child_debug_event): Ignore load and unload DLL events
9795 during child initialization.
9796
d86d4aaf
DE
97972014-02-20 Doug Evans <dje@google.com>
9798
3bc32da3 9799 Remove global all_lwps.
d86d4aaf
DE
9800 * inferiors.h (ptid_of): Move here from linux-low.h.
9801 (pid_of, lwpid_of): Ditto.
9802 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9803 parameter is a struct thread_info * now.
9804 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9805 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9806 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9807 directly.
9808 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9809 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9810 * linux-arm-low.c (update_registers_callback): Update, "entry"
9811 parameter is a struct thread_info * now.
9812 Fetch lwpid from current_inferior directly.
9813 (arm_insert_point): Pass &all_threads to find_inferior instead of
9814 &all_lwps.
9815 (arm_remove_point): Ditto.
9816 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9817 (arm_prepare_to_resume): Fetch pid from thread.
9818 (arm_read_description): Fetch lwpid from current_inferior directly.
9819 * linux-low.c (all_lwps): Delete.
9820 (delete_lwp): Delete call to remove_inferior.
9821 (handle_extended_wait): Fetch lwpid from thread.
9822 (add_lwp): Don't set lwp->entry.id. Remove call to
9823 add_inferior_to_list.
9824 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9825 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9826 (kill_one_lwp_callback): Ditto.
9827 (linux_kill): Don't dereference NULL pointer.
9828 Fetch ptid,lwpid from thread.
9829 (get_detach_signal): Fetch ptid from thread.
9830 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9831 Simplify call to regcache_invalidate_thread.
9832 (delete_lwp_callback): Update, "entry" parameter is a
9833 struct thread_info * now. Fetch pid from thread.
9834 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9835 (status_pending_p_callback): Update, "entry" parameter is a
9836 struct thread_info * now. Fetch ptid from thread.
9837 (find_lwp_pid): Update, "entry" parameter is a
9838 struct thread_info * now.
9839 (linux_wait_for_lwp): Fetch pid from thread.
9840 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9841 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9842 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9843 (dequeue_one_deferred_signal): Ditto.
9844 (cancel_breakpoint): Fetch ptid from current_inferior.
9845 (linux_wait_for_event): Pass &all_threads to find_inferior,
9846 not &all_lwps. Fetch ptid, lwpid from thread.
9847 (count_events_callback): Update, "entry" parameter is a
9848 struct thread_info * now.
9849 (select_singlestep_lwp_callback): Ditto.
9850 (select_event_lwp_callback): Ditto.
9851 (cancel_breakpoints_callback): Ditto.
9852 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9853 not &all_lwps.
9854 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9855 (unsuspend_one_lwp): Update, "entry" parameter is a
9856 struct thread_info * now.
9857 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9858 not &all_lwps.
9859 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9860 Fetch lwpid from thread, not lwp.
9861 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9862 Pass &all_threads to find_inferior, not &all_lwps.
9863 (send_sigstop): Fetch lwpid from thread, not lwp.
9864 (send_sigstop_callback): Update, "entry" parameter is a
9865 struct thread_info * now.
9866 (suspend_and_send_sigstop_callback): Ditto.
9867 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9868 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9869 struct thread_info * now.
9870 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9871 from thread, lwp.
9872 (lwp_running): Update, "entry" parameter is a
9873 struct thread_info * now.
9874 (stop_all_lwps): Fetch ptid from thread.
9875 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9876 (linux_resume_one_lwp): Fetch lwpid from thread.
9877 (linux_set_resume_request): Update, "entry" parameter is a
9878 struct thread_info * now. Fetch pid, lwpid from thread.
9879 (resume_status_pending_p): Update, "entry" parameter is a
9880 struct thread_info * now.
9881 (need_step_over_p): Ditto. Fetch lwpid from thread.
9882 (start_step_over): Fetch lwpid from thread.
9883 (linux_resume_one_thread): Update, "entry" parameter is a
9884 struct thread_info * now. Fetch lwpid from thread.
9885 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9886 (proceed_one_lwp): Update, "entry" parameter is a
9887 struct thread_info * now. Fetch lwpid from thread.
9888 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9889 struct thread_info * now.
9890 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9891 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9892 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9893 directly.
9894 (regsets_store_inferior_registers): Ditto.
9895 (fetch_register, store_register): Ditto.
9896 (linux_read_memory, linux_write_memory): Ditto.
9897 (linux_request_interrupt): Ditto.
9898 (linux_read_auxv): Ditto.
9899 (linux_xfer_siginfo): Ditto.
9900 (linux_qxfer_spu): Ditto.
9901 (linux_qxfer_libraries_svr4): Ditto.
9902 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9903 moved to inferiors.h.
9904 (get_lwp): Delete.
9905 (get_thread_lwp): Update.
9906 (struct lwp_info): Delete member "entry". Simplify comment for
9907 member "thread".
9908 (all_lwps): Delete.
9909 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9910 current_inferior directly.
9911 (update_watch_registers_callback): Update, "entry" parameter is a
9912 struct thread_info * now. Fetch pid from thread.
9913 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9914 (mips_insert_point): Fetch lwpid from current_inferior.
9915 Pass &all_threads to find_inferior, not &all_lwps.
9916 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9917 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9918 directly.
9919 (mips_stopped_data_address): Ditto.
9920 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9921 directly.
9922 * linux-tile-low.c (tile_arch_setup): Ditto.
9923 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9924 (update_debug_registers_callback): Update, "entry" parameter is a
9925 struct thread_info * now. Fetch pid from thread.
9926 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9927 Pass &all_threads to find_inferior, not &all_lwps.
9928 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9929 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9930 Pass &all_threads to find_inferior, not &all_lwps.
9931 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9932 (i386_dr_low_get_status): Ditto.
9933 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9934 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9935 (x86_linux_read_description): Ditto.
9936 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9937
3b8361aa
DE
99382014-02-20 Doug Evans <dje@google.com>
9939
9940 * inferiors.c (get_first_inferior): Fix buglet.
9941
f7667f0d
DE
99422014-02-19 Doug Evans <dje@google.com>
9943
9944 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9945 * inferiors.c (add_thread): Change result type to struct thread_info *.
9946 All callers updated.
9947 (add_lwp): Call add_thread here instead of in callers.
9948 All callers updated.
9949 * linux-low.h (get_lwp_thread): Rewrite.
9950 (struct lwp_info): New member "thread".
9951
b3312d80
DE
99522014-02-19 Doug Evans <dje@google.com>
9953
9954 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9955 All callers updated.
9956
ecc6f45c
DE
99572014-02-19 Doug Evans <dje@google.com>
9958
9959 * inferiors.c (add_thread): Fix whitespace.
9960
649ebbca
DE
99612014-02-19 Doug Evans <dje@google.com>
9962
9963 * dll.c (clear_dlls): Replace accessing list implemention details
9964 with API function.
9965 * gdbthread.h (get_first_thread): Declare.
9966 * inferiors.c (for_each_inferior_with_data): New function.
9967 (get_first_thread): New function.
9968 (find_thread_ptid): Simplify.
9969 (get_first_inferior): New function.
9970 (clear_list): Delete.
9971 (one_inferior_p): New function.
9972 (clear_inferior_list): New function.
9973 (clear_inferiors): Update.
9974 * inferiors.h (for_each_inferior_with_data): Declare.
9975 (clear_inferior_list): Declare.
9976 (one_inferior_p): Declare.
9977 (get_first_inferior): Declare.
9978 * linux-low.c (linux_wait_for_event): Replace accessing list
9979 implemention details with API function.
9980 * server.c (target_running): Ditto.
9981 (accumulate_file_name_length): New function.
9982 (emit_dll_description): New function.
9983 (handle_qxfer_libraries): Replace accessing list implemention
9984 details with API function.
9985 (handle_qxfer_threads_worker): New function.
9986 (handle_qxfer_threads_proper): Replace accessing list implemention
9987 details with API function.
9988 (handle_query): Ditto.
9989 (visit_actioned_threads_callback_ftype): New typedef.
9990 (visit_actioned_threads_data): New struct.
9991 (visit_actioned_threads): Rewrite to be find_inferior callback.
9992 (resume): Call find_inferior.
9993 (handle_status): Replace accessing list implemention
9994 details with API function.
9995 (process_serial_event): Replace accessing list implemention details
9996 with API function.
9997 * target.c (set_desired_inferior): Replace accessing list implemention
9998 details with API function.
9999 * tracepoint.c (same_process_p): New function.
10000 (gdb_agent_about_to_close): Replace accessing list implemention
10001 details with API function.
10002 * win32-low.c (child_delete_thread): Replace accessing list
10003 implemention details with API function.
10004 (match_dll_by_basename): New function.
10005 (dll_is_loaded_by_basename): New function.
10006 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10007 details call to dll_is_loaded_by_basename.
10008
80894984
DE
100092014-02-19 Doug Evans <dje@google.com>
10010
10011 * dll.h (struct dll_info): Add comment.
10012 * gdbthread.h (struct thread_info): Add comment.
10013 (current_ptid): Simplify.
10014 * inferiors.c (add_process): Update.
10015 (remove_process): Update.
10016 * inferiors.h (struct process_info): Rename member "head" to "entry".
10017 * linux-low.c (delete_lwp): Update.
10018 (add_lwp): Update.
10019 (last_thread_of_process_p): Update.
10020 (kill_one_lwp_callback, linux_kill): Update.
10021 (status_pending_p_callback): Update.
10022 (wait_for_sigstop): Update. Simplify read of ptid.
10023 (start_step_over): Update.
10024 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10025 (get_lwp_thread): Update.
10026 (struct lwp_info): Rename member "head" to "entry".
10027 * regcache.h (inferior_list_entry): Delete.
10028 * server.c (kill_inferior_callback): Update.
10029 (detach_or_kill_inferior_callback): Update.
10030 (print_started_pid): Update.
10031 (print_attached_pid): Update.
10032 (process_serial_event): Simplify read of ptid.
10033 * thread-db.c (thread_db_create_event): Update.
10034 (thread_db_get_tls_address): Update.
10035 * win32-low.c (current_inferior_ptid): Simplify.
10036
46917d26
TT
100372014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10040 argument.
10041 (target_supports_btrace): Update.
10042
0759a81e
YQ
100432014-02-14 Yao Qi <yao@codesourcery.com>
10044
10045 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10046 (rsp-low-ipa.o): New target.
10047
a7191e8b
TT
100482014-02-12 Tom Tromey <tromey@redhat.com>
10049
10050 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10051 convert_ascii_to_int.
10052 * regcache.c (registers_to_string): Likewise.
10053 * remote-utils.c (decode_M_packet): Likewise.
10054 * server.c (process_serial_event): Likewise.
10055
ff0e980e
TT
100562014-02-12 Tom Tromey <tromey@redhat.com>
10057
10058 * server.c (handle_query, handle_v_run): Use hex2bin, not
10059 unhexify.
10060 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10061
e9371aff
TT
100622014-02-12 Tom Tromey <tromey@redhat.com>
10063
10064 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10065 convert_int_to_ascii.
10066 * regcache.c (registers_to_string, collect_register_as_string):
10067 Likewise.
10068 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10069 Likewise.
10070 * server.c (process_serial_event): Likewise.
10071 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10072 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10073
971dc0b8
TT
100742014-02-12 Tom Tromey <tromey@redhat.com>
10075
10076 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10077 bin2hex, not hexify.
10078 * tracepoint.c (cmd_qtstatus): Likewise.
10079
0a822afb
TT
100802014-02-12 Tom Tromey <tromey@redhat.com>
10081
10082 * remote-utils.c (monitor_output): Pass explicit length to
10083 hexify.
10084
9c3d6531
TT
100852014-02-12 Tom Tromey <tromey@redhat.com>
10086
10087 * tracepoint.c: Include rsp-low.h.
10088 * server.c: Include rsp-low.h.
10089 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10090 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10091 declare.
10092 * remote-utils.c: Include rsp-low.h.
10093 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10094 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10095 (convert_int_to_ascii, convert_ascii_to_int): Move to
10096 common/rsp-low.c.
10097 * regcache.c: Include rsp-low.h.
10098 * ax.c: Include rsp-low.h.
10099 * Makefile.in (SFILES): Add common/rsp-low.c.
10100 (OBS): Add rsp-low.o.
10101 (rsp-low.o): New target.
10102
01fd3ea5
TT
101032014-02-12 Tom Tromey <tromey@redhat.com>
10104
10105 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10106 Include print-utils.h.
10107 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10108 (plongest, thirty_two, phex_nz): Remove.
10109 * Makefile.in (SFILES): Add common/print-utils.c.
10110 (OBS): Add print-utils.o.
10111 (print-utils-ipa.o): New target.
10112 (print-utils.o): New target.
10113 (IPA_OBJS): Add print-utils-ipa.o.
10114
e99dc820
TT
101152014-02-06 Tom Tromey <tromey@redhat.com>
10116
10117 * Makefile.in (SFILES): Fix indentation.
10118
ee1e2d4f
DE
101192014-02-05 Doug Evans <dje@google.com>
10120
10121 * linux-low.c (linux_wait_for_event): Improve comment.
10122 (linux_wait_1): Keep current_inferior in sync with event_child.
10123
f5a02773
DE
101242014-01-22 Doug Evans <dje@google.com>
10125
10126 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10127
87ce2a04
DE
101282014-01-22 Doug Evans <dje@google.com>
10129
10130 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10131 * configure: Regenerate.
10132 * config.in: Regenerate.
10133 * Makefile.in (SFILES): Add debug.c.
10134 (OBS): Add debug.o.
10135 * debug.c: New file.
10136 * debug.h: New file.
10137 * linux-aarch64-low.c (*): Update all debugging printfs to use
10138 debug_printf instead of fprintf.
10139 * linux-arm-low.c (*): Ditto.
10140 * linux-cris-low.c (*): Ditto.
10141 * linux-crisv32-low.c (*): Ditto.
10142 * linux-m32r-low.c (*): Ditto.
10143 * linux-sparc-low.c (*): Ditto.
10144 * linux-x86.c (*): Ditto.
10145 * linux-low.c (*): Ditto.
10146 (linux_wait_1): Add calls to debug_enter, debug_exit.
10147 (linux_wait): Remove redundant debugging printf.
10148 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10149 (linux_resume, unstop_all_lwps): Ditto.
10150 * mem-break.c (*): Update all debugging printfs to use
10151 debug_printf instead of fprintf.
10152 * remote-utils.c (*): Ditto.
10153 * thread-db.c (*): Ditto.
10154 * server.c #include <ctype.h>, "gdb_vecs.h".
10155 (debug_threads): Moved to debug.c.
10156 (*): Update all debugging printfs to use debug_printf instead of
10157 fprintf.
10158 (start_inferior): Replace call to fflush with call to debug_flush.
10159 (monitor_show_help): Mention set debug-format.
10160 (parse_debug_format_options): New function.
10161 (handle_monitor_command): Handle "monitor set debug-format".
10162 (gdbserver_usage): Mention --debug-format.
10163 (main): Parse --debug-format.
10164 * server.h (debug_threads): Declaration moved to debug.h.
10165 #include "debug.h".
10166 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10167 trace_debug_1 that uses debug_printf.
10168 (tracepoint_look_up_symbols): Update all debugging printfs to use
10169 debug_printf instead of fprintf.
10170
e671835b
BS
101712014-01-20 Baruch Siach <baruch@tkos.co.il>
10172
10173 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10174 sys/ptrace.h.
10175
b5737fa9
PA
101762014-01-17 Pedro Alves <palves@redhat.com>
10177
ea38d2a9 10178 PR build/16445
c7faa97a
PA
10179 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10180 defined after including gdb_proc_service.h.
b5737fa9 10181
40ed484e
DE
101822014-01-16 Doug Evans <dje@google.com>
10183
10184 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10185 (match_dll): Use it.
10186
969c39fb
MM
101872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10188
10189 * target.h (target_ops) <read_btrace>: Change parameters and
10190 return type to allow error reporting.
10191 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10192 trace reading errors on.
10193 * linux-low.c (linux_low_read_btrace): Pass trace reading
10194 errors on.
10195 (linux_low_disable_btrace): New.
10196
ab7f45ba
DE
101972014-01-15 Doug Evans <dje@google.com>
10198
10199 * inferiors.c (thread_id_to_gdb_id): Delete.
10200 * inferiors.h (thread_id_to_gdb_id): Delete.
10201
66af0f44
EZ
102022014-01-13 Eli Zaretskii <eliz@gnu.org>
10203
10204 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10205 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10206 versions.
10207
9939e131
PA
102082014-01-08 Pedro Alves <palves@redhat.com>
10209
10210 * server.c (handle_status): Don't discard previous queued stop
10211 replies or thread's pending status here.
10212 (main) <disconnection>: Do it here instead.
10213
b7ea362b
PA
102142014-01-08 Pedro Alves <palves@redhat.com>
10215
10216 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10217 * server.c (visit_actioned_threads, handle_pending_status): New
10218 function.
10219 (handle_v_cont): Factor out parts to ...
10220 (resume): ... this new function. If in all-stop, and a thread
10221 being resumed has a pending status, report it without actually
10222 resuming.
10223 (myresume): Adjust to use the new 'resume' function.
10224 (clear_pending_status_callback, set_pending_status_callback)
10225 (find_status_pending_thread_callback): New functions.
10226 (handle_status): Handle the case of multiple threads having
10227 interesting statuses to report. Report threads' real last signal
10228 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10229 with an interesting thread to report the status for, instead of
10230 always reporting the status of the first thread.
10231
28498c42
JB
102322014-01-01 Joel Brobecker <brobecker@adacore.com>
10233
10234 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10235 * gdbreplay.c (gdbreplay_version): Likewise.
10236
f45c82da
YZ
102372013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10238
10239 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10240 iov.iov_len with the real length in use.
10241
379a5e2d
JB
102422013-12-13 Joel Brobecker <brobecker@adacore.com>
10243
10244 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10245 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10246 for all targets that use win32-low.c.
10247 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10248 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10249
4210d83e
PA
102502013-12-13 Pedro Alves <palves@redhat.com>
10251
10252 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10253 if equal to TARGET_WAITKIND_LOADED.
10254 * win32-low.c (cached_status): New static global.
10255 (win32_wait): Add declaration.
10256 (do_initial_child_stuff): Flush all initial pending debug events
10257 up to the initial breakpoint.
10258 (win32_wait): If CACHED_STATUS was set, return that instead
10259 of doing a real wait. Remove the code resuming the execution
10260 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10261 during the initial phase. Also remove the code changing
10262 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10263 TARGET_WAITKIND_STOPPED.
10264
e7f0d979
YQ
102652013-12-11 Yao Qi <yao@codesourcery.com>
10266
10267 * notif.c (handle_notif_ack): Return 0 if no notification
10268 matches.
10269
ebcf782c
DE
102702013-11-20 Doug Evans <dje@google.com>
10271
10272 * linux-low.c (linux_set_resume_request): Fix comment.
10273
20ad9378
DE
102742013-11-20 Doug Evans <dje@google.com>
10275
10276 * linux-low.c (resume_status_pending_p): Tweak comment.
10277
a196ebeb
WT
102782013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10279
10280 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10281 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10282 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10283 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10284 (srv_amd64_regobj): Add amd64-mpx.o.
10285 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10286 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10287 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10288 * i387-fp.c (num_pl_bnd_register) Added constant.
10289 (num_pl_bnd_cfg_registers) Added constant.
10290 (struct i387_xsave) Added reserved area and MPX fields.
10291 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10292 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10293 function.
10294 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10295 (init_registers_amd64_mpx_linux): Declare new function.
10296 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10297 (x86_64_regmap): Add MPX registers.
10298 (x86_linux_read_description): Add MPX case.
10299 (initialize_low_arch): Initialize MPX targets.
10300
0080a2f6
TT
103012013-11-18 Tom Tromey <tromey@redhat.com>
10302
10303 * configure: Rebuild.
10304 * configure.ac: Don't check for stdlib.h.
10305 * gdbreplay.c: Unconditionally include stdlib.h.
10306
2978b111
TT
103072013-11-18 Tom Tromey <tromey@redhat.com>
10308
10309 * config.in: Rebuild.
10310 * configure: Rebuild.
10311 * configure.ac: Don't use AC_HEADER_DIRENT.
10312
a3d08894
TT
103132013-11-18 Tom Tromey <tromey@redhat.com>
10314
10315 * server.h: Don't check HAVE_STRING_H.
10316 * gdbreplay.c: Don't check HAVE_STRING_H.
10317 * configure: Rebuild.
10318
0a5dd17d
TT
103192013-11-18 Tom Tromey <tromey@redhat.com>
10320
10321 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10322 LIBGNU.
10323
1bd2f0ba
TT
103242013-11-08 Tom Tromey <tromey@redhat.com>
10325
10326 * configure, config.in: Rebuild.
10327 * configure.ac: Remove unused configury.
10328
3266f10b
TT
103292013-11-08 Tom Tromey <tromey@redhat.com>
10330
10331 * acinclude.m4: Include common.m4, codeset.m4.
10332 * configure, config.in: Rebuild.
10333 * configure.ac: Use GDB_AC_COMMON.
10334
6682d959
AA
103352013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10336
10337 * linux-s390-low.c (HWCAP_S390_TE): New define.
10338 (s390_arch_setup): Consider the TE field in the HWCAP for
10339 determining 'have_regset_tdb'.
10340
fd0a4d76
SDJ
103412013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10342
10343 PR gdb/16014
10344 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10345 call to sizeof.
10346
1a3d890b
PA
103472013-10-02 Pedro Alves <palves@redhat.com>
10348
10349 * server.c (process_serial_event): Don't output "GDBserver
10350 exiting" if GDB is connected through stdio.
10351 * target.c (mywait): Likewise, be silent if GDB is connected
10352 through stdio.
10353
97ad4581
JB
103542013-10-01 Joel Brobecker <brobecker@adacore.com>
10355
10356 * lynx-low.c (lynx_add_threads_after_attach): New function.
10357 (lynx_attach): Remove call to add_thread. Add call to
10358 lynx_add_threads_after_attach instead.
10359
5b4e221c
MF
103602013-09-28 Mike Frysinger <vapier@gentoo.org>
10361
10362 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10363 * config.in, configure: Regenerated.
10364
ee47b2f8
YQ
103652013-09-18 Yao Qi <yao@codesourcery.com>
10366
10367 PR server/15959
10368 * server.c (start_inferior): Clear 'resume_info'.
10369
d6707650 103702013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10371
d6707650
JW
10372 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10373 for each register.
10374
9243dd0e 103752013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10376
9243dd0e
JW
10377 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10378 linux-tile-low.o to srv_tgtobj.
10379
c623a6ef
WN
103802013-09-16 Will Newton <will.newton@linaro.org>
10381
10382 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10383 out regs.
10384
fb71d39e
PA
103852013-09-06 Pedro Alves <palves@redhat.com>
10386
10387 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10388 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10389 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10390 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10391 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10392 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10393
8e7e9910
PA
103942013-09-06 Pedro Alves <palves@redhat.com>
10395
10396 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10397 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10398
7c3a12ca
PA
103992013-09-06 Pedro Alves <palves@redhat.com>
10400
10401 * linux-amd64-ipa.c: Include tracepoint.h.
10402 * linux-i386-ipa.c: Include tracepoint.h.
10403
8eb3d7b6
RW
104042013-09-06 Ricard Wanderlof <ricardw@axis.com>
10405
10406 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10407 (ps_get_thread_area): New function.
10408
eddddb9d
RW
104092013-09-06 Ricard Wanderlof <ricardw@axis.com>
10410
10411 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10412 (initialize_low_arch): Call init_registers_crisv32 rather than
10413 init_register_crisv32.
10414
533b0600
PA
104152013-09-05 Pedro Alves <palves@redhat.com>
10416
10417 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10418 to ...
10419 * hostio.h: ... this new file.
10420 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10421 win32-low.c: Include hostio.h.
10422
0ce3d3b5
PA
104232013-09-05 Pedro Alves <palves@redhat.com>
10424
10425 * server.h (gdb_client_data, handler_func, callback_handler_func)
10426 (delete_file_handler, add_file_handler, append_callback_event)
10427 (delete_callback_event, start_event_loop, initialize_event_loop):
10428 Move to event-loop.h and include it.
10429 * event-loop.h: New file.
10430
799cdc37
PA
104312013-09-05 Pedro Alves <palves@redhat.com>
10432
10433 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10434 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10435 (loaded_dll, unloaded_dll): Move to ...
10436 * dll.h: ... this new file.
10437 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10438
6a6bbd9d
PA
104392013-09-05 Pedro Alves <palves@redhat.com>
10440
10441 * server.h (current_process, get_thread_process, all_processes)
10442 (add_inferior_to_list, for_each_inferior, current_inferior)
10443 (remove_inferior, add_process, remove_process, find_process_pid)
10444 (have_started_inferiors_p, have_attached_inferiors_p)
10445 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10446 (clear_inferiors, find_inferior, find_inferior_id)
10447 (inferior_target_data, set_inferior_target_data)
10448 (inferior_regcache_data, set_inferior_regcache_data): Move to
10449 inferiors.h, and include it.
10450 * inferiors.h: New file.
10451
f699aaba
PA
104522013-09-05 Pedro Alves <palves@redhat.com>
10453
10454 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10455 Move ...
72f4393d 10456 * ax.h: ... here.
f699aaba 10457
c144c7a0
PA
104582013-09-05 Pedro Alves <palves@redhat.com>
10459
10460 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10461 tracepoint.h.
10462 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10463 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10464 (handle_tracepoint_general_set, handle_tracepoint_query)
10465 (tracepoint_finished_step, tracepoint_was_hit)
10466 (release_while_stepping_state_list, current_traceframe)
10467 (in_readonly_region, traceframe_read_mem)
10468 (fetch_traceframe_registers, traceframe_read_sdata)
10469 (traceframe_read_info, struct fast_tpoint_collect_status)
10470 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10471 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10472 (supply_fast_tracepoint_registers)
10473 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10474 (ipa_tdesc, claim_trampoline_space)
10475 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10476 (agent_mem_read, agent_get_trace_state_variable_value)
10477 (agent_set_trace_state_variable_value, agent_tsv_read)
10478 (agent_mem_read_string, get_raw_reg_func_addr)
10479 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10480 * tracepoint.h: ... this new file.
10481
ff42e6ab
PA
104822013-09-05 Pedro Alves <palves@redhat.com>
10483
10484 * server.h (perror_with_name, error, fatal, warning, paddress)
10485 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10486 include it.
10487 * utils.h: New file.
10488
541af0f4
PA
104892013-09-05 Pedro Alves <palves@redhat.com>
10490
10491 * server.h (remote_debug, noack_mode, transport_is_reliable)
10492 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10493 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10494 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10495 (write_enn, initialize_async_io, enable_async_io)
10496 (disable_async_io, check_remote_input_interrupt_request)
10497 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10498 (dead_thread_notify, prepare_resume_reply)
10499 (decode_address_to_semicolon, decode_address, decode_m_packet)
10500 (decode_M_packet, decode_X_packet, decode_xfer_write)
10501 (decode_search_memory_packet, unhexify, hexify)
10502 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10503 (look_up_one_symbol, relocate_instruction)
10504 (monitor_output): Move to remote-utils.h, and include it.
10505 * remote-utils.h: New file.
10506
eebdf26b
PA
105072013-09-05 Pedro Alves <palves@redhat.com>
10508
10509 * server.h (_): Delete.
10510
3aafd2ff
PA
105112013-09-02 Pedro Alves <palves@redhat.com>
10512
10513 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10514 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10515 allocated.
10516 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10517
cee83bcb
PM
105182013-09-02 Pierre Muller <muller@sourceware.org>
10519
10520 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10521 or WriteProcessMemory complete successfully and handle
10522 ERROR_PARTIAL_COPY error.
10523
9a13b2fa
PA
105242013-09-02 Pedro Alves <palves@redhat.com>
10525
10526 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10527 error instead of EIO.
10528
602e3198
JK
105292013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10530
10531 PR server/15604
10532 * linux-low.c: Include filestuff.h.
10533 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10534 * lynx-low.c: Include filestuff.h.
10535 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10536 * server.c: Include filestuff.h.
10537 (main): Call notice_open_fds.
10538 * spu-low.c: Include filestuff.h.
10539 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10540
96d7229d
LM
105412013-08-22 Luis Machado <lgustavo@codesourcery.com>
10542
10543 * Makefile.in: Explain why ../target and ../nat are not
10544 listed as include file search paths.
10545 (linux-waitpid.o): New object file rule.
10546 * configure.srv (srv_native_linux_obj): New variable.
10547 Replace all occurrences of linux native object files with
10548 $srv_native_linux_obj.
10549 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10550 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10551 (linux_enable_event_reporting): Remove declaration.
10552 (my_waitpid): Moved to common/linux-waitpid.c.
10553 (linux_wait_for_event): Pass ptid when calling
10554 linux_enable_event_reporting.
10555 (linux_supports_tracefork_flag): Remove.
10556 (linux_enable_event_reporting): Likewise.
10557 (linux_tracefork_grandchild): Remove.
10558 (STACK_SIZE): Moved to common/linux-ptrace.c.
10559 (linux_tracefork_child): Remove.
10560 (linux_test_for_tracefork): Remove.
10561 (linux_look_up_symbols): Call linux_supports_traceclone.
10562 (initialize_low): Remove call to linux_test_for_tracefork.
10563 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10564 common/linux-ptrace.h.
10565 (PTRACE_TYPE_ARG4): Likewise.
10566 Include linux-ptrace.h.
10567
32940073
PA
105682013-08-21 Pedro Alves <palves@redhat.com>
10569
10570 * config.in: Renegerate.
10571
33b60d58 105722013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 10573
33b60d58
LM
10574 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10575 (SFILES): Remove $(srcdir)/common/target-common.c and
10576 add $(srcdir)/target/waitstatus.c.
10577 (OBS): Remove target-common.o and add waitstatus.o.
10578 (server_h): Remove $(srcdir)/../common/target-common.h and
10579 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10580 and $(srcdir)/../target/waitstatus.h.
10581 (target-common.o): Remove.
10582 (waitstatus.o): New target object file.
10583 * target.h: Do not include target-common.h and
10584 include target/resume.h, target/wait.h and
10585 target/waitstatus.h.
10586
b8e1b30e
LM
105872013-08-13 Luis Machado <lgustavo@codesourcery.com>
10588
10589 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10590 to PTRACE_TYPE_ARG3.
10591 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10592 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
10593 PTRACE_TYPE_ARG4.
10594 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
10595 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
10596
7a60ad40
YQ
105972013-07-27 Jie Zhang <jie@codesourcery.com>
10598 Daniel Jacobowitz <dan@codesourcery.com>
10599 Yao Qi <yao@codesourcery.com>
10600
10601 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
10602 (mips-linux-watch.o): New rule.
10603 (mips_linux_watch_h): New variable.
10604 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
10605 srv_tgtobj.
10606 * linux-mips-low.c: Include mips-linux-watch.h.
10607 (struct arch_process_info, struct arch_lwp_info): New.
10608 (update_watch_registers_callback): New function.
10609 (mips_linux_new_process, mips_linux_new_thread) New functions.
10610 (mips_linux_prepare_to_resume, mips_insert_point): New
10611 functions.
10612 (mips_remove_point, mips_stopped_by_watchpoint): New
10613 functions.
10614 (rsp_bp_type_to_target_hw_bp_type): New function.
10615 (mips_stopped_data_address): New function.
10616 (the_low_target): Add watchpoint support functions.
10617
de6f69ad
YQ
106182013-07-27 Yao Qi <yao@codesourcery.com>
10619
10620 * i386-low.c: Include break-common.h.
10621 (enum target_hw_bp_type): Remove.
10622
3360c0bf
LM
106232013-07-24 Luis Machado <lgustavo@codesourcery.com>
10624
10625 * Makefile.in (SFILES): /common/target-common.c.
10626 (OBS): Add target-common.o.
10627 (server_h): Add $(srcdir)/../common/target-common.h.
10628 (target-common.o): New target.
10629 * server.c (queue_stop_reply_callback): Free
10630 status string after use.
10631 * target.c (target_waitstatus_to_string): Remove.
10632 * target.h: Include target-common.h.
10633 (resume_kind): Likewise.
10634 (target_waitkind): Likewise.
10635 (target_waitstatus): Likewise.
10636 (TARGET_WNOHANG): Likewise.
10637
bd885420
YQ
106382013-07-04 Yao Qi <yao@codesourcery.com>
10639
10640 * Makefile.in (host_alias): Use @host_noncanonical@.
10641 (target_alias): Use @target_noncanonical@.
10642 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10643 ACX_NONCANONICAL_HOST.
10644 * configure: Regenerated.
10645
10646 Revert:
10647 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10648
10649 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10650 * configure: Rebuild.
10651 * Makefile.in (version_host, version_target): Get from configure.
10652 (version.c): Use $(version_host) and $(version_target).
10653
17ef446e
PA
106542013-07-03 Pedro Alves <palves@redhat.com>
10655
10656 * Makefile.in (config.status): Depend on development.sh.
10657 * acinclude.m4: Include libmcheck.m4.
10658 * configure: Regenerate.
10659
7a9a7487
MG
106602013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10661
10662 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10663 attribute inside the parentheses.
10664 (winapi_DebugSetProcessKillOnExit): Ditto.
10665 (winapi_DebugBreakProcess): Ditto.
10666 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 10667
49b64de6
MG
106682013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10669
10670 * notif.h (notif_event): Add a dummy member to avoid compiler
10671 errors.
10672
d5749ee7
PA
106732013-07-01 Pedro Alves <palves@redhat.com>
10674
10675 * hostio.c (HOSTIO_PATH_MAX): Define.
10676 (require_filename, handle_open, handle_unlink, handle_readlink):
10677 Use it.
10678
d8d2a3ee
PA
106792013-07-01 Pedro Alves <palves@redhat.com>
10680
10681 * server.h: Include "pathmax.h".
10682 * linux-low.c: Don't include sys/param.h.
10683 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10684 MAXPATHLEN.
10685 * win32-low.c: Don't include sys/param.h.
10686 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10687
bc7dea8d
PA
106882013-07-01 Pedro Alves <palves@redhat.com>
10689
10690 * event-loop.c: Don't check HAVE_UNISTD_H before including
10691 <unistd.h>.
10692 * gdbreplay.c: Likewise.
10693 * remote-utils.c: Likewise.
10694 * server.c: Likewise.
10695 * configure.ac: Don't check for unistd.h.
10696 * configure: Regenerate.
10697
d6c2da54
TT
106982013-06-28 Tom Tromey <tromey@redhat.com>
10699
10700 * Makefile.in (version.c): Use version.in, not
10701 common/version.in.
10702
257b6bec
MG
107032013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10704
10705 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10706 * configure: Rebuild.
10707 * Makefile.in (version_host, version_target): Get from configure.
10708 (version.c): Use $(version_host) and $(version_target).
10709
86ebe149
DK
107102013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10711
10712 Fix trace-status to output user name without trailing colon.
10713 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10714
f30aa5af
DK
107152013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10716
10717 Fix trace-status to output proper start-time and stop-time.
10718 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10719 output start time and stop time in hex as gdb expects.
10720
28a93511
YQ
107212013-06-26 Pedro Alves <pedro@codesourcery.com>
10722
10723 * tracepoint.c (build_traceframe_info_xml): Output trace state
10724 variables present in the trace buffer.
10725
01208463
TT
107262013-06-24 Tom Tromey <tromey@redhat.com>
10727
10728 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10729 create-version.sh.
10730 (version.o): Remove.
10731 * gdbreplay.c: Include version.h.
10732 (version, host_name): Don't declare.
10733 * server.h: Include version.h.
10734 (version, host_name): Don't declare.
10735
760256f9
PA
107362013-06-12 Pedro Alves <palves@redhat.com>
10737
10738 * linux-x86-low.c (linux_is_elf64): Delete global.
10739 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10740 with local linux_pid_exe_is_elf_64_file use.
10741
030031ee
PA
107422013-06-11 Pedro Alves <palves@redhat.com>
10743
10744 * linux-low.c (regset_disabled, disable_regset): New functions.
10745 (regsets_fetch_inferior_registers)
10746 (regsets_store_inferior_registers): Use them.
10747 (initialize_regsets_info); Don't allocate the disabled_regsets
10748 array here.
10749 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10750 comment.
10751
5da6eb0a
PA
107522013-06-11 Pedro Alves <palves@redhat.com>
10753
10754 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10755 xmalloc.
10756
7e5aaa09
PA
107572013-06-11 Pedro Alves <palves@redhat.com>
10758
10759 * linux-x86-low.c (initialize_low_arch): Call
10760 init_registers_x32_avx_linux.
10761
d878444c
JK
107622013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10763
10764 Fix compatibility with Android Bionic.
10765 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10766 it is not empty.
10767
3aee8918
PA
107682013-06-07 Pedro Alves <palves@redhat.com>
10769
5f2b57b5 10770 PR server/14823
3aee8918
PA
10771 * Makefile.in (OBS): Add tdesc.o.
10772 (IPA_OBJS): Add tdesc-ipa.o.
10773 (tdesc-ipa.o): New rule.
10774 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10775 interface.
10776 * linux-low.c (new_inferior): Delete.
10777 (disabled_regsets, num_regsets): Delete.
10778 (linux_add_process): Adjust to set the new per-process
10779 new_inferior flag.
10780 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10781 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10782 was a stop. When calling arch_setup, switch the current inferior
10783 to the thread that got an event.
10784 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10785 (regsets_fetch_inferior_registers)
10786 (regsets_store_inferior_registers): New regsets_info parameter.
10787 Adjust to use it.
10788 (linux_register_in_regsets): New regs_info parameter. Adjust to
10789 use it.
10790 (register_addr, fetch_register, store_register): New usrregs_info
10791 parameter. Adjust to use it.
10792 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10793 parameter regs_info. Adjust to use it.
10794 (linux_fetch_registers): Get the current inferior's regs_info, and
10795 adjust to use it.
10796 (linux_store_registers): Ditto.
10797 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10798 (initialize_low): Don't initialize the target_regsets here. Call
10799 initialize_low_arch.
10800 * linux-low.h (target_regsets): Delete declaration.
10801 (struct regsets_info): New.
10802 (struct usrregs_info): New.
10803 (struct regs_info): New.
10804 (struct process_info_private) <new_inferior>: New field.
10805 (struct linux_target_ops): Delete the num_regs, regmap, and
10806 regset_bitmap fields. New field regs_info.
10807 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10808 * i387-fp.c (num_xmm_registers): Delete.
10809 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10810 calls to new interface.
10811 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10812 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10813 Infer the number of xmm registers from the regcache's target
10814 description.
10815 * i387-fp.h (num_xmm_registers): Delete.
10816 * inferiors.c (add_thread): Don't install the thread's regcache
10817 here.
10818 * proc-service.c (gregset_info): Fetch the current inferior's
10819 regs_info. Adjust to use it.
10820 * regcache.c: Include tdesc.h.
10821 (register_bytes, reg_defs, num_registers)
10822 (gdbserver_expedite_regs): Delete.
10823 (get_thread_regcache): If the thread doesn't have a regcache yet,
10824 create one, instead of aborting gdbserver.
10825 (regcache_invalidate_one): Rename to ...
10826 (regcache_invalidate_thread): ... this.
10827 (regcache_invalidate_one): New.
10828 (regcache_invalidate): Only invalidate registers of the current
10829 process.
10830 (init_register_cache): Add target_desc parameter, and use it.
10831 (new_register_cache): Ditto. Assert the target description has a
10832 non zero registers_size.
10833 (regcache_cpy): Add assertions. Adjust.
10834 (realloc_register_cache, set_register_cache): Delete.
10835 (registers_to_string, registers_from_string): Adjust.
10836 (find_register_by_name, find_regno, find_register_by_number)
10837 (register_cache_size): Add target_desc parameter, and use it.
10838 (free_register_cache_thread, free_register_cache_thread_one)
10839 (regcache_release, register_cache_size): New.
10840 (register_size): Add target_desc parameter, and use it.
10841 (register_data, supply_register, supply_register_zeroed)
10842 (supply_regblock, supply_register_by_name, collect_register)
10843 (collect_register_as_string, collect_register_by_name): Adjust.
10844 * regcache.h (struct target_desc): Forward declare.
10845 (struct regcache) <tdesc>: New field.
10846 (init_register_cache, new_register_cache): Add target_desc
10847 parameter.
10848 (regcache_invalidate_thread): Declare.
10849 (regcache_invalidate_one): Delete declaration.
10850 (regcache_release): Declare.
10851 (find_register_by_number, register_cache_size, register_size)
10852 (find_regno): Add target_desc parameter.
10853 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10854 declarations.
10855 * remote-utils.c: Include tdesc.h.
10856 (outreg, prepare_resume_reply): Adjust.
10857 * server.c: Include tdesc.h.
10858 (gdbserver_xmltarget): Delete declaration.
10859 (get_features_xml, process_serial_event): Adjust.
10860 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10861 declare.
10862 (struct process_info) <tdesc>: New field.
10863 (ipa_tdesc): Declare.
10864 * tdesc.c: New file.
10865 * tdesc.h: New file.
10866 * tracepoint.c: Include tdesc.h.
10867 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10868 (get_context_regcache): Adjust to pass ipa_tdesc down.
10869 (do_action_at_tracepoint): Adjust to get the register cache size
10870 from the context regcache's description.
10871 (traceframe_walk_blocks): Adjust to get the register cache size
10872 from the current trace frame's description.
10873 (traceframe_get_pc): Adjust to get current trace frame's
10874 description and pass it down.
10875 (gdb_collect): Adjust to get the register cache size from the
10876 IPA's description.
10877 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10878 (gdbserver_xmltarget): Delete.
10879 (initialize_low_tracepoint): Set the ipa's target description.
10880 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10881 (initialize_low_tracepoint): Set the ipa's target description.
10882 * linux-x86-low.c: Include tdesc.h.
10883 [__x86_64__] (is_64bit_tdesc): New.
10884 (ps_get_thread_area, x86_get_thread_area): Use it.
10885 (i386_cannot_store_register): Rename to ...
10886 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10887 (i386_cannot_fetch_register): Rename to ...
10888 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10889 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10890 to new interface.
10891 (target_regsets): Rename to ...
10892 (x86_regsets): ... this.
10893 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10894 interface.
10895 (x86_siginfo_fixup): Use is_64bit_tdesc.
10896 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10897 (tdesc_x32_avx_linux, tdesc_x32_linux)
10898 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10899 Declare.
10900 (x86_linux_update_xmltarget): Delete.
10901 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10902 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10903 (AMD64_LINUX_USER64_CS): New.
10904 (x86_linux_read_description): New, based on
10905 x86_linux_update_xmltarget.
10906 (same_process_callback): New.
10907 (x86_arch_setup_process_callback): New.
10908 (x86_linux_update_xmltarget): New.
10909 (x86_regsets_info): New.
10910 (amd64_linux_regs_info): New.
10911 (i386_linux_usrregs_info): New.
10912 (i386_linux_regs_info): New.
10913 (x86_linux_regs_info): New.
10914 (x86_arch_setup): Reimplement.
10915 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10916 (x86_emit_ops): Ditto.
10917 (the_low_target): Adjust. Install x86_linux_regs_info,
10918 x86_cannot_fetch_register, and x86_cannot_store_register.
10919 (initialize_low_arch): New.
10920 * linux-ia64-low.c (tdesc_ia64): Declare.
10921 (ia64_fetch_register): Adjust.
10922 (ia64_usrregs_info, regs_info): New globals.
10923 (ia64_regs_info): New function.
10924 (the_low_target): Adjust.
10925 (initialize_low_arch): New function.
10926 * linux-sparc-low.c (tdesc_sparc64): Declare.
10927 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10928 Adjust.
10929 (sparc_arch_setup): New function.
10930 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10931 (the_low_target): Adjust.
10932 (initialize_low_arch): New function.
10933 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10934 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10935 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10936 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10937 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10938 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10939 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10940 (tdesc_powerpc_isa205_vsx64l): Declare.
10941 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10942 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10943 (ppc_set_pc, ppc_get_hwcap): Adjust.
10944 (ppc_usrregs_info): Forward declare.
10945 (!__powerpc64__) ppc_regmap_adjusted: New global.
10946 (ppc_arch_setup): Adjust to the current process'es target
10947 description.
10948 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10949 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10950 (ppc_store_evrregset): Adjust.
10951 (target_regsets): Rename to ...
10952 (ppc_regsets): ... this, and make static.
10953 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10954 (ppc_regs_info): New function.
10955 (the_low_target): Adjust.
10956 (initialize_low_arch): New function.
10957 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10958 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10959 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10960 (tdesc_s390x_linux64v2): Declare.
10961 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10962 (s390_fill_gregset, s390_store_last_break): Adjust.
10963 (target_regsets): Rename to ...
10964 (s390_regsets): ... this, and make static.
10965 (s390_get_pc, s390_set_pc): Adjust.
10966 (s390_get_hwcap): New target_desc parameter, and use it.
10967 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10968 (s390_arch_setup): Adjust to set the current process'es target
10969 description. Don't adjust the regmap.
10970 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10971 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10972 (regs_info_3264): New globals.
10973 (s390_regs_info): New function.
10974 (the_low_target): Adjust.
10975 (initialize_low_arch): New function.
10976 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10977 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10978 [__mips64] (init_registers_mips_linux)
10979 (init_registers_mips_dsp_linux): Delete defines.
10980 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10981 (have_dsp): New global.
10982 (mips_read_description): New, based on mips_arch_setup.
10983 (mips_arch_setup): Reimplement.
10984 (get_usrregs_info): New function.
10985 (mips_cannot_fetch_register, mips_cannot_store_register)
10986 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10987 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10988 (target_regsets): Rename to ...
10989 (mips_regsets): ... this, and make static.
10990 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10991 (dsp_regs_info, regs_info): New globals.
10992 (mips_regs_info): New function.
10993 (the_low_target): Adjust.
10994 (initialize_low_arch): New function.
10995 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10996 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10997 Declare.
10998 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10999 (arm_read_description): New, with bits factored from
11000 arm_arch_setup.
11001 (arm_arch_setup): Reimplement.
11002 (target_regsets): Rename to ...
11003 (arm_regsets): ... this, and make static.
11004 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11005 (arm_regs_info): New function.
11006 (the_low_target): Adjust.
11007 (initialize_low_arch): New function.
11008 * linux-m68k-low.c (tdesc_m68k): Declare.
11009 (target_regsets): Rename to ...
11010 (m68k_regsets): ... this, and make static.
11011 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11012 (m68k_regs_info): New function.
11013 (m68k_arch_setup): New function.
11014 (the_low_target): Adjust.
11015 (initialize_low_arch): New function.
11016 * linux-sh-low.c (tdesc_sharch): Declare.
11017 (target_regsets): Rename to ...
11018 (sh_regsets): ... this, and make static.
11019 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11020 (sh_regs_info, sh_arch_setup): New functions.
11021 (the_low_target): Adjust.
11022 (initialize_low_arch): New function.
11023 * linux-bfin-low.c (tdesc_bfin): Declare.
11024 (bfin_arch_setup): New function.
11025 (bfin_usrregs_info, regs_info): New globals.
11026 (bfin_regs_info): New function.
11027 (the_low_target): Adjust.
11028 (initialize_low_arch): New function.
11029 * linux-cris-low.c (tdesc_cris): Declare.
11030 (cris_arch_setup): New function.
11031 (cris_usrregs_info, regs_info): New globals.
11032 (cris_regs_info): New function.
11033 (the_low_target): Adjust.
11034 (initialize_low_arch): New function.
11035 * linux-cris-low.c (tdesc_crisv32): Declare.
11036 (cris_arch_setup): New function.
11037 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11038 (cris_regs_info): New function.
11039 (the_low_target): Adjust.
11040 (initialize_low_arch): New function.
11041 * linux-m32r-low.c (tdesc_m32r): Declare.
11042 (m32r_arch_setup): New function.
11043 (m32r_usrregs_info, regs_info): New globals.
11044 (m32r_regs_info): Adjust.
11045 (initialize_low_arch): New function.
11046 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11047 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11048 (tic6x_usrregs_info): Forward declare.
11049 (tic6x_read_description): New function, based on ...
11050 (tic6x_arch_setup): ... this. Reimplement.
11051 (target_regsets): Rename to ...
11052 (tic6x_regsets): ... this, and make static.
11053 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11054 (tic6x_regs_info): New function.
11055 (the_low_target): Adjust.
11056 (initialize_low_arch): New function.
11057 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11058 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11059 (target_regsets): Rename to ...
11060 (xtensa_regsets): ... this, and make static.
11061 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11062 globals.
11063 (xtensa_arch_setup, xtensa_regs_info): New functions.
11064 (the_low_target): Adjust.
11065 (initialize_low_arch): New function.
11066 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11067 (nios2_arch_setup): Set the current process'es tdesc.
11068 (target_regsets): Rename to ...
11069 (nios2_regsets): ... this.
11070 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11071 (nios2_regs_info): New function.
11072 (the_low_target): Adjust.
11073 (initialize_low_arch): New function.
a261b8f5
PA
11074 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11075 (aarch64_arch_setup): Set the current process'es tdesc.
11076 (target_regsets): Rename to ...
11077 (aarch64_regsets): ... this.
11078 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11079 (aarch64_regs_info): New function.
11080 (the_low_target): Adjust.
11081 (initialize_low_arch): New function.
3aee8918
PA
11082 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11083 globals.
11084 (target_regsets): Rename to ...
11085 (tile_regsets): ... this.
11086 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11087 (tile_regs_info): New function.
11088 (tile_arch_setup): Set the current process'es tdesc.
11089 (the_low_target): Adjust.
11090 (initialize_low_arch): New function.
11091 * spu-low.c (tdesc_spu): Declare.
11092 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11093 * win32-arm-low.c (tdesc_arm): Declare.
11094 (arm_arch_setup): New function.
11095 (the_low_target): Install arm_arch_setup instead of
11096 init_registers_arm.
11097 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11098 (init_windows_x86): Rename to ...
11099 (i386_arch_setup): ... this. Set `win32_tdesc'.
11100 (the_low_target): Adjust.
11101 * win32-low.c (win32_tdesc): New global.
11102 (child_add_thread): Don't create the thread cache here.
11103 (do_initial_child_stuff): Set the new process'es tdesc.
11104 * win32-low.h (struct target_desc): Forward declare.
11105 (win32_tdesc): Declare.
11106 * lynx-i386-low.c (tdesc_i386): Declare global.
11107 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11108 * lynx-low.c (lynx_tdesc): New global.
11109 (lynx_add_process): Set the new process'es tdesc.
11110 * lynx-low.h (struct target_desc): Forward declare.
11111 (lynx_tdesc): Declare global.
11112 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11113 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11114 * nto-low.c (nto_tdesc): New global.
11115 (do_attach): Set the new process'es tdesc.
11116 * nto-low.h (struct target_desc): Forward declare.
11117 (nto_tdesc): Declare.
11118 * nto-x86-low.c (tdesc_i386): Declare.
11119 (nto_x86_arch_setup): Set `nto_tdesc'.
11120
b1fbec62
GB
111212013-06-04 Gary Benson <gbenson@redhat.com>
11122
11123 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11124 to qSupported response when appropriate.
11125 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11126 with nonzero-length annex.
11127 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11128 arguments supplied in annex.
11129
d1ec4ce7
DE
111302013-05-31 Doug Evans <dje@google.com>
11131
ac44adcb 11132 PR server/15594
d1ec4ce7
DE
11133 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11134 64 bits in 64-cross-32 environment.
11135
9b25f2d3
PA
111362013-05-28 Pedro Alves <palves@redhat.com>
11137
11138 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11139 (aarch64-without-fpu.c): Delete rule.
11140 * configure.srv (aarch64*-*-linux*): Remove references to
11141 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11142 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11143 declaration.
11144
6740dc9c
PA
111452013-05-24 Pedro Alves <palves@redhat.com>
11146
11147 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11148 instead of strchr/decode_address. Error if the range isn't split
11149 with a ','. Don't assume there's be a ':' in the action.
11150
c2d6af84
PA
111512013-05-23 Yao Qi <yao@codesourcery.com>
11152 Pedro Alves <palves@redhat.com>
11153
11154 * linux-low.c (lwp_in_step_range): New function.
11155 (linux_wait_1): If the thread was range stepping and stopped
11156 outside the stepping range, report the stop to GDB. Otherwise,
11157 continue stepping. Add range stepping debug output.
11158 (linux_set_resume_request): Copy the step range from the resume
11159 request to the lwp.
11160 (linux_supports_range_stepping): New.
11161 (linux_target_ops) <supports_range_stepping>: Set to
11162 linux_supports_range_stepping.
11163 * linux-low.h (struct linux_target_ops)
11164 <supports_range_stepping>: New field.
11165 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11166 * linux-x86-low.c (x86_supports_range_stepping): New.
11167 (the_low_target) <supports_range_stepping>: Set to
11168 x86_supports_range_stepping.
11169 * server.c (handle_v_cont): Handle 'r' action.
11170 (handle_v_requests): Append ";r" if the target supports range
11171 stepping.
11172 * target.h (struct thread_resume) <step_range_start,
11173 step_range_end>: New fields.
11174 (struct target_ops) <supports_range_stepping>:
11175 New field.
11176 (target_supports_range_stepping): New macro.
11177
58794e1a
JB
111782013-05-17 Joel Brobecker <brobecker@adacore.com>
11179
11180 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11181 confusion in comment.
11182
d631c5a7
JB
111832013-05-17 Joel Brobecker <brobecker@adacore.com>
11184
11185 * lynx-low.c (struct process_info_private): New type.
11186 (lynx_add_process): New function.
11187 (lynx_create_inferior, lynx_attach): Replace calls to
11188 add_process by calls to lynx_add_process.
11189 (lynx_resume): If PTID is null, then try using
11190 current_process()->private->last_wait_event_ptid.
11191 Add comments.
11192 (lynx_clear_inferiors): Delete. The contents of that function
11193 has been inlined in lynx_mourn;
11194 (lynx_wait_1): Save the ptid in the process's private data.
11195 (lynx_mourn): Free the process' private data. Replace call
11196 to lynx_clear_inferiors by call to clear_inferiors.
11197
96f7a20f
YQ
111982013-05-17 Yao Qi <yao@codesourcery.com>
11199
11200 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11201 the right place.
11202
db0dfaa0
LM
112032013-05-16 Luis Machado <lgustavo@codesourcery.com>
11204
11205 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11206 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11207 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11208 PT_TEXT_END_ADDR guards. Update comments.
11209 (linux_target_op) <read_offsets>: Conditionally define to
11210 linux_read_offsets if the target is UCLIBC and if it defines
11211 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11212
68f5f838
SL
112132013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11214 Andrew Jenner <andrew@codesourcery.com>
11215
11216 * Makefile.in (SFILES): Add linux-nios2-low.c.
11217 (clean): Add action to delete nios2-linux.c.
11218 (nios2-linux.c): New rule.
11219 * configure.srv: Add nios2*-*-linux*.
11220 * linux-nios2-low.c: New.
11221
1ebff1fd
HAQ
112222013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11223
11224 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11225
f6150862
HZ
112262013-04-25 Hui Zhu <hui@codesourcery.com>
11227
11228 PR gdb/15186
f6150862
HZ
11229 * ax.c (ax_printf): Add fflush.
11230
614c279d
TT
112312013-04-22 Tom Tromey <tromey@redhat.com>
11232
11233 * Makefile.in (SFILES): Add filestuff.c.
11234 (OBS): Add filestuff.o.
11235 (filestuff.o): New target.
11236 * config.in, configure: Rebuild.
11237 * configure.ac: Check for fdwalk, pipe2.
11238
7d4e5717
PA
112392013-04-17 Pedro Alves <palves@redhat.com>
11240
11241 * configure.ac (USE_THREAD_DB): Delete variable.
11242 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11243 Don't AC_SUBST USE_THREAD_DB.
11244 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11245 * config.in, configure: Regenerate.
11246
d5c93e41
PA
112472013-04-16 Pedro Alves <palves@redhat.com>
11248
11249 * linux-low.h (struct lwp_info) <thread_known>: Move under
11250 the USE_THREAD_DB #ifdef.
11251
04f5fe89
PA
112522013-04-16 Pedro Alves <palves@redhat.com>
11253
11254 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11255 (linux-low.o): Delete rule.
11256 * linux-low.h: Always include "gdb_thread_db.h" instead of
11257 conditionally including thread_db.h.
11258 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11259 HAVE_THREAD_DB_H.
11260
480b27bf
JK
112612013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11262
11263 * Makefile.in (install-only): Fix make install regression.
11264
43662968
JK
112652013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11266
11267 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11268 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11269 installation.
11270 * gdbserver.1: Remove.
11271
3e74e146
PA
112722013-03-22 Pedro Alves <palves@redhat.com>
11273
11274 * linux-low.c (handle_extended_wait): Don't call
11275 linux_enable_event_reporting.
11276
a8347a2a
TT
112772013-03-15 Tony Theodore <tonyt@logyst.com>
11278
11279 PR build/9098:
11280 * Makefile.in (SHELL): Use @SHELL@.
11281
eeb56fa7
SDJ
112822013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11283
11284 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11285 compiler warning.
11286
4fa7e2ff
JB
112872013-03-13 Joel Brobecker <brobecker@adacore.com>
11288
11289 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11290 Remove extraneous NULL element.
11291
8ddb1965
YQ
112922013-03-13 Yao Qi <yao@codesourcery.com>
11293
11294 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11295 'V' block in trace frame.
11296
9accd112
MM
112972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11298
11299 * target.h (struct target_ops): Add btrace ops.
11300 (target_supports_btrace): New macro.
11301 (target_enable_btrace): New macro.
11302 (target_disable_btrace): New macro.
11303 (target_read_btrace): New macro.
11304 * gdbthread.h (struct thread_info): Add btrace field.
11305 * server.c: Include btrace-common.h.
11306 (handle_btrace_general_set): New function.
11307 (handle_btrace_enable): New function.
11308 (handle_btrace_disable): New function.
11309 (handle_general_set): Call handle_btrace_general_set.
11310 (handle_qxfer_btrace): New function.
11311 (struct qxfer qxfer_packets[]): Add btrace entry.
11312 * inferiors.c (remove_thread): Disable btrace.
11313 * linux-low: Include linux-btrace.h.
11314 (linux_low_enable_btrace): New function.
11315 (linux_low_read_btrace): New function.
11316 (linux_target_ops): Add btrace ops.
11317 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11318 Add srv_linux_btrace=yes.
11319 (x86_64-*-linux*): Add linux-btrace.o.
11320 Add srv_linux_btrace=yes.
11321 * configure.ac: Define HAVE_LINUX_BTRACE.
11322 * config.in: Regenerated.
11323 * configure: Regenerated.
11324
5cc22e4c
MM
113252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11326
11327 * server.c (handle_qxfer): Preserve error message if -3 is
11328 returned.
11329 (qxfer): Document the -3 return value.
11330
7c97f91e
MM
113312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11332
11333 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11334 (linux_btrace_h): New variable.
11335 (linux-btrace.o): New rule.
11336
be9a119c 113372013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11338 Hafiz Abid Qadeer <abidh@codesourcery.com>
11339
11340 * tracepoint.c (trace_buffer_size): New global.
11341 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11342 (init_trace_buffer): Change to one-argument function. Allocate
11343 trace buffer memory.
11344 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11345 handle QTBuffer:size packet.
11346 (cmd_bigqtbuffer_size): New function.
11347 (initialize_tracepoint): Call init_trace_buffer with
11348 DEFAULT_TRACE_BUFFER_SIZE.
11349 * server.c (handle_query): Add QTBuffer:size in the
11350 supported packets.
11351
e64f7499
YQ
113522013-03-07 Yao Qi <yao@codesourcery.com>
11353
11354 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11355 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11356 of -1.
11357 (cmd_qtsp): Adjust condition. Do post increment.
11358 Set cur_action and cur_step_action back to 0.
11359
f0ae6fc3
PA
113602013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11361
11362 PR server/15236
11363 * linux-low.c (linux_write_memory): Return early success if LEN is
11364 zero.
11365
b5b0b0af
CV
113662013-03-05 Corinna Vinschen <vinschen@redhat.de>
11367
334ad4a8 11368 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 11369
589bc927
TT
113702013-02-28 Tom Tromey <tromey@redhat.com>
11371
11372 * configure.ac: Invoke AC_SYS_LARGEFILE.
11373 * configure, config.in: Rebuild.
11374
dfe07582
CV
113752013-02-28 Corinna Vinschen <vinschen@redhat.com>
11376
11377 * win32-low.c: Throughout, fix format strings and casts of
11378 printf-like functions to avoid type related warnings on all
11379 platforms.
11380 (get_child_debug_event): Print dwDebugEventCode as hex since
11381 that's how it's usually documented.
11382
736cd585
YQ
113832013-02-28 Yao Qi <yao@codesourcery.com>
11384
11385 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11386 pulongest.
11387
e1f58301
JW
113882013-02-27 Jiong Wang <jiwang@tilera.com>
11389
11390 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11391 (reg-tilegx32.c): New rule.
11392 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11393 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11394 different register info initializer according to elf class.
11395 (init_registers_tilgx32): New function. The tilegx32 register info
11396 initializer.
11397 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11398 (tile_store_gregset): Likewise.
11399
d171ca78
YQ
114002013-02-27 Yao Qi <yao@codesourcery.com>
11401
11402 * server.c (process_point_options): Print debug message when
11403 debug_threads is true.
11404
282bbdf3
YQ
114052013-02-26 Yao Qi <yao@codesourcery.com>
11406
11407 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11408
aca22551
PA
114092013-02-19 Pedro Alves <palves@redhat.com>
11410 Kai Tietz <ktietz@redhat.com>
11411
11412 PR gdb/15161
11413
11414 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11415 instead of strtoul to extract address from packet.
11416 (process_serial_event) <'z'>: Likewise.
11417
4f3cee1c
YQ
114182013-02-18 Yao Qi <yao@codesourcery.com>
11419
11420 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11421
8e1d55a3
PA
114222013-02-14 Pedro Alves <palves@redhat.com>
11423
11424 Plug memory leak.
11425
11426 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11427 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11428
458820da
PA
114292013-02-14 Pedro Alves <palves@redhat.com>
11430
11431 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11432
baea0dae
PA
114332013-02-14 Pedro Alves <palves@redhat.com>
11434
11435 * tracepoint.c (save_string): Delete.
11436 (add_tracepoint_action): Use savestring instead of save_string.
11437
0b1afbb3
PA
114382013-02-12 Pedro Alves <palves@redhat.com>
11439
11440 * linux-xtensa-low.c: Ditto.
11441 * xtensa-xtregs.c: Ditto.
11442
8a4ac37e
PA
114432013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11444
11445 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11446 thread_db.
11447
148de6bb
MS
114482013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11449
11450 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11451 aarch64_num_wp_regs and aarch64_num_bp_regs to
11452 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11453
55fac6e0
MS
114542013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11455
11456 * linux-aarch64-low.c (ps_get_thread_area): Replace
11457 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11458
176eb98c
MS
114592013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11460 Marcus Shawcroft <marcus.shawcroft@arm.com>
11461 Nigel Stephens <nigel.stephens@arm.com>
11462 Yufeng Zhang <yufeng.zhang@arm.com>
11463
11464 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11465 (aarch64.c, aarch64-without-fpu.c): New targets.
11466 * configure.srv (aarch64*-*-linux*): New.
11467 * linux-aarch64-low.c: New file.
11468
56f7af9c
MS
114692013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11470
43aaf8b6 11471 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
11472 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11473 (dequeue_one_deferred_signal, linux_resume_one_thread)
11474 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11475 (linux_tracefork_grandchild, linux_test_for_tracefork)
11476 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11477 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11478 where the argument is 0.
11479
60f662b0
YQ
114802013-01-25 Yao Qi <yao@codesourcery.com>
11481
11482 * event-loop.c: Include "queue.h".
11483 (gdb_event_p): New typedef.
11484 (struct gdb_event) <next_event>: Remove.
11485 (event_queue): Change to QUEUE(gdb_event_p).
11486 (async_queue_event): Remove.
11487 (gdb_event_xfree): New.
11488 (initialize_event_loop): New.
11489 (process_event): Use API from QUEUE.
11490 (wait_for_event): Likewise.
11491 * server.c (main): Call initialize_event_loop.
11492 * server.h (initialize_event_loop): Declare.
11493
5ae4861a
YQ
114942013-01-18 Yao Qi <yao@codesourcery.com>
11495
11496 * ax.h (struct eval_agent_expr_context): New.
11497 (gdb_eval_agent_expr): Update declaration.
11498 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11499 TFRAME. Add new argument CTX.
11500 * server.h (struct eval_agent_expr_context): Declare.
11501 (agent_mem_read, agent_tsv_read): Update declaration.
11502 (agent_mem_read_string): Likewise.
11503 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11504 (add_traceframe_block): Add new argument TPOINT.
11505 Increase TPOINT->traceframe_usage.
11506 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11507 eval_tracepoint_agent_expr.
11508 (condition_true_at_tracepoint): Likewise.
11509 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11510 (agent_mem_read_string, agent_tsv_read): Likewise.
11511
85e00e85
YQ
115122013-01-16 Yao Qi <yao@codesourcery.com>
11513
11514 * linux-low.c (linux_resume_one_lwp): Don't check
11515 'lwp->bp_reinsert != 0'.
11516
4039cf45
JB
115172013-01-07 Joel Brobecker <brobecker@adacore.com>
11518 Pedro Alves <palves@redhat.com>
11519
11520 * lynx-low.c (ptrace_request_to_str): Define a temporary
11521 macro and use it to simplify this function's implementation.
11522
9044dee2
JB
115232013-01-07 Joel Brobecker <brobecker@adacore.com>
11524
11525 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11526 sets errno.
11527
e6352c8f
JB
115282013-01-07 Joel Brobecker <brobecker@adacore.com>
11529
11530 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11531
50681a27
JB
115322013-01-07 Joel Brobecker <brobecker@adacore.com>
11533
11534 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11535
3f6e77ef
JB
115362013-01-07 Joel Brobecker <brobecker@adacore.com>
11537
11538 * lynx-low.c (lynx_resume): Use the resume_info parameter
11539 to determine the ptid for the lynx_ptrace call, unless
11540 it is equal to minus_one_ptid, in which case we use the
11541 ptid of the current_inferior.
11542 (lynx_wait_1): After having received a thread create/exit
11543 event, resume the inferior's execution using the signaling
11544 thread's ptid, rather than the old ptid.
11545
7fda33ae
JB
115462013-01-07 Joel Brobecker <brobecker@adacore.com>
11547
11548 * lynx-low.c (lynx_resume): Delete variable ret.
11549
b9786c74
JB
115502013-01-01 Joel Brobecker <brobecker@adacore.com>
11551
11552 * gdbreplay.c (gdbreplay_version): Update copyright year.
11553 * server.c (gdbserver_version): Likewise.
11554
8b93d60f
JB
115552012-12-17 Joel Brobecker <brobecker@adacore.com>
11556
11557 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11558 new thread.
11559
037335a7
JB
115602012-12-17 Joel Brobecker <brobecker@adacore.com>
11561
11562 * lynx-low.c (ptrace_request_to_str): Add handling for
11563 PTRACE_GETTRACESIG.
11564
52d4cbd8
JB
115652012-12-17 Joel Brobecker <brobecker@adacore.com>
11566
11567 * lynx-low.c (lynx_attach): Delete variable new_process.
11568
ab8f6ca9
JB
115692012-12-17 Joel Brobecker <brobecker@adacore.com>
11570
11571 * lynx-low.c (lynx_create_inferior): Delete variable
11572 new_process.
11573
78cbc024
JB
115742012-12-17 Joel Brobecker <brobecker@adacore.com>
11575
11576 * lynx-low.c (ptrace_request_to_str): Do not handle
11577 PTRACE_GETTHREADLIST if this macro does not exist.
11578
14a00470
YQ
115792012-12-15 Yao Qi <yao@codesourcery.com>
11580
11581 * Makefile.in (OBS): Add notif.o.
11582 * notif.c, notif.h: New.
11583 * server.c: Include "notif.h".
11584 (struct vstop_notif) <next>: Remove.
11585 <base>: New field.
11586 (queue_stop_reply): Update.
11587 (push_event, send_next_stop_reply): Remove.
11588 (discard_queued_stop_replies): Update.
11589 (notif_stop): New variable.
11590 (handle_v_stopped): Remove.
11591 (handle_v_requests): Don't call handle_v_stopped. Call
11592 handle_ack_notif instead.
11593 (queue_stop_reply_callback): Call notif_event_enque instead
11594 of queue_stop_reply.
11595 (handle_status): Don't call send_next_stop_reply, call
11596 notif_write_event instead.
11597 (kill_inferior_callback): Likewise.
11598 (detach_or_kill_inferior_callback): Likewise.
11599 (main): Call initialize_notif.
11600 (process_serial_event): Call QUEUE_is_empty.
11601 (handle_target_event): Call notif_push instead of push event.
11602 * server.h (push_event): Remove declaration.
11603
61c125b9
TT
116042012-12-10 Tom Tromey <tromey@redhat.com>
11605
11606 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
11607 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
11608 macros.
11609 (.c.o): Rewrite.
11610 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
11611 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
11612 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
11613 (amd64-linux-ipa.o, ax.o): Rewrite.
11614 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
11615 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
11616 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
11617 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
11618 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
11619 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
11620 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
11621 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
11622 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
11623 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
11624 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
11625 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
11626 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
11627 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
11628 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11629 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11630 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11631 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11632 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11633 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11634 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11635 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11636 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11637 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11638 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11639 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11640 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11641 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11642 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11643 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11644 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11645 (reg-tilegx.o): Remove.
11646 (all_object_files): New macro.
11647 Include .deps files.
11648 * aclocal.m4, configure: Rebuild.
11649 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11650 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11651 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11652
e90e9ad9
TT
116532012-12-05 Tom Tromey <tromey@redhat.com>
11654
11655 PR gdb/14917:
11656 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11657
02d403bf 116582012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
11659
11660 * configure.ac: Check for linux/perf_event.h.
11661 * config.in: Regenerated.
11662 * configure: Regenerated.
11663
0270a750
PA
116642012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11665
11666 * hostio.c (handle_readlink): Decrease buffer size
11667 parameter passed to readlink by one byte.
11668
8c29b58e
YQ
116692012-11-26 Yao Qi <yao@codesourcery.com>
11670
11671 * configure.ac (build_warnings): Append '-Wempty-body'.
11672 * configure: Regenerated.
11673 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11674 body.
11675
8bdce1ff
PM
116762012-11-15 Pierre Muller <muller@sourceware.org>
11677
11678 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11679 * config.in: Regenerate.
11680 * configure: Regenerate.
11681 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11682 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11683 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11684 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11685 header.
11686 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11687 instead of <sys/wait.h> header.
11688 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11689
02d403bf 116902012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
11691
11692 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11693 (various make rules): Remove -DGDBSERVER
11694
fbd5db48
YQ
116952012-11-09 Yao Qi <yao@codesourcery.com>
11696
11697 * spu-low.c (current_ptid): Move it to ..
11698 * gdbthread.h: ... here. New.
11699 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11700 * server.c (myresume, process_serial_event): Likewise.
11701 * thread-db.c (thread_db_find_new_threads): Likewise.
11702 * tracepoint.c (run_inferior_command): Likewise.
11703
b3dc46ff
AB
117042012-10-01 Andrew Burgess <aburgess@broadcom.com>
11705
11706 * server.c (handle_search_memory_1): Include access length in
11707 warning message.
11708
07c04788
HPN
117092012-09-05 Michael Brandt <michael.brandt@axis.com>
11710
11711 * linux-crisv32-low.c: Fix compile errors.
11712
918d227b
YQ
117132012-09-04 Yao Qi <yao@codesourcery.com>
11714
11715 * tracepoint.c (cmd_qtsv): Adjust debug message.
11716 Don't check CUR_TPOINT.
11717
18c1b81a
YQ
117182012-08-28 Yao Qi <yao@codesourcery.com>
11719
11720 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11721 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11722 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11723 Remove declarations of xmalloc, xreallloc, xstrdup and
11724 freeargv.
11725 * Makefile.in (libiberty_h): New.
11726 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11727 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11728
dc82f37b
YQ
117292012-08-23 Yao Qi <yao@codesourcery.com>
11730
11731 * server.h: Remove declaration of 'xsnprintf'.
11732
406b1477
KS
117332012-08-22 Keith Seitz <keiths@redhat.com>
11734
11735 * server.h: Include build-gnulib-gbserver/config.h.
11736 * gdbreplay.c: Likewise.
11737
e6712ff1
DE
117382012-08-08 Doug Evans <dje@google.com>
11739
11740 * Makefile.in (SFILES): Add gdb_vecs.c.
11741 (OBS): Add gdb_vecs.o.
11742 (gdb_vecs_h, host_defs_h): New variables.
11743 (thread-db.o): Add $(gdb_vecs_h) dependency.
11744 (gdb_vecs.o): New rule.
11745 * thread-db.c: #include "gdb_vecs.h".
11746 (thread_db_load_search): Use a vector to iterate over path elements.
11747 Handle text appearing after "$pdir".
11748
11749 * configure.ac: Add check for strstr.
11750 * config.in: Regenerate.
11751 * configure: Regenerate.
11752
7c3270ae
UW
117532012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11754
11755 * hostio.c (handle_pread): If pread fails, fall back to attempting
11756 lseek/read.
11757 (handle_pwrite): Likewise for pwrite.
11758
b62e2b27
UW
117592012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11760
11761 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11762 between unsupported TYPE and unimplementable ADDR/LEN combination.
11763 (arm_insert_point): Act on new return value.
11764
78a99e91
PA
117652012-07-31 Pedro Alves <palves@redhat.com>
11766
11767 * server.c (process_point_options): Only skip tokens if we find
11768 one that is unrecognized. Don't treat 'X' specially while
11769 skipping unrecognized tokens.
11770
fcf303ab
UW
117712012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11772
11773 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11774 to 4-byte-align HW breakpoint addresses for Thumb.
11775
7255706c
YQ
117762012-07-27 Yao Qi <yao@codesourcery.com>
11777
11778 PR remote/14161.
11779
11780 * server.h: Declare gdb_agent_about_to_close.
11781 * target.c (kill_inferior): Include "agent.h".
11782 New. Send command 'kill'.
11783 * target.h (kill_inferior): Removed macro.
11784 * tracepoint.c (gdb_agent_about_to_close): New.
11785 (gdb_agent_helper_thread): Handle command 'close'.
11786 Wait endlessly until the inferior stops.
11787 Install gdb_agent_remove_socket to atexit hook.
11788 (agent_socket_name): New static variable.
11789 (gdb_agent_socket_init): Replace local variable 'name' with
11790 'agent_socket_name'.
11791 (gdb_agent_remove_socket): New.
11792
5a3f286f
YQ
117932012-07-27 Yao Qi <yao@codesourcery.com>
11794
11795 * server.c (process_point_options): Stop at 'X' when parsing.
11796
961bd387
ME
117972012-07-19 Michael Eager <eager@eagercon.com>
11798
a261b8f5 11799 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
11800 to hw_execute.
11801 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11802 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11803 hardware breakpoint.
11804
aa7c7447
JK
118052012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11806
11807 * gdbserver/linux-low.c (initialize_low): Call
11808 linux_ptrace_init_warnings.
11809
7f216e7c
DE
118102012-07-02 Doug Evans <dje@google.com>
11811
11812 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11813 pointer to int.
11814
d3ce09f5
SS
118152012-07-02 Stan Shebs <stan@codesourcery.com>
11816
11817 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11818 (ax.o): Add it to build rule.
11819 (ax-ipa.o): Ditto.
11820 (OBS): Add format.o.
11821 (IPA_OBS): Add format.o.
11822 * server.c (handle_query): Claim support for breakpoint commands.
11823 (process_point_options): Add command case.
11824 (process_serial_event): Leave running if there are printfs in
11825 effect.
11826 * mem-break.h (any_persistent_commands): Declare.
11827 (add_breakpoint_commands): Declare.
11828 (gdb_no_commands_at_breakpoint): Declare.
11829 (run_breakpoint_commands): Declare.
11830 * mem-break.c (struct point_command_list): New struct.
11831 (struct breakpoint): New field command_list.
11832 (any_persistent_commands): New function.
11833 (add_commands_to_breakpoint): New function.
11834 (add_breakpoint_commands): New function.
11835 (gdb_no_commands_at_breakpoint): New function.
11836 (run_breakpoint_commands): New function.
11837 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11838 locally.
11839 * ax.c: Include format.h.
11840 (ax_printf): New function.
11841 (gdb_eval_agent_expr): Add printf opcode.
11842
2f8f6aed
YQ
118432012-06-13 Yao Qi <yao@codesourcery.com>
11844
11845 * server.c (start_inferior): Remove duplicated writes to fields
11846 'last_resume_kind' and 'last_status' of 'current_inferior'.
11847
0c9070b3
YQ
118482012-06-12 Yao Qi <yao@codesourcery.com>
11849 Pedro Alves <palves@redhat.com>
11850
11851 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11852 comment.
11853 * server.c (handle_v_cont): Extend comment.
11854
c52daf70
YQ
118552012-06-11 Yao Qi <yao@codesourcery.com>
11856
11857 * linux-low.c (linux_attach): Add 'static'.
11858
d38bbb0a
YQ
118592012-06-06 Yao Qi <yao@codesourcery.com>
11860
11861 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11862
89dc0afd
JK
118632012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11864
11865 Fix gcc -flto compilation warning.
11866 * server.c (main): Make variable multi_mode and attach volatile.
11867
75f62ce7
TJB
118682012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11869
11870 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11871 if the platform doesn't know about it.
11872
65f479b6
PA
118732012-05-30 Jeff Kenton <jkenton@tilera.com>
11874
11875 * Makefile.in (SFILES): Add linux-tile-low.c.
11876 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11877 * configure.srv: Handle tilegx-*-linux*.
11878 * linux-tile-low.c: New file.
11879
0c5bf5a9
JK
118802012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11881
11882 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11883
a493e3e2
PA
118842012-05-24 Pedro Alves <palves@redhat.com>
11885
11886 PR gdb/7205
11887
43aaf8b6 11888 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 11889
2ea28649
PA
118902012-05-24 Pedro Alves <palves@redhat.com>
11891
11892 PR gdb/7205
11893
11894 Replace target_signal with gdb_signal throughout.
11895
8d409d16
MR
118962012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11897
11898 * linux-low.c (linux_store_registers): Avoid the copying sequence
11899 when no data has been retrieved by ptrace.
11900
23512c01
MGD
119012012-05-22 Will Deacon <will.deacon@arm.com>
11902
11903 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11904 Include asm/ptrace.h.
11905 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11906 already defined.
11907
4934b29e
MR
119082012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11909
11910 * linux-low.c (linux_store_registers): Don't re-retrieve data
11911 with ptrace that has already been obtained from /proc. Always
11912 copy any data retrieved with ptrace to the buffer supplied.
11913
bde24c0a
PA
119142012-05-11 Yao Qi <yao@codesourcery.com>
11915 Pedro Alves <palves@redhat.com>
11916
11917 * linux-low.c (enum stopping_threads_kind): New.
11918 (stopping_threads): Change type to `enum stopping_threads_kind'.
11919 (handle_extended_wait): If stopping and suspending threads, leave
11920 the new_lwp suspended too.
11921 (linux_wait_for_event): Adjust.
11922 (stop_all_lwps): Set `stopping_threads' to
11923 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11924 whether we're suspending threads or just stopping them. Assert no
11925 recursion happens.
11926
623b6bdf
YQ
119272012-04-29 Yao Qi <yao@codesourcery.com>
11928
11929 * server.h: Move some code to ...
11930 * gdbthread.h: ... here. New.
11931 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11932 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11933 (nto-low.o, win32-low.o): Likewise.
11934 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11935 * regcache.c, remote-utils.c, server.c: Likewise.
11936 * target.c, tracepoint.c, win32-low.c: Likewise.
11937
f15f9948
TJB
119382012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11939
11940 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11941 (PTRACE_ARG4_TYPE): Likewise.
11942 (PTRACE_XFER_TYPE): Likewise.
11943 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11944 ptrace to PTRACE_ARG3_TYPE.
11945 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11946 (PTRACE_ARG4_TYPE): Likewise.
11947 (PTRACE_XFER_TYPE): Likewise.
11948 (linux_detach_one_lwp): Cast fourth argument of
11949 ptrace to long then PTRACE_ARG4_TYPE.
11950 (regsets_fetch_inferior_registers): Cast third argument of
11951 ptrace to long then PTRACE_ARG3_TYPE.
11952 (regsets_store_inferior_registers): Likewise.
11953
38ea300a
PA
119542012-04-20 Pedro Alves <palves@redhat.com>
11955
11956 * configure: Regenerate.
11957
c971b7fa
PA
119582012-04-19 Pedro Alves <palves@redhat.com>
11959
43aaf8b6 11960 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 11961 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
11962 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11963 (all, install-only, uninstall, clean-info, all-lib, clean): No
11964 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11965 (maintainer-clean realclean distclean): Use subdir_do.
11966 (subdir_do): New.
11967 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 11968 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
11969 * acinclude.m4: Include acx_configure_dir.m4.
11970 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11971 calls. Call AC_PROG_RANLIB. Configure gnulib using
11972 ACX_CONFIGURE_DIR.
11973 (GNULIB): New.
11974 (GNULIB_STDINT_H): Adjust.
11975 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11976 * gdbreplay.c: Include build-gnulib/config.h.
11977 * server.h: Likewise.
11978 * aclocal.m4: Regenerate.
11979 * config.in: Regenerate.
11980 * configure: Regenerate.
c971b7fa 11981
809277f8
PA
119822012-04-19 Pedro Alves <palves@redhat.com>
11983
11984 * Makefile.in (LIBGNU, INCGNU): Adjust.
11985 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11986 (all, install-only, uninstall, clean-info, all-lib, clean)
11987 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11988 * configure.ac: Adjust AC_OUTPUT output.
11989 * aclocal.m4: Regenerate.
11990 * configure: Regenerate.
11991
fd9bb8b8
PA
119922012-04-19 Pedro Alves <palves@redhat.com>
11993
11994 * Makefile.in (generated_files): New.
11995 (server_h): Remove the explicit dependency on config.h, and depend
11996 on $generated_files.
11997
1c298c66
PA
119982012-04-19 Pedro Alves <palves@redhat.com>
11999
12000 * Makefile.in (INCGNU): Add -Ignulib.
12001
57c4b50b
PA
120022012-04-19 Pedro Alves <palves@redhat.com>
12003
12004 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12005 (INCGNU): ... this, and spell out -I here.
12006 (GNULIB_LIB): Rename to ...
12007 (LIBGNU): ... this.
12008 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12009
1030e047
PA
120102012-04-19 Pedro Alves <palves@redhat.com>
12011
12012 * config.in: Regenerate.
12013
447d4319
PA
120142012-04-19 Pedro Alves <palves@redhat.com>
12015
12016 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12017 * server.h (memmem): Remove declaration.
12018 * config.in: Regenerate.
12019 * configure: Regenerate.
12020
aad9eab9
YQ
120212012-04-19 Yao Qi <yao@codesourcery.com>
12022
12023 * Makefile.in (SFILES): Add common/vec.c.
12024 (OBS): Add vec.o.
12025 (vec.o): New rule.
12026
3e10640f
YQ
120272012-04-19 Yao Qi <yao@codesourcery.com>
12028
12029 * remote-utils.c (prepare_resume_reply): Replace with macro
12030 target_core_of_thread.
12031 * server.c (handle_qxfer_threads_proper): Likewise.
12032 * target.h (traget_core_of_thread): New macro.
12033
71622373
PA
120342012-04-18 Pedro Alves <palves@redhat.com>
12035
12036 * aclocal.m4: Regenerate.
12037 * configure: Regenerate.
12038
80d26939
YQ
120392012-04-16 Yao Qi <yao@codesourcery.com>
12040
12041 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12042 duplicated on address.
12043
42476b70
YQ
120442012-04-16 Yao Qi <yao@codesourcery.com>
12045
12046 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12047 (struct tracepoint_action_ops) <send>: New field.
12048 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12049 (agent_expr_send, x_tracepoint_action_send): New.
12050 (l_tracepoint_action_send): New.
12051 (cmd_qtdp): Download and install tracepoint
12052 according to `use_agent'.
12053 (run_inferior_command): Add one more parameter `len'.
12054 Update callers.
12055 (tracepoint_send_agent): New.
12056 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12057
7bc83639
YQ
120582012-04-16 Yao Qi <yao@codesourcery.com>
12059
12060 * tracepoint.c (download_tracepoints): Moved to ...
12061 (cmd_qtstart): ... here.
12062
5f18041e
YQ
120632012-04-14 Yao Qi <yao@codesourcery.com>
12064
12065 * tracepoint.c: Include inttypes.h.
12066 (struct collect_memory_action): Use sized types.
12067 (struct tracepoint): Likewise.
12068 (cmd_qtdp, stop_tracing): Update print specifiers.
12069 (cmd_qtp, response_tracepoint): Likewise.
12070 (collect_data_at_tracepoint): Likewise.
12071 (collect_data_at_step): Likewise.
12072
55a8c076
YQ
120732012-04-14 Yao Qi <yao@codesourcery.com>
12074
12075 Import gnulib module inttypes.
12076 * aclocal.m4, config.in, configure: Regenerated.
12077
dc750257
YQ
120782012-04-14 Yao Qi <yao@codesourcery.com>
12079
12080 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12081 Makefile and config.status at last.
12082
0ab5faf9
YQ
120832012-04-13 Yao Qi <yao@codesourcery.com>
12084
12085 * tracepoint.c: Include stdint.h unconditionally.
12086
18f5fd81
TJB
120872012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12088
12089 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12090 on BFD_HAVE_SYS_PROCFS_TYPE.
12091 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12092 * configure: Regenerate.
12093 * config.in: Likewise.
12094
4d47af5c
L
120952012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12096
12097 * Makefile.in (clean): Also remove x32.c x32-linux.c
12098 x32-avx.c x32-avx-linux.c.
12099 (x32.o): New target.
12100 (x32.c): Likewise.
12101 (x32-linux.o): Likewise.
12102 (x32-linux.c): Likewise.
12103 (x32-avx.o): Likewise.
12104 (x32-avx.c): Likewise.
12105 (x32-avx-linux.o): Likewise.
12106 (x32-avx-linux.c): Likewise.
12107
12108 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12109 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12110 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12111 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12112 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12113 i386/x32-avx-linux.xml.
12114
12115 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12116 (init_registers_x32_avx_linux): Likwise.
12117 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12118 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12119
ecedbe58
PA
121202012-04-13 Pedro Alves <palves@redhat.com>
12121
12122 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12123 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12124 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12125 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12126 the sub-make.
12127
c92b5177
L
121282012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12129
12130 * linux-x86-low.c (compat_x32_clock_t): New.
12131 (compat_x32_siginfo_t): Likewise.
12132 (compat_x32_siginfo_from_siginfo): Likewise.
12133 (siginfo_from_compat_x32_siginfo): Likewise.
12134 (linux_is_elf64): Likewise.
12135 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12136 and siginfo_from_compat_x32_siginfo for x32.
12137 (x86_arch_setup): Set linux_is_elf64.
12138
214d508e
L
121392012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12140
12141 PR gdb/13969
12142 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12143 e_machine field.
12144 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12145 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12146 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12147 compatible with process.
12148
c9a1864a
YQ
121492012-04-12 Yao Qi <yao@codesourcery.com>
12150
12151 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12152 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12153 (install-only, install-info, clean): Handle sub dir gnulib.
12154 (all-lib, am--refresh): New targets.
12155 (memmem.o): Remove target.
12156 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12157 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12158 (AC_REPLACE_FUNCS): Remove memmem.
12159 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12160 (AC_OUTPUT): Generate Makefile in gnulib/.
12161 * aclocal.m4, config.in, configure: Regenerated.
12162
367ba2c2
MR
121632012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12164
12165 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12166
9d236627
PA
121672012-04-05 Pedro Alves <palves@redhat.com>
12168
12169 -Werror=strict-aliasing
12170
12171 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12172 pointer.
12173
111217b3
PA
121742012-04-04 Pedro Alves <palves@redhat.com>
12175
12176 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12177 (sparc_store_gregset_from_stack, sparc_store_gregset)
12178 (sparc_breakpoint_at): Fix formatting.
12179
8365dcf5
TJB
121802012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12181
12182 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12183 are available.
12184 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12185 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12186 * config.in: Regenerate.
12187 * configure: Likewise.
12188
689cc2ae
PA
121892012-03-29 Pedro Alves <palves@redhat.com>
12190
12191 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12192 Correct ptrace arguments.
12193
c14dfd32
PA
121942012-03-28 Pedro Alves <palves@redhat.com>
12195
12196 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12197 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12198 (IA64_FR1_REGNUM): New defines.
12199 (ia64_fetch_register): New.
12200 (the_low_target): Install it.
12201 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12202 field.
12203 * linux-low.c (linux_fetch_registers): Try the
12204 the_low_target.fetch_register hook first.
12205
12206 * linux-arm-low.c (the_low_target): Adjust.
12207 * linux-bfin-low.c (the_low_target): Adjust.
12208 * linux-cris-low.c (the_low_target): Adjust.
12209 * linux-crisv32-low.c (the_low_target): Adjust.
12210 * linux-m32r-low.c (the_low_target): Adjust.
12211 * linux-m68k-low.c (the_low_target): Adjust.
12212 * linux-mips-low.c (the_low_target): Adjust.
12213 * linux-ppc-low.c (the_low_target): Adjust.
12214 * linux-s390-low.c (the_low_target): Adjust.
12215 * linux-sh-low.c (the_low_target): Adjust.
12216 * linux-sparc-low.c (the_low_target): Adjust.
12217 * linux-tic6x-low.c (the_low_target): Adjust.
12218 * linux-x86-low.c (the_low_target): Adjust.
12219 * linux-xtensa-low.c (the_low_target): Adjust.
12220
63c88e13
PA
122212012-03-26 Pedro Alves <palves@redhat.com>
12222
12223 * server.c (handle_qxfer_libraries): Don't bail early if
12224 the_target->qxfer_libraries_svr4 is not NULL.
12225
fb723180
PA
122262012-03-26 Pedro Alves <palves@redhat.com>
12227
12228 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12229
0afae3cf
PA
122302012-03-23 Pedro Alves <palves@redhat.com>
12231
12232 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12233 "library-list-svr4" element's start tag when the the DSO list is
12234 empty.
12235
485f1ee4
PA
122362012-03-23 Pedro Alves <palves@redhat.com>
12237
12238 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12239 a variable whose type size is the same as the inferior's pointer
12240 size.
12241
a5362b9a
TS
122422012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12243
12244 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12245 struct siginfo.
12246 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12247 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12248 * linux-low.h: Include <signal.h>.
12249 (struct siginfo): Remove forward declaration.
12250 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12251 struct siginfo.
12252
d226c142
MF
122532012-03-21 Mike Frysinger <vapier@gentoo.org>
12254
12255 * .gitignore: Ignore more files.
12256
122f36ef
PA
122572012-03-19 Pedro Alves <palves@redhat.com>
12258 Jan Kratochvil <jan.kratochvil@redhat.com>
12259
12260 * server.c (cont_thread, general_thread): Add describing comments.
12261 (start_inferior): Clear `cont_thread'.
12262 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12263 of a process.
12264
fc3e5175
YQ
122652012-03-15 Yao Qi <yao@codesourcery.com>
12266
12267 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12268 handling to ...
12269 (cmd_qtdp): ... here.
12270
8d0d92cd
YQ
122712012-03-15 Yao Qi <yao@codesourcery.com>
12272
12273 * tracepoint.c (struct tracepoint_action_ops): New.
12274 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12275 (m_tracepoint_action_download): New.
12276 (r_tracepoint_action_download): New.
12277 (x_tracepoint_action_download): New.
12278 (l_tracepoint_action_download): New.
12279 (add_tracepoint_action): Install `action->ops' according type.
12280 (download_tracepoint_1): Move code `download' function pointer
12281 of various tracepoint_action_ops.
12282
87b0bb13
JK
122832012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12284
12285 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12286 linux_ptrace_attach_warnings.
12287
5f572dec
JK
122882012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12289
12290 * Makefile.in (linux-ptrace.o): New.
12291 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12292 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12293 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12294 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12295 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12296 of these targets.
12297 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12298
f4647387
YQ
122992012-03-08 Yao Qi <yao@codesourcery.com>
12300 Pedro Alves <palves@redhat.com>
12301
12302 Fix PR server/13392.
12303 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12304 offset of JMP insn.
12305 * tracepoint.c (remove_tracepoint): New.
12306 (cmd_qtdp): Call remove_tracepoint when failed to install.
12307
9b224c5e
PA
123082012-03-07 Pedro Alves <palves@redhat.com>
12309
12310 * linux-low.c (get_detach_signal): New.
12311 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12312 Pass on pending signals to PTRACE_DETACH. Check the result of the
12313 ptrace call.
12314 * server.c (program_signals, program_signals_p): New.
12315 (handle_general_set): Handle QProgramSignals.
12316 * server.h (program_signals, program_signals_p): Declare.
12317
e237a7e2
JK
123182012-03-05 Pedro Alves <palves@redhat.com>
12319 Jan Kratochvil <jan.kratochvil@redhat.com>
12320
12321 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12322 New comment why.
12323
5808517f
YQ
123242012-03-03 Yao Qi <yao@codesourcery.com>
12325
12326 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12327 agent_look_up_symbols.
12328
58b4daa5
YQ
123292012-03-03 Yao Qi <yao@codesourcery.com>
12330
12331 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12332 (linux-x86-low.o): Likewise.
12333 * server.h: Remove in_process_agent_loaded.
12334 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12335 common/agent.c.
12336 Update callers.
12337
8ffcbaaf
YQ
123382012-03-03 Yao Qi <yao@codesourcery.com>
12339
12340 * tracepoint.c (gdb_agent_capability): New global.
12341 (in_process_agent_loaded_ust): Renamed to
12342 `in_process_agent_supports_ust'.
12343 Update callers.
12344 (in_process_agent_supports_ust): Call agent_capability_check.
12345 (clear_installed_tracepoints): Assert that agent supports
12346 agent.
12347
d1feda86
YQ
123482012-03-03 Yao Qi <yao@codesourcery.com>
12349
12350 * linux-low.c (linux_supports_agent): New.
12351 (linux_target_ops): Initialize field `supports_agent' with
12352 linux_supports_agent.
12353 * target.h (struct target_ops) <supports_agent>: New.
12354 (target_supports_agent): New macro.
12355 * server.c (handle_general_set): Handle packet 'QAgent'.
12356 (handle_query): Send `QAgent+'.
12357 * Makefile.in (server.o): Depends on agent.h.
12358
2fa291ac
YQ
123592012-03-03 Yao Qi <yao@codesourcery.com>
12360
12361 * Makefile.in (OBS): Add agent.o.
12362 Add new rule for agent.o.
12363 Track dependence of tracepoint.c on agent.h.
12364 * tracepoint.c (run_inferior_command_1):
12365 (run_inferior_command): Call agent_run_command.
12366 (gdb_ust_connect_sync_socket): Deleted. Move it to
12367 common/agent.c.
12368 (resume_thread, stop_thread): Likewise.
12369 (gdb_ust_socket_init): Renamed to ...
12370 (gdb_agent_socket_init): ... New.
12371 (gdb_ust_thread): Renamed to ...
12372 (gdb_agent_helper_thread): ... New.
12373 (gdb_ust_init): Move some code to ...
12374 (gdb_agent_init): ... here. New.
12375 [HAVE_UST]: Call gdb_ust_init.
12376 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12377 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12378 * config.in, configure: Regenerated.
12379
05044653
PA
123802012-03-02 Pedro Alves <palves@redhat.com>
12381
12382 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12383 * linux-low.c (struct simple_pid_list): New.
12384 (stopped_pids): New a struct simple_pid_list pointer.
12385 (add_to_pid_list, pull_pid_from_list): New.
12386 (handle_extended_wait): Don't assume the first signal new children
12387 report is SIGSTOP. Adjust call to pull_pid_from_list.
12388 (linux_wait_for_lwp): Adjust.
12389
8d00225b
YQ
123902012-03-02 Yao Qi <yao@codesourcery.com>
12391
12392 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12393 debug log.
12394
19560ba5
YQ
123952012-03-02 Yao Qi <yao@codesourcery.com>
12396
12397 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12398 `stop_pc' and `tpoint'. Update caller.
12399
1faeff08
MR
124002012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12401
12402 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12403 * linux-low.c (use_linux_regsets): New macro.
12404 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12405 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12406 (linux_register_in_regsets): New function.
12407 (usr_fetch_inferior_registers): Skip registers covered by
12408 regsets.
12409 (usr_store_inferior_registers): Likewise.
12410 (usr_fetch_inferior_registers): New macro.
12411 (usr_store_inferior_registers): Likewise.
12412 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12413 (linux_store_registers): Likewise.
12414 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12415 prototype.
12416 (init_registers_mips64_dsp_linux): Likewise.
12417 (init_registers_mips_linux): New macro.
12418 (init_registers_mips_dsp_linux): Likewise.
12419 (mips_dsp_num_regs): Likewise.
12420 (DSP_BASE, DSP_CONTROL): New fallback macros.
12421 (mips_base_regs): New macro.
12422 (mips_regmap): Use it. Fix the size.
12423 (mips_dsp_regmap): New variable.
12424 (mips_dsp_regset_bitmap): Likewise.
12425 (mips_arch_setup): New function.
12426 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12427 than mips_regmap.
12428 (mips_cannot_store_register): Likewise.
12429 (the_low_target): Update .arch_setup, .num_regs and .regmap
12430 initializers. Add .regset_bitmap initializer.
12431 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12432 initializer.
12433 * linux-bfin-low.c (the_low_target): Likewise.
12434 * linux-cris-low.c (the_low_target): Likewise.
12435 * linux-crisv32-low.c (the_low_target): Likewise.
12436 * linux-ia64-low.c (the_low_target): Likewise.
12437 * linux-m32r-low.c (the_low_target): Likewise.
12438 * linux-m68k-low.c (the_low_target): Likewise.
12439 * linux-ppc-low.c (the_low_target): Likewise.
12440 * linux-s390-low.c (the_low_target): Likewise.
12441 * linux-sh-low.c (the_low_target): Likewise.
12442 * linux-sparc-low.c (the_low_target): Likewise.
12443 * linux-tic6x-low.c (the_low_target): Likewise.
12444 * linux-x86-low.c (the_low_target): Likewise.
12445 * linux-xtensa-low.c (the_low_target): Likewise.
12446 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12447 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12448 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12449 srv_xmlfiles.
12450 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12451 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12452
c03e6ccc
YQ
124532012-02-29 Yao Qi <yao@codesourcery.com>
12454 Pedro Alves <palves@redhat.com>
12455
12456 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12457 `step_over_finished' is true.
12458
644cebc9
PA
124592012-02-27 Pedro Alves <palves@redhat.com>
12460
12461 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12462 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12463
c14d7ab2
PA
124642012-02-27 Pedro Alves <palves@redhat.com>
12465
12466 PR server/9684
12467 * linux-low.c (pid_is_stopped): New.
12468 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12469
412c89dd
LM
124702012-02-25 Luis Machado <lgustavo@codesourcery.com>
12471
12472 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12473 of conditions.
12474
b745defe
MR
124752012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12476
12477 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12478
9f3a5c85
LM
124792012-02-24 Luis Machado <lgustavo@codesourcery>
12480
12481 * server.c (handle_query): Advertise support for target-side
12482 breakpoint condition evaluation.
12483 (process_point_options): New function.
12484 (process_serial_event): When inserting a breakpoint, check for
12485 a target-side condition that should be evaluated.
12486
12487 * mem-break.c: Include regcache.h and ax.h.
12488 (point_cond_list_t): New data structure.
12489 (breakpoint) <cond_list>: New field.
12490 (find_gdb_breakpoint_at): Make non-static.
12491 (delete_gdb_breakpoint_at): Clear any target-side
12492 conditions.
12493 (clear_gdb_breakpoint_conditions): New function.
12494 (add_condition_to_breakpoint): Likewise.
12495 (add_breakpoint_condition): Likewise.
12496 (gdb_condition_true_at_breakpoint): Likewise.
12497 (gdb_breakpoint_here): Return result directly instead
12498 of going through a local variable.
12499
12500 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12501 (clear_gdb_breakpoint_conditions): Likewise.
12502 (add_breakpoint_condition): Likewise.
12503 (gdb_condition_true_at_breakpoint): Likewise.
12504
12505 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12506 (need_step_over_p): Take target-side breakpoint condition into
12507 consideration.
12508
5e1dc496
LM
125092012-02-24 Luis Machado <lgustavo@codesourcery>
12510
12511 * server.h: Include tracepoint.h.
12512 (agent_mem_read, agent_get_trace_state_variable_value,
12513 agent_set_trace_state_variable_value,
12514 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12515 get_set_tsv_func_addr): New prototypes.
12516
12517 * ax.h: New include file.
12518 * ax.c: New source file.
12519
12520 * tracepoint.c: Include ax.h.
12521 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12522 agent_expr, eval_result_type): Move to ax.h.
12523 (parse_agent_expr): Rename to ...
12524 (gdb_parse_agent_expr): ... this, make it non-static and move
12525 to ax.h.
12526 (unparse_agent_expr) Rename to ...
12527 (gdb_unparse_agent_expr): ... this, make it non-static and move
12528 to ax.h.
12529 (eval_agent_expr): Rename to ...
12530 (eval_tracepoint_agent_expr): ... this.
12531 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12532 forward declarations.
12533 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12534 (agent_get_trace_state_variable_value): New function.
12535 (agent_set_trace_state_variable_value): New function.
12536 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12537 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12538 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12539 (condition_true_at_tracepoint): Likewise.
12540 (parse_agent_expr): Rename to ...
12541 (gdb_parse_agent_expr): ... this and move to ax.c.
12542 (unparse_agent_expr): Rename to ...
12543 (gdb_unparse_agent_expr): ... this and move to ax.c.
12544 (gdb_agent_op_name): Move to ax.c.
12545 (eval_agent_expr): Rename to ...
12546 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12547 and move to ax.c.
12548 (eval_tracepoint_agent_expr): New function.
12549 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 12550 non-static.
5e1dc496
LM
12551 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12552 ax.c.
12553 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12554 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12555 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12556 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12557 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12558 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12559 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12560 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12561 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12562 (compile_bytecodes): Remove forward declaration.
12563 (is_goto_target): Move to ax.c.
12564 (compile_bytecodes): Move to ax.c and call
12565 agent_get_trace_state_variable_value (...) and
12566 agent_set_trace_state_variable_value (...).
12567
12568 * Makefile.in: Update ax.c and IPA dependencies.
12569
277e4e52
PA
125702012-02-24 Pedro Alves <palves@redhat.com>
12571
12572 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12573 (cmd_bigqtbuffer_circular): ... this. Only handle
12574 'QTBuffer:circular:'.
12575 (handle_tracepoint_general_set): Adjust.
12576
bf4c19f7
YQ
125772012-02-16 Yao Qi <yao@codesourcery.com>
12578
12579 * inferiors.c: Move code to ...
12580 * dll.c: .... here. New.
12581 * server.h: Declare clear_dlls.
12582 * Makefile.in (SFILES): Add dll.c.
12583 (OBS): Add dll.o
12584 (dll.o): New rule.
12585
d73f2619
YQ
125862012-02-11 Yao Qi <yao@codesourcery.com>
12587
12588 * server.c: (handle_monitor_command): Add a new parameter
12589 `own_buf'.
12590 (handle_query): Update caller.
12591
f8255c2a
JB
125922012-02-09 Joel Brobecker <brobecker@adacore.com>
12593
12594 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
12595 * configure, config.in: Regenerate.
12596 * hostio.c: Provide an alternate implementation if HAVE_READLINK
12597 is not defined.
12598
da84f473
PA
125992012-02-02 Pedro Alves <palves@redhat.com>
12600
12601 Try SIGKILL first, then PTRACE_KILL.
12602 * linux-low.c (linux_kill_one_lwp): New.
12603 (linux_kill_one_lwp): Rename to ...
12604 (kill_one_lwp_callback): ... this. Use the new
12605 linux_kill_one_lwp.
12606
e886a173
PA
126072012-02-02 Pedro Alves <palves@redhat.com>
12608
12609 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
12610 inferior.
12611
be07f1a2
PA
126122012-01-27 Pedro Alves <palves@redhat.com>
12613
12614 * linux-low.c (linux_child_pid_to_exec_file): Delete.
12615 (elf_64_file_p): Make static.
12616 (linux_pid_exe_is_elf_64_file): New.
12617 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
12618 Delete declarations.
12619 (linux_pid_exe_is_elf_64_file): Declare.
12620 * linux-x86-low.c (x86_arch_setup): Use
12621 linux_pid_exe_is_elf_64_file.
12622
d8301ad1
JK
126232012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12624
12625 * linux-low.c (linux_wait_for_event_1): Rename to ...
12626 (linux_wait_for_event): ... here and merge it with former
12627 linux_wait_for_event - new variable wait_ptid, use it.
12628 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12629
01b17894
PA
126302012-01-23 Pedro Alves <palves@redhat.com>
12631
12632 * server.c (main): Avoid yet another case of infinite loop while
12633 detaching/killing after a longjmp.
12634
e825046f
JK
126352012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12636
12637 Code cleanup.
12638 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12639
b9e7b9c3
UW
126402012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12641
12642 * hostio.c (handle_readlink): New function.
12643 (handle_vFile): Call it to handle "vFile:readlink" packets.
12644
901f9912
UW
126452012-01-20 Pedro Alves <palves@redhat.com>
12646 Ulrich Weigand <ulrich.weigand@linaro.org>
12647
12648 * server.c (handle_v_requests): Only support vAttach and vRun to
12649 start multiple processes when in extended protocol mode.
12650
fc1ab1a0
PA
126512012-01-17 Pedro Alves <palves@redhat.com>
12652
12653 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12654 memalign plus mprotect to allocate the scratch buffer.
12655
7d5d4e98
PA
126562012-01-13 Pedro Alves <palves@redhat.com>
12657
12658 * server.c (attach_inferior): Clear `cont_thread'.
12659
f128d5e9
PA
126602012-01-13 Pedro Alves <palves@redhat.com>
12661
12662 * server.c (main): Avoid infinite loop while detaching/killing
12663 after a longjmp.
12664
06db92f0
DE
126652012-01-09 Doug Evans <dje@google.com>
12666
12667 * server.c (start_inferior): Set last_ptid in --wrapper case.
12668
32d92999
YQ
126692012-01-06 Yao Qi <yao@codesourcery.com>
12670
12671 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12672 defined.
12673 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12674
5e0a92a9
YQ
126752012-01-04 Yao Qi <yao@codesourcery.com>
12676
12677 * tracepoint.c (cmd_qtdp): Print debug message
12678 for static tracepoint.
12679
ae639e8c
YQ
126802012-01-04 Yao Qi <yao@codesourcery.com>
12681
12682 * tracepoint.c (trace_vdebug): Differentiate debug message
12683 between gdbserver and IPA.
12684
f72429c5
YQ
126852012-01-03 Yao Qi <yao@codesourcery.com>
12686
12687 * tracepoint.c (tracepoint_was_hit): Don't collect for
12688 static tracepoint.
12689
12c3e59c
JB
126902012-01-02 Joel Brobecker <brobecker@adacore.com>
12691
12692 * terminal.h: Reformat copyright header.
12693
67827812
JB
126942012-01-02 Joel Brobecker <brobecker@adacore.com>
12695
12696 * server.c (gdbserver_version): Update copyright year.
12697 * gdbreplay.c (gdbreplay_version): Likewise.
12698
3e52c33d
JK
126992011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12700
12701 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12702
12703 Revert:
12704 2011-12-18 Hui Zhu <teawater@gmail.com>
12705 * linux-low.c (linux_create_inferior): Save return value to ret.
12706
66f1260e
HZ
127072011-12-18 Hui Zhu <teawater@gmail.com>
12708
12709 * linux-low.c (linux_create_inferior): Save return value to ret.
12710
e77616d7
DE
127112011-12-16 Doug Evans <dje@google.com>
12712
e7b06c57
DE
12713 * linux-low.c (linux_create_inferior): If stdio connection,
12714 redirect stdin from /dev/null, stdout to stderr.
12715 * remote-utils.c (remote_is_stdio): New static global.
12716 (remote_connection_is_stdio): New function.
12717 (remote_prepare): Handle stdio connection.
12718 (remote_open): Ditto.
12719 (remote_close): Don't close stdin for stdio connections.
12720 (read_prim,write_prim): New functions. Replace all calls to
12721 read/write to these.
12722 * server.c (main): Watch for "-" argument. Move call to
12723 remote_prepare before start_inferior.
12724 * server.h (STDIO_CONNECTION_NAME): New macro.
12725 (remote_connection_is_stdio): Declare.
12726
e77616d7
DE
12727 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12728 in debugging output.
12729
82067193
YQ
127302011-12-15 Yao Qi <yao@codesourcery.com>
12731
12732 * tracepoint.c: Include sys/syscall.h.
12733 (gdb_ust_thread): Remove preprocessor conditional.
12734
82bfbe7e
PA
127352011-12-14 Pedro Alves <pedro@codesourcery.com>
12736
12737 * linux-low.c (linux_detach_one_lwp): Call
12738 the_low_target.prepare_to_resume before detaching.
12739
712c6575
YQ
127402011-12-14 Yao Qi <yao@codesourcery.com>
12741
12742 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12743 of write.
12744
d54d1edf
YQ
127452011-12-14 Yao Qi <yao@codesourcery.com>
12746
12747 * i386-low.c (i386_low_stopped_data_address): Initialize local
12748 variable `control'.
12749
6210a125
PA
127502011-12-13 Pedro Alves <pedro@codesourcery.com>
12751
12752 PR remote/13492
12753
12754 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12755 DR_CONTROL unless necessary. Extend comments.
12756 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12757 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12758
2ece8244
YQ
127592011-12-13 Yao Qi <yao@codesourcery.com>
12760
12761 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12762 macros.
12763 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12764
784867a5
JK
127652011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12766
12767 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12768 Print new debug message for such case.
12769
6bf36717
JK
127702011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12771
12772 Fix overlapping memcpy.
12773 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12774 the read_inferior_memory transfer.
12775 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12776 write_inferior_memory transfer.
12777 (set_fast_tracepoint_jump): New variable buf. Use it for the
12778 read_inferior_memory and write_inferior_memory transfers.
12779 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12780 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12781 Use it for the write_inferior_memory transfer.
12782 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12783 buffers.
12784
50275556
MR
127852011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12786
12787 * linux-low.c (fetch_register, store_register): Make code
12788 consistent, fix formatting.
12789
7325beb4
MR
127902011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12791
12792 * linux-low.c (usr_store_inferior_registers): Factor out code
12793 to handle individual registers into...
12794 (store_register): ... this new function.
12795
c642a434
UW
127962011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12797
12798 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12799 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12800 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12801 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12802 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12803 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12804 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12805 (srv_xmlfiles): Add new XML files.
12806
12807 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12808 and <sys/uio.h>.
12809 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12810 (init_registers_s390_linux32v1): Add prototype.
12811 (init_registers_s390_linux32v2): Likewise.
12812 (init_registers_s390_linux64v1): Likewise.
12813 (init_registers_s390_linux64v2): Likewise.
12814 (init_registers_s390x_linux64v1): Likewise.
12815 (init_registers_s390x_linux64v2): Likewise.
12816 (s390_num_regs): Increment to 52.
12817 (s390_regmap): Add orig_r2 register.
12818 (s390_num_regs_3264): Increment to 68.
12819 (s390_regmap_3264): Add orig_r2 register.
12820 (s390_collect_ptrace_register): Handle orig_r2 register.
12821 (s390_supply_ptrace_register): Likewise.
12822 (s390_fill_last_break): New function.
12823 (s390_store_last_break): Likewise.
12824 (s390_fill_system_call): New function.
12825 (s390_store_system_call): Likewise.
12826 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12827 register sets.
12828 (s390_check_regset): New function.
12829 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12830 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12831 Update target_regsets for available register sets.
12832
2268b414
JK
128332011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12834 Jan Kratochvil <jan.kratochvil@redhat.com>
12835
12836 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12837 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12838 New.
12839 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12840 * linux-low.h (struct process_info_private): New member r_debug.
12841 * server.c (handle_qxfer_libraries): Call
12842 the_target->qxfer_libraries_svr4.
12843 (handle_qxfer_libraries_svr4): New function.
12844 (qxfer_packets): New entry "libraries-svr4".
12845 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12846 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12847 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12848 PACKET_qXfer_libraries_svr4.
12849
d6db1fab
UW
128502011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12851
12852 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12853 PSW address/mask between 8-byte and 16-byte formats.
12854 (s390_supply_ptrace_register): Likewise.
12855 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12856 basic addressing mode bit.
12857
242f5f1c
SS
128582011-11-24 Stan Shebs <stan@codesourcery.com>
12859
12860 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12861
f196051f
SS
128622011-11-17 Stan Shebs <stan@codesourcery.com>
12863
12864 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12865 (tracing_start_time): New global.
12866 (tracing_stop_time): New global.
12867 (tracing_user_name): New global.
12868 (tracing_notes): New global.
12869 (tracing_stop_note): New global.
12870 (cmd_qtstart): Set traceframe_usage, start_time.
12871 (stop_tracing): Set stop_time.
12872 (cmd_qtstatus): Report additional status.
12873 (cmd_qtp): New function.
12874 (handle_tracepoint_query): Call it.
12875 (cmd_qtnotes): New function.
12876 (handle_tracepoint_general_set): Call it.
12877 (get_timestamp): Rename from tsv_get_timestamp.
12878
405f8e94
SS
128792011-11-14 Stan Shebs <stan@codesourcery.com>
12880 Kwok Cheung Yeung <kcy@codesourcery.com>
12881
12882 * linux-x86-low.c (small_jump_insn): New.
12883 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12884 trampoline and error message, build a trampoline and issue a small
12885 jump instruction to it.
12886 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12887 trampoline and error message.
12888 (x86_get_min_fast_tracepoint_insn_len): New.
12889 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12890 * linux-low.h (struct linux_target_ops): Add arguments to
12891 install_fast_tracepoint_jump_pad operation, add new operation.
12892 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12893 arguments.
12894 (linux_get_min_fast_tracepoint_insn_len): New function.
12895 (linux_target_op): Add new operation.
12896 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12897 (gdb_trampoline_buffer_end): Ditto.
12898 (gdb_trampoline_buffer_error): Ditto.
12899 (struct ipa_sym_addresses): Add fields for new IPA variables.
12900 (symbol_list): Add entries for new IPA variables.
12901 (struct tracepoint): Add fields to hold the address range of the
12902 trampoline used by the tracepoint.
12903 (trampoline_buffer_head): New static variable.
12904 (trampoline_buffer_tail): Ditto.
12905 (claim_trampoline_space): New function.
12906 (have_fast_tracepoint_trampoline_buffer): New function.
12907 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12908 structure.
12909 (install_fast_tracepoint): Ditto, also add error buffer argument.
12910 (cmd_qtminftpilen): New function.
12911 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12912 (fast_tracepoint_from_trampoline_address): New function.
12913 (fast_tracepoint_collecting): Handle trampoline as part of jump
12914 pad space.
12915 (set_trampoline_buffer_space): New function.
12916 (initialize_tracepoint): Initialize new IPA variables.
12917 * target.h (struct target_ops): Add arguments to
12918 install_fast_tracepoint_jump_pad operation, add new
12919 get_min_fast_tracepoint_insn_len operation.
12920 (target_get_min_fast_tracepoint_insn_len): New.
12921 (install_fast_tracepoint_jump_pad): Add arguments.
12922 * server.h (IPA_BUFSIZ): Define.
12923 * linux-i386-ipa.c: Include extra header files.
12924 (initialize_fast_tracepoint_trampoline_buffer): New function.
12925 (initialize_low_tracepoint): Call it.
12926 * server.h (set_trampoline_buffer_space): Declare.
12927 (claim_trampoline_space): Ditto.
12928 (have_fast_tracepoint_trampoline_buffer): Ditto.
12929
1e4d1764
YQ
129302011-11-14 Yao Qi <yao@codesourcery.com>
12931
12932 * server.c (handle_query): Handle InstallInTrace for qSupported.
12933 * tracepoint.c (add_tracepoint): Sort list.
12934 (install_tracepoint, download_tracepoint): New.
12935 (cmd_qtdp): Call them to install and download tracepoints.
12936 (sort_tracepoints): Removed.
12937 (cmd_qtstart): Update.
12938
5c73ff4e
YQ
129392011-11-14 Yao Qi <yao@codesourcery.com>
12940
12941 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12942 * mem-break.h: Declare.
12943 * tracepoint.c (cmd_qtstart): Move some code to ...
12944 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12945 New.
12946 (download_tracepoints): Move some code to ...
12947 (download_tracepoint_1): ... here. New.
12948
86a30030
YQ
129492011-11-08 Yao Qi <yao@codesourcery.com>
12950
12951 * remote-utils.c (relocate_instruction): A comment fix.
12952
8d26e50c
JB
129532011-11-07 Joel Brobecker <brobecker@adacore.com>
12954
12955 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12956 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12957 dr_status_mirror and dr_control_mirror from debug_reg_state.
12958 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12959 (i386_initial_stuff): Remove use of deleted globals.
12960 (i386_get_thread_context, i386_set_thread_context,
12961 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12962 from debug_reg_state.
12963
a59306a3
YQ
129642011-11-05 Yao Qi <yao@codesourcery.com>
12965
12966 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12967 address as TPOINT's.
12968
3065dfb6
SS
129692011-11-02 Stan Shebs <stan@codesourcery.com>
12970
12971 * tracepoint.c (agent_mem_read_string): New function.
12972 (eval_agent_expr): Call it for tracenz.
12973 * server.c (handle_query): Report support for tracenz.
12974
fd0d8c7c
YQ
129752011-11-02 Yao Qi <yao@codesourcery.com>
12976
12977 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12978
609086b1
YQ
129792011-11-02 Yao Qi <yao@codesourcery.com>
12980
12981 * target.h: Fix a typo in comment.
12982
b9fd1791
PA
129832011-10-31 Pedro Alves <pedro@codesourcery.com>
12984
12985 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12986 clobber the breakpoints' shadows with fast tracepoint jumps.
12987 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12988 * target.c (write_inferior_memory): Also pass MYADDR down to
12989 check_mem_write.
12990
03583c20
UW
129912011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12992
12993 * configure.ac: Check support for personality routine.
12994 * configure: Regenerate.
12995 * config.in: Likewise.
12996 * linux-low.c: Include <sys/personality.h>.
12997 Define ADDR_NO_RANDOMIZE if necessary.
12998 (linux_create_inferior): Disable address space randomization when
12999 forking inferior, if requested.
13000 (linux_supports_disable_randomization): New function.
13001 (linux_target_ops): Install it.
13002 * server.h (disable_randomization): Declare.
13003 * server.c (disable_randomization): New global variable.
13004 (handle_general_set): Handle QDisableRandomization.
13005 (handle_query): Likewise for qSupported.
13006 (main): Support --disable-randomization and --no-disable-randomization
13007 command line arguments.
13008 * target.h (struct target_ops): Add supports_disable_randomization.
13009 (target_supports_disable_randomization): New macro.
13010
723b724b
MF
130112011-09-29 Mike Frysinger <vapier@gentoo.org>
13012
13013 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13014 ifdef check.
13015 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13016 [!PT_GETDSBT] (target_loadmap): New definition.
13017 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13018 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13019 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13020 and PT_GETDSBT to LINUX_LOADMAP.
13021 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13022 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13023
55329a5c 130242011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
13025
13026 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13027 (arm_linux_hwbp_cap): New static variable.
13028 (arm_linux_get_hwbp_cap): Replace by ...
13029 (arm_linux_init_hwbp_cap): ... this new function.
13030 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13031 (arm_linux_get_hw_watchpoint_count): Likewise.
13032 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13033 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13034 (arm_prepare_to_resume): Use perror_with_name instead of error.
13035
55329a5c 130362011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
13037
13038 * linux-arm-low.c: Include <signal.h>.
13039 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13040 (struct arm_linux_hwbp_cap): New data type.
13041 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13042 (struct arm_linux_hw_breakpoint): New data type.
13043 (MAX_BPTS, MAX_WPTS): Define.
13044 (struct arch_process_info, struct arch_lwp_info): New data types.
13045 (arm_linux_get_hwbp_cap): New function.
13046 (arm_linux_get_hw_breakpoint_count): Likewise.
13047 (arm_linux_get_hw_watchpoint_count): Likewise.
13048 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13049 (arm_hwbp_control_initialize): Likewise.
13050 (arm_hwbp_control_is_enabled): Likewise.
13051 (arm_hwbp_control_is_initialized): Likewise.
13052 (arm_hwbp_control_disable): Likewise.
13053 (arm_linux_hw_breakpoint_equal): Likewise.
13054 (arm_linux_hw_point_initialize): Likewise.
13055 (struct update_registers_data): New data structure.
13056 (update_registers_callback: New function.
13057 (arm_insert_point): Likewise.
13058 (arm_remove_point): Likewise.
13059 (arm_stopped_by_watchpoint): Likewise.
13060 (arm_stopped_data_address): Likewise.
13061 (arm_new_process): Likewise.
13062 (arm_new_thread): Likewise.
13063 (arm_prepare_to_resume): Likewise.
13064 (the_low_target): Register arm_insert_point, arm_remove_point,
13065 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13066 arm_new_thread, and arm_prepare_to_resume.
13067
6b9801d4
SS
130682011-09-15 Stan Shebs <stan@codesourcery.com>
13069
13070 * server.h (struct emit_ops): Add compare-goto fields.
13071 * tracepoint.c (gdb_agent_op_sizes): New table.
13072 (emit_eq_goto): New function.
13073 (emit_ne_goto): New function.
13074 (emit_lt_goto): New function.
13075 (emit_le_goto): New function.
13076 (emit_gt_goto): New function.
13077 (emit_ge_goto): New function.
13078 (is_goto_target): New function.
13079 (compile_bytecodes): Recognize special cases of compare-goto
13080 combinations and call specialized emitters for them.
13081 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13082 (amd64_emit_ne_goto): New function.
13083 (amd64_emit_lt_goto): New function.
13084 (amd64_emit_le_goto): New function.
13085 (amd64_emit_gt_goto): New function.
13086 (amd64_emit_ge_goto): New function.
13087 (amd64_emit_ops): Add the new functions.
13088 (i386_emit_eq_goto): New function.
13089 (i386_emit_ne_goto): New function.
13090 (i386_emit_lt_goto): New function.
13091 (i386_emit_le_goto): New function.
13092 (i386_emit_gt_goto): New function.
13093 (i386_emit_ge_goto): New function.
13094 (i386_emit_ops): Add the new functions.
13095
bf15cbda
SS
130962011-09-08 Stan Shebs <stan@codesourcery.com>
13097
13098 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13099 (i386_emit_epilogue): Restore %ebx.
13100
943ca1dd
JZ
131012011-08-31 Jie Zhang <jzhang918@gmail.com>
13102
13103 * server.c (step_thread): Remove definition.
13104 (process_serial_event): Don't handle Hs.
13105 * server.h (step_thread): Remove declaration.
13106 * target.c (set_desired_inferior): Remove use of step_thread.
13107
e3deef73
LM
131082011-08-24 Luis Machado <lgustavo@codesourcery.com>
13109
13110 * linux-low.c: Include linux-procfs.h.
13111 (linux_attach_lwp_1): Update comments.
13112 (linux_attach): Scan for existing threads when attaching to a
13113 process that is the tgid.
13114 * Makefile.in: Update dependencies.
13115
13da1c97
LM
131162011-08-24 Luis Machado <lgustavo@codesourcery.com>
13117
13118 * configure.srv: Add linux-procfs.o dependencies.
13119
881127c9
YQ
131202011-08-14 Yao Qi <yao@codesourcery.com>
13121
13122 * target.h (struct target_ops): Fix indent.
13123 * win32-low.c (win32_target_ops): Fix comment.
13124
58dbd541
YQ
131252011-08-14 Andrew Jenner <andrew@codesourcery.com>
13126 Yao Qi <yao@codesourcery.com>
13127
13128 * Makefile.in (clean): Remove tic6x-*.c files.
13129 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13130 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13131 (tic6x-c64xp-linux.c): Likewise.
13132 * configure.srv: Add support for tic6x-*-uclinux.
13133 * linux-tic6x-low.c: New.
13134 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13135
78d85199
YQ
131362011-08-14 Andrew Stubbs <ams@codesourcery.com>
13137 Yao Qi <yao@codesourcery.com>
13138
13139 * target.h (struct target_ops): Add read_loadmap.
13140 * linux-low.c (struct target_loadseg): New type.
13141 (struct target_loadmap): New type.
13142 (linux_read_loadmap): New function.
13143 (linux_target_ops): Add linux_read_loadmap.
13144 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
13145 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13146 to NULL.
78d85199 13147
a959a88d
EZ
131482011-08-05 Eli Zaretskii <eliz@gnu.org>
13149
13150 * win32-low.c: Include <stdint.h>.
13151
1ced966e
PA
131522011-07-22 Pedro Alves <pedro@codesourcery.com>
13153
13154 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13155 to the inferior here.
13156 (i386_remove_aligned_watchpoint): Ditto.
13157 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13158 fit part of the watchpoint in the debug registers.
13159 (i386_update_inferior_debug_regs): New.
13160 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13161 registers, and only update the inferior on success.
13162 (i386_low_remove_watchpoint): Ditto.
13163
d26e3629
KY
131642011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13165
13166 * linux-low.c (compare_ints, unique, list_threads, show_process,
13167 linux_core_of_thread): Delete.
13168 (linux_target_ops): Change linux_core_of_thread to
13169 linux_common_core_of_thread.
13170 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13171 * utils.c (malloc_failure): Change type of argument.
13172 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13173 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13174 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13175 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13176 (IPA_OBJS): Add common-utils-ipa.o.
13177 (ptid_h, linux_osdata_h): New macros.
13178 (server_h): Add common/common-utils.h, common/xml-utils.h,
13179 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13180 common/ptid.h.
13181 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13182 ptid.o, buffer.o): New rules.
13183 (linux-low.o): Add common/linux-osdata.h as a dependency.
13184 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13185 * configure.ac: Add AC_HEADER_DIRENT check.
13186 * config.in: Regenerate.
13187 * configure: Regenerate.
13188 * remote-utils.c (xml_escape_text): Delete.
13189 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13190 buffer_xml_printf): Move to common/buffer.c.
13191 * server.c (main): Remove call to initialize_inferiors.
13192 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13193 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13194 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13195 internal_error, gdb_assert, gdb_assert_fail): Delete.
13196 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13197 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13198 common/buffer.h.
13199 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13200 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13201 initialize_inferiors): Delete.
13202
2275a1a7
PA
132032011-07-20 Pedro Alves <pedro@codesourcery.com>
13204
13205 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13206 symbol error.
13207
0a5b1e09
PA
132082011-05-31 Pedro Alves <pedro@codesourcery.com>
13209
13210 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13211 assertion.
13212 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13213
6938fd34
YQ
132142011-05-26 Yao Qi <yao@codesourcery.com>
13215
13216 * Makefile.in (thread-db.o): Track dependence to
13217 common/gdb_thread_db.h.
13218 * thread-db.c: include gdb_thread_db.h from right place.
13219
b481f9e0
TT
132202011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13221
13222 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13223 __FILE__ and __LINE__ to internal_error.
13224
98a5dd13
DE
132252011-05-13 Doug Evans <dje@google.com>
13226
13227 * thread-db.c (try_thread_db_load_from_sdir): New function.
13228 (try_thread_db_load_from_dir): New function.
13229 (thread_db_load_search): Handle $sdir, ignore $pdir.
13230 Remove trying of system directories if search of
13231 libthread-db-search-path fails, that is now done via $sdir.
13232
d248b706
KY
132332011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13234
13235 * server.c (handle_query): Add EnableDisableTracepoints to the list
13236 of supported features.
43aaf8b6 13237 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 13238 tracepoints.
43aaf8b6
PA
13239 (cmd_qtenable_disable): New.
13240 (cmd_qtstart): Install tracepoints even if disabled.
13241 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13242 receiving a QTEnable or QTDisable packet.
13243 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13244 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13245 tracepoints.
13246 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 13247
84e578fb
DE
132482011-05-10 Doug Evans <dje@google.com>
13249
13250 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13251
71f55dd8
DE
132522011-05-04 Doug Evans <dje@google.com>
13253
13254 * linux-low.c (linux_join): Skip process lookup.
13255 * spu-low.c (spu_join): Ditto.
13256 * server.c (join_inferiors_callback): Delete.
13257 (process_serial_event): For 'D' packet (detach) call join_inferior
13258 directly.
13259
4d393d60
JM
132602011-05-04 Joseph Myers <joseph@codesourcery.com>
13261
13262 * README: Don't mention xscale*-*-linux*.
13263 * configure.srv (xscale*-*-linux*): Don't handle target.
13264
b00ad6ff
NF
132652011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13266
13267 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13268 casting pointers.
13269 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13270 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13271 (i386_emit_void_call_2): Likewise.
13272
af96c192
YQ
132732011-04-26 Yao Qi <yao@codesourcery.com>
13274
43aaf8b6
PA
13275 * linux-low.c: Move common macros to linux-ptrace.h.
13276 Include linux-ptrace.h.
af96c192
YQ
13277 * Makefile.in (linux_ptrace_h): New.
13278 (linux-low.o): Depends on linux-ptrace.h.
13279
03f2bd59
JK
132802011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13281
13282 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13283 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13284 (remote_prepare): New function with most of the TCP code from ...
13285 (remote_open): ... here. Detect PORT here unconditionally. Move also
13286 setting transport_is_reliable.
13287 * server.c (run_once): New variable.
13288 (gdbserver_usage): Document it.
13289 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13290 the first run if RUN_ONCE.
13291 * server.h (run_once, remote_prepare): New declarations.
13292
7a9dd1b2
TT
132932011-04-19 Tom Tromey <tromey@redhat.com>
13294
13295 * win32-low.c (handle_load_dll): Remove duplicate "the".
13296
81239425
PM
132972011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13298
13299 Remove support for old Cygwin 1.5 versions.
13300 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13301 function to avoid warning.
13302 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13303 warning.
13304
9e0627f1
PM
133052011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13306
13307 * gdbserver/server.h (Macro _): Define it if not available.
13308
588eebee
MS
133092011-03-14 Michael Snyder <msnyder@vmware.com>
13310
348af9f7 13311 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 13312
43f70d4c
JB
133132011-03-10 Joel Brobecker <brobecker@adacore.com>
13314
13315 * Makefile.in (maintainer-clean realclean distclean): Remove
13316 "make ... subdir_do" command.
13317
348af9f7
MS
133182011-03-10 Michael Snyder <msnyder@vmware.com>
13319
13320 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13321
13322 * server.c (handle_v_run): Free alloced buffer on early return.
13323
e637a4f5
YQ
133242011-03-09 Yao Qi <yao@codesourcery.com>
13325
13326 Revert:
13327 2011-03-04 Yao Qi <yao@codesourcery.com>
13328
13329 * Makefile.in: Remove GNU make feature --directory.
13330
13331 2011-03-05 Yao Qi <yao@codesourcery.com>
13332
13333 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13334 (subdir_do): New make target. Copied from gdb/Makefile.
13335 (maintainer-clean, realclean, distclean, clean): Call corresponding
13336 make targets in common/Makefile.
13337
13338 2011-02-11 Yao Qi <yao@codesourcery.com>
13339
13340 * configure.ac: Call AC_PROG_RANLIB.
13341 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13342 * configure: Regenerate.
13343
e6edda56
JK
133442011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13345
13346 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13347
e5141119
JB
133482011-03-06 Yao Qi <yao@codesourcery.com>
13349
13350 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13351
64794aa4
JB
133522011-03-05 Yao Qi <yao@codesourcery.com>
13353
13354 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13355 (subdir_do): New make target. Copied from gdb/Makefile.
13356 (maintainer-clean, realclean, distclean, clean): Call corresponding
13357 make targets in common/Makefile.
13358
7a762829
YQ
133592011-03-04 Yao Qi <yao@codesourcery.com>
13360
13361 * Makefile.in: Remove GNU make feature --directory.
13362
348af9f7
MS
133632011-03-04 Michael Snyder <msnyder@vmware.com>
13364
13365 * server.c (queue_stop_reply): Call xmalloc not malloc.
13366
133672011-03-02 Michael Snyder <msnyder@vmware.com>
13368
13369 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13370
9f72fee2
MS
133712011-02-28 Michael Snyder <msnyder@vmware.com>
13372
588eebee
MS
13373 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13374 (cmd_qtframe): Ditto.
13375 (cmd_qtbuffer): Ditto.
13376 (cmd_bigqtbuffer): Ditto.
13377
9f72fee2
MS
13378 * utils.c (decimal2str): Initialize 'width' to nine, then
13379 don't mess with it.
13380
8040bd49
UW
133812011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13382
13383 * hostio.c (require_data): Free *data, not data.
13384
7e52cbd0
JK
133852011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13386
13387 * hostio.c (require_data): Use free, not xfree.
13388
9130f83e
MS
133892011-02-27 Michael Snyder <msnyder@vmware.com>
13390
4b812f4e
MS
13391 * server.c (handle_query): Discard unused value.
13392
9130f83e
MS
13393 * hostio.c (require_data): Free malloc memory before returning
13394 error.
13395
69d37113
MS
133962011-02-26 Michael Snyder <msnyder@vmware.com>
13397
13398 * linux-low.c (list_threads): Call closedir for dirent.
13399
35f5825a
MS
134002011-02-27 Michael Snyder <msnyder@vmware.com>
13401
2a589cef
MS
13402 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13403 a case statement falls through.
13404
0adea5f7
MS
13405 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13406
35f5825a
MS
13407 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13408 in comparison.
13409
238f1c74
MS
134102011-02-26 Michael Snyder <msnyder@vmware.com>
13411
13412 * utils.c (decimal2str): Eliminate dead code and dead param.
13413 (pulongest): Drop dead param from call to decimal2str.
13414 (plongest): Ditto.
13415
633ff500
JB
134162011-02-24 Joel Brobecker <brobecker@adacore.com>
13417
13418 Revert the following patch (not approved yet):
13419 2011-02-21 Hui Zhu <teawater@gmail.com>
13420 * tracepoint.c (tp_printf): New function.
13421 (eval_agent_expr): Handle gdb_agent_op_printf.
13422
f9c6ff72
HZ
134232011-02-21 Hui Zhu <teawater@gmail.com>
13424
13425 * tracepoint.c (tp_printf): New function.
13426 (eval_agent_expr): Handle gdb_agent_op_printf.
13427
94d5e490
TT
134282011-02-18 Tom Tromey <tromey@redhat.com>
13429
13430 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13431 (tracepoint.o): Likewise.
13432 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13433 (gdb_agent_op_names): Likewise.
13434
c7f96d2b
TT
134352011-02-18 Tom Tromey <tromey@redhat.com>
13436
13437 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13438 gdb_agent_op_rot>: New constants.
13439 (gdb_agent_op_names): Add pick and roll.
13440 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13441 cases.
13442
0feedb2c
JK
134432011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13444
13445 * aclocal.m4: Regenerated with aclocal-1.11.1.
13446
b3b9301e
PA
134472011-02-14 Pedro Alves <pedro@codesourcery.com>
13448
13449 * server.c (handle_qxfer_traceframe_info): New.
13450 (qxfer_packets): Register "traceframe-info".
13451 (handle_query): Report support for qXfer:traceframe-info:read+.
13452 * tracepoint.c (match_blocktype): New.
13453 (traceframe_find_block_type): Rename to ...
13454 (traceframe_walk_blocks): ... this. Add callback filter argument,
13455 and use it.
13456 (traceframe_find_block_type): New, reimplemented on top of
13457 traceframe_walk_blocks.
13458 (build_traceframe_info_xml): New.
13459 (traceframe_read_info): New.
13460 * server.h (traceframe_read_info): Declare.
13461
4f3e6fb7
YQ
134622011-02-11 Yao Qi <yao@codesourcery.com>
13463
13464 * configure.ac: Call AC_PROG_RANLIB.
13465 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13466 * configure: Regenerate.
13467
764880b7
PA
134682011-02-07 Pedro Alves <pedro@codesourcery.com>
13469
13470 * server.c (gdb_read_memory): Change return semantics to allow
13471 partial transfers.
13472 (handle_search_memory_1): Adjust.
13473 (process_serial_event) <'m' packet>: Handle partial transfers.
13474 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13475
1c79eb8a
PA
134762011-01-28 Pedro Alves <pedro@codesourcery.com>
13477
13478 * regcache.c (init_register_cache): Initialize
13479 regcache->register_status.
13480 (free_register_cache): Release regcache->register_status.
13481 (regcache_cpy): Copy register_status.
13482 (registers_to_string): Print 'x's for unavailable registers.
13483 (supply_register): Mark the register's status valid or
13484 unavailable, depending on whether a buffer was passed in or not.
13485 (supply_register_zeroed): New.
13486 (supply_regblock): Mark the registers' status valid or
13487 unavailable, depending on whether a buffer was passed in or not.
13488 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13489 (struct regcache): New `register_status' field.
13490 (supply_register_zeroed): Declare.
13491 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13492 supply_register_zeroed, rather than passing a NULL buffer to
13493 supply_register.
13494 * tracepoint.c (fetch_traceframe_registers): Update comment.
13495
85724a0e
PA
134962011-01-28 Pedro Alves <pedro@codesourcery.com>
13497
13498 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13499 buffer explicit.
13500
d08aafef
PA
135012011-01-25 Pedro Alves <pedro@codesourcery.com>
13502
13503 * server.h (decode_xfer_write): Change prototype.
13504 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13505 and don't extract the annex here.
13506 * server.c (decode_xfer_read): Remove `annex' parameter,
13507 and don't extract the annex here.
13508 (decode_xfer): New.
13509 (struct qxfer): New.
13510 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13511 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13512 (handle_qxfer_statictrace): New functions, abstracted out from
13513 handle_query, and made to use the struct qxfer interface.
13514 (handle_threads_qxfer_proper): Rename to ...
13515 (handle_qxfer_threads_proper): ... this.
13516 (handle_threads_qxfer): Rename to ...
13517 (handle_qxfer_threads): ... this. Adjust.
13518 (qxfer_packets): New array.
13519 (handle_qxfer): New function.
13520 (handle_query): Use handle_qxfer.
13521
493e2a69
MS
135222011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13523
13524 * gdbreplay.c: Shorten lines of >= 80 columns.
13525 * linux-low.c: Ditto.
13526 * linux-ppc-low.c: Ditto.
13527 * linux-s390-low.c: Ditto.
13528 * linux-sparc-low.c: Ditto.
13529 * linux-x86-low.c: Ditto.
13530 * linux-xtensa-low.c: Ditto.
13531 * mem-break.c: Ditto.
13532 * nto-low.c: Ditto.
13533 * regcache.h: Ditto.
13534 * remote-utils.c: Ditto.
13535 * server.c: Ditto.
13536 * server.h: Ditto.
13537 * thread-db.c: Ditto.
13538 * tracepoint.c: Ditto.
13539 * utils.c: Ditto.
13540 * win32-low.h: Ditto.
13541
44944448
JB
135422011-01-05 Joel Brobecker <brobecker@adacore.com>
13543
13544 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13545 update.
13546
71ce852c
JB
135472011-01-01 Joel Brobecker <brobecker@adacore.com>
13548
13549 * server.c (gdbserver_version): Update copyright year in version
13550 output.
13551 * gdbreplay.c (gdbreplay_version): Ditto.
13552
eb826dc6
MF
135532010-12-29 Jie Zhang <jie.zhang@analog.com>
13554
13555 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13556 * linux-bfin-low.c: New file.
13557 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13558 PT_DATA_ADDR for BFIN targets.
13559 * Makefile.in (SFILES): Add linux-bfin-low.c.
13560 (clean): Remove reg-bfin.c.
13561 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13562 * README: Mention supported Blackfin targets.
13563
39ab222a
MF
135642010-12-23 Mike Frysinger <vapier@gentoo.org>
13565
13566 * .gitignore: New file.
13567
a1f2ce7d
MF
135682010-11-16 Mike Frysinger <vapier@gentoo.org>
13569
13570 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13571
f474844c
JZ
135722010-10-22 Jie Zhang <jie@codesourcery.com>
13573
13574 * Makefile.in: Add FLAGS_TO_PASS variable.
13575 (install): Remove dependency of install-only and recursively
13576 invoke make for install-only.
13577
f1048712
DE
135782010-10-04 Doug Evans <dje@google.com>
13579
13580 * Makefile.in (uninstall): Use $(DESTDIR).
13581
b53a1623
PA
135822010-09-24 Pedro Alves <pedro@codesourcery.com>
13583
e6ee044d
PA
13584 PR gdb/11842
13585
b53a1623
PA
13586 * linux-x86-low.c (compat_siginfo_from_siginfo)
13587 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
13588 si_code is < 0. Check for si_code == SI_TIMER before checking for
13589 si_code < 0.
13590
fa1bd1e4
JB
135912010-09-13 Joel Brobecker <brobecker@adacore.com>
13592
13593 * lynx-i386-low.c: New file.
13594 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
13595
47fac8f8
JB
135962010-09-13 Joel Brobecker <brobecker@adacore.com>
13597
13598 * lynx-low.c (ptrace_request_to_str): Remove handling for
13599 request values that have been removed in LynxOS 5.x.
13600
1adfc54d
JB
136012010-09-13 Joel Brobecker <brobecker@adacore.com>
13602
13603 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
13604 <ptrace.h>
13605
c2a66c29
NS
136062010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13607
13608 * configure.ac: Add --enable-inprocess-agent option.
13609 * configure: Rebuilt.
13610
32fcada3
YQ
136112010-09-06 Yao Qi <yao@codesourcery.com>
13612
13613 * linux-low.c (linux_kill): Remove unused variable.
13614 (linux_stabilize_threads): Likewise.
13615 * server.c (start_inferior): Likewise.
13616 (queue_stop_reply_callback): Likewise.
13617 * tracepoint.c (do_action_at_tracepoint): Likewise.
13618
0cccb683
YQ
136192010-09-06 Yao Qi <yao@codesourcery.com>
13620
13621 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
13622 on return.
13623
423ec54c
JK
136242010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13625
13626 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
13627
12ac6819
PA
136282010-09-06 Pedro Alves <pedro@codesourcery.com>
13629
13630 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13631 "$(IPA_DEPFILES)".
13632
8ed54b31
JB
136332010-09-01 Joel Brobecker <brobecker@adacore.com>
13634
13635 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13636 gdbserver/lynx-ppc-low.c: New files.
13637 * Makefile.in (lynx_low_h): New variable.
13638 (lynx-low.o, lynx-ppc-low.o): New rules.
13639 * configure.ac: On LynxOS, link with -lnetinet.
13640 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13641 * configure: regenerate.
13642
bb0116a4
JB
136432010-09-01 Joel Brobecker <brobecker@adacore.com>
13644
13645 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13646 * configure.ac: Add check for vasprintf and vsnprintf.
13647 * configure, config.in: Regenerate.
13648 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13649
a778ab81 136502010-09-01 Joel Brobecker <brobecker@adacore.com>
13651
13652 * gdbreplay.c: Move include of alloca.h up, next to include of
13653 malloc.h.
13654 * server.h: Add include of malloc.h.
13655 * mem-break.c: Remove include of malloc.h.
13656 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13657
8b034a19 136582010-09-01 Joel Brobecker <brobecker@adacore.com>
13659
13660 * Makefile.in (memmem.o): Build with -Wno-error.
13661
136622010-09-01 Joel Brobecker <brobecker@adacore.com>
13663
13664 * utils.c (xsnprintf): Make non-static.
13665 * server.h: Add xsnprintf declaration.
13666 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13667 replace calls to snprintf by calls to xsnprintf throughout.
13668
136692010-09-01 Joel Brobecker <brobecker@adacore.com>
13670
13671 * configure.ac: Add configure check for alloca.
13672 * configure, config.in: Regenerate.
13673 * server.h: Include alloca.h if it exists.
13674 * gdbreplay.c: Include alloca.h if it exists.
13675
1a981360
PA
136762010-08-28 Pedro Alves <pedro@codesourcery.com>
13677
13678 * linux-low.c (__SIGRTMIN): Define if not already defined.
13679 (linux_create_inferior): Check for __ANDROID__ rather than
13680 __SIGRTMIN.
13681 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13682 are already deferred.
13683 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13684 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13685 stopped and already has a pending signal to report.
13686 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13687 a pending signal to report or is moving out of a jump pad.
13688 (linux_init_signals): Check for __ANDROID__ rather than
13689 __SIGRTMIN.
13690
b4d51a55
PA
136912010-08-28 Pedro Alves <pedro@codesourcery.com>
13692
13693 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13694 debug_threads check. Avoid a linear search when not doing debug
13695 output.
13696
ec48365d
PA
136972010-08-27 Pedro Alves <pedro@codesourcery.com>
13698
13699 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13700 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13701 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13702 (process_event): Change local fd's type to gdb_fildes_t.
13703 (create_file_handler): Adjust prototype.
13704 (delete_file_handler): Adjust prototype.
13705 (handle_file_event): Adjust prototype. Use pfildes.
13706 (create_file_event): Adjsut prototype.
13707 * remote-utils.c (remote_desc, listen_desc): Change type to
13708 gdb_fildes_t.
13709 * server.h: New gdb_fildes_t typedef.
13710 [USE_WIN32API]: Include winsock2.h.
13711 (delete_file_handler, add_file_handler): Adjust prototypes.
13712 (pfildes): Declare.
13713 * utils.c (pfildes): New.
13714
854d88f0
PA
137152010-08-27 Pedro Alves <pedro@codesourcery.com>
13716
13717 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13718 * configure: Regenerate.
13719
0146f85b
PA
137202010-08-27 Pedro Alves <pedro@codesourcery.com>
13721
13722 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13723 (linux_done_accessing_memory): ... this.
13724 (linux_target_ops): Adjust.
13725 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13726 * nto-low.c (nto_target_ops): Adjust comment.
13727 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13728 * spu-low.c (spu_target_ops): Adjust comment.
13729 * target.h (target_ops): Rename unprepare_to_access_memory field
13730 to done_accessing_memory.
13731 (unprepare_to_access_memory): Rename to ...
13732 (done_accessing_memory): ... this.
13733
90d74c30
PA
137342010-08-26 Pedro Alves <pedro@codesourcery.com>
13735
13736 * linux-low.c (linux_prepare_to_access_memory): New.
13737 (linux_unprepare_to_access_memory): New.
13738 (linux_target_ops): Install them.
13739 * server.c (read_memory): Rename to ...
13740 (gdb_read_memory): ... this. Use
13741 prepare_to_access_memory/prepare_to_access_memory.
13742 (write_memory): Rename to ...
13743 (gdb_write_memory): ... this. Use
13744 prepare_to_access_memory/prepare_to_access_memory.
13745 (handle_search_memory_1): Adjust.
13746 (process_serial_event): Adjust.
13747 * target.h (struct target_ops): New fields
13748 prepare_to_access_memory and unprepare_to_access_memory.
13749 (prepare_to_access_memory, unprepare_to_access_memory): New.
13750 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13751 prepare_to_access_memory/prepare_to_access_memory.
13752 * nto-low.c (nto_target_ops): Adjust.
13753 * spu-low.c (spu_target_ops): Adjust.
13754 * win32-low.c (win32_target_ops): Adjust.
13755
fd467969
PA
137562010-08-26 Pedro Alves <pedro@codesourcery.com>
13757
13758 * Makefile.in (WARN_CFLAGS): Get it from configure.
13759 (WERROR_CFLAGS): New.
13760 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13761 * configure.ac: Introduce --enable-werror, which adds -Werror to
13762 the compiler command line. Enabled by default. Disable with
13763 --disable-werror. Add -Wdeclaration-after-statement
13764 Wpointer-arith and -Wformat-nonliteral to warning flags.
13765 * configure: Regenerate.
13766
331e2f5f
PA
137672010-08-26 Pedro Alves <pedro@codesourcery.com>
13768
13769 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13770
e581f2b4
PA
137712010-08-26 Pedro Alves <pedro@codesourcery.com>
13772
13773 * gdbreplay.c (remote_error): New.
13774 (gdbchar): New.
13775 (expect): Use gdbchar. Check for error reading from GDB.
13776 Clarify sync error output.
13777 (play): Check for errors writing to GDB.
13778 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13779 * remote-utils.c (getpkt): Check for errors writing to the remote
13780 descriptor.
13781
3c11dd79
PA
137822010-08-25 Pedro Alves <pedro@codesourcery.com>
13783
13784 * linux-low.c (linux_wait_1): Move non-debugging code out of
13785 `debug_threads' control.
13786
d20a8ad9
PA
137872010-08-25 Pedro Alves <pedro@codesourcery.com>
13788
13789 * linux-low.c (linux_wait_1): Don't set last_status here.
13790 * server.c (push_event, queue_stop_reply_callback): Assert we're
13791 not pushing a TARGET_WAITKIND_IGNORE event.
13792 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13793 (myresume, handle_target_event): Set the thread's last_resume_kind
13794 and last_status from the target returned status.
13795
964e4306
PA
137962010-08-25 Pedro Alves <pedro@codesourcery.com>
13797
13798 PR threads/10729
13799
13800 * linux-x86-low.c (update_debug_registers_callback): New.
13801 (i386_dr_low_set_addr): Use it.
13802 (i386_dr_low_get_addr): New.
13803 (i386_dr_low_set_control): Use update_debug_registers_callback.
13804 (i386_dr_low_get_control): New.
13805 (i386_dr_low_get_status): Adjust.
13806 * linux-low.c (linux_stop_lwp): New.
13807 * linux-low.h (linux_stop_lwp): Declare.
13808
13809 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13810 argument instead of a i386_debug_reg_state.
13811 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13812 a i386_debug_reg_state.
13813 (i386_insert_aligned_watchpoint): Adjust.
13814 (i386_remove_aligned_watchpoint): Adjust.
13815 (i386_low_stopped_data_address): Read the debug registers from the
13816 inferior instead of from the mirrors.
13817 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13818 (i386_dr_low_get_addr): Declare.
13819 (i386_dr_low_get_control): Declare.
13820 (i386_dr_low_get_status): Change prototype.
13821
13822 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13823 (i386_dr_low_get_addr): New.
13824 (i386_dr_low_get_control): New.
13825 (i386_dr_low_get_status): Adjust prototype. Return
13826 dr_status_mirror.
13827 (i386_initial_stuff): Clear dr_status_mirror and
13828 dr_control_mirror.
13829 (i386_get_thread_context): Adjust.
13830 (i386_set_thread_context): Adjust.
13831 (i386_thread_added): Adjust.
13832
5f21a75b
PA
138332010-08-24 Pedro Alves <pedro@codesourcery.com>
13834
13835 * linux-low.h (linux_thread_area): Delete declaration.
13836
3e4c1235
TS
138372010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13838
13839 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13840 after its termination.
13841
1971b033
PA
138422010-08-09 Pedro Alves <pedro@codesourcery.com>
13843
13844 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13845 (gdb_wants_all_stopped): Delete.
13846 (linux_wait_1): Don't call them.
13847 * server.c (handle_v_cont): Tag all threads as want-stopped.
13848 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13849 stopped as "client-wants-stopped".
13850
310444ac
PA
138512010-07-31 Pedro Alves <pedro@codesourcery.com>
13852
13853 * Makefile.in (signals_h): New.
13854 (server_h): Depend on it.
13855 (server.o): Don't depend on $(signals_def).
13856 (signals.o): Depend on $(signals_def).
13857
a19cae16
JK
138582010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13859
13860 * Makefile.in (signals_def): New.
13861 (server_h): Append include/gdb/signals.h and signals_def.
13862 (server.o): Append signals_def.
13863
30d50328
JK
138642010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13865
13866 * server.c (handle_target_event): Use target_signal_to_host for
13867 resume_info.sig initialization.
13868 * target.h (struct thread_resume) <sig>: New comment.
13869
5c3216e2
OS
138702010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13871
c6f46ca0
OS
13872 * server.c (handle_query): strcpy() the returned string from paddress()
13873 instead of sprintf().
5c3216e2
OS
13874 * utils.c (paddress): Return phex_nz().
13875
6bd31874
JB
138762010-07-07 Joel Brobecker <brobecker@adacore.com>
13877
13878 * server.c (handle_v_cont): Call mourn_inferior if process
13879 just exited.
13880 (myresume): Likewise.
13881
0fb4aa4b
PA
138822010-07-01 Pedro Alves <pedro@codesourcery.com>
13883
13884 Static tracepoints, and integration with UST.
13885
13886 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13887 * mem-break.c (uninsert_all_breakpoints)
13888 (reinsert_all_breakpoints): New.
13889 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13890 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13891 (gdb_agent_ust_loaded, helper_thread_id)
13892 (gdb_agent_helper_thread_id): New macros.
13893 (struct ipa_sym_addresses): Add addr_ust_loaded,
13894 addr_helper_thread_id, addr_cmd_buf.
13895 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13896 (in_process_agent_loaded_ust): New.
13897 (write_e_ust_not_loaded): New.
13898 (maybe_write_ipa_ust_not_loaded): New.
13899 (struct collect_static_trace_data_action): New.
13900 (enum tracepoint_type) <static_tracepoint>: New.
13901 (struct tracepoint) <handle>: Mention static tracepoints.
13902 (struct static_tracepoint_ctx): New.
13903 (CMD_BUF_SIZE): New.
13904 (add_tracepoint_action): Handle static tracepoint actions.
13905 (unprobe_marker_at): New.
13906 (clear_installed_tracepoints): Handle static tracepoints.
13907 (cmd_qtdp): Handle static tracepoints.
13908 (probe_marker_at): New.
13909 (cmd_qtstart): Handle static tracepoints.
13910 (response_tracepoint): Handle static tracepoints.
13911 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13912 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13913 (get_context_regcache): Handle static tracepoints.
13914 (do_action_at_tracepoint): Handle static tracepoint actions.
13915 (traceframe_find_block_type): Handle static trace data blocks.
13916 (traceframe_read_sdata): New.
13917 (download_tracepoints): Download static tracepoint actions.
13918 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13919 (GDB_PROBE_NAME): New.
13920 (ust_ops): New.
13921 (GET_UST_SYM): New.
13922 (USTF): New.
13923 (dlsym_ust): New.
13924 (ust_marker_to_static_tracepoint): New.
13925 (gdb_probe): New.
13926 (collect_ust_data_at_tracepoint): New.
13927 (gdb_ust_probe): New.
13928 (UNIX_PATH_MAX, SOCK_DIR): New.
13929 (gdb_ust_connect_sync_socket): New.
13930 (resume_thread, stop_thread): New.
13931 (run_inferior_command): New.
13932 (init_named_socket): New.
13933 (gdb_ust_socket_init): New.
13934 (cstr_to_hexstr): New.
13935 (next_st): New.
13936 (first_marker, next_marker): New.
13937 (response_ust_marker): New.
13938 (cmd_qtfstm, cmd_qtsstm): New.
13939 (unprobe_marker_at, probe_marker_at): New.
13940 (cmd_qtstmat, gdb_ust_thread): New.
13941 (gdb_ust_init): New.
13942 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13943 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13944 (ST_REGENTRY): New.
13945 (x86_64_st_collect_regmap): New.
13946 (X86_64_NUM_ST_COLLECT_GREGS): New.
13947 (AMD64_RIP_REGNUM): New.
13948 (supply_static_tracepoint_registers): New.
13949 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13950 (ST_REGENTRY): New.
13951 (i386_st_collect_regmap): New.
13952 (i386_NUM_ST_COLLECT_GREGS): New.
13953 (supply_static_tracepoint_registers): New.
13954 * server.c (handle_query): Handle qXfer:statictrace:read.
13955 <qSupported>: Report support for StaticTracepoints, and
13956 qXfer:statictrace:read features.
13957 * server.h (traceframe_read_sdata)
13958 (supply_static_tracepoint_registers): Declare.
13959 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13960 (unpack_varlen_hex): Include in IPA build.
13961 * Makefile.in (ustlibs, ustinc): New.
13962 (IPA_OBJS): Add remote-utils-ipa.o.
13963 ($(IPA_LIB)): Link -ldl and -lpthread.
13964 (UST_CFLAGS): New.
13965 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13966 * config.in, configure: Regenerate.
13967
9e4344e5
PA
139682010-06-20 Ian Lance Taylor <iant@google.com>
13969 Pedro Alves <pedro@codesourcery.com>
13970
13971 * linux-x86-low.c (always_true): Delete.
13972 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13973 trying to fool the compiler with always_true.
13974
c6beb2cb
PA
139752010-06-20 Pedro Alves <pedro@codesourcery.com>
13976
13977 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13978 conditions in gdbserver.
13979
d2ed6730
UW
139802010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13981
13982 * spu-low.c (spu_read_memory): Wrap around local store limit.
13983 (spu_write_memory): Likewise.
13984
4e29fb54
PA
139852010-06-15 Pedro Alves <pedro@codesourcery.com>
13986
13987 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13988 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13989 LONGEST uses.
13990 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13991 uses.
13992 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13993 uses with LONGEST uses.
13994
6a271cae
PA
139952010-06-14 Stan Shebs <stan@codesourcery.com>
13996 Pedro Alves <pedro@codesourcery.com>
13997
13998 Bytecode compiler.
13999
14000 * linux-x86-low.c: Include limits.h.
14001 (add_insns): New.
14002 (always_true): New.
14003 (EMIT_ASM): New.
14004 (EMIT_ASM32): New.
14005 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14006 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14007 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14008 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14009 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14010 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14011 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14012 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14013 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14014 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14015 (amd64_emit_void_call_2): New.
14016 (amd64_emit_ops): New.
14017 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14018 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14019 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14020 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14021 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14022 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14023 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14024 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14025 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14026 (i386_emit_stack_adjust, i386_emit_int_call_1)
14027 (i386_emit_void_call_2): New.
14028 (i386_emit_ops): New.
14029 (x86_emit_ops): New.
14030 (the_low_target): Install x86_emit_ops.
14031 * server.h (struct emit_ops): New.
14032 (get_raw_reg_func_addr): Declare.
14033 (current_insn_ptr, emit_error): Declare.
14034 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14035 (set_trace_state_variable_value): New defines.
14036 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14037 addr_get_trace_state_variable_value and
14038 addr_set_trace_state_variable_value.
14039 (symbol_list): New fields for get_raw_reg,
14040 get_trace_state_variable_value and set_trace_state_variable_value.
14041 (condfn): New typedef.
14042 (struct tracepoint): New field `compiled_cond'.
14043 (do_action_at_tracepoint): Clear compiled_cond.
14044 (get_trace_state_variable_value, set_trace_state_variable_value):
14045 Export in the IPA.
14046 (condition_true_at_tracepoint): If there's a compiled condition,
14047 run that.
14048 (current_insn_ptr, emit_error): New globals.
14049 (struct bytecode_address): New.
14050 (get_raw_reg_func_addr): New.
14051 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14052 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14053 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14054 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14055 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14056 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14057 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14058 (compile_tracepoint_condition, compile_bytecodes): New.
14059 * target.h (emit_ops): Forward declare.
14060 (struct target_ops): New field emit_ops.
14061 (target_emit_ops): New.
14062 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14063 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14064 * linux-low.c (linux_emit_ops): New.
14065 (linux_target_ops): Install it.
14066 * linux-low.h (struct linux_target_ops): New field emit_ops.
14067
92b72907
UW
140682010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14069
14070 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14071 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14072
fa593d66
PA
140732010-06-01 Pedro Alves <pedro@codesourcery.com>
14074 Stan Shebs <stan@codesourcery.com>
14075
14076 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14077 (all): Depend on $(extra_libraries).
14078 (install-only): Install the IPA.
14079 (IPA_OBJS, IPA_LIB): New.
14080 (clean): Remove the IPA lib.
14081 (IPAGENT_CFLAGS): New.
14082 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14083 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14084 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14085 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14086 * configure.ac: Check for atomic builtins support in the compiler.
14087 (IPA_DEPFILES, extra_libraries): Define.
14088 * configure.srv (ipa_obj): Add description.
14089 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14090 (i[34567]86-*-linux*): Set ipa_obj.
14091 (x86_64-*-linux*): Set ipa_obj.
14092 * linux-low.c (stabilizing_threads): New.
14093 (supports_fast_tracepoints): New.
14094 (linux_detach): Stabilize threads before detaching.
14095 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14096 the lwp is either not stabilizing, or is moving out of a jump pad.
14097 (linux_fast_tracepoint_collecting): New.
14098 (maybe_move_out_of_jump_pad): New.
14099 (enqueue_one_deferred_signal): New.
14100 (dequeue_one_deferred_signal): New.
14101 (linux_wait_for_event_1): If moving out of a jump pad, defer
14102 pending signals to later.
14103 (linux_stabilize_threads): New.
14104 (linux_wait_1): Check if threads need moving out of jump pads, and
14105 do it if so.
14106 (stuck_in_jump_pad_callback): New.
14107 (move_out_of_jump_pad_callback): New.
14108 (lwp_running): New.
14109 (linux_resume_one_lwp): Handle moving out of jump pads.
14110 (linux_set_resume_request): Dequeue deferred signals.
14111 (need_step_over_p): Also step over fast tracepoint jumps.
14112 (start_step_over): Also uninsert fast tracepoint jumps.
14113 (finish_step_over): Also reinsert fast tracepoint jumps.
14114 (linux_install_fast_tracepoint_jump): New.
14115 (linux_target_ops): Install linux_stabilize_threads and
14116 linux_install_fast_tracepoint_jump_pad.
14117 * linux-low.h (linux_target_ops) <get_thread_area,
14118 install_fast_tracepoint_jump_pad>: New fields.
14119 (struct lwp_info) <collecting_fast_tracepoint,
14120 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14121 (linux_get_thread_area): Declare.
14122 * linux-x86-low.c (jump_insn): New.
14123 (x86_get_thread_area): New.
14124 (append_insns): New.
14125 (push_opcode): New.
14126 (amd64_install_fast_tracepoint_jump_pad): New.
14127 (i386_install_fast_tracepoint_jump_pad): New.
14128 (x86_install_fast_tracepoint_jump_pad): New.
14129 (the_low_target): Install x86_get_thread_area and
14130 x86_install_fast_tracepoint_jump_pad.
14131 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14132 (struct fast_tracepoint_jump): New.
14133 (fast_tracepoint_jump_insn): New.
14134 (fast_tracepoint_jump_shadow): New.
14135 (find_fast_tracepoint_jump_at): New.
14136 (fast_tracepoint_jump_here): New.
14137 (delete_fast_tracepoint_jump): New.
14138 (set_fast_tracepoint_jump): New.
14139 (uninsert_fast_tracepoint_jumps_at): New.
14140 (reinsert_fast_tracepoint_jumps_at): New.
14141 (set_breakpoint_at): Use write_inferior_memory.
14142 (uninsert_raw_breakpoint): Use write_inferior_memory.
14143 (check_mem_read): Mask out fast tracepoint jumps.
14144 (check_mem_write): Mask out fast tracepoint jumps.
14145 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14146 (set_fast_tracepoint_jump): Declare.
14147 (delete_fast_tracepoint_jump)
14148 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14149 (reinsert_fast_tracepoint_jumps_at): Declare.
14150 * regcache.c: Don't compile many functions when building the
14151 in-process agent library.
14152 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14153 the register buffer in the heap.
14154 (free_register_cache): If the register buffer isn't owned by the
14155 regcache, don't free it.
14156 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14157 pre-existing register caches.
14158 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14159 type.
14160 (convert_ascii_to_int): : Constify `from' parameter type.
14161 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14162 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14163 the needed buffer in-place.
14164 (relocate_instruction): New.
14165 * server.c (handle_query) <qSymbols>: If the target supports
14166 tracepoints, give it a chance of looking up symbols. Report
14167 support for fast tracepoints.
14168 (handle_status): Stabilize threads.
14169 (process_serial_event): Adjust.
14170 * server.h (struct fast_tracepoint_jump): Forward declare.
14171 (struct process_info) <fast_tracepoint_jumps>: New field.
14172 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14173 (decode_X_packet, decode_M_packet): Adjust.
14174 (relocate_instruction): Declare.
14175 (in_process_agent_loaded): Declare.
14176 (tracepoint_look_up_symbols): Declare.
14177 (struct fast_tpoint_collect_status): Declare.
14178 (fast_tracepoint_collecting): Declare.
14179 (force_unlock_trace_buffer): Declare.
14180 (handle_tracepoint_bkpts): Declare.
14181 (initialize_low_tracepoint)
14182 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14183 * target.h (struct target_ops) <stabilize_threads,
14184 install_fast_tracepoint_jump_pad>: New fields.
14185 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14186 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14187 [HAVE_STDINT_H]: Include stdint.h.
14188 (trace_debug_1): Rename to ...
14189 (trace_vdebug): ... this.
14190 (trace_debug): Rename to ...
14191 (trace_debug_1): ... this. Add `level' parameter.
14192 (trace_debug): New.
14193 (ATTR_USED, ATTR_NOINLINE): New.
14194 (IP_AGENT_EXPORT): New.
14195 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14196 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14197 (about_to_request_buffer_space, trace_buffer_is_full)
14198 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14199 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14200 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14201 (traceframe_write_count, traceframes_created)
14202 (trace_state_variables)
14203 New renaming defines.
14204 (struct ipa_sym_addresses): New.
14205 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14206 (symbol_list): New.
14207 (ipa_sym_addrs): New.
14208 (all_tracepoint_symbols_looked_up): New.
14209 (in_process_agent_loaded): New.
14210 (write_e_ipa_not_loaded): New.
14211 (maybe_write_ipa_not_loaded): New.
14212 (tracepoint_look_up_symbols): New.
14213 (debug_threads) [IN_PROCESS_AGENT]: New.
14214 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14215 (UNKNOWN_SIDE_EFFECTS): New.
14216 (stop_tracing): New.
14217 (flush_trace_buffer): New.
14218 (stop_tracing_bkpt): New.
14219 (flush_trace_buffer_bkpt): New.
14220 (read_inferior_integer): New.
14221 (read_inferior_uinteger): New.
14222 (read_inferior_data_pointer): New.
14223 (write_inferior_data_pointer): New.
14224 (write_inferior_integer): New.
14225 (write_inferior_uinteger): New.
14226 (struct collect_static_trace_data_action): Delete.
14227 (enum tracepoint_type): New.
14228 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
14229 <actions_str, step_actions, step_actions_str>: Only include in
14230 GDBserver.
fa593d66
PA
14231 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14232 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14233 (tracepoints): Use IP_AGENT_EXPORT.
14234 (last_tracepoint): Don't include in the IPA.
14235 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14236 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14237 (alloced_trace_state_variables): New.
14238 (trace_state_variables): Use IP_AGENT_EXPORT.
14239 (traceframe_t): Delete unused variable.
14240 (circular_trace_buffer): Don't include in the IPA.
14241 (trace_buffer_start): Delete.
14242 (struct trace_buffer_control): New.
14243 (trace_buffer_free): Delete.
14244 (struct ipa_trace_buffer_control): New.
14245 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14246 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14247 New.
14248 (trace_buffer_ctrl): New.
14249 (TRACE_BUFFER_CTRL_CURR): New.
14250 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14251 Reimplement as macros.
14252 (trace_buffer_wrap): Delete.
14253 (traceframe_write_count, traceframe_read_count)
14254 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14255 (struct tracepoint_hit_ctx) <type>: New field.
14256 (struct fast_tracepoint_ctx): New.
14257 (memory_barrier): New.
14258 (cmpxchg): New.
14259 (record_tracepoint_error): Update atomically in the IPA.
14260 (clear_inferior_trace_buffer): New.
14261 (about_to_request_buffer_space): New.
14262 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14263 updating the same buffer.
14264 (add_tracepoint): Default the tracepoint's type to trap
14265 tracepoint, and orig_size to -1.
14266 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14267 internal variables.
14268 (create_trace_state_variable): New parameter `gdb'. Handle it.
14269 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14270 (cmd_qtdp): Handle fast tracepoints.
14271 (cmd_qtdv): Adjust.
14272 (max_jump_pad_size): New.
14273 (gdb_jump_pad_head): New.
14274 (get_jump_space_head): New.
14275 (claim_jump_space): New.
14276 (sort_tracepoints): New.
14277 (MAX_JUMP_SIZE): New.
14278 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14279 IPA.
14280 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14281 support. Upload fast traceframes, and delete internal IPA
14282 breakpoints.
14283 (stop_tracing_handler): New.
14284 (flush_trace_buffer_handler): New.
14285 (cmd_qtstop): Upload fast tracepoints.
14286 (response_tracepoint): Handle fast tracepoints.
14287 (tracepoint_finished_step): Upload fast traceframes. Set the
14288 tracepoint hit context's tracepoint type.
14289 (handle_tracepoint_bkpts): New.
14290 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14291 type. Add comment about fast tracepoints.
14292 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14293 non-existing action_str field.
14294 (get_context_regcache): Handle fast tracepoints.
14295 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14296 to the regcache.
14297 (fast_tracepoint_from_jump_pad_address): New.
14298 (fast_tracepoint_from_ipa_tpoint_address): New.
14299 (collecting_t): New.
14300 (force_unlock_trace_buffer): New.
14301 (fast_tracepoint_collecting): New.
14302 (collecting): New.
14303 (gdb_collect): New.
14304 (write_inferior_data_ptr): New.
14305 (target_tp_heap): New.
14306 (target_malloc): New.
14307 (download_agent_expr): New.
14308 (UALIGN): New.
14309 (download_tracepoints): New.
14310 (download_trace_state_variables): New.
14311 (upload_fast_traceframes): New.
14312 (IPA_FIRST_TRACEFRAME): New.
14313 (IPA_NEXT_TRACEFRAME_1): New.
14314 (IPA_NEXT_TRACEFRAME): New.
14315 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14316 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14317 (gdb_jump_pad_buffer_end): New.
14318 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14319 (initialize_tracepoint): Adjust.
14320 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14321 buffer. Initialize the low module.
14322 * utils.c (PREFIX, TOOLNAME): New.
14323 (malloc_failure): Use PREFIX.
14324 (error): In the IPA, an error causes an exit.
14325 (fatal, warning): Use PREFIX.
14326 (internal_error): Use TOOLNAME.
14327 (NUMCELLS): Increase to 10.
14328 * configure, config.in: Regenerate.
14329
d149dd1d
PA
143302010-06-01 Pedro Alves <pedro@codesourcery.com>
14331
14332 * server.c (handle_query) <qSupported>: Do two passes over the
14333 qSupported string to avoid nesting strtok.
14334
f6528abd
JK
143352010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14336
14337 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14338 (CDEPS): New.
14339 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14340 -Wl,--dynamic-list.
14341 * configure: Regenerate.
14342 * proc-service.list: New.
14343
ca2a87a0
JK
143442010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14345
14346 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14347 New comment.
14348
363a6e9f
OS
143492010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14350
14351 * gdbreplay.c (remote_open): Check error return from socket() call by
14352 its equality to -1 not by it being negative.
14353 * remote-utils.c (remote_open): Likewise.
14354
d23b6cb1
PA
143552010-05-23 Pedro Alves <pedro@codesourcery.com>
14356
14357 * config.h: Regenerate.
14358
28d3cf85
MK
143592010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14360
14361 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14362 doesn't provide PTRACE_GET_THREAD_AREA.
14363
fea36a59
MK
143642010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14365
14366 * linux-m68k-low.c: Include <asm/ptrace.h>
14367 (ps_get_thread_area): Implement.
14368
24b066ba
DE
143692010-05-03 Doug Evans <dje@google.com>
14370
14371 * event-loop.c (struct callback_event): New struct.
14372 (callback_list): New global.
14373 (append_callback_event, delete_callback_event): New functions.
14374 (process_callback): New function.
14375 (start_event_loop): Call it.
14376 * remote-utils.c (NOT_SCHEDULED): Define.
14377 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14378 moved out of readchar.
14379 (readchar): Rewrite. Call reschedule before returning.
14380 (reset_readchar): New function.
14381 (remote_close): Call it.
14382 (process_remaining, reschedule): New functions.
14383 * server.h (callback_handler_func): New typedef.
14384 (append_callback_event, delete_callback_event): Declare.
14385
9836d6ea
PA
143862010-05-03 Pedro Alves <pedro@codesourcery.com>
14387
14388 * proc-service.c (ps_pglobal_lookup): Use
14389 thread_db_look_up_one_symbol.
14390 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14391 parameter. Use it instead of all_symbols_looked_up.
14392 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14393 field.
14394 (all_symbols_looked_up): Don't declare.
14395 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14396 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14397 field.
14398 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14399 Set all_symbols_looked_up here.
14400 (thread_db_look_up_one_symbol): New.
14401 (thread_db_get_tls_address): Adjust.
14402 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14403 thread_db object on the heap, and tentatively set it in the
14404 process structure.
14405 (thread_db_init): Don't set all_symbols_looked_up here.
14406 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14407
7984d532
PA
144082010-05-03 Pedro Alves <pedro@codesourcery.com>
14409
14410 * linux-low.c (linux_kill, linux_detach): Adjust.
14411 (status_pending_p_callback): Remove redundant statement. Check
14412 for !TARGET_WAITIKIND_IGNORE, instead of
14413 TARGET_WAITKIND_STOPPED.
14414 (handle_tracepoints): Make sure LWP is locked. Adjust.
14415 (linux_wait_for_event_1): Adjust.
14416 (linux_cancel_breakpoints): New.
14417 (unsuspend_one_lwp): New.
14418 (unsuspend_all_lwps): New.
14419 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14420 (send_sigstop_callback): Change return type to int, add new
14421 `except' parameter and handle it.
14422 (suspend_and_send_sigstop_callback): New.
14423 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14424 pass them down. If SUSPEND, also increment the lwp's suspend
14425 count.
14426 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14427 (need_step_over_p): Don't consider suspended LWPs.
14428 (start_step_over): Adjust.
14429 (proceed_one_lwp): Change return type to int, add new `except'
14430 parameter and handle it.
14431 (unsuspend_and_proceed_one_lwp): New.
14432 (proceed_all_lwps): Use find_inferior instead of
14433 for_each_inferior.
14434 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14435 also decrement the suspend count of LWPs. Pass `except' down,
14436 instead of hacking its suspend count.
14437 (linux_pause_all): Add `freeze' parameter. Adjust.
14438 (linux_unpause_all): New.
14439 (linux_target_ops): Install linux_unpause_all.
14440 * server.c (handle_status): Adjust.
14441 * target.h (struct target_ops): New fields `unpause_all' and
14442 `cancel_breakpoints'. Add new parameter to `pause_all'.
14443 (pause_all): Add new `freeze' parameter.
14444 (unpause_all): New.
14445 (cancel_breakpoints): New.
14446 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14447 cancel breakpoints.
14448 (cmd_qtstart): Pause threads.
14449 (stop_tracing): Pause threads, and cancel breakpoints.
14450 * win32-low.c (win32_target_ops): Adjust.
14451
e471f25b
PA
144522010-05-03 Pedro Alves <pedro@codesourcery.com>
14453
14454 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14455 the inferior right away from here...
14456 (linux_wait_1): ... to here, and adjust to check the thread's
14457 last_resume_kind instead of the lwp's step or stop_expected flags.
14458
1915ef4f
PA
144592010-05-02 Pedro Alves <pedro@codesourcery.com>
14460
14461 * README: Use consistent `GDB' and `GDBserver' spellings.
14462
f9e39928
PA
144632010-05-02 Pedro Alves <pedro@codesourcery.com>
14464
14465 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14466 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14467 (linux_detach_one_lwp): Assume the lwp is stopped.
14468 (any_thread_of): Delete.
14469 (linux_detach): Stop all lwps here. Don't blindly delete all
14470 breakpoints.
14471 (delete_lwp_callback): New.
14472 (linux_mourn): Delete all lwps of the process that is gone.
14473 (linux_wait_1): Don't delete the last lwp of the process here.
14474 * mem-break.h (mark_breakpoints_out): Declare.
14475 * mem-break.c (mark_breakpoints_out): New.
14476 (free_all_breakpoints): Use it.
14477 * server.c (handle_target_event): If the process is gone, mark
14478 breakpoints out.
14479 * thread-db.c (struct thread_db) <create_bp>: New field.
14480 (thread_db_enable_reporting): Fix prototype. Store a thread event
14481 breakpoint reference in the thread_db struct.
14482 (thread_db_load_search): Clear the thread_db object.
14483 (try_thread_db_load_1): Ditto.
14484 (switch_to_process): New.
14485 (disable_thread_event_reporting): Use it.
14486 (remove_thread_event_breakpoints): New.
14487 (thread_db_detach, thread_db_mourn): Use it.
14488
1e7fc18c
PA
144892010-05-01 Pedro Alves <pedro@codesourcery.com>
14490
14491 * linux-low.c (linux_enable_event_reporting): New.
14492 (linux_wait_for_event_1, handle_extended_wait): Use it.
14493
02fc4de7
PA
144942010-04-30 Pedro Alves <pedro@codesourcery.com>
14495
14496 * linux-low.c (linux_kill_one_lwp, linux_kill)
14497 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14498 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14499 SIGSTOP even if the LWP is stopped.
14500 (send_sigstop_callback): New.
14501 (stop_all_lwps): Use send_sigstop_callback instead.
14502 (linux_resume_one_thread): Adjust.
14503 (proceed_one_lwp): Still proceed an LWP that the client has
14504 requested to stop, if we haven't reported it as stopped yet. Make
14505 sure that LWPs the client want stopped, have a pending SIGSTOP.
14506
bc3b5632
DE
145072010-04-26 Doug Evans <dje@google.com>
14508
ae1ada35
DE
14509 * server.c (handle_general_set): Make static.
14510
bc3b5632
DE
14511 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14512 Print received char after testing for error/eof instead of before.
14513 (input_interrupt): Tweak comment.
14514
65730243
DE
145152010-04-23 Doug Evans <dje@google.com>
14516
14517 * server.c (start_inferior): Print inferior argv if --debug.
14518
a8ae7dc0
AR
145192010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14520
14521 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14522 * nto-x86-low.c: Include server.h
14523
1c07cc19
PM
145242010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14525
14526 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14527 be consistent with other sources of this directory.
14528 (init_registers_amd64): Correct name of source file of this function
14529 in the comment.
14530
e0a61e09
PM
145312010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14532
14533 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14534 64-bit executables.
14535
54709339
PM
145362010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14537
14538 * win32-i386-low.c: Add 64-bit support.
14539 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14540 (init_registers_amd64): Declare.
14541 (mappings): Add 64-bit version of array.
14542 (init_windows_x86): New function.
14543 (the_low_target): Change init_arch field to init_windows_x86.
14544
e8f0053d
PM
145452010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14546
14547 * win32-low.c: Adapt to support also 64-bit architecture.
14548 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14549 (get_image_name): Use SIZE_T type for local variable `done'.
14550 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14551 (toolhelp_get_dll_name): Idem.
14552 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14553 Use uintptr_t typecast to avoid warning.
14554 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14555 (handle_exception): Use phex_nz to avoid warning.
14556 (win32_wait): Remove unused local variable `process'.
14557
c481e77e
PM
145582010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14559
14560 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14561 `amd64-avx.o'.
14562
12ea4b69
PM
145632010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14564
14565 * configure.ac: Use `ws2_32' library for srv_mingw.
14566 * configure: Regenerate.
14567 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14568 * remote-utils.c: Likewise.
14569
f6d1620c
L
145702010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14571
14572 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14573 if __x86_64__ is defined.
14574
8e642873
PM
145752010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14576
14577 * configure: Regenerate.
14578
711e434b
PM
145792010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14580
14581 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14582 * target.h (target_ops): New get_tib_address field.
14583 * win32-low.h (win32_thread_info): Add thread_local_base field.
14584 * win32-low.c (child_add_thread): Add tlb argument.
14585 Set thread_local_base field to TLB.
14586 (get_child_debug_event): Adapt to child_add_thread change.
14587 (win32_get_tib_address): New function.
14588 (win32_target_ops): Set get_tib_address field to
14589 win32_get_tib_address.
14590 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
14591
505106cd
PA
145922010-04-12 Pedro Alves <pedro@codesourcery.com>
14593
505106cd
PA
14594 * linux-low.c (linux_mourn): Also remove the process.
14595 * server.c (handle_target_event): Don't remove the process here.
14596 * nto-low.c (nto_mourn): New.
14597 (nto_target_ops): Install it.
14598 * spu-low.c (spu_mourn): New.
14599 (spu_target_ops): Install it.
14600 * win32-low.c (win32_mourn): New.
14601 (win32_target_ops): Install it.
14602
e8470a06
PA
146032010-04-12 Pedro Alves <pedro@codesourcery.com>
14604
14605 * server.h (buffer_xml_printf): Remove redundant `;'.
14606
45ba0d02
PA
146072010-04-12 Pedro Alves <pedro@codesourcery.com>
14608
14609 * regcache.c (set_register_cache): Invalidate regcaches before
14610 changing the register cache layout.
14611 (regcache_invalidate_one): Allow a NULL regcache.
14612 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
14613 regcaches before changing the register cache layout or the target
14614 regsets.
14615
59e04013
L
146162010-04-12 H.J. Lu <hongjiu.lu@intel.com>
14617
14618 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
14619 variable warning on Linux/x86-64.
14620
8336d594
PA
146212010-04-11 Pedro Alves <pedro@codesourcery.com>
14622
14623 GDBserver disconnected tracing support.
14624
14625 * linux-low.c (linux_remove_process): Delete.
14626 (add_lwp): Don't set last_resume_kind here.
14627 (linux_kill): Use `mourn'.
14628 (linux_detach): Use `thread_db_detach', and `mourn'.
14629 (linux_mourn): New.
14630 (linux_attach_lwp_1): Adjust comment.
14631 (linux_attach): last_resume_kind moved the thread_info; adjust.
14632 (status_pending_p_callback): Adjust.
14633 (linux_wait_for_event_1): Adjust.
14634 (count_events_callback, select_singlestep_lwp_callback)
14635 (select_event_lwp_callback, cancel_breakpoints_callback)
14636 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14637 (proceed_one_lwp): Adjust.
14638 (linux_async): Add debug output.
14639 (linux_thread_stopped): New.
14640 (linux_pause_all): New.
14641 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14642 linux_pause_all.
14643 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14644 (thread_db_free): Delete declaration.
14645 (thread_db_detach, thread_db_mourn): Declare.
14646 * thread-db.c (thread_db_init): Use thread_db_mourn.
14647 (thread_db_free): Delete, split in two.
14648 (disable_thread_event_reporting): New.
14649 (thread_db_detach): New.
14650 (thread_db_mourn): New.
14651
14652 * server.h (struct thread_info) <last_resume_kind>: New field.
14653 <attached>: Add comment.
14654 <gdb_detached>: New field.
14655 (handler_func): Change return type to int.
14656 (handle_serial_event, handle_target_event): Ditto.
14657 (gdb_connected): Declare.
14658 (tracing): Delete.
14659 (disconnected_tracing): Declare.
14660 (stop_tracing): Declare.
14661
14662 * server.c (handle_query) <qSupported>: Report support for
14663 disconnected tracing.
14664 (queue_stop_reply_callback): Account for running threads.
14665 (gdb_wants_thread_stopped): New.
14666 (gdb_wants_all_threads_stopped): New.
14667 (gdb_reattached_process): New.
14668 (handle_status): Clear the `gdb_detached' flag of all processes.
14669 In all-stop, stop all threads.
14670 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14671 (process_serial_event): If the remote connection breaks, or if an
14672 exit was forced with "monitor exit", force an event loop exit.
14673 Handle disconnected tracing on detach.
14674 (handle_serial_event): Adjust.
14675 (handle_target_event): If GDB isn't connected, forward events back
14676 to the inferior, unless the last process exited, in which case,
14677 exit gdbserver. Adjust interface.
14678
14679 * remote-utils.c (remote_open): Don't block in accept. Instead
14680 register an event loop source on the listen socket file
14681 descriptor. Refactor bits into ...
14682 (listen_desc): ... this new global.
14683 (gdb_connected): ... this new function.
14684 (enable_async_notification): ... this new function.
14685 (handle_accept_event): ... this new function.
14686 (remote_close): Clear remote_desc.
14687
14688 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14689
14690 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14691 New fields.
14692 (mourn_inferior): Define.
14693 (target_process_qsupported): Avoid the dangling else problem.
14694 (thread_stopped): Define.
14695 (pause_all): Define.
14696 (target_waitstatus_to_string): Declare.
14697 * target.c (target_waitstatus_to_string): New.
14698
14699 * tracepoint.c (tracing): Make extern.
14700 (disconnected_tracing): New.
14701 (stop_tracing): Make extern. Handle tracing stops due to GDB
14702 disconnecting.
14703 (cmd_qtdisconnected): New.
14704 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14705 (handle_tracepoint_general_set): Handle QTDisconnected.
14706
14707 * event-loop.c (event_handler_func): Change return type to int.
14708 (process_event): Bail out if the event handler wants the event
14709 loop to stop.
14710 (handle_file_event): Ditto.
14711 (start_event_loop): Bail out if the event handler wants the event
14712 loop to stop.
14713
14714 * nto-low.c (nto_target_ops): Adjust.
14715 * spu-low.c (spu_wait): Don't remove the process here.
14716 (spu_target_ops): Adjust.
14717 * win32-low.c (win32_wait): Don't remove the process here.
14718 (win32_target_ops): Adjust.
14719
5d267c4c
PA
147202010-04-11 Pedro Alves <pedro@codesourcery.com>
14721
14722 * regcache.c (realloc_register_cache): Invalidate inferior's
14723 regcache before recreating it.
14724
623ccd72
PA
147252010-04-09 Pedro Alves <pedro@codesourcery.com>
14726
14727 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14728
219f2f23
PA
147292010-04-09 Stan Shebs <stan@codesourcery.com>
14730 Pedro Alves <pedro@codesourcery.com>
14731
14732 * server.h (LONGEST): New.
14733 (struct thread_info) <while_stepping>: New field.
14734 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14735 Declare.
14736 (initialize_tracepoint, handle_tracepoint_general_set)
14737 (handle_tracepoint_query, tracepoint_finished_step)
14738 (tracepoint_was_hit, release_while_stepping_state_list):
14739 (current_traceframe): Declare.
14740 * server.c (handle_general_set): Handle tracepoint packets.
14741 (read_memory): New.
14742 (write_memory): New.
14743 (handle_search_memory_1): Use read_memory.
14744 (handle_query): Report support for conditional tracepoints, trace
14745 state variables, and tracepoint sources. Handle tracepoint
14746 queries.
14747 (main): Initialize the tracepoints module.
14748 (process_serial_event): Handle traceframe reads/writes.
14749
14750 * linux-low.c (handle_tracepoints): New.
14751 (linux_wait_1): Call it.
14752 (linux_resume_one_lwp): Handle while-stepping.
14753 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14754 (linux_target_ops): Install them.
14755 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14756 New field.
14757 * linux-x86-low.c (x86_supports_tracepoints): New.
14758 (the_low_target). Install it.
14759
14760 * mem-break.h (delete_breakpoint): Declare.
14761 * mem-break.c (delete_breakpoint): Make external.
14762
14763 * target.h (struct target_ops): Add `supports_tracepoints',
14764 `read_pc', and `write_pc' fields.
14765 (target_supports_tracepoints): Define.
14766 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14767 (phex_nz): New.
14768
14769 * regcache.h (struct regcache) <registers_owned>: New field.
14770 (init_register_cache, regcache_cpy): Declare.
14771 (regcache_read_pc, regcache_write_pc): Declare.
14772 (register_cache_size): Declare.
14773 (supply_regblock): Declare.
14774 * regcache.c (init_register_cache): New.
14775 (new_register_cache): Use it.
14776 (regcache_cpy): New.
14777 (register_cache_size): New.
14778 (supply_regblock): New.
14779 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 14780
219f2f23
PA
14781 * tracepoint.c: New.
14782
14783 * Makefile.in (OBS): Add tracepoint.o.
14784 (tracepoint.o): New rule.
14785
3a13a53b
L
147862010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14787
14788 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14789 (i386-mmx.o): New.
14790 (i386-mmx.c): Likewise.
14791 (i386-mmx-linux.o): Likewise.
14792 (i386-mmx-linux.c): Likewise.
14793
14794 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14795 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14796 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14797 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14798
14799 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14800 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14801 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14802
1570b33e
L
148032010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14804
14805 * Makefile.in (clean): Updated.
14806 (i386-avx.o): New.
14807 (i386-avx.c): Likewise.
14808 (i386-avx-linux.o): Likewise.
14809 (i386-avx-linux.c): Likewise.
14810 (amd64-avx.o): Likewise.
14811 (amd64-avx.c): Likewise.
14812 (amd64-avx-linux.o): Likewise.
14813 (amd64-avx-linux.c): Likewise.
14814
14815 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14816 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14817 (srv_amd64_regobj): Add amd64-avx.o.
14818 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14819 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14820 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14821 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14822 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14823 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14824 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14825
14826 * i387-fp.c: Include "i386-xstate.h".
14827 (i387_xsave): New.
14828 (i387_cache_to_xsave): Likewise.
14829 (i387_xsave_to_cache): Likewise.
14830 (x86_xcr0): Likewise.
14831
14832 * i387-fp.h (i387_cache_to_xsave): Likewise.
14833 (i387_xsave_to_cache): Likewise.
14834 (x86_xcr0): Likewise.
14835
14836 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14837 * linux-crisv32-low.c (target_regsets): Likewise.
14838 * linux-m68k-low.c (target_regsets): Likewise.
14839 * linux-mips-low.c (target_regsets): Likewise.
14840 * linux-ppc-low.c (target_regsets): Likewise.
14841 * linux-s390-low.c (target_regsets): Likewise.
14842 * linux-sh-low.c (target_regsets): Likewise.
14843 * linux-sparc-low.c (target_regsets): Likewise.
14844 * linux-xtensa-low.c (target_regsets): Likewise.
14845
14846 * linux-low.c: Include <sys/uio.h>.
14847 (regsets_fetch_inferior_registers): Support nt_type.
14848 (regsets_store_inferior_registers): Likewise.
14849 (linux_process_qsupported): New.
14850 (linux_target_ops): Add linux_process_qsupported.
14851
14852 * linux-low.h (regset_info): Add nt_type.
14853 (linux_target_ops): Add process_qsupported.
14854
14855 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14856 and <sys/uio.h>.
14857 (init_registers_i386_avx_linux): New.
14858 (init_registers_amd64_avx_linux): Likewise.
14859 (xmltarget_i386_linux_no_xml): Likewise.
14860 (xmltarget_amd64_linux_no_xml): Likewise.
14861 (PTRACE_GETREGSET): Likewise.
14862 (PTRACE_SETREGSET): Likewise.
14863 (x86_fill_xstateregset): Likewise.
14864 (x86_store_xstateregset): Likewise.
14865 (use_xml): Likewise.
14866 (x86_linux_update_xmltarget): Likewise.
14867 (x86_linux_process_qsupported): Likewise.
14868 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14869 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14870 init_registers_i386_linux here. Call
14871 x86_linux_update_xmltarget.
14872 (the_low_target): Add x86_linux_process_qsupported.
14873
14874 * server.c (handle_query): Call target_process_qsupported.
14875
14876 * target.h (target_ops): Add process_qsupported.
14877 (target_process_qsupported): New.
14878
fc7238bb
PA
148792010-04-03 Pedro Alves <pedro@codesourcery.com>
14880
14881 * inferiors.c (add_thread): Set last_status kind to
14882 TARGET_WAITKIND_IGNORE.
14883 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14884 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14885 (linux_wait_1): Move `thread' local definition to block that uses
14886 it. Don't NULL initialize `event_child'.
14887 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14888 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14889 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14890
bdabb078
PA
148912010-04-01 Pedro Alves <pedro@codesourcery.com>
14892
14893 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14894 an extended waitstatus, or by a watchpoint.
14895 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14896 thread was stepping or has been stopped by a watchpoint.
14897
d3bbe7a0
PA
148982010-04-01 Pedro Alves <pedro@codesourcery.com>
14899
14900 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14901 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14902 of another, then delete the previous, and validate all
14903 breakpoints.
14904 (validate_inserted_breakpoint): New.
14905 (delete_disabled_breakpoints): New.
14906 (validate_breakpoints): New.
14907 (check_mem_read): Validate breakpoints before trusting their
14908 shadow. Delete disabled breakpoints.
14909 (check_mem_write): Validate breakpoints before trusting they
14910 should be inserted. Delete disabled breakpoints.
14911 * mem-break.h (validate_breakpoints):
14912 * server.c (handle_query): Validate breakpoints when we see a
14913 qSymbol query.
14914
8b07ae33
PA
149152010-04-01 Pedro Alves <pedro@codesourcery.com>
14916
14917 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14918 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14919 if we could tell there's a GDB breakpoint at stop_pc.
14920 (need_step_over_p): Don't do a step over if we find a GDB
14921 breakpoint at the resume PC.
14922
14923 * mem-break.c (struct raw_breakpoint): New.
14924 (enum bkpt_type): New type `gdb_breakpoint'.
14925 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14926 fields. New field `raw'.
14927 (find_raw_breakpoint_at): New.
14928 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14929 breakpoint instead.
14930 (set_breakpoint_at): Adjust.
14931 (delete_raw_breakpoint): New.
14932 (release_breakpoint): New.
14933 (delete_breakpoint): Rename to...
14934 (delete_breakpoint_1): ... this. Add proc parameter. Use
14935 release_breakpoint. Return ENOENT.
14936 (delete_breakpoint): Reimplement.
14937 (find_breakpoint_at): Delete.
14938 (find_gdb_breakpoint_at): New.
14939 (delete_breakpoint_at): Delete.
14940 (set_gdb_breakpoint_at): New.
14941 (delete_gdb_breakpoint_at): New.
14942 (gdb_breakpoint_here): New.
14943 (set_reinsert_breakpoint): Use release_breakpoint.
14944 (uninsert_breakpoint): Rename to ...
14945 (uninsert_raw_breakpoint): ... this.
14946 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14947 (reinsert_raw_breakpoint): Change parameter type to
14948 raw_breakpoint.
14949 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14950 instead.
14951 (check_breakpoints): Adjust. Use release_breakpoint.
14952 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14953 (breakpoint_inserted_here): Ditto.
14954 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14955 Don't trust the breakpoint's shadow if it is not inserted.
14956 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14957 (delete_all_breakpoints): Adjust.
14958 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14959 use delete_breakpoint_1.
14960
14961 * mem-break.h (breakpoints_supported): Delete declaration.
14962 (set_gdb_breakpoint_at): Declare.
14963 (gdb_breakpoint_here): Declare.
14964 (delete_breakpoint_at): Delete.
14965 (delete_gdb_breakpoint_at): Declare.
14966
14967 * server.h (struct raw_breakpoint): Forward declare.
14968 (struct process_info): New field `raw_breakpoints'.
14969
14970 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14971 breakpoints.
14972
6bf5e0ba
PA
149732010-03-24 Pedro Alves <pedro@codesourcery.com>
14974
14975 * linux-low.c (status_pending_p_callback): Fix comment.
14976 (linux_wait_for_event_1): Move most of the internal breakpoint
14977 handling from here...
14978 (linux_wait_1): ... to here.
14979 (count_events_callback): New.
14980 (select_singlestep_lwp_callback): New.
14981 (select_event_lwp_callback): New.
14982 (cancel_breakpoints_callback): New.
14983 (select_event_lwp): New.
14984 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14985 priority to all LWPs that have had events that should be reported
14986 to the client. Cancel breakpoints when about to reporting the
14987 event to the client, not while stopping lwps. No longer cancel
14988 finished single-steps here.
14989 (cancel_finished_single_step): Delete.
14990 (cancel_finished_single_steps): Delete.
14991
414a389f
PA
149922010-03-24 Pedro Alves <pedro@codesourcery.com>
14993
14994 * mem-break.c (enum bkpt_type): New.
14995 (struct breakpoint): New field `type'.
14996 (set_breakpoint_at): Change return type to struct breakpoint
14997 pointer. Set type to `other_breakpoint' by default.
14998 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14999 in the breakpoint list.
15000 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15001 (reinsert_breakpoint): Rename to ...
15002 (reinsert_raw_breakpoint): ... this.
15003 (reinsert_breakpoints_at): Adjust.
15004 * mem-break.h (struct breakpoint): Declare.
15005 (set_breakpoint_at): Change return type to struct breakpoint
15006 pointer.
15007
2280c721
PA
150082010-03-24 Pedro Alves <pedro@codesourcery.com>
15009
15010 * server.c (handle_query): Assign, not compare.
15011
d50171e4
PA
150122010-03-24 Pedro Alves <pedro@codesourcery.com>
15013
15014 Teach linux gdbserver to step-over-breakpoints.
15015
15016 * linux-low.c (can_hardware_single_step): New.
15017 (supports_breakpoints): New.
15018 (handle_extended_wait): If stopping threads, read the stop pc of
15019 the new cloned LWP.
15020 (get_pc): New.
15021 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15022 low target doesn't support retrieving the PC.
15023 (add_lwp): Set last_resume_kind to resume_continue.
15024 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15025 (linux_attach): Don't clear stop_expected. Set the lwp's
15026 last_resume_kind to resume_stop.
15027 (linux_detach_one_lwp): Don't check for removed breakpoints.
15028 (check_removed_breakpoint): Delete.
15029 (status_pending_p): Rename to ...
15030 (status_pending_p_callback): ... this. Don't check for removed
15031 breakpoints. Don't consider threads that are stopped from GDB's
15032 perspective.
15033 (linux_wait_for_lwp): Always read the stop_pc here.
15034 (cancel_breakpoint): New.
15035 (step_over_bkpt): New global.
15036 (linux_wait_for_event_1): Implement stepping over breakpoints.
15037 (gdb_wants_lwp_stopped): New.
15038 (gdb_wants_all_stopped): New.
15039 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15040 single-step traps here. Store the thread's last reported target
15041 wait status.
15042 (send_sigstop): Don't clear stop_expected. Always set it,
15043 instead.
15044 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15045 (cancel_finished_single_step): New.
15046 (cancel_finished_single_steps): New.
15047 (wait_for_sigstop): Don't cancel finished single-step traps here.
15048 (linux_resume_one_lwp): Don't check for removed breakpoints.
15049 Don't set `step' on non-hardware step archs.
15050 (linux_set_resume_request): Ignore resume_stop requests if already
15051 stopping or stopped. Set the lwp's last_resume_kind.
15052 (resume_status_pending_p): Don't check for removed breakpoints.
15053 (need_step_over_p): New.
15054 (start_step_over): New.
15055 (finish_step_over): New.
15056 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15057 requests. Clear the thread's last reported target waitstatus.
15058 Don't use the `suspended' flag. Don't consider pending breakpoints.
15059 (linux_resume): Start a step-over if necessary.
15060 (proceed_one_lwp): New.
15061 (proceed_all_lwps): New.
15062 (unstop_all_lwps): New.
15063 * linux-low.h (struct lwp_info): Rewrite comment for the
15064 `suspended' flag. Add the `stop_pc' field. Delete the
15065 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15066 Add `'last_resume_kind' and `need_step_over' fields.
15067 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15068 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15069 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15070 (set_raw_breakpoint_at): New.
15071 (set_breakpoint_at): Rewrite to use it.
15072 (reinsert_breakpoint_handler): Delete.
15073 (set_reinsert_breakpoint): New.
15074 (reinsert_breakpoint_by_bp): Delete.
15075 (delete_reinsert_breakpoints): New.
15076 (uninsert_breakpoint): Rewrite.
15077 (uninsert_breakpoints_at): New.
15078 (reinsert_breakpoint): Rewrite.
15079 (reinsert_breakpoints_at): New.
15080 (check_breakpoints): Rewrite.
15081 (breakpoint_here): New.
15082 (breakpoint_inserted_here): New.
15083 (check_mem_read): Adjust.
15084 * mem-break.h (breakpoints_supported, breakpoint_here)
15085 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15086 (reinsert_breakpoint_by_bp): Delete declaration.
15087 (delete_reinsert_breakpoints): Declare.
15088 (reinsert_breakpoint): Delete declaration.
15089 (reinsert_breakpoints_at): Declare.
15090 (uninsert_breakpoint): Delete declaration.
15091 (uninsert_breakpoints_at): Declare.
15092 (check_breakpoints): Adjust prototype.
15093 * server.h: Adjust include order.
15094 (struct thread_info): Declare here. Add a `last_status' field.
15095
30ba68cb
MS
150962010-03-23 Michael Snyder <msnyder@vmware.com>
15097
15098 * server.c (crc32): New function.
15099 (handle_query): Add handling for 'qCRC:' request.
15100
b9a881c2
PA
151012010-03-23 Pedro Alves <pedro@codesourcery.com>
15102
15103 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15104 lwp had been stopped by a watchpoint.
15105
e92d13d5
PA
151062010-03-16 Pedro Alves <pedro@codesourcery.com>
15107
15108 * server.h (internal_error): Declare.
15109 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15110 * utils.c (internal_error): New function.
15111
64daa791
AS
151122010-03-15 Andreas Schwab <schwab@redhat.com>
15113
15114 * configure.srv: Fix typo setting srv_regobj.
15115
f52cd8cd
PA
151162010-03-15 Pedro Alves <pedro@codesourcery.com>
15117
15118 * linux-low.c (fetch_register): Avoid passing a non string literal
15119 format to `error'.
15120 (usr_store_inferior_registers): Ditto.
15121
93ae6fdc
PA
151222010-03-14 Pedro Alves <pedro@codesourcery.com>
15123
15124 * linux-low.c (linux_write_memory): Bail out early if peeking
15125 memory failed.
15126
c3adc08c
PA
151272010-03-14 Pedro Alves <pedro@codesourcery.com>
15128
15129 * linux-low.h (struct lwp_info): New fields
15130 `stopped_by_watchpoint' and `stopped_data_address'.
15131 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15132 here, and cache them in the lwp object.
15133 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15134 directly.
15135 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15136 field.
15137 (linux_stopped_by_watchpoint): Rewrite.
15138 (linux_stopped_data_address): Rewrite.
15139
bce522a2
PA
151402010-03-06 Simo Melenius <simo.melenius@iki.fi>
15141
15142 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15143 switching the current inferior, not before.
15144
90884b2b
L
151452010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15146
15147 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15148 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15149 i386-linux.c and amd64-linux.c.
15150 (reg-i386.o): Removed.
15151 (reg-i386.c): Likewise.
15152 (reg-i386-linux.o): Likewise.
15153 (reg-i386-linux.c): Likewise.
15154 (reg-x86-64.o): Likewise.
15155 (reg-x86-64.c): Likewise.
15156 (reg-x86-64-linux.o): Likewise.
15157 (reg-x86-64-linux.c): Likewise.
15158 (i386.o): New.
15159 (i386.c): Likewise.
15160 (i386-linux.o): Likewise.
15161 (i386-linux.c): Likewise.
15162 (amd64.o): Likewise.
15163 (amd64.c): Likewise.
15164 (amd64-linux.o): Likewise.
15165 (amd64-linux.c): Likewise.
15166
15167 * configure.srv (srv_i386_regobj): New.
15168 (srv_i386_linux_regobj): Likewise.
15169 (srv_amd64_regobj): Likewise.
15170 (srv_amd64_linux_regobj): Likewise.
15171 (srv_i386_32bit_xmlfiles): Likewise.
15172 (srv_i386_64bit_xmlfiles): Likewise.
15173 (srv_i386_xmlfiles): Likewise.
15174 (srv_amd64_xmlfiles): Likewise.
15175 (srv_i386_linux_xmlfiles): Likewise.
15176 (srv_amd64_linux_xmlfiles): Likewise.
15177 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15178 srv_xmlfiles to $srv_i386_xmlfiles.
15179 (i[34567]86-*-mingw32ce*): Likewise.
15180 (i[34567]86-*-mingw*): Likewise.
15181 (i[34567]86-*-nto*): Likewise.
15182 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15183 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15184 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15185 (x86_64-*-linux*): Likewise.
15186
15187 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15188 (init_registers_amd64_linux): New.
15189 (x86_arch_setup): Replace init_registers_x86_64_linux with
15190 init_registers_amd64_linux.
15191
193f13e6
MK
151922010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15193
15194 * configure.ac: Check for libdl. If it is not available link against
15195 static libthread_db.
15196 * configure: Regenerate.
15197
85d721b8
PA
151982010-02-22 Pedro Alves <pedro@codesourcery.com>
15199
15200 PR9605
15201
15202 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15203 handing a read watchpoint.
15204 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15205
6076632b
DE
152062010-02-12 Doug Evans <dje@google.com>
15207
15208 * linux-low.c (linux_supports_tracefork_flag): Document.
15209 (linux_look_up_symbols): Add comment.
15210
3327ccf7
L
152112010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15212
15213 * regcache.c (supply_register): Clear regcache if buf is NULL.
15214
0718675c 152152010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 15216 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
15217
15218 * inferiors.c (find_inferior): Add function documentation.
15219 (unloaded_dll): Handle the case where the unloaded dll has not
15220 been previously registered in the dll list.
15221
177321bd
DJ
152222010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15223
15224 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15225 (thumb2_breakpoint): New.
15226 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15227
2b009048
DJ
152282010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15229
15230 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15231 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15232 breakpoints.
15233
3be029c7
PA
152342010-01-21 Pedro Alves <pedro@codesourcery.com>
15235
15236 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15237
18f5de3b
JK
152382010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15239
15240 * linux-s390-low.c (s390_collect_ptrace_register)
15241 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15242
3743bb4f
DE
152432010-01-21 Doug Evans <dje@google.com>
15244
14ce3065
DE
15245 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15246 (PTRACE_ARG4_TYPE): New macro.
15247 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15248 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15249 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15250 (usr_store_inferior_registers): Ditto.
15251 (linux_read_memory, linux_write_memory): Ditto.
15252 (linux_test_for_tracefork): Ditto.
15253
3743bb4f
DE
15254 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15255 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15256
8b315be5
PA
152572010-01-21 Pedro Alves <pedro@codesourcery.com>
15258
15259 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15260 target.
15261
85492558
PA
152622010-01-21 Pedro Alves <pedro@codesourcery.com>
15263
15264 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15265 prototype to take a regcache. Adjust.
15266
442ea881
PA
152672010-01-20 Pedro Alves <pedro@codesourcery.com>
15268
15269 * regcache.h (struct thread_info): Forward declare.
15270 (struct regcache): New.
15271 (new_register_cache): Adjust prototype.
15272 (get_thread_regcache): Declare.
15273 (free_register_cache): Adjust prototype.
15274 (registers_to_string, registers_from_string): Ditto.
15275 (supply_register, supply_register_by_name, collect_register)
15276 (collect_register_as_string, collect_register_by_name): Ditto.
15277 * regcache.c (struct inferior_regcache_data): Delete.
15278 (get_regcache): Rename to ...
15279 (get_thread_regcache): ... this. Adjust. Switch inferior before
15280 fetching registers.
15281 (regcache_invalidate_one): Adjust.
15282 (regcache_invalidate): Fix prototype.
15283 (new_register_cache): Return the new register cache.
15284 (free_register_cache): Change prototype.
15285 (realloc_register_cache): Adjust.
15286 (registers_to_string): Change prototype to take a regcache. Adjust.
15287 (registers_from_string): Ditto.
15288 (register_data): Ditto.
15289 (supply_register): Ditto.
15290 (supply_register_by_name): Ditto.
15291 (collect_register): Ditto.
15292 (collect_register_as_string): Ditto.
15293 (collect_register_by_name): Ditto.
15294 * server.c (process_serial_event): Adjust.
15295 * linux-low.h (regset_fill_func, regset_store_func): Change
15296 prototype.
15297 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15298 Change prototype.
15299 * linux-low.c (get_stop_pc): Adjust.
15300 (check_removed_breakpoint): Adjust.
15301 (linux_wait_for_event): Adjust.
15302 (linux_resume_one_lwp): Adjust.
15303 (fetch_register): Add regcache parameter. Adjust.
15304 (usr_store_inferior_registers): Ditto.
15305 (regsets_fetch_inferior_registers): Ditto.
15306 (regsets_store_inferior_registers): Ditto.
15307 (linux_fetch_registers, linux_store_registers): Ditto.
15308 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15309 regcache. Adjust.
43aaf8b6
PA
15310 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15311 Ditto.
442ea881
PA
15312 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15313 prototype to take a regcache.
15314 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15315 * remote-utils.c (convert_ascii_to_int, outreg)
15316 (prepare_resume_reply): Change prototype to take a regcache.
15317 Adjust.
15318 * target.h (struct target_ops) <fetch_registers, store_registers>:
15319 Change prototype to take a regcache.
15320 (fetch_inferior_registers, store_inferior_registers): Change
15321 prototype to take a regcache. Adjust.
15322 * proc-service.c (ps_lgetregs): Adjust.
15323 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15324 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15325 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15326 take a regcache. Adjust.
15327 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15328 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15329 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15330 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15331 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15332 (cris_cannot_fetch_register):
15333 (cris_breakpoint_at): Change prototype to take a regcache.
15334 Adjust.
15335 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15336 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15337 to take a regcache. Adjust.
15338 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15339 Adjust.
15340 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15341 take a regcache. Adjust.
15342 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15343 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15344 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15345 * linux-mips-low.c (mips_get_pc):
15346 (mips_set_pc): Change prototype to take a regcache. Adjust.
15347 (mips_reinsert_addr): Adjust.
15348 (mips_collect_register): Change prototype to take a regcache.
15349 Adjust.
15350 (mips_supply_register):
15351 (mips_collect_register_32bit, mips_supply_register_32bit)
15352 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15353 (mips_store_fpregset): Ditto.
43aaf8b6
PA
15354 * linux-ppc-low.c (ppc_supply_ptrace_register)
15355 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
15356 (parse_spufs_run): Adjust.
15357 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15358 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15359 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15360 take a regcache. Adjust.
15361 * linux-s390-low.c (s390_collect_ptrace_register)
15362 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15363 (s390_set_pc): Change prototype to take a regcache. Adjust.
15364 (s390_arch_setup): Adjust.
15365 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15366 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15367 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15368 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15369 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15370 regcache. Adjust.
15371 (sparc_breakpoint_at): Adjust.
15372 * linux-xtensa-low.c (xtensa_fill_gregset):
15373 (xtensa_store_gregset):
15374 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15375 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15376 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15377 prototype to take a regcache. Adjust.
15378 * win32-arm-low.c (arm_fetch_inferior_register)
15379 (arm_store_inferior_register): Change prototype to take a
15380 regcache. Adjust.
15381 * win32-i386-low.c (i386_fetch_inferior_register)
15382 (i386_store_inferior_register): Change prototype to take a
15383 regcache. Adjust.
15384 * win32-low.c (child_fetch_inferior_registers)
15385 (child_store_inferior_registers): Change prototype to take a
15386 regcache. Adjust.
15387 (win32_wait): Adjust.
15388 (win32_fetch_inferior_registers): Change prototype to take a
15389 regcache. Adjust.
15390 (win32_store_inferior_registers): Adjust.
15391 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15392 store_inferior_register>: Change prototype to take a regcache.
15393
60c3d7b0
DE
153942010-01-20 Doug Evans <dje@google.com>
15395
15396 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15397 #ifdef.
15398 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 15399 (W_STOPCODE): Provide definition if missing.
60c3d7b0 15400
dc146f7c
VP
154012010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15402
15403 * linux-low.c (linux_core_of_thread): New.
15404 (compare_ints, show_process, list_threads): New.
15405 (linux_qxfer_osdata): Report threads and cores.
15406 (linux_target_op): Register linux_core_of_thread.
15407 * remote-utils.c (prepare_resume_reply): Report the core.
15408 (buffer_xml_printf): Support %d specifier.
15409 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15410 New.
15411 (handle_query): Handle qXfer:threads. Announce availability
15412 thereof.
15413 * target.h (struct target_ops): New field core_of_thread.
15414
7803799a
UW
154152010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15416
15417 * Makefile.in (clean): Remove new generated files.
15418 (reg-s390.o, reg-s390.c): Remove rules.
15419 (reg-s390x.o, reg-s390x.c): Likewise.
15420 (s390-linux32.o, s390-linux32.c): Add rules.
15421 (s390-linux64.o, s390-linux64.c): Likewise.
15422 (s390x-linux64.o, s390x-linux64.c): Likewise.
15423 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15424 * linux-s390-low.c: Include <elf.h>.
15425 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15426 (init_registers_s390): Remove prototype.
15427 (init_registers_s390x): Likewise.
15428 (init_registers_s390_linux32): Add prototype.
15429 (init_registers_s390_linux64): Likewise.
15430 (init_registers_s390x_linux64): Likewise.
15431 (s390_num_regs_3264): New define.
15432 (s390_regmap_3264): New global variable.
15433 (s390_cannot_fetch_register): Remove obsolete check.
15434 (s390_cannot_store_register): Likewise.
15435 (s390_collect_ptrace_register): Handle upper/lower register halves.
15436 (s390_supply_ptrace_register): Likewise.
15437 (s390_fill_gregset): Update to register number changes.
15438 (s390_get_hwcap): New routine.
15439 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15440 Install appropriate regmap and register set.
15441
6e7ffa39
JB
154422010-01-01 Joel Brobecker <brobecker@adacore.com>
15443
15444 * server.c (gdbserver_version): Update copyright year to 2010.
15445 * gdbreplay.c (gdbreplay_version): Likewise.
15446
957f3f49
DE
154472009-12-28 Doug Evans <dje@google.com>
15448
15449 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15450 elf/external.h. Include <elf.h> instead but only if necessary.
15451
ca5c370d
PA
154522009-12-28 Pedro Alves <pedro@codesourcery.com>
15453
15454 * linux-low.c (linux_remove_process): Remove `detaching'
15455 parameter. Don't release/detach from thread_db here.
15456 (linux_kill): Release/detach from thread_db here, ...
15457 (linux_detach): ... and here, before actually detaching.
15458 (linux_wait_1): ... and here, when a process exits.
15459 * thread-db.c (any_thread_of): New.
15460 (thread_db_free): Switch the current inferior to a thread of the
15461 passed in process.
15462
4ee62156
DE
154632009-12-21 Doug Evans <dje@google.com>
15464
d90e6a88
DE
15465 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15466
c5f62d5f
DE
15467 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15468 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15469 warning ifndef __NR_tkill. Move setting of errno there too.
15470 Delete unnecessary resetting of errno after syscall.
15471 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15472
10e86dd7
DE
15473 * configure.ac: Check for dladdr.
15474 * config.in: Regenerate.
15475 * configure: Regenerate.
15476 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15477 (try_thread_db_load): Update.
15478
4ee62156
DE
15479 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15480
00f515da
DE
154812009-12-18 Doug Evans <dje@google.com>
15482
e9464885
DE
15483 * event-loop.c: Include unistd.h if it exists.
15484
07d4f67e
DE
15485 * linux-low.c (my_waitpid): Move definition away from being in
15486 between linux_tracefork_child/linux_test_for_tracefork.
15487
00f515da
DE
15488 * gdb_proc_service.h (psaddr_t): Fix type.
15489 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15490 signature to match glibc.
15491
1de1badb
DE
154922009-12-16 Doug Evans <dje@google.com>
15493
15494 * linux-low.c (linux_read_memory): Fix argument to read.
15495
aeeb81d1
PA
154962009-11-26 Pedro Alves <pedro@codesourcery.com>
15497
15498 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15499 events, don't leave current_inferior pointing at null.
15500
10357975
PA
155012009-11-26 Pedro Alves <pedro@codesourcery.com>
15502
15503 * win32-low.c (LOG): Delete.
15504 (OUTMSG): Output to stderr.
15505 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15506 on compile time LOG macro.
15507 (win32_wait): Fix debug output.
15508
cf6e3471
PA
155092009-11-26 Pedro Alves <pedro@codesourcery.com>
15510
15511 * win32-low.c (win32_add_one_solib): If the dll name is
15512 "ntdll.dll", prepend the system directory to the dll path.
15513
0c85e18e
MK
155142009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15515
15516 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15517
9ac544ce 155182009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 15519 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
15520
15521 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15522 * configure.ac: Check for __mcoldfire__ and set
15523 gdb_cv_m68k_is_coldfire.
15524 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15525 reg-cf.o and reg-m68k.o.
15526 * configure: Regenerated.
15527
fd7dd3e6
PA
155282009-11-16 Pedro Alves <pedro@codesourcery.com>
15529
15530 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15531 Pass it to thread_db_free.
15532 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15533 proper `detaching' argument to linux_remove_process.
15534 * linux-low.h (thread_db_free): Add `detaching' parameter.
15535 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15536 to thread_db_free.
15537 (thread_db_free): Add `detaching' parameter. Only
15538 call td_ta_clear_event if detaching from process.
15539
75aa492e
MK
155402009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15541
15542 * thread-db.c (thread_db_free): Fix typo.
15543
21e1bee4
PP
155442009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15545
15546 PR gdb/10838
15547 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15548
8838b45e
NS
155492009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15550
15551 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15552 with an i686 compiler.
15553 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15554 needed.
15555 * configure: Rebuilt.
15556
8a35fb51
SL
155572009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15558
15559 PR gdb/10783
15560
15561 * server.c (handle_search_memory_1): Correct read_addr initialization
15562 in loop for searching subsequent chunks.
15563
96f15937
PP
155642009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15565
15566 * configure.ac: New --with-libthread-db option.
15567 * thread-db.c: Allow direct dependence on libthread_db.
15568 (thread_db_free): Adjust.
15569 * config.in: Regenerate.
15570 * configure: Likewise.
889bf7c5 15571
5f7d1694
PP
155722009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15573
15574 PR gdb/10757
15575 * thread-db.c (attach_thread): New function.
15576 (maybe_attach_thread): Return success/failure.
15577 (find_new_threads_callback): Adjust.
889bf7c5
PA
15578 (thread_db_find_new_threads): Loop until no new threads.
15579
88e3b899
PA
155802009-10-13 Pedro Alves <pedro@codesourcery.com>
15581
15582 * proc-service.c (ps_lgetregs): Formatting.
15583
cdbfd419
PP
155842009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
15585
15586 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
15587 * configure.ac: Adjust.
15588 * linux-low.h (struct process_info_private): Move members to struct
15589 thread_db.
15590 (thread_db_free, thread_db_handle_monitor_command): New prototype.
15591 * linux-low.c (linux_remove_process): Adjust.
15592 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
15593 * server.c (handle_query): Move code ...
15594 (handle_monitor_command): ... here. New function.
15595 * target.h (struct target_ops): New member.
15596 * thread-db.c (struct thread_db): New.
15597 (libthread_db_search_path): New variable.
15598 (thread_db_create_event, thread_db_enable_reporting)
15599 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
15600 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
15601 (try_thread_db_load_1, dladdr_to_soname): New functions.
15602 (try_thread_db_load, thread_db_load_search): New functions.
15603 (thread_db_init): Search for libthread_db.
15604 (thread_db_free): New function.
15605 (thread_db_handle_monitor_command): Likewise.
15606 * config.in: Regenerate.
15607 * configure: Regenerate.
889bf7c5 15608
4168d2d6
UW
156092009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
15610
15611 * spu-low.c (spu_kill): Wait for inferior to terminate.
15612 Call clear_inferiors.
15613 (spu_detach): Call clear_inferiors.
15614
81ecdfbb
RW
156152009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15616
15617 * aclocal.m4: Regenerate.
15618 * config.in: Likewise.
15619 * configure: Likewise.
15620
0b9ff2c0
UW
156212009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15622
15623 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
15624 (parse_spufs_run): New function.
15625 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
15626 (ppc_breakpoint_at): Handle SPU breakpoints.
15627
efcbbd14
UW
156282009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15629
15630 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15631 (SPUFS_MAGIC): Define.
15632 (spu_enumerate_spu_ids): New function.
15633 (linux_qxfer_spu): New function.
15634 (linux_target_ops): Install linux_qxfer_spu.
15635
f4d9bade
UW
156362009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15637
15638 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15639 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15640 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15641 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15642 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15643 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15644 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15645 (init_registers_powerpc_cell32l): Add prototype.
15646 (init_registers_powerpc_cell64l): Likewise.
15647 (ppc_arch_setup): Detect Cell/B.E. architecture.
15648
96e946ca
RW
156492009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15650
15651 * Makefile.in (datarootdir): New variable.
15652
58d6951d
DJ
156532009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15654
15655 * linux-low.c (linux_write_memory): Update debugging output.
15656 * Makefile.in (clean): Add new descriptions.
15657 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15658 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15659 * configure.srv: Add new files for arm*-*-linux*.
15660 * linux-arm-low.c: Add new declarations.
15661 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15662 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15663 (HWCAP_VFPv3D16): New.
15664 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15665 instead of __IWMMXT__.
15666 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15667 (arm_arch_setup): New.
15668 (target_regsets): Remove #ifdef. Add VFP regset.
15669 (the_low_target): Use arm_arch_setup.
15670
12b42a12
DJ
156712009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15672
15673 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15674 the main thread again.
15675
ac8c974e
AR
156762009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15677
15678 Adding Neutrino gdbserver.
15679 * configure: Regenerated.
15680 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15681 * configure.srv (i[34567]86-*-nto*): New target.
15682 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15683 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15684 (nto_comctrl) [__QNX__]: New function.
15685 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15686
4424e0c3 156872009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
15688
15689 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15690 srv_tgtobj.
15691
912cf4ba
PA
156922009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15693 Pedro Alves <pedro@codesourcery.com>
15694
15695 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15696 don't support CONTEXT_EXTENDED_REGISTERS.
15697 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15698 (the_low_target): Install them.
15699 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15700 failing with ERROR_PIPE_NOT_CONNECTED.
15701
aa5ca48f
DE
157022009-06-30 Doug Evans <dje@google.com>
15703 Pierre Muller <muller@ics.u-strasbg.fr>
15704
15705 Add h/w watchpoint support to x86-linux, win32-i386.
15706 * Makefile.in (SFILES): Add i386-low.c
15707 (i386_low_h): Define.
15708 (i386-low.o): Add dependencies.
15709 (linux-x86-low.o): Add i386-low.h dependency.
15710 (win32-i386-low.o): Ditto.
15711 * i386-low.c: New file.
15712 * i386-low.h: New file.
15713 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15714 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15715 * linux-low.c (linux_add_process): Initialize arch_private.
15716 (linux_remove_process): Free arch_private.
15717 (add_lwp): Initialize arch_private.
15718 (delete_lwp): Free arch_private.
15719 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15720 provided.
15721 * linux-low.h (process_info_private): New member arch_private.
15722 (lwp_info): New member arch_private.
15723 (linux_target_ops): New members new_process, new_thread,
15724 prepare_to_resume.
15725 (ptid_of): New macro.
15726 * linux-x86-low.c: Include stddef.h, i386-low.h.
15727 (arch_process_info): New struct.
15728 (arch_lwp_info): New struct.
15729 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15730 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15731 (i386_dr_low_get_status): New function.
15732 (x86_insert_point, x86_remove_point): New functions.
15733 (x86_stopped_by_watchpoint): New function.
15734 (x86_stopped_data_address): New function.
15735 (x86_linux_new_process, x86_linux_new_thread): New functions.
15736 (x86_linux_prepare_to_resume): New function.
15737 (the_low_target): Add entries for insert_point, remove_point,
15738 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15739 prepare_to_resume.
15740 * server.c (debug_hw_points): New global.
15741 (monitor_show_help): Document set debug-hw-points.
15742 (handle_query): Process "set debug-hw-points".
15743 * server.h (debug_hw_points): Declare.
15744 (paddress): Declare.
15745 * utils.c (NUMCELLS, CELLSIZE): New macros.
15746 (get_sell, xsnprintf, paddress): New functions.
15747 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15748 remove_point, stopped_by_watchpoint, stopped_data_address.
15749 * win32-i386-low.c: Include i386-low.h.
15750 (debug_reg_state): Replaces dr.
15751 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15752 (i386_dr_low_get_status): New function.
15753 (i386_insert_point, i386_remove_point): New functions.
15754 (i386_stopped_by_watchpoint): New function.
15755 (i386_stopped_data_address): New function.
15756 (i386_initial_stuff): Update.
15757 (get_thread_context,set_thread_context,i386_thread_added): Update.
15758 (the_low_target): Add entries for insert_point,
15759 remove_point, stopped_by_watchpoint, stopped_data_address.
15760 * win32-low.c (win32_insert_watchpoint): New function.
15761 (win32_remove_watchpoint): New function.
15762 (win32_stopped_by_watchpoint): New function.
15763 (win32_stopped_data_address): New function.
15764 (win32_target_ops): Add entries for insert_watchpoint,
15765 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15766 * win32-low.h (win32_target_ops): New members insert_point,
15767 remove_point, stopped_by_watchpoint, stopped_data_address.
15768
d993e290
PA
157692009-06-25 Pedro Alves <pedro@codesourcery.com>
15770
15771 * server.c (process_serial_event): Re-return unsupported, not
15772 error, if the type isn't recognized. Re-allow supporting only
15773 insert or remove packets. Also call require_running for
15774 breakpoints. Add missing break statement to default case. Tidy.
15775 * target.h (struct target_ops): Rename insert_watchpoint to
15776 insert_point, and remove_watchpoint to remove_point.
15777
15778 * linux-low.h (struct linux_target_ops): Likewise.
15779 * linux-low.c (linux_insert_watchpoint): Rename to ...
15780 (linux_insert_point): ... this. Adjust.
15781 (linux_remove_watchpoint): Rename to ...
15782 (linux_remove_point): ... this. Adjust.
15783 (linux_target_ops): Adjust.
15784 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15785 (cris_insert_point): ... this.
15786 (cris_remove_watchpoint): Rename to ...
15787 (cris_remove_point): ... this.
15788 (the_low_target): Adjust.
15789
0f54c268
PM
157902009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15791
15792 * server.c (handle_v_kill): Pass signal_pid to
15793 kill_inferior if multi_process is zero.
15794
c6314022
AR
157952009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15796
15797 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15798 * target.h (target_ops): Comment for *_watchpoint to make it clear
15799 the functions can get types '0' and '1'.
15800
4463ce24
AR
158012009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15802
15803 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15804 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15805 * regcache.c (get_regcache): Likewise.
15806 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15807 * win32-low.c (child_fetch_inferior_registers): Remove check for
15808 regno 0.
15809
cf8fd78b
PA
158102009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15811 Pedro Alves <pedro@codesourcery.com>
15812
15813 * target.h (struct target_ops) <supports_multi_process>: New
15814 callback.
15815 (target_supports_multi_process): New.
15816 * server.c (handle_query): Even if GDB reports support, only
15817 enable multi-process if the target also supports it. Report
15818 multi-process support only if the target backend supports it.
15819 * linux-low.c (linux_supports_multi_process): New function.
15820 (linux_target_ops): Install it as target_supports_multi_process
15821 callback.
15822
47c0c975
DE
158232009-05-24 Doug Evans <dje@google.com>
15824
e09875d4
DE
15825 Global renaming of find_thread_pid to find_thread_ptid.
15826 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15827 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15828 All callers updated.
15829
e27d73f6
DE
15830 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15831 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15832 directly.
15833
47c0c975
DE
15834 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15835 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15836 (linux_resume_one_lwp): Ditto.
15837
2acc282a
DE
158382009-05-23 Doug Evans <dje@google.com>
15839
15840 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15841 from struct inferior_list_entry * to struct lwp_info *.
15842 All callers updated.
15843
9f1036c1
DE
158442009-05-13 Doug Evans <dje@google.com>
15845
15846 * linux-x86-low.c: Don't include assert.h.
15847 (x86_siginfo_fixup): Use fatal, not assert.
15848 (x86_arch_setup): Fix comment.
15849
d0722149
DE
158502009-05-12 Doug Evans <dje@google.com>
15851
15852 Biarch support for i386/amd64 gdbserver.
15853 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15854 Add linux-x86-low.c.
15855 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15856 (linux-x86-low.o): Add.
15857 * linux-x86-64-low.c: Delete.
15858 * linux-i386-low.c: Delete.
15859 * linux-x86-low.c: New file.
15860 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15861 linux-x86-low.o.
15862 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15863 linux-x86-low.o.
15864 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15865 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15866 (linux_child_pid_to_exec_file): New function.
15867 (elf_64_header_p, elf_64_file_p): New functions.
15868 (siginfo_fixup): New function.
15869 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15870 give target a chance to convert layout.
15871 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15872 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15873
fdeb2a12
DE
158742009-05-07 Doug Evans <dje@google.com>
15875
15876 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15877 (regsets_store_inferior_registers): Ditto.
15878
a6dbe5df
PA
158792009-05-06 Pedro Alves <pedro@codesourcery.com>
15880
15881 PR server/10048
15882
15883 * linux-low.c (must_set_ptrace_flags): Delete.
15884 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15885 of the global.
15886 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15887 `lwp->must_set_ptrace_flags' instead.
ba42693b 15888 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
15889 (linux_wait_1): ... not here.
15890
5091eb23
DE
158912009-04-30 Doug Evans <dje@google.com>
15892
9f767825
DE
15893 * inferiors.c (started_inferior_callback): New function.
15894 (attached_inferior_callback): New function.
15895 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15896 * server.c (print_started_pid, print_attached_pid): New functions.
15897 (detach_or_kill_for_exit): New function.
15898 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15899 * server.h (have_started_inferiors_p): Declare.
15900 (have_attached_inferiors_p): Declare.
15901
5091eb23
DE
15902 * inferiors.c (remove_process): Fix memory leak, free process.
15903 * linux-low.c (linux_remove_process): New function.
15904 (linux_kill): Call it instead of remove_process.
15905 (linux_detach, linux_wait_1): Ditto.
15906
155c8968
PA
159072009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15908
15909 * configure.srv: Add x86 Windows CE target.
15910
7fe519cb
UW
159112009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15912
15913 * inferiors.c (get_thread_process): Make global.
15914 * server.h (get_thread_process): Add prototype.
15915 * thread-db.c (find_one_thread): Use get_thread_process
15916 instead of current_process.
15917 (thread_db_get_tls_address): Do not crash if called when
15918 thread layer is not yet initialized.
15919
5472f405
UW
159202009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15921
15922 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15923 * spu-low.c (current_tid): Rename to ...
15924 (current_ptid): ... this.
15925 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15926 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15927 ptid_get_lwp (current_ptid) instead of current_tid.
15928 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15929 instead of current_tid. Use find_process_pid to verify pid
15930 argument is valid. Pass proper argument to remove_process.
15931 (spu_thread_alive): Compare current_ptid instead of current_tid.
15932 (spu_resume): Likewise.
15933
55ac2b99
PA
159342009-04-02 Pedro Alves <pedro@codesourcery.com>
15935
15936 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15937 variable.
15938
95954743
PA
159392009-04-01 Pedro Alves <pedro@codesourcery.com>
15940
15941 Implement the multiprocess extensions, and add linux multiprocess
15942 support.
15943
15944 * server.h (ULONGEST): Declare.
15945 (struct ptid, ptid_t): New.
15946 (minus_one_ptid, null_ptid): Declare.
15947 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15948 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15949 (struct inferior_list_entry): Change `id' type from unsigned from
15950 to ptid_t.
15951 (struct sym_cache, struct breakpoint, struct
15952 process_info_private): Forward declare.
15953 (struct process_info): Declare.
15954 (current_process): Declare.
15955 (all_processes): Declare.
15956 (initialize_inferiors): Declare.
15957 (add_thread): Adjust to use ptid_t.
15958 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15959 (add_process, remove_process, find_thread_pid): Declare.
15960 (find_inferior_id): Adjust to use ptid_t.
15961 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15962 (multi_process): Declare.
15963 (push_event): Adjust to use ptid_t.
15964 (read_ptid, write_ptid): Declare.
15965 (prepare_resume_reply): Adjust to use ptid_t.
15966 (clear_symbol_cache): Declare.
15967 * inferiors.c (all_processes): New.
15968 (null_ptid, minus_one_ptid): New.
15969 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15970 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15971 (add_thread): Change unsigned long to ptid. Remove gdb_id
15972 parameter. Adjust.
15973 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15974 (gdb_id_to_thread): Rename to ...
15975 (find_thread_pid): ... this. Change unsigned long to ptid.
15976 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15977 (loaded_dll, pull_pid_from_list): Adjust.
15978 (add_process, remove_process, find_process_pid)
15979 (get_thread_process, current_process, initialize_inferiors): New.
15980 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15981 (struct target_waitstatus) <related_pid>: Ditto.
15982 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15983 return type to int.
15984 (struct target_ops) <join>: Add `pid' argument.
15985 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15986 (struct target_ops) <wait>: Add `ptid' field. Change return type
15987 to ptid.
15988 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15989 (mywait): Add `ptid' argument. Change return type to ptid_t.
15990 (target_pid_to_str): Declare.
15991 * target.c (set_desired_inferior): Adjust to use ptids.
15992 (mywait): Add new `ptid' argument. Adjust.
15993 (target_pid_to_str): New.
15994 * mem-break.h (free_all_breakpoints): Declare.
15995 * mem-break.c (breakpoints): Delelete.
15996 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15997 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15998 to use per-process breakpoint list.
15999 (free_all_breakpoints): New.
16000 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16001 (symbol_cache, all_symbols_looked_up): Delete.
16002 (hexchars): New.
16003 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16004 read_ptid): New.
16005 (prepare_resume_reply): Change ptid argument's type from unsigned
16006 long to ptid_t. Adjust. Implement W;process and X;process.
16007 (free_sym_cache, clear_symbol_cache): New.
16008 (look_up_one_symbol): Adjust to per-process symbol cache. *
16009 * server.c (cont_thread, general_thread, step_thread): Change type
16010 to ptid_t.
16011 (attached): Delete.
16012 (multi_process): New.
16013 (last_ptid): Change type to ptid_t.
16014 (struct vstop_notif) <ptid>: Change type to ptid_t.
16015 (queue_stop_reply, push_event): Change `ptid' argument's type to
16016 ptid_t.
16017 (discard_queued_stop_replies): Add `pid' argument.
16018 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16019 changes. Don't reference the `attached' global.
16020 (attach_inferior): Adjust to mywait interface changes.
16021 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16022 features. Handle and report "multiprocess+". Handle
16023 "qAttached:PID".
16024 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16025 changes.
16026 (handle_v_kill): New.
16027 (handle_v_stopped): Adjust to use target_pid_to_str.
16028 (handle_v_requests): Allow multiple attaches and runs when
16029 multiprocess extensions are in effect. Handle "vKill".
16030 (myresume): Adjust to use ptids.
16031 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16032 (handle_status): Adjust to discard_queued_stop_replies interface
16033 change.
16034 (first_thread_of, kill_inferior_callback)
16035 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16036 (main): Call initialize_inferiors. Adjust to use ptids, killing
16037 and detaching from all inferiors. Handle multiprocess packet
16038 variants.
16039 * linux-low.h: Include gdb_proc_service.h.
16040 (struct process_info_private): New.
16041 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16042 <lwpid_of>: Use ptid_get_lwp.
16043 (get_lwp_thread): Adjust.
16044 (struct lwp_info): Add `dead' member.
16045 (find_lwp_pid): Declare.
16046 * linux-low.c (thread_db_active): Delete.
16047 (new_inferior): Adjust comment.
16048 (inferior_pid): Delete.
16049 (linux_add_process): New.
16050 (handle_extended_wait): Adjust.
16051 (add_lwp): Change unsigned long to ptid.
16052 (linux_create_inferior): Add process to processes table. Adjust
16053 to use ptids. Don't set new_inferior here.
16054 (linux_attach_lwp): Rename to ...
16055 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16056 it. Adjust to use ptids.
16057 (linux_attach_lwp): New.
16058 (linux_attach): Add process to processes table. Don't set
16059 new_inferior here.
16060 (struct counter): New.
16061 (second_thread_of_pid_p, last_thread_of_process_p): New.
16062 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16063 multiple processes.
16064 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16065 processes. Remove process from process table.
16066 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16067 to multiple processes.
16068 (any_thread_of): New.
16069 (linux_detach): Add `pid' argument, and handle it. Remove process
16070 from processes table.
16071 (linux_join): Add `pid' argument. Handle it.
16072 (linux_thread_alive): Change unsighed long argument to ptid_t.
16073 Consider dead lwps as not being alive.
16074 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16075 threads we're not interested in.
16076 (same_lwp, find_lwp_pid): New.
16077 (linux_wait_for_lwp): Change `pid' argument's type from int to
16078 ptid_t. Adjust.
16079 (linux_wait_for_event): Rename to ...
16080 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16081 from int to ptid_t. Adjust.
16082 (linux_wait_for_event): New.
16083 (linux_wait_1): Add `ptid' argument. Change return type to
16084 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16085 that exit from the process table.
16086 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16087 Adjust.
16088 (mark_lwp_dead): New.
16089 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16090 stopping all threads, mark its main lwp as dead.
16091 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16092 ptids.
16093 (fetch_register, usr_store_inferior_registers)
16094 (regsets_fetch_inferior_registers)
16095 (regsets_store_inferior_registers, linux_read_memory)
16096 (linux_write_memory): Inline `inferior_pid'.
16097 (linux_look_up_symbols): Adjust to use per-process
16098 `thread_db_active'.
16099 (linux_request_interrupt): Adjust to use ptids.
16100 (linux_read_auxv): Inline `inferior_pid'.
16101 (initialize_low): Don't reference thread_db_active.
16102 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16103 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16104 (ps_getpid): Return the pid of the current inferior.
16105 * thread-db.c (proc_handle, thread_agent): Delete.
16106 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16107 per-process data.
16108 (find_one_thread): Change argument type to ptid_t. Adjust to
16109 per-process data.
16110 (maybe_attach_thread): Adjust to per-process data and ptids.
16111 (thread_db_find_new_threads): Ditto.
16112 (thread_db_init): Ditto.
16113 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16114 processes table. Adjust to use ptids.
16115 (spu_kill, spu_detach): Adjust interface. Remove process from
16116 processes table.
16117 (spu_join, spu_thread_alive): Adjust interface.
16118 (spu_wait): Adjust interface. Remove process from processes
16119 table. Adjust to use ptids.
16120 * win32-low.c (current_inferior_tid): Delete.
16121 (current_inferior_ptid): New.
16122 (debug_event_ptid): New.
16123 (thread_rec): Take a ptid. Adjust.
16124 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16125 (child_delete_thread): Ditto.
16126 (do_initial_child_stuff): Add `attached' argument. Add process to
16127 processes table.
16128 (child_fetch_inferior_registers, child_store_inferior_registers):
16129 Adjust.
16130 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16131 (win32_attach): Pass 1 to do_initial_child_stuff.
16132 (win32_kill): Adjust interface. Remove process from processes
16133 table.
16134 (win32_detach): Ditto.
16135 (win32_join): Adjust interface.
16136 (win32_thread_alive): Take a ptid.
16137 (win32_resume): Adjust to use ptids.
16138 (get_child_debug_event): Ditto.
16139 (win32_wait): Adjust interface. Remove exiting process from
16140 processes table.
16141
bd99dc85
PA
161422009-04-01 Pedro Alves <pedro@codesourcery.com>
16143
16144 Non-stop mode support.
16145
16146 * server.h (non_stop): Declare.
16147 (gdb_client_data, handler_func): Declare.
16148 (delete_file_handler, add_file_handler, start_event_loop):
16149 Declare.
16150 (handle_serial_event, handle_target_event, push_event)
16151 (putpkt_notif): Declare.
16152 * target.h (enum resume_kind): New.
16153 (struct thread_resume): Replace `step' field by `kind' field.
16154 (TARGET_WNOHANG): Define.
16155 (struct target_ops) <wait>: Add `options' argument.
16156 <supports_non_stop, async, start_non_stop>: New fields.
16157 (target_supports_non_stop, target_async): New.
16158 (start_non_stop): Declare.
16159 (mywait): Add `options' argument.
16160 * target.c (mywait): Add `options' argument. Print child exit
16161 notifications here.
16162 (start_non_stop): New.
16163 * server.c (non_stop, own_buf, mem_buf): New globals.
16164 (struct vstop_notif): New.
16165 (notif_queue): New global.
16166 (queue_stop_reply, push_event, discard_queued_stop_replies)
16167 (send_next_stop_reply): New.
16168 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16169 interface changes.
16170 (attach_inferior): In non-stop mode, don't wait for the target
16171 here.
16172 (handle_general_set): Handle QNonStop.
16173 (handle_query): When handling qC, return the current general
16174 thread, instead of the first thread of the list.
16175 (handle_query): If the backend supports non-stop mode, include
16176 QNonStop+ in the qSupported query response.
16177 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16178 and non-stop mode.
16179 (handle_v_attach, handle_v_run): Handle non-stop mode.
16180 (handle_v_stopped): New.
16181 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16182 (myresume): Adjust to use resume_kind. Handle non-stop.
16183 (queue_stop_reply_callback): New.
16184 (handle_status): Handle non-stop mode.
16185 (main): Clear non_stop flag on reconnection. Use the event-loop.
16186 Refactor serial protocol handling from here ...
16187 (process_serial_event): ... to this new function. When GDB
16188 selects any thread, select one here. In non-stop mode, wait until
16189 GDB acks all pending events before exiting.
16190 (handle_serial_event, handle_target_event): New.
16191 * remote-utils.c (remote_open): Install remote_desc in the event
16192 loop.
16193 (remote_close): Remove remote_desc from the event loop.
16194 (putpkt_binary): Rename to...
16195 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16196 (putpkt_binary): New as wrapper around putpkt_binary_1.
16197 (putpkt_notif): New.
16198 (prepare_resume_reply): In non-stop mode, don't change the
16199 general_thread.
16200 * event-loop.c: New.
16201 * Makefile.in (OBJ): Add event-loop.o.
16202 (event-loop.o): New rule.
16203
16204 * linux-low.h (pid_of): Moved here.
16205 (lwpid_of): New.
16206 (get_lwp_thread): Use lwpid_of.
16207 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16208 * linux-low.c (pid_of): Delete.
16209 (inferior_pid): Use lwpid_of.
16210 (linux_event_pipe): New.
16211 (target_is_async_p): New.
16212 (delete_lwp): New.
16213 (handle_extended_wait): Use lwpid_of.
16214 (add_lwp): Don't set lwpid field.
16215 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16216 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16217 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16218 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16219 first. Adjust to linux_wait_for_event interface changes. Use
16220 lwpid_of.
16221 (linux_detach): Don't delete the main lwp here.
16222 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16223 (status_pending_p): Don't consider explicitly suspended lwps.
16224 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16225 pointer. Add OPTIONS argument. Change return type to int. Use
16226 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16227 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16228 pointer. Add status pointer argument. Return a pid instead of a
16229 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16230 changes. In non-stop mode, don't switch to a random thread.
16231 (linux_wait): Rename to...
16232 (linux_wait_1): ... this. Add target_options argument, and handle
16233 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16234 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16235 clean exit and signal exit code. Don't stop all threads in
16236 non-stop mode. In all-stop mode, only stop all threads when
16237 reporting a stop to GDB. Handle explicit thread stop requests.
16238 (async_file_flush, async_file_mark): New.
16239 (linux_wait): New.
16240 (send_sigstop): Use lwpid_of.
16241 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16242 interface changes. In non-stop mode, don't switch to a random
16243 thread.
16244 (linux_resume_one_lwp): Use lwpid_of.
16245 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16246 (linux_resume_one_thread): ... this. Handle resume_stop. In
16247 non-stop mode, don't look for pending flag in all threads.
16248 (resume_status_pending_p): Don't consider explicitly suspended
16249 threads.
16250 (my_waitpid): Reimplement. Emulate __WALL.
16251 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16252 Use lwpid_of.
16253 (sigchld_handler, linux_supports_non_stop, linux_async)
16254 (linux_start_non_stop): New.
16255 (linux_target_ops): Register linux_supports_non_stop, linux_async
16256 and linux_start_non_stop.
16257 (initialize_low): Install SIGCHLD handler.
16258 * thread-db.c (thread_db_create_event, find_one_thread)
16259 (thread_db_get_tls_address): Use lwpid_of.
16260 * win32-low.c (win32_detach): Adjust to use resume_kind.
16261 (win32_wait): Add `options' argument.
16262 * spu-low.c (spu_resume): Adjust to use resume_kind.
16263 (spu_wait): Add `options' argument.
16264
5b1c542e
PA
162652009-04-01 Pedro Alves <pedro@codesourcery.com>
16266
16267 Decouple target code from remote protocol.
16268
16269 * target.h (enum target_waitkind): New.
16270 (struct target_waitstatus): New.
16271 (struct target_ops) <wait>: Return an unsigned long. Take a
16272 target_waitstatus pointer instead of a char pointer.
16273 (mywait): Likewise.
16274 * target.c (mywait): Change prototype to return an unsigned long.
16275 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16276 * server.h (thread_from_wait, old_thread_from_wait): Delete
16277 declarations.
16278 (prepare_resume_reply): Change prototype to take a
16279 target_waitstatus.
16280 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16281 (last_status, last_ptid): New.
16282 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16283 pid instead of a signal.
16284 (attach_inferior): Remove "status" and "signal" parameters.
16285 Adjust.
16286 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16287 not as an address.
16288 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16289 (handle_v_requests, myresume): Remove "status" and "signal"
16290 parameters. Adjust.
16291 (handle_status): New.
16292 (main): Delete local `status'. Adjust.
16293 * remote-utils.c: Include target.h.
16294 (prepare_resume_reply): Change prototype to take a
16295 target_waitstatus. Adjust.
16296
16297 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16298 interface.
16299 * spu-low.c (spu_wait): Adjust.
16300 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16301 Delete.
16302 (win32_wait): Adjust.
16303
2bd7c093
PA
163042009-04-01 Pedro Alves <pedro@codesourcery.com>
16305
16306 * target.h (struct thread_resume): Delete leave_stopped member.
16307 (struct target_ops): Add a `n' argument to the `resume' callback.
16308 * server.c (start_inferior): Adjust.
16309 (handle_v_cont, myresume): Adjust.
16310 * linux-low.c (check_removed_breakpoint): Adjust to resume
16311 interface change, and to removed leave_stopped field.
16312 (resume_ptr): Delete.
16313 (struct thread_resume_array): New.
16314 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16315 resume interface change.
16316 (linux_continue_one_thread, linux_queue_one_thread)
16317 (resume_status_pending_p): Check if the resume field is NULL
16318 instead of checking the leave_stopped member.
16319 (linux_resume): Adjust to the target resume interface change.
16320 * spu-low.c (spu_resume): Adjust to the target resume interface
16321 change.
16322 * win32-low.c (win32_detach, win32_resume): Ditto.
16323
c35fafde
PA
163242009-04-01 Pedro Alves <pedro@codesourcery.com>
16325
16326 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16327 flag.
16328 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16329 pending.
16330 (linux_continue_one_thread): Only preserve the stepping flag if
16331 there's a pending breakpoint.
16332
0a59d50b
PA
163332009-03-31 Pedro Alves <pedro@codesourcery.com>
16334
16335 * server.c (main): After the inferior having exited, call
16336 remote_close before exiting gdbserver.
16337
f04c6d38
TJB
163382009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16339
16340 Fix size of FPSCR in Power 7 processors.
16341 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16342 (PPC_FEATURE_HAS_DFP): New #define.
16343 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16344 size of the FPSCR.
16345
78e5cee6
PA
163462009-03-23 Pedro Alves <pedro@codesourcery.com>
16347
16348 * server.c (handle_query) Whitespace and formatting.
16349
1b3f6016
PA
163502009-03-22 Pedro Alves <pedro@codesourcery.com>
16351
16352 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16353 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16354 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16355 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16356 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16357 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16358 Makefile.in, configure.ac: Fix whitespace throughout.
16359 * configure: Regenerate.
16360
a07b2135
PA
163612009-03-22 Pedro Alves <pedro@codesourcery.com>
16362
16363 * inferiors.c (find_inferior): Make it safe for the callback
16364 function to delete the currently iterated inferior.
16365
67cc2626
PA
163662009-03-22 Pedro Alves <pedro@codesourcery.com>
16367
16368 * Makefile.in (linuw_low_h): Move higher.
16369 (thread-db.o): Depend on $(linux_low_h).
16370
54a0b537
PA
163712009-03-17 Pedro Alves <pedro@codesourcery.com>
16372
16373 Rename "process" to "lwp" throughout.
16374
16375 * linux-low.c (all_processes): Rename to...
16376 (all_lwps): ... this.
16377 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16378 (add_process): Rename to ...
16379 (add_lwp): ... this. Adjust.
16380 (linux_create_inferior): Adjust.
16381 (linux_attach_lwp): Adjust.
16382 (linux_attach): Adjust.
16383 (linux_kill_one_process): Rename to ...
16384 (linux_kill_one_lwp): ... this. Adjust.
16385 (linux_kill): Adjust.
16386 (linux_detach_one_process): Rename to ...
16387 (linux_detach_one_lwp): ... this. Adjust.
16388 (linux_detach): Adjust.
16389 (check_removed_breakpoint): Adjust.
16390 (status_pending_p): Adjust.
16391 (linux_wait_for_process): Rename to ...
16392 (linux_wait_for_lwp): ... this. Adjust.
16393 (linux_wait_for_event): Adjust.
16394 (send_sigstop): Adjust.
16395 (wait_for_sigstop): Adjust.
16396 (stop_all_processes): Rename to ...
16397 (stop_all_lwps): ... this.
16398 (linux_resume_one_process): Rename to ...
16399 (linux_resume_one_lwp): ... this. Adjust.
16400 (linux_set_resume_request, linux_continue_one_thread)
16401 (linux_queue_one_thread, resume_status_pending_p)
16402 (usr_store_inferior_registers, regsets_store_inferior_registers)
16403 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16404 Adjust.
16405 * linux-low.h (get_process): Rename to ...
16406 (get_lwp): ... this. Adjust.
16407 (get_thread_process): Rename to ...
16408 (get_thread_lwp): ... this. Adjust.
16409 (get_process_thread): Rename to ...
16410 (get_lwp_thread): ... this. Adjust.
16411 (struct process_info): Rename to ...
16412 (struct lwp_info): ... this.
16413 (all_processes): Rename to ...
16414 (all_lwps): ... this.
16415 * proc-service.c (ps_lgetregs): Adjust.
16416 * thread-db.c (thread_db_create_event, find_one_thread)
16417 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16418
0b16c5cf
PA
164192009-03-14 Pedro Alves <pedro@codesourcery.com>
16420
16421 * server.c (handle_query): Handle "qAttached".
16422
32de4b9d
NS
164232009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16424
16425 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16426 GPLv3, update license URL.
16427
2aecd87f
DE
164282009-03-01 Doug Evans <dje@google.com>
16429
93efd302 16430 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
16431 (server_h): Add gdb_signals.h.
16432 (signals.o): Update.
16433 * server.h (target_signal_from_host,target_signal_to_host_p)
16434 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16435
86b1f9c5
PM
164362009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16437
16438 * remote-utils.c (getpkt): Also generate remote-debug
16439 information if noack_mode is set.
16440
4aa995e1
PA
164412009-02-06 Pedro Alves <pedro@codesourcery.com>
16442
16443 * server.c (handle_query): Report qXfer:siginfo:read and
16444 qXfer:siginfo:write as supported and handle them.
16445 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16446 * linux-low.c (linux_xfer_siginfo): New.
16447 (linux_target_ops): Set it.
16448
62709adf
PA
164492009-01-26 Pedro Alves <pedro@codesourcery.com>
16450
16451 * server.c (gdbserver_usage): Mention --remote-debug.
16452 (main): Accept '--remote-debug' switch.
16453
aef93bd7
DE
164542009-01-18 Doug Evans <dje@google.com>
16455
16456 * regcache.c (new_register_cache): No need to check result of xcalloc.
16457 * server.c (handle_search_memory): Back out calls to xmalloc,
16458 result is checked and error is returned to user upon failure.
16459 (handle_query): Ditto. Add more checks for result of malloc.
16460 (handle_v_cont): Check result of malloc, report error back to
16461 user upon failure.
16462 (handle_v_run): Ditto. Call freeargv.
16463 * server.h (freeargv): Declare.
16464 * utils.c (freeargv): New fn.
16465
54363045
DE
164662009-01-15 Doug Evans <dje@google.com>
16467
f626972c
DE
16468 * gdbreplay.c (perror_with_name): Make arg const char *.
16469 * server.h (target_signal_to_name): Make return type const char *.
0842e787 16470 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 16471 * utils.c (perror_with_name): Make arg const char *.
54363045 16472
18aae699
PA
164732009-01-14 Pedro Alves <pedro@codesourcery.com>
16474
16475 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16476 when handling a EXIT_PROCESS_DEBUG_EVENT.
16477
ff703abe
JB
164782009-01-06 Joel Brobecker <brobecker@adacore.com>
16479
16480 * gdbreplay.c (gdbreplay_version): Update copyright year.
16481 * server.c (gdbserver_version): Likewise.
16482
f21cc1a2 164832009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
16484
16485 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 16486 (handle_extended_wait): Improve comment.
0e21c1ec 16487
bca929d3
DE
164882008-12-13 Doug Evans <dje@google.com>
16489
16490 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16491 * server.h (ATTR_MALLOC): New macro.
16492 (xmalloc,xcalloc,xstrdup): Declare.
16493 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16494 * inferiors.c: Ditto.
16495 * linux-low.c: Ditto.
16496 * mem-break.c: Ditto.
16497 * regcache.c: Ditto.
16498 * remote-utils.c: Ditto.
16499 * server.c: Ditto.
16500 * target.c: Ditto.
16501 * win32-low.c: Ditto.
16502
97438e3f
DE
165032008-12-12 Doug Evans <dje@google.com>
16504
896c7fbb
DE
16505 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16506 in debugging printf.
16507
97438e3f
DE
16508 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16509
e3b886f8
DE
165102008-12-09 Doug Evans <dje@google.com>
16511
16512 * linux-low.h (struct process_info): Delete member tid, unused.
16513 * thread-db.c (find_one_thread): Update.
16514 (maybe_attach_thread): Update.
16515
07e059b5
VP
165162008-12-02 Pedro Alves <pedro@codesourcery.com>
16517
889bf7c5
PA
16518 * target.h (struct target_ops): Add qxfer_osdata member.
16519 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16520 and dirent.h.
16521 (linux_qxfer_osdata): New functions.
16522 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16523 callback.
16524 * server.c (handle_query): Handle "qXfer:osdata:read:".
16525 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16526 (buffer_xml_printf): New functions.
16527 * server.h (struct buffer): New.
16528 (buffer_grow_str, buffer_grow_str0): New macros.
16529 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16530 (buffer_xml_printf): Declare.
07e059b5 16531
4cab47ab
DE
165322008-11-24 Doug Evans <dje@google.com>
16533
16534 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16535
f142445f
DJ
165362008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16537
16538 * server.c (handle_v_run): Always use the supplied argument list.
16539
d0107bb6 165402008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 16541
d0107bb6
BW
16542 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16543 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 16544
2c4ad781
TJB
165452008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16546
16547 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16548 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16549 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16550 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16551 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16552 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16553 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16554 XML target descriptions.
16555 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16556 when inferior is running on an ISA 2.05 or later processor. Add
16557 special case to return offset for full 64-bit slot of FPSCR when
16558 in 32-bits.
16559
dfb64f85
DJ
165602008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16561
16562 * Makefile.in (SFILES, clean): Added sparc64 files.
16563 (reg-sparc64.o, reg-sparc64.c): New.
16564 * configure.srv (sparc*-*-linux*): New configuration.
16565 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16566 syscall arguments for SPARC.
16567 (regsets_store_inferior_registers): Likewise.
16568 * linux-sparc-low.c: New file.
16569
66b6e1dd
DE
165702008-10-21 Doug Evans <dje@google.com>
16571
16572 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16573 (READLINE_DIR,READLINE_DEP): Delete.
16574 (INTERNAL_CFLAGS): Update.
16575 (LINTFLAGS): Update.
16576
9b710a42
PA
165772008-10-10 Pedro Alves <pedro@codesourcery.com>
16578
16579 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16580 whole argv from the last run, not just argv[0].
16581
5822d809
PA
165822008-09-08 Pedro Alves <pedro@codesourcery.com>
16583
16584 * regcache.c (new_register_cache): Return NULL if the register
16585 cache size isn't known yet.
16586 (free_register_cache): Avoid dereferencing a NULL regcache.
16587
74aac56f
DJ
165882008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16589
16590 * configure.srv: Merge MIPS and MIPS64.
16591
400b20f5
MR
165922008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
16593
16594 * Makefile.in (uninstall): Apply $(EXEEXT) too.
16595
677c5bb1
LM
165962008-08-18 Luis Machado <luisgpm@br.ibm.com>
16597
16598 * Makefile.in: Add required vsx dependencies.
16599
16600 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
16601 Declare init_registers_powerpc_vsx32l.
16602 Declare init_registers_powerpc_vsx64l.
16603 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
16604 (ppc_arch_setup): Check for VSX in hwcap.
16605 (ppc_fill_vsxregset): New function.
16606 (ppc_store_vsxregset): New function.
16607 Add new VSX entry in regset_info target_regsets.
16608
16609 * configure.srv: Add new VSX dependencies.
16610
a6f3e723
SL
166112008-08-12 Pedro Alves <pedro@codesourcery.com>
16612
16613 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
16614 (remote_open): Set or clear transport_is_reliable.
16615 (putpkt_binary): Don't expect acks in noack mode.
16616 (getpkt): Don't send ack/nac in noack mode.
16617 * server.c (handle_general_set): Handle QStartNoAckMode.
16618 (handle_query): If connected by tcp pass QStartNoAckMode+ in
16619 qSupported.
16620 (main): Reset noack_mode on every connection.
16621 * server.h (noack_mode): Declare.
16622
a417dc56
RW
166232008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16624
16625 * Makefile.in (GDBREPLAY_OBS): New variable.
16626 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
16627
3221518c
UW
166282008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16629 Daniel Jacobowitz <dan@codesourcery.com>
16630
16631 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16632 (usr_store_inferior_registers): Likewise.
16633 (regsets_store_inferior_registers): Likewise.
16634
ec56be1b
PA
166352008-07-31 Rolf Jansen <rj@surtec.com>
16636 Pedro Alves <pedro@codesourcery.com>
16637
16638 * configure.ac: Check for memmem declaration.
16639 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16640 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16641 (disable_packet_qfThreadInfo): Unconditionally compile.
16642 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16643 * configure, config.in: Regenerate.
16644
2fe5e3ff
DE
166452008-07-28 Doug Kwan <dougkwan@google.com>
16646
16647 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16648 (linux_write_memory): Remove declaration of errno.
16649
836acd6d
UW
166502008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16651
16652 * linux-low.c (handle_extended_wait): Do not use "status"
16653 variable uninitialized.
16654
aeba519e
PA
166552008-07-07 Pedro Alves <pedro@codesourcery.com>
16656
16657 * server.c (handle_v_attach): Inhibit reporting dll changes.
16658
db42f210
PA
166592008-06-27 Pedro Alves <pedro@codesourcery.com>
16660
16661 * remote-utils.c (prepare_resume_reply): If requested, don't
16662 output "thread:TID" in the T stop reply.
16663
16664 * server.c (disable_packet_vCont, disable_packet_Tthread)
16665 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16666 (handle_query): If requested, disable support for qC, qfThreadInfo
16667 and qsThreadInfo.
16668 (handle_v_requests): If requested, disable support for vCont.
16669 (gdbserver_show_disableable): New.
16670 (main): Handle --disable-packet and --disable-packet=LIST.
16671
16672 * server.h (disable_packet_vCont, disable_packet_Tthread)
16673 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16674
8e4c5421
CD
166752008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16676
16677 * server.c (gdbserver_usage): Mention --version.
16678
6e23a804
DJ
166792008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16680
16681 * Makefile.in (gdbreplay.o): New rule.
16682
90aa6a40
JM
166832008-06-06 Joseph Myers <joseph@codesourcery.com>
16684
16685 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16686 message, not gdbserver.
16687
c16158bc 166882008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
16689 Nathan Sidwell <nathan@codesourcery.com>
16690 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
16691
16692 * acinclude.m4: Include ../../config/acx.m4.
16693 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16694 * configure, config.in: Regenerate.
16695 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16696 * server.c (gdbserver_version): Print PKGVERSION.
16697 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16698 (main): Adjust gdbserver_usage calls.
16699 * gdbreplay.c (version, host_name): Add declarations.
16700 (gdbreplay_version, gdbreplay_usage): New.
16701 (main): Accept --version and --help options.
16702
aeb75bf5
DJ
167032008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16704
16705 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16706 (arm_breakpoint_at): Handle Thumb.
16707 (the_low_target): Add comment.
16708
76b233dd
UW
167092008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16710
16711 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16712
08388c79
DE
167132008-05-09 Doug Evans <dje@google.com>
16714
a3c83fae
DE
16715 * server.h (decode_search_memory_packet): Declare.
16716 * remote-utils.c (decode_search_memory_packet): New fn.
16717 * server.c (handle_search_memory_1): New fn.
08388c79
DE
16718 (handle_search_memory): New fn.
16719 (handle_query): Process qSearch:memory packets.
16720
bb9c3d36
UW
167212008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16722
16723 * regcache.c (registers_length): Remove.
16724 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16725 full register packet.
16726 * regcache.h (registers_length): Remove prototype.
16727 * server.h (PBUFSIZ): Define to 16384.
16728
7284e1be
UW
167292008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16730
16731 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16732 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16733 powerpc-64l.o, and powerpc-altivec64l.o.
16734 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16735 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16736 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16737 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16738 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16739 to srv_xmlfiles.
16740
16741 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16742 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16743 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16744 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16745 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16746 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16747 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16748 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16749 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16750 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16751 (clean): Update.
16752
16753 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16754 (init_registers_powerpc_32l): ... this new prototype.
16755 (init_registers_powerpc_32): Remove, replace by ...
16756 (init_registers_powerpc_altivec32l): ... this new prototype.
16757 (init_registers_powerpc_e500): Remove, replace by ...
16758 (init_registers_powerpc_e500l): ... this new prototype.
16759 (init_registers_ppc64): Remove, replace by ...
16760 (init_registers_powerpc_64l): ... this new prototype.
16761 (init_registers_powerpc_64): Remove, replace by ...
16762 (init_registers_powerpc_altivec64l): ... this new prototype.
16763 (ppc_num_regs): Set to 73.
16764 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16765 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16766 (ppc_cannot_store_register): Handle orig_r3 and trap.
16767 (ppc_arch_setup): Update init_registers_... calls.
16768 (ppc_fill_gregset): Handle orig_r3 and trap.
16769
16770 * inferiors.c (clear_inferiors): Reset current_inferior.
16771
fdc59709
PB
167722008-04-23 Paolo Bonzini <bonzini@gnu.org>
16773
889bf7c5
PA
16774 * acinclude.m4: Add override.m4.
16775 * configure: Regenerate.
fdc59709 16776
c9b2f845
UW
167772008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16778
16779 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16780 initial call to init_register_ppc64.
16781
550512b8
UW
167822008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16783
43aaf8b6
PA
16784 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16785 single powerpc*-*-linux* case.
550512b8
UW
16786 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16787
b6430ec3
UW
167882008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16789
16790 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 16791 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
16792 from reg_xmlfiles.
16793 * linux-ppc-low.c: Include <elf.h>.
16794 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16795 (ppc_hwcap): New global variable.
16796 (ppc_regmap): Remove __SPE__ #ifdef sections.
16797 (ppc_regmap_e500): New global variable.
16798 (ppc_cannot_store_register): Update __SPE__ special case.
16799 (ppc_get_hwcap): New function.
16800 (ppc_arch_setup): Use it to determine whether inferior supports
16801 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16802 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16803 Do not access registers if target does not support AltiVec.
16804 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16805 Do not access registers if target does not support SPE.
16806 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16807
52fa2412
UW
168082008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16809
16810 * linux-low.c (disabled_regsets, num_regsets): New.
16811 (use_regsets_p): Delete.
16812 (linux_wait_for_process): Clear disabled_regsets.
16813 (regsets_fetch_inferior_registers): Check and set it.
16814 (regsets_store_inferior_registers): Likewise.
16815 (linux_fetch_registers, linux_store_registers): Do not use
16816 use_regsets_p.
16817 (initialize_low): Allocate disabled_regsets.
16818
e28b3332
DJ
168192008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16820
16821 * Makefile.in (LIBOBJS): New.
16822 (OBS): Use LIBOBJS.
16823 (memmem.o): New rule.
16824 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16825 * configure: Regenerated.
16826
4536995d
UW
168272008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16828
16829 * server.c (handle_query): Never return "unsupported" for
16830 qXfer:features:read queries.
16831
221c031f
UW
168322008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16833
16834 * server.c (get_features_xml): Fix inverted condition.
16835 (handle_query): Always support qXfer:feature:read.
16836
ccd213ac
DJ
168372008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16838
16839 * server.c (wrapper_argv): New.
16840 (start_inferior): Handle wrapper_argv. If set, expect an extra
16841 trap.
16842 (gdbserver_usage): Document --wrapper.
16843 (main): Parse --wrapper.
16844
6fe305f7
UW
168452008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16846
16847 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16848 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16849 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16850 (ppc_set_pc): Likewise.
16851 (ppc_arch_setup): New function.
16852 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16853 of collect_register.
889bf7c5 16854 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 16855
5b0a002e
UW
168562008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16857
16858 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16859 instead of linux-ppc64-low.o.
16860 * linux-ppc64-low.c: Remove file.
16861 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16862 (linux-ppc64-low.o): Remove rule.
16863
16864 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16865 (init_registers_powerpc_64): Likewise.
16866 (ppc_regmap): Conditionally define depending on __powerpc64__.
16867 (ppc_cannot_store_register): Do not special-case "fpscr" when
16868 compiled on __powerpc64__.
16869 (ppc_collect_ptrace_register): New function.
16870 (ppc_supply_ptrace_register): New function.
16871 (ppc_breakpoint): Change type to "unsigned int".
16872 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16873 (the_low_target): Conditionally provide initializers for the
889bf7c5 16874 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
16875 collect_ptrace_register and supply_ptrace_register members.
16876
9b4b61c8
UW
168772008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16878
16879 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16880 * server.c (gdbserver_xmltarget): Define.
16881 (get_features_xml): Use it to replace "target.xml" and arch_string.
16882
16883 * configure.srv: Remove srv_xmltarget. Add XML files that were
16884 mentioned there to srv_xmlfiles instead. Remove conditional tests
16885 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16886 srv_xmlfiles and srv_regobj to include all possible choices.
16887 * configure.ac (srv_xmltarget): Remove.
16888 (srv_xmlfiles): Do not add "target.xml".
16889 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16890 checks for supplementary target information.
16891 * configure: Regenerate.
16892 * Makefile.in (XML_TARGET): Remove.
16893 (target.xml): Remove rule.
16894 (clean): Do not clean up target.xml.
16895 (.PRECIOUS): Do not mention target.xml.
16896
16897 * target.h (struct target_ops): Remove arch_string member.
16898 * linux-low.c (linux_arch_string): Remove.
16899 (linux_target_ops): Remove arch_string initializer.
16900 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16901 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16902 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16903 * spu-low.c (spu_arch_string): Remove.
16904 (spu_target_ops): Remove arch_string initializer.
16905 * win32-low.c (win32_arch_string): Remove.
16906 (win32_target_ops): Remove arch_string initializer.
16907 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16908 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16909 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16910
ee1a7ae4
UW
169112008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16912
16913 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16914 by collect_ptrace_register and supply_ptrace_register hooks.
16915 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16916 instead of checking for the_low_target.left_pad_xfer.
16917 (usr_store_inferior_registers): Use collect_ptrace_register callback
16918 instead of checking for the_low_target.left_pad_xfer.
16919
16920 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16921 (s390_supply_ptrace_register): Likewise.
16922 (s390_fill_gregset): Call s390_collect_ptrace_register.
16923 (the_low_target): Update.
16924
16925 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16926 (ppc_supply_ptrace_register): Likewise.
16927 (the_low_target): Update.
16928
16929 * linux-i386-low.c (the_low_target): Update.
16930 * linux-x86-64-low.c (the_low_target): Update.
16931
d61ddec4
UW
169322008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16933
16934 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16935 reg-s390.o and reg-s390x.o.
16936
16937 * linux-low.c (new_inferior): New global variable.
16938 (linux_create_inferior, linux_attach): Set it.
16939 (linux_wait_for_process): Call the_low_target.arch_setup after the
16940 target has stopped for the first time.
16941 (initialize_low): Do not call the_low_target.arch_setup.
16942
16943 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16944 (s390_set_pc): Likewise.
16945 (s390_arch_setup): New function.
16946 (the_low_target): Use s390_arch_setup as arch_setup routine.
16947
16948 * regcache.c (realloc_register_cache): New function.
16949 (set_register_cache): Call it for each existing regcache.
16950
d05b4ac3
UW
169512008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16952
16953 * server.h (init_registers): Remove prototype.
16954
16955 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16956 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16957 instead of init_registers ().
16958 * linux-arm-low.c (init_registers_arm): Add prototype.
16959 (init_registers_arm_with_iwmmxt): Likewise.
16960 (the_low_target): Add initializer for arch_setup field.
16961 * linux-cris-low.c (init_registers_cris): Add prototype.
16962 (the_low_target): Add initializer for arch_setup field.
16963 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16964 (the_low_target): Add initializer for arch_setup field.
16965 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16966 (the_low_target): Add initializer for arch_setup field.
16967 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16968 (the_low_target): Add initializer for arch_setup field.
16969 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16970 (the_low_target): Add initializer for arch_setup field.
16971 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16972 (the_low_target): Add initializer for arch_setup field.
16973 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16974 (init_registers_mips64_linux): Likewise.
16975 (the_low_target): Add initializer for arch_setup field.
16976 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16977 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16978 (the_low_target): Add initializer for arch_setup field.
16979 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16980 (init_registers_powerpc_64): Likewise.
16981 (the_low_target): Add initializer for arch_setup field.
16982 * linux-s390-low.c (init_registers_s390): Add prototype.
16983 (init_registers_s390x): Likewise.
16984 (the_low_target): Add initializer for arch_setup field.
16985 * linux-sh-low.c (init_registers_sh): Add prototype.
16986 (the_low_target): Add initializer for arch_setup field.
16987 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16988 (the_low_target): Add initializer for arch_setup field.
16989 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16990 (the_low_target): Add initializer for arch_setup field.
16991
16992 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16993 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16994 instead of init_registers ().
16995 * win32-arm-low.c (init_registers_arm): Add prototype.
16996 (the_low_target): Add initializer for arch_setup field.
16997 * win32-i386-low.c (init_registers_i386): Add prototype.
16998 (the_low_target): Add initializer for arch_setup field.
16999
17000 * spu-low.c (init_registers_spu): Add prototype.
17001 (initialize_low): Call initialie_registers_spu () instead of
17002 initialize_registers ().
17003
fd96d250
PA
170042008-02-19 Pedro Alves <pedro@codesourcery.com>
17005
17006 * server.c (handle_v_requests): When handling the vRun and vAttach
17007 packets, if already debugging a process, don't kill it. Return an
17008 error instead.
17009
d41b6bb4
DJ
170102008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17011
17012 * server.c (handle_query): Correct length check.
17013
5ac588cf
PA
170142008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17015
17016 * win32-low.c (do_initial_child_stuff): Add process handle
17017 parameter. Set current_process_handle and current_process_id from the
17018 parameters. Clear globals.
17019 (win32_create_inferior): Don't set current_process_handle and
17020 current_process_id here. Instead pass them on the call to
17021 do_initial_child_stuff.
17022 (win32_attach): Likewise.
17023 (win32_clear_inferiors): New.
17024 (win32_kill): Don't close the current process handle or the
17025 current thread handle here. Instead call win32_clear_inferiors.
17026 (win32_detach): Don't open a new handle to the process. Call
17027 win32_clear_inferiors.
17028 (win32_join): Don't rely on current_process_handle; open a new
17029 handle using the process id.
17030 (win32_wait): Call win32_clear_inferiors when the inferior process
17031 has exited.
17032
ecd7ecbc
DJ
170332008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17034
17035 * server.c (monitor_show_help): Add "exit".
17036
1525d545
MG
170372008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17038
ecd7ecbc 17039 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
17040 (clean): Add reg-xtensa.c.
17041 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
17042 * configure.srv (xtensa*-*-linux*) New target.
17043 * linux-xtensa-low.c: New.
17044 * xtensa-xtregs.c: New.
1525d545 17045
59a016f0
PA
170462008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17047
17048 * hostio.c: Don't include errno.h.
17049 (errno_to_fileio_errno): Move to hostio-errno.
17050 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17051 error number outputting to the target->hostio_last_error callback.
17052 (hostio_packet_error): Use FILEIO_EINVAL directly.
17053 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17054 calls to hostio_error.
17055 * hostio-errno.c: New.
17056 * server.h (hostio_last_error_from_errno): Declare.
17057 * target.h (target_ops): Add hostio_last_error member.
17058 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17059 as hostio_last_error handler.
889bf7c5 17060 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
17061 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17062 (wince_hostio_last_error): New functions.
17063 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17064 as hostio_last_error handler.
17065 (win32_target_ops) [!_WIN32_WCE]: Register
17066 hostio_last_error_from_errno as hostio_last_error handler.
17067 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17068 (hostio-errno.o): New rule.
17069 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17070 * configure.srv (srv_hostio_err_objs): New variable. Default to
17071 hostio-errno.o.
17072 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17073 * configure: Regenerate.
17074
2d717e4f
DJ
170752008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17076
17077 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17078 (linux_kill, linux_detach): Clean up the process list.
17079 * remote-utils.c (remote_open): Improve port number parsing.
17080 (putpkt_binary, input_interrupt): Only send interrupts if the target
17081 is running.
17082 * server.c (extended_protocol): Make static.
17083 (attached): Define earlier.
17084 (exit_requested, response_needed, program_argv): New variables.
17085 (target_running): New.
17086 (start_inferior): Clear attached here.
17087 (attach_inferior): Set attached here.
17088 (require_running): Define.
17089 (handle_query): Use require_running and target_running. Implement
17090 "monitor exit".
17091 (handle_v_attach, handle_v_run): New.
17092 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17093 (gdbserver_usage): Update.
17094 (main): Redo argument parsing. Handle --debug and --multi. Handle
17095 --attach along with other options or after the port. Save
17096 program_argv. Support no initial program. Resynchronize
17097 communication with GDB after an error. Handle "monitor exit".
17098 Use require_running and target_running. Always allow the extended
17099 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17100 restart in extended mode.
17101 * README: Refer to the GDB manual. Update --attach usage.
17102
7407e2de
AS
171032007-12-20 Andreas Schwab <schwab@suse.de>
17104
17105 * linux-low.c (STACK_SIZE): Define.
17106 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17107 (linux_test_for_tracefork): Likewise.
17108
b65d95c5
DJ
171092007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17110
17111 * linux-low.c (linux_wait_for_event): Update messages. Do not
17112 reinsert auto-delete breakpoints.
17113 * mem-break.c (struct breakpoint): Change return type of handler to
17114 int.
17115 (set_breakpoint_at): Update handler type.
17116 (reinsert_breakpoint_handler): Return 1 instead of calling
17117 delete_breakpoint.
17118 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17119 setting a new one.
17120 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17121 * mem-break.h (set_breakpoint_at): Update handler type.
17122 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17123 * win32-low.c (auto_delete_breakpoint): New.
17124 (get_child_debug_event): Use it.
17125
4e799345
DJ
171262007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17127
17128 * configure.ac: Check for pread and pwrite.
17129 * hostio.c (handle_pread): Fall back to lseek and read.
17130 (handle_pwrite): Fall back to lseek and write.
17131 * config.in, configure: Regenerated.
17132
27524b67
DJ
171332007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17134
17135 * server.c (myresume): Add own_buf argument.
17136 (main): Update calls.
17137
a20d5e98
DJ
171382007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17139
17140 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17141 * remote-utils.c (remote_open): Do not call disable_async_io.
17142 (block_async_io): Delete.
17143 (unblock_async_io): Make static.
17144 (initialize_async_io): New.
17145 * server.c (handle_v_cont): Handle async I/O here.
17146 (myresume): Likewise. Move other common resume tasks here...
17147 (main): ... from here. Call initialize_async_io. Disable async
17148 I/O before the main loop.
17149 * server.h (initialize_async_io): Declare.
17150 (block_async_io, unblock_async_io): Delete prototypes.
17151 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17152
b79d787e
DJ
171532007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17154
17155 * remote-utils.c (readchar): Allow binary data in received messages.
17156
d97903b2
PA
171572007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17158
17159 * win32-low.c (attaching): New global.
17160 (win32_create_inferior): Clear the `attaching' global.
17161 (win32_attach): Set the `attaching' global.
17162 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17163 attaching. Only set a breakpoint at the entry point if not
17164 attaching.
17165
311de423
PA
171662007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17167
17168 * server.c (main): Don't report dll events on the initial
17169 connection on attaches.
17170
6c2d16d2
PA
171712007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17172
17173 * server.c (main): Relax numerical bases supported for the pid of
17174 the --attach command line argument.
17175
5ca906e6
PA
171762007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17177
17178 * win32-low.c (win32_attach): Call OpenProcess before
17179 DebugActiveProcess, not after. Add last error output to error
17180 call.
17181
9c6c8194
PA
171822007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17183
17184 * win32-low.c (win32_get_thread_context)
17185 (win32_set_thread_context): New functions.
17186 (thread_rec): Use win32_get_thread_context.
17187 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17188 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17189 field.
17190
4d5d1aaa
PA
171912007-12-03 Leo Zayas
17192 Pedro Alves <pedro_alves@portugalmail.pt>
17193
17194 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17195 global variables.
17196 (child_add_thread): Minor cleanup.
17197 (child_continue): Resume artificially suspended threads before
17198 calling ContinueDebugEvent.
17199 (suspend_one_thread): New.
17200 (fake_breakpoint_event): New.
17201 (get_child_debug_event): Change return type to int. Check here if
17202 gdb sent an interrupt request. If a soft interrupt was requested,
17203 fake a breakpoint event. Return 0 if there is no event to handle,
17204 and 1 otherwise.
17205 (win32_wait): Don't check here if gdb sent an interrupt request.
17206 Ensure there is a valid event to handle.
17207 (win32_request_interrupt): Add soft interruption method as last
17208 resort.
17209
c436e841
PA
172102007-12-03 Leo Zayas
17211 Pedro Alves <pedro_alves@portugalmail.pt>
17212
17213 * win32-low.h (win32_thread_info): Add descriptions to the
17214 structure members. Replace `suspend_count' counter by a
17215 `suspended' flag.
17216 * win32-low.c (thread_rec): Update condition of when to get the
17217 context from the inferior. Rely on ContextFlags being set if it
17218 has already been retrieved. Only suspend the inferior thread if
17219 we haven't already. Warn if that fails.
17220 (continue_one_thread): s/suspend_count/suspended/. Only call
17221 ResumeThread once. Warn if that fails.
17222
e7b5fa67
PA
172232007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17224
17225 * win32-low.c (win32_wait): Don't read from the inferior when it
17226 has already exited.
17227
a385171d
PA
172282007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17229
17230 * Makefile.in (win32_low_h): New variable.
17231 (win32-low.o): Add dependency on $(win32_low_h).
17232 (win32-arm-low.o, win32-i386-low.o): New rules.
17233
f80c84b3
DJ
172342007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17235
17236 * hostio.c: Correct copyright year.
17237
a6b151f1
DJ
172382007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17239
17240 * Makefile.in (OBS): Add hostio.o.
17241 (hostio.o): New rule.
17242 * server.h (handle_vFile): Declare.
17243 * hostio.c: New file.
17244 * server.c (handle_v_requests): Take packet_len and new_packet_len
17245 for binary packets. Call handle_vFile.
17246 (main): Update call to handle_v_requests.
17247
f9387fc3
DJ
172482007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17249
17250 * linux-low.c: Include <sched.h>.
17251
51c2684e
DJ
172522007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17253
17254 * linux-low.c (linux_tracefork_grandchild): New.
17255 (linux_tracefork_child): Use clone.
17256 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17257
75f83163
JB
172582007-10-31 Joel Brobecker <brobecker@adacore.com>
17259
17260 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17261
da5898ce
DJ
172622007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17263
17264 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17265
24a09b5f
DJ
172662007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17267
17268 * inferiors.c (change_inferior_id): Delete.
17269 (add_pid_to_list, pull_pid_from_list): New.
17270 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17271 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17272 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17273 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17274 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17275 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17276 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17277 (using_threads): Always set to 1.
17278 (handle_extended_wait): New.
17279 (add_process): Do not set TID.
17280 (linux_create_inferior): Set must_set_ptrace_flags.
17281 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17282 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17283 (linux_thread_alive): Rename TID argument to LWPID.
17284 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17285 (linux_wait_for_event): Do not use TID or check using_threads. Update
17286 call to dead_thread_notify. Call handle_extended_wait.
17287 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17288 (send_sigstop): Delete sigstop_sent.
17289 (wait_for_sigstop): Avoid TID.
17290 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17291 (linux_test_for_tracefork): New.
17292 (linux_lookup_signals): Use thread_db_active and
17293 linux_supports_tracefork_flag.
17294 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17295 * linux-low.h (get_process_thread): Avoid TID.
17296 (struct process_ifo): Move thread_known and tid to the end. Remove
17297 sigstop_sent.
17298 (linux_attach_lwp, thread_db_init): Update prototypes.
17299 * server.h (change_inferior_id): Delete prototype.
17300 (add_pid_to_list, pull_pid_from_list): New prototypes.
17301 * thread-db.c (thread_db_use_events): New.
17302 (find_first_thread): Rename to...
17303 (find_one_thread): ...this. Update callers and messages. Do not
17304 call fatal. Check thread_db_use_events. Do not call
17305 change_inferior_id or new_thread_notify.
17306 (maybe_attach_thread): Update. Do not call new_thread_notify.
17307 (thread_db_init): Set thread_db_use_events. Check use_events.
17308 * utils.c (fatal, warning): Correct message prefix.
17309
30ed0a8f
DJ
173102007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17311
17312 * Makefile.in (clean): Remove new files.
17313 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17314 (powerpc-64.o, powerpc-64.c): New rules.
17315 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17316 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17317 with SPE.
17318 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17319 SPE targets.
17320 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17321 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17322 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17323 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17324 (target_regsets): Add AltiVec and SPE register sets.
17325 * configure.ac: Check for AltiVec and SPE.
17326 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17327 (ppc_fill_vrregset, ppc_store_vrregset): New.
17328 (target_regsets): Add AltiVec register set.
17329 * configure: Regenerated.
17330
fd462a61
DJ
173312007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17332
17333 * linux-low.c (O_LARGEFILE): Define.
17334 (linux_read_memory): Use /proc/PID/mem.
17335 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17336 * configure, config.in: Regenerated.
17337
69f223ed
DJ
173382007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17339
17340 * linux-low.c (linux_wait_for_event): Do not pass signals while
17341 single-stepping.
17342
aec18585
PA
173432007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17344
17345 * win32-low.c (create_process): New.
17346 (win32_create_inferior): Use create_process instead of
17347 CreateProcess. If create_process failed retry appending an ".exe"
17348 suffix. Store the GetLastError result immediatelly after
17349 create_process calls and use it on the call to error.
17350
34d86ddd
PA
173512007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17352
17353 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17354
5a0e3bd0
JB
173552007-08-23 Joel Brobecker <brobecker@adacore.com>
17356
17357 * configure.ac: Switch license to GPLv3.
17358
f88c79e6
MS
173592007-08-01 Michael Snyder <msnyder@access-company.com>
17360
17361 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17362
6b3d9b83
PA
173632007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17364
17365 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17366 typedef.
17367 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17368 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17369 CloseToolhelp32Snapshot.
17370 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17371 CloseToolhelp32Snapshot.
17372
c588c53c
MS
173732007-07-27 Michael Snyder <michael.snyder@access-company.com>
17374
17375 * server.c (main): Check for inferior exit before main loop.
17376
aa0403d9
PA
173772007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17378
17379 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17380 instead of on tmp_desc.
17381
255e7678
DJ
173822007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17383 Daniel Jacobowitz <dan@codesourcery.com>
17384
17385 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17386 (add_thread): Minor cleanups.
17387 (clear_inferiors): Move lower in the file. Clear the DLL
17388 list.
17389 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17390 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17391 (xml_escape_text): New.
17392 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17393 for qSupported.
17394 (handle_v_cont): Report errors.
17395 (gdbserver_version): Update.
17396 (main): Correct size of own_buf. Do not report initial DLL events.
17397 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17398 (unloaded_dll, xml_escape_text): New.
17399 * win32-low.c (enum target_waitkind): Update comments.
17400 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17401 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17402 (win32_EnumProcessModules, win32_GetModuleInformation)
17403 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17404 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17405 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17406 (win32_Module32First, win32_Module32Next, load_toolhelp)
17407 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17408 (get_child_debug_event): Handle DLL events.
17409 (win32_wait): Likewise.
17410
0d37add9
DJ
174112007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17412
17413 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17414 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17415
45e2715e
PA
174162007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17417
17418 * win32-low.c (handle_output_debug_string): Ignore event if not
17419 waiting.
17420
c5674cf1
PA
174212007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17422
17423 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17424
2bbe3cc1
DJ
174252007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17426
17427 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17428
ae13219e
DJ
174292007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17430
17431 * inferiors.c (change_inferior_id): Add comment.
17432 * linux-low.c (check_removed_breakpoint): Add an early
17433 prototype. Improve debug output.
17434 (linux_attach): Doc update.
17435 (linux_detach_one_process, linux_detach): Clean up before releasing
17436 each process.
17437 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17438 * linux-low.h (struct process_info): Doc improvement.
17439 * mem-break.c (delete_all_breakpoints): New.
17440 * mem-break.h (delete_all_breakpoints): New prototype.
17441 * thread-db.c (find_first_thread): New.
17442 (thread_db_create_event): Call it instead of
17443 thread_db_find_new_threads. Clean up unused variables.
17444 (maybe_attach_thread): Remove first thread handling.
17445 (thread_db_find_new_threads): Use find_first_thread.
17446 (thread_db_get_tls_address): Likewise.
17447
4105de34
DJ
174482007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17449
17450 * thread-db.c (thread_db_find_new_threads): Add prototype.
17451 (thread_db_create_event): Check for the main thread before adding
17452 a new thread.
17453 (maybe_attach_thread): Only enable event reporting if TID == 0.
17454 (thread_db_get_tls_address): Check for new threads.
17455
2b876972
DJ
174562007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17457
17458 * linux-low.c (linux_create_inferior): Try execv before execvp.
17459 * spu-low.c (spu_create_inferior): Likewise.
17460
7a245884
DJ
174612007-06-13 Mike Frysinger <vapier@gentoo.org>
17462
17463 * linux-low.c (linux_create_inferior): Change execv to execvp.
17464 * spu-low.c (spu_create_inferior): Likewies.
17465
117ce543
DJ
174662007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17467
17468 * Makefile.in (clean): Clean new files instead of deleted ones.
17469 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17470 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17471 rules.
17472 * configure.srv: Specify XML files and new regformats for MIPS and
17473 MIPS64 GNU/Linux.
17474 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17475 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17476 an entry for the restart register.
17477 (mips_cannot_fetch_register, mips_cannot_store_register)
17478 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17479 register names to match the XML descriptions.
17480 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17481 restart register instead of $0.
17482
0e7f50da
UW
174832007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17484 Markus Deuling <deuling@de.ibm.com>
17485
17486 * remote-utils.c (decode_xfer_write): New function.
17487 * server.h (decode_xfer_write): Add prototype.
17488 * server.c (handle_query): Add PACKET_LEN argument. Support
17489 qXfer:spu:read and qXfer:spu:write packets.
17490 (main): Pass packet_len to handle_query.
17491 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17492 * target.h (target_ops): Add qxfer_spu.
17493
374c1d38
UW
174942007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17495
17496 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17497 accessing non-seekable spufs files.
17498
bb63802a
UW
174992007-05-16 Markus Deuling <deuling@de.ibm.com>
17500
889bf7c5 17501 * server.c (handle_query): Add reply for qC packet.
bb63802a 17502
7390519e
PA
175032007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17504 Leo Zayas <lerele@champenstudios@com>
17505
17506 * server.h (check_remote_input_interrupt_request): New function.
17507 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17508 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17509 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17510 (check_remote_input_interrupt_request): New function.
17511 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 17512 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
17513 winapi_GenerateConsoleCtrlEvent): New typedefs.
17514 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17515 to 250 ms.
17516 (win32_wait): Check for remote interrupt request
17517 with check_remote_input_interrupt_request.
17518 (win32_request_interrupt): New function.
17519 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17520
34b34921
PA
175212007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17522
17523 * win32-low.c (debug_registers_changed,
17524 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17525 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17526 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17527 (thread_rec): Get context using the low target.
17528 (child_add_thread): Call thread_added on the low target,
17529 which does the same thing.
17530 (regptr): Delete.
17531 (do_initial_child_stuff): Remove debug registers references.
17532 Set context using the low target. Resume threads after
17533 setting the contexts.
17534 (child_continue): Remove dead variable. Remove debug
17535 registers references.
17536 (child_fetch_inferior_registers): Go through the low target.
17537 (do_child_store_inferior_registers): Remove.
17538 (child_store_inferior_registers): Go through the low target.
17539 (win32_resume): Remove debug registers references.
17540 Set context using the low target.
17541 (handle_exception): Change return type to void. Don't record
17542 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17543 first chance exception.
889bf7c5 17544 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
17545 goto loop. Always return after waiting for debug event.
17546 (win32_wait): Convert to switch statement. Handle spurious
17547 events.
17548
17549 * win32-i386-low.c (debug_registers_changed,
17550 debug_registers_used): New.
17551 (initial_stuff): Rename to ...
17552 (i386_initial_stuff): ... this. Clear debug registers
17553 state variables.
17554 (store_debug_registers): Delete.
17555 (i386_get_thread_context): New.
17556 (load_debug_registers): Delete.
17557 (i386_set_thread_context): New.
17558 (i386_thread_added): New.
17559 (single_step): Rename to ...
17560 (i386_single_step): ... this.
17561 (do_fetch_inferior_registers): Rename to ...
17562 (i386_fetch_inferior_register): ... this.
17563 (i386_store_inferior_register): New.
17564 (the_low_target): Adapt to new interface.
17565
17566 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17567 (arm_get_thread_context): New.
17568 (arm_set_thread_context): New.
17569 (regptr): New.
17570 (do_fetch_inferior_registers): Rename to ...
17571 (arm_fetch_inferior_register): ... this.
17572 (arm_store_inferior_register): New.
17573 (arm_wince_breakpoint): Reimplement as unsigned long.
17574 (arm_wince_breakpoint_len): Define.
17575 (the_low_target): Adapt to new interface.
17576
17577 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17578 load_debug_registers. Add get_thread_context, set_thread_context,
17579 thread_added and store_inferior_register. Rename
17580 fetch_inferior_registers to fetch_inferior_register.
17581 (regptr): Remove declaration.
17582
dd6953e1
PA
175832007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17584
17585 * linux-low.c (linux_detach): Change return type to int. Return 0.
17586 * spu-low.c (spu_detach): Likewise.
17587
444d6139
PA
175882007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17589
17590 * target.h (target_ops): Change return type of detach to int.
17591 Add join.
17592 (join_inferior): New.
17593 * server.c (main): Don't skip detach support on mingw32.
17594 If the inferior doesn't support detaching return error.
17595 Call join_inferior instead of using waitpid.
17596 * linux-low.c (linux_join): New.
17597 (linux_target_op): Add linux_join.
17598 * spu-low.c (spu_join): New.
17599 (spu_target_ops): Add spu_join.
17600 * win32-low.c (win32_detach): Adapt to new interface.
17601 Reopen current_process_handle before detaching. Issue a child
17602 resume before detaching.
17603 (win32_join): New.
17604 (win32_target_op): Add win32_join.
17605
1d5315fe
PA
176062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17607
17608 * win32-low.c (win32-attach): Fix return value.
17609 * target.h (target_ops): Describe ATTACH return values.
17610
bf914831
PA
176112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17612
17613 * win32-low.c (GETPROCADDRESS): Define.
17614 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
17615 (winapi_DebugSetProcessKillOnExit): Likewise.
17616 (win32_create_inferior): Force usage of ansi CreateProcessA.
17617 (win32_attach): Use GETPROCADDRESS.
17618 (win32_detach): Likewise.
17619
f72f3e60
PA
176202007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17621
17622 * win32-low.c (win32_wait): Don't use WSTOPSIG.
17623
ed50f18f
PA
176242007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
17625
17626 * win32-low.c: Commit leftover changes from 2007-03-29.
17627
0c2ead7e
DJ
176282007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17629
17630 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17631 fields short instead of int. Add explicit padding.
17632 (i387_cache_to_fsave): Remove unnecessary casts.
17633 (i387_fsave_to_cache): Doc fix.
17634 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17635
73725ff3
DJ
176362007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17637
17638 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17639 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17640
d99f33d8
PA
176412007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17642
17643 * configure.srv (arm*-*-mingw32ce*): Move near the other
17644 arm targets.
17645
68070c10
PA
176462007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17647
2482afc6 17648 * configure.ac: Add errno checking.
68070c10
PA
17649 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17650 sys/file.h and malloc.h.
17651 (AC_CHECK_DECLS): Add perror.
17652 (srv_mingwce): Handle.
2482afc6 17653 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
17654 win32-i386-low.o to srv_tgtobj.
17655 (i[34567]86-*-mingw*): Likewise.
17656 (arm*-*-mingw32ce*): Add case.
17657 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17658 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17659 [__MINGW32CE__] (strerror): New function.
17660 [__MINGW32CE__] (errno): Define to GetLastError.
17661 [__MINGW32CE__] (COUNTOF): New macro.
17662 (remote_open): Remove extra close call.
17663 * mem-break.c (delete_breakpoint_at): New function.
17664 * mem-break.h (delete_breakpoint_at): Declare.
17665 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17666 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17667 [USE_WIN32API] (read, write): Add char* casts.
17668 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17669 * server.h: Include wincecompat.h on Windows CE.
17670 [HAVE_ERRNO_H]: Check.
17671 (perror): Declare if not declared.
17672 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17673 (perror_with_name): Remove errno declaration.
17674 * wincecompat.h: New.
17675 * wincecompat.c: New.
17676 * win32-low.h: New.
17677 * win32-arm-low.c: New.
17678 * win32-i386-low.c: New.
17679 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17680 (OUTMSG2): Make it safe.
17681 (_T): New macro.
17682 (COUNTOF): New macro.
17683 (NUM_REGS): Get it from the low target.
17684 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17685 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17686 (thread_rec): Let low target handle debug registers.
17687 (child_add_thread): Likewise.
17688 (child_init_thread_list): Likewise.
17689 (continue_one_thread): Likewise.
17690 (regptr): New.
17691 (do_child_fetch_inferior_registers): Move to ...
17692 * win32-i386-low.c: ... here, and rename to ...
17693 (do_fetch_inferior_registers): ... this.
889bf7c5 17694 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
17695 Go through the low target.
17696 (do_child_store_inferior_registers): Use regptr.
17697 (strwinerror): New function.
17698 (win32_create_inferior): Handle Windows CE.
17699 Use strwinerror instead of strerror on Windows error
17700 codes. Add program to the error output.
17701 Don't close the main thread handle on Windows CE.
17702 (win32_attach): Use coredll.dll on Windows CE.
17703 (win32_kill): Close current process and current
17704 thread handles.
17705 (win32_detach): Use coredll.dll on Windows CE.
17706 (win32_resume): Let low target handle debug registers, and
17707 step request.
17708 (handle_exception): Add/Remove initial breakpoint. Avoid
17709 non-existant WSTOPSIG on Windows CE.
17710 (win32_read_inferior_memory): Cast to remove warning.
17711 (win32_arch_string): Go through the low target.
17712 (initialize_low): Call set_breakpoint_data with the low
17713 target's breakpoint.
17714 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17715 FOP_REGNUM, mappings): Move to ...
17716 * win32-i386-low.c: ... here.
17717 * win32-low.c (win32_thread_info): Move to ...
17718 * win32-low.h: ... here.
17719 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17720 win32-arm-low.c and wincecompat.c.
17721 (all:): Add $EXEEXT.
17722 (install-only:): Likewise.
17723 (gdbserver:): Likewise.
17724 (gdbreplay:): Likewise.
17725 * config.in: Regenerate.
17726 * configure: Regenerate.
17727
41093d81
PA
177282007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17729
17730 * win32-low.c: Rename typedef thread_info to
17731 win32_thread_info throughout.
17732
544afa54
PA
177332007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17734
17735 * win32-i386-low.c: Rename to ...
17736 * win32-low.c: ... this.
17737 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17738 * Makefile.in: Likewise.
17739
bce7165d
PA
177402007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17741
17742 * remote-utils.c (monitor_output): Constify msg parameter.
17743 * server.h (monitor_output): Likewise.
17744 * win32-i386-low.c (handle_output_debug_string): New.
17745 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17746 handle_output_debug_string.
17747 (get_child_debug_event): Likewise.
17748
506c7aa0
DJ
177492007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17750
17751 * server.c (main): Correct strtoul check.
17752
42c81e2a
DJ
177532007-03-27 Jon Ringle <jon@ringle.org>
17754
17755 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17756
9453113a
DJ
177572007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17758
17759 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17760
64a69107
DJ
177612007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17762
17763 * terminal.h: Check HAVE_SGTTY_H.
17764
177652007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
17766
17767 * remote-utils.c (remote_open): Print out the assigned port number.
17768
c74d0ad8
DJ
177692007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17770
17771 * remote-utils.c (monitor_output): New function.
17772 * server.c (debug_threads): Define here.
17773 (monitor_show_help): New function.
17774 (handle_query): Handle qRcmd.
17775 (main): Do not handle 'd' packet.
17776 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17777 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17778 of debug_threads.
17779
de7c3b4a
PA
177802007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17781
17782 * Makefile.in (EXEEXT): New.
17783 (clean): Use $(EXEEXT).
17784
ef57601b
PA
177852007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17786
17787 * target.h (target_ops): Rename send_signal to request_interrupt,
17788 and remove enum target_signal parameter.
17789 * linux-low.c (linux_request_interrupt): Rename from
17790 linux_send_signal, and always send SIGINT.
17791 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17792 and always send SIGINT.
17793 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17794 of send_signal.
17795 (input_interrupt): Likewise.
17796
820f2bda
PA
177972007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17798
17799 * server.c (get_features_xml): Check if target implemented
17800 arch_string.
17801 * win32-i386-low.c (win32_arch_string): New.
17802 (win32_target_ops): Add win32_arch_string as arch_string member.
17803
ab39bf24
UW
178042007-02-22 Markus Deuling <deuling@de.ibm.com>
17805
17806 * spu-low.c (spu_arch_string): New.
17807 (spu_target_ops): Add spu_arch_string.
17808
61ff6e04
DJ
178092007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17810
17811 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17812 * configure.ac: Do not check for terminal.h.
17813 * configure, config.in: Regenerated.
17814
fb1e4ffc
DJ
178152007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17816
17817 * Makefile.in (OBS): Add $(XML_BUILTIN).
17818 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17819 (clean): Update.
17820 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17821 (arm-with-iwmmxt.c): New.
17822 * config.in, configure: Regenerate.
17823 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17824 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17825 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17826 (arm*-*-linux*): Add iWMMXt and regset support.
17827 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17828 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17829 (arm_store_wmmxregset, target_regsets): New.
17830 * server.c (get_features_xml): Take annex argument. Check builtin
17831 XML documents.
17832 (handle_query): Handle multiple annexes.
17833
0f48aa01
DJ
178342007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17835
17836 * remote-utils.c [USE_WIN32API] (read, write): Define.
17837 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17838 write.
17839
23181151
DJ
178402007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17841
17842 * linux-i386-low.c (the_low_target): Set arch_string.
17843 * linux-x86-64-low.c (the_low_target): Likewise.
17844 * linux-low.c (linux_arch_string): New.
17845 (linux_target_ops): Add it.
17846 * linux-low.h (struct linux_target_ops): Add arch_string.
17847 * server.c (write_qxfer_response): Use const void * for DATA.
17848 (get_features_xml): New.
17849 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17850 * target.h (struct target_ops): Add arch_string method.
17851
9d606399
DJ
178522007-01-03 Denis Pilat <denis.pilat@st.com>
17853 Daniel Jacobowitz <dan@codesourcery.com>
17854
17855 * linux-low.c (linux_kill): Handle being called with no threads.
17856 * win32-i386-low.c (win32_kill): Likewise.
17857 (get_child_debug_event): Clear current_process_handle.
17858
178592006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
17860 Daniel Jacobowitz <dan@codesourcery.com>
17861
17862 * remote-utils.c (remote_open): Check the type of specified
17863 serial port devices before opening them.
17864 * server.c (main): Kill the inferior if an error occurs during
17865 the first remote_open.
17866
a5e13d24
DJ
178672006-12-05 Markus Deuling <deuling@de.ibm.com>
17868
17869 * README: Update supported targets.
17870
186947f7
DJ
178712006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17872
17873 * Makefile.in (clean): Remove reg-mips64.c.
17874 (reg-mips64.c, reg-mips64.o): New rules.
17875 * configure.srv: Handle mips64. Include regset support for mips.
17876 * linux-mips-low.c (union mips_register): New.
17877 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17878 (mips_breakpoint, mips_breakpoint_at): Use int.
17879 (mips_collect_register, mips_supply_register)
17880 (mips_collect_register_32bit, mips_supply_register_32bit)
17881 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17882 (mips_store_fpregset, target_regsets): New.
17883 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17884
a13e2c95
UW
178852006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17886
17887 * configure.srv: Add target "spu*-*-*".
17888 * Makefile.in (clean): Remove reg-spu.c.
17889 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17890 * spu-low.c: New file.
17891
cb7283db
DJ
178922006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17893
17894 * configure.ac: Correct td_thr_tls_get_addr test.
17895 * configure: Regenerated.
17896
89be2091
DJ
178972006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17898
17899 * linux-low.c (linux_wait_for_event): Reformat. Use the
17900 pass_signals array.
17901 * remote-utils.c (decode_address_to_semicolon): New.
17902 * server.c (pass_signals, handle_general_set): New.
17903 (handle_query): Mention QPassSignals for qSupported.
17904 (main): Call handle_general_set.
17905 * server.h (pass_signals, decode_address_to_semicolon): New.
17906
000ef4f0
DJ
179072006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17908
17909 * server.c (handle_query): Correct error handling for read_auxv.
17910
b7149293
UW
179112005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17912
17913 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17914 and srv_linux_thread_db to yes.
17915 * linux-s390-low.c (s390_fill_gregset): New function.
17916 (target_regsets): Define data structure.
17917
dae5f5cf
DJ
179182006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17919
17920 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17921 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17922 * config.in, configure: Regenerated.
17923 * inferiors.c (gdb_id_to_thread): New function.
17924 (gdb_id_to_thread_id): Use it.
17925 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17926 * linux-low.h (struct process_info): Add th member.
17927 (thread_db_get_tls_address): New prototype.
17928 * remote-utils.c (decode_address): Make non-static.
17929 * server.c (handle_query): Handle qGetTLSAddr.
17930 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17931 * target.h (struct target_ops): Add get_tls_address.
17932 * thread-db.c (maybe_attach_thread): Save the thread handle.
17933 (thread_db_get_tls_address): New.
17934
32ca6d61
DJ
179352006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17936
17937 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17938 (linux_resume_one_process): Take a siginfo_t *. Update all
17939 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17940 (struct pending_signals): Add a siginfo_t.
17941 (linux_wait_for_process): Always set last_status.
17942 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17943 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17944 * linux-low.h (struct process_info): Add last_status.
17945
5ffff7c1
DJ
179462006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17947
17948 * remote-utils.c (try_rle): New function.
17949 (putpkt_binary): Use it.
17950
8695c747
DJ
179512006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17952
17953 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17954 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17955 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17956 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17957 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17958 point registers.
17959
290fadea
RS
179602006-08-08 Richard Sandiford <richard@codesourcery.com>
17961
17962 * server.c (terminal_fd): New variable.
17963 (old_foreground_pgrp): Likewise.
17964 (restore_old_foreground_pgrp): New function.
17965 (start_inferior): Record the terminal file descriptor in terminal_fd
17966 and its original foreground group in old_foreground_pgrp. Register
17967 restore_old_foreground_pgrp with atexit().
17968
9f2e1e63
DJ
179692006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17970
17971 * server.c (handle_query): Correct qPart to qXfer.
17972
b80864fb
DJ
179732006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17974
17975 * configure.ac: Check for more headers which are missing on
17976 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17977 * configure.srv: Add Cygwin and mingw32.
17978 * remote-utils.c: Don't include headers unconditionally which
17979 are missing on mingw32. Include <winsock.h> for mingw32.
17980 (remote_open): Adjust for mingw32 support. Flush
17981 standard error after writing to it.
17982 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17983 (unblock_async_io, enable_async_io, disable_async_io)
17984 (readchar, getpkt): Update for Winsock support.
17985 (prepare_resume_reply): Expect a protocol signal number.
17986 * server.c: Disable <sys/wait.h> on mingw32.
17987 (start_inferior): Adjust for mingw32 support. Flush
17988 standard error after writing to it.
17989 (attach_inferior): Likewise. Use protocol signal
17990 numbers.
17991 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17992 and names.
17993 * win32-i386-low.c: New file.
17994 * Makefile.in (XM_CLIBS): Set.
17995 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17996 (win32-i386-low.o): New dependency rule.
17997 * linux-low.c (linux_wait): Use target signal numbers.
17998 * target.h (struct target_ops): Doc fix.
17999 * server.h (target_signal_to_name): New prototype.
18000 * gdbreplay.c: Don't include headers unconditionally which
18001 are missing on mingw32. Include <winsock.h> for mingw32.
18002 (remote_close, remote_open): Adjust for Winsock support.
18003 * configure, config.in: Regenerated.
18004
0876f84a
DJ
180052006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18006
18007 * server.c (decode_xfer_read, write_qxfer_response): New.
18008 (handle_query): Take a packet length argument. Handle
18009 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18010 the qSupported response.
18011 (main): Update call to handle_query.
18012
01f9e8fa
DJ
180132006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18014
18015 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18016 (putpkt_binary): Renamed from putpkt and adjusted for binary
18017 data.
18018 (putpkt): New wrapper for putpkt_binary.
18019 (readchar): Don't mask off the high bit.
18020 (decode_X_packet): New function.
18021 * server.c (main): Call putpkt_binary if a handler sets the packet
18022 length. Save the length of the incoming packet. Handle 'X'.
18023 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18024
be2a5f71
DJ
180252006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18026
18027 * server.c (handle_query): Handle qSupported.
18028
ea025f5f
DJ
180292006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18030
18031 * remote-utils.c (all_symbols_looked_up): New variable.
18032 (look_up_one_symbol): Check it.
18033 * server.h (look_up_one_symbol): New declaration.
18034 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18035
9308fc88
DJ
180362006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18037
18038 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 18039 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
18040 (PTRACE_GET_THREAD_AREA): Define.
18041 (ps_get_thread_area): New function.
18042
52fb6437
NS
180432006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18044
18045 * configure.srv (m68k*-*-uclinux*): New target.
18046 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18047 (linux_resume_one_process): Remove extraneous cast.
18048 (linux_read_offsets): New.
18049 (linux_target_op): Add linux_read_offsets on mmuless systems.
18050 * server.c (handle_query): Add qOffsets logic.
18051 * target.h (struct target_ops): Add read_offsets.
18052
21b0f40c
DJ
180532006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18054
18055 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18056 (PTRACE_GET_THREAD_AREA): Define.
18057 (ps_get_thread_area): New function.
18058 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18059 (linux-x86-64-low.o): Update.
18060
0050a760
DJ
180612006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18062
18063 * configure.ac: Remove checks for prfpregset_t.
18064 * gdb_proc_service.h: New file.
18065 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18066 new "gdb_proc_service.h".
18067 * proc-service.c: Likewise.
18068 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18069 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18070 * Makefile.in (gdb_proc_service_h): Updated.
18071 * configure, config.in: Regenerated.
18072
b92a518e
DJ
180732006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18074
18075 * remote-utils.c (prepare_resume_reply): Move declaration
18076 of gdb_id_from_wait to the top of the block.
18077
545587ee
DJ
180782006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18079
18080 * linux-low.c (regsets_store_inferior_registers): Read the regset
18081 from the target before filling it.
18082
9db87ebd
DJ
180832006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18084
18085 * server.c (attach_inferior): Return SIGTRAP for a successful
18086 attach.
18087
dd24457d
DJ
180882006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18089
18090 * Makefile.in (OBS): Add version.o.
18091 (STAGESTUFF): Delete.
18092 (version.o): Add dependencies.
18093 (version.c): Replace rule.
18094 (clean): Remove version.c.
18095 * server.c (gdbserver_version): New.
18096 (gdbserver_usage): Use printf.
18097 (main): Handle --version and --help.
18098 * server.h (version, host_name): Add declarations.
18099
6f0f660e
EZ
181002005-12-23 Eli Zaretskii <eliz@gnu.org>
18101
889bf7c5
PA
18102 * linux-arm-low.c:
18103 * linux-arm-low.c:
18104 * inferiors.c:
18105 * i387-fp.h:
18106 * i387-fp.c:
18107 * gdbreplay.c:
18108 * regcache.c:
18109 * proc-service.c:
18110 * mem-break.h:
18111 * mem-break.c:
18112 * linux-x86-64-low.c:
18113 * linux-sh-low.c:
18114 * linux-s390-low.c:
18115 * linux-ppc64-low.c:
18116 * linux-ppc-low.c:
18117 * linux-mips-low.c:
18118 * linux-m68k-low.c:
18119 * linux-m32r-low.c:
18120 * linux-low.h:
18121 * linux-low.c:
18122 * linux-ia64-low.c:
18123 * linux-i386-low.c:
18124 * linux-crisv32-low.c:
18125 * thread-db.c:
18126 * terminal.h:
18127 * target.h:
18128 * target.c:
18129 * server.h:
18130 * server.c:
18131 * remote-utils.c:
18132 * regcache.h:
18133 * utils.c:
18134 * Makefile.in:
18135 * configure.ac:
6f0f660e
EZ
18136 * gdbserver.1: Add (C) after Copyright. Update the FSF
18137 address.
18138
9d1fb177
DJ
181392005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18140
18141 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18142 (arm_breakpoint_at): Recognize both breakpoints.
18143 (the_low_target): Use the correct breakpoint instruction.
18144
011a70c2
DJ
181452005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18146
18147 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18148 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18149 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18150 (the_low_target): Update.
18151
7fb85e41
AS
181522005-10-25 Andreas Schwab <schwab@suse.de>
18153
18154 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18155
18156 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18157 (ia64_num_regs): Reduce to 462.
18158
3db0444b
DJ
181592005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18160
18161 * acinclude.m4: Correct quoting.
18162 * aclocal.m4: Regenerated.
18163
18164 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18165 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18166 (thread_db_init): Call thread_db_err_str.
18167 * configure.ac: Check for TD_VERSION.
18168 * config.in, configure: Regenerated.
18169
bee0189a
DJ
181702005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18171
18172 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18173
e9d25b98
DJ
181742005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18175
18176 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18177 is not available. Define HAVE_PTRACE_GETREGS if it is.
18178 * config.in, configure: Regenerated.
18179 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18180 * linux-i386-low.c, linux-m68k-low.c: Update to use
18181 HAVE_PTRACE_GETREGS.
18182 * linux-low.c (regsets_fetch_inferior_registers)
18183 (regsets_store_inferior_registers): Only return 0 if we processed
18184 GENERAL_REGS.
18185 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18186 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18187
a06660f7
DJ
181882005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18189
18190 * inferiors.c (struct thread_info): Add gdb_id.
18191 (add_thread): Add gdb_id argument.
18192 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18193 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18194 calls to add_thread.
18195 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18196 * server.c (handle_query): Use thread_to_gdb_id.
18197 (handle_v_cont, main): Use gdb_id_to_thread_id.
18198 * server.h (add_thread): Update prototype.
18199 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18200 prototypes.
18201
5a1f5858
DJ
182022005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18203
18204 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18205 left-padded registers.
18206 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18207 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18208
e122f1f5
SE
182092005-07-01 Steve Ellcey <sje@cup.hp.com>
18210
18211 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18212 * configure: Regenerate.
18213 * config.in: Regenerate.
18214 * server.h (NEED_DECLARATION_STRERROR):
18215 Replace with !HAVE_DECL_STRERROR.
18216
d592fa2f
DJ
182172005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18218
18219 * linux-low.c (linux_wait, linux_send_signal): Don't test
18220 an unsigned long variable for > 0 if it could be MAX_ULONG.
18221 * server.c (myresume): Likewise.
18222 * target.c (set_desired_inferior): Likewise.
18223
ccbd4912
MK
182242005-06-13 Mark Kettenis <kettenis@gnu.org>
18225
18226 * configure.ac: Simplify and improve check for socklen_t.
18227 * configure, config.in: Regenerate.
18228
f450004a
DJ
182292005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18230
18231 * acconfig.h: Remove.
18232 * configure.ac: Add a test for socklen_t. Use three-argument
18233 AC_DEFINE throughout.
18234 * config.in: Regenerated using autoheader 2.59.
18235 * configure: Regenerated.
18236
18237 * gdbreplay.c (socklen_t): Provide a default.
18238 (remote_open): Use socklen_t.
18239 * remote-utils.c (socklen_t): Provide a default.
18240 (remote_open): Use socklen_t.
18241 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18242 unsigned char.
18243
18244 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18245 char for buffers.
18246 * linux-low.c (linux_read_memory, linux_write_memory)
18247 (linux_read_auxv): Likewise.
18248 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18249 (check_mem_write): Likewise.
18250 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18251 Likewise.
18252 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18253 (registers_from_string, register_data): Likewise.
18254 * server.c (handle_query, main): Likewise.
18255 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18256 (decode_M_packet): Likewise.
18257 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18258 * target.h (struct target_ops): Update read_memory, write_memory,
18259 and read_auxv.
18260 (read_inferior_memory, write_inferior_memory): Update.
18261 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18262 to unsigned char *.
18263 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18264 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18265 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18266 linux-s390-low.c, linux-sh-low.c: Update for changes in
18267 read_inferior_memory and the_low_target->breakpoint.
18268
eee84df1
DJ
182692005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18270
18271 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18272 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18273 * configure.srv: Add powerpc64-*-linux*.
18274 * linux-ppc64-low.c: New file.
18275
45b134e5
OF
182762005-05-23 Orjan Friberg <orjanf@axis.com>
18277
18278 * linux-cris-low.c: New file with support for CRIS.
18279 * linux-crisv32-low.c: Ditto for CRISv32.
18280 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18281 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 18282 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
18283 reg-crisv32.o, and reg-crisv32.c to make rules.
18284 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18285 recognized targets.
18286
48d93c75
UW
182872005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18288
18289 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18290 of sizeof (PTRACE_XFER_TYPE).
18291 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18292
e013ee27
OF
182932005-05-12 Orjan Friberg <orjanf@axis.com>
18294
889bf7c5 18295 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
18296 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18297 pointers for hardware watchpoint support.
18298 * linux-low.h (struct linux_target_ops): Ditto.
18299 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18300 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18301 to linux_target_ops.
18302 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18303 reply packet.
18304 * server.c (main): Recognize 'Z' and 'z' packets.
18305
b0ded00b
UW
183062005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18307
18308 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18309 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18310 (the_low_target): Add new members.
18311
8643e2ad
DJ
183122005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18313
18314 * proc-service.c (ps_lgetregs): Search all_processes instead of
18315 all_threads.
18316
fc620387
DJ
183172005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18318
18319 * server.c (start_inferior): Change return type to int.
18320 (attach_inferior): Change sigptr to int *.
18321 (handle_v_cont, handle_v_requests): Change signal to int *.
18322 (main): Change signal to int.
18323
183242005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
18325
18326 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18327 * configure.srv: Add m32r*-*-linux*.
18328 * linux-m32r-low.c: New file.
18329
e0e76420
DJ
183302005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18331
18332 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18333
a1928bad
DJ
183342005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18335
18336 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18337 Take unsigned long arguments for PIDs.
18338 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18339 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18340 (wait_for_sigstop, linux_resume_one_process)
18341 (regsets_fetch_inferior_registers, linux_send_signal)
18342 (linux_read_auxv): Likewise. Update the types of variables holding
18343 PIDs. Update format string specifiers.
18344 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18345 * remote-utils.c (prepare_resume_reply): Likewise.
18346 * server.c (cont_thread, general_thread, step_thread)
18347 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18348 unsigned long.
18349 (handle_query): Update format specifiers.
18350 (handle_v_cont, main): Use strtoul for thread IDs.
18351 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18352 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18353 (general_thread, step_thread, thread_from_wait)
18354 (old_thread_from_wait): Update.
18355 * target.h (struct thread_resume): Use unsigned long for THREAD.
18356 (struct target_ops): Use unsigned long for arguments to attach and
18357 thread_alive.
18358
dcdb98d2
DJ
183592005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18360
18361 * acinclude.m4: Include bfd/bfd.m4 directly.
18362 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18363 <agriffis@toolchain.org>.
18364 * aclocal.m4, configure: Regenerated.
18365
bec39cab
AC
183662005-01-07 Andrew Cagney <cagney@gnu.org>
18367
18368 * configure.ac: Rename configure.in, require autoconf 2.59.
18369 * configure: Re-generate.
18370
434c4c77
DJ
183712004-12-08 Daniel Jacobowitz <dan@debian.org>
18372
18373 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18374 LIBS when finished.
18375 * aclocal.m4: Regenerated.
18376 * configure: Regenerated.
18377
db1d3e1b
AS
183782004-11-21 Andreas Schwab <schwab@suse.de>
18379
18380 * linux-m68k-low.c (m68k_num_gregs): Define.
18381 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18382 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18383 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18384 (m68k_breakpoint_at): New. Add to the_low_target.
18385
18386 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18387 srv_linux_thread_db to yes.
18388
43360365
JB
183892004-10-20 Joel Brobecker <brobecker@gnat.com>
18390
18391 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18392 (ARCH_SET_FS): Likewise.
18393 (ARCH_GET_FS): Likewise.
18394 (ARCH_GET_GS): Likewise.
18395
fd500816
DJ
183962004-10-16 Daniel Jacobowitz <dan@debian.org>
18397
18398 * linux-i386-low.c (ps_get_thread_area): New.
18399 * linux-x86-64-low.c (ps_get_thread_area): New.
18400 * linux-low.c: Include <sys/syscall.h>.
18401 (linux_kill_one_process): Don't kill the first thread here.
18402 (linux_kill): Kill the first thread here.
18403 (kill_lwp): New function.
18404 (send_sigstop, linux_send_signal): Use it.
18405 * proc-service.c: Clean up #ifdefs.
18406 (fpregset_info): Delete.
18407 (ps_lgetregs): Update and enable implementation.
18408 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18409 implementations.
18410 * remote-utils.c (struct sym_cache, symbol_cache): New.
18411 (input_interrupt): Print a clearer message.
18412 (async_io_enabled): New variable.
18413 (enable_async_io, disable_async_io): Use it. Update comments.
18414 (look_up_one_symbol): Use the symbol cache.
18415 * thread-db.c (thread_db_look_up_symbols): New function.
18416 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18417
f6de3c42
DJ
184182004-10-16 Daniel Jacobowitz <dan@debian.org>
18419
18420 * configure.in: Test for -rdynamic.
18421 * configure: Regenerated.
18422 * Makefile (INTERNAL_LDFLAGS): New.
18423 (gdbserver, gdbreplay): Use it.
18424
2c0fc042
AC
184252004-09-02 Andrew Cagney <cagney@gnu.org>
18426
18427 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18428
075b3282
DJ
184292004-03-23 Daniel Jacobowitz <drow@mvista.com>
18430
18431 * linux-low.c (linux_wait): Clear all_processes list also.
18432
fa6a77dc
DJ
184332004-03-12 Daniel Jacobowitz <drow@mvista.com>
18434
18435 * linux-low.c: Include <errno.h>. Remove extern declaration of
18436 errno.
18437
6d782a97
DJ
184382004-03-12 Daniel Jacobowitz <drow@mvista.com>
18439
18440 * gdbreplay.c, server.h, utils.c: Update copyright years.
18441
3a7fb99b
DJ
184422004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18443
18444 * server.c (main): Print child status or termination signal from
18445 variable 'signal', not 'sig'.
18446
c3e735a6
DJ
184472004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18448
18449 * linux-low.c (linux_read_memory): Change return type to
18450 int. Check for and return error from ptrace().
18451 * target.c (read_inferior_memory): Change return type to int. Pass
18452 back return status from the_target->read_memory().
18453 * target.h (struct target_ops): Adapt *read_memory() prototype.
18454 Update comment.
18455 (read_inferior_memory): Adapt prototype.
18456 * server.c (main): Return an error packet if
18457 read_inferior_memory() returns an error.
18458
a59d1c82
DJ
184592004-03-04 Daniel Jacobowitz <drow@mvista.com>
18460
18461 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18462 Unify with other clean targets.
18463
dc3f8883
DJ
184642004-02-29 Daniel Jacobowitz <drow@mvista.com>
18465
18466 * server.c (handle_v_cont): Call set_desired_inferior.
18467
89a208da
DJ
184682004-02-29 Daniel Jacobowitz <drow@mvista.com>
18469
18470 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18471
62ea82f5
DJ
184722004-02-29 Daniel Jacobowitz <drow@mvista.com>
18473
18474 * linux-low.c (linux_wait): Unblock async I/O.
18475 (linux_resume): Block and enable async I/O.
18476 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18477 * server.h (block_async_io, unblock_async_io): Add prototypes.
18478
6910d122
DJ
184792004-02-29 Daniel Jacobowitz <drow@mvista.com>
18480
18481 * remote-utils.c (remote_open): Print a status notice after
18482 opening a TCP port.
18483 * server.c (attach_inferior): Print a status notice after
18484 attaching.
18485
184862004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
18487
18488 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18489
c89dc5d4
DJ
184902004-02-26 Daniel Jacobowitz <drow@mvista.com>
18491
18492 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18493 error packet.
18494 * server.c, target.h: Update copyright years.
18495
4b8dad4a
RM
184962004-02-25 Roland McGrath <roland@redhat.com>
18497
18498 * target.h (struct target_ops): New member `read_auxv'.
18499 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18500 * linux-low.c (linux_read_auxv): New function.
18501 (linux_target_ops): Initialize `read_auxv' member to that.
18502
d7446758
JB
185032004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18504
18505 Committed by Jim Blandy <jimb@redhat.com>.
18506
18507 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 18508 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
18509 instead of GPR_SIZE to distiguish s390 and s390x targets.
18510
5544ad89
DJ
185112004-01-31 Daniel Jacobowitz <drow@mvista.com>
18512
18513 * linux-low.c: Update copyright year.
18514 (check_removed_breakpoint): Clear pending_is_breakpoint.
18515 (linux_set_resume_request, linux_queue_one_thread)
18516 (resume_status_pending_p): New functions.
18517 (linux_continue_one_thread): Use process->resume.
18518 (linux_resume): Only resume threads if there are no pending events.
18519 * linux-low.h (struct process_info): Add resume request
18520 pointer.
18521
2a68b70e
DJ
185222004-01-30 Daniel Jacobowitz <drow@mvista.com>
18523
18524 * regcache.c (new_register_cache): Clear the allocated register
18525 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18526
64386c31
DJ
185272003-10-13 Daniel Jacobowitz <drow@mvista.com>
18528
18529 * linux-low.c (linux_resume): Take a struct thread_resume *
18530 argument.
18531 (linux_wait): Update call.
18532 (resume_ptr): New static variable.
18533 (linux_continue_one_thread): Renamed from
18534 linux_continue_one_process. Use resume_ptr.
18535 (linux_resume): Use linux_continue_one_thread.
18536 * server.c (handle_v_cont, handle_v_requests): New functions.
18537 (myresume): New function.
18538 (main): Handle 'v' case.
18539 * target.h (struct thread_resume): New type.
18540 (struct target_ops): Change argument of "resume" to struct
18541 thread_resume *.
18542 (myresume): Delete macro.
18543
c938e9b0
L
185442003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18545
18546 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18547 (uninstall): Support DESTDIR.
18548
7f313d07
BC
18549Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18550
18551 * configure.srv: Add xscale*linux copy of arm*linux entry.
18552
3b2fc2ea
DJ
185532003-07-24 Daniel Jacobowitz <drow@mvista.com>
18554
18555 * linux-arm-low.c (arm_reinsert_addr): New function.
18556 (the_low_target): Add arm_reinsert_addr.
18557
1c0a559e
MK
185582003-07-08 Mark Kettenis <kettenis@gnu.org>
18559
18560 * mem-break.c: Remove whitespace at end of file.
18561
43d5792c
DJ
185622003-06-28 Daniel Jacobowitz <drow@mvista.com>
18563
18564 * configure.in: Check whether we need to prototype strerror.
18565 * server.h: Optionally prototype strerror.
18566 * gdbreplay.c (perror_with_name): Use strerror.
18567 * linux-low.c (linux_attach_lwp): Use strerror.
18568 * utils.c (perror_with_name): Use strerror.
18569 * config.in, configure: Regenerated.
18570
c8a86edf
DJ
185712003-06-28 Daniel Jacobowitz <drow@mvista.com>
18572
18573 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18574 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18575
73d37363
DJ
185762003-06-20 Daniel Jacobowitz <drow@mvista.com>
18577
18578 * Makefile.in (SFILES): Update.
18579 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18580 low-sun3.c: Remove files.
18581
6ad8ae5c
DJ
185822003-06-17 Daniel Jacobowitz <drow@mvista.com>
18583
18584 * linux-low.c: Move comment to linux_thread_alive where it belonged.
18585 (linux_detach_one_process, linux_detach): New functions.
18586 (linux_target_ops): Add linux_detach.
18587 * server.c (main): Handle 'D' packet.
18588 * target.h (struct target_ops): Add "detach" member.
18589 (detach_inferior): Define.
18590
1581182a
MK
185912003-06-13 Mark Kettenis <kettenis@gnu.org>
18592
18593 From Kelley Cook <kelleycook@wideopenwest.com>:
18594 * configure.srv: Accept i[34567]86 variants.
18595
e5379b03
DJ
185962003-06-05 Daniel Jacobowitz <drow@mvista.com>
18597
18598 * linux-low.c (linux_wait_for_event): Correct comment typos.
18599 (linux_resume_one_process): Call check_removed_breakpoint.
18600 (linux_send_signal): New function.
18601 (linux_target_ops): Add linux_send_signal.
18602 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
18603 of kill.
18604 * target.h (struct target_ops): Add send_signal.
18605
2ff29de4
JB
186062003-05-29 Jim Blandy <jimb@redhat.com>
18607
18608 * linux-low.c (usr_store_inferior_registers): Transfer buf in
18609 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
18610 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
18611 away part of the register's value.
18612
254787d4
DJ
186132003-03-26 Daniel Jacobowitz <drow@mvista.com>
18614
18615 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
18616 (linux_wait_for_event, linux_init_signals): Likewise.
18617
94e10508
DJ
186182003-03-17 Daniel Jacobowitz <drow@mvista.com>
18619
18620 * configure.in: Check for stdlib.h.
18621 * configure: Regenerated.
18622 * config.in: Regenerated.
18623
4c0711e0
DJ
186242003-01-04 Andreas Schwab <schwab@suse.de>
18625
18626 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
18627
ef66e766
AC
186282003-01-02 Andrew Cagney <ac131313@redhat.com>
18629
18630 * Makefile.in: Remove obsolete code.
18631
a1358604
DJ
186322002-11-20 Daniel Jacobowitz <drow@mvista.com>
18633
18634 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18635 defined(PT_FPR0_HI).
18636
23ce3b1c
DJ
186372002-11-17 Stuart Hughes <seh@zee2.com>
18638
18639 * linux-arm-low.c (arm_num_regs): Increase.
18640 (arm_regmap): Include status register.
18641
186422002-11-17 Daniel Jacobowitz <drow@mvista.com>
18643
18644 * linux-low.c (register_addr): Remove incorrect -1 check.
18645
a9fa9f7d
DJ
186462002-08-29 Daniel Jacobowitz <drow@mvista.com>
18647
18648 * linux-low.c (linux_create_inferior): Call setpgid. Return
18649 the new PID.
18650 (unstopped_p, linux_signal_pid): Remove.
18651 (linux_target_ops): Remove linux_signal_pid.
18652 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18653 global instead of target method.
18654 * target.h (struct target_ops): Remove signal_pid. Update comment
18655 for create_inferior.
18656 * server.c (signal_pid): New variable.
18657 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 18658 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
18659 (attach_inferior): Set signal_pid.
18660
17574093
DJ
186612002-08-23 Daniel Jacobowitz <drow@mvista.com>
18662
18663 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18664
186652002-08-20 Jim Blandy <jimb@redhat.com>
18666
18667 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18668 default for this.
18669
186702002-08-01 Andrew Cagney <cagney@redhat.com>
18671
18672 * Makefile.in: Make chill references obsolete.
18673
186742002-07-24 Kevin Buettner <kevinb@redhat.com>
18675
18676 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18677 * configure: Regenerate.
18678 * config.in: Regenerate.
18679
186802002-07-09 David O'Brien <obrien@FreeBSD.org>
18681
18682 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18683 (perror_with_name, remote_close, remote_open, expect, play): Static.
18684
186852002-07-04 Michal Ludvig <mludvig@suse.cz>
18686
4b8dad4a 18687 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
18688 byte offsets instead of an array of indexes.
18689 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18690
186912002-06-13 Daniel Jacobowitz <drow@mvista.com>
18692
18693 * regcache.c: Add comment.
18694
186952002-06-11 Daniel Jacobowitz <drow@mvista.com>
18696
18697 * thread-db.c: New file.
18698 * proc-service.c: New file.
18699 * acinclude.m4: New file.
18700 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18701 proc-service.o, and thread-db.o.
18702 (linux-low.o): Add USE_THREAD_DB.
18703 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18704 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18705 * aclocal.m4: Regenerated.
18706 * config.in: Regenerated.
18707 * configure: Regenerated.
18708 * configure.in: Check for proc_service.h, sys/procfs.h,
18709 thread_db.h, and linux/elf.h headrs.
18710 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18711 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18712 Check for -lthread_db and thread support.
18713 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18714 PowerPC, and SuperH.
18715 * i387-fp.c: Constify arguments.
18716 * i387-fp.h: Likewise.
18717 * inferiors.c: (struct thread_info): Renamed from
18718 `struct inferior_info'. Remove PID member. Use generic inferior
18719 list header. All uses updated.
18720 (inferiors, signal_pid): Removed.
18721 (all_threads): New variable.
18722 (get_thread): Define.
18723 (add_inferior_to_list): New function.
18724 (for_each_inferior): New function.
18725 (change_inferior_id): New function.
18726 (add_inferior): Removed.
18727 (remove_inferior): New function.
18728 (add_thread): New function.
18729 (free_one_thread): New function.
18730 (remove_thread): New function.
18731 (clear_inferiors): Use for_each_inferior and free_one_thread.
18732 (find_inferior): New function.
18733 (find_inferior_id): New function.
18734 (inferior_target_data): Update argument type.
18735 (set_inferior_target_data): Likewise.
18736 (inferior_regcache_data): Likewise.
18737 (set_inferior_regcache_data): Likewise.
18738 * linux-low.c (linux_bp_reinsert): Remove.
18739 (all_processes, stopping_threads, using_thrads)
18740 (struct pending_signals, debug_threads, pid_of): New.
18741 (inferior_pid): Replace with macro.
18742 (struct inferior_linux_data): Remove.
18743 (get_stop_pc, add_process): New functions.
18744 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18745 Use add_process and add_thread.
18746 (linux_attach_lwp): New function, based on old linux_attach. Use
18747 add_process and add_thread. Set stop_expected for new threads.
18748 (linux_attach): New function.
18749 (linux_kill_one_process): New function.
18750 (linux_kill): Kill all LWPs.
18751 (linux_thread_alive): Use find_inferior_id.
18752 (check_removed_breakpoints, status_pending_p): New functions.
18753 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18754 Update. Use WNOHANG. Wait for cloned processes also. Update process
18755 struct for the found process.
18756 (linux_wait_for_event): New function.
18757 (linux_wait): Use it. Support LWPs.
18758 (send_sigstop, wait_for_sigstop, stop_all_processes)
18759 (linux_resume_one_process, linux_continue_one_process): New functions.
18760 (linux_resume): Support LWPs.
18761 (REGISTER_RAW_SIZE): Remove.
18762 (fetch_register): Use register_size instead. Call supply_register.
18763 (usr_store_inferior_registers): Likewise. Call collect_register.
18764 Fix recursive case.
18765 (regsets_fetch_inferior_registers): Improve error message.
18766 (regsets_store_inferior_registers): Add debugging.
18767 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18768 (unstopped_p, linux_signal_pid): New functions.
18769 (linux_target_ops): Add linux_signal_pid.
18770 (linux_init_signals): New function.
18771 (initialize_low): Call it. Initialize using_threads.
18772 * regcache.c (inferior_regcache_data): Add valid
18773 flag.
18774 (get_regcache): Fetch registers lazily. Add fetch argument
18775 and update all callers.
18776 (regcache_invalidate_one, regcache_invalidate): New
18777 functions.
18778 (new_register_cache): Renamed from create_register_cache.
18779 Return the new regcache.
18780 (free_register_cache): Change argument to a void *.
18781 (registers_to_string, registers_from_string): Call get_regcache
18782 with fetch flag set.
18783 (register_data): Make static. Pass fetch flag to get_regcache.
18784 (supply_register): Call get_regcache with fetch flag clear.
18785 (collect_register): Call get_regcache with fetch flag set.
18786 (collect_register_as_string): New function.
18787 * regcache.h: Update.
18788 * remote-utils.c (putpkt): Flush after debug output and use
18789 stderr.
18790 Handle input interrupts while waiting for an ACK.
18791 (input_interrupt): Use signal_pid method.
18792 (getpkt): Flush after debug output and use stderr.
18793 (outreg): Use collect_register_as_string.
18794 (new_thread_notify, dead_thread_notify): New functions.
18795 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18796 and general_thread.
18797 (look_up_one_symbol): Flush after debug output.
18798 * server.c (step_thread, server_waiting): New variables.
18799 (start_inferior): Don't use signal_pid. Update call to mywait.
18800 (attach_inferior): Update call to mywait.
18801 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18802 (main): Don't fetch/store registers explicitly. Use
18803 set_desired_inferior. Support proposed ``Hs'' packet. Update
18804 calls to mywait.
18805 * server.h: Update.
18806 (struct inferior_list, struct_inferior_list_entry): New.
18807 * target.c (set_desired_inferior): New.
18808 (write_inferior_memory): Constify.
18809 (mywait): New function.
18810 * target.h: Update.
18811 (struct target_ops): New signal_pid method.
18812 (mywait): Removed macro, added prototype.
18813
18814 * linux-low.h (regset_func): Removed.
18815 (regset_fill_func, regset_store_func): New.
18816 (enum regset_type): New.
18817 (struct regset_info): Add type field. Use new operation types.
18818 (struct linux_target_ops): stop_pc renamed to get_pc.
18819 Add decr_pc_after_break and breakpoint_at.
18820 (get_process, get_thread_proess, get_process_thread)
18821 (strut process_info, all_processes, linux_attach_lwp)
18822 (thread_db_init): New.
18823
18824 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18825 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18826 (the_low_target): Add new members.
18827 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18828 (i386_store_fpxregset): Constify.
18829 (target_regsets): Add new kind identifier.
18830 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18831 (i386_set_pc): Add debugging.
18832 (i386_breakpoint_at): New function.
18833 (the_low_target): Add new members.
18834 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18835 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18836 (mips_breakpoint_at): New.
18837 (the_low_target): Add new members.
18838 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18839 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18840 (the_low_target): Add new members.
18841 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18842 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18843 (the_low_target): Add new members.
18844 * linux-x86-64-low.c (target_regsets): Add new kind
18845 identifier.
18846
188472002-05-15 Daniel Jacobowitz <drow@mvista.com>
18848
18849 From Martin Pool <mbp@samba.org>:
18850 * server.c (gdbserver_usage): New function.
18851 (main): Call it.
18852
188532002-05-14 Daniel Jacobowitz <drow@mvista.com>
18854
18855 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18856 stop_at -> stop_pc.
18857
188582002-05-04 Andrew Cagney <ac131313@redhat.com>
18859
18860 * Makefile.in: Remove obsolete code.
18861
188622002-04-24 Michal Ludvig <mludvig@suse.cz>
18863
18864 * linux-low.c (regsets_fetch_inferior_registers),
18865 (regsets_store_inferior_registers): Removed cast to int from
18866 ptrace() calls.
18867 * regcache.h: Added declaration of struct inferior_info.
18868
188692002-04-20 Daniel Jacobowitz <drow@mvista.com>
18870
18871 * inferiors.c (struct inferior_info): Add regcache_data.
18872 (add_inferior): Call create_register_cache.
18873 (clear_inferiors): Call free_register_cache.
18874 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18875 * regcache.c (struct inferior_regcache_data): New.
18876 (registers): Remove.
18877 (get_regcache): New function.
18878 (create_register_cache, free_register_cache): New functions.
18879 (set_register_cache): Don't initialize the register cache here.
18880 (registers_to_string, registers_from_string, register_data): Call
18881 get_regcache.
18882 * regcache.h: Add prototypes.
18883 * server.h: Likewise.
18884
188852002-04-20 Daniel Jacobowitz <drow@mvista.com>
18886
18887 * mem-break.c: New file.
18888 * mem-break.h: New file.
18889 * Makefile.in: Add mem-break.o rule; update server.h
18890 dependencies.
18891 * inferiors.c (struct inferior_info): Add target_data
18892 member.
18893 (clear_inferiors): Free target_data member if set.
18894 (inferior_target_data, set_inferior_target_data): New functions.
18895 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18896 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18897 * linux-low.c (linux_bp_reinsert): New variable.
18898 (struct inferior_linux_data): New.
18899 (linux_create_inferior): Use set_inferior_target_data.
18900 (linux_attach): Likewise. Call add_inferior.
18901 (linux_wait_for_one_inferior): New function.
18902 (linux_wait): Call it.
18903 (linux_write_memory): Add const.
18904 (initialize_low): Call set_breakpoint_data.
18905 * linux-low.h (struct linux_target_ops): Add breakpoint
18906 handling members.
18907 * server.c (attach_inferior): Remove extra add_inferior
18908 call.
18909 * server.h: Include mem-break.h. Update inferior.c
18910 prototypes.
18911 * target.c (read_inferior_memory)
18912 (write_inferior_memory): New functions.
18913 * target.h (read_inferior_memory)
18914 (write_inferior_memory): Change macros to prototypes.
18915 (struct target_ops): Update comments. Add const to write_memory
18916 definition.
18917
189182002-04-11 Daniel Jacobowitz <drow@mvista.com>
18919
18920 * linux-low.c (usr_store_inferior_registers): Support
18921 registers which are allowed to fail to store.
18922 * linux-low.h (linux_target_ops): Likewise.
18923 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18924 (ppc_cannot_store_register): FPSCR may not be storable.
18925
189262002-04-09 Daniel Jacobowitz <drow@mvista.com>
18927
18928 * server.h: Include <string.h> if HAVE_STRING_H.
18929 * ChangeLog: Correct paths in last ChangeLog entry.
18930
189312002-04-09 Daniel Jacobowitz <drow@mvista.com>
18932
18933 * linux-low.h: Remove obsolete prototypes.
18934 (struct linux_target_ops): New.
18935 (extern the_low_target): New.
18936 * linux-low.c (num_regs, regmap): Remove declarations.
18937 (register_addr): Use the_low_target explicitly.
18938 (fetch_register): Likewise.
18939 (usr_fetch_inferior_registers): Likewise.
18940 (usr_store_inferior_registers): Likewise.
18941 * linux-arm-low.c (num_regs): Remove.
18942 (arm_num_regs): Define.
18943 (arm_regmap): Renamed from regmap, made static.
18944 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18945 made static.
18946 (arm_cannot_store_register): Renamed from cannot_store_register,
18947 made static.
18948 (the_low_target): New.
18949 * linux-i386-low.c (num_regs): Remove.
18950 (i386_num_regs): Define.
18951 (i386_regmap): Renamed from regmap, made static.
18952 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18953 made static.
18954 (i386_cannot_store_register): Renamed from cannot_store_register,
18955 made static.
18956 (the_low_target): New.
18957 * linux-ia64-low.c (num_regs): Remove.
18958 (ia64_num_regs): Define.
18959 (ia64_regmap): Renamed from regmap, made static.
18960 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18961 made static.
18962 (ia64_cannot_store_register): Renamed from cannot_store_register,
18963 made static.
18964 (the_low_target): New.
18965 * linux-m68k-low.c (num_regs): Remove.
18966 (m68k_num_regs): Define.
18967 (m68k_regmap): Renamed from regmap, made static.
18968 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18969 made static.
18970 (m68k_cannot_store_register): Renamed from cannot_store_register,
18971 made static.
18972 (the_low_target): New.
18973 * linux-mips-low.c (num_regs): Remove.
18974 (mips_num_regs): Define.
18975 (mips_regmap): Renamed from regmap, made static.
18976 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18977 made static.
18978 (mips_cannot_store_register): Renamed from cannot_store_register,
18979 made static.
18980 (the_low_target): New.
18981 * linux-ppc-low.c (num_regs): Remove.
18982 (ppc_num_regs): Define.
18983 (ppc_regmap): Renamed from regmap, made static.
18984 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18985 made static.
18986 (ppc_cannot_store_register): Renamed from cannot_store_register,
18987 made static.
18988 (the_low_target): New.
18989 * linux-s390-low.c (num_regs): Remove.
18990 (s390_num_regs): Define.
18991 (s390_regmap): Renamed from regmap, made static.
18992 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18993 made static.
18994 (s390_cannot_store_register): Renamed from cannot_store_register,
18995 made static.
18996 (the_low_target): New.
18997 * linux-sh-low.c (num_regs): Remove.
18998 (sh_num_regs): Define.
18999 (sh_regmap): Renamed from regmap, made static.
19000 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19001 made static.
19002 (sh_cannot_store_register): Renamed from cannot_store_register,
19003 made static.
19004 (the_low_target): New.
19005 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19006 (the_low_target): New.
19007
190082002-04-09 Daniel Jacobowitz <drow@mvista.com>
19009
19010 * Makefile.in: Add stamp-h target.
19011 * configure.in: Create stamp-h.
19012 * configure: Regenerated.
19013
190142002-04-09 Daniel Jacobowitz <drow@mvista.com>
19015
19016 * inferiors.c: New file.
19017 * target.c: New file.
19018 * target.h: New file.
19019 * Makefile.in: Add target.o and inferiors.o. Update
19020 dependencies.
19021 * linux-low.c (inferior_pid): New static variable,
19022 moved from server.c.
19023 (linux_create_inferior): Renamed from create_inferior.
19024 Call add_inferior. Return 0 on success instead of a PID.
19025 (linux_attach): Renamed from myattach.
19026 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19027 (linux_thread_alive): Renamed from mythread_alive.
19028 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19029 child dies.
19030 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19031 (regsets_store_inferior_registers): Correct error message.
19032 Add missing ``return 0''.
19033 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19034 (linux_store_registers): Renamed from store_inferior_registers.
19035 (linux_read_memory): Renamed from read_inferior_memory.
19036 (linux_write_memory): Renamed from write_inferior_memory.
19037 (linux_target_ops): New structure.
19038 (initialize_low): Call set_target_ops ().
19039 * remote-utils.c (unhexify): New function.
19040 (hexify): New function.
19041 (input_interrupt): Send signals to ``signal_pid''.
19042 * server.c (inferior_pid): Remove.
19043 (start_inferior): Update create_inferior call.
19044 (attach_inferior): Call add_inferior.
19045 (handle_query): New function.
19046 (main): Call handle_query for `q' packets.
19047 * server.h: Include "target.h". Remove obsolete prototypes.
19048 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19049
190502002-04-09 Daniel Jacobowitz <drow@mvista.com>
19051
19052 * Makefile.in: Add WARN_CFLAGS. Update configury
19053 dependencies.
19054 * configure.in: Check for <string.h>
19055 * configure: Regenerate.
19056 * config.in: Regenerate.
19057 * gdbreplay.c: Include needed system headers.
19058 (remote_open): Remove strchr prototype.
19059 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19060 * regcache.c (supply_register): Change buf argument to const void *.
19061 (supply_register_by_name): Likewise.
19062 (collect_register): Change buf argument to void *.
19063 (collect_register_by_name): Likewise.
19064 * regcache.h: Add missing prototypes.
19065 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19066 * server.c (handle_query): New function.
19067 (attached): New static variable, moved out of main.
19068 (main): Quiet longjmp clobber warnings.
19069 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19070 * utils.c (error): Remove NORETURN.
19071 (fatal): Likewise.
This page took 2.27803 seconds and 4 git commands to generate.