gdbserver: turn target ops 'read_pc' and 'write_pc' into methods
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
770d8f6a
TBA
12020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's read_pc and write_pc ops into
4 methods of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target ops.
7 (class process_target): Add the target ops.
8 * target.cc (process_target::read_pc): Define.
9 (process_target::write_pc): Define.
10
11 Update the derived classes and callers below.
12
13 * regcache.cc (regcache_read_pc): Update.
14 (regcache_write_pc): Update.
15 * linux-low.cc (linux_target_ops): Update.
16 (linux_read_pc): Turn into ...
17 (linux_process_target::read_pc): ... this.
18 (linux_write_pc): Turn into ...
19 (linux_process_target::write_pc): ... this.
20 * linux-low.h (class linux_process_target): Update.
21 * lynx-low.cc (lynx_target_ops): Update.
22 * nto-low.cc (nto_target_ops): Update.
23 * win32-low.cc (win32_target_ops): Update.
24
290732bf
TBA
252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
26
27 Turn process_stratum_target's supports_tracepoints op into a
28 method of process_target.
29
30 * target.h (struct process_stratum_target): Remove the target op.
31 (class process_target): Add the target op.
32 (target_supports_tracepoints): Update the macro.
33 * target.cc (process_target::supports_tracepoints): Define.
34
35 Update the derived classes and callers below.
36
37 * linux-low.cc (linux_target_ops): Update.
38 (linux_supports_tracepoints): Turn into ...
39 (linux_process_target::supports_tracepoints): ... this.
40 * linux-low.h (class linux_process_target): Update.
41 * lynx-low.cc (lynx_target_ops): Update.
42 * nto-low.cc (nto_target_ops): Update.
43 * win32-low.cc (win32_target_ops): Update.
44
0df28b1b
TBA
452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
46
47 Turn process_stratum_target's process_qsupported op into a method
48 of process_target.
49
50 * target.h (struct process_stratum_target): Remove the target op.
51 (class process_target): Add the target op.
52 (target_process_qsupported): Update the macro.
53 * target.cc (process_target::process_qsupported): Define.
54
55 Update the derived classes and callers below.
56
57 * linux-low.cc (linux_target_ops): Update.
58 (linux_process_qsupported): Turn into ...
59 (linux_process_target::process_qsupported): ... 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
9da41fda
TBA
652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
66
67 Turn process_stratum_target's read_loadmap 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. Also add
72 'supports_read_loadmap'.
73 * target.cc (process_target::read_loadmap): Define.
74 (process_target::supports_read_loadmap): Define.
75
76 Update the derived classes and callers below.
77
78 * server.cc (handle_qxfer_fdpic): Update.
79 (handle_query): Update.
80 * linux-low.cc (linux_target_ops): Update.
81 (linux_process_target::supports_read_loadmap): Define.
82 (linux_read_loadmap): Turn into ...
83 (linux_process_target::read_loadmap): ... this.
84 * linux-low.h (class linux_process_target): Update.
85 * lynx-low.cc (lynx_target_ops): Update.
86 * nto-low.cc (nto_target_ops): Update.
87 * win32-low.cc (win32_target_ops): Update.
88
95a45fc1
TBA
892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
90
91 Turn process_stratum_target's core_of_thread op into a method of
92 process_target.
93
94 * target.h (struct process_stratum_target): Remove the target op.
95 (class process_target): Add the target op.
96 (target_core_of_thread): Update the macro.
97 * target.cc (process_target::core_of_thread): Define.
98
99 Update the derived classes and callers below.
100
101 * linux-low.cc (linux_target_ops): Update.
102 (linux_process_target::core_of_thread): Define.
103 * linux-low.h (class linux_process_target): Update.
104 * lynx-low.cc (lynx_target_ops): Update.
105 * nto-low.cc (nto_target_ops): Update.
106 * win32-low.cc (win32_target_ops): Update.
107
55cf3021
TBA
1082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
109
110 Turn process_stratum_target's handle_monitor_command op into a
111 method of process_target.
112
113 * target.h (struct process_stratum_target): Remove the target op.
114 (class process_target): Add the target op.
115 (target_handle_monitor_command): Update the macro.
116 * target.cc (process_target::handle_monitor_command): Define.
117
118 Update the derived classes and callers below.
119
120 * server.cc (handle_query): Update.
121 * linux-low.cc (linux_target_ops): Update.
122 (linux_process_target::handle_monitor_command): Define.
123 * linux-low.h (class linux_process_target): Update.
124 * lynx-low.cc (lynx_target_ops): Update.
125 * nto-low.cc (nto_target_ops): Update.
126 * win32-low.cc (win32_target_ops): Update.
127
fb00dfce
TBA
1282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
129
130 Turn process_stratum_target's handle_new_gdb_connection op into a
131 method of process_target.
132
133 * target.h (struct process_stratum_target): Remove the target op.
134 (class process_target): Add the target op.
135 (target_handle_new_gdb_connection): Update the macro.
136 * target.cc (process_target::handle_new_gdb_connection): Define.
137
138 Update the derived classes and callers below.
139
140 * linux-low.cc (linux_target_ops): Update.
141 (linux_handle_new_gdb_connection): Turn into ...
142 (linux_process_target::handle_new_gdb_connection): ... this.
143 * linux-low.h (class linux_process_target): Update.
144 * lynx-low.cc (lynx_target_ops): Update.
145 * nto-low.cc (nto_target_ops): Update.
146 * win32-low.cc (win32_target_ops): Update.
147
9690a72a
TBA
1482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
149
150 Turn process_stratum_target's supports_fork_events,
151 supports_vfork_events, and supports_exec_events ops into methods
152 of process_target.
153
154 * target.h (struct process_stratum_target): Remove the target ops.
155 (class process_target): Add the target ops.
156 (target_supports_fork_events): Update the macro.
157 (target_supports_vfork_events): Update the macro.
158 (target_supports_exec_events): Update the macro.
159 * target.cc (process_target::supports_fork_events): Define.
160 (process_target::supports_vfork_events): Define.
161 (process_target::supports_exec_events): Define.
162
163 Update the derived classes and callers below.
164
165 * linux-low.cc (linux_target_ops): Update.
166 (linux_supports_fork_events): Turn into ...
167 (linux_process_target::supports_fork_events): ... this.
168 (linux_supports_vfork_events): Turn into ...
169 (linux_process_target::supports_vfork_events): ... this.
170 (linux_supports_exec_events): Turn into ...
171 (linux_process_target::supports_exec_events): ... this.
172 * linux-low.h (class linux_process_target): Update.
173 * lynx-low.cc (lynx_target_ops): Update.
174 * nto-low.cc (nto_target_ops): Update.
175 * win32-low.cc (win32_target_ops): Update.
176
652aef77
TBA
1772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
178
179 Turn process_stratum_target's supports_multi_process op into a
180 method of process_target.
181
182 * target.h (struct process_stratum_target): Remove the target op.
183 (class process_target): Add the target op.
184 * target.cc (process_target::supports_multi_process): Define.
185 (target_supports_multi_process): Update.
186
187 Update the derived classes and callers below.
188
189 * linux-low.cc (linux_target_ops): Update.
190 (linux_supports_multi_process): Turn into ...
191 (linux_process_target::supports_multi_process): ... this.
192 * linux-low.h (class linux_process_target): Update.
193 * lynx-low.cc (lynx_target_ops): Update.
194 * nto-low.cc (nto_target_ops): Update.
195 * win32-low.cc (win32_target_ops): Update.
196
0dc587d4
TBA
1972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
198
199 Turn process_stratum_target's supports_non_stop, async, and
200 start_non_stop ops into methods of process_target.
201
202 * target.h (struct process_stratum_target): Remove the target ops.
203 (class process_target): Add the target ops.
204 (target_supports_non_stop): Update the macro.
205 (target_async): Update the macro.
206 (start_non_stop): Remove declaration.
207 * target.cc (process_target::supports_non_stop): Define.
208 (process_target::async): Define.
209 (process_target::start_non_stop): Define.
210 (start_non_stop): Remove.
211
212 Update the derived classes and callers below.
213
214 * server.cc (handle_qxfer_siginfo): Update.
215 (handle_query): Update.
216 * linux-low.cc (linux_target_ops): Update.
217 (linux_supports_non_stop): Turn into ...
218 (linux_process_target::supports_non_stop): ... this.
219 (linux_async): Turn into ...
220 (linux_process_target::async): ... this.
221 (linux_start_non_stop): Turn into ...
222 (linux_process_target::start_non_stop): ... this.
223 * linux-low.h (class linux_process_target): Update.
224 * lynx-low.cc (lynx_target_ops): Update.
225 * nto-low.cc (nto_target_ops): Update.
226 (nto_supports_non_stop): Remove; rely on the default behavior
227 instead.
228 * win32-low.cc (win32_target_ops): Update.
229
d7abedf7
TBA
2302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
231
232 Turn process_stratum_target's qxfer_siginfo 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_siginfo'.
238 * target.cc (process_target::qxfer_siginfo): Define.
239 (process_target::supports_qxfer_siginfo): Define.
240
241 Update the derived classes and callers below.
242
243 * server.cc (handle_qxfer_siginfo): Update.
244 (handle_query): Update.
245 * linux-low.cc (linux_target_ops): Update.
246 (linux_process_target::supports_qxfer_siginfo): Define.
247 (linux_xfer_siginfo): Turn into ...
248 (linux_process_target::qxfer_siginfo): ... 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
2d0795ee
TBA
2542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255
256 Turn process_stratum_target's qxfer_osdata op into a method of
257 process_target.
258
259 * target.h (struct process_stratum_target): Remove the target op.
260 (class process_target): Add the target op. Also add
261 'supports_qxfer_osdata'.
262 * target.cc (process_target::qxfer_osdata): Define.
263 (process_target::supports_qxfer_osdata): Define.
264
265 Update the derived classes and callers below.
266
267 * server.cc (handle_qxfer_osdata): Update.
268 (handle_query): Update.
269 * linux-low.cc (linux_target_ops): Update.
270 (linux_process_target::supports_qxfer_osdata): Define.
271 (linux_qxfer_osdata): Turn into ...
272 (linux_process_target::qxfer_osdata): ... this.
273 * linux-low.h (class linux_process_target): Update.
274 * lynx-low.cc (lynx_target_ops): Update.
275 * nto-low.cc (nto_target_ops): Update.
276 * win32-low.cc (win32_target_ops): Update.
277
ea06bbaa
TBA
2782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
279
280 Turn process_stratum_target's hostio_last_error op into a
281 method of process_target.
282
283 * target.h (struct process_stratum_target): Remove the target op.
284 (class process_target): Add the target op.
285 * target.cc: Add "hostio.h" to includes.
286 (process_target::hostio_last_error): Define.
287
288 Update the derived classes and callers below.
289
290 * hostio.cc (hostio_error): Update.
291 * linux-low.cc: Remove "hostio.h" from includes.
292 (linux_target_ops): Update.
293 * lynx-low.cc (lynx_target_ops): Update.
294 * nto-low.cc (nto_target_ops): Update.
295 * win32-low.h (class win32_process_target): Update.
296 * win32-low.cc (win32_target_ops): Update.
297 (wince_hostio_last_error): Turn into ...
298 (win32_process_target::hostio_last_error): ... this.
299
6e3fd7e9
TBA
3002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
301
302 Turn process_stratum_target's get_tls_address op into a method of
303 process_target.
304
305 * target.h (struct process_stratum_target): Remove the target op.
306 (class process_target): Add the target op. Also add
307 'supports_get_tls_address'.
308 * target.cc (process_target::get_tls_address): Define.
309 (process_target::supports_get_tls_address): Define.
310
311 Update the derived classes and callers below.
312
313 * server.cc (handle_query): Update.
314 * linux-low.cc (linux_target_ops): Update.
315 (linux_process_target::supports_get_tls_address): Define.
316 (linux_process_target::get_tls_address): Define.
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
5203ae1e
TBA
3222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
323
324 Turn process_stratum_target's read_offsets op into a method of
325 process_target.
326
327 * target.h (struct process_stratum_target): Remove the target op.
328 (class process_target): Add the target op. Also add
329 'supports_read_offsets'.
330 * target.cc (process_target::read_offsets): Define.
331 (process_target::supports_read_offsets): Define.
332
333 Update the derived classes and callers below.
334
335 * server.cc (handle_query): Update.
336 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
337 (linux_target_ops): Update.
338 (linux_process_target::supports_read_offsets): Define.
339 (linux_read_offsets): Turn into ...
340 (linux_process_target::read_offsets): ... this.
341 * linux-low.h (class linux_process_target): Update.
342 * lynx-low.cc (lynx_target_ops): Update.
343 * nto-low.cc (nto_target_ops): Update.
344 * win32-low.cc (win32_target_ops): Update.
345
6eeb5c55
TBA
3462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
347
348 Turn process_stratum_target's stopped_by_watchpoint and
349 stopped_data_address ops into methods of process_target.
350
351 * target.h (struct process_stratum_target): Remove the target ops.
352 (class process_target): Add the target ops.
353 * target.cc (process_target::stopped_by_watchpoint): Define.
354 (process_target::stopped_data_address): Define.
355
356 Update the derived classes and callers below.
357
358 * remote-utils.cc (prepare_resume_reply): Update.
359 * linux-low.cc (linux_target_ops): Update.
360 (linux_stopped_by_watchpoint): Turn into ...
361 (linux_process_target::stopped_by_watchpoint): ... this.
362 (linux_stopped_data_address): Turn into ...
363 (linux_process_target::stopped_data_address): ... this.
364 * linux-low.h (class linux_process_target): Update.
365 * lynx-low.cc (lynx_target_ops): Update.
366 * nto-low.cc (nto_target_ops): Update.
367 (nto_stopped_by_watchpoint): Turn into ...
368 (nto_process_target::stopped_by_watchpoint): ... this.
369 (nto_stopped_data_address): Turn into ...
370 (nto_process_target::stopped_data_address): ... this.
371 * nto-low.h (class nto_process_target): Update.
372 * win32-low.cc (win32_target_ops): Update.
373 (win32_stopped_by_watchpoint): Turn into ...
374 (win32_process_target::stopped_by_watchpoint): ... this.
375 (win32_stopped_data_address): Turn into ...
376 (win32_process_target::stopped_data_address): ... this.
377 * win32-low.h (class win32_process_target): Update.
378
22aa6223
TBA
3792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
380
381 Turn process_stratum_target's supports_hardware_single_step op into
382 a method of process_target.
383
384 * target.h (struct process_stratum_target): Remove the target op.
385 (class process_target): Add the target op.
386 (target_supports_hardware_single_step): Update the macro.
387 (target_can_do_hardware_single_step): Remove declaration.
388 * target.cc (process_target::supports_hardware_single_step): Define.
389 (target_can_do_hardware_single_step): Remove.
390
391 Update the derived classes and callers below.
392
393 * linux-low.h (class linux_process_target): Update.
394 * linux-low.cc (linux_target_ops): Update.
395 (linux_supports_hardware_single_step): Turn into ...
396 (linux_process_target::supports_hardware_single_step): ... this.
397 * lynx-low.h (class lynx_process_target): Update.
398 * lynx-low.cc (lynx_target_ops): Update.
399 (lynx_process_target::supports_hardware_single_step): Define.
400 * nto-low.h (class nto_process_target): Update.
401 * nto-low.cc (nto_target_ops): Update.
402 (nto_process_target::supports_hardware_single_step): Define.
403 * win32-low.h (class win32_process_target): Update.
404 * win32-low.cc (win32_target_ops): Update.
405 (win32_process_target::supports_hardware_single_step): Define.
406
93fe88b2
TBA
4072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
408
409 Turn process_stratum_target's {supports_}stopped_by_hw_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_hw_breakpoint): Update the macro.
415 (target_supports_stopped_by_hw_breakpoint): Update the macro.
416 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
417 (process_target::supports_stopped_by_hw_breakpoint): Define.
418
419 Update the derived classes and callers below.
420
421 * linux-low.cc (linux_target_ops): Update.
422 (linux_stopped_by_hw_breakpoint): Turn into ...
423 (linux_process_target::stopped_by_hw_breakpoint): ... this.
424 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
425 (linux_process_target::supports_stopped_by_hw_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
84320c4e
TBA
4312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432
433 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
434 ops 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_stopped_by_sw_breakpoint): Update the macro.
439 (target_supports_stopped_by_sw_breakpoint): Update the macro.
440 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
441 (process_target::supports_stopped_by_sw_breakpoint): Define.
442
443 Update the derived classes and callers below.
444
445 * linux-low.cc (linux_target_ops): Update.
446 (linux_stopped_by_sw_breakpoint): Turn into ...
447 (linux_process_target::stopped_by_sw_breakpoint): ... this.
448 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
449 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
450 * linux-low.h (class linux_process_target): Update.
451 * lynx-low.cc (lynx_target_ops): Update.
452 * nto-low.cc (nto_target_ops): Update.
453 * win32-low.cc (win32_target_ops): Update.
454
7e0bde70
TBA
4552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
456
457 Turn process_stratum_target's insert_point and remove_point ops
458 into methods of process_target.
459
460 * target.h (struct process_stratum_target): Remove the target ops.
461 (class process_target): Add the target ops.
462 * target.cc (process_target::insert_point): Define.
463 (process_target::remove_point): Define.
464
465 Update the derived classes and callers below.
466
467 * mem-break.cc (set_raw_breakpoint_at): Update.
468 (delete_raw_breakpoint): Update.
469 (uninsert_raw_breakpoint): Update.
470 (reinsert_raw_breakpoint): Update.
471 * linux-low.cc (linux_target_ops): Update.
472 (linux_insert_point): Turn into ...
473 (linux_process_target::insert_point): ... this.
474 (linux_remove_point): Turn into ...
475 (linux_process_target::remove_point): ... this.
476 * linux-low.h (class linux_process_target): Update.
477 * lynx-low.cc (lynx_target_ops): Update.
478 * nto-low.cc (nto_target_ops): Update.
479 (nto_insert_point): Turn into ...
480 (nto_process_target::insert_point): ... this.
481 (nto_remove_point): Turn into ...
482 (nto_process_target::remove_point): ... this.
483 * nto-low.h (class nto_process_target): Update.
484 * win32-low.cc (win32_target_ops): Update.
485 (win32_insert_point): Turn into ...
486 (win32_process_target::insert_point): ... this.
487 (win32_remove_point): Turn into ...
488 (win32_process_target::remove_point): ... this.
489 * win32-low.h (class win32_process_target): Update.
490
a2b2297a
TBA
4912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
492
493 Turn process_stratum_target's supports_z_point_type op into a
494 method of process_target.
495
496 * target.h (struct process_stratum_target): Remove the target op.
497 (class process_target): Add the target op.
498 * target.cc (process_target::supports_z_point_type): Define.
499
500 Update the derived classes and callers below.
501
502 * mem-break.cc (z_type_supported): Update.
503 * linux-low.cc (linux_target_ops): Update.
504 (linux_supports_z_point_type): Turn into ...
505 (linux_process_target::supports_z_point_type): ... this.
506 * linux-low.h (class linux_process_target): Update.
507 * lynx-low.cc (lynx_target_ops): Update.
508 * nto-low.cc (nto_target_ops): Update.
509 (nto_supports_z_point_type): Turn into ...
510 (nto_process_target::supports_z_point_type): ... this.
511 * nto-low.h (class nto_process_target): Update.
512 * win32-low.cc (win32_target_ops): Update.
513 (win32_supports_z_point_type): Turn into ...
514 (win32_process_target::supports_z_point_type): ... this.
515 * win32-low.h (class win32_process_target): Update.
516
eac215cc
TBA
5172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
518
519 Turn process_stratum_target's read_auxv op into a method of
520 process_target.
521
522 * target.h (class process_stratum_target): Remove the target op.
523 (struct process_target): Add the target op. Also add
524 'supports_read_auxv'.
525 * target.cc (process_target::read_auxv): Define.
526 (process_target::supports_read_auxv): Define.
527
528 Update the derived classes and callers below.
529
530 * server.cc (handle_qxfer_auxv): Update.
531 (handle_query): Update.
532 * linux-low.cc (linux_target_ops): Update.
533 (linux_process_target::supports_read_auxv): Define.
534 (linux_read_auxv): Turn into ...
535 (linux_process_target::read_auxv): ... this.
536 * linux-low.h (class linux_process_target): Update.
537 * lynx-low.cc (lynx_target_ops): Update.
538 * nto-low.cc (nto_target_ops): Update.
539 (nto_process_target::supports_read_auxv): Define.
540 (nto_read_auxv): Turn into ...
541 (nto_process_target::read_auxv): ... this.
542 * nto-low.h (class nto_process_target): Update.
543 * win32-low.cc (win32_target_ops): Update.
544
eb497a2a
TBA
5452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
546
547 Turn process_stratum_target's request_interrupt op into a method of
548 process_target.
549
550 * target.h (struct process_stratum_target): Remove the target op.
551 (class process_target): Add the target op.
552
553 Update the derived classes and callers below.
554
555 * remote-utils.cc (putpkt_binary_1): Update.
556 (input_interrupt): Update.
557 (getpkt): Update.
558 * server.cc (handle_v_requests): Update.
559 * linux-low.cc (linux_target_ops): Update.
560 (linux_request_interrupt): Turn into ...
561 (linux_process_target::request_interrupt): ... this.
562 * linux-low.h (class linux_process_target): Update.
563 * lynx-low.cc (lynx_target_ops): Update.
564 (lynx_request_interrupt): Turn into ...
565 (lynx_process_target::request_interrupt): ... this.
566 * lynx-low.h (class lynx_process_target): Update.
567 * nto-low.cc (nto_target_ops): Update.
568 (nto_request_interrupt): Turn into ...
569 (nto_process_target::request_interrupt): ... this.
570 * nto-low.h (class nto_process_target): Update.
571 * win32-low.cc (win32_target_ops): Update.
572 (win32_request_interrupt): Turn into ...
573 (win32_process_target::request_interrupt): ... this.
574 * win32-low.h (class win32_process_target): Update.
575
2a31c7aa
TBA
5762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577
578 Turn process_stratum_target's look_up_symbols op into a method of
579 process_target.
580
581 * target.h (struct process_stratum_target): Remove the target op.
582 (class process_target): Add the target op.
583 * target.cc (process_target::look_up_symbols): Define.
584
585 Update the derived classes and callers below.
586
587 * server.cc (handle_query): Update.
588 * linux-low.cc (linux_target_ops): Update.
589 (linux_look_up_symbols): Turn into ...
590 (linux_process_target::look_up_symbols): ... this.
591 * linux-low.h (class linux_process_target): Update.
592 * lynx-low.cc (lynx_target_ops): Update.
593 * nto-low.cc (nto_target_ops): Update.
594 * win32-low.cc (win32_target_ops): Update.
595
e2558df3
TBA
5962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
597
598 Turn process_stratum_target's read_memory and write_memory
599 ops into methods of process_target.
600
601 * target.h (struct process_stratum_target): Remove the target ops.
602 (class process_target): Add the target ops.
603
604 Update the derived classes and callers below.
605
606 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
607 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
608 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
609 (arm_get_syscall_trapinfo): Update.
610 * linux-cris-low.cc (cris_breakpoint_at): Update.
611 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
612 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
613 * linux-mips-low.cc (mips_breakpoint_at): Update.
614 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
615 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
616 * linux-sh-low.cc (sh_breakpoint_at): Update.
617 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
618 (sparc_store_gregset_from_stack): Update.
619 (sparc_breakpoint_at): Update.
620 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
621 * linux-tile-low.cc (tile_breakpoint_at): Update.
622 * linux-x86-low.cc (x86_breakpoint_at): Update.
623 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
624 * mem-brea.cc (insert_memory_breakpoint): Update.
625 (validate_inserted_breakpoint): Update.
626 * target.cc (read_inferior_memory): Update.
627 (target_write_memory): Update.
628 * linux-low.cc (linux_target_ops): Update.
629 (linux_read_memory): Make a wrapper around the read_memory target
630 op call.
631 (linux_process_target::read_memory): Rename from linux_read_memory.
632 (linux_write_memory): Turn into ...
633 (linux_process_target::write_memory): ... this.
634 * linux-low.h (class linux_process_target): Update.
635 * lynx-low.cc (lynx_target_ops): Update.
636 (lynx_read_memory): Turn into ...
637 (lynx_process_target::read_memory): ... this.
638 (lynx_write_memory): Turn into ...
639 (lynx_process_target::write_memory): ... this.
640 * lynx-low.h (class lynx_process_target): Update.
641 * nto-low.cc (nto_target_ops): Update.
642 (nto_read_memory): Turn into ...
643 (nto_process_target::read_memory): ... this.
644 (nto_write_memory): Turn into ...
645 (nto_process_target::write_memory): ... this.
646 * nto-low.h (class nto_process_target): Update.
647 * win32-low.cc (win32_target_ops): Update.
648 (win32_read_inferior_memory): Turn into ...
649 (win32_process_target::read_memory): ... this.
650 (win32_write_inferior_memory): Turn into ...
651 (win32_process_target::write_memory): ... this.
652 * win32-low.h (class win32_process_target): Update.
653
79b44087
TBA
6542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
655
656 Turn process_stratum_target's prepare_to_access_memory and
657 done_accessing_memory 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 * target.cc (process_target::prepare_to_access_memory): Define.
662 (process_target::done_accessing_memory): Define.
663 (prepare_to_access_memory): Update.
664 (done_accessing_memory): Update.
665
666 Update the derived classes and callers below.
667
668 * linux-low.cc (linux_target_ops): Update.
669 (linux_prepare_to_access_memory): Turn into ...
670 (linux_process_target::prepare_to_access_memory): ... this.
671 (linux_done_accessing_memory): Turn into ...
672 (linux_process_target::done_accessing_memory): ... this.
673 * linux-low.h (class linux_process_target): Update.
674 * lynx-low.cc (lynx_target_ops): Update.
675 * nto-low.cc (nto_target_ops): Update.
676 * win32-low.cc (win32_target_ops): Update.
677
a5a4d4cd
TBA
6782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
679
680 Turn process_stratum_target's fetch_registers and store_registers
681 ops into methods of process_target.
682
683 * target.h (struct process_stratum_target): Remove the target ops.
684 (class process_target): Add the target ops.
685 (fetch_inferior_registers): Update the macro.
686 (store_inferior_registers): Update the macro.
687
688 Update the derived classes and callers below.
689
690 * linux-low.cc (linux_target_ops): Update.
691 (linux_fetch_registers): Turn into ...
692 (linux_process_target::fetch_registers): ... this.
693 (linux_store_registers): Turn into ...
694 (linux_process_target::store_registers): ... this.
695 * linux-low.h (class linux_process_target): Update.
696 * lynx-low.cc (lynx_target_ops): Update.
697 (lynx_fetch_registers): Turn into ...
698 (lynx_process_target::fetch_registers): ... this.
699 (lynx_store_registers): Turn into ...
700 (lynx_process_target::store_registers): ... this.
701 * lynx-low.h (class lynx_process_target): Update.
702 * nto-low.cc (nto_target_ops): Update.
703 (nto_fetch_registers): Turn into ...
704 (nto_process_target::fetch_registers): ... this.
705 (nto_store_registers): Turn into ...
706 (nto_process_target::store_registers): ... this.
707 * nto-low.h (class nto_process_target): Update.
708 * win32-low.cc (win32_target_ops): Update.
709 (win32_fetch_inferior_registers): Turn into ...
710 (win32_process_target::fetch_registers): ... this.
711 (win32_store_inferior_registers): Turn into ...
712 (win32_process_target::store_registers): ... this.
713 * win32-low.h (class win32_process_target): Update.
714
6532e7e3
TBA
7152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
716
717 Turn process_stratum_target's wait op into a method of
718 process_target.
719
720 * target.h (struct process_stratum_target): Remove the target op.
721 (class process_target): Add the target op.
722
723 Update the derived classes and callers below.
724
725 * target.cc (target_wait): Update.
726 * linux-low.cc (linux_target_ops): Update.
727 (linux_wait): Turn into ...
728 (linux_process_target::wait): ... this.
729 * linux-low.h (class linux_process_target): Update.
730 * lynx-low.cc (lynx_target_ops): Update.
731 (lynx_wait): Turn into ...
732 (lynx_process_target::wait): ... this.
733 * lynx-low.h (class lynx_process_target): Update.
734 * nto-low.cc (nto_target_ops): Update.
735 (nto_wait): Turn into ...
736 (nto_process_target::wait): ... this.
737 * nto-low.h (class nto_process_target): Update.
738 * win32-low.cc (win32_target_ops): Update.
739 (win32_wait): Turn into ...
740 (win32_process_target::wait): ... this.
741 (do_initial_child_stuff): Update.
742 * win32-low.h (class win32_process_target): Update.
743
0e4d7e35
TBA
7442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
745
746 Turn process_stratum_target's resume op into a method of
747 process_target.
748
749 * target.h (struct process_stratum_target): Remove the target op.
750 (class process_target): Add the target op.
751
752 Update the derived classes and callers below.
753
754 * server.cc (resume): Update.
755 * target.cc (target_stop_and_wait): Update.
756 (target_continue_no_signal): Update.
757 (target_continue): Update.
758 * linux-low.cc (linux_target_ops): Update.
759 (linux_resume): Turn into ...
760 (linux_process_target::resume): ... this.
761 * linux-low.h (class linux_process_target): Update.
762 * lynx-low.cc (lynx_target_ops): Update.
763 (lynx_resume): Turn into ...
764 (lynx_process_target::resume): ... this.
765 * lynx-low.h (class lynx_process_target): Update.
766 * nto-low.cc (nto_target_ops): Update.
767 (nto_resume): Turn into ...
768 (nto_process_target::resume): ... this.
769 * nto-low.h (class nto_process_target): Update.
770 * win32-low.cc (win32_target_ops): Update.
771 (win32_resume): Turn into ...
772 (win32_process_target::resume): ... this.
773 (win32_process_target::detach): Update.
774 (do_initial_child_stuff): Update.
775 * win32-low.h (class win32_process_target): Update.
776
13d3d99b
TBA
7772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778
779 Turn process_stratum_target's thread_alive op into a method of
780 process_target.
781
782 * target.h (struct process_stratum_target): Remove the target op.
783 (class process_target): Add the target op.
784 (mythread_alive): Update the macro.
785
786 Update the derived classes and callers below.
787
788 * linux-low.cc (linux_target_ops): Update.
789 (linux_thread_alive): Turn into ...
790 (linux_process_target::thread_alive): ... this.
791 (wait_for_sigstop): Update.
792 * linux-low.h (class linux_process_target): Update.
793 * lynx-low.cc (lynx_target_ops): Update.
794 (lynx_thread_alive): Turn into ...
795 (lynx_process_target::thread_alive): ... this.
796 * lynx-low.h (class lynx_process_target): Update.
797 * nto-low.cc (nto_target_ops): Update.
798 (nto_thread_alive): Turn into ...
799 (nto_process_target::thread_alive): ... this.
800 * nto-low.h (class nto_process_target): Update.
801 * win32-low.cc (win32_target_ops): Update.
802 (win32_thread_alive): Turn into ...
803 (win32_process_target::thread_alive): ... this.
804 * win32-low.h (class win32_process_target): Update.
805
95a49a39
TBA
8062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
807
808 Turn process_stratum_target's join op into a method of
809 process_target.
810
811 * target.h (struct process_stratum_target): Remove the target op.
812 (class process_target): Add the target op.
813 (join_inferior): Update the macro.
814
815 Update the derived classes and callers below.
816
817 * linux-low.cc (linux_target_ops): Update.
818 (linux_join): Turn into ...
819 (linux_process_target::join): ... this.
820 * linux-low.h (class linux_process_target): Update.
821 * lynx-low.cc (lynx_target_ops): Update.
822 (lynx_join): Turn into ...
823 (lynx_process_target::join): ... this.
824 * lynx-low.h (class lynx_process_target): Update.
825 * nto-low.cc (nto_target_ops): Update.
826 (nto_process_target::join): Define.
827 * nto-low.h (class nto_process_target): Update.
828 * win32-low.cc (win32_target_ops): Update.
829 (win32_join): Turn into ...
830 (win32_process_target::join): ... this.
831 * win32-low.h (class win32_process_target): Update.
832
8adb37b9
TBA
8332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834
835 Turn process_stratum_target's mourn op into a method of
836 process_target.
837
838 * target.h (struct process_stratum_target): Remove the target op.
839 (class process_target): Add the target op.
840
841 Update the derived classes and callers below.
842
843 * target.cc (target_mourn_inferior): Update.
844 * linux-low.cc (linux_target_ops): Update.
845 (linux_mourn): Turn into ...
846 (linux_process_target::mourn): ... this.
847 (handle_extended_wait): Update.
848 (linux_process_target::kill): Update.
849 (linux_process_target::detach): Update.
850 * linux-low.h (class linux_process_target): Update.
851 * lynx-low.cc (lynx_target_ops): Update.
852 (lynx_mourn): Turn into ...
853 (lynx_process_target::mourn): ... this.
854 * lynx-low.h (class lynx_process_target): Update.
855 * nto-low.cc (nto_target_ops): Update.
856 (nto_mourn): Turn into ...
857 (nto_process_target::mourn): ... this.
858 * nto-low.h (class nto_process_target): Update.
859 * win32-low.cc (win32_target_ops): Update.
860 (win32_mourn): Turn into ...
861 (win32_process_target::mourn): ... this.
862 * win32-low.h (class win32_process_target): Update.
863
9061c9cf
TBA
8642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
865
866 Turn process_stratum_target's detach op into a method of
867 process_target.
868
869 * target.h (struct process_stratum_target): Remove the target op.
870 (class process_target): Add the target op.
871 (detach_inferior): Update the macro.
872
873 Update the derived classes and callers below.
874
875 * linux-low.cc (linux_target_ops): Update.
876 (linux_detach): Turn into ...
877 (linux_process_target::detach): ... this.
878 * linux-low.h (class linux_process_target): Update.
879 * lynx-low.cc (lynx_target_ops): Update.
880 (lynx_detach): Turn into ...
881 (lynx_process_target::detach): ... this.
882 * lynx-low.h (class lynx_process_target): Update.
883 * nto-low.cc (nto_target_ops): Update.
884 (nto_detach): Turn into ...
885 (nto_process_target::detach): ... this.
886 * nto-low.h (class nto_process_target): Update.
887 * win32-low.cc (win32_target_ops): Update.
888 (win32_detach): Turn into ...
889 (win32_process_target::detach): ... this.
890 * win32-low.h (class win32_process_target): Update.
891
c6885a57
TBA
8922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
893
894 Turn process_stratum_target's kill op into a method of
895 process_target.
896
897 * target.h (struct process_stratum_target): Remove the target op.
898 (class process_target): Add the target op.
899
900 Update the derived classes and callers below.
901
902 * target.cc (kill_inferior): Update.
903 * linux-low.cc (linux_target_ops): Update.
904 (linux_kill): Turn into ...
905 (linux_process_target::kill): ... this.
906 * linux-low.h (class linux_process_target): Update.
907 * lynx-low.cc (lynx_target_ops): Update.
908 (lynx_kill): Turn into ...
909 (lynx_process_target::kill): ... this.
910 * lynx-low.h (class lynx_process_target): Update.
911 * nto-low.cc (nto_target_ops): Update.
912 (nto_kill): Turn into ...
913 (nto_process_target::kill): ... this.
914 * nto-low.h (class nto_process_target): Update.
915 * win32-low.cc (win32_target_ops): Update.
916 (win32_kill): Turn into ...
917 (win32_process_target::kill): ... this.
918 * win32-low.h (class win32_process_target): Update.
919
ef03dad8
TBA
9202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
921
922 Turn process_stratum_target's attach op into a method of
923 process_target.
924
925 * target.h (struct process_stratum_target): Remove the target op.
926 (class process_target): Add the target op.
927 (myattach): Update the macro.
928
929 Update the derived classes and callers below.
930
931 * linux-low.cc (linux_target_ops): Update.
932 (linux_attach): Turn into ...
933 (linux_process_target::attach): ... this.
934 * linux-low.h (class linux_process_target): Update.
935 * lynx-low.cc (lynx_target_ops): Update.
936 (lynx_attach): Turn into ...
937 (lynx_process_target::attach): ... this.
938 * lynx-low.h (class lynx_process_target): Update.
939 * nto-low.cc (nto_target_ops): Update.
940 (nto_attach): Turn into ...
941 (nto_process_target::attach): ... this.
942 * nto-low.h (class nto_process_target): Update.
943 * win32-low.cc (win32_target_ops): Update.
944 (win32_attach): Turn into ...
945 (win32_process_target::attach): ... this.
946 * win32-low.h (class win32_process_target): Update.
947
6dee9afb
TBA
9482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
949
950 Turn process_stratum_target's post_create_inferior op into a method
951 of process_target.
952
953 * target.h (struct process_stratum_target): Remove the target op.
954 (class process_target): Add the target op.
955 (target_post_create_inferior): Update the macro.
956 * target.cc (process_target::post_create_inferior): Define.
957
958 Update the derived classes and callers below.
959
960 * linux-low.cc (linux_target_ops): Update.
961 (linux_post_create_inferior): Turn into ...
962 (linux_process_target::post_create_inferior): ... this.
963 * linux-low.h (class linux_process_target): Update.
964 * lynx-low.cc (lynx_target_ops): Update.
965 * nto-low.cc (nto_target_ops): Update.
966 * win32-low.cc (win32_target_ops): Update.
967
15295543
TBA
9682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
969
970 Turn process_stratum_target's create_inferior op into a method of
971 process_target.
972
973 * target.h (struct process_stratum_target): Remove the target op.
974 (class process_target): Add the target op.
975 (create_inferior): Rename the macro to ...
976 (target_create_inferior): ... this.
977
978 Update the derived classes and callers below.
979
980 * server.cc (handle_v_run): Update.
981 (captured_main): Update.
982 (process_serial_event): Update.
983 * linux-low.cc (linux_target_ops): Update.
984 (linux_create_inferior): Turn into ...
985 (linux_process_target::create_inferior): ... this.
986 * linux-low.h (class linux_process_target): Update.
987 * lynx-low.cc (lynx_target_ops): Update.
988 (lynx_create_inferior): Turn into ...
989 (lynx_process_target::create_inferior): ... this.
990 * lynx-low.h (class lynx_process_target): Update.
991 * nto-low.cc (nto_target_ops): Update.
992 (nto_create_inferior): Turn into ...
993 (nto_process_target::create_inferior): ... this.
994 * nto-low.h (class nto_process_target): Update.
995 * win32-low.cc (win32_target_ops): Update.
996 (win32_create_inferior): Turn into ...
997 (win32_process_target::create_inferior): ... this.
998 * win32-low.h (class win32_process_target): Update.
999
5ef9273d
TBA
10002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1001
1002 * target.h (class process_target): New class definition.
1003 (struct process_stratum_target) <pt>: New field with type
1004 'process_target*'.
1005 * linux-low.h (class linux_process_target): Define as a derived
1006 class of 'process_target'.
1007 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1008 as the 'pt' field.
1009 * lynx-low.h (class lynx_process_target): Define as a derived
1010 class of 'process_target'.
1011 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1012 as the 'pt' field.
1013 * nto-low.h (class nto_process_target): Define as a derived
1014 class of 'process_target'.
1015 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1016 as the 'pt' field.
1017 * win32-low.h (class win32_process_target): Define as a derived
1018 class of 'process_target'.
1019 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1020 as the 'pt' field.
1021
9f1528a1
AB
10222020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * configure: Regenerate.
1025
bf84f706
MR
10262020-02-19 Maciej W. Rozycki <macro@wdc.com>
1027 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * linux-riscv-low.cc: New file.
1030 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1031 and nat/riscv-linux-tdesc.c.
1032 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1033 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1034 Define.
1035
1a627e7e
TT
10362020-02-14 Tom Tromey <tom@tromey.com>
1037
1038 * acinclude.m4: Don't include acx_configure_dir.m4.
1039 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1040 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1041 (all, install-only, uninstall, clean-info, clean)
1042 (maintainer-clean): Don't recurse.
1043 (subdir_do, all-lib): Remove.
1044 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1045 (GNULIB_H): Remove.
1046 (generated_files): Update.
1047 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1048 * configure: Rebuild.
1049 * configure.ac: Don't configure gnulib or libiberty.
1050 (GNULIB): Update.
1051
a9b34532
EZ
10522020-02-14 Eli Zaretskii <eliz@gnu.org>
1053
1054 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1055 preparing the command line for CreateProcess.
1056 (win32_create_inferior): Reflect the program name in debugging
1057 output that shows the process and its command line.
1058
feacfcac
SM
10592020-02-13 Simon Marchi <simon.marchi@efficios.com>
1060
1061 * Makefile.in: Rename source files from .c to .cc.
1062 * %.c: Rename to %.cc.
1063 * configure.ac: Rename server.c to server.cc.
1064 * configure: Re-generate.
1065
06b3c5bd
SM
10662020-02-13 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1069
052793ad
HD
10702020-02-12 Hannes Domani <ssbssa@yahoo.de>
1071
1072 * win32-low.c (win32_create_inferior): Set signal_pid.
1073
f20e3e82
MR
10742020-02-12 Maciej W. Rozycki <macro@wdc.com>
1075 Pedro Alves <palves@redhat.com>
1076
1077 Skip building gdbserver in a cross-configuration.
1078 * configure.srv: Set $gdbserver_host depending on whether $target
1079 is $host. Use $gdbserver_host instead of $host.
1080
8ddd8e0e
SM
10812020-02-11 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * configure: Re-generate.
1084
898e7f60
SM
10852020-02-11 Simon Marchi <simon.marchi@efficios.com>
1086
1087 * configure: Re-generate.
1088
58df732b
SM
10892020-02-11 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * acinclude.m4: Update warning.m4 path.
1092
7928d571
HD
10932020-02-09 Hannes Domani <ssbssa@yahoo.de>
1094
1095 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1096 (handle_exception): Set siginfo_er.
1097 (win32_xfer_siginfo): New function.
1098
919adfe8
TT
10992020-02-07 Tom Tromey <tom@tromey.com>
1100 Pedro Alves <palves@redhat.com>
1101
1102 * README: Update build documentation.
1103 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1104 host, not target.
1105 * configure.ac: Update paths.
1106 * configure: Rebuild.
1107 * acinclude.m4: Update paths.
1108 * Makefile.in: Update include paths.
1109 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1110 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1111 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1112 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1113 (%-generated.c): Update paths.
1114 * Move entire directory from ../gdb/gdbserver.
1115
287c844a
MR
11162020-01-29 Maciej W. Rozycki <macro@wdc.com>
1117
1118 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1119
548a204f
PFC
11202020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1121
1122 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1123 assignment instead of srv_linux_obj.
1124
a2236a08
HD
11252020-01-28 Hannes Domani <ssbssa@yahoo.de>
1126
1127 * server.c (handle_qxfer_libraries): Write segment-address with
1128 paddress.
1129
bdaed379
HD
11302020-01-24 Hannes Domani <ssbssa@yahoo.de>
1131
1132 * Makefile.in (install-strip): New target.
1133 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1134 * aclocal.m4: Regenerate.
1135 * configure: Regenerate.
1136 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1137
42cd72aa
MR
11382020-01-24 Maciej W. Rozycki <macro@wdc.com>
1139
1140 * Makefile.in (SFILES): Adjust paths to point to real files.
1141 (OBS): Move waitstatus.o to target/waitstatus.o.
1142 (TAGS): Transform paths appropriately.
1143 (%.o): Rename to...
1144 (nat/%.o): ... this pattern rule.
1145 (%.o): Rename to...
1146 (target/%.o): ... this pattern rule.
1147 * configure.srv: Adjust paths throughout to include nat/ prefix
1148 with the revant files.
1149 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1150 * configure: Regenerate.
1151
42ba50ec
MR
11522020-01-24 Maciej W. Rozycki <macro@wdc.com>
1153
1154 * Makefile.in (TAGS): Remove config files from the recipe.
1155
05ea2a05
TT
11562020-01-14 Tom Tromey <tom@tromey.com>
1157
1158 * configure: Rebuild.
1159 * configure.ac: Remove any checks that were added to common.m4.
1160 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1161 lib-link.m4.
1162
01027315
TT
11632020-01-14 Tom Tromey <tom@tromey.com>
1164
1165 * server.h: Include config.h.
1166 * gdbreplay.c: Include config.h.
1167 * configure: Rebuild.
1168 * configure.ac: Don't source common.host.
1169 * acinclude.m4: Update path.
1170 * Makefile.in (INCSUPPORT): New variable.
1171 (INCLUDE_CFLAGS): Add INCSUPPORT.
1172 (SFILES): Update paths.
1173 (version-generated.c): Update path to create-version.sh.
1174 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1175
b2ceabe8
TT
11762020-01-14 Tom Tromey <tom@tromey.com>
1177
1178 * configure.ac (LIBS): Use WIN32APILIBS.
1179 (USE_WIN32API): Don't define.
1180 * configure: Rebuild.
1181
25c51f71
TT
11822020-01-14 Tom Tromey <tom@tromey.com>
1183
1184 * configure: Rebuild.
1185
c0bd321d
SM
11862020-01-13 Simon Marchi <simon.marchi@efficios.com>
1187
1188 * Makefile.in (%-generated.c): Remove rule for files from
1189 regformats/i386.
1190
bb564c58
SM
11912020-01-13 Simon Marchi <simon.marchi@efficios.com>
1192
1193 * configure: Re-generate.
1194
6e37c371
SM
11952020-01-13 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1198 Define to static.
1199 * tracepoint.c (stop_tracing, flush_trace_buffer,
1200 about_to_request_buffer_space, get_trace_state_variable_value,
1201 set_trace_state_variable_value, gdb_collect): Add declaration.
1202
df4a0200
SM
12032020-01-13 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1206 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1207 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1208 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1209 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1210 static.
1211
89e94ec9
SM
12122020-01-13 Simon Marchi <simon.marchi@efficios.com>
1213
1214 * inferiors.c: Include gdbsupport/common-inferior.h.
1215
2552728a
SM
12162020-01-13 Simon Marchi <simon.marchi@efficios.com>
1217
1218 * hostio-errno.c: Include hostio.h.
1219
4025fa09
SM
12202020-01-13 Simon Marchi <simon.marchi@efficios.com>
1221
1222 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1223 prerequisite.
1224
c0b0a142
SM
12252020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1228 * linux-arm-tdesc.h: Include arch/arm.h.
1229
bb1183e2
SM
12302020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1231
1232 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1233
f5df0b5f
SM
12342020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1237 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1238
5b6d1e4f
PA
12392020-01-10 Pedro Alves <palves@redhat.com>
1240
1241 * fork-child.c (post_fork_inferior): Pass target down to
1242 startup_inferior.
1243 * inferiors.c (switch_to_thread): Add process_stratum_target
1244 parameter.
1245 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1246 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1247 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1248 * remote-utils.c (prepare_resume_reply): Pass the target to
1249 switch_to_thread.
1250 * target.c (the_target): Now a process_stratum_target.
1251 (done_accessing_memory): Pass the target to switch_to_thread.
1252 (set_target_ops): Ajust to use process_stratum_target.
1253 * target.h (struct target_ops): Rename to ...
1254 (struct process_stratum_target): ... this.
1255 (the_target, set_target_ops): Adjust.
1256 (prepare_to_access_memory): Adjust comment.
1257 * win32-low.c (child_xfer_memory): Adjust to use
1258 process_stratum_target.
1259 (win32_target_ops): Now a process_stratum_target.
1260
559e7e50
EZ
12612020-01-06 Eli Zaretskii <eliz@gnu.org>
1262 Pedro Alves <palves@redhat.com>
1263
1264 * win32-low.c (get_child_debug_event): Extract the fatal exception
1265 from the exit status and convert to the equivalent Posix signal
1266 number.
1267 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1268 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1269
48189bec
HD
12702020-01-01 Hannes Domani <ssbssa@yahoo.de>
1271
1272 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1273
5dd8bf88
JB
12742020-01-01 Joel Brobecker <brobecker@adacore.com>
1275
1276 * server.c (gdbserver_version): Change copyright year to 2020.
1277 * gdbreplay.c (gdbreplay_version): Likewise.
1278
0ad6b8ee
CB
12792019-12-19 Christian Biesinger <cbiesinger@google.com>
1280
1281 * configure: Regenerate.
1282 * configure.ac: Quote variable arguments of test.
1283
1ee7b812
BE
12842019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1285
1286 * Makefile.in: Fix build with GNU Make 3.81
1287
d9fa87f4
TT
12882019-12-16 Tom Tromey <tromey@adacore.com>
1289
1290 * server.c (get_exec_file): Constify result.
1291
ab7d13f0
CB
12922019-12-10 Christian Biesinger <cbiesinger@google.com>
1293
1294 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1295 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1296 * config.in: Regenerate.
1297 * configure: Regenerate.
1298 * configure.ac: Don't check for strerror.
1299 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1300 Call safe_strerror instead of strerror.
1301 * server.h (strerror): Remove this now-unnecessary declaration.
1302 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1303 strerror.
1304 (gdb_agent_helper_thread): Likewise.
1305 * utils.c (perror_with_name): Likewise.
1306
4da8c3a8
TT
13072019-11-26 Tom Tromey <tom@tromey.com>
1308
1309 * configure, config.in: Rebuild.
1310
21987b9c
TT
13112019-11-26 Tom Tromey <tom@tromey.com>
1312
1313 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1314 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1315 gdb_sigmask.
1316 * configure, config.in: Rebuild.
1317
5e030278
TT
13182019-11-26 Tom Tromey <tom@tromey.com>
1319
1320 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1321 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1322 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1323 * acinclude.m4: Include ax_pthread.m4.
1324 * config.in, configure: Rebuild.
1325
6d91ce9a
CB
13262019-11-26 Christian Biesinger <cbiesinger@google.com>
1327
1328 * debug.c (debug_set_output): Call safe_strerror instead of
1329 strerror.
1330 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1331 (linux_kill_one_lwp): Likewise.
1332 (linux_detach_one_lwp): Likewise.
1333 (linux_wait_for_event_filtered): Likewise.
1334 (store_register): Likewise.
1335 * lynx-low.c (lynx_attach): Likewise.
1336 * mem-break.c (insert_memory_breakpoint): Likewise.
1337 (remove_memory_breakpoint): Likewise.
1338 (delete_fast_tracepoint_jump): Likewise.
1339 (set_fast_tracepoint_jump): Likewise.
1340 (uninsert_fast_tracepoint_jumps_at): Likewise.
1341 (reinsert_fast_tracepoint_jumps_at): Likewise.
1342 * nto-low.c (nto_xfer_memory): Likewise.
1343 (nto_resume): Likewise.
1344
6cdd651f
LM
13452019-11-20 Luis Machado <luis.machado@linaro.org>
1346
1347 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1348 instead of register count.
1349 * tdesc.c (tdesc_contains_feature): New function.
1350 * tdesc.h (tdesc_contains_feature): New prototype.
1351
cd850b40
CB
13522019-11-15 Christian Biesinger <cbiesinger@google.com>
1353
1354 * Makefile.in: Add safe-strerror.c.
1355 * configure: Regenerate.
1356 * configure.ac: Don't source common.host.
1357
5abebf3c
CB
13582019-11-15 Christian Biesinger <cbiesinger@google.com>
1359
1360 * config.in: Regenerate.
1361 * configure: Regenerate.
1362
e06f3d6e
AB
13632019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1364
1365 * ax.c (ax_printf): Handle size_t_arg.
1366
ca3a04f6
CB
13672019-11-06 Christian Biesinger <cbiesinger@google.com>
1368
1369 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1370 * mi/mi-main.c (output_cores): Likewise.
1371 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1372 (linux_xfer_osdata_modules): Likewise.
1373 * remote.c (register_remote_support_xml): Likewise.
1374 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1375 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1376
e48f6033
CB
13772019-11-01 Christian Biesinger <cbiesinger@google.com>
1378
1379 * configure: Regenerate.
1380 * configure.ac: Remove check for strerror_r.
1381
e7e97a2e
CB
13822019-10-31 Christian Biesinger <cbiesinger@google.com>
1383
1384 * config.in: Regenerate.
1385 * configure: Regenerate.
1386 * configure.ac: Also check for strerror_r.
1387
75cafaa6
CB
13882019-10-31 Christian Biesinger <cbiesinger@google.com>
1389
1390 * ax.h (debug_agent): Remove duplicate declaration.
1391
30baf67b
TV
13922019-10-26 Tom de Vries <tdevries@suse.de>
1393
1394 * linux-aarch64-low.c: Fix typos in comments.
1395 * linux-arm-low.c: Same.
1396 * linux-low.c: Same.
1397 * linux-ppc-low.c: Same.
1398 * proc-service.c: Same.
1399 * regcache.h: Same.
1400 * server.c: Same.
1401 * tracepoint.c: Same.
1402 * win32-low.c: Same.
1403
52c64cf7
TT
14042019-10-25 Tom Tromey <tromey@adacore.com>
1405
1406 * utils.c (xstrdup): Remove.
1407
c12d372d
TT
14082019-10-23 Tom Tromey <tom@tromey.com>
1409
1410 * configure, config.in: Rebuild.
1411
4d0b984b
TT
14122019-10-23 Tom Tromey <tom@tromey.com>
1413
1414 * configure: Rebuild.
1415 * acinclude.m4: Use m4_include, not sinclude.
1416
c5adaa19
TT
14172019-10-17 Tom Tromey <tromey@adacore.com>
1418
1419 * configure: Rebuild.
1420 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1421 in AC_CONFIG_FILES invocation.
1422 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1423 invocation.
1424
fec4e896
CB
14252019-10-16 Christian Biesinger <cbiesinger@google.com>
1426
1427 * server.c: Include xml-builtin.h.
1428 (get_xml_features): Don't declare xml_builtins here.
1429
00975ff6
AB
14302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * Makefile.in: Remove references to vec-ipa.o.
1433
0dc32745
AB
14342019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * Makefile.in: Remove references to vec.c.
1437
3e6ec53a
CB
14382019-10-02 Christian Biesinger <cbiesinger@google.com>
1439
1440 * server.c (server_waiting): Change to bool.
1441 (extended_protocol): Likewise.
1442 (response_needed): Likewise.
1443 (exit_requested): Likewise.
1444 (run_once): Likewise.
1445 (report_no_resumed): Likewise.
1446 (non_stop): Likewise.
1447 (disable_packet_vCont): Likewise.
1448 (disable_packet_Tthread): Likewise.
1449 (disable_packet_qC): Likewise.
1450 (disable_packet_qfThreadInfo): Likewise.
1451 (handle_general_set): Update.
1452 (handle_detach): Update.
1453 (handle_monitor_command): Update.
1454 (handle_query): Update.
1455 (captured_main): Update.
1456 (process_serial_event): Update.
1457 * server.h (server_waiting): Change to bool.
1458 (disable_packet_vCont): Likewise.
1459 (disable_packet_Tthread): Likewise.
1460 (disable_packet_qC): Likewise.
1461 (disable_packet_qfThreadInfo): Likewise.
1462 (run_once): Likewise.
1463 (non_stop): Likewise.
1464 * target.c (target_stop_and_wait): Update.
1465
80fd2826
TT
14662019-10-02 Tom Tromey <tromey@adacore.com>
1467
1468 * Makefile.in (SFILES): Add common-inferior.c.
1469 (OBS): Add common-inferior.o.
1470 * server.c (startup_with_shell): Don't define.
1471
46f29a9a
AB
14722019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * linux-low.c (linux_low_read_btrace): Update for change to
1475 std::vector.
1476
f9d949fb
CB
14772019-09-20 Christian Biesinger <cbiesinger@google.com>
1478
1479 * debug.c (debug_threads): Remove comment in favor of the header.
1480 * debug.h (using_threads): Add declaration.
1481 (debug_threads): Add comment.
1482 * linux-aarch64-low.c: Include debug.h and remove declaration of
1483 debug_threads.
1484 * nto-low.c: Likewise.
1485 * remote-utils.c: Likewise.
1486 * thread-db.c: Likewise.
1487
abf516c6
UW
14882019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1489
1490 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1491 and powerpc-cell64l-ipa.o.
1492 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1493 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1494 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1495 (spu*-*-*): Remove.
1496
1497 * spu-low.c: Remove file.
1498
1499 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1500 (parse_spufs_run): Remove.
1501 (ppc_get_pc): Remove Cell/B.E. support.
1502 (ppc_set_pc): Likewise.
1503 (ppc_breakpoint_at): Likewise.
1504 (ppc_arch_setup): Likewise.
1505 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1506 tdesc_powerpc_cell32l.
1507 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1508 or init_registers_powerpc_cell32l.
1509 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1510 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1511 or init_registers_powerpc_cell32l.
1512 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1513 (init_registers_powerpc_cell32l): Remove prototype.
1514 (init_registers_powerpc_cell64l): Likewise.
1515
1516 * target.h (struct target_ops): Remove qxfer_spu member.
1517 * server.c (handle_qxfer_spu): Remove.
1518 (qxfer_packets): Remove entry for "spu".
1519 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1520 * linux-low.c (SPUFS_MAGIC): Remove.
1521 (spu_enumerate_spu_ids): Remove.
1522 (linux_qxfer_spu): Remove.
1523 (linux_target_ops): Remove qxfer_spu member.
1524 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1525 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1526 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1527
2d41fa11
SDJ
15282019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1529
1530 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1531 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1532 * config.in: Regenerate.
1533 * configure: Regenerate.
1534
d59b55f0
TT
15352019-08-15 Tom Tromey <tromey@adacore.com>
1536
1537 * target.c (target_write_memory): Use gdb::byte_vector.
1538
4196ab2a
TT
15392019-08-15 Tom Tromey <tromey@adacore.com>
1540
1541 * tracepoint.c (write_inferior_data_pointer)
1542 (write_inferior_integer, write_inferior_int8)
1543 (write_inferior_uinteger, m_tracepoint_action_download)
1544 (r_tracepoint_action_download, x_tracepoint_action_download)
1545 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1546 (download_agent_expr, download_tracepoint_1)
1547 (download_trace_state_variables, upload_fast_traceframes): Update.
1548 * server.c (gdb_write_memory): Update.
1549 * remote-utils.c (relocate_instruction): Update.
1550 * proc-service.c (ps_pdwrite): Update.
1551 * mem-break.c (remove_memory_breakpoint)
1552 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1553 (uninsert_fast_tracepoint_jumps_at)
1554 (reinsert_fast_tracepoint_jumps_at): Update.
1555 * linux-x86-low.c (append_insns)
1556 (i386_install_fast_tracepoint_jump_pad)
1557 (amd64_write_goto_address, i386_write_goto_address): Update.
1558 * linux-s390-low.c (append_insns, s390_write_goto_address):
1559 Update.
1560 * linux-ppc-low.c (ppc_relocate_instruction)
1561 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1562 (ppc_write_goto_address): Update.
1563 * linux-aarch64-low.c (append_insns): Update.
1564 * target.h (struct target_ops): Update.
1565 (write_inferior_memory): Don't declare.
1566 * target.c (target_write_memory): Rename from
1567 write_inferior_memory. Remove old target_write_memory.
1568
c6778d00
TT
15692019-08-15 Tom Tromey <tromey@adacore.com>
1570
1571 * target.c (write_inferior_memory): Use std::vector.
1572
404f2902
FCE
15732019-08-06 Frank Ch. Eigler <fche@redhat.com>
1574
1575 PR build/24886
1576 * configure.ac: Drop enable-libmcheck support.
1577 * configure, config.in: Rebuild.
1578 * acinclude.m4: Don't include it.
1579
4c5aa8e0
AH
15802019-07-19 Alan Hayward <alan.hayward@arm.com>
1581
1582 * configure.srv: Remove Arm xml files.
1583
7cc17433
AH
15842019-07-19 Alan Hayward <alan.hayward@arm.com>
1585
1586 * configure.srv: Add new files. Remove xml generated files.
1587 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1588 registers.
1589 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1590 * linux-aarch32-tdesc.c: New file.
1591 * linux-aarch32-tdesc.h: New file.
1592 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1593 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1594 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1595 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1596 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1597 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1598 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1599 (arm_read_description): Call arm_linux_read_description.
1600 (initialize_low_arch): Don't init registers.
1601 * linux-arm-tdesc.c: New file.
1602 * linux-arm-tdesc.h: New file.
1603
166a82be
AH
16042019-07-10 Alan Hayward <alan.hayward@arm.com>
1605
1606 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
1607 Move counter inside for.
1608 (arm_read_description): Check ptrace earlier.
1609 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
1610
268a13a5
TT
16112019-07-09 Tom Tromey <tom@tromey.com>
1612
1613 * configure: Rebuild.
1614 * configure.ac: Change common to gdbsupport.
1615 * acinclude.m4: Change common to gdbsupport.
1616 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
1617 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
1618 common to gdbsupport.
1619 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
1620 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
1621 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
1622 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
1623 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
1624 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
1625 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
1626 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
1627 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
1628 common to gdbsupport.
1629
350fab54
AH
16302019-07-04 Alan Hayward <alan.hayward@arm.com>
1631
1632 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
1633 defines.
1634 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
1635
2b40fda7
AH
16362019-07-04 Alan Hayward <alan.hayward@arm.com>
1637
1638 * configure.srv: Remove legacy xml.
1639 * linux-aarch64-low.c (initialize_low_arch): Remove
1640 initialize_low_tdesc call.
1641 * linux-aarch64-tdesc-selftest.c: Remove file.
1642 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
1643 * linux-x86-low.c (initialize_low_arch): Remove
1644 initialize_low_tdesc call.
1645 * linux-x86-tdesc-selftest.c: Remove file.
1646 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
1647
7d10623d
TV
16482019-06-20 Tom de Vries <tdevries@suse.de>
1649
1650 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
1651 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
1652
8d6a48df
TV
16532019-06-19 Tom de Vries <tdevries@suse.de>
1654
1655 * debug.h (debug_write): Change return type to ssize_t.
1656 * debug.c (debug_write): Same.
1657
73cc7272
TT
16582019-06-14 Tom Tromey <tom@tromey.com>
1659
1660 * configure.ac: Use new path to gnulib.
1661 * configure: Rebuild.
1662 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1663 to gnulib.
1664
08f10e02
TT
16652019-06-11 Tom Tromey <tom@tromey.com>
1666
1667 * Makefile.in (SFILES): Add alloc.c.
1668 (OBS): Add alloc.o.
1669 (IPA_OBJS): Add alloc-ipa.o.
1670 (alloc-ipa.o): New target.
1671 (%.o: ../%.c): New pattern rule.
1672
422186a9
TT
16732019-06-10 Tom Tromey <tromey@adacore.com>
1674
1675 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1676 end warning with a newline.
1677 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1678 newline.
1679 * thread-db.c (attach_thread): Don't end warning with a newline.
1680 (thread_db_notice_clone): Likewise.
1681 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1682 newline.
1683 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1684 end warning with a newline.
1685
b02f78f9
PA
16862019-06-04 Pedro Alves <palves@redhat.com>
1687
1688 * server.c (captured_main): Use make_unique_xstrdup.
1689
88ed7edb
TT
16902019-06-02 Tom Tromey <tom@tromey.com>
1691
1692 * gdbreplay.c (fromhex): Remove.
1693 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1694
33a6bc35
TT
16952019-05-29 Tom Tromey <tromey@adacore.com>
1696
1697 * configure: Rebuild.
1698
e90a813d
KB
16992019-05-06 Kevin Buettner <kevinb@redhat.com>
1700
1701 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1702 sign extension code on 32-bit builds.
1703
353ea2d1
EZ
17042019-05-03 Eli Zaretskii <eliz@gnu.org>
1705
1706 * remote-utils.c:
1707 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1708
b494cdff
TT
17092019-04-19 Tom Tromey <tom@tromey.com>
1710
1711 * server.c (struct vstop_notif): Derive from notif_event.
1712 <base>: Remove.
1713 (queue_stop_reply): Update.
1714 (remove_all_on_match_ptid): Change type. Rewrite.
1715 (discard_queued_stop_replies): Rewrite.
1716 (in_queued_stop_replies_ptid): Change type.
1717 (in_queued_stop_replies): Rewrite.
1718 (notif_stop): Update.
1719 (queue_stop_reply_callback): Update.
1720 (captured_main): Don't call initialize_notif.
1721 (push_stop_notification): Update.
1722 * notif.c (notif_write_event, handle_notif_ack)
1723 (notif_event_enque, notif_push): Update.
1724 (notif_event_xfree, initialize_notif): Remove.
1725 * notif.h (struct notif_event): Include <list>, not
1726 "common/queue.h".
1727 (struct notif_server) <queue>: Now a std::list.
1728 (notif_event_p): Remove typedef.
1729 (initialize_notif): Don't declare.
1730 (struct notif_event): Add virtual destructor.
1731
a7e559cc
AH
17322019-04-17 Alan Hayward <alan.hayward@arm.com>
1733
1734 * ax.c (ax_vdebug): Call debug_printf.
1735 * debug.c (debug_write): New function.
1736 * debug.h (debug_write): New declaration.
1737 * linux-low.c (sigchld_handler): Call debug_write.
1738
aeb2e706
AH
17392019-04-17 Alan Hayward <alan.hayward@arm.com>
1740
1741 * debug.c (debug_set_output): New function.
1742 (debug_vprintf): Send output to debug_file.
1743 (debug_flush): Likewise.
1744 * debug.h (debug_set_output): New declaration.
1745 * server.c (handle_monitor_command): Add debug-file option.
1746 (captured_main): Likewise.
1747
c1bc0935
AH
17482019-04-17 Alan Hayward <alan.hayward@arm.com>
1749
1750 * debug.c (remote_debug): Add definition.
1751 * debug.h (remote_debug): Add declaration.
1752 * hostio.c (remote_debug): Remove declaration.
1753 * remote-utils.c (struct ui_file): Likewise.
1754 (remote_debug): Likewise.
1755 * remote-utils.h (remote_debug): Likewise,
1756 * server.c (remote_debug): Remove definition.
1757
3f52fdbc
KB
17582019-04-10 Kevin Buettner <kevinb@redhat.com>
1759
1760 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1761 when using a 64-bit gdbserver.
1762
b0319eaa
TT
17632019-04-09 Tom Tromey <tromey@adacore.com>
1764
1765 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1766
eedc3f4f
TT
17672019-04-08 Tom Tromey <tom@tromey.com>
1768
1769 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1770 throw.
1771 (linux_resume_one_lwp): Likewise.
1772
230d2906
TT
17732019-04-08 Tom Tromey <tom@tromey.com>
1774
1775 * gdbreplay.c: Update.
1776 * linux-low.c: Update.
1777 * server.c: Update.
1778
a70b8144
TT
17792019-04-08 Tom Tromey <tom@tromey.com>
1780
1781 * server.c: Use C++ exception handling.
1782 * linux-low.c: Use C++ exception handling.
1783 * gdbreplay.c: Use C++ exception handling.
1784
3d6e9d23
TT
17852019-04-08 Tom Tromey <tom@tromey.com>
1786
1787 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1788 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1789 (captured_main, main): Update.
1790 * gdbreplay.c (main): Update.
1791
0570503d
PFC
17922019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1793
1794 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1795 value in argument pointer, return 1 if the entry is found and 0
1796 otherwise. Move comment.
1797 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1798 * linux-low.h (linux_get_auxv): Declare.
1799 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1800
227a9e65
TT
18012019-04-05 Tom Tromey <tromey@adacore.com>
1802
1803 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1804 variables.
1805
69f4c9cc
AH
18062019-03-28 Alan Hayward <alan.hayward@arm.com>
1807
1808 * linux-low.c (AT_HWCAP2): Add define if not already included.
1809
974c89e0
AH
18102019-03-26 Alan Hayward <alan.hayward@arm.com>
1811
1812 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1813 (aarch64_arch_setup): Call linux_get_hwcap.
1814 * linux-arm-low.c (arm_get_hwcap): Remove function.
1815 (arm_read_description): Call linux_get_hwcap.
1816 * linux-low.c (linux_get_auxv): New function.
1817 (linux_get_hwcap): Likewise.
1818 (linux_get_hwcap2): Likewise.
1819 * linux-low.h (linux_get_hwcap): New declaration.
1820 (linux_get_hwcap2): Likewise.
1821 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1822 (ppc_arch_setup): Call linux_get_hwcap.
1823 * linux-s390-low.c (s390_get_hwcap): Remove function.
1824 (s390_arch_setup): Call linux_get_hwcap.
1825
1ef53e6b
AH
18262019-03-22 Alan Hayward <alan.hayward@arm.com>
1827 Jiong Wang <jiong.wang@arm.com>
1828
1829 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1830 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1831 to fail.
1832 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1833
ee4fbcfa
AH
18342019-03-22 Alan Hayward <alan.hayward@arm.com>
1835 Jiong Wang <jiong.wang@arm.com>
1836
1837 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1838 (aarch64_get_hwcap): New function.
1839 (aarch64_arch_setup): Read APIA hwcap.
1840
6dc0ebde
AH
18412019-03-22 Alan Hayward <alan.hayward@arm.com>
1842 Jiong Wang <jiong.wang@arm.com>
1843
1844 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1845 (initialize_low_tracepoint): Likewise.
1846 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1847 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1848 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1849 (aarch64_linux_read_description): Likewise.
1850 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1851
1163a4b7
JB
18522019-03-12 John Baldwin <jhb@FreeBSD.org>
1853
1854 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1855 i386_create_target_description for 'segments' parameter.
1856 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1857 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1858 * win32-i386-low.c (i386_arch_setup): Likewise.
1859
d3a70e03
TT
18602019-03-12 Tom Tromey <tromey@adacore.com>
1861
1862 * linux-low.c (iterate_over_lwps): Update.
1863
37991b4f
TT
18642019-03-06 Tom Tromey <tom@tromey.com>
1865
1866 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1867 (captured_main): Use SCOPE_EXIT.
1868
45950eb6
SDJ
18692019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1870
1871 * configure.srv: Use '$enable_unittest' instead of '$development'
1872 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1873 case.
1874
43ac54fc
TT
18752019-02-27 Tom Tromey <tromey@adacore.com>
1876
1877 * gdbreplay.c (logchar): Handle \r\n.
1878
df0da8a2
AH
18792019-02-07 Alan Hayward <alan.hayward@arm.com>
1880
1881 * linux-low.c (linux_attach): Add process before lwp.
1882 * server.c (attach_inferior): Check if already attached.
1883
1a5c2598
TT
18842019-02-07 Tom Tromey <tom@tromey.com>
1885
1886 * x86-tdesc.h: Rename include guard.
1887 * x86-low.h: Add include guard.
1888 * wincecompat.h: Rename include guard.
1889 * win32-low.h: Add include guard.
1890 * utils.h: Rename include guard.
1891 * tracepoint.h: Rename include guard.
1892 * tdesc.h: Rename include guard.
1893 * target.h: Rename include guard.
1894 * server.h: Rename include guard.
1895 * remote-utils.h: Rename include guard.
1896 * regcache.h: Rename include guard.
1897 * nto-low.h: Rename include guard.
1898 * notif.h: Add include guard.
1899 * mem-break.h: Rename include guard.
1900 * lynx-low.h: Add include guard.
1901 * linux-x86-tdesc.h: Add include guard.
1902 * linux-s390-tdesc.h: Add include guard.
1903 * linux-ppc-tdesc-init.h: Add include guard.
1904 * linux-low.h: Add include guard.
1905 * linux-aarch64-tdesc.h: Add include guard.
1906 * linux-aarch32-low.h: Add include guard.
1907 * inferiors.h: Rename include guard.
1908 * i387-fp.h: Rename include guard.
1909 * hostio.h: Rename include guard.
1910 * gdbthread.h: Rename include guard.
1911 * gdb_proc_service.h: Rename include guard.
1912 * event-loop.h: Rename include guard.
1913 * dll.h: Rename include guard.
1914 * debug.h: Rename include guard.
1915 * ax.h: Rename include guard.
1916
956cc47c
SN
19172018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1918
1919 PR gdb/23985
1920 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1921 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1922
a0707f3c
TT
19232019-01-25 Tom Tromey <tom@tromey.com>
1924
1925 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1926
0747795c
TT
19272019-01-25 Tom Tromey <tom@tromey.com>
1928
1929 * win32-low.c: Fix common/ includes.
1930 * win32-i386-low.c: Fix common/ includes.
1931 * tracepoint.c: Fix common/ includes.
1932 * thread-db.c: Fix common/ includes.
1933 * target.h: Fix common/ includes.
1934 * symbol.c: Fix common/ includes.
1935 * spu-low.c: Fix common/ includes.
1936 * server.h: Fix common/ includes.
1937 * server.c: Fix common/ includes.
1938 * remote-utils.c: Fix common/ includes.
1939 * regcache.h: Fix common/ includes.
1940 * regcache.c: Fix common/ includes.
1941 * nto-x86-low.c: Fix common/ includes.
1942 * notif.h: Fix common/ includes.
1943 * mem-break.h: Fix common/ includes.
1944 * lynx-low.c: Fix common/ includes.
1945 * lynx-i386-low.c: Fix common/ includes.
1946 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1947 * linux-x86-low.c: Fix common/ includes.
1948 * linux-low.c: Fix common/ includes.
1949 * inferiors.h: Fix common/ includes.
1950 * i387-fp.c: Fix common/ includes.
1951 * hostio.c: Fix common/ includes.
1952 * hostio-errno.c: Fix common/ includes.
1953 * gdbthread.h: Fix common/ includes.
1954 * gdbreplay.c: Fix common/ includes.
1955 * fork-child.c: Fix common/ includes.
1956 * event-loop.c: Fix common/ includes.
1957 * ax.c:
1958 (enum gdb_agent_op): Fix common/ includes.
1959
be6d4f74
TT
19602019-01-21 Tom Tromey <tom@tromey.com>
1961
1962 * tracepoint.c: Fix includes.
1963 * remote-utils.c: Fix includes.
1964 * linux-x86-low.c: Fix includes.
1965
66d91b39
JB
19662019-01-01 Joel Brobecker <brobecker@adacore.com>
1967
1968 * gdbreplay.c (gdbreplay_version): Update copyright year in
1969 version message.
1970 * server.c (gdbserver_version): Likewise.
1971
754e3168
AH
19722018-12-05 Alan Hayward <alan.hayward@arm.com>
1973
1974 * linux-low.c (add_lwp): Switch ordering.
1975
d105de22
TT
19762018-11-29 Tom Tromey <tom@tromey.com>
1977
1978 * win32-low.c (win32_join): Take pid, not process.
1979 * target.h (struct target_ops) <join>: Change argument type.
1980 (join_inferior): Change argument name.
1981 * spu-low.c (spu_join): Take pid, not process.
1982 * server.c (handle_detach): Preserve pid before destroying
1983 process.
1984 * lynx-low.c (lynx_join): Take pid, not process.
1985 * linux-low.c (linux_join): Take pid, not process.
1986
50138245
AH
19872018-11-23 Alan Hayward <alan.hayward@arm.com>
1988
1989 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1990 (aarch64_cannot_fetch_register): Likewise.
1991 (struct linux_target_ops): Update references.
1992
64f57f3d
PFC
19932018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1994
1995 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1996
8d619c01
EBM
19972018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1998
1999 * configure.srv (ipa_ppc_linux_regobj): Add
2000 powerpc-isa207-htm-vsx32l-ipa.o and
2001 powerpc-isa207-htm-vsx64l-ipa.o.
2002 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2003 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2004 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2005 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2006 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2007 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2008 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2009 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2010 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2011 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2012 (init_registers_powerpc_isa207_htm_vsx32l)
2013 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2014 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2015 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2016 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2017 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2018 (ppc_store_tm_ctarregset): New functions.
2019 (ppc_regsets): Add entries for HTM regsets.
2020 (ppc_arch_setup): Set htm in features struct when needed. Set
2021 sizes for the HTM regsets.
2022 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2023 (initialize_low_arch): Call
2024 init_registers_powerpc_isa207_htm_vsx32l and
2025 init_registers_powerpc_isa207_htm_vsx64l.
2026 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2027 PPC_TDESC_ISA207_HTM_VSX.
2028 (initialize_low_tracepoint): Call
2029 init_registers_powerpc_isa207_htm_vsx32l and
2030 init_registers_powerpc_isa207_htm_vsx64l.
2031
232bfb86
EBM
20322018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2033
2034 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2035 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2036 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2037 (ppc_store_pmuregset): New functions.
2038 (ppc_regsets): Add entries for ebb and pmu regsets.
2039 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2040 pmu regsets are available. Set sizes for these regsets.
2041
f2cf6173
EBM
20422018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2043
2044 * configure.srv (ipa_ppc_linux_regobj): Add
2045 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2046 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2047 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2048 rs6000/powerpc-isa207-vsx32l.xml, and
2049 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2050 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2051 <PPC_TDESC_ISA207_VSX>: New enum value.
2052 (init_registers_powerpc_isa207_vsx32l): Declare.
2053 (init_registers_powerpc_isa207_vsx64l): Declare.
2054 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2055 (ppc_store_tarregset): New function.
2056 (ppc_regsets): Add entry for the TAR regset.
2057 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2058 size for the TAR regsets.
2059 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2060 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2061 and init_registers_powerpc_isa207_vsx64l.
2062 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2063 (initialize_low_tracepoint): Call
2064 init_registers_powerpc_isa207_vsx32l and
2065 init_registers_powerpc_isa207_vsx64l.
2066
7ca18ed6
EBM
20672018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2068 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2069
2070 * configure.srv (ipa_ppc_linux_regobj): Add
2071 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2072 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2073 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2074 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2075 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2076 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2077 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2078 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2079 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2080 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2081 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2082 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2083 (ppc_hwcap): Add comment.
2084 (ppc_hwcap2): New global.
2085 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2086 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2087 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2088 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2089 when needed. Set sizes for the the DSCR and PPR regsets.
2090 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2091 (initialize_low_arch): Call
2092 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2093 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2094 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2095 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2096 (initialize_low_tracepoint): Call
2097 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2098 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2099
5c849b22
PFC
21002018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2101
2102 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2103
8ecfd7bd
SDJ
21042018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2105 Simon Marchi <simark@simark.ca>
2106
2107 * acinclude.m4: Include "../selftest.m4".
2108 * configure: Regenerate.
2109 * configure.ac: Use "GDB_AC_SELFTEST".
2110 * configure.srv: Use "$enable_unittests" instead of
2111 "$development" when checking whether unit tests have been
2112 enabled.
2113 * server.c (captured_main): Update message informing that
2114 selftests have been disabled.
2115
96643e35
TT
21162018-10-04 Tom Tromey <tom@tromey.com>
2117
2118 * configure: Rebuild.
2119
da4ae14a
TT
21202018-10-04 Tom Tromey <tom@tromey.com>
2121
2122 * server.c (handle_status): Rename inner "thread".
2123 (process_serial_event): Declare "res" in 'm' case.
2124 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2125 (iterate_over_lwps): Rename inner "thread".
2126 (linux_qxfer_libraries_svr4): Rename inner "len".
2127 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2128
7c619dbd
GB
21292018-10-01 Gary Benson <gbenson@redhat.com>
2130
2131 * gdb_proc_service.h: Moved common code to
2132 common/gdb_proc_service.h.
2133
3795e814
GB
21342018-10-01 Gary Benson <gbenson@redhat.com>
2135
2136 * gdb_proc_service.h: Synchronize comments and whitespace with
2137 GDB's version of this file.
2138
49b036f1
TT
21392018-09-25 Tom Tromey <tom@tromey.com>
2140
2141 * configure: Rebuild.
2142 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2143
8ff03f0b
SM
21442018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2147 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2148 ($(IPA_LIB)): Sort IPA_OBJS.
2149
a1cd91dc
SM
21502018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * Makefile.in: Remove references to $(ADD_DEPS).
2153
752312ba
TT
21542018-09-16 Tom Tromey <tom@tromey.com>
2155
2156 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2157 variables.
2158 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2159 variables.
2160
f1628857
TT
21612018-09-05 Tom Tromey <tom@tromey.com>
2162
2163 * configure: Rebuild.
2164
ad202fcc
SM
21652018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 PR build/23399
2168 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2169
d3d8724a
TT
21702018-08-27 Tom Tromey <tom@tromey.com>
2171
2172 PR build/23087:
2173 * configure: Rebuild.
2174
b4f183d2
TT
21752018-08-27 Tom Tromey <tom@tromey.com>
2176
2177 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2178 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2179 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2180 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2181 (s390x_emit_stack_adjust): Add casts to unsigned char.
2182
4e2aa472
SM
21832018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2184
2185 PR gdb/23374
2186 PR gdb/23375
2187 * server.h (struct client_state) <disable_randomization>:
2188 Initialize to 1.
2189
cf4088a9
SM
21902018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2193 variable.
2194 (mips_supply_ptrace_register): Likewise.
2195
a0de763e
TT
21962018-07-22 Tom Tromey <tom@tromey.com>
2197
2198 * configure: Rebuild.
2199
b0a7723d
TT
22002018-07-22 Tom Tromey <tom@tromey.com>
2201
2202 * win32-low.c (win32_create_inferior): Remove unused variables.
2203 * gdbreplay.c (remote_open): Remove unused variable.
2204 * remote-utils.c (remote_prepare): Remove unused variable.
2205 * x86-tdesc.h (X86_TDESC_H): Define.
2206 (amd64_expedite_regs): Define conditionally.
2207 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2208 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2209 * remote-utils.c (readchar): Remove unused variable.
2210
a780ef4f
PA
22112018-07-13 Pedro Alves <palves@redhat.com>
2212
2213 * linux-low.c (linux_kill): Change parameter to process_info
2214 pointer instead of pid. Adjust.
2215 * lynx-low.c (lynx_kill): Likewise.
2216 * nto-low.c (nto_kill): Likewise.
2217 * spu-low.c (spu_kill): Likewise.
2218 * win32-low.c (win32_kill): Likewise.
2219 * server.c (handle_v_kill, kill_inferior_callback)
2220 (detach_or_kill_for_exit): Adjust.
2221 * target.c (kill_inferior): Change parameter to process_info
2222 pointer instead of pid. Adjust.
2223 * target.h (struct target_ops) <kill>: Change parameter to
2224 process_info pointer instead of pid. Adjust all implementations
2225 and callers.
2226 (kill_inferior): Likewise.
2227
ef2ddb33
PA
22282018-07-13 Pedro Alves <palves@redhat.com>
2229
2230 * linux-low.c (linux_detach, linux_join): Change parameter to
2231 process_info pointer instead of pid. Adjust.
2232 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2233 * nto-low.c (nto_detach): Likewise.
2234 * spu-low.c (spu_detach, spu_join): Likewise.
2235 * win32-low.c (win32_detach, win32_join): Likewise.
2236 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2237 * target.h (struct target_ops) <detach, join>: Change parameter to
2238 process_info pointer instead of pid. Adjust all implementations
2239 and callers.
2240 (detach_inferior, join_inferior): Rename 'pid' parameter to
2241 'proc'.
2242
c7ab0aef
SDJ
22432018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2244 Jan Kratochvil <jan.kratochvil@redhat.com>
2245 Paul Fertser <fercerpav@gmail.com>
2246 Tsutomu Seki <sekiriki@gmail.com>
2247
2248 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2249 (OBS): Add 'common/netstuff.o'.
2250 (GDBREPLAY_OBS): Likewise.
2251 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2252 (remote_open): Implement support for IPv6
2253 connections.
2254 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2255 and 'wspiapi.h'.
2256 (handle_accept_event): Accept connections from IPv6 sources.
2257 (remote_prepare): Handle IPv6-style hostnames; implement
2258 support for IPv6 connections.
2259 (remote_open): Implement support for printing connections from
2260 IPv6 sources.
2261
31445d10
PA
22622018-07-11 Pedro Alves <palves@redhat.com>
2263
2264 PR gdb/23377
2265 * mem-break.c (any_persistent_commands): Add process_info
2266 parameter and use it instead of relying on the current process.
2267 Change return type to bool.
2268 * mem-break.h (any_persistent_commands): Add process_info
2269 parameter and change return type to bool.
2270 * server.c (handle_detach): Remove require_running_or_return call.
2271 Look up the process_info for the process we're about to detach.
2272 If not found, return back error to GDB. Adjust
2273 any_persistent_commands call to pass down a process pointer.
2274
cb197132
PA
22752018-07-11 Pedro Alves <palves@redhat.com>
2276
2277 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2278 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2279 instead of collect_register_by_name.
2280 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2281 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2282
1b919490
VB
22832018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2284 Pedro Alves <palves@redhat.com>
2285
2286 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2287
d7e15655
TT
22882018-07-03 Tom Tromey <tom@tromey.com>
2289
2290 * linux-low.c: Update.
2291 * lynx-low.c: Update.
2292 * mem-break.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 * win32-low.c: Update.
2299
26a57c92
TT
23002018-07-03 Tom Tromey <tom@tromey.com>
2301
2302 * server.c: Update.
2303
0e998d96
TT
23042018-07-03 Tom Tromey <tom@tromey.com>
2305
2306 * linux-low.c: Update.
2307
cc6bcb54
TT
23082018-07-03 Tom Tromey <tom@tromey.com>
2309
2310 * target.c: Update.
2311
e38504b3
TT
23122018-07-03 Tom Tromey <tom@tromey.com>
2313
2314 * linux-low.c: Update.
2315 * linux-mips-low.c: Update.
2316 * lynx-low.c: Update.
2317 * nto-low.c: Update.
2318 * remote-utils.c: Update.
2319 * server.c: Update.
2320 * spu-low.c: Update.
2321 * target.c: Update.
2322 * thread-db.c: Update.
2323
e99b03dc
TT
23242018-07-03 Tom Tromey <tom@tromey.com>
2325
2326 * linux-low.c: Update.
2327 * linux-mips-low.c: Update.
2328 * lynx-low.c: Update.
2329 * mem-break.c: Update.
2330 * nto-low.c: Update.
2331 * remote-utils.c: Update.
2332 * server.c: Update.
2333 * spu-low.c: Update.
2334 * target.c: Update.
2335 * tracepoint.c: Update.
2336
f2907e49
TT
23372018-07-03 Tom Tromey <tom@tromey.com>
2338
2339 * linux-low.c: Update.
2340 * linux-ppc-low.c: Update.
2341 * linux-x86-low.c: Update.
2342 * proc-service.c: Update.
2343 * server.c: Update.
2344 * spu-low.c: Update.
2345 * thread-db.c: Update.
2346 * win32-low.c: Update.
2347
fd79271b
TT
23482018-07-03 Tom Tromey <tom@tromey.com>
2349
2350 * linux-low.c: Update.
2351 * lynx-low.c: Update.
2352 * nto-low.c: Update.
2353 * remote-utils.c: Update.
2354 * spu-low.c: Update.
2355 * thread-db.c: Update.
2356 * win32-low.c: Update.
2357
c0867626
SDJ
23582018-06-29 Joel Brobecker <brobecker@adacore.com>
2359
2360 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2361 parameter in call to 'amd64_create_target_description'.
2362
2512d7ef
JK
23632018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2364
2365 * x86-tdesc.h: Remove executable permission flag.
2366
d0ac1c44
SM
23672018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2368
2369 * configure.ac: Remove AC_PREREQ, add missing quoting.
2370 * configure: Re-generate.
2371 * config.in: Re-generate.
2372 * aclocal.m4: Re-generate.
2373
c4eb05ff
SM
23742018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2375
2376 * tracepoint.h (current_traceframe): Remove declaration.
2377
02895270
AH
23782018-06-18 Alan Hayward <alan.hayward@arm.com>
2379
2380 * linux-aarch64-low.c (is_sve_tdesc): New function.
2381 (aarch64_sve_regs_copy_to_regcache): Likewise.
2382 (aarch64_sve_regs_copy_from_regcache): Likewise.
2383 (aarch64_regs_info): Add SVE checks.
2384 (initialize_low_arch): Initialize SVE.
2385
e9902bfc
AH
23862018-06-18 Alan Hayward <alan.hayward@arm.com>
2387
2388 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2389
fefa175e
AH
23902018-06-11 Alan Hayward <alan.hayward@arm.com>
2391
2392 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2393 (initialize_low_tracepoint): Likewise
2394 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2395 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2396 param.
2397 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2398 checks.
2399 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2400
b91ad3ff
AH
24012018-06-11 Alan Hayward <alan.hayward@arm.com>
2402
2403 * server.h (PBUFSIZ): Increase size
2404
f868386e
AH
24052018-06-11 Alan Hayward <alan.hayward@arm.com>
2406
2407 * regcache.c (regcache::raw_compare): New function.
2408 * regcache.h (regcache::raw_compare): New declaration.
2409
9c861883
AH
24102018-06-11 Alan Hayward <alan.hayward@arm.com>
2411
2412 * regcache.c (new_register_cache): Use new.
2413 (free_register_cache): Use delete.
2414 (register_data): Use const.
2415 (supply_register): Move body inside regcache.
2416 (regcache::raw_supply): New override function.
2417 (collect_register): Move body inside regcache.
2418 (regcache::raw_collect): New override function.
2419 (regcache::get_register_status): New override function.
2420 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2421
40591844
TT
24222018-06-09 Tom Tromey <tom@tromey.com>
2423
2424 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2425 declare queue.
2426 (event_queue): Use std::queue.
2427 (gdb_event_xfree): Remove.
2428 (initialize_event_loop, process_event, wait_for_event): Update.
2429
6341380d
SC
24302018-06-08 Stan Cox <scox@redhat.com>
2431
2432 * win32-low.c (win32_create_inferior): last_ptid and last_status
2433 moved to client_state.
2434
03349c93
PA
24352018-06-08 Pedro Alves <palves@redhat.com>
2436
2437 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2438 common/common-exceptions.o, common/common-utils.o,
2439 common/errors.o, common/print-utils.o and utils.o.
2440 * gdbreplay.c: Include "common-defs.h" instead of the two
2441 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2442 string.h or alloca.h.
2443 (perror_with_name): Delete.
2444 (remote_open): Use xstrdup instead of strdup.
2445 (main): Rename to ...
2446 (captured_main): ... this.
2447 (main): New.
2448
8dcc53b3
TT
24492018-06-08 Tom Tromey <tom@tromey.com>
2450
2451 * linux-low.c (linux_low_read_btrace): Update.
2452
c12a5089
SC
24532018-06-04 Stan Cox <scox@redhat.com>
2454
2455 * server.h (struct client_state): New.
2456 * server.c (cont_thread, general_thread, multi_process)
2457 (report_fork_events, report_vfork_events, report_exec_events)
2458 (report_thread_events, swbreak_feature, hwbreak_feature)
2459 (vCont_supported, disable_randomization, pass_signals)
2460 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2461 Moved to client_state.
2462 * remote-utils.c (remote_debug, noack_mode)
2463 (transport_is_reliable): Moved to client_state.
2464 * tracepoint.c (current_traceframe): Moved to client_state.
2465
2466 Update all callers.
2467 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2468 linux-low.c, remote-utils.h, target.c: Use client_state.
2469
122394f1
AH
24702018-05-31 Alan Hayward <alan.hayward@arm.com>
2471
2472 * configure.srv: Add new c/h file.
2473
95228a0d
AH
24742018-05-31 Alan Hayward <alan.hayward@arm.com>
2475
2476 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2477 null VQ.
2478
d8dab6c3
MR
24792018-05-25 Maciej W. Rozycki <macro@mips.com>
2480
2481 * gdb.arch/mips-fpregset-core.exp: New test.
2482 * gdb.arch/mips-fpregset-core.c: New test source.
2483
81e25b7c
EK
24842018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2485
2486 PR server/23198
2487 * hostio.c (require_int): Do not report overflow for integers
2488 between 0xfffffff and 0x7fffffff.
2489
7e947ad3
MR
24902018-05-22 Maciej W. Rozycki <macro@mips.com>
2491
2492 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2493 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2494 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2495 functions.
2496 (the_low_target): Wire them.
2497
1d75a658
PFC
24982018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2499
2500 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2501 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2502 mode. Call collect_register_by_name with vscr using
2503 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2504 (ppc_store_vrregset): Add and set vscr_offset variable as in
2505 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2506 vscr_offset.
2507
d078308a
PFC
25082018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2509
2510 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2511 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2512 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2513
7273b5fc
PFC
25142018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2515
2516 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2517 (ppc_store_vsxregset): Likewise.
2518 (ppc_fill_vrregset): Likewise.
2519 (ppc_store_vrregset): Likewise.
2520 (ppc_fill_evrregset): Likewise.
2521 (ppc_store_evrregset): Likewise.
2522 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2523 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2524 needed.
2525
2e077f5e
PFC
25262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2527
2528 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2529 wordsize of the inferior. Call ppc_linux_target_wordsize.
2530
bd64614e
PFC
25312018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2532
2533 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2534 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2535 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2536 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2537 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2538 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2539 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2540 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2541 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2542 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2543 (tdesc_powerpc_e500l): Remove.
2544 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2545 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2546 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2547 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2548 linux-ppc-tdesc.h.
2549 (ppc_arch_setup): Remove target description matching code. Fill a
2550 ppc_linux_features struct and call ppc_linux_match_description
2551 with it.
2552
75d74cca
MR
25532018-05-22 Maciej W. Rozycki <macro@mips.com>
2554
2555 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2556 width of the requested register exceeds the width of the
2557 `ptrace' data type.
2558 (mips_cannot_store_register): Likewise.
2559
e4439e43
MR
25602018-05-21 Maciej W. Rozycki <macro@mips.com>
2561
2562 * linux-mips-low.c (mips_fetch_register): New function. Update
2563 preceding comment.
2564 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2565 (the_low_target): Wire `mips_fetch_register'.
2566
55271bf9
JB
25672018-05-10 Joel Brobecker <brobecker@adacore.com>
2568
2569 * lynx-i386-low.c (LYNXOS_178): New macro.
2570 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2571 the layout on LynxOS-178.
2572 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2573 handle floating point registers that are not supported by
2574 LynxOS-178.
2575
1a34f210
TT
25762018-05-10 Tom Tromey <tom@tromey.com>
2577
2578 * configure: Rebuild.
2579
190852c8
JB
25802018-05-10 Joel Brobecker <brobecker@adacore.com>
2581
2582 PR server/23158:
2583 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2584 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2585 Use it to set the expedite_regs field in the given tdesc.
2586 * x86-tdesc.h: New file.
2587 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2588 Adjust following the addition of the new expedite_regs parameter
2589 to init_target_desc.
2590 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2591 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2592 (i386_linux_read_description, amd64_linux_read_description):
2593 Adjust following the addition of the new expedite_regs parameter
2594 to init_target_desc.
2595 * lynx-i386-low.c: #include "x86-tdesc.h".
2596 (lynx_i386_arch_setup): Adjust following the addition of the new
2597 expedite_regs parameter to init_target_desc.
2598 * nto-x86-low.c: #include "x86-tdesc.h".
2599 (nto_x86_arch_setup): Adjust following the addition of the new
2600 expedite_regs parameter to init_target_desc.
2601 * win32-i386-low.c: #include "x86-tdesc.h".
2602 (i386_arch_setup): Adjust following the addition of the new
2603 expedite_regs parameter to init_target_desc.
2604
7dbac825
JB
26052018-05-10 Joel Brobecker <brobecker@adacore.com>
2606
2607 PR server/23158:
2608 * win32-low.c (win32_create_inferior): Add call to my_wait
2609 setting last_status global.
2610
906994d9
JB
26112018-05-10 Joel Brobecker <brobecker@adacore.com>
2612
2613 PR server/23158:
2614 * win32-low.c (create_process): Only call gdb_tilde_expand if
2615 inferior_cwd is not NULL.
2616
8ee22052
AB
26172018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2618
2619 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
2620 registers to the cache if their values have changed.
2621 (i387_xsave_to_cache): Provide default values for x87 control
2622 registers when these features are available, but disabled.
2623 * regcache.c (supply_register_by_name_zeroed): New function.
2624 * regcache.h (supply_register_by_name_zeroed): Declare new
2625 function.
2626
aff689d3
TT
26272018-05-07 Tom Tromey <tom@tromey.com>
2628
2629 * configure: Rebuild.
2630
85e26832
TT
26312018-05-04 Tom Tromey <tom@tromey.com>
2632
2633 * configure: Rebuild.
2634
a3b60e45
JK
26352018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2636 Pedro Alves <palves@redhat.com>
2637
2638 * linux-aarch64-low.c (aarch64_stopped_data_address):
2639 Likewise.
2640
632e107b
TT
26412018-04-27 Tom Tromey <tom@tromey.com>
2642
2643 * configure: Rebuild.
2644
458412c3
TT
26452018-04-23 Tom Tromey <tom@tromey.com>
2646
2647 * configure: Rebuild.
2648
f31c089e
SM
26492018-04-19 Simon Marchi <simon.marchi@ericsson.com>
2650
2651 * Makefile.in (depcomp): Add "..".
2652 (all_deps_files): New and use it.
2653
b319b098
AH
26542018-04-18 Alan Hayward <alan.hayward@arm.com>
2655
2656 * configure.srv (aarch64*-*-linux*): Don't include xml.
2657 (i[34567]86-*-cygwin*): Likewise.
2658 (i[34567]86-*-linux*): Likewise.
2659 (i[34567]86-*-lynxos*): Likewise.
2660 (i[34567]86-*-mingw32ce*): Likewise.
2661 (i[34567]86-*-mingw*): Likewise.
2662 (i[34567]86-*-nto*): Likewise.
2663 (tic6x-*-uclinux): Likewise.
2664 (x86_64-*-linux*): Likewise.
2665 (x86_64-*-mingw*): Likewise.
2666 (x86_64-*-cygwin*): Likewise.
2667
3b74854b
AH
26682018-04-18 Alan Hayward <alan.hayward@arm.com>
2669
2670 * tdesc.c: Remove xml parameter.
2671
e98577a9
AH
26722018-04-18 Alan Hayward <alan.hayward@arm.com>
2673
2674 * server.c (get_features_xml): Remove cast.
2675 * tdesc.c (void target_desc::accept): Fill in function.
2676 (tdesc_get_features_xml): Remove old xml creation.
2677 (print_xml_feature::visit_pre): Add xml vistor.
2678 * tdesc.h (struct target_desc): Make xmltarget mutable.
2679 (tdesc_get_features_xml): Remove declaration.
2680
d278f585
AH
26812018-04-18 Alan Hayward <alan.hayward@arm.com>
2682
2683 * tdesc.c (tdesc_architecture_name): Add new function.
2684 (tdesc_osabi_name): Likewise.
2685 (tdesc_get_features_xml): Use new functions.
2686
eee8a18d
AH
26872018-04-18 Alan Hayward <alan.hayward@arm.com>
2688
2689 * tdesc.c (tdesc_create_flags): Remove.
2690 (tdesc_add_flag): Likewise.
2691 (tdesc_named_type): Likewise.
2692 (tdesc_create_union): Likewise.
2693 (tdesc_create_struct): Likewise.
2694 (tdesc_create_vector): Likewise.
2695 (tdesc_add_bitfield): Likewise.
2696 (tdesc_add_field): Likewise.
2697 (tdesc_set_struct_size): Likewise.
2698
82ec9bc7
AH
26992018-04-18 Alan Hayward <alan.hayward@arm.com>
2700
2701 * tdesc.c (~target_desc): Remove implictly deleted items.
2702 (init_target_desc): Iterate all features.
2703 (tdesc_get_features_xml): Use vector.
2704 (tdesc_create_feature): Create feature.
2705 * tdesc.h (tdesc_feature) Remove
2706 (target_desc): Add features.
2707
ea3e7d71
AH
27082018-04-18 Alan Hayward <alan.hayward@arm.com>
2709
2710 * Makefile.in: Add common/tdesc.c
2711 * tdesc.c (init_target_desc): init all reg_defs from register
2712 vector.
2713 (tdesc_create_reg): Create tdesc_reg.
2714 * tdesc.h (tdesc_feature): Add register vector.
2715
17d08cd4
SM
27162018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * tdesc.h (struct target_desc) <features>: Change type to
2719 std::vector<std::string>.
2720 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2721 changes.
2722 (tdesc_get_features_xml): Likewise.
2723 (tdesc_create_feature): Likewise.
2724
5cd3e386
AH
27252018-03-26 Alan Hayward <alan.hayward@arm.com>
2726
2727 * regcache.c (find_register_by_number): Return a ref.
2728 (find_regno): Use references.
2729 (register_size): Likewise.
2730 (register_data): Likewise.
2731 * tdesc.c (target_desc::~target_desc): Remove free calls.
2732 (target_desc::operator==): Use std::vector compare.
2733 (init_target_desc): Use reference.
2734 (tdesc_create_reg): Use reg constructors.
2735 * tdesc.h (struct target_desc): Replace pointer with object.
2736
dff7492c
AH
27372018-03-23 Alan Hayward <alan.hayward@arm.com>
2738
2739 * regcache.c (find_register_by_number): Make static.
2740 (find_regno): Use find_register_by_number
2741 * regcache.h (struct reg): Remove declaration.
2742
d80e5242
AH
27432018-03-23 Alan Hayward <alan.hayward@arm.com>
2744
2745 * tdesc.c (target_desc::~target_desc): Move to here.
2746 (target_desc::operator==): Likewise.
2747 * tdesc.h (target_desc::~target_desc): Move from here.
2748 (target_desc::operator==): Likewise.
2749
f69c5afb
AA
27502018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2751
2752 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2753
ce29f843
AA
27542018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2755
2756 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2757 S390_TDESC_GS.
2758 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2759 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2760 and init_registers_s390_gs_linux64.
2761
c49bd90b
AA
27622018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763
2764 * linux-s390-low.c (s390_fill_gs): Remove function.
2765 (s390_fill_gsbc): Remove function.
2766 (s390_regsets): Set fill functions for the guarded storage regsets
2767 to NULL.
2768
7edb9bd3
AA
27692018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2770
2771 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2772 the word size. Add comment.
2773 (s390_get_wordsize): New function.
2774 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2775 pswm with it. Instead, use s390_get_wordsize to determine the
2776 word size first and derive the correct tdesc from that directly.
2777
39be3c7e
SM
27782018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 * Makefile.in: Include silent-rules.mk.
2781 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2782 (COMPILE): Add ECHO_CXX.
2783 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2784 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2785 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2786 (version-generated.c): Add ECHO_GEN.
2787 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2788 (IPAGENT_COMPILE): Add ECHO_CXX.
2789 (%-generated.c): Add ECHO_REGDAT.
2790
3ae9ce5d
TT
27912018-03-14 Tom Tromey <tom@tromey.com>
2792
2793 PR cli/14977:
2794 * ax.c (ax_printf): Special case for NULL.
2795
e6a58aa8
SM
27962018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * linux-low.c (linux_qxfer_libraries_svr4): Use
2799 xml_escape_text_append.
2800
f6e8a41e
SM
28012018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2804
b9671caf
SM
28052018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 * server.c (handle_general_set): Remove unnecessary xstrdup.
2808
e80aaf61
SM
28092018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2810
2811 * server.c (parse_debug_format_options): Adjust to
2812 delim_string_to_char_ptr_vec changes.
2813 * thread-db.c (thread_db_load_search): Adjust to
2814 dirnames_to_char_ptr_vec changes.
2815
b1223e78
MM
28162018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2817
2818 * target.h (target_enable_btrace, target_disable_btrace)
2819 (target_read_btrace, target_read_btrace_conf): Turn macro into
2820 inline function. Throw error if target method is not defined.
2821 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2822 check for btrace target method. Be prepared to handle exceptions
2823 from btrace target methods.
2824
81561546
SDJ
28252018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2826
2827 * server.c (captured_main): Change order of error message printed
2828 when the current working directory cannot be found.
2829
25e3c82c
SDJ
28302018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2831
2832 * server.c: Include "filenames.h" and "pathstuff.h".
2833 (program_name): Delete variable.
2834 (program_path): New anonymous class.
2835 (get_exec_wrapper): Use "program_path" instead of
2836 "program_name".
2837 (handle_v_run): Likewise.
2838 (captured_main): Likewise.
2839 (process_serial_event): Likewise.
2840
b4987c95
SDJ
28412018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2842
2843 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2844 (OBJS): Add "pathstuff.o".
2845 * server.c (current_directory): New global variable.
2846 (captured_main): Initialize "current_directory".
2847
f46cd62a
AH
28482018-02-26 Alan Hayward <alan.hayward@arm.com>
2849
2850 * tdesc.c: Use common/tdesc.h.
2851 * tdesc.h: Likewise.
2852
a543c5ca
AH
28532018-02-20 Alan Hayward <alan.hayward@arm.com>
2854 Simon Marchi <simon.marchi@ericsson.com>
2855
2856 * Makefile.in: Switch order of make rules.
2857
b5884fa7
AH
28582018-02-19 Alan Hayward <alan.hayward@arm.com>
2859
2860 * Makefile.in: Add common directory in build.
2861 * configure.ac: Add common reference.
2862 * configure: Regenerate.
2863
de6242d3
MM
28642018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2865
2866 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2867 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2868 * spu-low.c (spu_target_ops): Likewise.
2869 * win32-low.c (win32_target_ops): Likewise.
2870 * server.c (supported_btrace_packets): Report packets unconditionally.
2871 * target.h (target_ops) <supports_btrace>: Remove.
2872 (target_supports_btrace): Remove.
2873
9ee23a85
MM
28742018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2875
2876 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2877 (handle_btrace_disable): Change return type to void. Use exceptions
2878 to report errors.
2879 (handle_btrace_general_set): Catch exception and copy message to
2880 return message.
2881
8ce47547
TT
28822018-02-08 Tom Tromey <tom@tromey.com>
2883
2884 * linux-low.c (install_software_single_step_breakpoints): Use
2885 make_scoped_restore.
2886 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2887 (do_restore_current_thread_cleanup): Remove.
2888 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2889 declare.
2890
45dd3607
TT
28912018-02-08 Tom Tromey <tom@tromey.com>
2892
2893 * mem-break.c (set_raw_breakpoint_at): Use
2894 gdb::unique_xmalloc_ptr.
2895
e671cd59
PA
28962018-01-30 Pedro Alves <palves@redhat.com>
2897
2898 PR gdb/13211
2899 * target.c (target_terminal::terminal_state): Rename to ...
2900 (target_terminal::m_terminal_state): ... this.
2901
a0aad537
JC
29022018-01-19 James Clarke <jrtc27@jrtc27.com>
2903
2904 * linux-low.c (handle_extended_wait): Surround call to
2905 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2906
4d9b86e1
SM
29072018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2908
2909 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2910 linux_ptrace_attach_fail_reason_string now returning an
2911 std::string.
2912 (linux_attach): Likewise.
2913 * thread-db.c (attach_thread): Likewise.
2914
f517c180
EA
29152018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2916
2917 PR gdb/21559
2918 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2919 checking for fs_base/gs_base fields in struct user_regs_struct.
2920 * configure: Regenerate.
2921
9a70f35c
YQ
29222018-01-16 Yao Qi <yao.qi@linaro.org>
2923
2924 PR gdb/18749
2925 * linux-low.c (fetch_register): Call supply_register instead of
2926 error.
2927
605fd3c6
YQ
29282018-01-08 Yao Qi <yao.qi@linaro.org>
2929 Simon Marchi <simon.marchi@ericsson.com>
2930
2931 * Makefile.in (OBS): Remove selftest.o.
2932 * configure.ac: Set srv_selftest_objs if $development is true.
2933 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2934 * configure: Re-generated.
2935 * server.c (captured_main): Wrap variable selftest_filter with
2936 GDB_SELF_TEST.
2937
2cc05030
SM
29382018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * server.c (parse_debug_format_options): Return std::string.
2941 (handle_monitor_command, captured_main): Adjust.
2942
e379cee6
PA
29432018-01-05 Pedro Alves <palves@redhat.com>
2944
2945 PR gdb/18653
2946 * server.c (captured_main): Pass quiet=false to
2947 save_original_signals_state.
2948
82e1e79a
JB
29492018-01-01 Joel Brobecker <brobecker@adacore.com>
2950
2951 * gdbreplay.c (gdbreplay_version): Update copyright year in
2952 version message.
2953 * server.c (gdbserver_version): Likewise.
2954
8e481c3b
TT
29552017-12-08 Tom Tromey <tom@tromey.com>
2956
2957 * ax.c (ax_printf): Update.
2958
a8806230
YQ
29592017-12-07 Yao Qi <yao.qi@linaro.org>
2960
2961 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2962 aarch64_linux_read_description.
2963 * linux-amd64-ipa.c (idx2mask): New array.
2964 (get_ipa_tdesc): Move idx2mask out.
2965 (initialize_low_tracepoint): Initialize target descriptions.
2966 * linux-i386-ipa.c (idx2mask): New array.
2967 (get_ipa_tdesc): Move idx2mask out.
2968 (initialize_low_tracepoint): Initialize target descriptions.
2969
d4a0e8b5
SM
29702017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * tdesc.c (struct tdesc_type): Change return type.
2973 (tdesc_add_flag): Change parameter type.
2974 (tdesc_add_bitfield): Likewise.
2975 (tdesc_add_field): Likewise.
2976 (tdesc_set_struct_size): Likewise.
2977
798a7429
SM
29782017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2979
2980 * regcache.c (registers_to_string): Remove unused variable.
2981
c0e15c9b
SM
29822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 * inferiors.c (for_each_inferior_with_data): Remove.
2985 * inferiors.h (for_each_inferior_with_data): Remove.
2986 * server.c (handle_qxfer_threads_worker): Change parameter type.
2987 (handle_qxfer_threads_proper): Use for_each_thread.
2988
f0045347
SM
29892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2990
2991 * inferiors.c (for_each_inferior): Remove.
2992 (clear_inferiors): Use for_each_thread.
2993 * inferiors.h (for_each_inferior): Remove.
2994 * linux-low.c (linux_wait_for_event_filtered): Use
2995 for_each_thread.
2996 (linux_stabilize_threads): Likewise.
2997 * regcache.c (regcache_release): Likewise.
2998 * server.c (gdb_wants_all_threads_stopped): Likewise.
2999 (clear_pending_status_callback): Remove.
3000 (handle_status): Use for_each_thread.
3001 (captured_main): Likewise.
3002 * win32-low.c (child_init_thread_list): Likewise.
3003 (win32_clear_inferiors): Likewise.
3004 (fake_breakpoint_event): Likewise.
3005
9521758b
SM
30062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3007
3008 * inferiors.h (find_inferior): Remove.
3009 * inferiors.c (find_inferior): Remove.
3010
8f86d7aa
SM
30112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3012
3013 * linux-low.c (resume_status_pending_p): Update comment.
3014 (need_step_over_p): Update comment.
3015
e2b44075
SM
30162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * linux-low.c (proceed_one_lwp): Return void, change parameter
3019 type.
3020 (unsuspend_and_proceed_one_lwp): Likewise.
3021 (proceed_all_lwps): Use for_each_thread.
3022 (unstop_all_lwps): Likewise.
3023
c80825ff
SM
30242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * linux-low.c (linux_resume_one_thread): Return void, take
3027 parameter directly.
3028 (linux_resume): Use for_each_thread.
3029
df3e4dbe
SM
30302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3031
3032 * linux-low.c (send_sigstop_callback): Return void, change
3033 parameter type. Rename to...
3034 (send_sigstop): ... this.
3035 (suspend_and_send_sigstop_callback): Return void, change parameter
3036 type. Rename to...
3037 (suspend_and_send_sigstop): ... this.
3038 (stop_all_lwps): Use for_each_thread.
3039
5a6b0a41
SM
30402017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * linux-low.c (lwp_running): Return bool, remove unused
3043 argument.
3044 (linux_stabilize_threads): Use find_thread.
3045
39a64da5
SM
30462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * linux-low.c (select_singlestep_lwp_callback): Remove.
3049 (count_events_callback): Remove.
3050 (select_event_lwp_callback): Remove.
3051 (select_event_lwp): Use find_thread/for_each_thread.
3052
a1385b7b
SM
30532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3054
3055 * linux-low.c (not_stopped_callback): Return bool, take filter
3056 argument directly.
3057 (linux_wait_for_event_filtered): Use find_thread.
3058 (linux_wait_1): Likewise.
3059
454296a2
SM
30602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 * linux-low.c (same_lwp): Remove.
3063 (find_lwp_pid): Use find_thread.
3064
6b2a85da
SM
30652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3066
3067 * linux-low.c (delete_lwp_callback): Remove.
3068 (linux_mourn): Use for_each_thread.
3069
798a38e8
SM
30702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3071
3072 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3073 args parameter, don't check for pid.
3074 (linux_detach): Use for_each_thread.
3075
e4eb0dec
SM
30762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3077
3078 * linux-low.c (struct counter): Remove.
3079 (second_thread_of_pid_p): Remove.
3080 (last_thread_of_process_p): Use find_thread.
3081
83e1b6c1
SM
30822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3083
3084 * inferiors.c (find_inferior_in_random): Remove.
3085 * inferiors.h (find_inferior_in_random): Remove.
3086 * linux-low.c (status_pending_p_callback): Return bool, accept
3087 parameter ptid directly.
3088 (linux_wait_for_event_filtered): Use find_thread_in_random.
3089 (linux_wait_1): Likewise.
3090
8dc7b443
SM
30912017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3092
3093 * inferiors.c (find_inferior_id): Remove.
3094 (find_thread_ptid): Move implemention from find_inferior_id to
3095 here.
3096 * inferiors.h (find_inferior_id): Remove.
3097 * server.c (handle_status): Use find_thread_ptid.
3098 (process_serial_event): Likewise.
3099 * thread-db.c (find_one_thread): Likewise.
3100 (thread_db_thread_handle): Likewise.
3101 * win32-low.c (thread_rec): Likewise.
3102 (child_delete_thread): Likewise.
3103 (win32_thread_alive): Likewise.
3104 (get_child_debug_event): Likewise.
3105
da25033c
SM
31062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3107
3108 * linux-mips-low.c (update_watch_registers_callback): Return
3109 void, remove pid_p parameter, don't check for pid.
3110 (mips_insert_point, mips_remove_point): Use for_each_thread.
3111
c91bb56b
SM
31122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3113
3114 * lynx.low (lynx_delete_thread_callback): Remove.
3115 (lynx_mourn): Use for_each_thread.
3116
634a3254
SM
31172017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3118
3119 * regcache.c (regcache_invalidate_one): Remove.
3120 (regcache_invalidate_pid): use for_each_thread.
3121
41272101
TT
31222017-11-26 Tom Tromey <tom@tromey.com>
3123
3124 * linux-low.c (linux_create_inferior): Update.
3125
f5291a6f
UW
31262017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3127
3128 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3129
6654d750
AH
31302017-11-24 Alan Hayward <alan.hayward@arm.com>
3131
3132 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3133 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3134 * linux-aarch64-tdesc-selftest.c: New file.
3135 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3136
31372017-11-24 Alan Hayward <alan.hayward@arm.com>
3138
3139 * configure.srv: Add new file.
3140 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3141 * linux-aarch64-tdesc-selftest.c: New file.
3142 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3143
49bdb7ee
AH
31442017-11-24 Alan Hayward <alan.hayward@arm.com>
3145
3146 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3147 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3148 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3149
d6d7ce56
AH
31502017-11-24 Alan Hayward <alan.hayward@arm.com>
3151
3152 * configure.srv: Add new files.
3153 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3154 aarch64_linux_read_description.
3155 * linux-aarch64-low.c (aarch64_linux_read_description):
3156 Merge with aarch64_arch_setup.
3157 (aarch64_arch_setup): Call aarch64_linux_read_description.
3158 * linux-aarch64-tdesc.c: New file.
3159 * linux-aarch64-tdesc.h: New file.
3160
506fe5f4
YQ
31612017-11-24 Yao Qi <yao.qi@linaro.org>
3162
3163 * configure.srv: Set $srv_regobj for tic6x-linux.
3164 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3165 (tic6x_read_description): Move some code to tic6x_arch_setup.
3166 (tic6x_tdesc_test): New function.
3167 (initialize_low_arch): Call selftests::register_test.
3168
29f9a567
YQ
31692017-11-22 Yao Qi <yao.qi@linaro.org>
3170
3171 * remote-utils.c (prepare_resume_reply): Use memcpy.
3172
578290ec
SM
31732017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3174
3175 * linux-low.c (kill_one_lwp_callback): Return void, take
3176 argument directly, don't filter on pid.
3177 (linux_kill): Use for_each_thread.
3178
eca55aec
SM
31792017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3180
3181 * linux-low.c (need_step_over_p): Return bool, remove dummy
3182 argument.
3183 (linux_resume, proceed_all_lwps): Use find_thread.
3184
25c28b4d
SM
31852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3186
3187 * linux-low.c (resume_status_pending_p): Return bool, remove
3188 flag_p argument.
3189 (linux_resume): Use find_thread.
3190
5fdda392
SM
31912017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3192
3193 * linux-low.c (struct thread_resume_array): Remove.
3194 (linux_set_resume_request): Return void, take arguments
3195 directly.
3196 (linux_resume): Use for_each_thread.
3197
fcb056a5
SM
31982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3199
3200 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3201 return bool, remove data argument.
3202 (linux_stabilize_threads): Use find_thread.
3203
139720c5
SM
32042017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3205
3206 * linux-low.c (unsuspend_one_lwp): Remove.
3207 (unsuspend_all_lwps): Use for_each_thread, inline code from
3208 unsuspend_one_lwp.
3209
6d1e5673
SM
32102017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3211
3212 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3213 * linux-low.c (struct iterate_over_lwps_args): Remove.
3214 (iterate_over_lwps_filter): Remove.
3215 (iterate_over_lwps): Use find_thread.
3216
bbf550d5
SM
32172017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3218
3219 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3220 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3221 code from reset_lwp_ptrace_options_callback.
3222
00192f77
SM
32232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3224
3225 * linux-arm-low.c (struct update_registers_data): Remove.
3226 (update_registers_callback): Return void, take arguments
3227 directly, don't check thread's pid.
3228 (arm_insert_point, arm_remove_point): Use for_each_thread.
3229
2bee2b6c
SM
32302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3231
3232 * win32-low.c (continue_one_thread): Return void, take argument
3233 directly.
3234 (child_continue): Use for_each_thread.
3235
0b360f19
SM
32362017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3237
3238 * win32-i386-low.c (update_debug_registers_callback): Rename
3239 to ...
3240 (update_debug_registers): ... this, return void, remove pid_p arg.
3241 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3242
f27866ba
SM
32432017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * inferiors.h (struct process_info): Add constructor, initialize
3246 fields..
3247 <syscalls_to_catch>: Change type to std::vector<int>.
3248 * inferiors.c (add_process): Allocate process_info with new.
3249 (remove_process): Free process_info with delete.
3250 * linux-low.c (handle_extended_wait): Adjust.
3251 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3252 * server.c (handle_general_set): Adjust.
3253
e849ea89
PA
32542017-11-16 Pedro Alves <palves@redhat.com>
3255
3256 * remote-utils.c (remote_close): Block SIGIO signals instead of
3257 uninstalling the SIGIO handler.
3258
1d0aa65c
AH
32592017-11-16 Alan Hayward <alan.hayward@arm.com>
3260
3261 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3262
3491a34c
YQ
32632017-11-16 Yao Qi <yao.qi@linaro.org>
3264
3265 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3266 (tic6x_store_gregset): Likewise.
3267 (tic6x_usrregs_info): Move it up.
3268
a602f924
AH
32692017-11-15 Alan Hayward <alan.hayward@arm.com>
3270
3271 * Makefile.in: Update arch rules.
3272 * configure.srv: Explicitly mark arch/ files.
3273
5616b6c3
AS
32742017-11-13 Andreas Schwab <schwab@suse.de>
3275
3276 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3277 function.
3278 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3279
d1928160
PA
32802017-11-06 Pedro Alves <palves@redhat.com>
3281
3282 * config.in, configure: Regenerate.
3283
bac608e7
SM
32842017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3285
3286 * target.c (struct thread_search): Remove.
3287 (thread_search_callback): Remove.
3288 (prepare_to_access_memory): Use for_each_thread instead of
3289 find_inferior. Inline code from thread_search_callback.
3290
eaddb425
SM
32912017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3292
3293 * server.c (struct visit_actioned_threads_data): Remove.
3294 (visit_actioned_threads): Change prototype to take arguments
3295 directly.
3296 (resume): Use find_thread instead of find_inferior.
3297
99078d34
SM
32982017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3299
3300 * server.c (queue_stop_reply_callback): Change prototype, return
3301 void.
3302 (find_status_pending_thread_callback): Remove.
3303 (handle_status): Replace find_inferior with find_thread and
3304 for_each_thread.
3305
cc628f3d
AH
33062017-10-25 Alan Hayward <alan.hayward@arm.com>
3307
3308 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3309 with REGNO.
3310 (aarch64_store_gregset): Likewise.
3311 (aarch64_fill_fpregset): Likewise.
3312 (aarch64_store_fpregset): Likewise.
3313
4d3bb80e
SM
33142017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3315
3316 * gdbthread.h (find_thread, for_each_thread): New functions.
3317 * inferiors.c (thread_of_pid): Remove.
3318 (find_any_thread_of_pid): Use find_thread.
3319 * linux-low.c (num_lwps): Use for_each_thread.
3320
7a7cdfa0
YQ
33212017-10-17 Yao Qi <yao.qi@linaro.org>
3322
3323 * Makefile.in: Remove one rule.
3324 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3325
e675d170
YQ
33262017-10-17 Yao Qi <yao.qi@linaro.org>
3327
3328 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3329 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3330
7eb4e0f9
YQ
33312017-10-17 Yao Qi <yao.qi@linaro.org>
3332
3333 * configure.srv: Rename arm.o with arch/arm.o.
3334
60d6cfc9
YQ
33352017-10-17 Yao Qi <yao.qi@linaro.org>
3336
3337 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3338 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3339 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3340 (arch-i386.o, arch-amd64.o): Remove rules.
3341 (arch/%.o): New rule.
3342 Update POSTCOMPILE and COMPILE.pre.
3343 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3344 * configure: Re-generated.
3345 * configure.srv: Replace arch-i386.o with arch/i386.o.
3346 Replace arch-amd64.o with arch/amd64.o.
3347
5bfda255
YQ
33482017-10-16 Yao Qi <yao.qi@linaro.org>
3349
3350 * configure: Regenerated.
3351
9c80ecd6
SM
33522017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3353
3354 * inferiors.h: (struct inferior_list): Remove.
3355 (struct inferior_list_entry); Remove.
3356 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3357 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3358 get_first_inferior): Remove.
3359 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3360 find_inferior_id, find_inferior_in_random): Change signature.
3361 * inferiors.c (all_threads): Change type to
3362 std::list<thread_info *>.
3363 (get_thread): Remove macro.
3364 (find_inferior, find_inferior_id): Change signature, implement
3365 using find_thread.
3366 (find_inferior_in_random): Change signature, implement using
3367 find_thread_in_random.
3368 (for_each_inferior, for_each_inferior_with_data): Change
3369 signature, implement using for_each_thread.
3370 (add_inferior_to_list, remove_inferior): Remove.
3371 (add_thread, get_first_thread, thread_of_pid,
3372 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3373 (get_first_inferior, one_inferior_p, clear_inferior_list):
3374 Remove.
3375 (clear_inferiors, get_thread_process): Update.
3376 * gdbthread.h: Include <list>.
3377 (struct thread_info) <entry>: Remove field.
3378 <id>: New field.
3379 (all_threads): Change type to std::list<thread_info *>.
3380 (get_first_inferior): Add doc.
3381 (find_thread, for_each_thread, find_thread_in_random): New
3382 functions.
3383 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3384 * linux-arm-low.c (update_registers_callback): Update.
3385 * linux-low.c (second_thread_of_pid_p): Update.
3386 (kill_one_lwp_callback, linux_detach_lwp_callback,
3387 delete_lwp_callback, status_pending_p_callback, same_lwp,
3388 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3389 iterate_over_lwps, not_stopped_callback,
3390 resume_stopped_resumed_lwps, count_events_callback,
3391 select_singlestep_lwp_callback, select_event_lwp_callback,
3392 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3393 suspend_and_send_sigstop_callback, wait_for_sigstop,
3394 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3395 lwp_running, linux_set_resume_request, resume_status_pending_p,
3396 need_step_over_p, start_step_over, linux_resume_one_thread,
3397 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3398 reset_lwp_ptrace_options_callback): Update.
3399 * linux-mips-low.c (update_watch_registers_callback): Update.
3400 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3401 Update.
3402 (free_register_cache_thread_one): Remove.
3403 (regcache_release): Update.
3404 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3405 handle_qxfer_threads_worker): Update.
3406 (handle_query): Update, use list iterator.
3407 (visit_actioned_threads, handle_pending_status,
3408 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3409 clear_pending_status_callback, set_pending_status_callback,
3410 find_status_pending_thread_callback, handle_status,
3411 process_serial_event): Update.
3412 * target.c (thread_search_callback): Update.
3413 * thread-db.c (thread_db_get_tls_address): Update.
3414 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3415 Update.
3416 * win32-i386-low.c (update_debug_registers_callback): Update.
3417 * win32-low.c (delete_thread_info, child_delete_thread,
3418 continue_one_thread, suspend_one_thread,
3419 get_child_debug_event): Adjust.
3420
9179355e
SM
34212017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3422
3423 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3424 * inferiors.h: Include <list>.
3425 (struct process_info) <entry>: Remove field.
3426 <pid>: New field.
3427 (pid_of): Change macro to function.
3428 (ptid_of, lwpid_of): Remove macro.
3429 (all_processes): Change type to std::list<process_info *>.
3430 (ALL_PROCESSES): Remove macro.
3431 (for_each_process, find_process): New function.
3432 * inferiors.c (all_processes): Change type to
3433 std::list<process_info *>.
3434 (find_thread_process): Adjust.
3435 (add_process): Likewise.
3436 (remove_process): Likewise.
3437 (find_process_pid): Likewise.
3438 (get_first_process): Likewise.
3439 (started_inferior_callback): Remove.
3440 (have_started_inferiors_p): Adjust.
3441 (attached_inferior_callback): Remove.
3442 (have_attached_inferiors_p): Adjust.
3443 * linux-low.c (check_zombie_leaders): Likewise.
3444 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3445 (x86_linux_update_xmltarget): Adjust.
3446 * server.c (handle_query): Likewise.
3447 (gdb_reattached_process): Remove.
3448 (handle_status): Adjust.
3449 (kill_inferior_callback): Likewise.
3450 (detach_or_kill_inferior): Remove.
3451 (print_started_pid): Likewise.
3452 (print_attached_pid): Likewise.
3453 (detach_or_kill_for_exit): Update.
3454 (process_serial_event): Likewise.
3455 * linux-arm-low.c (arm_new_fork): Likewise.
3456
c9cb8905
SM
34572017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3458
3459 * dll.h: Include <list>.
3460 (struct dll_info): Add constructor.
3461 <entry>: Remove field.
3462 (all_dlls): Change type to std::list<dll_info>.
3463 * dll.c: Include <algorithm>.
3464 (get_dll): Remove macro.
3465 (all_dlls): Change type to std::list<dll_info *>.
3466 (free_one_dll): Remove.
3467 (match_dll): Likewise.
3468 (loaded_dll): Adjust.
3469 (unloaded_dll): Adjust to all_dlls type change, use
3470 std::find_if. Inline code from match_dll.
3471 (clear_dlls): Adjust to all_dlls type change.
3472 * server.c (emit_dll_description): Remove.
3473 (handle_qxfer_libraries): Adjust to all_dlls type change,
3474 integrate emit_dll_description's functionality.
3475
04ec7890
SM
34762017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3477
3478 * linux-low.h (struct linux_target_ops) <delete_process>: New
3479 field.
3480 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3481 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3482 (struct linux_target_ops): Add delete_process callback.
3483 * linux-arm-low.c (arm_delete_process): New.
3484 (struct linux_target_ops): Add delete_process callback.
3485 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3486 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3487 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3488 * linux-mips-low.c (mips_linux_delete_process): New.
3489 (struct linux_target_ops): Add delete_process callback.
3490 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3491 * linux-s390-low.c (struct linux_target_ops): Likewise.
3492 * linux-sh-low.c (struct linux_target_ops): Likewise.
3493 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3494 * linux-tile-low.c (struct linux_target_ops): Likewise.
3495 * linux-x86-low.c (x86_linux_delete_process): New.
3496 (struct linux_target_ops): Add delete_process callback.
3497 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3498
466eecee
SM
34992017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3500
3501 * linux-aarch64-low.c (the_low_target): Add thread delete
3502 callback.
3503 * linux-arm-low.c (arm_delete_thread): New function.
3504 (the_low_target): Add thread delete callback.
3505 * linux-bfin-low.c (the_low_target): Likewise.
3506 * linux-crisv32-low.c (the_low_target): Likewise.
3507 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3508 set.
3509 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3510 field.
3511 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3512 * linux-mips-low.c (mips_linux_delete_thread): New function.
3513 (the_low_target): Add thread delete callback.
3514 * linux-ppc-low.c (the_low_target): Likewise.
3515 * linux-s390-low.c (the_low_target): Likewise.
3516 * linux-sh-low.c (the_low_target): Likewise.
3517 * linux-tic6x-low.c (the_low_target): Likewise.
3518 * linux-tile-low.c (the_low_target): Likewise.
3519 * linux-x86-low.c (the_low_target): Likewise.
3520 * linux-xtensa-low.c (the_low_target): Likewise.
3521
b79f7801
YZ
35222017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3523
3524 * win32-low.c: Include "common-inferior.h".
3525
bc3b087d
SDJ
35262017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3527
3528 * inferiors.c (set_inferior_cwd): New function.
3529 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3530 (handle_query): Inform that QSetWorkingDir is supported.
3531 * win32-low.c (create_process): Pass the inferior's cwd to
3532 CreateProcess.
3533
d092c5a2
SDJ
35342017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3535
3536 * inferiors.c (current_inferior_cwd): New global variable.
3537 (get_inferior_cwd): New function.
3538 * inferiors.h (struct process_info) <cwd>: New field.
3539
7da0a886
SDJ
35402017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3541
3542 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3543 (OBS): Add gdb_tilde_expand.o.
3544
289a6840
SM
35452017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3546
3547 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3548 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3549
256642e8
PA
35502017-09-29 Pedro Alves <palves@redhat.com>
3551
3552 * ax.c (gdb_parse_agent_expr): Constify.
3553 * ax.h (gdb_parse_agent_expr): Constify.
3554 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3555 Constify.
3556 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3557 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3558 * remote-utils.h (read_ptid): Constify.
3559 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3560 (process_point_options, process_serial_event): Constify.
3561 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3562 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3563 (cmd_qtbuffer): Constify.
3564
5b9ca4d4
PA
35652017-09-29 Pedro Alves <palves@redhat.com>
3566
3567 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3568 fails.
3569
94c207e0
PA
35702017-09-29 Pedro Alves <palves@redhat.com>
3571
3572 * linux-low.c (handle_extended_wait): Pass parent thread instead
3573 of process to thread_db_notice_clone.
3574 * linux-low.h (thread_db_notice_clone): Replace parent process
3575 parameter with parent thread parameter.
3576 * thread-db.c (find_one_thread): Add comment.
3577 (thread_db_notice_clone): Replace parent process parameter with
3578 parent thread parameter. Temporarily switch to the parent thread.
3579
75352e28
SDJ
35802017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3581
3582 * gdbthread.h: Include "common-gdbthread.h".
3583 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3584 "if" when validating the ptid.
3585 * remote-utils.c: Include "gdbthread.h".
3586 (prepare_resume_reply): Use "switch_to_thread".
3587 * target.c (done_accessing_memory): Likewise.
3588
ad339634
AA
35892017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3590
3591 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3592 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3593 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3594 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3595 s390x-gs-linux64-ipa.o to ipa_obj.
3596 * linux-s390-low.c (HWCAP_S390_GS): New define.
3597 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3598 New functions.
3599 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3600 (s390_arch_setup): Check for guarded-storage support and choose
3601 appropriate tdesc.
3602 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3603 init_registers_s390x_gs_linux64.
3604 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3605 enum value.
3606 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
3607 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
3608
cc4d742f
SM
36092017-09-22 Simon Marchi <simon.marchi@ericsson.com>
3610
3611 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
3612
f6327dcb
KB
36132017-09-21 Kevin Buettner <kevinb@redhat.com>
3614
3615 * linux-low.h (struct lwp_info): Add new field, thread_handle.
3616 (thread_db_thread_handle): Declare.
3617 * linux-low.c (linux_target_ops): Initialize thread_handle.
3618 * server.c (handle_qxfer_threads_worker): Add support for
3619 "handle" attribute.
3620 * target.h (struct target_ops): Add new function pointer,
3621 thread_handle.
3622 (target_thread_handle): Define.
3623 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
3624 field in lwp.
3625 (thread_db_thread_handle): New function.
3626
86299109
KB
36272017-09-21 Kevin Buettner <kevinb@redhat.com>
3628
3629 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
3630 * linux-low.h (thread_db_notice_clone): Declare.
3631 * thread-db.c (thread_db_notice_clone): New function.
3632
f557a88a
PA
36332017-09-21 Pedro Alves <palves@redhat.com>
3634
3635 * server.c (gdb_read_memory, handle_status, process_serial_event)
3636 (handle_serial_event, handle_target_event): Adjust to
3637 set_desired_thread prototype change.
3638 * target.c (set_desired_thread): Remove 'use_general' parameter
3639 and adjust.
3640 * target.h (set_desired_thread): Remove 'use_general' parameter.
3641
223ffa71
TT
36422017-09-20 Tom Tromey <tom@tromey.com>
3643
3644 * target.c (target_terminal::terminal_state): Define.
3645 (target_terminal::init): Rename from target_terminal_init.
3646 (target_terminal::inferior): Rename from
3647 target_terminal_inferior.
3648 (target_terminal::ours): Rename from target_terminal_ours.
3649 (target_terminal::ours_for_output, target_terminal::info): New.
3650
04fd3ba9
SM
36512017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3652
3653 * server.c (accumulate_file_name_length): Remove.
3654 (emit_dll_description): Adjust to std::string change.
3655 (handle_qxfer_libraries): Use std::string to hold document.
3656
5e187554
SM
36572017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3658
3659 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3660 return type of xml_escape_text.
3661 * server.c (emit_dll_description): Likewise.
3662
1526853e
SM
36632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3664
3665 * server.c (captured_main): Accept argument for --selftest.
3666 Update run_tests call.
3667 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3668 when registering selftests.
3669
c4dfafab
SDJ
36702017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3671
3672 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3673 instead of "VEC" for "target_desc.reg_defs".
3674 (regcache_cpy): Likewise.
3675 (registers_to_string): Likewise.
3676 (registers_from_string): Likewise.
3677 (find_regno): Likewise.
3678 (supply_regblock): Likewise.
3679 (regcache_raw_read_unsigned): Likewise.
3680 * tdesc.c (init_target_desc): Likewise.
3681 (tdesc_create_reg): Likewise.
3682 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3683 (struct target_desc) <reg_defs>: Convert to "std::vector".
3684 (target_desc): Do not initialize "reg_defs".
3685 (~target_desc): Update code to use "std::vector" instead of "VEC"
3686 for "target_desc.reg_defs".
3687 (operator==): Likewise.
3688
124aceb4
SM
36892017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3690
3691 * inferiors.h (thread_to_gdb_id): Remove.
3692 * inferiors.c (thread_to_gdb_id): Remove.
3693 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3694 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3695 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3696 Likewise.
3697 * nto-low.c (nto_fetch_registers, nto_store_registers,
3698 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3699
96cde54f
SM
37002017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3701
3702 * inferiors.h (gdb_id_to_thread_id): Remove.
3703 * inferiors.c (gdb_id_to_thread_id): Remove.
3704 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3705 removal. Move pid declaration closer to where it's used.
3706
e8ca139e
SM
37072017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3708
3709 * server.c (handle_detach): New function.
3710 (process_serial_event): Move code out, call handle_detach.
3711
f8a4e119
SM
37122017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3713
3714 * server.c (require_running): Rename to ...
3715 (require_running_or_return): ... this ...
3716 (require_running_or_break): ... and this.
3717 (handle_query, process_serial_event): Adjust.
3718
0eb0a407
SM
37192017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3720
3721 * linux-low.c (linux_set_resume_request): Remove unused
3722 variables.
3723
785922a5
SM
37242017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3725
3726 * server.c (first_thread_of): Remove.
3727 (process_serial_event): Replace usage of first_thread_of with
3728 find_any_thread_of_pid.
3729 * tracepoint.c (same_process_p): Remove.
3730 (gdb_agent_about_to_close): Replace usage of same_process_p with
3731 find_any_thread_of_pid.
3732 * linux-x86-low.c (same_process_callback): Remove.
3733 (x86_arch_setup_process_callback): Replace usage of
3734 same_process_callback with find_any_thread_of_pid.
3735 * thread-db.c (any_thread_of): Remove.
3736 (switch_to_process): Replace usage of any_thread_of with
3737 find_any_thread_of_pid.
3738 * inferiors.c (thread_pid_matches_callback): Remove.
3739 (find_thread_process): Adjust to use find_any_thread_of_pid.
3740
a059f00c
SDJ
37412017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3742
3743 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 3744 with "!VEC_empty".
a059f00c 3745
cc397f3a
SDJ
37462017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3747
3748 * linux-low.c (handle_extended_wait): Use
3749 "allocate_target_description" instead of "XNEW".
3750 * linux-x86-low.c (initialize_low_arch): Likewise.
3751
22916b07
YQ
37522017-09-05 Yao Qi <yao.qi@linaro.org>
3753
3754 * configure.srv (srv_i386_regobj): Remove.
3755 (srv_amd64_regobj): Remove.
3756 (srv_regobj): Set it to "" for x86 non-linux targets.
3757 * linux-x86-tdesc.c (i386_linux_read_description):
3758 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3759 (init_registers_i386): Remove the declaration.
3760 (tdesc_i386): Remove the declaration.
3761 (lynx_i386_arch_setup): Call i386_create_target_description.
3762 * nto-x86-low.c: Likewise.
3763 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3764 [!__x86_64__]: include arch/i386.h.
3765 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3766
38602d55
YQ
37672017-09-05 Yao Qi <yao.qi@linaro.org>
3768
3769 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3770 i386/amd64-XXX-linux from it.
3771
44b886ff
YQ
37722017-09-05 Yao Qi <yao.qi@linaro.org>
3773
3774 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3775 false.
3776 (ipa_amd64_linux_regobj): Remove.
3777 (ipa_x32_linux_regobj): Remove.
3778
b4570e4b
YQ
37792017-09-05 Yao Qi <yao.qi@linaro.org>
3780
3781 * Makefile.in (arch-amd64.o): New rule.
3782 * configure.srv: Append arch-amd64.o.
3783 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3784 (get_ipa_tdesc): Call amd64_linux_read_description.
3785 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3786 and init_registers_amd64_XXX.
3787 * linux-x86-low.c (x86_linux_read_description): Call
3788 amd64_linux_read_description.
3789 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3790 (initialize_low_arch): Don't call init_registers_x32_XXX and
3791 init_registers_amd64_XXX.
3792 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3793 and tdesc_amd64_XXX.
3794 [__x86_64__] (amd64_tdesc_test): New function.
3795 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3796 and init_registers_amd64_XXX.
3797 * linux-x86-tdesc.c: Include arch/amd64.h.
3798 (xcr0_to_tdesc_idx): New function.
3799 (i386_linux_read_description): New function.
3800 (amd64_get_ipa_tdesc_idx): New function.
3801 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3802 (amd64_get_ipa_tdesc): Declare.
3803
d1f28ea2
YQ
38042017-09-05 Yao Qi <yao.qi@linaro.org>
3805
3806 * configure.srv (srv_i386_linux_xmlfiles): Remove
3807 i386/i386-XXX-linux.xml from it.
3808
25a93583
YQ
38092017-09-05 Yao Qi <yao.qi@linaro.org>
3810
3811 * configure.srv: Set srv_i386_linux_regobj empty if $development
3812 is false.
3813 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3814 initialize_low_tdesc.
3815 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3816 with #if initialize_low_tdesc.
3817 * linux-x86-tdesc-selftest.c: New file.
3818 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3819
5f035c07
YQ
38202017-09-05 Yao Qi <yao.qi@linaro.org>
3821
3822 * Makefile.in (arch-i386.o): New rule.
3823 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3824 (x86_64-*-linux*): Likewise.
3825 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3826 include arch/i386.h.
3827 (i386_linux_read_description): Remove code and call
3828 i386_create_target_description.
3829 * tdesc.c (allocate_target_description): New function.
3830 * tdesc.h (set_tdesc_architecture): Remove declaration.
3831 (set_tdesc_osabi): Likewise.
3832
0abe8a89
YQ
38332017-09-05 Yao Qi <yao.qi@linaro.org>
3834
3835 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3836 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3837 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3838 .xmltarget.
3839 * server.c (get_features_xml): Call tdesc_get_features_xml.
3840 * tdesc.c (set_tdesc_architecture): New function.
3841 (set_tdesc_osabi): New function.
3842 (tdesc_get_features_xml): New function.
3843 (tdesc_create_feature): Add an argument.
3844 * tdesc.h (struct target_desc) <features>: New field.
3845 <arch, osabi>: New field.
3846 (~target_desc): xfree features, arch, and osabi.
3847 (target_desc::oerator==): Don't compare .xmltarget.
3848 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3849 (set_tdesc_osabi): Likewise.
3850 (tdesc_get_features_xml): Likewise.
3851
0a188386
YQ
38522017-09-05 Yao Qi <yao.qi@linaro.org>
3853
3854 * linux-x86-tdesc.c: Include selftest.h.
3855 (i386_tdesc_test): New function.
3856 (initialize_low_tdesc): Call selftests::register_test.
3857 * tdesc.h: Include regdef.h.
3858 (target_desc): Override operator == and !=.
3859
f49ff000
YQ
38602017-09-05 Yao Qi <yao.qi@linaro.org>
3861
3862 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3863 (ipa_obj): Likewise.
3864 * linux-i386-ipa.c: Include common/x86-xstate.h
3865 (get_ipa_tdesc): Call i386_linux_read_description.
3866 (initialize_low_tracepoint): Don't call init_registers_XXX
3867 functions, call initialize_low_tdesc instead.
3868 * linux-x86-low.c (x86_linux_read_description): Call
3869 i386_linux_read_description.
3870 (initialize_low_arch): Don't call init_registers_i386_XXX
3871 functions, call initialize_low_tdesc.
3872 * linux-x86-tdesc.c: New file.
3873 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3874 (i386_get_ipa_tdesc_idx): Declare.
3875 (i386_get_ipa_tdesc): Declare.
3876 (initialize_low_tdesc): Declare.
3877
2b68ef2f
YQ
38782017-09-05 Yao Qi <yao.qi@linaro.org>
3879
3880 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3881 instead of 0.
3882
f7000548
YQ
38832017-09-05 Yao Qi <yao.qi@linaro.org>
3884
3885 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3886 * regcache.c (get_thread_regcache): Use VEC_length.
3887 (init_register_cache): Likewise.
3888 (regcache_cpy): Likewise.
3889 (registers_to_string): Iterate reg_defs via VEC_iterate.
3890 (find_regno): Likewise.
3891 (find_register_by_number): Use VEC_index.
3892 (register_size): Call find_register_by_number.
3893 (register_data): Call find_register_by_number.
3894 (supply_regblock): Use VEC_length.
3895 (regcache_raw_read_unsigned): Likewise.
3896 * tdesc.c (init_target_desc): Iterate reg_defs via
3897 VEC_iterate.
3898 (default_description): Update initializer.
3899 (copy_target_description): Don't update field num_registers.
3900 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3901 <num_registers>: Remove.
3902
50a421ac
SM
39032017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3904
3905 * Makefile.in (.SECONDARY): Define target.
3906
23fdd69e
SM
39072017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3908
3909 * linux-low.c (linux_wait_1): Adjust.
3910 * server.c (queue_stop_reply_callback): Adjust.
3911
0a2dde4a
SDJ
39122017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3913
3914 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3915 QEnvironmentUnset and QEnvironmentReset packets.
3916 (handle_query): Inform remote that QEnvironmentHexEncoded,
3917 QEnvironmentUnset and QEnvironmentReset are supported.
3918
6afd337d
SM
39192017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3920
3921 * inferiors.h (inferior_target_data): Rename to ...
3922 (thread_target_data): ... this.
3923 (inferior_regcache_data): Rename to ...
3924 (thread_regcache_data): ... this.
3925 (set_inferior_regcache_data): Rename to ...
3926 (set_thread_regcache_data): ... this.
3927 * inferiors.c (inferior_target_data): Rename to ...
3928 (thread_target_data): ... this.
3929 (inferior_regcache_data): Rename to ...
3930 (thread_regcache_data): ... this.
3931 (set_inferior_regcache_data): Rename to ...
3932 (set_thread_regcache_data): ... this.
3933 (free_one_thread): Update.
3934 * linux-low.h (get_thread_lwp): Update.
3935 * regcache.c (get_thread_regcache): Update.
3936 (regcache_invalidate_thread): Update.
3937 (free_register_cache_thread): Update.
3938 * win32-i386-low.c (update_debug_registers_callback): Update.
3939 (win32_get_current_dr): Update.
3940 * win32-low.c (thread_rec): Update.
3941 (delete_thread_info): Update.
3942 (continue_one_thread): Update.
3943 (suspend_one_thread): Update.
3944
a160cc46
SM
39452017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3946
3947 * inferiors.c (set_inferior_target_data): Remove.
3948 * inferiors.h (set_inferior_target_data): Remove.
3949
6d580b63
YQ
39502017-08-18 Yao Qi <yao.qi@linaro.org>
3951
3952 * Makefile.in (OBS): Add selftest.o.
3953 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3954 * configure, config.in: Re-generated.
3955 * server.c: Include common/sefltest.h.
3956 (captured_main): Handle option --selftest.
3957
f5a29eb0
YQ
39582017-08-09 Yao Qi <yao.qi@linaro.org>
3959
3960 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3961 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3962 i386-avx-mpx.o and i386-mmx.o.
3963 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3964 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3965 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3966 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3967 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3968 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3969 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3970 i386/amd64-avx-mpx.xml.
3971
57757c2f
YQ
39722017-08-09 Yao Qi <yao.qi@linaro.org>
3973
3974 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3975 and x32-avx-avx512.o.
3976 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3977 i386/x32-avx-avx512.xml.
3978
229d26fc
SM
39792017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3980
3981 * tracepoint.h (enum class fast_tpoint_collect_result): New
3982 enumeration.
3983 (fast_tracepoint_collecting): Change return type to
3984 fast_tpoint_collect_result.
3985 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3986 * linux-low.h: Include tracepoint.h.
3987 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3988 fast_tpoint_collect_result.
3989 * linux-low.c (handle_tracepoints): Adjust.
3990 (linux_fast_tracepoint_collecting): Change return type to
3991 fast_tpoint_collect_result.
3992 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3993 linux_wait_1, stuck_in_jump_pad_callback,
3994 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3995 proceed_one_lwp): Adjust to type change.
3996
2e1e43e1
YQ
39972017-07-10 Yao Qi <yao.qi@linaro.org>
3998
3999 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4000
adc764e7
YQ
40012017-06-29 Yao Qi <yao.qi@linaro.org>
4002
4003 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4004 Remove.
4005 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4006
a206891a
SM
40072017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4008
4009 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4010
9a6c7d9c
SDJ
40112017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4012
4013 * linux-low.c (linux_create_inferior): Adjust code to access the
4014 environment information via 'gdb_environ' class.
4015 * lynx-low.c (lynx_create_inferior): Likewise.
4016 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4017 (get_environ): Return a pointer to 'our_environ'.
4018 (captured_main): Initialize 'our_environ'.
4019 * server.h (get_environ): Adjust prototype.
4020 * spu-low.c (spu_create_inferior): Adjust code to access the
4021 environment information via 'gdb_environ' class.
4022
ae3e2ccf
SM
40232017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4024
4025 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4026 usage of "register" keyword.
4027
3e019bdc
SM
40282017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4029
4030 * configure: Re-generate.
4031
8465943a
SM
40322017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4033
4034 * configure: Re-generate.
4035
cf0dd6f0
SM
40362017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4037
4038 * Makefile.in (COMPILE.pre): Add "-x c++".
4039
9845682b
SDJ
40402017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4041
4042 * fork-child.c: Conditionally include <signal.h>.
4043
aefd8b33
SDJ
40442017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4045
4046 * server.c (handle_general_set): Handle new packet
4047 "QStartupWithShell".
4048 (handle_query): Add "QStartupWithShell" to the list of supported
4049 packets.
4050 (gdbserver_usage): Add help text explaining the
4051 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4052 options.
4053 (captured_main): Recognize and act upon the presence of the new
4054 CLI options.
4055
2090129c
SDJ
40562017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4057 Pedro Alves <palves@redhat.com>
4058
4059 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4060 * configure: Regenerate.
4061 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4062 "fork-inferior.o".
4063 (i[34567]86-*-lynxos*): Likewise.
4064 (spu*-*-*): Likewise.
4065 * fork-child.c: New file.
4066 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4067 and "environ.h".
4068 (linux_ptrace_fun): New function.
4069 (linux_create_inferior): Adjust function prototype to reflect
4070 change on "target.h". Adjust function code to use
4071 "fork_inferior".
4072 (linux_request_interrupt): Delete "signal_pid".
4073 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4074 (lynx_ptrace_fun): New function.
4075 (lynx_create_inferior): Adjust function prototype to reflect
4076 change on "target.h". Adjust function code to use
4077 "fork_inferior".
4078 * nto-low.c (nto_create_inferior): Adjust function prototype and
4079 code to reflect change on "target.h". Update comments.
4080 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4081 "common-terminal.h" and "environ.h".
4082 (terminal_fd): Moved to fork-child.c.
4083 (old_foreground_pgrp): Likewise.
4084 (restore_old_foreground_pgrp): Likewise.
4085 (last_status): Make it global.
4086 (last_ptid): Likewise.
4087 (our_environ): New variable.
4088 (startup_with_shell): Likewise.
4089 (program_name): Likewise.
4090 (program_argv): Rename to...
4091 (program_args): ...this.
4092 (wrapper_argv): New variable.
4093 (start_inferior): Delete function.
4094 (get_exec_wrapper): New function.
4095 (get_exec_file): Likewise.
4096 (get_environ): Likewise.
4097 (prefork_hook): Likewise.
4098 (post_fork_inferior): Likewise.
4099 (postfork_hook): Likewise.
4100 (postfork_child_hook): Likewise.
4101 (handle_v_run): Update code to deal with arguments coming from the
4102 remote host. Update calls from "start_inferior" to
4103 "create_inferior".
4104 (captured_main): Likewise. Initialize environment variable. Call
4105 "have_job_control".
4106 * server.h (post_fork_inferior): New prototype.
4107 (get_environ): Likewise.
4108 (last_status): Declare.
4109 (last_ptid): Likewise.
4110 (signal_pid): Likewise.
4111 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4112 (spu_ptrace_fun): New function.
4113 (spu_create_inferior): Adjust function prototype to reflect change
4114 on "target.h". Adjust function code to use "fork_inferior".
4115 * target.c (target_terminal_init): New function.
4116 (target_terminal_inferior): Likewise.
4117 (target_terminal_ours): Likewise.
4118 * target.h: Include <vector>.
4119 (struct target_ops) <create_inferior>: Update prototype.
4120 (create_inferior): Update macro.
4121 * utils.c (gdb_flush_out_err): New function.
4122 * win32-low.c (win32_create_inferior): Adjust function prototype
4123 and code to reflect change on "target.h".
4124
043a4934
SDJ
41252017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4126
4127 * inferiors.c (switch_to_thread): New function.
4128
15652511
SDJ
41292017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4130
4131 * Makefile.in (SFILE): Add "common/job-control.c".
4132 (OBS): Add "job-control.o".
4133
21ea5acd
SDJ
41342017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4135
4136 * Makefile: Remove "@host_makefile_frag@".
4137
e13cb306
PA
41382017-05-05 Pedro Alves <palves@redhat.com>
4139
4140 * configure: Regenerate.
4141
c94fee56
SDJ
41422017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4143
4144 * configure: Regenerate.
4145
a0ff9e1a
SM
41462017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4147
4148 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4149 software_single_step change of return type to
4150 std::vector<CORE_ADDR>.
4151 * linux-low.c (install_software_single_step_breakpoints):
4152 Likewise.
4153 * linux-low.h (install_software_single_step_breakpoints):
4154 Likewise.
4155
be628ab8
SDJ
41562017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4157
4158 * remote-utils.c: Include "gdb_termios.h" instead of
4159 "terminal.h".
4160 * terminal.h: Delete file.
4161
7c5ded6a
SDJ
41622017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4163
4164 * server.c: Include <vector>.
4165 <program_argv, wrapper_argv>: Convert to std::vector.
4166 (start_inferior): Rewrite function to use C++.
4167 (handle_v_run): Likewise. Update code that calculates the argv
4168 based on the vRun packet; use C++.
4169 (captured_main): Likewise.
4170
436252de
SM
41712017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4172
4173 * server.c (handle_v_cont): Initialize thread_resume::thread
4174 with null_ptid.
4175
9bf2a700
PA
41762017-04-05 Pedro Alves <palves@redhat.com>
4177
4178 * configure: Regenerate.
4179
a121b7c1
PA
41802017-04-05 Pedro Alves <palves@redhat.com>
4181
4182 * gdbreplay.c (sync_error): Constify.
4183 * linux-x86-low.c (push_opcode): Constify.
4184
21c8a587
PA
41852017-04-05 Pedro Alves <palves@redhat.com>
4186
4187 * win32-low.c (get_child_debug_event)
4188 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4189 Report TARGET_WAITKIND_SPURIOUS instead.
4190
fb32b4f7
PA
41912017-04-05 Pedro Alves <palves@redhat.com>
4192
e79be6e5
SM
4193 * remote-utils.c (remote_prepare, remote_open): Constify.
4194 * remote-utils.h (remote_prepare, remote_open): Constify.
4195 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 4196
65dd1e59
SM
41972017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4198
4199 * Makefile.in (clean): Clear .deps.
4200
8fa5b777
SM
42012017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4202
4203 * .gitignore: Remove generated files, replace with wildcard.
4204 * (clean): Replace removal of generated files with wildcard.
4205 (version.c): Replace with...
4206 (version-generated.c): ...this.
4207 (xml-builtin.c): Replace with...
4208 (xml-builtin-generated.c): ...this.
4209 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4210 (%.c: *regformats*): Replace with...
4211 (%-generated.c: *regformats*): ...this.
4212
a12e714b
MF
42132017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4214
4215 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4216 (xtensa_fill_gregset): Call collect_register_by_name for
4217 threadptr register.
4218 (xtensa_store_gregset): Call supply_register_by_name for
4219 threadptr register.
4220
1a09b50a
MF
42212017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4222
4223 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4224 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4225 (xtensa_store_gregset): Call supply_register for all registers in
4226 a0_regnum..a0_regnum + C0_NREGS range.
4227
1a01e7c6
SM
42282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4231 (ax-ipa.o: ax.c): Remove.
4232 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4233 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4234 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4235 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4236 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4237
36bc18a8
SM
42382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4239
4240 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4241 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4242 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4243 (errors-ipa.o: ../common/errors.c): Remove.
4244 (format-ipa.o: ../common/format.c): Remove.
4245 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4246
a8ebe3d5
SM
42472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4248
4249 * Makefile.in (%-ipa.o: %.c): New rule.
4250 (tracepoint-ipa.o: tracepoint.c): Remove.
4251 (utils-ipa.o: utils.c): Remove.
4252 (remote-utils-ipa.o: remote-utils.c): Remove.
4253 (regcache-ipa.o: regcache.c): Remove.
4254 (i386-linux-ipa.o: i386-linux.c): Remove.
4255 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4256 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4257 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4258 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4259 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4260 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4261 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4262 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4263 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4264 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4265 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4266 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4267 (aarch64-ipa.o: aarch64.c): Remove.
4268 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4269 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4270 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4271 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4272 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4273 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4274 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4275 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4276 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4277 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4278 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4279 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4280 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4281 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4282 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4283 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4284 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4285 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4286 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4287 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4288 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4289 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4290 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4291 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4292 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4293 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4294 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4295 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4296 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4297 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4298 (tdesc-ipa.o: tdesc.c): Remove.
4299 (x32-linux-ipa.o: x32-linux.c): Remove.
4300 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4301 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4302
50cfacb7
SM
43032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4304
4305 * Makefile.in (%.o: ../arch/%.c): New rule.
4306 (arm.o: ../arch/arm.c): Remove.
4307 (arm-linux.o: ../arch/arm-linux.c): Remove.
4308 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4309 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4310
c5a22423
SM
43112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4312
4313 * Makefile.in (%.o: ../nat/%.c): New rule.
4314 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4315 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4316 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4317 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4318 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4319 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4320 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4321 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4322 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4323 (linux-personality.o: ../nat/linux-personality.c): Remove.
4324 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4325 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4326 (x86-linux.o: ../nat/x86-linux.c): Remove.
4327 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4328 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4329
6bda016b
SM
43302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4331
4332 * Makefile.in (%.o: ../common/%.c): New rule.
4333 (signals.o: ../common/signals.c): Remove.
4334 (print-utils.o: ../common/print-utils.c): Remove.
4335 (rsp-low.o: ../common/rsp-low.c): Remove.
4336 (common-utils.o: ../common/common-utils.c): Remove.
4337 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4338 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4339 (vec.o: ../common/vec.c): Remove.
4340 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4341 (xml-utils.o: ../common/xml-utils.c): Remove.
4342 (ptid.o: ../common/ptid.c): Remove.
4343 (buffer.o: ../common/buffer.c): Remove.
4344 (format.o: ../common/format.c): Remove.
4345 (filestuff.o: ../common/filestuff.c): Remove.
4346 (agent.o: ../common/agent.c): Remove.
4347 (errors.o: ../common/errors.c): Remove.
4348 (environ.o: ../common/environ.c): Remove.
4349 (common-debug.o: ../common/common-debug.c): Remove.
4350 (cleanups.o: ../common/cleanups.c): Remove.
4351 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4352 (fileio.o: ../common/fileio.c): Remove.
4353 (common-regcache.o: ../common/common-regcache.c): Remove.
4354 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4355 (new-op.o: ../common/new-op.c): Remove.
4356 (btrace-common.o: ../common/btrace-common.c): Remove.
4357
21122961
SM
43582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4359
4360 * Makefile.in (%.o: ../target/%.c): New rule.
4361 (waitstatus.o: ../target/waitstatus.c): Remove.
4362
c362e621
SM
43632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4364
4365 * Makefile.in
4366 (%.c: ../regformats/%.dat,
4367 (%.c: ../regformats/arm/%.dat,
4368 (%.c: ../regformats/i386/%.dat,
4369 (%.c: ../regformats/rs6000/%.dat): New rules.
4370 (aarch64.c): Remove.
4371 (reg-arm.c): Remove.
4372 (arm-with-iwmmxt.c): Remove.
4373 (arm-with-vfpv2.c): Remove.
4374 (arm-with-vfpv3.c): Remove.
4375 (arm-with-neon.c): Remove.
4376 (reg-bfin.c): Remove.
4377 (reg-cris.c): Remove.
4378 (reg-crisv32.c): Remove.
4379 (i386.c): Remove.
4380 (i386-linux.c): Remove.
4381 (i386-avx.c): Remove.
4382 (i386-avx-linux.c): Remove.
4383 (i386-avx-avx512.c): Remove.
4384 (i386-avx-avx512-linux.c): Remove.
4385 (i386-mpx.c): Remove.
4386 (i386-mpx-linux.c): Remove.
4387 (i386-avx-mpx-avx512-pku.c): Remove.
4388 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4389 (i386-avx-mpx.c): Remove.
4390 (i386-avx-mpx-linux.c): Remove.
4391 (i386-mmx.c): Remove.
4392 (i386-mmx-linux.c): Remove.
4393 (reg-ia64.c): Remove.
4394 (reg-m32r.c): Remove.
4395 (reg-m68k.c): Remove.
4396 (reg-cf.c): Remove.
4397 (mips-linux.c): Remove.
4398 (mips-dsp-linux.c): Remove.
4399 (mips64-linux.c): Remove.
4400 (mips64-dsp-linux.c): Remove.
4401 (nios2-linux.c): Remove.
4402 (powerpc-32.c): Remove.
4403 (powerpc-32l.c): Remove.
4404 (powerpc-altivec32l.c): Remove.
4405 (powerpc-cell32l.c): Remove.
4406 (powerpc-vsx32l.c): Remove.
4407 (powerpc-isa205-32l.c): Remove.
4408 (powerpc-isa205-altivec32l.c): Remove.
4409 (powerpc-isa205-vsx32l.c): Remove.
4410 (powerpc-e500l.c): Remove.
4411 (powerpc-64l.c): Remove.
4412 (powerpc-altivec64l.c): Remove.
4413 (powerpc-cell64l.c): Remove.
4414 (powerpc-vsx64l.c): Remove.
4415 (powerpc-isa205-64l.c): Remove.
4416 (powerpc-isa205-altivec64l.c): Remove.
4417 (powerpc-isa205-vsx64l.c): Remove.
4418 (s390-linux32.c): Remove.
4419 (s390-linux32v1.c): Remove.
4420 (s390-linux32v2.c): Remove.
4421 (s390-linux64.c): Remove.
4422 (s390-linux64v1.c): Remove.
4423 (s390-linux64v2.c): Remove.
4424 (s390-te-linux64.c): Remove.
4425 (s390-vx-linux64.c): Remove.
4426 (s390-tevx-linux64.c): Remove.
4427 (s390x-linux64.c): Remove.
4428 (s390x-linux64v1.c): Remove.
4429 (s390x-linux64v2.c): Remove.
4430 (s390x-te-linux64.c): Remove.
4431 (s390x-vx-linux64.c): Remove.
4432 (s390x-tevx-linux64.c): Remove.
4433 (tic6x-c64xp-linux.c): Remove.
4434 (tic6x-c64x-linux.c): Remove.
4435 (tic6x-c62x-linux.c): Remove.
4436 (reg-sh.c): Remove.
4437 (reg-sparc64.c): Remove.
4438 (reg-spu.c): Remove.
4439 (amd64.c): Remove.
4440 (amd64-linux.c): Remove.
4441 (amd64-avx.c): Remove.
4442 (amd64-avx-linux.c): Remove.
4443 (amd64-avx-avx512.c): Remove.
4444 (amd64-avx-avx512-linux.c): Remove.
4445 (amd64-mpx.c): Remove.
4446 (amd64-mpx-linux.c): Remove.
4447 (amd64-avx-mpx-avx512-pku.c): Remove.
4448 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4449 (amd64-avx-mpx.c): Remove.
4450 (amd64-avx-mpx-linux.c): Remove.
4451 (x32.c): Remove.
4452 (x32-linux.c): Remove.
4453 (x32-avx.c): Remove.
4454 (x32-avx-linux.c): Remove.
4455 (x32-avx-avx512.c): Remove.
4456 (x32-avx-avx512-linux.c): Remove.
4457 (reg-xtensa.c): Remove.
4458 (reg-tilegx.c): Remove.
4459 (reg-tilegx32.c): Remove.
4460
1672e0d9
SDJ
44612017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4462
4463 * Makefile.in (SFILES): Add "common/environ.c".
4464 (OBJS): Add "common/environ.h".
4465
239b6d10
WT
44662017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4467
4468 * configure.ac: Check if the fs_base and gs_base members of
4469 `struct user_regs_struct' exist.
4470 * config.in: Regenerated.
4471 * configure: Likewise.
4472
694b382c
AT
44732017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4474
4475 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4476 target_read_memory.
4477 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4478 (get_next_pcs_syscall_next_pc): Likewise.
4479
7dc53023
LM
44802016-12-23 Luis Machado <lgustavo@codesourcery.com>
4481
4482 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4483 * nto-x86-low.c: Likewise.
4484
ad02e4fe
SM
44852016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4486
4487 * Makefile.in: Include disable-implicit-rules.mk.
4488
dcb07cfa
PA
44892016-11-23 Pedro Alves <palves@redhat.com>
4490
4491 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4492 (debug_vprintf): Use std::chrono::steady_clock instead of
4493 gettimeofday. Use '.' instead of ':'.
4494 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4495 (get_timestamp): Use std::chrono::steady_clock instead of
4496 gettimeofday.
4497
8629c02c
SM
44982016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * Makefile.in: Fix whitespace formatting.
4501
b593ecca
SM
45022016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4503
4504 * Makefile.in (SFILES, OBS): Flatten list and order
4505 alphabetically.
4506
9986ba08
PA
45072016-11-23 Pedro Alves <palves@redhat.com>
4508
4509 * event-loop.c (handle_file_event): Use warning.
4510 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4511 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4512 Use warning.
4513
4eefa7bc
PA
45142016-11-23 Pedro Alves <palves@redhat.com>
4515
4516 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4517 output.
4518 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4519 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4520 debug_printf and debug_flush for debug output.
4521 * server.c (handle_general_set): Likewise.
4522 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4523 output.
4524
5443506e
SM
45252016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4526
4527 * Makefile.in (.c.o): Replace rule with ...
4528 (%.o: %.c): ... this one.
4529
3b165252
SM
45302016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4531
4532 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4533 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4534 make.
4535 * configure.ac: Remove checks for the make program.
4536 * configure: Re-generate.
4537
0bcda685
PA
45382016-10-28 Pedro Alves <palves@redhat.com>
4539
4540 * Makefile.in (CXX_DIALECT): Get from configure.
4541 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4542 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4543 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4544 * config.in: Regenerate.
4545 * configure: Regenerate.
4546
c3805894
YQ
45472016-10-27 Yao Qi <yao.qi@linaro.org>
4548
4549 * linux-low.c (linux_supports_range_stepping): Return true if
4550 can_software_single_step return true.
4551
89342618
YQ
45522016-10-27 Yao Qi <yao.qi@linaro.org>
4553
4554 * inferiors.c (find_inferior_in_random): New function.
4555 * inferiors.h (find_inferior_in_random): Declare.
4556 * linux-low.c (linux_wait_for_event_filtered): Call
4557 find_inferior_in_random instead of find_inferior.
4558
e3652c84
YQ
45592016-10-27 Yao Qi <yao.qi@linaro.org>
4560
4561 * linux-low.c (linux_wait_1): If single-step breakpoints are
4562 inserted, remove them.
4563
5a04c4cf
PA
45642016-10-26 Pedro Alves <palves@redhat.com>
4565
4566 * linux-low.c (handle_extended_wait): Link parent/child fork
4567 threads.
4568 (linux_wait_1): Unlink them.
4569 (linux_set_resume_request): Ignore resume requests for
4570 already-resumed and unhandled fork child threads.
4571 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4572 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4573 New functions.
4574 (handle_v_requests) <vCont>: Don't call require_running.
4575 * server.h (in_queued_stop_replies): New declaration.
4576
cb93dc7f
YQ
45772016-10-24 Yao Qi <yao.qi@linaro.org>
4578
4579 PR server/20733
4580 * linux-aarch64-low.c (append_insns): Cast the return value to
4581 'uint32_t *'.
4582
a1078bea
YQ
45832016-10-10 Yao Qi <yao.qi@linaro.org>
4584
4585 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4586
1fb77080
SDJ
45872016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4588
4589 * target.c (target_supports_multi_process): New function, moved
4590 from...
4591 * target.h (target_supports_multi_process): ... here. Remove
4592 macro.
4593
39b5a3b9
TT
45942016-10-05 Tom Tromey <tom@tromey.com>
4595
4596 PR remote/20655:
4597 * tracepoint.c (handle_tracepoint_bkpts): Check
4598 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4599
c1d0b70a
YQ
46002016-10-05 Yao Qi <yao.qi@linaro.org>
4601
4602 * configure.srv: Update the path of arm-*.xml files.
4603
0a69eedb
YQ
46042016-10-05 Terry Guo <terry.guo@arm.com>
4605 Yao Qi <yao.qi@linaro.org>
4606
4607 * Makefile.in: Adjust the path of rules.
4608 * configure.srv: Update the path of xml files.
4609 * regformats/arm-with-iwmmxt.dat: Regenerated.
4610 * regformats/arm-with-neon.dat: Likewise.
4611 * regformats/arm-with-vfpv2.dat: Likewise.
4612 * regformats/arm-with-vfpv3.dat Likewise.
4613
17e16485
YQ
46142016-09-30 Yao Qi <yao.qi@linaro.org>
4615
4616 PR gdbserver/20627
4617 * target.c (target_stop_and_wait): Don't call
4618 target_continue_no_signal, use resume_stop instead.
4619
edeeb602
YQ
46202016-09-26 Yao Qi <yao.qi@linaro.org>
4621
4622 * linux-low.c (linux_wait_1): Call debug_exit.
4623
503b1c39
PA
46242016-09-23 Pedro Alves <palves@redhat.com>
4625
4626 * Makefile.in (SFILES): Add common/new-op.c.
4627 (OBS): Add common/new-op.o.
4628 (new-op.o): New rule.
4629
74172ecf
SM
46302016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4631
4632 * .gitinore: Ignore more files.
4633
fc6cda2e
YQ
46342016-09-21 Yao Qi <yao.qi@linaro.org>
4635
4636 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
4637 23.
4638
bc1e6c81
SDJ
46392016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4640
4641 * server.c (start_inferior): Call target_mourn_inferior instead of
4642 mourn_inferior; pass ptid_t argument to it.
4643 (resume): Likewise.
4644 (handle_target_event): Likewise.
4645 * target.c (target_mourn_inferior): New function.
4646 * target.h (mourn_inferior): Delete macro.
4647
0e00e962
AA
46482016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4649
4650 * linux-low.c (lwp_is_stepping): New function.
4651
1d8cb77d
CL
46522016-09-06 Carl Love <cel@us.ibm.com>
4653
4654 * server.c (start_inferior): Fixed comment, requested comment change
4655 didn't get updated correctly. Removed reference to ptrace () call as
4656 it is only true on Linux systems.
4657
7313bced
CL
46582016-09-06 Carl Love <cel@us.ibm.com>
4659
4660 * server.c (start_inferior): Do not call
4661 function target_post_create_inferior () if the
4662 inferior process has already exited.
4663
cf6de44d
PA
46642016-09-05 Pedro Alves <palves@redhat.com>
4665
4666 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4667 (COMPILE.pre, CC_LD): Use CXX directly.
4668 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4669 * acinclude.m4: Don't include build-with-cxx.m4.
4670 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4671 * configure: Regenerate.
4672
c1da6748
AT
46732016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4674
4675 PR gdb/19495
4676 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4677 call writing data to own_buf.
4678
f2b9e3df
SDJ
46792016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4680
4681 * target.c (mywait): Call target_wait instead of
4682 the_target->wait.
4683 (target_wait): New function.
4684
049a8570
SDJ
46852016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4686
4687 * server.c (start_inferior): New variable 'ptid'. Replace calls
4688 to the_target->resume by target_continue{,_no_signal}, depending
4689 on the case.
4690 * target.c (target_stop_and_wait): Call target_continue_no_signal
4691 instead of the_target->resume.
4692 (target_continue): New function.
4693
3aa5cfa0
AT
46942016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4695
4696 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4697
754653a7
AZ
46982016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4699
4700 PR server/20491
4701 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4702 ps_prochandle.
4703 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4704 * linux-arm-low.c (ps_get_thread_area): Likewise.
4705 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4706 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4707 * linux-mips-low.c (ps_get_thread_area): Likewise.
4708 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4709 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4710 * linux-x86-low.c (ps_get_thread_area): Likewise.
4711 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4712
ed036b40
PA
47132016-08-19 Pedro Alves <palves@redhat.com>
4714
4715 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4716
c8ef42ee
PA
47172016-08-19 Pedro Alves <palves@redhat.com>
4718
4719 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4720 comment. Use memcpy instead of casting through unsigned long.
4721
9c235a72
PA
47222016-08-19 Pedro Alves <palves@redhat.com>
4723
4724 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4725 allocating around 0x80000000.
4726
201506da
PA
47272016-08-19 Pedro Alves <palves@redhat.com>
4728
4729 PR gdb/20415
4730 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4731 (x32-avx512-linux-ipa.o): New rules.
4732 * configure.ac (x86_64-*-linux*): New x32 check.
4733 * configure.srv (ipa_x32_linux_regobj): New.
4734 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4735 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4736 descriptions.
4737 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4738 descriptions.
4739 * configure: Regenerate.
4740
f348d89a
PA
47412016-08-09 Pedro Alves <palves@redhat.com>
4742
4743 PR gdb/18653
4744 * Makefile.in (OBS): Add signals-state-save-restore.o.
4745 (signals-state-save-restore.o): New rule.
4746 * config.in: Regenerate.
4747 * configure: Regenerate.
4748 * linux-low.c: Include "signals-state-save-restore.h".
4749 (linux_create_inferior): Call
4750 restore_original_signals_state.
4751 * server.c: Include "dispositions-save-restore.h".
4752 (captured_main): Call save_original_signals_state.
4753
1baf5149
PA
47542016-08-05 Pedro Alves <palves@redhat.com>
4755
4756 * configure: Regenerate.
4757
fcd4a73d
YQ
47582016-08-04 Yao Qi <yao.qi@linaro.org>
4759
4760 * linux-low.c (regsets_fetch_inferior_registers): Check
4761 errno is ESRCH or not.
4762
979659d0
YQ
47632016-08-02 Yao Qi <yao.qi@linaro.org>
4764
4765 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4766 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4767 (thread_db_load_search): Update.
4768 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4769 td_ta_set_event and td_ta_event_getmsg.
4770
6598661d
PA
47712016-07-26 Pedro Alves <palves@redhat.com>
4772
4773 PR server/20414
4774 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4775 of unsigned long for 64-bit registers and use uint32_t instead of
4776 unsigned int for 32-bit registers.
4777
9cf12d57
PA
47782016-07-26 Pedro Alves <palves@redhat.com>
4779
4780 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4781 to 'ptrace'.
4782
305450ed
TT
47832016-07-21 Tom Tromey <tom@tromey.com>
4784
4785 * configure: Rebuild.
4786
2583da7c
YQ
47872016-07-21 Yao Qi <yao.qi@linaro.org>
4788
4789 * mem-break.c (find_gdb_breakpoint): Cast bp to
4790 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4791
21536b36
YQ
47922016-07-21 Yao Qi <yao.qi@linaro.org>
4793
4794 * server.c (handle_v_requests): Support s and S actions
4795 if target_supports_software_single_step return true.
4796
8901d193
YQ
47972016-07-21 Yao Qi <yao.qi@linaro.org>
4798
4799 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4800 is resume_step, call maybe_hw_step.
4801 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4802 and unstop them.
4803 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4804 breakpoints or not.
4805 (proceed_one_lwp): If resume request is resume_step, install
4806 reinsert breakpoints and call maybe_hw_step.
4807
0e9a339e
YQ
48082016-07-21 Yao Qi <yao.qi@linaro.org>
4809
4810 * linux-low.c (proceed_one_lwp): Declare.
4811 (linux_resume_one_thread): Remove local variable 'step'.
4812 Lift code enqueue signal. Call proceed_one_lwp instead of
4813 linux_resume_one_lwp.
4814
4281b351
YQ
48152016-07-21 Yao Qi <yao.qi@linaro.org>
4816
4817 * linux-low.c (linux_resume_one_thread): Call
4818 enqueue_pending_signal.
4819
984a2c04
YQ
48202016-07-21 Yao Qi <yao.qi@linaro.org>
4821
4822 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4823 * inferiors.c (do_restore_current_thread_cleanup): New function.
4824 (make_cleanup_restore_current_thread): Likewise.
4825 * linux-low.c (install_software_single_step_breakpoints): Call
4826 make_cleanup_restore_current_thread. Switch current_thread to
4827 thread.
4828
bec903c9
YQ
48292016-07-21 Yao Qi <yao.qi@linaro.org>
4830
4831 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4832 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4833 (clone_one_breakpoint): Likewise.
4834 (delete_reinsert_breakpoints): Change parameter to thread.
4835 Callers updated.
4836 (has_reinsert_breakpoints): Likewise.
4837 (uninsert_reinsert_breakpoints): Likewise.
4838 (reinsert_reinsert_breakpoints): Likewise.
4839 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4840 (delete_reinsert_breakpoints): Likewise.
4841 (reinsert_reinsert_breakpoints): Likewise.
4842 (uninsert_reinsert_breakpoints): Likewise.
4843 (has_reinsert_breakpoints): Likewise.
4844
63c40ec7
YQ
48452016-07-21 Yao Qi <yao.qi@linaro.org>
4846
4847 * inferiors.c (get_thread_process): Make parameter const.
4848 * inferiors.h (get_thread_process): Update declaration.
4849 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4850 Add new parameters child_thread and parent_thread. Callers
4851 updated.
4852 * mem-break.h (clone_all_breakpoints): Update declaration.
4853
9aa76cd0
YQ
48542016-07-21 Yao Qi <yao.qi@linaro.org>
4855
4856 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4857 <command_list, handler>: Remove.
4858 (struct gdb_breakpoint): New.
4859 (struct other_breakpoint): New.
4860 (struct reinsert_breakpoint): New.
4861 (is_gdb_breakpoint): New function.
4862 (any_persistent_commands): Update command_list if
4863 is_gdb_breakpoint returns true.
4864 (set_breakpoint): Create breakpoints according to their types.
4865 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4866 (set_gdb_breakpoint_1): Likewise.
4867 (set_gdb_breakpoint): Likewise.
4868 (clear_breakpoint_conditions): Change parameter type to
4869 'struct gdb_breakpoint *'.
4870 (clear_breakpoint_commands): Likewise.
4871 (clear_breakpoint_conditions_and_commands): Likewise.
4872 (add_condition_to_breakpoint): Likewise.
4873 (add_breakpoint_condition): Likewise.
4874 (add_commands_to_breakpoint): Likewise.
4875 (check_breakpoints): Check other_breakpoint.
4876 (clone_one_breakpoint): Clone breakpopint according to its type.
4877 * mem-break.h (struct gdb_breakpoint): Declare.
4878 (set_gdb_breakpoint): Update declaration.
4879 (clear_breakpoint_conditions_and_commands): Likewise.
4880 (add_breakpoint_condition): Likewise.
4881 (add_breakpoint_commands): Likewise.
4882 * server.c (process_point_options): Change parameter type to
4883 'struct gdb_breakpoint *'.
4884
811f8301
YQ
48852016-07-21 Yao Qi <yao.qi@linaro.org>
4886
4887 * mem-break.c (set_breakpoint_at): Rename it to ...
4888 (set_breakpoint_type_at): ... it.
4889 (set_breakpoint_at): Call set_breakpoint_type_at.
4890 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4891 * mem-break.h (set_breakpoint_at): Update comments.
4892
b1c51e36
CLT
48932016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4894
4895 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4896 to buf parameter.
4897 (nios2_store_gregset): Likewise.
4898
ced2dffb
PA
48992016-07-01 Pedro Alves <palves@redhat.com>
4900 Antoine Tremblay <antoine.tremblay@ericsson.com>
4901
4902 * linux-low.c: Change interface to take the target lwp_info
4903 pointer directly and return void. Handle detaching from a zombie
4904 thread.
4905 (linux_detach_lwp_callback): New function.
4906 (linux_detach): Detach from the leader thread after detaching from
4907 the clone threads.
4908
2ac09a5b
YQ
49092016-06-28 Yao Qi <yao.qi@linaro.org>
4910
4911 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4912 for variable new_offset.
4913 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4914 (aarch64_ftrace_insn_reloc_cb): Likewise.
4915 (aarch64_ftrace_insn_reloc_tb): Likewise.
4916 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4917 PRIx64 instead of PRIx32.
4918
79e7fd4f
YQ
49192016-06-28 Yao Qi <yao.qi@linaro.org>
4920
4921 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4922 (the_low_target): Install arm_get_syscall_trapinfo.
4923
061fc021
YQ
49242016-06-28 Yao Qi <yao.qi@linaro.org>
4925
4926 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4927 function.
4928 (the_low_target): Install aarch64_get_syscall_trapinfo.
4929
4cc32bec
YQ
49302016-06-28 Yao Qi <yao.qi@linaro.org>
4931
4932 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4933 Callers updated.
4934 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4935 Remove parameter sysno.
4936 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4937 sysret.
4938
782c1122
AA
49392016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4940
4941 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4942 (s390_emit_ne_goto): Likewise.
4943 (s390_emit_lt_goto): Likewise.
4944 (s390_emit_le_goto): Likewise.
4945 (s390_emit_gt_goto): Likewise.
4946 (s390_emit_ge_goto): Likewise.
4947 (s390x_emit_eq_goto): Likewise.
4948 (s390x_emit_ne_goto): Likewise.
4949 (s390x_emit_lt_goto): Likewise.
4950 (s390x_emit_le_goto): Likewise.
4951 (s390x_emit_gt_goto): Likewise.
4952 (s390x_emit_ge_goto): Likewise.
4953 (s390_emit_ops_impl): Mark variable static.
4954 (s390x_emit_ops): Likewise.
4955
2e7b624b
YQ
49562016-06-17 Yao Qi <yao.qi@linaro.org>
4957
4958 * linux-low.c (handle_extended_wait): Call
4959 uninsert_reinsert_breakpoints for the parent process. Remove
4960 reinsert breakpoints from the child process. Reinsert them to
4961 the parent process when vfork is done.
4962 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4963 (reinsert_reinsert_breakpoints): New function.
4964 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4965 (reinsert_reinsert_breakpoints): Declare.
4966
8a81c5d7
YQ
49672016-06-17 Yao Qi <yao.qi@linaro.org>
4968
4969 * linux-low.c (handle_extended_wait): If the parent is doing
4970 step-over, remove the reinsert breakpoints from the forked child.
4971
f50bf8e5
YQ
49722016-06-17 Yao Qi <yao.qi@linaro.org>
4973
4974 * linux-low.c (unsuspend_all_lwps): Declare.
4975 (linux_low_filter_event): If thread exited, call finish_step_over.
4976 If step-over is finished, unsuspend other threads.
4977
8376a3cb
YQ
49782016-06-17 Yao Qi <yao.qi@linaro.org>
4979
4980 * linux-low.c (linux_resume_one_lwp_throw): Assert
4981 has_reinsert_breakpoints returns false.
4982 * mem-break.c (delete_disabled_breakpoints): Assert
4983 bp type isn't reinsert_breakpoint.
4984
f79b145d
YQ
49852016-06-17 Yao Qi <yao.qi@linaro.org>
4986
4987 * linux-low.c (maybe_hw_step): New function.
4988 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4989 (finish_step_over): Switch current_thread to lwp temporarily,
4990 and assert has_reinsert_breakpoints returns true.
4991 (proceed_one_lwp): Call maybe_hw_step.
4992 * mem-break.c (has_reinsert_breakpoints): New function.
4993 * mem-break.h (has_reinsert_breakpoints): Declare.
4994
0ae534d2
JT
49952016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4996
4997 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4998
fcdad592
YQ
49992016-05-17 Yao Qi <yao.qi@linaro.org>
5000
5001 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5002 instead of find_inferior.
5003
9e784964
YQ
50042016-05-05 Yao Qi <yao.qi@linaro.org>
5005
5006 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5007 Initialize res to zero.
5008
cf2ebb6e
YQ
50092016-05-05 Yao Qi <yao.qi@linaro.org>
5010
5011 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5012 to uint32_t.
5013
c1aebf87
UW
50142016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5015
5016 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5017 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5018 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5019
35fd2deb 50202016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 5021 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
5022
5023 * tracepoint.c (write_inferior_int8): New function.
5024 (cmd_qtenable_disable): Write enable flag using
5025 write_inferior_int8.
5026
484b3c32
YQ
50272016-04-25 Yao Qi <yao.qi@linaro.org>
5028
5029 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5030 (need_step_over_p): Return zero if the LWP has pending signals
5031 can be delivered on software single step target.
5032
85ba7d86
YQ
50332016-04-25 Yao Qi <yao.qi@linaro.org>
5034
5035 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5036 return instead of error.
5037
3539aa13
YQ
50382016-04-22 Yao Qi <yao.qi@linaro.org>
5039
5040 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5041 to 23.
5042
5b061e98
YQ
50432016-04-22 Yao Qi <yao.qi@linaro.org>
5044
5045 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5046 signal when stepping over breakpoint with software single
5047 step.
5048
3451269c
PA
50492016-04-21 Pedro Alves <palves@redhat.com>
5050
5051 * linux-s390-low.c (s390_collect_ptrace_register)
5052 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5053 add casts.
5054 (s390_check_regset): Use void * instead of gdb_byte *.
5055
a2358508
PA
50562016-04-20 Pedro Alves <palves@redhat.com>
5057
5058 * configure: Renegerate.
5059
6885166d
YQ
50602016-04-20 Yao Qi <yao.qi@linaro.org>
5061
5062 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5063 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5064 number 16.
5065 (arm_store_gregset): Likewise.
5066
2b863f51
WT
50672016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5068
5069 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5070 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5071 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5072 (amd64-avx-mpx-linux.c): New rules.
5073 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5074 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5075 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5076 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5077 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5078 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5079 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5080 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5081 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5082 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5083 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5084 * linux-x86-low.c (x86_linux_read_description): Add case for
5085 X86_XSTATE_AVX_MPX_MASK.
5086 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5087 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5088 init_registers_i386_avx_mpx_linux.
5089 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5090 (initialize_low_tracepoint): Call
5091 init_registers_i386_avx_mpx_linux.
5092 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5093 (initialize_low_tracepoint): Call
5094 init_registers_amd64_avx_mpx_linux.
5095 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5096 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5097 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5098 declarations.
5099
9b30624b
PA
51002016-04-18 Pedro Alves <palves@redhat.com>
5101
5102 * configure: Regenerate.
5103
45e3745e
AT
51042016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5105
5106 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5107 (aarch64_emit_sub): Likewise.
5108
2afc13ff
PA
51092016-04-12 Pedro Alves <palves@redhat.com>
5110
5111 * utils.c (prepare_to_throw_exception): Delete.
5112
6e774b13
SM
51132016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5114
5115 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5116
4dca19f8
MK
51172016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5118
5119 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5120
d0a9981f
MK
51212016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5122
5123 * linux-aarch64-ipa.c: Add <elf.h> include.
5124 * linux-ppc-ipa.c: Add <elf.h> include.
5125 * linux-s390-ipa.c: Add <elf.h> include.
5126
252db07e
MK
51272016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5128
5129 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5130 (get_raw_reg_ptr): Likewise.
5131 (get_trace_state_variable_value_ptr): Likewise.
5132 (set_trace_state_variable_value_ptr): Likewise.
5133 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5134 char *.
5135
14e2b6d9
MK
51362016-03-31 Wei-cheng Wang <cole945@gmail.com>
5137 Marcin Kościelnicki <koriakin@0x04.net>
5138
5139 PR/17221
5140 * linux-ppc-low.c (emit_insns): New function.
5141 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5142 (ppc_emit_prologue): New function.
5143 (ppc_emit_epilogue): New function.
5144 (ppc_emit_add): New function.
5145 (ppc_emit_sub): New function.
5146 (ppc_emit_mul): New function.
5147 (ppc_emit_lsh): New function.
5148 (ppc_emit_rsh_signed): New function.
5149 (ppc_emit_rsh_unsigned): New function.
5150 (ppc_emit_ext): New function.
5151 (ppc_emit_zero_ext): New function.
5152 (ppc_emit_log_not): New function.
5153 (ppc_emit_bit_and): New function.
5154 (ppc_emit_bit_or): New function.
5155 (ppc_emit_bit_xor): New function.
5156 (ppc_emit_bit_not): New function.
5157 (ppc_emit_equal): New function.
5158 (ppc_emit_less_signed): New function.
5159 (ppc_emit_less_unsigned): New function.
5160 (ppc_emit_ref): New function.
5161 (ppc_emit_const): New function.
5162 (ppc_emit_reg): New function.
5163 (ppc_emit_pop): New function.
5164 (ppc_emit_stack_flush): New function.
5165 (ppc_emit_swap): New function.
5166 (ppc_emit_stack_adjust): New function.
5167 (ppc_emit_call): New function.
5168 (ppc_emit_int_call_1): New function.
5169 (ppc_emit_void_call_2): New function.
5170 (ppc_emit_if_goto): New function.
5171 (ppc_emit_goto): New function.
5172 (ppc_emit_eq_goto): New function.
5173 (ppc_emit_ne_goto): New function.
5174 (ppc_emit_lt_goto): New function.
5175 (ppc_emit_le_goto): New function.
5176 (ppc_emit_gt_goto): New function.
5177 (ppc_emit_ge_goto): New function.
5178 (ppc_write_goto_address): New function.
5179 (ppc_emit_ops_impl): New static variable.
5180 (ppc64v1_emit_prologue): New function.
5181 (ppc64v2_emit_prologue): New function.
5182 (ppc64_emit_epilogue): New function.
5183 (ppc64_emit_add): New function.
5184 (ppc64_emit_sub): New function.
5185 (ppc64_emit_mul): New function.
5186 (ppc64_emit_lsh): New function.
5187 (ppc64_emit_rsh_signed): New function.
5188 (ppc64_emit_rsh_unsigned): New function.
5189 (ppc64_emit_ext): New function.
5190 (ppc64_emit_zero_ext): New function.
5191 (ppc64_emit_log_not): New function.
5192 (ppc64_emit_bit_and): New function.
5193 (ppc64_emit_bit_or): New function.
5194 (ppc64_emit_bit_xor): New function.
5195 (ppc64_emit_bit_not): New function.
5196 (ppc64_emit_equal): New function.
5197 (ppc64_emit_less_signed): New function.
5198 (ppc64_emit_less_unsigned): New function.
5199 (ppc64_emit_ref): New function.
5200 (ppc64_emit_const): New function.
5201 (ppc64v1_emit_reg): New function.
5202 (ppc64v2_emit_reg): New function.
5203 (ppc64_emit_pop): New function.
5204 (ppc64_emit_stack_flush): New function.
5205 (ppc64_emit_swap): New function.
5206 (ppc64v1_emit_call): New function.
5207 (ppc64v2_emit_call): New function.
5208 (ppc64v1_emit_int_call_1): New function.
5209 (ppc64v2_emit_int_call_1): New function.
5210 (ppc64v1_emit_void_call_2): New function.
5211 (ppc64v2_emit_void_call_2): New function.
5212 (ppc64_emit_if_goto): New function.
5213 (ppc64_emit_eq_goto): New function.
5214 (ppc64_emit_ne_goto): New function.
5215 (ppc64_emit_lt_goto): New function.
5216 (ppc64_emit_le_goto): New function.
5217 (ppc64_emit_gt_goto): New function.
5218 (ppc64_emit_ge_goto): New function.
5219 (ppc64v1_emit_ops_impl): New static variable.
5220 (ppc64v2_emit_ops_impl): New static variable.
5221 (ppc_emit_ops): New function.
5222 (linux_low_target): Wire in ppc_emit_ops.
5223
a2174ba4
MK
52242016-03-31 Wei-cheng Wang <cole945@gmail.com>
5225 Marcin Kościelnicki <koriakin@0x04.net>
5226
5227 PR/17221
5228 * Makefile.in: Add powerpc-*-ipa.o
5229 * configure.srv: Add ipa_obj for powerpc*-linux.
5230 * linux-ppc-ipa.c: New file.
5231 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5232 includes.
5233 (PPC_FIELD): New macro.
5234 (PPC_SEXT): New macro.
5235 (PPC_OP6): New macro.
5236 (PPC_BO): New macro.
5237 (PPC_LI): New macro.
5238 (PPC_BD): New macro.
5239 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5240 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5241 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5242 (ppc_get_thread_area): New function.
5243 (is_elfv2_inferior): New function.
5244 (gen_ds_form): New function.
5245 (GEN_STD): New macro.
5246 (GEN_STDU): New macro.
5247 (GEN_LD): New macro.
5248 (GEN_LDU): New macro.
5249 (gen_d_form): New function.
5250 (GEN_ADDI): New macro.
5251 (GEN_ADDIS): New macro.
5252 (GEN_LI): New macro.
5253 (GEN_LIS): New macro.
5254 (GEN_ORI): New macro.
5255 (GEN_ORIS): New macro.
5256 (GEN_LWZ): New macro.
5257 (GEN_STW): New macro.
5258 (GEN_STWU): New macro.
5259 (gen_xfx_form): New function.
5260 (GEN_MFSPR): New macro.
5261 (GEN_MTSPR): New macro.
5262 (GEN_MFCR): New macro.
5263 (GEN_MTCR): New macro.
5264 (GEN_SYNC): New macro.
5265 (GEN_LWSYNC): New macro.
5266 (gen_x_form): New function.
5267 (GEN_OR): New macro.
5268 (GEN_MR): New macro.
5269 (GEN_LWARX): New macro.
5270 (GEN_STWCX): New macro.
5271 (GEN_CMPW): New macro.
5272 (gen_md_form): New function.
5273 (GEN_RLDICL): New macro.
5274 (GEN_RLDICR): New macro.
5275 (gen_i_form): New function.
5276 (GEN_B): New macro.
5277 (GEN_BL): New macro.
5278 (gen_b_form): New function.
5279 (GEN_BNE): New macro.
5280 (GEN_LOAD): New macro.
5281 (GEN_STORE): New macro.
5282 (gen_limm): New function.
5283 (gen_atomic_xchg): New function.
5284 (gen_call): New function.
5285 (ppc_relocate_instruction): New function.
5286 (ppc_install_fast_tracepoint_jump_pad): New function.
5287 (ppc_get_min_fast_tracepoint_insn_len): New function.
5288 (ppc_get_ipa_tdesc_idx): New function.
5289 (the_low_target): Wire in the new functions.
5290 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5291 tdescs.
5292 * linux-ppc-tdesc.h: New file.
5293
a13c4696
MK
52942016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5295
5296 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5297 (alloc_jump_pad_buffer): New function.
5298 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5299 (alloc_jump_pad_buffer): New function.
5300 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5301 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5302 (alloc_jump_pad_buffer): New function.
5303 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5304 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5305 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5306 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5307
1cda1512
MK
53082016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5309
5310 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5311 * linux-amd64-ipa.c: Likewise.
5312 * linux-i386-ipa.c: Likewise.
5313 * linux-s390-ipa.c: Likewise.
5314 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5315 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5316 set_trace_state_variable_value_ptr.
5317 (struct ipa_sym_addresses): Likewise.
5318 (symbol_list): Likewise.
5319 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5320 accessing gdb_collect directly.
5321 (gdb_collect_ptr_type): New typedef.
5322 (get_raw_reg_ptr_type): New typedef.
5323 (get_trace_state_variable_value_ptr_type): New typedef.
5324 (set_trace_state_variable_value_ptr_type): New typedef.
5325 (gdb_collect_ptr): New global.
5326 (get_raw_reg_ptr): New global.
5327 (get_trace_state_variable_value_ptr): New global.
5328 (set_trace_state_variable_value_ptr): New global.
5329 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5330 accessing get_raw_reg directly.
5331 (get_get_tsv_func_addr): Likewise for
5332 get_trace_state_variable_value_ptr.
5333 (get_set_tsv_func_addr): Likewise for
5334 set_trace_state_variable_value_ptr.
5335 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5336
72fb5488
SM
53372016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5338
5339 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5340
28170b88
MK
53412016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5342
5343 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5344 packets.
5345 (relocate_instruction): Remove own_buf.
5346 * server.c (own_buf): Make global.
5347 (handle_v_requests): Make global.
5348 * server.h (own_buf): New declaration.
5349 (handle_v_requests): New prototype.
5350
f39e8743
MK
53512016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5352
5353 PR 18377
5354 * linux-s390-low.c (add_insns): New function.
5355 (s390_emit_prologue): New function.
5356 (s390_emit_epilogue): New function.
5357 (s390_emit_add): New function.
5358 (s390_emit_sub): New function.
5359 (s390_emit_mul): New function.
5360 (s390_emit_lsh): New function.
5361 (s390_emit_rsh_signed): New function.
5362 (s390_emit_rsh_unsigned): New function.
5363 (s390_emit_ext): New function.
5364 (s390_emit_log_not): New function.
5365 (s390_emit_bit_and): New function.
5366 (s390_emit_bit_or): New function.
5367 (s390_emit_bit_xor): New function.
5368 (s390_emit_bit_not): New function.
5369 (s390_emit_equal): New function.
5370 (s390_emit_less_signed): New function.
5371 (s390_emit_less_unsigned): New function.
5372 (s390_emit_ref): New function.
5373 (s390_emit_if_goto): New function.
5374 (s390_emit_goto): New function.
5375 (s390_write_goto_address): New function.
5376 (s390_emit_litpool): New function.
5377 (s390_emit_const): New function.
5378 (s390_emit_call): New function.
5379 (s390_emit_reg): New function.
5380 (s390_emit_pop): New function.
5381 (s390_emit_stack_flush): New function.
5382 (s390_emit_zero_ext): New function.
5383 (s390_emit_swap): New function.
5384 (s390_emit_stack_adjust): New function.
5385 (s390_emit_set_r2): New function.
5386 (s390_emit_int_call_1): New function.
5387 (s390_emit_void_call_2): New function.
5388 (s390_emit_eq_goto): New function.
5389 (s390_emit_ne_goto): New function.
5390 (s390_emit_lt_goto): New function.
5391 (s390_emit_le_goto): New function.
5392 (s390_emit_gt_goto): New function.
5393 (s390_emit_ge_goto): New function.
5394 (s390x_emit_prologue): New function.
5395 (s390x_emit_epilogue): New function.
5396 (s390x_emit_add): New function.
5397 (s390x_emit_sub): New function.
5398 (s390x_emit_mul): New function.
5399 (s390x_emit_lsh): New function.
5400 (s390x_emit_rsh_signed): New function.
5401 (s390x_emit_rsh_unsigned): New function.
5402 (s390x_emit_ext): New function.
5403 (s390x_emit_log_not): New function.
5404 (s390x_emit_bit_and): New function.
5405 (s390x_emit_bit_or): New function.
5406 (s390x_emit_bit_xor): New function.
5407 (s390x_emit_bit_not): New function.
5408 (s390x_emit_equal): New function.
5409 (s390x_emit_less_signed): New function.
5410 (s390x_emit_less_unsigned): New function.
5411 (s390x_emit_ref): New function.
5412 (s390x_emit_if_goto): New function.
5413 (s390x_emit_const): New function.
5414 (s390x_emit_call): New function.
5415 (s390x_emit_reg): New function.
5416 (s390x_emit_pop): New function.
5417 (s390x_emit_stack_flush): New function.
5418 (s390x_emit_zero_ext): New function.
5419 (s390x_emit_swap): New function.
5420 (s390x_emit_stack_adjust): New function.
5421 (s390x_emit_int_call_1): New function.
5422 (s390x_emit_void_call_2): New function.
5423 (s390x_emit_eq_goto): New function.
5424 (s390x_emit_ne_goto): New function.
5425 (s390x_emit_lt_goto): New function.
5426 (s390x_emit_le_goto): New function.
5427 (s390x_emit_gt_goto): New function.
5428 (s390x_emit_ge_goto): New function.
5429 (s390_emit_ops): New function.
5430 (struct linux_target_ops): Fill in emit_ops hook.
5431
abd9baf9
MK
54322016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5433
5434 PR 18377
5435 * Makefile.in: Add s390 IPA files.
5436 * configure.srv: Build IPA for s390.
5437 * linux-s390-ipa.c: New file.
5438 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5439 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5440 (tdesc_s390_linux32): Likewise.
5441 (init_registers_s390_linux32v1): Likewise.
5442 (tdesc_s390_linux32v1): Likewise.
5443 (init_registers_s390_linux32v2): Likewise.
5444 (tdesc_s390_linux32v2): Likewise.
5445 (init_registers_s390_linux64): Likewise.
5446 (tdesc_s390_linux64): Likewise.
5447 (init_registers_s390_linux64v1): Likewise.
5448 (tdesc_s390_linux64v1): Likewise.
5449 (init_registers_s390_linux64v2): Likewise.
5450 (tdesc_s390_linux64v2): Likewise.
5451 (init_registers_s390_te_linux64): Likewise.
5452 (tdesc_s390_te_linux64): Likewise.
5453 (init_registers_s390_vx_linux64): Likewise.
5454 (tdesc_s390_vx_linux64): Likewise.
5455 (init_registers_s390_tevx_linux64): Likewise.
5456 (tdesc_s390_tevx_linux64): Likewise.
5457 (init_registers_s390x_linux64): Likewise.
5458 (tdesc_s390x_linux64): Likewise.
5459 (init_registers_s390x_linux64v1): Likewise.
5460 (tdesc_s390x_linux64v1): Likewise.
5461 (init_registers_s390x_linux64v2): Likewise.
5462 (tdesc_s390x_linux64v2): Likewise.
5463 (init_registers_s390x_te_linux64): Likewise.
5464 (tdesc_s390x_te_linux64): Likewise.
5465 (init_registers_s390x_vx_linux64): Likewise.
5466 (tdesc_s390x_vx_linux64): Likewise.
5467 (init_registers_s390x_tevx_linux64): Likewise.
5468 (tdesc_s390x_tevx_linux64): Likewise.
5469 (have_hwcap_s390_vx): New static variable.
5470 (s390_arch_setup): Fill have_hwcap_s390_vx.
5471 (s390_get_thread_area): New function.
5472 (s390_ft_entry_gpr_esa): New const.
5473 (s390_ft_entry_gpr_zarch): New const.
5474 (s390_ft_entry_misc): New const.
5475 (s390_ft_entry_fr): New const.
5476 (s390_ft_entry_vr): New const.
5477 (s390_ft_main_31): New const.
5478 (s390_ft_main_64): New const.
5479 (s390_ft_exit_fr): New const.
5480 (s390_ft_exit_vr): New const.
5481 (s390_ft_exit_misc): New const.
5482 (s390_ft_exit_gpr_esa): New const.
5483 (s390_ft_exit_gpr_zarch): New const.
5484 (append_insns): New function.
5485 (s390_relocate_instruction): New function.
5486 (s390_install_fast_tracepoint_jump_pad): New function.
5487 (s390_get_min_fast_tracepoint_insn_len): New function.
5488 (s390_get_ipa_tdesc_idx): New function.
5489 (struct linux_target_ops): Wire in the above functions.
5490 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5491 * linux-s390-tdesc.h: New file.
5492
a4105d04
MK
54932016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5494
5495 * linux-s390-low.c (s390_supports_tracepoints): New function.
5496 (struct linux_target_ops): Fill supports_tracepoints hook.
5497
35ac8b3e
YQ
54982016-03-18 Yao Qi <yao.qi@linaro.org>
5499
5500 * linux-low.c (lwp_signal_can_be_delivered): New function.
5501 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5502
94610ec4
YQ
55032016-03-18 Yao Qi <yao.qi@linaro.org>
5504
5505 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5506 0 if signal is enqueued. Remove 'signal' from one debugging
5507 message. Move one debugging message to some lines below.
5508 Remove code setting 'signal' to 0.
5509
80aea927
YQ
55102016-03-18 Yao Qi <yao.qi@linaro.org>
5511
5512 * linux-low.c (linux_low_filter_event): Remove redundant
5513 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5514
b04fd3be
MK
55152016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5516
5517 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5518 (struct linux_target_ops): Wire in the above.
5519
c40c8d4b
YQ
55202016-03-03 Yao Qi <yao.qi@linaro.org>
5521
5522 * linux-low.c: Update comments to start_step_over.
5523
0f8288ae
YQ
55242016-03-03 Yao Qi <yao.qi@linaro.org>
5525
5526 PR server/19736
5527 * linux-low.c (handle_extended_wait): Set child suspended
5528 if event_lwp->bp_reinsert isn't zero.
5529
fdbd04a8
YQ
55302016-03-02 Yao Qi <yao.qi@linaro.org>
5531
5532 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5533 enqueue_pending_signal.
5534
6896a8fa
MK
55352016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5536
5537 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5538 is actually loaded.
5539
ab503087
MK
55402016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5541
5542 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5543 (s390_regmap_3264) [!__s390x__]: New global.
5544 (s390_collect_ptrace_register): Skip map entries containing -1.
5545 (s390_supply_ptrace_register): Ditto.
5546 (s390_fill_gprs_high): New function.
5547 (s390_store_gprs_high): New function.
5548 (s390_regsets): Add NT_S390_HIGH_GPRS.
5549 (s390_get_hwcap): Enable on 31-bit.
5550 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5551 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5552 Detect NT_S390_HIGH_GPRS.
5553 (s390_usrregs_info_3264): Enable on 31-bit.
5554 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5555 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5556
ae91f625
MK
55572016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5558
5559 PR gdb/13808
5560 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5561 * configure.srv: Ditto.
5562 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5563 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5564 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5565 (init_registers_amd64_linux): Remove prototype.
5566 (tdesc_amd64_linux): Remove declaration.
5567 (get_ipa_tdesc): New function.
5568 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5569 initialize remaining tdescs.
5570 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5571 (init_registers_i386_linux): Remove prototype.
5572 (tdesc_i386_linux): Remove declaration.
5573 (get_ipa_tdesc): New function.
5574 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5575 initialize remaining tdescs.
5576 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5577 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5578 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5579 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5580 (x86_get_ipa_tdesc_idx): New function.
5581 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5582 * linux-x86-tdesc.h: New file.
5583 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5584 (target_get_ipa_tdesc_idx): New macro.
5585 * tracepoint.c (ipa_tdesc_idx): New macro.
5586 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5587 (symbol_list): Add ipa_tdesc_idx.
5588 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5589 (ipa_tdesc): Remove.
5590 (ipa_tdesc_idx): New variable.
5591 (get_context_regcache): Use get_ipa_tdesc.
5592 (gdb_collect): Ditto.
5593 (gdb_probe): Ditto.
5594 * tracepoint.h (get_ipa_tdesc): New prototype.
5595 (ipa_tdesc): Remove.
5596
e7ad2f14
PA
55972016-02-24 Pedro Alves <palves@redhat.com>
5598
5599 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5600 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5601 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5602 Factor out common code between the USE_SIGTRAP_SIGINFO and
5603 !USE_SIGTRAP_SIGINFO blocks.
5604 (linux_low_filter_event): Call save_stop_reason instead of
5605 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5606 Update comments.
5607 (linux_wait_1): Update comments.
5608
657f9cde
WW
56092016-02-24 Wei-cheng Wang <cole945@gmail.com>
5610
5611 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
5612 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
5613 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
5614 ppc_insert_point, ppc_remove_point.
5615
b00b61e1
MK
56162016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
5617
5618 * linux-s390-low.c (s390_supports_z_point_type): New function.
5619 (struct linux_target_ops): Wire s390_supports_z_point_type in.
5620
553cb527
YQ
56212016-02-16 Yao Qi <yao.qi@linaro.org>
5622
5623 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
5624 PC. Get pc from regcache_read_pc.
5625
a5652c21
YQ
56262016-02-12 Yao Qi <yao.qi@linaro.org>
5627
5628 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
5629 or linux_get_pc_32bit.
5630 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
5631
ed443b61
YQ
56322016-02-12 Yao Qi <yao.qi@linaro.org>
5633
5634 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
5635 arm_linux_get_next_pcs_fixup.
5636
020ecd38
MK
56372016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5638
5639 * tracepoint.c (x_tracepoint_action_download): Change
5640 write_inferior_data_ptr to write_inferior_data_pointer.
5641 (cmd_qtstart): Likewise.
5642 (write_inferior_data_ptr): Remove.
5643 (download_agent_expr): Change write_inferior_data_ptr to
5644 write_inferior_data_pointer.
5645 (download_tracepoint_1): Likewise.
5646 (download_tracepoint): Likewise.
5647 (download_trace_state_variables): Likewise.
5648
7cae9051
WW
56492016-02-11 Wei-cheng Wang <cole945@gmail.com>
5650 Marcin Kościelnicki <koriakin@0x04.net>
5651
5652 * tracepoint.c (struct tracepoint_action_ops): Remove.
5653 (struct tracepoint_action): Remove ops.
5654 (m_tracepoint_action_download, r_tracepoint_action_download)
5655 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5656 size and offset accordingly.
5657 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5658 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5659 (tracepoint_action_send, tracepoint_action_download): New functions.
5660 Helpers for trace action handlers.
5661 (add_tracepoint_action): Remove setup actions ops.
5662 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5663
9f6a71b4
YQ
56642016-02-10 Yao Qi <yao.qi@linaro.org>
5665
5666 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5667
1e94266c
SM
56682016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5669
5670 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5671 to AC_OUTPUT.
5672 * configure: Regenerate.
5673
8adce034
SM
56742016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5675
5676 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5677 void * to gdb_byte *.
5678 * linux-low.c (siginfo_fixup): Likewise.
5679 (linux_xfer_siginfo): Likewise.
5680 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5681 Likewise.
5682 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5683
93813b37
WT
56842016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5685
5686 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5687 to srv_tgtobj.
5688 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5689 to srv_tgtobj.
5690 * linux-x86-low.c [__x86_64__]: Include
5691 "nat/amd64-linux-siginfo.h".
5692 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5693 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5694 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5695 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5696 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5697 (cpt_si_fd, si_timerid, si_overrun): Move from
5698 nat/amd64-linux-siginfo.c.
5699 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5700
8424cc97
SM
57012016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5702
5703 * server.c (skip_to_semicolon): Remove.
5704 (process_point_options): Use strchrnul instead of
5705 skip_to_semicolon.
5706
4d18591b
YQ
57072016-01-26 Yao Qi <yao.qi@linaro.org>
5708
5709 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5710 * linux-low.c (install_software_single_step_breakpoints): Don't
5711 call regcache_read_pc.
5712 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5713 argument pc.
5714
d8020970
YQ
57152016-01-26 Yao Qi <yao.qi@linaro.org>
5716
5717 * linux-low.c (install_software_single_step_breakpoints): Call
5718 regcache_read_pc instead of get_pc.
5719
8b207339
YQ
57202016-01-26 Yao Qi <yao.qi@linaro.org>
5721
5722 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5723 (unblock_async_io): Rename to ...
5724 (block_unblock_async_io): ... it. New function.
5725 (enable_async_io): Don't install SIGIO handler. Unblock it
5726 instead.
5727 (disable_async_io): Don't ignore SIGIO. Block it instead.
5728 (initialize_async_io): Install SIGIO handler. Don't call
5729 unblock_async_io.
5730
18879fef
YQ
57312016-01-26 Yao Qi <yao.qi@linaro.org>
5732
5733 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5734 first character is '\003', call *the_target->request_interrupt.
5735
a0f8e08a
YQ
57362016-01-25 Yao Qi <yao.qi@linaro.org>
5737
5738 * remote-utils.c (new_thread_notify): Remove.
5739 (dead_thread_notify): Likewise.
5740 * remote-utils.h (new_thread_notify): Remove declaration.
5741 (dead_thread_notify): Likewise.
5742
cc5fd9ab
MK
57432016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5744
5745 * gdb.trace/pending.exp: Fix expected message on continue.
5746
99e8eb11
MK
57472016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5748
5749 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5750 it works properly on big-endian machines where sizeof (CORE_ADDR)
5751 != sizeof (void *).
5752
a994041d
PA
57532016-01-21 Pedro Alves <palves@redhat.com>
5754
5755 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5756 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5757 * configure: Regenerate.
5758
f7a6a40d
YQ
57592016-01-21 Yao Qi <yao.qi@linaro.org>
5760
5761 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5762 is_thumb and set it according to CPSR saved on the stack.
5763 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5764 arm_sigreturn_next_pc.
5765
6f69e520
YQ
57662016-01-18 Yao Qi <yao.qi@linaro.org>
5767
5768 * linux-low.c (linux_set_pc_64bit): New function.
5769 (linux_get_pc_64bit): New function.
5770 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5771 Declare.
5772 * linux-sparc-low.c (debug_threads): Remove declaration.
5773 (sparc_get_pc): Remove.
5774 (the_low_target): Use linux_get_pc_64bit instead of
5775 sparc_get_pc.
5776 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5777 (the_low_target): Use linux_get_pc_64bit and
5778 linux_set_pc_64bit.
5779
276d4552
YQ
57802016-01-18 Yao Qi <yao.qi@linaro.org>
5781
5782 * linux-arm-low.c (debug_threads): Remove declaration.
5783 (arm_get_pc, arm_set_pc): Remove.
5784 (the_low_target): Use linux_get_pc_32bit and
5785 linux_set_pc_32bit.
5786 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5787 (the_low_target): Use linux_get_pc_32bit and
5788 linux_set_pc_32bit.
5789 * linux-cris-low.c (debug_threads): Remove declaration.
5790 (cris_get_pc, cris_set_pc,): Remove.
5791 (the_low_target): Use linux_get_pc_32bit and
5792 linux_set_pc_32bit.
5793 * linux-crisv32-low.c (debug_threads): Remove declaration.
5794 (cris_get_pc, cris_set_pc): Remove.
5795 (the_low_target): Use linux_get_pc_32bit and
5796 linux_set_pc_32bit.
5797 * linux-low.c: Include inttypes.h.
5798 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5799 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5800 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5801 (the_low_target): Use linux_get_pc_32bit and
5802 linux_set_pc_32bit.
5803 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5804 (the_low_target): Use linux_get_pc_32bit and
5805 linux_set_pc_32bit.
5806 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5807 (the_low_target): Use linux_get_pc_32bit and
5808 linux_set_pc_32bit.
5809 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5810 (the_low_target): Use linux_get_pc_32bit and
5811 linux_set_pc_32bit.
5812 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5813 (the_low_target): Use linux_get_pc_32bit and
5814 linux_set_pc_32bit.
5815
eb0edac8
GB
58162016-01-18 Gary Benson <gbenson@redhat.com>
5817
5818 * configure.ac (AC_FUNC_FORK): New check.
5819 * config.in: Regenerate.
5820 * configure: Likewise.
5821
1b451dda
YQ
58222016-01-14 Yao Qi <yao.qi@linaro.org>
5823
5824 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5825 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5826 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5827 arm_get_next_pcs_ctor.
5828
82075af2
JS
58292016-01-12 Josh Stone <jistone@redhat.com>
5830 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5831
5832 * inferiors.h: Include "gdb_vecs.h".
5833 (struct process_info): Add syscalls_to_catch.
5834 * inferiors.c (remove_process): Free syscalls_to_catch.
5835 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5836 syscall_return stops.
5837 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5838 * server.c (handle_general_set): Handle QCatchSyscalls.
5839 (handle_query): Report support for QCatchSyscalls.
5840 * target.h (struct target_ops): Add supports_catch_syscall.
5841 (target_supports_catch_syscall): New macro.
5842 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5843 (struct lwp_info): Add syscall_state.
5844 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5845 Maintain syscall_state and syscalls_to_catch across exec.
5846 (get_syscall_trapinfo): New function, proxy to the_low_target.
5847 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5848 (linux_low_filter_event): Toggle syscall_state entry/return for
5849 syscall traps, and set it ignored for all others.
5850 (gdb_catching_syscalls_p): New function.
5851 (gdb_catch_this_syscall_p): New function.
5852 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5853 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5854 (linux_supports_catch_syscall): New function.
5855 (linux_target_ops): Install it.
5856 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5857 (the_low_target): Install it.
5858
8f13a3ce
MF
58592016-01-12 Mike Frysinger <vapier@gentoo.org>
5860
5861 * acinclude.m4: Include new ../warning.m4 file.
5862 * configure: Regenerated.
5863 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5864
5b3da067
MF
58652016-01-12 Mike Frysinger <vapier@gentoo.org>
5866
5867 * ax.c (is_goto_target): Mark static.
5868 * linux-low.c (register_addr): Likewise.
5869 (linux_fetch_registers, linux_store_registers): Likewise.
5870 * mem-break.c (any_persistent_commands): Fix old prototype.
5871 (add_commands_to_breakpoint): Mark static.
5872 * regcache.c (find_register_by_name): Delete unused func.
5873 * remote-utils.c (hex_or_minus_one): Mark static.
5874 * server.c (monitor_show_help): Mark static.
5875 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5876 handle_v_requests): Likewise.
5877
bc504a31
PA
58782016-01-12 Pedro Alves <palves@redhat.com>
5879
5880 Remove use of the registered trademark symbol throughout.
5881
5a0dd67a
YQ
58822016-01-08 Yao Qi <yao.qi@linaro.org>
5883
5884 * remote-utils.c (getpkt): If c is '\003', call target hook
5885 request_interrupt.
5886
b2ca446f
YQ
58872016-01-06 Yao Qi <yao.qi@linaro.org>
5888
5889 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5890 linux-aarch32-low.c.
5891 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5892 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5893 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5894 (thumb2_breakpoint): Declare.
5895 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5896 linux-aarch32-low.h.
5897 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5898 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5899 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5900
edd88788
JB
59012016-01-01 Joel Brobecker <brobecker@adacore.com>
5902
5903 * gdbreplay.c (gdbreplay_version): Change copyright year in
5904 version message.
5905 * server.c (gdbserver_version): Likewise.
5906
65da7f14
PP
59072015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5908
5909 * server.c (crc32_table): Delete.
5910 (crc32): Use libiberty's xcrc32 function.
5911
4abd5ed2
JB
59122015-12-22 Joel Brobecker <brobecker@adacore.com>
5913
5914 * lynx-low.c (lynx_delete_thread_callback): New function.
5915 (lynx_mourn): Properly delete our process and all of its
5916 threads. Remove call to clear_inferiors.
5917
0e50fe5c
JB
59182015-12-22 Joel Brobecker <brobecker@adacore.com>
5919
5920 * target.c (thread_search_callback): Add check that
5921 the thread_stopped target callback is not NULL before
5922 calling it.
5923
35adc03f
YQ
59242015-12-21 Yao Qi <yao.qi@linaro.org>
5925
5926 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5927 arm breakpoint.
5928
bd2b2909
AT
59292015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5930
5931 * server.c (handle_query): Call target_supports_software_single_step.
5932
7fe5e27e
AT
59332015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5934
5935 * linux-low.c (single_step): New function.
5936 (linux_resume_one_lwp_throw): Call single_step.
5937 (start_step_over): Likewise.
5938
d9311bfa
AT
59392015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5940
5941 * Makefile.in (SFILES): Append arch/arm-linux.c,
5942 arch/arm-get-next-pcs.c.
5943 (arm-linux.o): New rule.
5944 (arm-get-next-pcs.o): New rule.
5945 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5946 arm-linux.o.
5947 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5948 to linux-aarch32-low.c.
5949 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5950 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5951 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5952 (thumb2_breakpoint_len): Likewise.
5953 (arm_is_thumb_mode): Make non-static.
5954 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5955 from linux-aarch32-low.c.
5956 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5957 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5958 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5959 (thumb2_breakpoint_len): Likewise.
5960 (arm_is_thumb_mode): New declaration.
5961 * linux-arm-low.c: Include arch/arm-linux.h
5962 aarch/arm-get-next-pcs.h, sys/syscall.h.
5963 (get_next_pcs_ops): New struct.
5964 (get_next_pcs_addr_bits_remove): New function.
5965 (get_next_pcs_is_thumb): New function.
5966 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5967 (arm_sigreturn_next_pc): Likewise.
5968 (get_next_pcs_syscall_next_pc): Likewise.
5969 (arm_gdbserver_get_next_pcs): Likewise.
5970 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5971 Initialize.
5972 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5973 * server.h: Include gdb_vecs.h.
5974
68ce2059
AT
59752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5976
5977 * Makefile.in (SFILES): Append common/common-regcache.c.
5978 (OBS): Append common-regcache.o.
5979 (common-regcache.o): New rule.
5980 * regcache.c (init_register_cache): Initialize cache to
5981 REG_UNAVAILABLE.
5982 (regcache_raw_read_unsigned): New function.
5983 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5984 register_status enum.
5985
fa5308bd
AT
59862015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5987
5988 * linux-aarch64-low.c (the_low_targets): Rename
5989 breakpoint_reinsert_addr to get_next_pcs.
5990 * linux-arm-low.c (the_low_targets): Likewise.
5991 * linux-bfin-low.c (the_low_targets): Likewise.
5992 * linux-cris-low.c (the_low_targets): Likewise.
5993 * linux-crisv32-low.c (the_low_targets): Likewise.
5994 * linux-low.c (can_software_single_step): Likewise.
5995 (install_software_single_step_breakpoints): New function.
5996 (start_step_over): Use install_software_single_step_breakpoints.
5997 * linux-low.h: New CORE_ADDR vector.
5998 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5999 get_next_pcs.
6000 * linux-mips-low.c (the_low_targets): Likewise.
6001 * linux-nios2-low.c (the_low_targets): Likewise.
6002 * linux-sparc-low.c (the_low_targets): Likewise.
6003
4a6ed09b
PA
60042015-12-17 Pedro Alves <palves@redhat.com>
6005
6006 * linux-low.c (linux_kill_one_lwp): Remove references to
6007 LinuxThreads.
6008 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6009 to 'kill'.
6010 (linux_init_signals): Delete.
6011 (initialize_low): Adjust.
6012 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6013
7544db95
PA
60142015-12-16 Pedro Alves <palves@redhat.com>
6015
6016 * configure.ac (compiler warning flags): When testing a
6017 -Wno-foo option, check whether -Wfoo works instead.
6018 * configure: Regenerate.
6019
8020350c
DB
60202015-12-11 Don Breazeal <donb@codesourcery.com>
6021
6022 * server.c (process_serial_event): Don't exit from gdbserver
6023 in remote mode if there are still active inferiors.
6024
db91f502
YQ
60252015-12-11 Yao Qi <yao.qi@linaro.org>
6026
6027 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6028 arm_breakpoint_at if the process is 32-bit.
6029
b37a6290
YQ
60302015-12-11 Yao Qi <yao.qi@linaro.org>
6031
6032 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6033 arm breakpoint.
6034
17b1509a
YQ
60352015-12-07 Yao Qi <yao.qi@linaro.org>
6036
6037 * configure.srv: Append arm.o to srv_tgtobj for
6038 aarch64*-*-linux* target.
6039 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6040 from linux-arm-low.c.
6041 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6042 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6043 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6044 (thumb2_breakpoint_len): Likewise.
6045 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6046 (arm_breakpoint_kinds): Likewise.
6047 (arm_breakpoint_kind_from_pc): Likewise.
6048 (arm_sw_breakpoint_from_kind): Likewise.
6049 (arm_breakpoint_kind_from_current_state): Likewise.
6050 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6051 (arm_sw_breakpoint_from_kind): Declare.
6052 (arm_breakpoint_kind_from_current_state): Declare.
6053 (arm_breakpoint_at): Declare.
6054 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6055 arm_sw_breakpoint_from_kind if process is 32-bit.
6056 (aarch64_breakpoint_kind_from_pc): New function.
6057 (aarch64_breakpoint_kind_from_current_state): New function.
6058 (the_low_target): Initialize fields breakpoint_kind_from_pc
6059 and breakpoint_kind_from_current_state.
6060 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6061 linux-aarch32-low.c.
6062 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6063 (arm_breakpoint, arm_breakpoint_len): Likewise.
6064 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6065 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6066 (arm_is_thumb_mode): Likewise.
6067 (arm_breakpoint_at): Likewise.
6068 (arm_breakpoint_kind_from_pc): Likewise.
6069 (arm_sw_breakpoint_from_kind): Likewise.
6070 (arm_breakpoint_kind_from_current_state): Likewise.
6071
6072 Revert:
6073 2015-08-04 Yao Qi <yao.qi@linaro.org>
6074
6075 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6076 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6077 * server.c (extended_protocol): Remove "static".
6078 * server.h (extended_protocol): Declare it.
6079
ece66d65
JS
60802015-12-04 Josh Stone <jistone@redhat.com>
6081
6082 * target.h (struct target_ops) <arch_setup>: Rename to ...
6083 (struct target_ops) <post_create_inferior>: ... this.
6084 (target_arch_setup): Rename to ...
6085 (target_post_create_inferior): ... this, calling post_create_inferior.
6086 * server.c (start_inferior): Update target_arch_setup calls to
6087 target_post_create_inferior.
6088 * linux-low.c (linux_low_ptrace_options): Forward declare.
6089 (linux_arch_setup): Update its comment for general use.
6090 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6091 (struct linux_target_ops): Use linux_post_create_inferior.
6092 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6093 to post_create_inferior.
6094 * nto-low.c (struct nto_target_ops): Likewise.
6095 * spu-low.c (struct spu_target_ops): Likewise.
6096 * win32-low.c (struct win32_target_ops): Likewise.
6097
e58c48b4
AT
60982015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6099
6100 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6101
fbec8956
AT
61022015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6103
6104 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6105 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6106 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6107 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6108 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6109 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6110 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6111 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6112 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6113 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6114 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6115 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6116
9b4c5f87
AT
61172015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6118
6119 * linux-low.c (linux_look_up_symbols): Don't call
6120 linux_supports_traceclone.
6121 * linux-low.h (thread_db_init): Remove use_events argument.
6122 * thread-db.c (thread_db_use_event): Remove global variable.
6123 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6124 (struct thread_db) <td_create_bp>: Remove field.
6125 (thread_db_create_event): Remove function.
6126 (thread_db_enable_reporting): Likewise.
6127 (find_one_thread): Don't check for thread_db_use_events.
6128 (attach_thread): Likewise.
6129 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6130 (try_thread_db_load_1): Don't check for thread_db_use_events.
6131 (thread_db_init): Remove use_events argument and thread events
6132 handling.
6133 (remove_thread_event_breakpoints): Remove function.
6134 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6135
7d00775e
AT
61362015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6137
6138 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6139 New function.
6140 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6141 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6142 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6143 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6144 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6145 Initialize.
6146 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6147 New function.
6148 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6149 * linux-low.c (can_hardware_single_step): Use
6150 supports_hardware_single_step.
6151 (can_software_single_step): New function.
6152 (start_step_over): Call can_software_single_step.
6153 (linux_supports_hardware_single_step): New function.
6154 (struct target_ops) <supports_software_single_step>: Initialize.
6155 * linux-low.h (struct linux_target_ops)
6156 <supports_hardware_single_step>: Initialize.
6157 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6158 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6159 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6160 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6161 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6162 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6163 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6164 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6165 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6166 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6167 Initialize.
6168 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6169 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6170 Initialize.
6171 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6172 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6173 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6174 New function.
6175 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6176 * target.h (struct target_ops): <supports_software_single_step>:
6177 New field.
6178 (target_supports_software_single_step): New macro.
6179
2d97cd35
AT
61802015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6181
6182 * linux-low.c (linux_wait_1): Fix pc advance condition.
6183 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6184 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6185
769ef81f
AT
61862015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6187
6188 * linux-arm-low.c (arm_is_thumb_mode): New function.
6189 (arm_breakpoint_at): Use arm_is_thumb_mode.
6190 (arm_breakpoint_kind_from_current_state): New function.
6191 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6192 Initialize.
6193 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6194 (linux_breakpoint_kind_from_current_state): New function.
6195 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6196 * linux-low.h (struct linux_target_ops)
6197 <breakpoint_kind_from_current_state>: New field.
6198 * target.h (struct target_ops): Likewise.
6199 (target_breakpoint_kind_from_current_state): New macro.
6200
1bebeeca
PA
62012015-11-30 Pedro Alves <palves@redhat.com>
6202
6203 * linux-low.c (linux_resume): Wake up the event loop before
6204 returning.
6205
a67a9fae
PA
62062015-11-30 Pedro Alves <palves@redhat.com>
6207
6208 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6209 check.
6210 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6211 to -1.
6212 * target.c (struct thread_search): New structure.
6213 (thread_search_callback): New function.
6214 (prev_general_thread): New global.
6215 (prepare_to_access_memory, done_accessing_memory): New functions.
6216 * target.h (prepare_to_access_memory, done_accessing_memory):
6217 Replace macros with function declarations.
6218
f2faf941
PA
62192015-11-30 Pedro Alves <palves@redhat.com>
6220
6221 PR 14618
6222 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6223 report TARGET_WAITKIND_NO_RESUMED.
6224 * remote-utils.c (prepare_resume_reply): Handle
6225 TARGET_WAITKIND_NO_RESUMED.
6226 * server.c (report_no_resumed): New global.
6227 (handle_query) <qSupported>: Handle "no-resumed+". Report
6228 "no-resumed+" support.
6229 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6230 return error if the client doesn't support no-resumed events.
6231 (push_stop_notification): New function.
6232 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6233 events if the client supports them.
6234
a681f9c9
PA
62352015-11-30 Pedro Alves <palves@redhat.com>
6236
6237 * linux-low.c (thread_still_has_status_pending_p): Don't check
6238 vCont;t here.
6239 (lwp_resumed): New function.
6240 (status_pending_p_callback): Return early if the LWP is not
6241 supposed to be resumed.
6242
65706a29
PA
62432015-11-30 Pedro Alves <palves@redhat.com>
6244
6245 * linux-low.c (handle_extended_wait): Assert that the LWP's
6246 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6247 thread create events, leave the new child's status pending.
6248 (linux_low_filter_event): If GDB wants to hear about thread exit
6249 events, leave the LWP marked dead and don't delete it.
6250 (linux_wait_for_event_filtered): Don't check for thread exit.
6251 (filter_exit_event): New function.
6252 (linux_wait_1): Use it, when returning an exit event.
6253 (linux_resume_one_lwp_throw): Assert that the LWP's
6254 waitstatus is TARGET_WAITKIND_IGNORE.
6255 * remote-utils.c (prepare_resume_reply): Handle
6256 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6257 * server.c (report_thread_events): New global.
6258 (handle_general_set): Handle QThreadEvents.
6259 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6260 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6261 TARGET_WAITKIND_THREAD_EXITED.
6262 * server.h (report_thread_events): Declare.
6263
56cf4bed
PA
62642015-11-30 Pedro Alves <palves@redhat.com>
6265
6266 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6267 the thread's last_resume_kind was resume_stop.
6268
500c1d85
PA
62692015-11-30 Pedro Alves <palves@redhat.com>
6270
6271 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6272 before returning.
6273
de979965
PA
62742015-11-30 Pedro Alves <palves@redhat.com>
6275
6276 * server.c (handle_v_requests): Handle vCtrlC.
6277
34c65914
PA
62782015-11-30 Pedro Alves <palves@redhat.com>
6279
6280 * gdbthread.h (find_any_thread_of_pid): Declare.
6281 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6282 functions.
6283 * server.c (handle_query): If current_thread is NULL, look for
6284 another thread of the selected process.
6285
79efa585 62862015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 6287 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
6288
6289 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6290 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6291 name in reply.
6292 * target.h (struct target_ops) <thread_name>: New field.
6293 (target_thread_name): New macro.
6294
80d82c19
JB
62952015-11-23 Joel Brobecker <brobecker@adacore.com>
6296
6297 * regcache.h (regcache_invalidate_pid): Add declaration.
6298 * regcache.c (regcache_invalidate_pid): New function, extracted
6299 from regcache_invalidate.
6300 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6301 Add trivial documentation comment.
6302 * lynx-low.c: Use regcache_invalidate_pid instead of
6303 regcache_invalidate.
6304
64da5dd5
JB
63052015-11-23 Joel Brobecker <brobecker@adacore.com>
6306
6307 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6308 and Elf64_auxv_t if the target is Android.
6309
37ce4055
DE
63102015-11-22 Doug Evans <xdje42@gmail.com>
6311
6312 * target.h: #include <sys/types.h>.
6313
06e03fff
PA
63142015-11-19 Pedro Alves <palves@redhat.com>
6315
6316 * linux-low.c (linux_process_qsupported): Change prototype.
6317 Adjust.
6318 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6319 Change prototype.
6320 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6321 and adjust to loop over all features.
6322 * server.c (handle_query) <qSupported>: Adjust to call
6323 target_process_qsupported once, passing it a vector of unprocessed
6324 features.
6325 * target.h (struct target_ops) <process_qsupported>: Change
6326 prototype.
6327 (target_process_qsupported): Adjust.
6328
9a084706
PA
63292015-11-19 Pedro Alves <palves@redhat.com>
6330
6331 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6332 mode.
6333 * configure: Regenerate.
6334
dad44a1f
PA
63352015-11-19 Pedro Alves <palves@redhat.com>
6336
6337 * configure: Regenerate.
6338
231c0592
YQ
63392015-11-19 Yao Qi <yao.qi@linaro.org>
6340
6341 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6342 type to uint32_t.
6343
6c1c9a8b
YQ
63442015-11-19 Yao Qi <yao.qi@linaro.org>
6345
6346 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6347 (struct aarch64_operand): Move enum out.
6348
9caa3311
YQ
63492015-11-19 Yao Qi <yao.qi@linaro.org>
6350
6351 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6352 struct user_fpsimd_state *.
6353 (aarch64_store_fpregset): Likewise.
6354
6a69a054
YQ
63552015-11-19 Yao Qi <yao.qi@linaro.org>
6356
6357 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6358 struct user_pt_regs *.
6359 (aarch64_store_gregset): Likewise.
6360
1798301e
PA
63612015-11-18 Pedro Alves <palves@redhat.com>
6362
6363 * Makefile.in (all_object_files): Add $IPA_OBJS.
6364
ce7715e2
PA
63652015-11-17 Pedro Alves <palves@redhat.com>
6366
6367 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6368 GDB_SIGNAL_0 and gdb_signal_to_string.
6369
c0879059
PA
63702015-11-17 Pedro Alves <palves@redhat.com>
6371
6372 * win32-low.c (handle_output_debug_string): Remove parameter.
6373 (win32_kill): Remove our_status local and adjust call to
6374 handle_output_debug_string.
6375 (get_child_debug_event): Adjust call to
6376 handle_output_debug_string.
6377
1996e237
SM
63782015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6379
6380 * linux-mips-low.c (mips_fill_gregset): Add cast.
6381 (mips_store_gregset): Likewise.
6382 (mips_fill_fpregset): Likewise.
6383 (mips_store_fpregset): Likewise.
6384
cbec665b
SM
63852015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6388 priv.
6389
eb3e3c67
SM
63902015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6391
6392 * linux-mips-low.c (mips_linux_new_thread): Change type of
6393 watch_type to enum target_hw_bp_type.
6394
171de4b8
SM
63952015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6396
6397 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6398 Change return type to arm_hwbp_type.
6399
04248ead
SM
64002015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6401
6402 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6403 (arm_store_gregset): Likewise.
6404 * linux-arm-low.c (arm_get_hwcap): Likewise.
6405 (arm_read_description): Likewise.
6406
04b3479c
SM
64072015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6410
2bc84e8a
SM
64112015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6412
6413 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6414 (ppc_fill_vsxregset): Likewise.
6415 (ppc_store_vsxregset): Likewise.
6416 (ppc_fill_vrregset): Likewise.
6417 (ppc_store_vrregset): Likewise.
6418 (ppc_fill_evrregset): Likewise.
6419 (ppc_store_evrregset): Likewise.
6420
e6c5bb05
SM
64212015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * linux-ppc-low.c (ppc_usrregs_info): Remove
6424 forward-declaration.
6425 (ppc_arch_setup): Move lower in file.
6426
7ea45d72
SM
64272015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6428
6429 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6430 (ps_pdwrite): Likewise.
6431
69291610
HW
64322015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6433
6434 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6435 to after assert checks.
6436
b42945fd
SM
64372015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * proc-service.c (ps_pdread): Add/adjust casts.
6440 (ps_pdwrite): Add/adjust casts.
6441
d6f85c84
SM
64422015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6443
6444 * server.c (handle_search_memory_1): Cast return value of
6445 memmem.
6446
f98cd059
SM
64472015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6448
6449 * server.c (write_qxfer_response): Change type of data to
6450 gdb_byte *.
6451
d2412fa5
PA
64522015-10-29 Pedro Alves <palves@redhat.com>
6453
6454 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6455
c17414a2
PA
64562015-10-29 Pedro Alves <palves@redhat.com>
6457
6458 * tracepoint.c (clear_installed_tracepoints): Add casts.
6459
e053fbc4
PA
64602015-10-29 Pedro Alves <palves@redhat.com>
6461
6462 * server.c (handle_v_cont, process_serial_event): Add enum
6463 gdb_signal casts to signal parsing code.
6464
add67df8
PA
64652015-10-29 Pedro Alves <palves@redhat.com>
6466
6467 * linux-low.h (NULL_REGSET): Define.
6468 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6469 * linux-arm-low.c (arm_regsets): Likewise.
6470 * linux-crisv32-low.c (cris_regsets): Likewise.
6471 * linux-m68k-low.c (m68k_regsets): Likewise.
6472 * linux-mips-low.c (mips_regsets): Likewise.
6473 * linux-nios2-low.c (nios2_regsets): Likewise.
6474 * linux-ppc-low.c (ppc_regsets): Likewise.
6475 * linux-s390-low.c (s390_regsets): Likewise.
6476 * linux-sh-low.c (sh_regsets): Likewise.
6477 * linux-sparc-low.c (sparc_regsets): Likewise.
6478 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6479 * linux-tile-low.c (tile_regsets): Likewise.
6480 * linux-x86-low.c (x86_regsets): Likewise.
6481 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6482
50bc912a
PA
64832015-10-29 Pedro Alves <palves@redhat.com>
6484
6485 * linux-low.h (NULL_REGSET): Define.
6486 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6487 * linux-arm-low.c (arm_regsets): Likewise.
6488 * linux-crisv32-low.c (cris_regsets): Likewise.
6489 * linux-m68k-low.c (m68k_regsets): Likewise.
6490 * linux-mips-low.c (mips_regsets): Likewise.
6491 * linux-nios2-low.c (nios2_regsets): Likewise.
6492 * linux-ppc-low.c (ppc_regsets): Likewise.
6493 * linux-s390-low.c (s390_regsets): Likewise.
6494 * linux-sh-low.c (sh_regsets): Likewise.
6495 * linux-sparc-low.c (sparc_regsets): Likewise.
6496 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6497 * linux-tile-low.c (tile_regsets): Likewise.
6498 * linux-x86-low.c (x86_regsets): Likewise.
6499 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6500
682b2546
DE
65012015-10-26 Doug Evans <dje@google.com>
6502
6503 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6504
963843d4
DE
65052015-10-26 Doug Evans <dje@google.com>
6506
6507 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6508
d41401ac
DE
65092015-10-26 Doug Evans <dje@google.com>
6510
6511 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6512 for debug_printf.
6513 (attach_thread, find_new_threads_callback): Ditto.
6514
3db28855
AT
65152015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6516
6517 * mem-break.h (set_breakpoint_data): Remove.
6518
fb78e89c
AT
65192015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6520
6521 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6522 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6523 (initialize_low): Remove set_breakpoint_data call.
6524 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6525 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6526 (initialize_low): Remove set_breakpoint_data call.
6527 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6528 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6529 (initialize_low): Remove set_breakpoint_data call.
6530
2e6ee069
AT
65312015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6532
6533 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6534 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6535 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6536 * target.h (target_breakpoint_kind_from_pc): New macro.
6537
1652a986
AT
65382015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6539
6540 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6541 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6542 the default breakpoint kind.
6543
abeead09
AT
65442015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6545
6546 * linux-arm-low.c (arm_supports_z_point_type): Add software
6547 breakpoint support.
6548
b0b4b501
AT
65492015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6550
6551 * linux-arm-low.c: Refactor breakpoint definitions.
6552 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6553 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6554
8689682c
AT
65552015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6556
6557 * Makefile.in: Add arm.c/o.
6558 * configure.srv: Likewise.
6559 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6560 (arm_breakpoint_kind_from_pc): New function.
6561 (arm_sw_breakpoint_from_kind): Return proper kind.
6562 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6563
27165294
AT
65642015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6565
6566 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6567 removal.
6568 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6569 (struct raw_breakpoint) <size>: Remove.
6570 (struct raw_breakpoint) <kind>: Add.
6571 (bp_size): New function.
6572 (bp_opcode): Likewise.
6573 (find_raw_breakpoint_at): Adjust for kind.
6574 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6575 (remove_memory_breakpoint): Adjust for kind call bp_size.
6576 (set_raw_breakpoint_at): Adjust for kind.
6577 (set_breakpoint): Likewise.
6578 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6579 (delete_raw_breakpoint): Adjust for kind.
6580 (delete_breakpoint): Likewise.
6581 (find_gdb_breakpoint): Likewise.
6582 (set_gdb_breakpoint_1): Likewise.
6583 (set_gdb_breakpoint): Likewise.
6584 (delete_gdb_breakpoint_1): Likewise.
6585 (delete_gdb_breakpoint): Likewise.
6586 (uninsert_raw_breakpoint): Likewise.
6587 (reinsert_raw_breakpoint): Likewise.
6588 (set_breakpoint_data): Remove.
6589 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6590 (check_mem_read): Adjust for kind call bp_size.
6591 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6592 (clone_one_breakpoint): Adjust for kind.
6593 * mem-break.h (set_gdb_breakpoint): Likewise.
6594 (delete_gdb_breakpoint): Likewise.
6595 * server.c (process_serial_event): Likewise.
6596
dd373349
AT
65972015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6598
6599 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6600 (struct linux_target_ops) <breakpoint>: Remove.
6601 (struct linux_target_ops) <breakpoint_len>: Remove.
6602 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6603 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6604 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6605 (arm_sw_breakpoint_from_kind): New function.
6606 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
6607 (struct linux_target_ops) <breakpoint>: Remove.
6608 (struct linux_target_ops) <breakpoint_len>: Remove.
6609 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6610 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6611 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
6612 (struct linux_target_ops) <breakpoint>: Remove.
6613 (struct linux_target_ops) <breakpoint_len>: Remove.
6614 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6615 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6616 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
6617 (struct linux_target_ops) <breakpoint>: Remove.
6618 (struct linux_target_ops) <breakpoint_len>: Remove.
6619 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6620 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6621 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
6622 and sw_breakpoint_from_kind to increment the pc.
6623 (linux_breakpoint_kind_from_pc): New function.
6624 (linux_sw_breakpoint_from_kind): New function.
6625 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
6626 (initialize_low): Call breakpoint_kind_from_pc and
6627 sw_breakpoint_from_kind to replace breakpoint_data/len.
6628 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
6629 New field.
6630 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
6631 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
6632 (struct linux_target_ops) <breakpoint>: Remove.
6633 (struct linux_target_ops) <breakpoint_len>: Remove.
6634 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6635 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6636 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
6637 (struct linux_target_ops) <breakpoint>: Remove.
6638 (struct linux_target_ops) <breakpoint_len>: Remove.
6639 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6640 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6641 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
6642 (struct linux_target_ops) <breakpoint>: Remove.
6643 (struct linux_target_ops) <breakpoint_len>: Remove.
6644 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6645 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6646 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
6647 (struct linux_target_ops) <breakpoint>: Remove.
6648 (struct linux_target_ops) <breakpoint_len>: Remove.
6649 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6650 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6651 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
6652 (struct linux_target_ops) <breakpoint>: Remove.
6653 (struct linux_target_ops) <breakpoint_len>: Remove.
6654 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6655 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6656 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6657 (struct linux_target_ops) <breakpoint>: Remove.
6658 (struct linux_target_ops) <breakpoint_len>: Remove.
6659 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6660 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6661 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6662 (struct linux_target_ops) <breakpoint>: Remove.
6663 (struct linux_target_ops) <breakpoint_len>: Remove.
6664 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6665 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6666 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6667 (struct linux_target_ops) <breakpoint>: Remove.
6668 (struct linux_target_ops) <breakpoint_len>: Remove.
6669 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6670 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6671 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6672 (struct linux_target_ops) <breakpoint>: Remove.
6673 (struct linux_target_ops) <breakpoint_len>: Remove.
6674 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6675 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6676 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6677 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6678 (struct linux_target_ops) <breakpoint>: Remove.
6679 (struct linux_target_ops) <breakpoint_len>: Remove.
6680 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6681 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6682 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6683 (struct linux_target_ops) <breakpoint>: Remove.
6684 (struct linux_target_ops) <breakpoint_len>: Remove.
6685 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6686 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6687
4cd98a19
AT
66882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6689
6690 * linux-cris-low.c (cris_get_pc): Remove void arg.
6691
774ee6d2
AR
66922015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6693
6694 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6695 variable name.
6696
833dcd29
AR
66972015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6698
6699 * inferiors.c (thread_pid_matches_callback): New function.
6700 (find_thread_process): New function.
6701 (remove_thread): Reset current_thread.
6702 (remove_process): Assert threads have been removed first.
6703
8d689ee5
YQ
67042015-10-15 Yao Qi <yao.qi@linaro.org>
6705
6706 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6707 if it is 3.
6708 (aarch64_remove_point): Likewise.
6709 * regcache.c (regcache_register_size): New function.
6710
1c2e1515
YQ
67112015-10-12 Yao Qi <yao.qi@linaro.org>
6712
6713 * linux-aarch64-low.c: Update all callers as emit_load_store
6714 is renamed to aarch64_emit_load_store.
6715
e1c587c3
YQ
67162015-10-12 Yao Qi <yao.qi@linaro.org>
6717
6718 * linux-aarch64-low.c: Update all callers of function renaming
6719 from emit_insn to aarch64_emit_insn.
6720
b6542f81
YQ
67212015-10-12 Yao Qi <yao.qi@linaro.org>
6722
6723 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6724 arch/aarch64-insn.h.
6725 (struct aarch64_memory_operand): Likewise.
6726 (ENCODE): Likewise.
6727 (emit_insn): Move to arch/aarch64-insn.c.
6728 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6729 (emit_load_store): Move to arch/aarch64-insn.c.
6730 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6731 (can_encode_int32): Remove.
6732
246994ce
YQ
67332015-10-12 Yao Qi <yao.qi@linaro.org>
6734
6735 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6736 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6737 (aarch64_relocate_instruction): Likewise.
6738 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6739 (struct aarch64_insn_visitor): Likewise.
6740
0badd99f
YQ
67412015-10-12 Yao Qi <yao.qi@linaro.org>
6742
6743 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6744 (struct aarch64_insn_visitor): New.
6745 (struct aarch64_insn_relocation_data): New.
6746 (aarch64_ftrace_insn_reloc_b): New function.
6747 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6748 (aarch64_ftrace_insn_reloc_cb): Likewise.
6749 (aarch64_ftrace_insn_reloc_tb): Likewise.
6750 (aarch64_ftrace_insn_reloc_adr): Likewise.
6751 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6752 (aarch64_ftrace_insn_reloc_others): Likewise.
6753 (visitor): New.
6754 (aarch64_relocate_instruction): Use visitor.
6755
dfaffe9d
YQ
67562015-10-12 Yao Qi <yao.qi@linaro.org>
6757
6758 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6759 int. Add argument buf.
6760 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6761 aarch64_relocate_instruction.
6762
70b439f0
YQ
67632015-10-12 Yao Qi <yao.qi@linaro.org>
6764
6765 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6766 argument insn. Remove local variable insn. Don't call
6767 target_read_uint32.
6768 (aarch64_install_fast_tracepoint_jump_pad): Call
6769 target_read_uint32.
6770
7781c06f
YQ
67712015-09-30 Yao Qi <yao.qi@linaro.org>
6772
6773 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6774 (emit_load_store_pair): Likewise.
6775
9a3c8263
SM
67762015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6777
6778 * dll.c (match_dll): Add cast(s).
6779 (unloaded_dll): Likewise.
6780 * linux-low.c (second_thread_of_pid_p): Likewise.
6781 (delete_lwp_callback): Likewise.
6782 (count_events_callback): Likewise.
6783 (select_event_lwp_callback): Likewise.
6784 (linux_set_resume_request): Likewise.
6785 * server.c (accumulate_file_name_length): Likewise.
6786 (emit_dll_description): Likewise.
6787 (handle_qxfer_threads_worker): Likewise.
6788 (visit_actioned_threads): Likewise.
6789 * thread-db.c (any_thread_of): Likewise.
6790 * tracepoint.c (same_process_p): Likewise.
6791 (match_blocktype): Likewise.
6792 (build_traceframe_info_xml): Likewise.
6793
224c3ddb
SM
67942015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6795
6796 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6797 assignment.
6798 (gdb_unparse_agent_expr): Likewise.
6799 * hostio.c (require_data): Likewise.
6800 (handle_pread): Likewise.
6801 * linux-low.c (disable_regset): Likewise.
6802 (fetch_register): Likewise.
6803 (store_register): Likewise.
6804 (get_dynamic): Likewise.
6805 (linux_qxfer_libraries_svr4): Likewise.
6806 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6807 (set_fast_tracepoint_jump): Likewise.
6808 (uninsert_fast_tracepoint_jumps_at): Likewise.
6809 (reinsert_fast_tracepoint_jumps_at): Likewise.
6810 (validate_inserted_breakpoint): Likewise.
6811 (clone_agent_expr): Likewise.
6812 * regcache.c (init_register_cache): Likewise.
6813 * remote-utils.c (putpkt_binary_1): Likewise.
6814 (decode_M_packet): Likewise.
6815 (decode_X_packet): Likewise.
6816 (look_up_one_symbol): Likewise.
6817 (relocate_instruction): Likewise.
6818 (monitor_output): Likewise.
6819 * server.c (handle_search_memory): Likewise.
6820 (handle_qxfer_exec_file): Likewise.
6821 (handle_qxfer_libraries): Likewise.
6822 (handle_qxfer): Likewise.
6823 (handle_query): Likewise.
6824 (handle_v_cont): Likewise.
6825 (handle_v_run): Likewise.
6826 (captured_main): Likewise.
6827 * target.c (write_inferior_memory): Likewise.
6828 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6829 * tracepoint.c (init_trace_buffer): Likewise.
6830 (add_tracepoint_action): Likewise.
6831 (add_traceframe): Likewise.
6832 (add_traceframe_block): Likewise.
6833 (cmd_qtdpsrc): Likewise.
6834 (cmd_qtdv): Likewise.
6835 (cmd_qtstatus): Likewise.
6836 (response_source): Likewise.
6837 (response_tsv): Likewise.
6838 (cmd_qtnotes): Likewise.
6839 (gdb_collect): Likewise.
6840 (initialize_tracepoint): Likewise.
6841
afbe19f8
PL
68422015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6843
6844 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6845 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6846 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6847 <NOP>: New.
6848 (enum aarch64_condition_codes): New enum.
6849 (w0): New static global.
6850 (fp): Likewise.
6851 (lr): Likewise.
6852 (struct aarch64_memory_operand) <type>: New
6853 MEMORY_OPERAND_POSTINDEX type.
6854 (postindex_memory_operand): New helper function.
6855 (emit_ret): New function.
6856 (emit_load_store_pair): New function, factored out of emit_stp
6857 with support for MEMORY_OPERAND_POSTINDEX.
6858 (emit_stp): Rewrite using emit_load_store_pair.
6859 (emit_ldp): New function.
6860 (emit_load_store): Likewise.
6861 (emit_ldr): Mention post-index instruction in comment.
6862 (emit_ldrh): New function.
6863 (emit_ldrb): New function.
6864 (emit_ldrsw): Mention post-index instruction in comment.
6865 (emit_str): Likewise.
6866 (emit_subs): New function.
6867 (emit_cmp): Likewise.
6868 (emit_and): Likewise.
6869 (emit_orr): Likewise.
6870 (emit_orn): Likewise.
6871 (emit_eor): Likewise.
6872 (emit_mvn): Likewise.
6873 (emit_lslv): Likewise.
6874 (emit_lsrv): Likewise.
6875 (emit_asrv): Likewise.
6876 (emit_mul): Likewise.
6877 (emit_sbfm): Likewise.
6878 (emit_sbfx): Likewise.
6879 (emit_ubfm): Likewise.
6880 (emit_ubfx): Likewise.
6881 (emit_csinc): Likewise.
6882 (emit_cset): Likewise.
6883 (emit_nop): Likewise.
6884 (emit_ops_insns): New helper function.
6885 (emit_pop): Likewise.
6886 (emit_push): Likewise.
6887 (aarch64_emit_prologue): New function.
6888 (aarch64_emit_epilogue): Likewise.
6889 (aarch64_emit_add): Likewise.
6890 (aarch64_emit_sub): Likewise.
6891 (aarch64_emit_mul): Likewise.
6892 (aarch64_emit_lsh): Likewise.
6893 (aarch64_emit_rsh_signed): Likewise.
6894 (aarch64_emit_rsh_unsigned): Likewise.
6895 (aarch64_emit_ext): Likewise.
6896 (aarch64_emit_log_not): Likewise.
6897 (aarch64_emit_bit_and): Likewise.
6898 (aarch64_emit_bit_or): Likewise.
6899 (aarch64_emit_bit_xor): Likewise.
6900 (aarch64_emit_bit_not): Likewise.
6901 (aarch64_emit_equal): Likewise.
6902 (aarch64_emit_less_signed): Likewise.
6903 (aarch64_emit_less_unsigned): Likewise.
6904 (aarch64_emit_ref): Likewise.
6905 (aarch64_emit_if_goto): Likewise.
6906 (aarch64_emit_goto): Likewise.
6907 (aarch64_write_goto_address): Likewise.
6908 (aarch64_emit_const): Likewise.
6909 (aarch64_emit_call): Likewise.
6910 (aarch64_emit_reg): Likewise.
6911 (aarch64_emit_pop): Likewise.
6912 (aarch64_emit_stack_flush): Likewise.
6913 (aarch64_emit_zero_ext): Likewise.
6914 (aarch64_emit_swap): Likewise.
6915 (aarch64_emit_stack_adjust): Likewise.
6916 (aarch64_emit_int_call_1): Likewise.
6917 (aarch64_emit_void_call_2): Likewise.
6918 (aarch64_emit_eq_goto): Likewise.
6919 (aarch64_emit_ne_goto): Likewise.
6920 (aarch64_emit_lt_goto): Likewise.
6921 (aarch64_emit_le_goto): Likewise.
6922 (aarch64_emit_gt_goto): Likewise.
6923 (aarch64_emit_ge_got): Likewise.
6924 (aarch64_emit_ops_impl): New static global variable.
6925 (aarch64_emit_ops): New target function, return
6926 &aarch64_emit_ops_impl.
6927 (struct linux_target_ops): Install it.
6928
bb903df0
PL
69292015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6930
6931 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6932 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6933 aarch64-ipa.o.
6934 * linux-aarch64-ipa.c: New file.
6935 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6936 and endian.h.
6937 (aarch64_get_thread_area): New target method.
6938 (extract_signed_bitfield): New helper function.
6939 (aarch64_decode_ldr_literal): New function.
6940 (enum aarch64_opcodes): New enum.
6941 (struct aarch64_register): New struct.
6942 (struct aarch64_operand): New struct.
6943 (x0): New static global.
6944 (x1): Likewise.
6945 (x2): Likewise.
6946 (x3): Likewise.
6947 (x4): Likewise.
6948 (w2): Likewise.
6949 (ip0): Likewise.
6950 (sp): Likewise.
6951 (xzr): Likewise.
6952 (aarch64_register): New helper function.
6953 (register_operand): Likewise.
6954 (immediate_operand): Likewise.
6955 (struct aarch64_memory_operand): New struct.
6956 (offset_memory_operand): New helper function.
6957 (preindex_memory_operand): Likewise.
6958 (enum aarch64_system_control_registers): New enum.
6959 (ENCODE): New macro.
6960 (emit_insn): New helper function.
6961 (emit_b): New function.
6962 (emit_bcond): Likewise.
6963 (emit_cb): Likewise.
6964 (emit_tb): Likewise.
6965 (emit_blr): Likewise.
6966 (emit_stp): Likewise.
6967 (emit_ldp_q_offset): Likewise.
6968 (emit_stp_q_offset): Likewise.
6969 (emit_load_store): Likewise.
6970 (emit_ldr): Likewise.
6971 (emit_ldrsw): Likewise.
6972 (emit_str): Likewise.
6973 (emit_ldaxr): Likewise.
6974 (emit_stxr): Likewise.
6975 (emit_stlr): Likewise.
6976 (emit_data_processing_reg): Likewise.
6977 (emit_data_processing): Likewise.
6978 (emit_add): Likewise.
6979 (emit_sub): Likewise.
6980 (emit_mov): Likewise.
6981 (emit_movk): Likewise.
6982 (emit_mov_addr): Likewise.
6983 (emit_mrs): Likewise.
6984 (emit_msr): Likewise.
6985 (emit_sevl): Likewise.
6986 (emit_wfe): Likewise.
6987 (append_insns): Likewise.
6988 (can_encode_int32_in): New helper function.
6989 (aarch64_relocate_instruction): New function.
6990 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6991 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6992 (struct linux_target_ops): Install aarch64_get_thread_area,
6993 aarch64_install_fast_tracepoint_jump_pad and
6994 aarch64_get_min_fast_tracepoint_insn_len.
6995
787749ea
PL
69962015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6997
6998 * Makefile.in (aarch64-insn.o): New rule.
6999 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7000
9812b2e6
YQ
70012015-09-21 Yao Qi <yao.qi@linaro.org>
7002
7003 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7004
18fe412b
YQ
70052015-09-21 Yao Qi <yao.qi@linaro.org>
7006
7007 * tracepoint.c (max_jump_pad_size): Remove.
7008
a0cc84cd
YQ
70092015-09-18 Yao Qi <yao.qi@linaro.org>
7010
7011 * linux-aarch64-low.c: Don't include sys/uio.h.
7012 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7013
d78908cf
WW
70142015-09-16 Wei-cheng Wang <cole945@gmail.com>
7015
7016 * tracepoint.c (eval_result_type): Change prototype.
7017 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7018
d57e0d50
PA
70192015-09-15 Pedro Alves <palves@redhat.com>
7020
7021 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7022 Check whether to report exec events instead of checking whether
7023 multiprocess is enabled.
7024
5a676acc
PA
70252015-09-15 Pedro Alves <palves@redhat.com>
7026
7027 PR remote/18965
7028 * remote-utils.c (prepare_resume_reply): Merge
7029 TARGET_WAITKIND_VFORK_DONE switch case with the
7030 TARGET_WAITKIND_FORKED case.
7031
7c5d0fad
YQ
70322015-09-15 Yao Qi <yao.qi@linaro.org>
7033
7034 * server.c (handle_query): Check string comparison using
7035 "else if" instead of "if".
7036
750ce8d1
YQ
70372015-09-15 Yao Qi <yao.qi@linaro.org>
7038
7039 * server.c (vCont_supported): New global variable.
7040 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7041 matches. Append ";vContSupported+" to own_buf.
7042 (handle_v_requests): Append ";s;S" to own_buf if target supports
7043 hardware single step or vCont_supported is false.
7044 (capture_main): Set vCont_supported to zero.
7045
70b90b91
YQ
70462015-09-15 Yao Qi <yao.qi@linaro.org>
7047
7048 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7049 it to ...
7050 (linux_supports_hardware_single_step): ... New function.
7051 (linux_target_ops): Update.
7052 * lynx-low.c (lynx_target_ops): Set field
7053 supports_hardware_single_step to target_can_do_hardware_single_step.
7054 * nto-low.c (nto_target_ops): Likewise.
7055 * spu-low.c (spu_target_ops): Likewise.
7056 * win32-low.c (win32_target_ops): Likewise.
7057 * target.c (target_can_do_hardware_single_step): New function.
7058 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7059 Remove. <supports_hardware_single_step>: New field.
7060 (target_supports_conditional_breakpoints): Remove.
7061 (target_supports_hardware_single_step): New macro.
7062 (target_can_do_hardware_single_step): Declare.
7063 * server.c (handle_query): Use target_supports_hardware_single_step
7064 instead of target_supports_conditional_breakpoints.
7065
ade90bde
YQ
70662015-09-15 Yao Qi <yao.qi@linaro.org>
7067
7068 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7069 function.
7070 (struct linux_target_ops the_low_target): Install
7071 aarch64_linux_siginfo_fixup.
7072
94585166
DB
70732015-09-11 Don Breazeal <donb@codesourcery.com>
7074 Luis Machado <lgustavo@codesourcery.com>
7075
7076 * linux-low.c (linux_mourn): Static declaration.
7077 (linux_arch_setup): Move in front of
7078 handle_extended_wait.
7079 (linux_arch_setup_thread): New function.
7080 (handle_extended_wait): Handle exec events. Call
7081 linux_arch_setup_thread. Make event_lwp argument a
7082 pointer-to-a-pointer.
7083 (check_zombie_leaders): Do not check stopped threads.
7084 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7085 (linux_low_filter_event): Add lwp and thread for exec'ing
7086 non-leader thread if leader thread has been deleted.
7087 Refactor code into linux_arch_setup_thread and call it.
7088 Pass child lwp pointer by reference to handle_extended_wait.
7089 (linux_wait_for_event_filtered): Update comment.
7090 (linux_wait_1): Prevent clobbering exec event status.
7091 (linux_supports_exec_events): New function.
7092 (linux_target_ops) <supports_exec_events>: Initialize new member.
7093 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7094 new member.
7095 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7096 * server.c (report_exec_events): New global variable.
7097 (handle_query): Handle qSupported query for exec-events feature.
7098 (captured_main): Initialize report_exec_events.
7099 * server.h (report_exec_events): Declare new global variable.
7100 * target.h (struct target_ops) <supports_exec_events>: New
7101 member.
7102 (target_supports_exec_events): New macro.
7103 * win32-low.c (win32_target_ops) <supports_exec_events>:
7104 Initialize new member.
7105
0568462b
MM
71062015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7107
7108 * linux-low.c (linux_low_enable_btrace): Remove.
7109 (linux_target_ops): Replace linux_low_enable_btrace with
7110 linux_enable_btrace.
7111
39edd165
YQ
71122015-09-03 Yao Qi <yao.qi@linaro.org>
7113
7114 * linux-aarch64-low.c (aarch64_insert_point): Call
7115 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7116 returns true.
7117
1db33b5a
UW
71182015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7119
7120 * linux-low.c (check_stopped_by_breakpoint): Use
7121 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7122
ab290430
PA
71232015-08-27 Pedro Alves <palves@redhat.com>
7124
7125 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7126
8d749320
SM
71272015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7128
6711b7f8
SM
7129 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7130 the XNEW-family equivalent.
8d749320
SM
7131 (compile_bytecodes): Likewise.
7132 * dll.c (loaded_dll): Likewise.
7133 * event-loop.c (append_callback_event): Likewise.
7134 (create_file_handler): Likewise.
7135 (create_file_event): Likewise.
7136 * hostio.c (handle_open): Likewise.
7137 * inferiors.c (add_thread): Likewise.
7138 (add_process): Likewise.
7139 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7140 * linux-arm-low.c (arm_new_process): Likewise.
7141 (arm_new_thread): Likewise.
7142 * linux-low.c (add_to_pid_list): Likewise.
7143 (linux_add_process): Likewise.
7144 (handle_extended_wait): Likewise.
7145 (add_lwp): Likewise.
7146 (enqueue_one_deferred_signal): Likewise.
7147 (enqueue_pending_signal): Likewise.
7148 (linux_resume_one_lwp_throw): Likewise.
7149 (linux_resume_one_thread): Likewise.
7150 (linux_read_memory): Likewise.
7151 (linux_write_memory): Likewise.
7152 * linux-mips-low.c (mips_linux_new_process): Likewise.
7153 (mips_linux_new_thread): Likewise.
7154 (mips_add_watchpoint): Likewise.
7155 * linux-x86-low.c (initialize_low_arch): Likewise.
7156 * lynx-low.c (lynx_add_process): Likewise.
7157 * mem-break.c (set_raw_breakpoint_at): Likewise.
7158 (set_breakpoint): Likewise.
7159 (add_condition_to_breakpoint): Likewise.
7160 (add_commands_to_breakpoint): Likewise.
7161 (clone_agent_expr): Likewise.
7162 (clone_one_breakpoint): Likewise.
7163 * regcache.c (new_register_cache): Likewise.
7164 * remote-utils.c (look_up_one_symbol): Likewise.
7165 * server.c (queue_stop_reply): Likewise.
7166 (start_inferior): Likewise.
7167 (queue_stop_reply_callback): Likewise.
7168 (handle_target_event): Likewise.
7169 * spu-low.c (fetch_ppc_memory): Likewise.
7170 (store_ppc_memory): Likewise.
7171 * target.c (set_target_ops): Likewise.
7172 * thread-db.c (thread_db_load_search): Likewise.
7173 (try_thread_db_load_1): Likewise.
7174 * tracepoint.c (add_tracepoint): Likewise.
7175 (add_tracepoint_action): Likewise.
7176 (create_trace_state_variable): Likewise.
7177 (cmd_qtdpsrc): Likewise.
7178 (cmd_qtro): Likewise.
7179 (add_while_stepping_state): Likewise.
7180 * win32-low.c (child_add_thread): Likewise.
7181 (get_image_name): Likewise.
7182
ed8b7b42
YQ
71832015-08-25 Yao Qi <yao.qi@linaro.org>
7184
7185 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7186
db3cb7cb
YQ
71872015-08-25 Yao Qi <yao.qi@linaro.org>
7188
7189 * Makefile.in (aarch64-linux.o): New rule.
7190 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7191 srv_tgtobj.
7192 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7193 (aarch64_init_debug_reg_state): Make it extern.
7194 (aarch64_linux_prepare_to_resume): Remove.
7195
f6011a1c
YQ
71962015-08-25 Yao Qi <yao.qi@linaro.org>
7197
7198 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7199 lwp_arch_private_info and ptid_of_lwp.
7200
88e2cf7e
YQ
72012015-08-25 Yao Qi <yao.qi@linaro.org>
7202
7203 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7204 Find proc_info by find_process_pid. All callers updated.
7205
5e35436e
YQ
72062015-08-25 Yao Qi <yao.qi@linaro.org>
7207
7208 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7209 Remove.
7210 (debug_reg_change_callback): Remove.
7211 (aarch64_notify_debug_reg_change): Remove.
7212
4a8a7965
YQ
72132015-08-25 Yao Qi <yao.qi@linaro.org>
7214
7215 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7216 Call current_lwp_ptid.
7217
32a271ee
YQ
72182015-08-25 Yao Qi <yao.qi@linaro.org>
7219
7220 * linux-aarch64-low.c (debug_reg_change_callback): Use
7221 debug_printf.
7222
0d51c8d7
YQ
72232015-08-25 Yao Qi <yao.qi@linaro.org>
7224
7225 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7226
31a43dd5
YQ
72272015-08-25 Yao Qi <yao.qi@linaro.org>
7228
7229 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7230
8ee52567
YQ
72312015-08-25 Yao Qi <yao.qi@linaro.org>
7232
7233 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7234 the code.
7235
ff3f0f45
YQ
72362015-08-25 Yao Qi <yao.qi@linaro.org>
7237
7238 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7239 Remove.
7240 (debug_reg_change_callback): Remove argument entry and add argument
7241 lwp. Remove local variable thread. Don't print thread id in the
7242 debugging output. Don't check whether pid of thread equals to pid.
7243 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7244 iterate_over_lwps instead find_inferior.
7245
3d40fbb5
PA
72462015-08-24 Pedro Alves <palves@redhat.com>
7247
7248 * inferiors.c (get_first_process): New function.
7249 * inferiors.h (get_first_process): New declaration.
7250 * remote-utils.c (read_ptid): Default to the first process in the
7251 list, instead of to the current thread's process.
7252
438e1e42
PA
72532015-08-24 Pedro Alves <palves@redhat.com>
7254
7255 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7256 * event-loop.c: Likewise.
7257 * remote-utils.c: Likewise.
7258 * tracepoint.c: Likewise.
7259
a8c6d4fc
PA
72602015-08-24 Pedro Alves <palves@redhat.com>
7261
7262 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7263 ptid_get_lwp.
7264
99b0bb12
PA
72652015-08-21 Pedro Alves <palves@redhat.com>
7266
7267 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7268 instead of literal 1.
7269
f8904751
PA
72702015-08-21 Pedro Alves <palves@redhat.com>
7271
7272 * tdesc.c (default_description): Explicitly zero-initialize.
7273
465a859e
PA
72742015-08-21 Pedro Alves <palves@redhat.com>
7275
7276 PR gdb/18749
7277 * inferiors.c (remove_thread): Discard any pending stop reply for
7278 this thread.
7279 * server.c (remove_all_on_match_pid): Rename to ...
7280 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7281 instead of a pid.
7282 (discard_queued_stop_replies): Change parameter to a ptid. Now
7283 extern.
7284 (handle_v_kill, kill_inferior_callback, captured_main)
7285 (process_serial_event): Adjust.
7286 * server.h (discard_queued_stop_replies): Declare.
7287
f0db101d
PA
72882015-08-21 Pedro Alves <palves@redhat.com>
7289
7290 * linux-low.c (wait_for_sigstop): Always switch to no thread
7291 selected if the previously current thread dies.
7292 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7293 process instead of the current thread's.
7294 * remote-utils.c (input_interrupt): Don't check if there's no
7295 current thread.
7296 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7297 current thread to the general thread fails, error out.
7298 (handle_qxfer_auxv, handle_qxfer_libraries)
7299 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7300 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7301 (handle_query): Check if there's a thread selected instead of
7302 checking whether there's any thread in the thread list.
7303 (handle_qxfer_threads, handle_qxfer_btrace)
7304 (handle_qxfer_btrace_conf): Don't error out early if there's no
7305 thread in the thread list.
7306 (handle_v_cont, myresume): Don't set the current thread to the
7307 continue thread.
7308 (process_serial_event) <Hg handling>: Also set thread_id if the
7309 previous general thread is still alive.
7310 (process_serial_event) <g/G handling>: If setting the current
7311 thread to the general thread fails, error out.
7312 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7313 thread's lwp instead of the current thread's.
7314 * target.c (set_desired_thread): If the desired thread was not
7315 found, leave the current thread pointing to NULL. Return an int
7316 (boolean) indicating success.
7317 * target.h (set_desired_thread): Change return type to int.
7318
40045d91
MF
73192015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7320
7321 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7322 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7323 #includes.
7324 (ps_get_thread_area): New function.
7325
45face3b
GB
73262015-08-19 Gary Benson <gbenson@redhat.com>
7327
7328 * hostio.c (handle_pread): Do not attempt to read more data
7329 than hostio_reply_with_data can fit in a packet.
7330
16d5f642
JB
73312015-08-18 Joel Brobecker <brobecker@adacore.com>
7332
7333 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7334
a738da3a
MF
73352015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7336
7337 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7338
33ebda9d
PA
73392015-08-06 Pedro Alves <palves@redhat.com>
7340
7341 * tracepoint.c (expr_eval_result): Now an int.
7342
a44892be
PA
73432015-08-06 Pedro Alves <palves@redhat.com>
7344
7345 * gdbthread.h (struct regcache): Forward declare.
7346 (struct thread_info) <regcache_data>: Now a struct regcache
7347 pointer.
7348 * inferiors.c (inferior_regcache_data)
7349 (set_inferior_regcache_data): Now work with struct regcache
7350 pointers.
7351 * inferiors.h (struct regcache): Forward declare.
7352 (inferior_regcache_data, set_inferior_regcache_data): Now work
7353 with struct regcache pointers.
7354 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7355 (free_register_cache_thread): Remove struct regcache pointer
7356 casts.
7357
608a1e46
PA
73582015-08-06 Pedro Alves <palves@redhat.com>
7359
7360 * server.c (captured_main): On error, print the exception message
7361 to stderr, and if run_once is set, throw a quit.
7362
f0ce0d3a
PA
73632015-08-06 Pedro Alves <palves@redhat.com>
7364
7365 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7366 the current thread.
7367
bf47e248
PA
73682015-08-06 Pedro Alves <palves@redhat.com>
7369
7370 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7371 reading beyond the passed in buffer length.
7372
b6b9ffcc
PL
73732015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7374
7375 * tracepoint.c (symbol_list) <required>: Remove.
7376
863d01bd
PA
73772015-08-06 Pedro Alves <palves@redhat.com>
7378
7379 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7380 count if stopping and suspending threads.
7381 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7382 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7383 (linux_detach): Complete an ongoing step-over.
7384 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7385 throughout.
7386 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7387 (linux_wait_1): If passing a signal to the inferior after
7388 finishing a step-over, unsuspend and re-resume all lwps. If we
7389 see a single-step event but the thread should be continuing, don't
7390 pass the trap to gdb.
7391 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7392 internal_error instead of gdb_assert.
7393 (enqueue_pending_signal): New function.
7394 (check_ptrace_stopped_lwp_gone): Add debug output.
7395 (start_step_over): Use internal_error instead of gdb_assert.
7396 (complete_ongoing_step_over): New function.
7397 (linux_resume_one_thread): Don't resume a suspended thread.
7398 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7399 it stepping.
7400
00db26fa
PA
74012015-08-06 Pedro Alves <palves@redhat.com>
7402
7403 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7404 (linux_thread_alive): Use lwp_is_marked_dead.
7405 (extended_event_reported): Delete.
7406 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7407 instead of extended_event_reported.
7408 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7409 as well.
7410 (lwp_is_marked_dead): New function.
7411 (lwp_running): Use lwp_is_marked_dead.
7412 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7413 comment.
7414
ad071a30
PA
74152015-08-06 Pedro Alves <palves@redhat.com>
7416
7417 * linux-low.c (linux_wait_1): Move fork event output out of the
7418 !report_to_gdb check. Pass event_child->waitstatus to
7419 target_waitstatus_to_string instead of ourstatus.
7420
524b57e6
YQ
74212015-08-04 Yao Qi <yao.qi@linaro.org>
7422
7423 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7424 if current_thread is 32 bit.
7425
6085d6f6
YQ
74262015-08-04 Yao Qi <yao.qi@linaro.org>
7427
7428 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7429 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7430 * server.c (extended_protocol): Remove "static".
7431 * server.h (extended_protocol): Declare it.
7432
8a7e4587
YQ
74332015-08-04 Yao Qi <yao.qi@linaro.org>
7434
7435 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7436 both aarch64 and aarch32.
7437 (aarch64_set_pc): Likewise.
7438
3b53ae99
YQ
74392015-08-04 Yao Qi <yao.qi@linaro.org>
7440
7441 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7442 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7443 arm-with-neon.xml to srv_xmlfiles.
7444 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7445 (is_64bit_tdesc): New function.
7446 (aarch64_linux_read_description): New function.
7447 (aarch64_arch_setup): Call aarch64_linux_read_description.
7448 (regs_info): Rename to regs_info_aarch64.
7449 (aarch64_regs_info): Return right regs_info.
7450 (initialize_low_arch): Call initialize_low_arch_aarch32.
7451
bd9e6534
YQ
74522015-08-04 Yao Qi <yao.qi@linaro.org>
7453
7454 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7455 * linux-aarch32-low.c: New file.
7456 * linux-aarch32-low.h: New file.
7457 * linux-arm-low.c (arm_fill_gregset): Move it to
7458 linux-aarch32-low.c.
7459 (arm_store_gregset): Likewise.
7460 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7461 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7462 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7463 (regs_info): Rename to regs_info_arm.
7464 (arm_regs_info): Return regs_info_aarch32 if
7465 have_ptrace_getregset is 1 and target description is
7466 arm_with_neon or arm_with_vfpv3.
7467 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7468 Call initialize_low_arch_aarch32 instead.
7469
ded48a5e
YQ
74702015-08-04 Yao Qi <yao.qi@linaro.org>
7471
7472 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7473 * linux-low.c: ... here.
7474 * linux-low.h (have_ptrace_getregset): Declare it.
7475
96e9210f
PA
74762015-08-04 Pedro Alves <palves@redhat.com>
7477
7478 * thread-db.c (struct thread_db): Use new typedefs.
7479 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7480 CHK calls.
7481 (disable_thread_event_reporting): Cast result of dlsym to
7482 destination function pointer type.
7483 (thread_db_mourn): Use td_ta_delete_ftype.
7484
af60a1ef
SL
74852015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7486
7487 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7488 arch variant.
7489 (CDX_BREAKPOINT): Define for R2.
7490 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7491 (the_low_target): Add comments.
7492
e8b41681
YQ
74932015-07-30 Yao Qi <yao.qi@linaro.org>
7494
7495 * linux-arm-low.c (arm_hwcap): Remove it.
7496 (arm_read_description): New local variable arm_hwcap. Don't
7497 set arm_hwcap to zero.
7498
89abb039
YQ
74992015-07-30 Yao Qi <yao.qi@linaro.org>
7500
7501 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7502 Use regcache->tdesc instead.
7503 (arm_store_wmmxregset): Likewise.
7504 (arm_fill_vfpregset): Likewise.
7505 (arm_store_vfpregset): Likewise.
7506
deca266c
YQ
75072015-07-30 Yao Qi <yao.qi@linaro.org>
7508
7509 * linux-arm-low.c: Include arch/arm.h.
7510 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7511 (arm_store_gregset): Likewise.
7512
aa58a496
SM
75132015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7514
7515 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7516 ptrace's 4th parameter.
7517
50904b25
YQ
75182015-07-27 Yao Qi <yao.qi@linaro.org>
7519
7520 * configure.srv (case aarch64*-*-linux*): Don't set
7521 srv_linux_usrregs.
7522
5826e159
PA
75232015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7524
7525 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7526 sys/ptrace.h.
7527 * linux-arm-low.c: Likewise.
7528 * linux-cris-low.c: Likewise.
7529 * linux-crisv32-low.c: Likewise.
7530 * linux-low.c: Likewise.
7531 * linux-m68k-low.c: Likewise.
7532 * linux-mips-low.c: Likewise.
7533 * linux-nios2-low.c: Likewise.
7534 * linux-s390-low.c: Likewise.
7535 * linux-sparc-low.c: Likewise.
7536 * linux-tic6x-low.c: Likewise.
7537 * linux-tile-low.c: Likewise.
7538 * linux-x86-low.c: Likewise.
7539
54019719
PA
75402015-07-24 Pedro Alves <palves@redhat.com>
7541
7542 * config.in: Regenerate.
7543 * configure: Regenerate.
7544
eb7aa561
PA
75452015-07-24 Pedro Alves <palves@redhat.com>
7546
7547 * acinclude.m4: Include ../ptrace.m4.
7548 * configure.ac: Call GDB_AC_PTRACE.
7549 * config.in, configure: Regenerate.
7550
55d7b841
YQ
75512015-07-24 Yao Qi <yao.qi@linaro.org>
7552
7553 * linux-low.c (linux_create_inferior): Remove setting to
7554 proc->priv->new_inferior.
7555 (linux_attach): Likewise.
7556 (linux_low_filter_event): Likewise.
7557 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7558
c06cbd92
YQ
75592015-07-24 Yao Qi <yao.qi@linaro.org>
7560
7561 * linux-low.c (linux_arch_setup): New function.
7562 (linux_low_filter_event): If proc->tdesc is NULL and
7563 proc->attached is true, call the_low_target.arch_setup.
7564 Otherwise, keep status pending, and return.
7565 (linux_resume_one_lwp_throw): Don't call get_pc if
7566 thread->while_stepping isn't NULL. Don't call
7567 get_thread_regcache if proc->tdesc is NULL.
7568 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7569 (linux_target_ops): Install arch_setup.
7570 * server.c (start_inferior): Call the_target->arch_setup.
7571 * target.h (struct target_ops) <arch_setup>: New field.
7572 (target_arch_setup): New marco.
7573 * lynx-low.c (lynx_target_ops): Update.
7574 * nto-low.c (nto_target_ops): Update.
7575 * spu-low.c (spu_target_ops): Update.
7576 * win32-low.c (win32_target_ops): Update.
7577
5ae3ebba
YQ
75782015-07-24 Yao Qi <yao.qi@linaro.org>
7579
7580 * linux-low.c (linux_add_process): Don't set
7581 proc->priv->new_inferior.
7582 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7583 (linux_attach): Likewise.
7584
eb97750b
YQ
75852015-07-24 Yao Qi <yao.qi@linaro.org>
7586
7587 * server.c (start_inferior): Code refactor.
7588
51aee833
YQ
75892015-07-24 Yao Qi <yao.qi@linaro.org>
7590
7591 * server.c (process_serial_event): Set general_thread.
7592
af1b22f3
YQ
75932015-07-21 Yao Qi <yao.qi@linaro.org>
7594
7595 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7596 aarch64_linux_get_debug_reg_capacity.
7597
554717a3
YQ
75982015-07-17 Yao Qi <yao.qi@linaro.org>
7599
7600 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7601 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7602 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7603 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7604 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7605 (AARCH64_HWP_ALIGNMENT): Likewise.
7606 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7607 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7608 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7609 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7610 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7611 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7612 (struct aarch64_debug_reg_state): Likewise.
7613 (struct arch_lwp_info): Likewise.
7614 (aarch64_align_watchpoint): Likewise.
7615 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7616 (aarch64_watchpoint_length): Likewise.
7617 (aarch64_point_encode_ctrl_reg): Likewise
7618 (aarch64_point_is_aligned): Likewise.
7619 (aarch64_align_watchpoint): Likewise.
7620 (aarch64_linux_set_debug_regs):
7621 (aarch64_dr_state_insert_one_point): Likewise.
7622 (aarch64_dr_state_remove_one_point): Likewise.
7623 (aarch64_handle_breakpoint): Likewise.
7624 (aarch64_handle_aligned_watchpoint): Likewise.
7625 (aarch64_handle_unaligned_watchpoint): Likewise.
7626 (aarch64_handle_watchpoint): Likewise.
7627
c67ca4de
YQ
76282015-07-17 Yao Qi <yao.qi@linaro.org>
7629
7630 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
7631 and don't aarch64_get_debug_reg_state. All callers update.
7632 (aarch64_handle_aligned_watchpoint): Likewise.
7633 (aarch64_handle_unaligned_watchpoint): Likewise.
7634 (aarch64_handle_watchpoint): Likewise.
7635 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
7636 (aarch64_remove_point): Likewise.
7637
25abf979
YQ
76382015-07-17 Yao Qi <yao.qi@linaro.org>
7639
7640 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
7641 debug_printf.
7642 (aarch64_handle_unaligned_watchpoint): Likewise.
7643
db1ff28b
JK
76442015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7645
7646 Revert the previous 3 commits:
7647 Move gdb_regex* to common/
7648 Move linux_find_memory_regions_full & co.
7649 gdbserver build-id attribute generator
7650
700ca40f
JK
76512015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7652 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 gdbserver build-id attribute generator.
7655 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7656 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7657 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7658 (find_phdr): New.
7659 (get_dynamic): Use find_pdhr to traverse program headers.
7660 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7661 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7662 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7663 (get_hex_build_id): New.
7664 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7665 to reply XML document.
7666
9904185c
JK
76672015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7668 Jan Kratochvil <jan.kratochvil@redhat.com>
7669
7670 * target.c: Include target/target-utils.h and fcntl.h.
7671 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7672 (target_fileio_read_stralloc): New functions.
7673
6e5b4429
JK
76742015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7675
7676 * Makefile.in (OBS): Add gdb_regex.o.
7677 (gdb_regex.o): New.
7678 * config.in: Rebuilt.
7679 * configure: Rebuilt.
7680
ddc98fbf
JK
76812015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7682 Jan Kratochvil <jan.kratochvil@redhat.com>
7683
7684 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7685 * Makefile.in (OBS): Add target-utils.o.
7686 (linux-maps.o, target-utils.o): New.
7687 * configure.srv (srv_linux_obj): Add linux-maps.o.
7688
e57bb7a0
PL
76892015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7690
7691 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7692 function, return 1.
7693 (the_low_target): Install it.
7694
586b02a9
PA
76952015-07-14 Pedro Alves <palves@redhat.com>
7696
7697 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7698 Instead, ignore ECHILD, and throw an error for other errnos.
7699
58c1b36c
PA
77002015-07-10 Pedro Alves <palves@redhat.com>
7701
7702 * event-loop.c (struct callback_event) <data>: Change type to
7703 gdb_client_data instance instead of gdb_client_data pointer.
7704 (append_callback_event): Adjust.
7705
421530db
PL
77062015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7707
7708 * linux-aarch64-low.c: Add comments for each linux_target_ops
7709 method. Remove comments already covered in target_ops and
7710 linux_target_ops definitions.
7711 (the_low_target): Add comments for each unimplemented method.
7712
c2d65f38
YQ
77132015-07-09 Yao Qi <yao.qi@linaro.org>
7714
7715 * linux-aarch64-low.c (aarch64_regmap): Remove.
7716 (aarch64_usrregs_info): Remove.
7717 (regs_info): Set field usrregs to NULL.
7718
b20a6524
MM
77192015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7720
7721 * linux-low.c: Include "rsp-low.h"
7722 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7723 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7724 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7725 (handle_btrace_enable_pt): New.
7726 (handle_btrace_general_set): Support "pt".
7727 (handle_btrace_conf_general_set): Support "pt:size".
7728
96c97461
PL
77292015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7730
7731 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7732 Z_PACKET_SW_BP.
7733
37d66942
PL
77342015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7735
7736 * linux-aarch64-low.c: Remove comment about endianness.
7737 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7738 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7739 memcmp.
7740
dc06243f
GB
77412015-06-24 Gary Benson <gbenson@redhat.com>
7742
7743 * linux-i386-ipa.c (stdint.h): Do not include.
7744 * lynx-i386-low.c (stdint.h): Likewise.
7745 * lynx-ppc-low.c (stdint.h): Likewise.
7746 * mem-break.c (stdint.h): Likewise.
7747 * thread-db.c (stdint.h): Likewise.
7748 * tracepoint.c (stdint.h): Likewise.
7749 * win32-low.c (stdint.h): Likewise.
7750
124e13d9
SM
77512015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7752
7753 * server.c (write_qxfer_response): Update call to
7754 remote_escape_output.
7755
909c2cda
JK
77562015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7757 Jan Kratochvil <jan.kratochvil@redhat.com>
7758
7759 Merge multiple hex conversions.
7760 * gdbreplay.c (tohex): Rename to 'fromhex'.
7761 (logchar): Use fromhex.
7762
24c05f46
JK
77632015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7764
7765 * server.c (handle_qxfer_libraries): Set `version' attribute for
7766 <library-list>.
7767
14d2069a
GB
77682015-06-10 Gary Benson <gbenson@redhat.com>
7769
7770 * target.h (struct target_ops) <multifs_open>: New field.
7771 <multifs_unlink>: Likewise.
7772 <multifs_readlink>: Likewise.
7773 * linux-low.c (nat/linux-namespaces.h): New include.
7774 (linux_target_ops): Initialize the_target->multifs_open,
7775 the_target->multifs_unlink and the_target->multifs_readlink.
7776 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7777 * hostio.c (hostio_fs_pid): New static variable.
7778 (hostio_handle_new_gdb_connection): New function.
7779 (handle_setfs): Likewise.
7780 (handle_open): Use the_target->multifs_open as appropriate.
7781 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7782 (handle_readlink): Use the_target->multifs_readlink as
7783 appropriate.
7784 (handle_vFile): Handle vFile:setfs packets.
7785 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7786 after target_handle_new_gdb_connection.
7787
4b8b5e72
GB
77882015-06-10 Gary Benson <gbenson@redhat.com>
7789
7790 * configure.ac (AC_CHECK_FUNCS): Add setns.
7791 * config.in: Regenerate.
7792 * configure: Likewise.
7793 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7794 (linux-namespaces.o): New rule.
7795 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7796
3ac2e371
GB
77972015-06-09 Gary Benson <gbenson@redhat.com>
7798
7799 * hostio.c (handle_open): Process mode argument with
7800 fileio_to_host_mode.
7801
ca9b78ce
YQ
78022015-06-01 Yao Qi <yao.qi@linaro.org>
7803
7804 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7805 * linux-x86-low.c: Likewise.
7806
bfacd19d
DB
78072015-05-28 Don Breazeal <donb@codesourcery.com>
7808
7809 * linux-low.c (handle_extended_wait): Initialize
7810 thread_info.last_resume_kind for new fork children.
7811
452003ef
PA
78122015-05-15 Pedro Alves <palves@redhat.com>
7813
7814 * target.h (target_handle_new_gdb_connection): Rewrite using if
7815 wrapped in do/while.
7816
1041a03c
JB
78172015-05-14 Joel Brobecker <brobecker@adacore.com>
7818
7819 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7820 * configure, config.in: Regenerate.
7821 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7822 Declare typedef.
7823
c269dbdb
DB
78242015-05-12 Don Breazeal <donb@codesourcery.com>
7825
7826 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7827 PTRACE_EVENT_VFORK_DONE.
7828 (linux_low_ptrace_options, extended_event_reported): Add vfork
7829 events.
7830 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7831 and "vforkdone" for RSP 'T' Stop Reply Packet.
7832 * server.h (report_vfork_events): Declare
7833 global variable.
7834
3a8a0396
DB
78352015-05-12 Don Breazeal <donb@codesourcery.com>
7836
7837 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7838 (the_low_target) <new_fork>: Initialize new member.
7839 * linux-arm-low.c (arm_new_fork): New function.
7840 (the_low_target) <new_fork>: Initialize new member.
7841 * linux-low.c (handle_extended_wait): Call new target function
7842 new_fork.
7843 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7844 * linux-mips-low.c (mips_add_watchpoint): New function
7845 extracted from mips_insert_point.
7846 (the_low_target) <new_fork>: Initialize new member.
7847 (mips_linux_new_fork): New function.
7848 (mips_insert_point): Call mips_add_watchpoint.
7849 * linux-x86-low.c (x86_linux_new_fork): New function.
7850 (the_low_target) <new_fork>: Initialize new member.
7851
de0d863e
DB
78522015-05-12 Don Breazeal <donb@codesourcery.com>
7853
7854 * linux-low.c (handle_extended_wait): Implement return value,
7855 rename argument 'event_child' to 'event_lwp', handle
7856 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7857 (linux_low_ptrace_options): New function.
7858 (linux_low_filter_event): Call linux_low_ptrace_options,
7859 use different argument fo linux_enable_event_reporting,
7860 use return value from handle_extended_wait.
7861 (extended_event_reported): New function.
7862 (linux_wait_1): Call extended_event_reported and set
7863 status to report fork events.
7864 (linux_write_memory): Add pid to debug message.
7865 (reset_lwp_ptrace_options_callback): New function.
7866 (linux_handle_new_gdb_connection): New function.
7867 (linux_target_ops): Initialize new structure member.
7868 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7869 * lynx-low.c: Initialize new structure member.
7870 * remote-utils.c (prepare_resume_reply): Implement stop reason
7871 "fork" for "T" stop message.
7872 * server.c (handle_query): Call handle_new_gdb_connection.
7873 * server.h (report_fork_events): Declare global flag.
7874 * target.h (struct target_ops) <handle_new_gdb_connection>:
7875 New member.
7876 (target_handle_new_gdb_connection): New macro.
7877 * win32-low.c: Initialize new structure member.
7878
ddcbc397
DB
78792015-05-12 Don Breazeal <donb@codesourcery.com>
7880
7881 * mem-break.c (APPEND_TO_LIST): Define macro.
7882 (clone_agent_expr): New function.
7883 (clone_one_breakpoint): New function.
7884 (clone_all_breakpoints): New function.
7885 * mem-break.h: Declare new functions.
7886
89245bc0
DB
78872015-05-12 Don Breazeal <donb@codesourcery.com>
7888
7889 * linux-low.c (linux_supports_fork_events): New function.
7890 (linux_supports_vfork_events): New function.
7891 (linux_target_ops): Initialize new structure members.
7892 (initialize_low): Call linux_check_ptrace_features.
7893 * lynx-low.c (lynx_target_ops): Initialize new structure
7894 members.
7895 * server.c (report_fork_events, report_vfork_events):
7896 New global flags.
7897 (handle_query): Add new features to qSupported packet and
7898 response.
7899 (captured_main): Initialize new global variables.
7900 * target.h (struct target_ops) <supports_fork_events>:
7901 New member.
7902 <supports_vfork_events>: New member.
7903 (target_supports_fork_events): New macro.
7904 (target_supports_vfork_events): New macro.
7905 * win32-low.c (win32_target_ops): Initialize new structure
7906 members.
7907
835205d0
GB
79082015-05-12 Gary Benson <gbenson@redhat.com>
7909
7910 * server.c (handle_qxfer_exec_file): Use current process
7911 if annex is empty.
7912
21e94bd9
SL
79132015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7914
7915 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7916 Remove HAVE_PTRACE_GETREGS conditionals.
7917 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7918 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7919
45614f15
YQ
79202015-05-08 Yao Qi <yao.qi@linaro.org>
7921
7922 * linux-low.c (linux_supports_conditional_breakpoints): New
7923 function.
7924 (linux_target_ops): Install new target method.
7925 * lynx-low.c (lynx_target_ops): Install NULL hook for
7926 supports_conditional_breakpoints.
7927 * nto-low.c (nto_target_ops): Likewise.
7928 * spu-low.c (spu_target_ops): Likewise.
7929 * win32-low.c (win32_target_ops): Likewise.
7930 * server.c (handle_query): Check
7931 target_supports_conditional_breakpoints.
7932 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7933 New field.
7934 (target_supports_conditional_breakpoints): New macro.
7935
80ad801e
PA
79362015-05-06 Pedro Alves <palves@redhat.com>
7937
7938 PR server/18081
7939 * server.c (start_inferior): If the process exits, mourn it.
7940
819843c7
GB
79412015-04-21 Gary Benson <gbenson@redhat.com>
7942
7943 * hostio.c (fileio_open_flags_to_host): Factored out to
7944 fileio_to_host_openflags in common/fileio.c. Single use
7945 updated.
7946
a2d5a9d7
MF
79472015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7948
7949 * linux-xtensa-low.c (xtensa_fill_gregset)
7950 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7951 XCHAL_HAVE_LOOP.
7952
deb44829
MF
79532015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7954
7955 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7956 (regs_info): Replace usrregs pointer with NULL.
7957
e57f1de3
GB
79582015-04-17 Gary Benson <gbenson@redhat.com>
7959
7960 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7961 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7962 * server.c (handle_qxfer_exec_file): New function.
7963 (qxfer_packets): Add exec-file entry.
7964 (handle_query): Report qXfer:exec-file:read as supported packet.
7965
62828379
RN
79662015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7967
7968 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7969
b88bb450
GB
79702015-04-09 Gary Benson <gbenson@redhat.com>
7971
7972 * hostio-errno.c (errno_to_fileio_error): Remove function.
7973 Update caller to use remote_fileio_to_fio_error.
7974
c8f4bfdd
YQ
79752015-04-09 Yao Qi <yao.qi@linaro.org>
7976
7977 * linux-low.c (linux_insert_point): Call
7978 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7979 (linux_remove_point): Call remove_memory_breakpoint if type is
7980 raw_bkpt_type_sw.
7981 * linux-x86-low.c (x86_insert_point): Don't call
7982 insert_memory_breakpoint.
7983 (x86_remove_point): Don't call remove_memory_breakpoint.
7984
41f98f02
PA
79852015-04-01 Pedro Alves <palves@redhat.com>
7986 Cleber Rosa <crosa@redhat.com>
7987
7988 * server.c (gdbserver_usage): Reorganize and extend the usage
7989 message.
7990
2bf6fb9d
PA
79912015-03-24 Pedro Alves <palves@redhat.com>
7992
7993 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7994 output. Also dump TRAP_TRACE.
7995 (linux_low_filter_event): In debug output, distinguish a
7996 resume_stop SIGSTOP from a delayed SIGSTOP.
7997
369f6daa
GB
79982015-03-24 Gary Benson <gbenson@redhat.com>
7999
8000 * linux-x86-low.c (x86_linux_new_thread): Moved to
8001 nat/x86-linux.c.
8002 (x86_linux_prepare_to_resume): Likewise.
8003
8e5d4070
GB
80042015-03-24 Gary Benson <gbenson@redhat.com>
8005
8006 * Makefile.in (x86-linux-dregs.o): New rule.
8007 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8008 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8009 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8010 (x86_linux_dr_get): Likewise.
8011 (x86_linux_dr_set): Likewise.
8012 (update_debug_registers_callback): Likewise.
8013 (x86_linux_dr_set_addr): Likewise.
8014 (x86_linux_dr_get_addr): Likewise.
8015 (x86_linux_dr_set_control): Likewise.
8016 (x86_linux_dr_get_control): Likewise.
8017 (x86_linux_dr_get_status): Likewise.
8018 (x86_linux_update_debug_registers): Likewise.
8019
2b95d440
GB
80202015-03-24 Gary Benson <gbenson@redhat.com>
8021
8022 * linux-x86-low.c (x86_linux_update_debug_registers):
8023 New function, factored out from...
8024 (x86_linux_prepare_to_resume): ...this.
8025
14b0bc68
GB
80262015-03-24 Gary Benson <gbenson@redhat.com>
8027
8028 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8029 (x86_linux_dr_set): Likewise.
8030 (update_debug_registers_callback): Likewise.
8031 (x86_linux_dr_set_addr): Likewise.
8032 (x86_linux_dr_get_addr): Likewise.
8033 (x86_linux_dr_set_control): Likewise.
8034 (x86_linux_dr_get_control): Likewise.
8035 (x86_linux_dr_get_status): Likewise.
8036 (x86_linux_prepare_to_resume): Likewise.
8037
5dfe6ca8
GB
80382015-03-24 Gary Benson <gbenson@redhat.com>
8039
8040 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8041 Use perror_with_name. Pass string through gettext.
8042 (x86_linux_dr_set): Likewise.
8043
d33472ad
GB
80442015-03-24 Gary Benson <gbenson@redhat.com>
8045
8046 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8047 (x86_linux_dr_set_addr): ...this.
8048 (x86_dr_low_get_addr): Rename to...
8049 (x86_linux_dr_get_addr): ...this.
8050 (x86_dr_low_set_control): Rename to...
8051 (x86_linux_dr_set_control): ...this.
8052 (x86_dr_low_get_control): Rename to...
8053 (x86_linux_dr_get_control): ...this.
8054 (x86_dr_low_get_status): Rename to...
8055 (x86_linux_dr_get_status): ...this.
8056 (x86_dr_low): Update with new function names.
8057
4b134ca1
GB
80582015-03-24 Gary Benson <gbenson@redhat.com>
8059
8060 * Makefile.in (x86-linux.o): New rule.
8061 * configure.srv: Add x86-linux.o to relevant targets.
8062 * linux-low.c (lwp_set_arch_private_info): New function.
8063 (lwp_arch_private_info): Likewise.
8064 * linux-x86-low.c: Include nat/x86-linux.h.
8065 (arch_lwp_info): Removed structure.
8066 (update_debug_registers_callback):
8067 Use lwp_set_debug_registers_changed.
8068 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8069 and lwp_set_debug_registers_changed.
8070 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8071
34c703da
GB
80722015-03-24 Gary Benson <gbenson@redhat.com>
8073
8074 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8075 * linux-arm-low.c (arm_new_thread): Likewise.
8076 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8077 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8078 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8079 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8080
cff068da
GB
80812015-03-24 Gary Benson <gbenson@redhat.com>
8082
8083 * linux-low.c (ptid_of_lwp): New function.
8084 (lwp_is_stopped): Likewise.
8085 (lwp_stop_reason): Likewise.
8086 * linux-x86-low.c (update_debug_registers_callback):
8087 Use lwp_is_stopped.
8088 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8089 lwp_stop_reason.
8090
b2f7c7e8
GB
80912015-03-24 Gary Benson <gbenson@redhat.com>
8092
8093 * linux-low.h (linux_stop_lwp): Remove declaration.
8094
6d4ee8c6
GB
80952015-03-24 Gary Benson <gbenson@redhat.com>
8096
8097 * linux-low.h: Include nat/linux-nat.h.
8098 * linux-low.c (iterate_over_lwps_args): New structure.
8099 (iterate_over_lwps_filter): New function.
8100 (iterate_over_lwps): Likewise.
8101 * linux-x86-low.c (update_debug_registers_callback):
8102 Update signature to what iterate_over_lwps expects.
8103 Remove PID check that iterate_over_lwps now performs.
8104 (x86_dr_low_set_addr): Use iterate_over_lwps.
8105 (x86_dr_low_set_control): Likewise.
8106
70a0bb6b
GB
81072015-03-24 Gary Benson <gbenson@redhat.com>
8108
8109 * linux-x86-low.c (x86_debug_reg_state): New function.
8110 (x86_linux_prepare_to_resume): Use the above.
8111
7b669087
GB
81122015-03-24 Gary Benson <gbenson@redhat.com>
8113
8114 * linux-low.c (current_lwp_ptid): New function.
8115 * linux-x86-low.c: Include nat/linux-nat.h.
8116 (x86_dr_low_get_addr): Use current_lwp_ptid.
8117 (x86_dr_low_get_control): Likewise.
8118 (x86_dr_low_get_status): Likewise.
8119
eef49a3d
PA
81202015-03-20 Pedro Alves <palves@redhat.com>
8121
8122 * tracepoint.c (cmd_qtstatus): Make "str" const.
8123
b2333d22
PA
81242015-03-20 Pedro Alves <palves@redhat.com>
8125
8126 * server.c (handle_general_set): Make "req_str" const.
8127
23f238d3
PA
81282015-03-19 Pedro Alves <palves@redhat.com>
8129
8130 * linux-low.c (linux_resume_one_lwp): Rename to ...
8131 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8132 instead call perror_with_name.
8133 (check_ptrace_stopped_lwp_gone): New function.
8134 (linux_resume_one_lwp): Reimplement as wrapper around
8135 linux_resume_one_lwp_throw that swallows errors if the LWP is
8136 gone.
8137
91baf43f
PA
81382015-03-19 Pedro Alves <palves@redhat.com>
8139
8140 * linux-low.c (count_events_callback, select_event_lwp_callback):
8141 No longer check whether the thread has resume_stop as last resume
8142 kind.
8143
8bf3b159
PA
81442015-03-19 Pedro Alves <palves@redhat.com>
8145
8146 * linux-low.c (count_events_callback, select_event_lwp_callback):
8147 Use the lwp's status_pending_p field, not the thread's.
8148
b90fc188
PA
81492015-03-19 Pedro Alves <palves@redhat.com>
8150
8151 * linux-low.c (select_event_lwp_callback): Update comments to
8152 no longer mention SIGTRAP.
8153
464b0089
GB
81542015-03-18 Gary Benson <gbenson@redhat.com>
8155
8156 * server.c (handle_query): Do not report vFile:fstat as supported.
8157
aa9e327f
GB
81582015-03-11 Gary Benson <gbenson@redhat.com>
8159
8160 * hostio.c (sys/types.h): New include.
8161 (sys/stat.h): Likewise.
8162 (common-remote-fileio.h): Likewise.
8163 (handle_fstat): New function.
8164 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 8165
791c0056
GB
81662015-03-11 Gary Benson <gbenson@redhat.com>
8167
8168 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8169 struct stat.st_blocks and struct stat.st_blksize.
8170 * configure: Regenerate.
8171 * config.in: Likewise.
8172 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8173 (OBS): Add common-remote-fileio.o.
8174 (common-remote-fileio.o): New rule.
8175
9a9df970
PA
81762015-03-09 Pedro Alves <palves@redhat.com>
8177
8178 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8179 'struct sockaddr' pointer in 'accept' call.
8180
9eb1356e
PA
81812015-03-09 Pedro Alves <palves@redhat.com>
8182
8183 Revert:
8184 2015-03-07 Pedro Alves <palves@redhat.com>
8185 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8186 or <winsock2.h> here. Instead include "gdb_socket.h".
8187 (remote_open): Use union gdb_sockaddr_u.
8188 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8189 or <winsock2.h> here. Instead include "gdb_socket.h".
8190 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8191 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8192 or <sys/un.h>.
8193 (init_named_socket, gdb_agent_helper_thread): Use union
8194 gdb_sockaddr_u.
8195
aac331e4
PA
81962015-03-07 Pedro Alves <palves@redhat.com>
8197
8198 * configure.ac (build_warnings): Move
8199 -Wdeclaration-after-statement to the C-specific set.
8200 * configure: Regenerate.
8201
366c75fc
PA
82022015-03-07 Pedro Alves <palves@redhat.com>
8203
8204 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8205 or <winsock2.h> here. Instead include "gdb_socket.h".
8206 (remote_open): Use union gdb_sockaddr_u.
8207 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8208 or <winsock2.h> here. Instead include "gdb_socket.h".
8209 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8210 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8211 or <sys/un.h>.
8212 (init_named_socket, gdb_agent_helper_thread): Use union
8213 gdb_sockaddr_u.
8214
492d29ea
PA
82152015-03-07 Pedro Alves <palves@redhat.com>
8216
8217 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8218 instead.
8219
60a191ed
YQ
82202015-03-06 Yao Qi <yao.qi@linaro.org>
8221
8222 * linux-aarch64-low.c (aarch64_insert_point): Use
8223 show_debug_regs as a boolean.
8224 (aarch64_remove_point): Likewise.
8225
f5771b1d
PA
82262015-03-05 Pedro Alves <palves@redhat.com>
8227
8228 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8229 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8230 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8231 * nto-low.c (nto_target_ops): Likewise.
8232 * spu-low.c (spu_target_ops): Likewise.
8233 * win32-low.c (win32_target_ops): Likewise.
8234
3e572f71
PA
82352015-03-04 Pedro Alves <palves@redhat.com>
8236
72f4393d 8237 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
8238 Decide whether a breakpoint triggered based on the SIGTRAP's
8239 siginfo.si_code.
72f4393d
L
8240 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8241 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
8242 (linux_low_filter_event): Check for breakpoints before checking
8243 watchpoints.
8244 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8245 siginfo.si_code.
72f4393d
L
8246 (linux_stopped_by_sw_breakpoint)
8247 (linux_supports_stopped_by_sw_breakpoint)
8248 (linux_stopped_by_hw_breakpoint)
8249 (linux_supports_stopped_by_hw_breakpoint): New functions.
8250 (linux_target_ops): Install new target methods.
3e572f71 8251
1ec68e26
PA
82522015-03-04 Pedro Alves <palves@redhat.com>
8253
8254 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8255 * server.c (swbreak_feature, hwbreak_feature): New globals.
8256 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8257 (captured_main): Clear swbreak_feature and hwbreak_feature.
8258 * server.h (swbreak_feature, hwbreak_feature): Declare.
8259 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8260 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8261 supports_stopped_by_hw_breakpoint>: New fields.
8262 (target_supports_stopped_by_sw_breakpoint)
8263 (target_stopped_by_sw_breakpoint)
8264 (target_supports_stopped_by_hw_breakpoint)
8265 (target_stopped_by_hw_breakpoint): Declare.
8266
15c66dd6
PA
82672015-03-04 Pedro Alves <palves@redhat.com>
8268
8269 enum lwp_stop_reason -> enum target_stop_reason
8270 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8271 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8272 (linux_wait_1, stuck_in_jump_pad_callback)
8273 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8274 (linux_stopped_by_watchpoint):
8275 * linux-low.h (enum lwp_stop_reason): Delete.
8276 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8277 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8278
98fc70d6
YQ
82792015-03-04 Yao Qi <yao.qi@linaro.org>
8280
8281 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8282
dd2ac174
GB
82832015-03-03 Gary Benson <gbenson@redhat.com>
8284
8285 * hostio.c (handle_vFile): Fix prefix lengths.
8286
d68e53f4
MM
82872015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8288
8289 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8290 ptr_bits.
8291
bf2d68ab
AA
82922015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8293
8294 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8295 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8296 (clean): Add "rm -f" for above C files.
8297 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8298 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8299 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8300 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8301 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8302 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8303 (init_registers_s390x_vx_linux64)
8304 (init_registers_s390x_tevx_linux64)
8305 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8306 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8307 declarations.
8308 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8309 (s390_store_vxrs_high): New functions.
8310 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8311 NT_S390_VXRS_HIGH.
8312 (s390_arch_setup): Add logic for selecting one of the new target
8313 descriptions. Activate the new vector regsets if applicable.
8314 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8315 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8316 and init_registers_s390x_tevx_linux64.
8317
c966a859
PA
83182015-03-01 Pedro Alves <palves@redhat.com>
8319
8320 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8321 parameter.
8322
4180215b
PA
83232015-02-27 Pedro Alves <palves@redhat.com>
8324
8325 * linux-x86-low.c (u_debugreg_offset): New function.
8326 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8327
749bab01
PA
83282015-02-27 Pedro Alves <palves@redhat.com>
8329
8330 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8331 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8332 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8333 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8334 (ps_lsetfpregs, ps_getpid)
8335 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8336 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8337 (ps_lsetxregs, ps_plog): Declare.
8338
3c14e5a3
PA
83392015-02-27 Pedro Alves <palves@redhat.com>
8340
8341 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8342 IP_AGENT_EXPORT_FUNC.
8343 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8344 IP_AGENT_EXPORT_FUNC.
8345 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8346 (IP_AGENT_EXPORT): Delete.
8347 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8348 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8349 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8350 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8351 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8352 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8353 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8354 (traceframe_read_count, traceframe_write_count)
8355 (traceframes_created, trace_state_variables, get_raw_reg)
8356 (get_trace_state_variable_value, set_trace_state_variable_value)
8357 (ust_loaded, helper_thread_id, cmd_buf): Use
8358 IPA_SYM_EXPORTED_NAME.
8359 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8360 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8361 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8362 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8363 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8364 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8365 EXTERN_C_PUSH/EXTERN_C_POP.
8366 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8367 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8368 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8369 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8370 (traceframe_write_count, traceframe_read_count)
8371 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8372 (about_to_request_buffer_space, get_trace_state_variable_value)
8373 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8374 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8375 EXTERN_C_PUSH/EXTERN_C_POP.
8376 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8377 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8378 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8379 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8380 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8381 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8382 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8383 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8384 Define.
8385 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8386 (IP_AGENT_EXPORT_VAR_DECL): Define.
8387 (tracing): Declare.
8388 (gdb_agent_get_raw_reg): Declare.
8389
fe978cb0
PA
83902015-02-27 Tom Tromey <tromey@redhat.com>
8391 Pedro Alves <palves@redhat.com>
8392
8393 Rename symbols whose names are reserved C++ keywords throughout.
8394
3bc3d82a
PA
83952015-02-27 Pedro Alves <palves@redhat.com>
8396
8397 * Makefile.in (COMPILER): New, get it from autoconf.
8398 (CXX): Get from autoconf instead.
8399 (COMPILE.pre): Use COMPILER.
8400 (CC-LD): Rename to ...
8401 (CC_LD): ... this. Use COMPILER.
8402 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8403 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8404 * acinclude.m4: Include build-with-cxx.m4.
8405 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8406 Disable -Werror by default if building in C++ mode.
8407 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8408 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8409 the C++ compiler. Save/restore CXXFLAGS too.
8410 * configure: Regenerate.
8411
07697489
PA
84122015-02-27 Pedro Alves <palves@redhat.com>
8413
8414 * acinclude.m4: Include libiberty.m4.
8415 * configure.ac: Call libiberty_INIT.
8416 * config.in, configure: Regenerate.
8417
9beb7c4e
PA
84182015-02-26 Pedro Alves <palves@redhat.com>
8419
8420 * linux-low.c (linux_wait_1): When incrementing the PC past a
8421 program breakpoint always use the_low_target.breakpoint_len as
8422 increment, rather than the maximum between that and
8423 the_low_target.decr_pc_after_break.
8424
8090aef2
PA
84252015-02-23 Pedro Alves <palves@redhat.com>
8426
8427 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8428 thread was doing a step-over; always adjust the PC if
8429 we stepped over a permanent breakpoint.
8430 (linux_wait_1): If we stepped over breakpoint that was on top of a
8431 permanent breakpoint, manually advance the PC past it.
8432
bc9540e8
PA
84332015-02-23 Pedro Alves <palves@redhat.com>
8434
8435 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8436 modes.
8437 (x86_fill_gregset, x86_store_gregset): Use it when handling
8438 $orig_eax.
8439
2db9a427
PA
84402015-02-20 Pedro Alves <palves@redhat.com>
8441
8442 * thread-db.c: Include "nat/linux-procfs.h".
8443 (thread_db_init): Skip listing new threads if the kernel supports
8444 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8445
afa8d396
PA
84462015-02-20 Pedro Alves <palves@redhat.com>
8447
8448 * linux-low.c (status_pending_p_callback): Use ptid_match.
8449
c9587f88
AT
84502015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8451
8452 PR breakpoints/16812
8453 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8454 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8455 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8456
b05ec7a5
AT
84572015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8458
8459 PR breakpoints/15956
8460 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8461
d33501a5
MM
84622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8463
8464 * linux-low.c (linux_low_btrace_conf): Print size.
8465 * server.c (handle_btrace_conf_general_set): New.
8466 (hanle_general_set): Call handle_btrace_conf_general_set.
8467 (handle_query): Report Qbtrace-conf:bts:size as supported.
8468
f4abbc16
MM
84692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8470
8471 * linux-low.c (linux_low_enable_btrace): Update parameters.
8472 (linux_low_btrace_conf): New.
8473 (linux_target_ops)<to_btrace_conf>: Initialize.
8474 * server.c (current_btrace_conf): New.
8475 (handle_btrace_enable): Rename to ...
8476 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8477 to target_enable_btrace. Update comment. Update users.
8478 (handle_qxfer_btrace_conf): New.
8479 (qxfer_packets): Add btrace-conf entry.
8480 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8481 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8482 (target_ops)<read_btrace_conf>: New.
8483 (target_enable_btrace): Update parameters.
8484 (target_read_btrace_conf): New.
8485
043c3577
MM
84862015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8487
8488 * server.c (handle_btrace_general_set): Remove call to
8489 target_supports_btrace.
8490 (supported_btrace_packets): New.
8491 (handle_query): Call supported_btrace_packets.
8492 * target.h: include btrace-common.h.
8493 (btrace_target_info): Removed.
8494 (supports_btrace, target_supports_btrace): Update parameters.
8495
734b0e4b
MM
84962015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8497
8498 * Makefile.in (SFILES): Add common/btrace-common.c.
8499 (OBS): Add common/btrace-common.o.
8500 (btrace-common.o): Add build rules.
8501 * linux-low: Include btrace-common.h.
8502 (linux_low_read_btrace): Use struct btrace_data. Call
8503 btrace_data_init and btrace_data_fini.
8504
d6c146e9
PA
85052015-02-06 Pedro Alves <palves@redhat.com>
8506
8507 * thread-db.c (find_new_threads_callback): Add debug output.
8508
20ba1ce6
PA
85092015-02-04 Pedro Alves <palves@redhat.com>
8510
8511 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8512 (resume_stopped_resumed_lwps): New function.
8513 (linux_wait_for_event_filtered): Use it.
8514
8cc73a39
SDJ
85152015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8516
8517 * Makefile.in (SFILES): Add linux-personality.c.
8518 (linux-personality.o): New rule.
8519 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8520 list of objects to be built.
8521 * linux-low.c: Include nat/linux-personality.h.
8522 (linux_create_inferior): Remove code to disable address space
8523 randomization (moved to ../nat/linux-personality.c). Create
8524 cleanup to disable address space randomization.
8525
fb23d554
SDJ
85262015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8527
8528 * Makefile.in (posix-strerror.o): New rule.
8529 (mingw-strerror.o): Likewise.
8530 * configure: Regenerated.
8531 * configure.ac: Source file ../common/common.host. Initialize new
8532 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8533
cdf43629
YQ
85342015-01-14 Yao Qi <yao@codesourcery.com>
8535
8536 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8537 (ppc-linux.o): New rule.
8538 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8539 * configure.ac: AC_CHECK_FUNCS(getauxval).
8540 * config.in: Re-generated.
8541 * configure: Re-generated.
8542 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8543 ppc64_64bit_inferior_p
8544
514c5338
YQ
85452015-01-14 Yao Qi <yao@codesourcery.com>
8546
8547 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8548 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8549 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8550 (PT_ORIG_R3, PT_TRAP): Likewise.
8551 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8552 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8553 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8554
3368c1e5
JB
85552015-01-10 Joel Brobecker <brobecker@adacore.com>
8556
8557 * i387-fp.c (i387_cache_to_xsave): In look over
8558 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8559 zmmh_low_space field by use of zmmh_high_space.
8560
582511be
PA
85612015-01-09 Pedro Alves <palves@redhat.com>
8562
8563 * linux-low.c (step_over_bkpt): Move higher up in the file.
8564 (handle_extended_wait): Don't store the stop_pc here.
8565 (get_stop_pc): Adjust comments and rename to ...
8566 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8567 stopped for a software breakpoint or hardware breakpoint.
8568 (thread_still_has_status_pending_p): New function.
8569 (status_pending_p_callback): Use
8570 thread_still_has_status_pending_p. If the event is no longer
8571 interesting, resume the LWP.
8572 (handle_tracepoints): Add assert.
8573 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8574 (wstatus_maybe_breakpoint): New function.
8575 (cancel_breakpoint): Delete function.
8576 (check_stopped_by_watchpoint): New function, factored out from
8577 linux_low_filter_event.
8578 (lp_status_maybe_breakpoint): Delete function.
8579 (linux_low_filter_event): Remove filter_ptid argument.
8580 Leave thread group exits pending here. Store the LWP's stop PC.
8581 Always leave events pending.
8582 (linux_wait_for_event_filtered): Pull all events out of the
8583 kernel, and leave them all pending.
8584 (count_events_callback, select_event_lwp_callback): Consider all
8585 events.
8586 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8587 (select_event_lwp): Only give preference to the stepping LWP in
8588 all-stop mode. Adjust comments.
8589 (ignore_event): New function.
8590 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8591 references to cancel_breakpoints. Adjust to renames. Also give
8592 equal priority to all LWPs that have had events in non-stop mode.
8593 If reporting a software breakpoint event, unadjust the LWP's PC.
8594 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8595 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8596 Adjust.
8597 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8598 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8599 (linux_stopped_by_watchpoint): Adjust.
8600 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8601 * linux-low.h (enum lwp_stop_reason): New.
8602 (struct lwp_info) <stop_pc>: Adjust comment.
8603 <stopped_by_watchpoint>: Delete field.
8604 <stop_reason>: New field.
8605 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8606 * mem-break.c (software_breakpoint_inserted_here)
8607 (hardware_breakpoint_inserted_here): New function.
8608 * mem-break.h (software_breakpoint_inserted_here)
8609 (hardware_breakpoint_inserted_here): Declare.
8610 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
8611 (cancel_breakpoints): Delete.
8612 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
8613 (upload_fast_traceframes): Remove references to
8614 cancel_breakpoints.
8615
a33e3959
PA
86162015-01-09 Pedro Alves <palves@redhat.com>
8617
8618 * thread-db.c (find_new_threads_callback): Ignore thread if the
8619 kernel thread ID is -1.
8620
8784d563
PA
86212015-01-09 Pedro Alves <palves@redhat.com>
8622
8623 * linux-low.c (linux_attach_fail_reason_string): Move to
8624 nat/linux-ptrace.c, and rename.
8625 (linux_attach_lwp): Update comment.
8626 (attach_proc_task_lwp_callback): New function.
8627 (linux_attach): Adjust to rename and use
8628 linux_proc_attach_tgid_threads.
8629 (linux_attach_fail_reason_string): Delete declaration.
8630
76f2b779
JB
86312015-01-01 Joel Brobecker <brobecker@adacore.com>
8632
8633 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
8634 * server.c (gdbserver_version): Likewise.
8635
fafcc06a
SDJ
86362014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
8637
8638 * remote-utils.c: Include ctype.h.
8639 (input_interrupt): Explicitly handle the case when the char
8640 received is the NUL byte. Improve the printing of non-ASCII
8641 characters.
8642
beed38b8
JB
86432014-12-16 Joel Brobecker <brobecker@adacore.com>
8644
8645 * linux-low.c (linux_low_filter_event): Update call to
8646 linux_enable_event_reporting following the addition of
8647 a new parameter to that function.
8648
bf330350
CU
86492014-12-16 Catalin Udma <catalin.udma@freescale.com>
8650
8651 PR server/17457
8652 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8653 (AARCH64_FPCR_REGNO): Likewise.
8654 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8655 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8656 (aarch64_store_fpregset): Likewise.
8657
5227d625
JB
86582014-12-15 Joel Brobecker <brobecker@adacore.com>
8659
8660 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8661 Remove FIXME comment about assumption about N.
8662
f93b65a0
JB
86632014-12-13 Joel Brobecker <brobecker@adacore.com>
8664
8665 * configure.ac: If large-file support is disabled in GDBserver,
8666 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8667 * configure: Regenerate.
8668
e5a9158d
AA
86692014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8670
8671 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8672 warning upon ENODATA from ptrace.
8673 * linux-s390-low.c (s390_store_tdb): New.
8674 (s390_regsets): Add regset for NT_S390_TDB.
8675
feea5f36
AA
86762014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8677
8678 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8679 without a fill_function.
8680 * linux-s390-low.c (s390_fill_last_break): Remove.
8681 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8682 (s390_arch_setup): Use regset's size instead of fill_function for
8683 loop end condition.
8684
098dbe61
AA
86852014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8686
8687 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8688 the regset's store function when ptrace returned an error.
8689 * regcache.c (get_thread_regcache): Invalidate register cache
8690 before fetching inferior's registers.
8691
28eef672
AA
86922014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8693
8694 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8695 while-loop as for-loop.
8696 (regsets_store_inferior_registers): Likewise.
8697
bdca27a2
YQ
86982014-11-28 Yao Qi <yao@codesourcery.com>
8699
8700 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8701 * config.in, configure: Re-generate.
8702 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8703 is defined.
8704
9c232dda
YQ
87052014-11-21 Yao Qi <yao@codesourcery.com>
8706
8707 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8708 (AC_CHECK_HEADERS): Remove malloc.h.
8709 * configure: Re-generated.
8710 * config.in: Re-generated.
8711 * server.h: Don't include alloca.h and malloc.h.
8712 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8713 Don't include malloc.h.
8714
43968415
JB
87152014-11-17 Joel Brobecker <brobecker@adacore.com>
8716
8717 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8718 corresponding ERRNO check in same block.
8719
40e91bc7
PA
87202014-11-12 Pedro Alves <palves@redhat.com>
8721
8722 * server.c (cont_thread): Update comment.
8723 (start_inferior, attach_inferior): No longer clear cont_thread.
8724 (handle_v_cont): No longer set cont_thread.
8725 (captured_main): Clear cont_thread each time a GDB connects.
8726
c2c118cf
PA
87272014-11-12 Pedro Alves <palves@redhat.com>
8728
8729 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8730 thread, and don't resume all threads if the Hc thread has exited.
8731
78708b7c
PA
87322014-11-12 Pedro Alves <palves@redhat.com>
8733
8734 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8735 the process group instead of to a specific LWP.
8736
a2abc7de
PA
87372014-10-15 Pedro Alves <palves@redhat.com>
8738
8739 PR server/17487
8740 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8741 parameter.
8742 (arm_set_thread_context): Delete.
8743 (the_low_target): Adjust.
8744 * win32-i386-low.c (debug_registers_changed)
8745 (debug_registers_used): Delete.
8746 (update_debug_registers_callback): New function.
8747 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8748 needing to update their debug registers.
8749 (win32_get_current_dr): New function.
8750 (x86_dr_low_get_addr, x86_dr_low_get_control)
8751 (x86_dr_low_get_status): Fetch the debug register from the thread
8752 record's context.
8753 (i386_initial_stuff): Adjust.
8754 (i386_get_thread_context): Remove current_event parameter. Don't
8755 clear debug_registers_changed nor copy DR values to
8756 debug_reg_state.
8757 (i386_set_thread_context): Delete.
8758 (i386_prepare_to_resume): New function.
8759 (i386_thread_added): Mark the thread as needing to update irs
8760 debug registers.
8761 (the_low_target): Remove i386_set_thread_context and install
8762 i386_prepare_to_resume.
8763 * win32-low.c (win32_get_thread_context): Adjust.
8764 (win32_set_thread_context): Use SetThreadContext
8765 directly.
8766 (win32_prepare_to_resume): New function.
8767 (win32_require_context): New function, factored out from ...
8768 (thread_rec): ... this.
8769 (continue_one_thread): Call win32_prepare_to_resume on each thread
8770 we're about to continue.
8771 (win32_resume): Call win32_prepare_to_resume on the event thread.
8772 * win32-low.h (struct win32_thread_info)
8773 <debug_registers_changed>: New field.
8774 (struct win32_target_ops): Change prototype of set_thread_context,
8775 delete set_thread_context and add prepare_to_resume.
8776 (win32_require_context): New declaration.
8777
a442d071
GB
87782014-10-08 Gary Benson <gbenson@redhat.com>
8779
8780 * server.h: Do not include common-exceptions.h.
8781
6f1947e8
GB
87822014-10-08 Gary Benson <gbenson@redhat.com>
8783
8784 * server.h: Do not include cleanups.h.
8785
63b434a4
JH
87862014-09-30 James Hogan <james.hogan@imgtec.com>
8787
8788 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8789 mips64-dsp-linux.c.
8790
c4d9ceb6
YQ
87912014-09-23 Yao Qi <yao@codesourcery.com>
8792
8793 * linux-low.c (lp_status_maybe_breakpoint): New function.
8794 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8795 (count_events_callback): Likewise.
8796 (select_event_lwp_callback): Likewise.
8797 (cancel_breakpoints_callback): Likewise.
8798
89a5711c
DB
87992014-09-19 Don Breazeal <donb@codesourcery.com>
8800
8801 * linux-low.c (handle_extended_wait): Call
8802 linux_ptrace_get_extended_event.
8803 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8804 linux_is_extended_waitstatus.
8805
bffc0964
JB
88062014-09-16 Joel Brobecker <brobecker@adacore.com>
8807
8808 * Makefile.in (CPPFLAGS): Define.
8809 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8810 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8811
0bfdf32f
GB
88122014-09-16 Gary Benson <gbenson@redhat.com>
8813
8814 * inferiors.h (current_inferior): Renamed as...
8815 (current_thread): New variable. All uses updated.
8816 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8817 (maybe_move_out_of_jump_pad): Likewise.
8818 (cancel_breakpoint): Likewise.
8819 (linux_low_filter_event): Likewise.
8820 (wait_for_sigstop): Likewise.
8821 (linux_resume_one_lwp): Likewise.
8822 (need_step_over_p): Likewise.
8823 (start_step_over): Likewise.
8824 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8825 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8826 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8827 and save_inferior as saved_thread.
8828 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8829 saved_thread.
8830 (regcache_invalidate_thread): Likewise.
8831 * remote-utils.c (prepare_resume_reply): Likewise.
8832 * thread-db.c (thread_db_get_tls_address): Likewise.
8833 (disable_thread_event_reporting): Likewise.
8834 (remove_thread_event_breakpoints): Likewise.
8835 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8836 as saved_thread.
8837 * target.h (set_desired_inferior): Renamed as...
8838 (set_desired_thread): New declaration. All uses updated.
8839 * server.c (myresume): Updated comment to reference thread instead
8840 of inferior.
8841 (handle_serial_event): Likewise.
8842 (handle_target_event): Likewise.
8843
361c8ade
GB
88442014-09-12 Tom Tromey <tromey@redhat.com>
8845 Gary Benson <gbenson@redhat.com>
8846
8847 * regcache.h: Include common-regcache.h.
8848 (regcache_read_pc): Don't declare.
8849 * regcache.c (get_thread_regcache_for_ptid): New function.
8850
bd9269f7
GB
88512014-09-11 Tom Tromey <tromey@redhat.com>
8852 Gary Benson <gbenson@redhat.com>
8853
8854 * symbol.c: New file.
8855 * Makefile.in (SFILES): Add symbol.c.
8856 (OBS): Add symbol.o.
8857
f8c1d06b
GB
88582014-09-11 Gary Benson <gbenson@redhat.com>
8859
8860 * target.c (target_stop_ptid, target_continue_ptid): New
8861 functions.
8862
721ec300
GB
88632014-09-11 Tom Tromey <tromey@redhat.com>
8864 Gary Benson <gbenson@redhat.com>
8865
8866 * target.h: Include target/target.h.
8867 * target.c (target_read_memory, target_read_uint32)
8868 (target_write_memory): New functions.
8869
c5e92cca
GB
88702014-09-11 Gary Benson <gbenson@redhat.com>
8871
8872 * server.h (debug_hw_points): Don't declare.
8873 * server.c (debug_hw_points): Don't define. Replace all uses
8874 with show_debug_regs.
8875 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8876 all uses with show_debug_regs.
8877
2e4bb98a
EBM
88782014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8879
8880 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8881 endianness into account.
8882 (ppc_supply_ptrace_register): Likewise.
8883
ac740bc7
JH
88842014-09-03 James Hogan <james.hogan@imgtec.com>
8885
8886 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8887 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8888
97ea6506
GB
88892014-09-03 Gary Benson <gbenson@redhat.com>
8890
8891 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8892 ALL_DEBUG_ADDRESS_REGISTERS.
8893
df7e5265
GB
88942014-09-02 Gary Benson <gbenson@redhat.com>
8895
8896 * i386-low.h: Renamed as...
8897 * x86-low.h: New file. All type, function and variable name
8898 prefixes changed from "i386_" to "x86_". All references updated.
8899 * i386-low.c: Renamed as...
8900 * x86-low.c: New file. All type, function and variable name
8901 prefixes changed from "i386_" to "x86_". All references updated.
8902
ed859da7
GB
89032014-09-02 Gary Benson <gbenson@redhat.com>
8904
8905 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8906 (x86_linux_new_thread): Likewise.
8907
860789c7
GB
89082014-08-29 Gary Benson <gbenson@redhat.com>
8909
8910 * server.h (setjmp.h): Do not include.
8911 (toplevel): Do not declare.
8912 (common-exceptions.h): Include.
8913 (cleanups.h): Likewise.
8914 * server.c (toplevel): Do not define.
8915 (exit_code): New static global.
8916 (detach_or_kill_for_exit_cleanup): New function.
8917 (main): New function. Original main renamed to...
8918 (captured_main): New function.
8919 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8920
ff55e1b5
GB
89212014-08-29 Gary Benson <gbenson@redhat.com>
8922
8923 * Makefile.in (SFILES): Add common/common-exceptions.c.
8924 (OBS): Add common-exceptions.o.
8925 (common-exceptions.o): New rule.
8926 * utils.c (prepare_to_throw_exception): New function.
8927
e9bcb658
GB
89282014-08-29 Gary Benson <gbenson@redhat.com>
8929
8930 * config.in: Regenerate.
8931 * configure: Likewise.
8932
e3180625
GB
89332014-08-29 Gary Benson <gbenson@redhat.com>
8934
8935 * Makefile.in (SFILES): Add common/cleanups.c.
8936 (OBS): cleanups.o.
8937 (cleanups.o): New rule.
8938
e3d6ba5d
GB
89392014-08-29 Gary Benson <gbenson@redhat.com>
8940
8941 * utils.c (internal_vwarning): New function.
8942
7096e886
GB
89432014-08-28 Gary Benson <gbenson@redhat.com>
8944
8945 * utils.h (fatal): Remove declaration.
8946 * utils.c (fatal): Remove function.
8947
14ce3192
GB
89482014-08-28 Gary Benson <gbenson@redhat.com>
8949
8950 * tracepoint.c (gdb_agent_init): Replace fatal with
8951 perror_with_name.
8952 (initialize_tracepoint): Likewise.
8953
50278d59
GB
89542014-08-28 Gary Benson <gbenson@redhat.com>
8955
8956 * remote-utils.c (remote_prepare): Replace fatal with error.
8957
aa96c426
GB
89582014-08-28 Gary Benson <gbenson@redhat.com>
8959
8960 * linux-low.c (linux_async): Replace fatal with warning.
8961 Tidy up and return.
8962 (linux_start_non_stop): Return -1 if linux_async failed.
8963
f7160e97
GB
89642014-08-28 Gary Benson <gbenson@redhat.com>
8965
8966 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8967 gdb_assert.
8968 (i386_dr_low_get_addr): Remove vague comment.
8969 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8970 gdb_assert.
8971
38e08fca
GB
89722014-08-28 Gary Benson <gbenson@redhat.com>
8973
8974 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8975 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8976 internal_error.
8977 (linux_resume_one_lwp): Likewise.
8978 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8979 gdb_assert.
8980 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8981 with internal_error.
8982 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8983 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8984 (find_register_by_name): Replace fatal with internal_error.
8985 (find_regno): Likewise.
8986 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8987 * thread-db.c (thread_db_create_event): Likewise.
8988 (thread_db_load_search): Likewise.
8989 (try_thread_db_load_1): Likewise.
8990 * tracepoint.c (get_jump_space_head): Replace fatal with
8991 internal_error.
8992 (claim_trampoline_space): Likewise.
8993 (have_fast_tracepoint_trampoline_buffer): Likewise.
8994 (cmd_qtstart): Likewise.
8995 (stop_tracing): Likewise.
8996 (fast_tracepoint_collecting): Likewise.
8997 (target_malloc): Likewise.
8998 (download_tracepoint): Likewise.
8999 (download_trace_state_variables): Replace check with gdb_assert.
9000 (upload_fast_traceframes): Replace fatal with internal_error.
9001
34abf635
GB
90022014-08-19 Tom Tromey <tromey@redhat.com>
9003 Gary Benson <gbenson@redhat.com>
9004
9005 * Makefile.in (SFILES): Add common/common-debug.c.
9006 (OBS): Add common-debug.o.
9007 (common-debug.o): New rule.
9008 * debug.h (debug_printf): Don't declare.
9009 * debug.c (debug_printf): Renamed and rewritten as...
9010 (debug_vprintf): New function.
9011
f6e94d78
GB
90122014-08-19 Gary Benson <gbenson@redhat.com>
9013
9014 * utils.h: Do not include print-utils.h.
9015
9239eeab
GB
90162014-08-19 Tom Tromey <tromey@redhat.com>
9017 Gary Benson <gbenson@redhat.com>
9018
9019 * server.h: Add static assertion.
9020 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9021
ef87c8bb
GB
90222014-08-19 Tom Tromey <tromey@redhat.com>
9023 Gary Benson <gbenson@redhat.com>
9024
9025 * Makefile.in (SFILES): Add common/errors.c.
9026 (OBS): Add errors.o.
9027 (IPA_OBS): Add errors-ipa.o.
9028 (errors.o): New rule.
9029 (errors-ipa.o): Likewise.
9030 * utils.h (perror_with_name, error, warning): Don't declare.
9031 * utils.c (warning): Renamed and rewritten as...
9032 (vwarning): New function.
9033 (error): Renamed and rewritten as...
9034 (verror): New function.
9035 (internal_error): Renamed and rewritten as...
9036 (internal_verror): New function.
9037
bb974a24
GB
90382014-08-07 Gary Benson <gbenson@redhat.com>
9039
9040 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9041 * configure: Regenerate.
9042 * config.in: Likewise.
9043 * server.h: Do not include errno.h.
9044 * event-loop.c: Likewise.
9045 * hostio-errno.c: Likewise.
9046 * linux-low.c: Likewise.
9047 * remote-utils.c: Likewise.
9048 * spu-low.c: Likewise.
9049 * utils.c: Likewise.
9050 * gdbreplay.c: Unconditionally include errno.h.
9051
6d3d12eb
GB
90522014-08-07 Gary Benson <gbenson@redhat.com>
9053
9054 * server.h: Do not include string.h.
9055 * event-loop.c: Likewise.
9056 * linux-low.c: Likewise.
9057 * regcache.c: Likewise.
9058 * remote-utils.c: Likewise.
9059 * spu-low.c: Likewise.
9060 * utils.c: Likewise.
9061
dccbb609
GB
90622014-08-07 Gary Benson <gbenson@redhat.com>
9063
9064 * server.h: Do not include gdb_assert.h.
9065
e76df0d0
GB
90662014-08-07 Gary Benson <gbenson@redhat.com>
9067
9068 * server.h: Do not include common-utils.h.
9069
4cb9c816
GB
90702014-08-07 Gary Benson <gbenson@redhat.com>
9071
9072 * server.h: Do not include ptid.h.
9073 * notif.h: Likewise.
9074
3995eeee
GB
90752014-08-07 Gary Benson <gbenson@redhat.com>
9076
9077 * server.h: Do not include gdb_locale.h.
9078
cb9f1a9b
GB
90792014-08-07 Gary Benson <gbenson@redhat.com>
9080
9081 * server.h: Do not include gdb/signals.h.
9082 * win32-low.c: Likewise.
9083
a5fceff8
GB
90842014-08-07 Gary Benson <gbenson@redhat.com>
9085
9086 * server.h: Do not include pathmax.h.
9087
b9391142
GB
90882014-08-07 Gary Benson <gbenson@redhat.com>
9089
9090 * server.h: Do not include libiberty.h.
9091 * linux-bfin-low.c: Likewise.
9092
0e443c87
GB
90932014-08-07 Gary Benson <gbenson@redhat.com>
9094
9095 * server.h: Do not include ansidecl.h.
9096
8ebb3f56
GB
90972014-08-07 Gary Benson <gbenson@redhat.com>
9098
9099 * linux-x86-low.c: Do not include stddef.h.
9100 * lynx-ppc-low.c: Likewise.
9101 * tracepoint.c: Likewise.
9102
8980bdf6
GB
91032014-08-07 Gary Benson <gbenson@redhat.com>
9104
9105 * server.h: Do not include stdarg.h.
9106 * nto-low.c: Likewise.
9107
d7096f71
GB
91082014-08-07 Gary Benson <gbenson@redhat.com>
9109
9110 * server.h: Do not include stdlib.h.
9111 * inferiors.c: Likewise.
9112 * linux-low.c: Likewise.
9113 * regcache.c: Likewise.
9114 * spu-low.c: Likewise.
9115 * tracepoint.c: Likewise.
9116 * utils.c: Likewise.
9117
d02f550d
GB
91182014-08-07 Gary Benson <gbenson@redhat.com>
9119
9120 * server.h: Do not include stdio.h.
9121 * linux-low.c: Likewise.
9122 * remote-utils.c: Likewise.
9123 * spu-low.c: Likewise.
9124 * utils.c: Likewise.
9125 * wincecompat.c: Likewise.
9126
87f6c4e3
GB
91272014-08-06 Gary Benson <gbenson@redhat.com>
9128
9129 * regcache.c (init_register_cache): Move conditionals inside if.
9130
7089dca4
GB
91312014-08-06 Gary Benson <gbenson@redhat.com>
9132
9133 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9134
462f517e
GB
91352014-07-31 Gary Benson <gbenson@redhat.com>
9136
9137 * ax.h: Do not include server.h.
9138 * gdbthread.h: Likewise.
9139 * lynx-low.h: Likewise.
9140 * notif.h: Likewise.
9141
976411d6
GB
91422014-07-30 Gary Benson <gbenson@redhat.com>
9143
9144 * server.h: Include common-defs.h.
9145 Do not include config.h or build-gnulib-gdbserver/config.h.
9146
d41f6d8e
GB
91472014-07-30 Gary Benson <gbenson@redhat.com>
9148
9149 * hostio-errno.c: Move server.h to top of includes list.
9150 * inferiors.c: Likewise.
9151 * linux-x86-low.c: Likewise.
9152 * notif.c: Include server.h.
9153
314c6a35
TT
91542014-07-24 Tom Tromey <tromey@redhat.com>
9155 Gary Benson <gbenson@redhat.com>
9156
9157 * server.h (CORE_ADDR): Now unsigned.
9158
69ff6be5
PA
91592014-07-16 Pedro Alves <palves@redhat.com>
9160
9161 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9162
ce9e3fe7
PA
91632014-07-15 Pedro Alves <palves@redhat.com>
9164
9165 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9166 copy.
9167
e76126e8
PA
91682014-07-11 Pedro Alves <palves@redhat.com>
9169
9170 * linux-low.c (kill_wait_lwp): New function, based on
9171 kill_one_lwp_callback, but use my_waitpid directly.
9172 (kill_one_lwp_callback, linux_kill): Use it.
9173
8e9db26e
PA
91742014-06-23 Pedro Alves <palves@redhat.com>
9175
9176 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9177 before setting DR0..DR3.
9178
698b3e08
GB
91792014-06-20 Gary Benson <gbenson@redhat.com>
9180
9181 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9182 * configure: Regenerated.
9183 * config.in: Likewise.
9184
125f8a3d
GB
91852014-06-20 Gary Benson <gbenson@redhat.com>
9186
9187 * Makefile.in (SFILES): Update locations for files moved
9188 from common to nat.
9189 (object file files): Reordered.
9190
42995dbd
GB
91912014-06-20 Gary Benson <gbenson@redhat.com>
9192
9193 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9194 (i386_dr_low_set_addr): Likewise.
9195 (i386_dr_low_get_addr): Likewise.
9196 (i386_dr_low_can_set_control): Likewise.
9197 (i386_dr_low_set_control): Likewise.
9198 (i386_dr_low_get_control): Likewise.
9199 (i386_dr_low_get_status): Likewise.
9200 (i386_get_debug_register_length): Likewise.
9201 * linux-x86-low.c (i386_dr_low_set_addr):
9202 Changed signature. Made static.
9203 (i386_dr_low_get_addr): Likewise.
9204 (i386_dr_low_set_control): Likewise.
9205 (i386_dr_low_get_control): Likewise.
9206 (i386_dr_low_get_status): Likewise.
9207 (i386_dr_low): New global variable.
9208 * win32-i386-low.c (i386_dr_low_set_addr):
9209 Changed signature. Made static.
9210 (i386_dr_low_get_addr): Likewise.
9211 (i386_dr_low_set_control): Likewise.
9212 (i386_dr_low_get_control): Likewise.
9213 (i386_dr_low_get_status): Likewise.
9214 (i386_dr_low): New global variable.
9215
e1d2394b
MS
92162014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9217
9218 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9219 * Makefile.in (AR, AR_FLAGS): Define.
9220 * configure: Regenerate.
9221
3a8ee006
GB
92222014-06-19 Gary Benson <gbenson@redhat.com>
9223
9224 * Makefile.in (i386-dregs.o): New rule.
9225 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9226 * i386-low.c (target.h): Remove include.
9227 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9228 (DR_CONTROL_SHIFT): Likewise.
9229 (DR_CONTROL_SIZE): Likewise.
9230 (DR_RW_EXECUTE): Likewise.
9231 (DR_RW_WRITE): Likewise.
9232 (DR_RW_READ): Likewise.
9233 (DR_RW_IORW): Likewise.
9234 (DR_LEN_1): Likewise.
9235 (DR_LEN_2): Likewise.
9236 (DR_LEN_4): Likewise.
9237 (DR_LEN_8): Likewise.
9238 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9239 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9240 (DR_ENABLE_SIZE): Likewise.
9241 (DR_LOCAL_SLOWDOWN): Likewise.
9242 (DR_GLOBAL_SLOWDOWN): Likewise.
9243 (DR_CONTROL_RESERVED): Likewise.
9244 (I386_DR_CONTROL_MASK): Likewise.
9245 (I386_DR_VACANT): Likewise.
9246 (I386_DR_LOCAL_ENABLE): Likewise.
9247 (I386_DR_GLOBAL_ENABLE): Likewise.
9248 (I386_DR_DISABLE): Likewise.
9249 (I386_DR_SET_RW_LEN): Likewise.
9250 (I386_DR_GET_RW_LEN): Likewise.
9251 (I386_DR_WATCH_HIT): Likewise.
9252 (i386_wp_op_t): Likewise.
9253 (i386_show_dr): Likewise.
9254 (i386_length_and_rw_bits): Likewise.
9255 (i386_insert_aligned_watchpoint): Likewise.
9256 (i386_remove_aligned_watchpoint): Likewise.
9257 (i386_handle_nonaligned_watchpoint): Likewise.
9258 i386_update_inferior_debug_regs(): Likewise.
9259 (i386_dr_insert_watchpoint): Likewise.
9260 (i386_dr_remove_watchpoint): Likewise.
9261 (i386_dr_region_ok_for_watchpoint): Likewise.
9262 (i386_dr_stopped_data_address): Likewise.
9263 (i386_dr_stopped_by_watchpoint): Likewise.
9264
8f26655c
GB
92652014-06-19 Gary Benson <gbenson@redhat.com>
9266
9267 * i386-low.c (i386_dr_show): Renamed to
9268 i386_show_dr and made static. All uses updated.
9269 (i386_dr_length_and_rw_bits): Renamed to
9270 i386_length_and_rw_bits and made static.
9271 All uses updated.
9272 (i386_dr_insert_aligned_watchpoint): Renamed to
9273 i386_insert_aligned_watchpoint and made static.
9274 All uses updated.
9275 (i386_dr_remove_aligned_watchpoint): Renamed to
9276 i386_remove_aligned_watchpoint and made static.
9277 All uses updated.
9278 (i386_dr_update_inferior_debug_regs): Renamed to
9279 i386_update_inferior_debug_regs and made static.
9280 All uses updated.
9281
b9228891
GB
92822014-06-18 Gary Benson <gbenson@redhat.com>
9283
5171def3
GB
9284 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9285 (i386_dr_low_can_set_control): Likewise.
9286 (i386_get_debug_register_length): Likewise.
9287 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9288 (i386_dr_low_can_set_control): Likewise.
9289 (i386_get_debug_register_length): Likewise.
9290
92912014-06-17 Gary Benson <gbenson@redhat.com>
9292
b9228891
GB
9293 * i386-low.h (i386-dregs.h): New include.
9294 (DR_FIRSTADDR): Now in i386-dregs.h.
9295 (DR_LASTADDR): Likewise.
9296 (DR_NADDR): Likewise.
9297 (DR_STATUS): Likewise.
9298 (DR_CONTROL): Likewise.
9299 (i386_debug_reg_state): Likewise.
9300 (i386_dr_insert_watchpoint): Likewise.
9301 (i386_dr_remove_watchpoint): Likewise.
9302 (i386_dr_region_ok_for_watchpoint): Likewise.
9303 (i386_dr_stopped_data_address): Likewise.
9304 (i386_dr_stopped_by_watchpoint): Likewise.
9305 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9306
4be83cc2
GB
93072014-06-18 Gary Benson <gbenson@redhat.com>
9308
9309 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9310 i386_dr_insert_watchpoint.
9311 (i386_low_remove_watchpoint): Renamed to
9312 i386_dr_remove_watchpoint.
9313 (i386_low_region_ok_for_watchpoint): Renamed to
9314 i386_dr_region_ok_for_watchpoint.
9315 (i386_low_stopped_data_address): Renamed to
9316 i386_dr_stopped_data_address.
9317 (i386_low_stopped_by_watchpoint): Renamed to
9318 i386_dr_stopped_by_watchpoint.
9319 * i386-low.c (i386_show_dr): Renamed to
9320 i386_dr_show and made nonstatic. All uses updated.
9321 (i386_length_and_rw_bits): Renamed to
9322 i386_dr_length_and_rw_bits and made nonstatic.
9323 All uses updated.
9324 (i386_insert_aligned_watchpoint): Renamed to
9325 i386_dr_insert_aligned_watchpoint and made nonstatic.
9326 All uses updated.
9327 (i386_remove_aligned_watchpoint): Renamed to
9328 i386_dr_remove_aligned_watchpoint and made nonstatic.
9329 All uses updated.
9330 (i386_update_inferior_debug_regs): Renamed to
9331 i386_dr_update_inferior_debug_regs and made nonstatic.
9332 All uses updated.
9333 (i386_low_insert_watchpoint): Renamed to
9334 i386_dr_insert_watchpoint. All uses updated.
9335 (i386_low_remove_watchpoint): Renamed to
9336 i386_dr_remove_watchpoint. All uses updated.
9337 (i386_low_region_ok_for_watchpoint): Renamed to
9338 i386_dr_region_ok_for_watchpoint. All uses updated.
9339 (i386_low_stopped_data_address): Renamed to
9340 i386_dr_stopped_data_address. All uses updated.
9341 (i386_low_stopped_by_watchpoint): Renamed to
9342 i386_dr_stopped_by_watchpoint. All uses updated.
9343
131aa0d4
GB
93442014-06-18 Gary Benson <gbenson@redhat.com>
9345
9346 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9347 (i386_dr_low_can_set_control): Likewise.
9348 (i386_insert_aligned_watchpoint): New check.
9349
d9305f7f
GB
93502014-06-18 Gary Benson <gbenson@redhat.com>
9351
9352 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9353 Renamed to state.
9354
e927c9fc
GB
93552014-06-18 Gary Benson <gbenson@redhat.com>
9356
9357 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9358 instead of fatal and error.
9359 (i386_handle_nonaligned_watchpoint): Likewise.
9360
1b6d4134
GB
93612014-06-18 Gary Benson <gbenson@redhat.com>
9362
9363 * i386-low.c (i386_get_debug_register_length): New macro.
9364 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9365 (i386_show_dr): Use debug_printf instead of fprintf. Use
9366 phex to format values.
9367
6e62758f
GB
93682014-06-18 Gary Benson <gbenson@redhat.com>
9369
9370 * i386-low.h: Comment changes.
9371 * i386-low.c: Likewise.
9372
fc6e2f03
GB
93732014-06-18 Gary Benson <gbenson@redhat.com>
9374
9375 * i386-low.c: Whitespace changes.
9376
f9d1eeed
TT
93772014-06-12 Tom Tromey <tromey@redhat.com>
9378
9379 * utils.c (freeargv): Remove.
9380
0b04e523
TT
93812014-06-12 Tom Tromey <tromey@redhat.com>
9382
9383 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9384 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9385 (parse_debug_format_options): Likewise.
9386 (gdbserver_usage): Likewise.
9387 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9388 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9389 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9390 against libiberty.
9391 ($(LIBGNU)): Depend on libiberty.
9392 (all-lib): Recurse into all subdirs.
9393 (install-only): Invoke "install" target in subdirs.
9394 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9395 targets.
9396 * configure: Rebuild.
9397 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9398 for vasprintf, vsnprintf, or gettimeofday.
9399 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9400 srv_tgtobj.
9401
270c9937
JB
94022014-06-05 Joel Brobecker <brobecker@adacore.com>
9403
9404 * development.sh: Delete.
9405 * Makefile.in (config.status): Adjust dependency on development.sh.
9406 * configure.ac: Adjust development.sh source call.
9407 * configure: Regenerate.
9408
0a261ed8
PA
94092014-06-02 Pedro Alves <palves@redhat.com>
9410
9411 * ax.c (gdb_free_agent_expr): New function.
9412 * ax.h (gdb_free_agent_expr): New declaration.
9413 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9414 list.
9415 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9416 static.
9417 (clear_breakpoint_conditions_and_commands): New function.
9418 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9419 (clear_breakpoint_conditions_and_commands): New declaration.
9420
e9dae05e
RR
94212014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9422
9423 * linux-aarch64-low.c (asm/ptrace.h): Include.
9424
5876f503
JK
94252014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9426
9427 Fix TLS access for -static -pthread.
9428 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9429 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9430 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9431
802e8e6d
PA
94322014-05-20 Pedro Alves <palves@redhat.com>
9433
9434 * linux-aarch64-low.c (aarch64_insert_point)
9435 (aarch64_remove_point): No longer check whether the type is
9436 supported here. Adjust to new interface.
9437 (the_low_target): Install aarch64_supports_z_point_type as
9438 supports_z_point_type method.
9439 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9440 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9441 instead of a Z packet char. Adjust.
9442 (arm_supports_z_point_type): New function.
9443 (arm_insert_point, arm_remove_point): Adjust to new interface.
9444 (the_low_target): Install arm_supports_z_point_type.
9445 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9446 (cris_insert_point, cris_remove_point): Adjust to new interface.
9447 Don't check whether the type is supported here.
9448 (the_low_target): Install cris_supports_z_point_type.
9449 * linux-low.c (linux_supports_z_point_type): New function.
9450 (linux_insert_point, linux_remove_point): Adjust to new interface.
9451 * linux-low.h (struct linux_target_ops) <insert_point,
9452 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9453 raw_breakpoint pointer parameter.
9454 <supports_z_point_type>: New method.
9455 * linux-mips-low.c (mips_supports_z_point_type): New function.
9456 (mips_insert_point, mips_remove_point): Adjust to new interface.
9457 Use mips_supports_z_point_type.
9458 (the_low_target): Install mips_supports_z_point_type.
9459 * linux-ppc-low.c (the_low_target): Install NULL as
9460 supports_z_point_type method.
9461 * linux-s390-low.c (the_low_target): Install NULL as
9462 supports_z_point_type method.
9463 * linux-sparc-low.c (the_low_target): Install NULL as
9464 supports_z_point_type method.
9465 * linux-x86-low.c (x86_supports_z_point_type): New function.
9466 (x86_insert_point): Adjust to new insert_point interface. Use
9467 insert_memory_breakpoint. Adjust to new
9468 i386_low_insert_watchpoint interface.
9469 (x86_remove_point): Adjust to remove_point interface. Use
9470 remove_memory_breakpoint. Adjust to new
9471 i386_low_remove_watchpoint interface.
9472 (the_low_target): Install x86_supports_z_point_type.
9473 * lynx-low.c (lynx_target_ops): Install NULL as
9474 supports_z_point_type callback.
9475 * nto-low.c (nto_supports_z_point_type): New.
9476 (nto_insert_point, nto_remove_point): Adjust to new interface.
9477 (nto_target_ops): Install nto_supports_z_point_type.
9478 * mem-break.c: Adjust intro comment.
9479 (struct raw_breakpoint) <raw_type, size>: New fields.
9480 <inserted>: Update comment.
9481 <shlib_disabled>: Delete field.
9482 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9483 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9484 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9485 (raw_bkpt_type_to_target_hw_bp_type): New function.
9486 (find_enabled_raw_code_breakpoint_at): New function.
9487 (find_raw_breakpoint_at): New type and size parameters. Use them.
9488 (insert_memory_breakpoint): New function, based off
9489 set_raw_breakpoint_at.
9490 (remove_memory_breakpoint): New function.
9491 (set_raw_breakpoint_at): Reimplement.
9492 (set_breakpoint): New, based on set_breakpoint_at.
9493 (set_breakpoint_at): Reimplement.
9494 (delete_raw_breakpoint): Go through the_target->remove_point
9495 instead of assuming memory breakpoints.
9496 (find_gdb_breakpoint_at): Delete.
9497 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9498 (find_gdb_breakpoint): New function.
9499 (set_gdb_breakpoint_at): Delete.
9500 (z_type_supported): New function.
9501 (set_gdb_breakpoint_1): New function, loosely based off
9502 set_gdb_breakpoint_at.
9503 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9504 (delete_gdb_breakpoint_at): Delete.
9505 (delete_gdb_breakpoint_1): New function, loosely based off
9506 delete_gdb_breakpoint_at.
9507 (delete_gdb_breakpoint): New function.
9508 (clear_gdb_breakpoint_conditions): Rename to ...
9509 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9510 breakpoint.
9511 (add_condition_to_breakpoint): Make static.
9512 (add_breakpoint_condition): Take a struct breakpoint pointer
9513 instead of an address. Adjust.
9514 (gdb_condition_true_at_breakpoint): Rename to ...
9515 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9516 z_type parameter.
9517 (gdb_condition_true_at_breakpoint): Reimplement.
9518 (add_breakpoint_commands): Take a struct breakpoint pointer
9519 instead of an address. Adjust.
9520 (gdb_no_commands_at_breakpoint): Rename to ...
9521 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9522 parameter. Return true if no breakpoint was found. Change debug
9523 output.
9524 (gdb_no_commands_at_breakpoint): Reimplement.
9525 (run_breakpoint_commands): Rename to ...
9526 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9527 and change return type to boolean.
9528 (run_breakpoint_commands): New function.
9529 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9530 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9531 breakpoint. Go through the_target->remove_point instead of
9532 assuming memory breakpoint.
9533 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9534 software and hardware breakpoints.
9535 (reinsert_raw_breakpoint): Go through the_target->insert_point
9536 instead of assuming memory breakpoint.
9537 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9538 software and hardware breakpoints.
9539 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9540 Check both software and hardware breakpoints.
9541 (validate_inserted_breakpoint): Assert the breakpoint is a
9542 software breakpoint. Set the inserted flag to -1 instead of
9543 setting shlib_disabled.
9544 (delete_disabled_breakpoints): Adjust.
9545 (validate_breakpoints): Only validate software breakpoints.
9546 Adjust to inserted flag change.
9547 (check_mem_read, check_mem_write): Skip breakpoint types other
9548 than software breakpoints. Adjust to inserted flag change.
9549 * mem-break.h (enum raw_bkpt_type): New enum.
9550 (raw_breakpoint, struct process_info): Forward declare.
9551 (Z_packet_to_target_hw_bp_type): Delete declaration.
9552 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9553 (set_gdb_breakpoint, delete_gdb_breakpoint)
9554 (clear_breakpoint_conditions): New declarations.
9555 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9556 (breakpoint_inserted_here): Update comment.
9557 (add_breakpoint_condition, add_breakpoint_commands): Replace
9558 address parameter with a breakpoint pointer parameter.
9559 (gdb_breakpoint_here): Update comment.
9560 (delete_gdb_breakpoint_at): Delete.
9561 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9562 * server.c (process_point_options): Take a struct breakpoint
9563 pointer instead of an address. Adjust.
9564 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9565 delete_gdb_breakpoint.
9566 * spu-low.c (spu_target_ops): Install NULL as
9567 supports_z_point_type method.
9568 * target.h: Include mem-break.h.
9569 (struct target_ops) <prepare_to_access_memory>: Update comment.
9570 <supports_z_point_type>: New field.
9571 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9572 instead of a char. Also take a raw breakpoint pointer.
9573 * win32-arm-low.c (the_low_target): Install NULL as
9574 supports_z_point_type.
9575 * win32-i386-low.c (i386_supports_z_point_type): New function.
9576 (i386_insert_point, i386_remove_point): Adjust to new interface.
9577 (the_low_target): Install i386_supports_z_point_type.
9578 * win32-low.c (win32_supports_z_point_type): New function.
9579 (win32_insert_point, win32_remove_point): Adjust to new interface.
9580 (win32_target_ops): Install win32_supports_z_point_type.
9581 * win32-low.h (struct win32_target_ops):
9582 <supports_z_point_type>: New method.
9583 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9584 instead of a char. Also take a raw breakpoint pointer.
9585
932539e3
PA
95862014-05-20 Pedro Alves <palves@redhat.com>
9587
9588 * mem-break.h: Include break-common.h.
9589 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9590 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9591 (Z_packet_to_target_hw_bp_type): New declaration.
9592 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9593 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9594 (Z_PACKET_ACCESS_WP): Delete macros.
9595 (Z_packet_to_hw_type): Delete function.
9596 * i386-low.h: Don't include break-common.h here.
9597 (Z_packet_to_hw_type): Delete declaration.
9598 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9599 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9600 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9601 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9602 * linux-aarch64-low.c: Don't include break-common.h here.
9603 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9604 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9605 (Z_packet_to_target_hw_bp_type): Delete function.
9606 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
9607 function.
9608 (mips_insert_point, mips_remove_point): Use
9609 Z_packet_to_target_hw_bp_type.
9610
4ff0d3d8
PA
96112014-05-20 Pedro Alves <palves@redhat.com>
9612
9613 * linux-aarch64-low.c: Include break-common.h.
9614 (enum target_point_type): Delete.
9615 (Z_packet_to_point_type): Rename to ...
9616 (Z_packet_to_target_hw_bp_type): ... this, and return a
9617 target_hw_bp_type instead.
9618 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
9619 instead of an enum target_point_type.
9620 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
9621 breakpoint type.
9622 (aarch64_dr_state_insert_one_point)
9623 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
9624 (aarch64_handle_aligned_watchpoint)
9625 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
9626 Take an enum target_hw_bp_type instead of an enum
9627 target_point_type.
9628 (aarch64_supports_z_point_type): New function.
9629 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
9630 use Z_packet_to_target_hw_bp_type.
9631
786dc519
JB
96322014-05-20 Joel Brobecker <brobecker@adacore.com>
9633
9634 * configure.ac: Only use -Werror by default when DEVELOPMENT
9635 is true.
9636 * configure: Regenerate.
9637
9e0aa64f
JK
96382014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9639
9640 Fix gdbserver qGetTLSAddr for x86_64 -m32.
9641 * linux-x86-low.c (X86_64_USER_REGS): New.
9642 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
9643
2b577b92
YQ
96442014-04-28 Yao Qi <yao@codesourcery.com>
9645
9646 * Makefile.in (i386-avx512.c): Fix the typo of generated file
9647 name.
9648
94611da2
PA
96492014-04-25 Pedro Alves <palves@redhat.com>
9650
9651 PR server/16255
9652 * linux-low.c (linux_attach_fail_reason_string): New function.
9653 (linux_attach_lwp): Delete.
9654 (linux_attach_lwp_1): Rename to ...
9655 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9656 argument. Remove "initial" parameter. Return int instead of
9657 void. Don't error or warn here.
9658 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9659 failure to attach to the tgid. Call warning when failing to
9660 attach to an lwp.
9661 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9662 argument. Remove "initial" parameter. Return int instead of
9663 void. Don't error or warn here.
9664 (linux_attach_fail_reason_string): New declaration.
9665 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9666 interface change. Use linux_attach_fail_reason_string.
9667
01f9f808
MS
96682014-04-24 Michael Sturm <michael.sturm@mintel.com>
9669 Walfred Tedeschi <walfred.tedeschi@intel.com>
9670
9671 * Makefile.in: Added rules to handle new files
9672 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9673 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9674 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9675 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9676 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9677 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9678 x32-avx512-linux.o.
9679 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9680 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9681 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9682 i386/x32-avx512.xml.
9683 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9684 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9685 i386/x32-avx512-linux.xml.
9686 * i387-fp.c (num_avx512_k_registers): New constant for number
9687 of K registers.
9688 (num_avx512_zmmh_low_registers): New constant for number of
9689 lower ZMM registers (0-15).
9690 (num_avx512_zmmh_high_registers): New constant for number of
9691 higher ZMM registers (16-31).
9692 (num_avx512_ymmh_registers): New contant for number of higher
9693 YMM registers (ymm16-31 added by avx521 on x86_64).
9694 (num_avx512_xmm_registers): New constant for number of higher
9695 XMM registers (xmm16-31 added by AVX512 on x86_64).
9696 (struct i387_xsave): Add space for AVX512 registers.
9697 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9698 Add code to handle AVX512 registers.
9699 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9700 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9701 prototypei from generated file.
9702 (tdesc_amd64_avx512_linux): Likewise.
9703 (init_registers_x32_avx512_linux): Likewise.
9704 (tdesc_x32_avx512_linux): Likewise.
9705 (init_registers_i386_avx512_linux): Likewise.
9706 (tdesc_i386_avx512_linux): Likewise.
9707 (x86_64_regmap): Add AVX512 registers.
9708 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9709 mask.
9710 (initialize_low_arch): Add code to initialize AVX512 registers.
9711
51aa91f9
PA
97122014-04-23 Pedro Alves <palves@redhat.com>
9713
9714 * mem-break.c (find_gdb_breakpoint_at): Make static.
9715 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9716
a4165e94
PA
97172014-04-23 Pedro Alves <palves@redhat.com>
9718
9719 * i386-low.c: Don't include break-common.h here.
9720 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9721 prototype to take target_hw_bp_type as argument instead of a Z
9722 packet char.
9723 * i386-low.h: Include break-common.h here.
9724 (Z_packet_to_hw_type): Declare.
9725 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9726 prototypes.
9727 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9728 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9729 (x86_remove_point): Convert the packet number to a
9730 target_hw_bp_type before calling i386_low_remove_watchpoint.
9731 * win32-i386-low.c (i386_insert_point): Convert the packet number
9732 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9733 (i386_remove_point): Convert the packet number to a
9734 target_hw_bp_type before calling i386_low_remove_watchpoint.
9735
b8acf843
PA
97362014-04-23 Pedro Alves <palves@redhat.com>
9737
9738 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9739
d708bcd1
PA
97402014-04-10 Pedro Alves <palves@redhat.com>
9741
9742 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9743 Check if the condition or command is NULL before checking if the
9744 breakpoint is known. On success, return true.
9745 * mem-break.h (add_breakpoint_condition): Document return.
9746 (add_breakpoint_commands): Add describing comment.
9747 * server.c (skip_to_semicolon): New function.
9748 (process_point_options): Use it.
9749
2eec7d5b
PA
97502014-04-09 Pedro Alves <palves@redhat.com>
9751
9752 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9753 to lwpid_of.
9754
fa96cb38
PA
97552014-02-27 Pedro Alves <palves@redhat.com>
9756
9757 PR 12702
9758 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9759 macros.
9760 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9761 output.
9762 (last_thread_of_process_p): Take a PID argument instead of a
9763 thread pointer.
9764 (linux_wait_for_lwp): Delete.
9765 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9766 functions.
9767 (linux_low_filter_event): New function, party factored out from
9768 linux_wait_for_event.
9769 (linux_wait_for_event): Rename to ...
9770 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9771 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9772 sigsuspend. Check for zombie leaders.
9773 (linux_wait_for_event): Reimplement as wrapper around
9774 linux_wait_for_event_filtered.
9775 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9776 a normal or signal exit is seen, it's the whole process exiting.
9777 (wait_for_sigstop): No longer a for_each_inferior callback.
9778 Rewrite on top of linux_wait_for_event_filtered.
9779 (stop_all_lwps): Call wait_for_sigstop directly.
9780 * server.c (resume, handle_target_event): Handle
9781 TARGET_WAITKIND_NO_RESUMED.
9782
d763de10
JB
97832014-02-26 Joel Brobecker <brobecker@adacore.com>
9784
9785 * win32-low.c (psapi_get_dll_name,
9786 * win32_CreateToolhelp32Snapshot): Delete.
9787 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9788 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9789 Delete.
9790 (handle_load_dll): Add function description.
9791 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9792
850a0f76
JB
97932014-02-26 Joel Brobecker <brobecker@adacore.com>
9794
9795 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9796 Add comment.
9797 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9798 base address when calling win32_add_one_solib.
9799 (handle_load_dll): Delete local variable load_addr.
9800 Remove 0x1000 offset applied to DLL base address when calling
9801 win32_add_one_solib.
9802 (handle_unload_dll): Add comment.
9803
f25b3fc3
JB
98042014-02-26 Joel Brobecker <brobecker@adacore.com>
9805
9806 * win32-low.c (win32_add_all_dlls): Renames
9807 win32_ensure_ntdll_loaded. Rewrite function documentation.
9808 Adjust implementation to always load all DLLs.
9809 Add 0x1000 offset to DLL base address when calling
9810 win32_add_one_solib.
9811 (child_initialization_done): New static global.
9812 (do_initial_child_stuff): Set child_initialization_done to
9813 zero during child initialization, and 1 after. Replace call
9814 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9815 Add comment.
9816 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9817 (handle_unload_dll): Add function documentation.
9818 (get_child_debug_event): Ignore load and unload DLL events
9819 during child initialization.
9820
d86d4aaf
DE
98212014-02-20 Doug Evans <dje@google.com>
9822
3bc32da3 9823 Remove global all_lwps.
d86d4aaf
DE
9824 * inferiors.h (ptid_of): Move here from linux-low.h.
9825 (pid_of, lwpid_of): Ditto.
9826 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9827 parameter is a struct thread_info * now.
9828 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9829 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9830 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9831 directly.
9832 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9833 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9834 * linux-arm-low.c (update_registers_callback): Update, "entry"
9835 parameter is a struct thread_info * now.
9836 Fetch lwpid from current_inferior directly.
9837 (arm_insert_point): Pass &all_threads to find_inferior instead of
9838 &all_lwps.
9839 (arm_remove_point): Ditto.
9840 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9841 (arm_prepare_to_resume): Fetch pid from thread.
9842 (arm_read_description): Fetch lwpid from current_inferior directly.
9843 * linux-low.c (all_lwps): Delete.
9844 (delete_lwp): Delete call to remove_inferior.
9845 (handle_extended_wait): Fetch lwpid from thread.
9846 (add_lwp): Don't set lwp->entry.id. Remove call to
9847 add_inferior_to_list.
9848 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9849 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9850 (kill_one_lwp_callback): Ditto.
9851 (linux_kill): Don't dereference NULL pointer.
9852 Fetch ptid,lwpid from thread.
9853 (get_detach_signal): Fetch ptid from thread.
9854 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9855 Simplify call to regcache_invalidate_thread.
9856 (delete_lwp_callback): Update, "entry" parameter is a
9857 struct thread_info * now. Fetch pid from thread.
9858 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9859 (status_pending_p_callback): Update, "entry" parameter is a
9860 struct thread_info * now. Fetch ptid from thread.
9861 (find_lwp_pid): Update, "entry" parameter is a
9862 struct thread_info * now.
9863 (linux_wait_for_lwp): Fetch pid from thread.
9864 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9865 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9866 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9867 (dequeue_one_deferred_signal): Ditto.
9868 (cancel_breakpoint): Fetch ptid from current_inferior.
9869 (linux_wait_for_event): Pass &all_threads to find_inferior,
9870 not &all_lwps. Fetch ptid, lwpid from thread.
9871 (count_events_callback): Update, "entry" parameter is a
9872 struct thread_info * now.
9873 (select_singlestep_lwp_callback): Ditto.
9874 (select_event_lwp_callback): Ditto.
9875 (cancel_breakpoints_callback): Ditto.
9876 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9877 not &all_lwps.
9878 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9879 (unsuspend_one_lwp): Update, "entry" parameter is a
9880 struct thread_info * now.
9881 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9882 not &all_lwps.
9883 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9884 Fetch lwpid from thread, not lwp.
9885 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9886 Pass &all_threads to find_inferior, not &all_lwps.
9887 (send_sigstop): Fetch lwpid from thread, not lwp.
9888 (send_sigstop_callback): Update, "entry" parameter is a
9889 struct thread_info * now.
9890 (suspend_and_send_sigstop_callback): Ditto.
9891 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9892 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9893 struct thread_info * now.
9894 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9895 from thread, lwp.
9896 (lwp_running): Update, "entry" parameter is a
9897 struct thread_info * now.
9898 (stop_all_lwps): Fetch ptid from thread.
9899 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9900 (linux_resume_one_lwp): Fetch lwpid from thread.
9901 (linux_set_resume_request): Update, "entry" parameter is a
9902 struct thread_info * now. Fetch pid, lwpid from thread.
9903 (resume_status_pending_p): Update, "entry" parameter is a
9904 struct thread_info * now.
9905 (need_step_over_p): Ditto. Fetch lwpid from thread.
9906 (start_step_over): Fetch lwpid from thread.
9907 (linux_resume_one_thread): Update, "entry" parameter is a
9908 struct thread_info * now. Fetch lwpid from thread.
9909 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9910 (proceed_one_lwp): Update, "entry" parameter is a
9911 struct thread_info * now. Fetch lwpid from thread.
9912 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9913 struct thread_info * now.
9914 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9915 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9916 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9917 directly.
9918 (regsets_store_inferior_registers): Ditto.
9919 (fetch_register, store_register): Ditto.
9920 (linux_read_memory, linux_write_memory): Ditto.
9921 (linux_request_interrupt): Ditto.
9922 (linux_read_auxv): Ditto.
9923 (linux_xfer_siginfo): Ditto.
9924 (linux_qxfer_spu): Ditto.
9925 (linux_qxfer_libraries_svr4): Ditto.
9926 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9927 moved to inferiors.h.
9928 (get_lwp): Delete.
9929 (get_thread_lwp): Update.
9930 (struct lwp_info): Delete member "entry". Simplify comment for
9931 member "thread".
9932 (all_lwps): Delete.
9933 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9934 current_inferior directly.
9935 (update_watch_registers_callback): Update, "entry" parameter is a
9936 struct thread_info * now. Fetch pid from thread.
9937 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9938 (mips_insert_point): Fetch lwpid from current_inferior.
9939 Pass &all_threads to find_inferior, not &all_lwps.
9940 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9941 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9942 directly.
9943 (mips_stopped_data_address): Ditto.
9944 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9945 directly.
9946 * linux-tile-low.c (tile_arch_setup): Ditto.
9947 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9948 (update_debug_registers_callback): Update, "entry" parameter is a
9949 struct thread_info * now. Fetch pid from thread.
9950 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9951 Pass &all_threads to find_inferior, not &all_lwps.
9952 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9953 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9954 Pass &all_threads to find_inferior, not &all_lwps.
9955 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9956 (i386_dr_low_get_status): Ditto.
9957 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9958 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9959 (x86_linux_read_description): Ditto.
9960 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9961
3b8361aa
DE
99622014-02-20 Doug Evans <dje@google.com>
9963
9964 * inferiors.c (get_first_inferior): Fix buglet.
9965
f7667f0d
DE
99662014-02-19 Doug Evans <dje@google.com>
9967
9968 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9969 * inferiors.c (add_thread): Change result type to struct thread_info *.
9970 All callers updated.
9971 (add_lwp): Call add_thread here instead of in callers.
9972 All callers updated.
9973 * linux-low.h (get_lwp_thread): Rewrite.
9974 (struct lwp_info): New member "thread".
9975
b3312d80
DE
99762014-02-19 Doug Evans <dje@google.com>
9977
9978 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9979 All callers updated.
9980
ecc6f45c
DE
99812014-02-19 Doug Evans <dje@google.com>
9982
9983 * inferiors.c (add_thread): Fix whitespace.
9984
649ebbca
DE
99852014-02-19 Doug Evans <dje@google.com>
9986
9987 * dll.c (clear_dlls): Replace accessing list implemention details
9988 with API function.
9989 * gdbthread.h (get_first_thread): Declare.
9990 * inferiors.c (for_each_inferior_with_data): New function.
9991 (get_first_thread): New function.
9992 (find_thread_ptid): Simplify.
9993 (get_first_inferior): New function.
9994 (clear_list): Delete.
9995 (one_inferior_p): New function.
9996 (clear_inferior_list): New function.
9997 (clear_inferiors): Update.
9998 * inferiors.h (for_each_inferior_with_data): Declare.
9999 (clear_inferior_list): Declare.
10000 (one_inferior_p): Declare.
10001 (get_first_inferior): Declare.
10002 * linux-low.c (linux_wait_for_event): Replace accessing list
10003 implemention details with API function.
10004 * server.c (target_running): Ditto.
10005 (accumulate_file_name_length): New function.
10006 (emit_dll_description): New function.
10007 (handle_qxfer_libraries): Replace accessing list implemention
10008 details with API function.
10009 (handle_qxfer_threads_worker): New function.
10010 (handle_qxfer_threads_proper): Replace accessing list implemention
10011 details with API function.
10012 (handle_query): Ditto.
10013 (visit_actioned_threads_callback_ftype): New typedef.
10014 (visit_actioned_threads_data): New struct.
10015 (visit_actioned_threads): Rewrite to be find_inferior callback.
10016 (resume): Call find_inferior.
10017 (handle_status): Replace accessing list implemention
10018 details with API function.
10019 (process_serial_event): Replace accessing list implemention details
10020 with API function.
10021 * target.c (set_desired_inferior): Replace accessing list implemention
10022 details with API function.
10023 * tracepoint.c (same_process_p): New function.
10024 (gdb_agent_about_to_close): Replace accessing list implemention
10025 details with API function.
10026 * win32-low.c (child_delete_thread): Replace accessing list
10027 implemention details with API function.
10028 (match_dll_by_basename): New function.
10029 (dll_is_loaded_by_basename): New function.
10030 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10031 details call to dll_is_loaded_by_basename.
10032
80894984
DE
100332014-02-19 Doug Evans <dje@google.com>
10034
10035 * dll.h (struct dll_info): Add comment.
10036 * gdbthread.h (struct thread_info): Add comment.
10037 (current_ptid): Simplify.
10038 * inferiors.c (add_process): Update.
10039 (remove_process): Update.
10040 * inferiors.h (struct process_info): Rename member "head" to "entry".
10041 * linux-low.c (delete_lwp): Update.
10042 (add_lwp): Update.
10043 (last_thread_of_process_p): Update.
10044 (kill_one_lwp_callback, linux_kill): Update.
10045 (status_pending_p_callback): Update.
10046 (wait_for_sigstop): Update. Simplify read of ptid.
10047 (start_step_over): Update.
10048 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10049 (get_lwp_thread): Update.
10050 (struct lwp_info): Rename member "head" to "entry".
10051 * regcache.h (inferior_list_entry): Delete.
10052 * server.c (kill_inferior_callback): Update.
10053 (detach_or_kill_inferior_callback): Update.
10054 (print_started_pid): Update.
10055 (print_attached_pid): Update.
10056 (process_serial_event): Simplify read of ptid.
10057 * thread-db.c (thread_db_create_event): Update.
10058 (thread_db_get_tls_address): Update.
10059 * win32-low.c (current_inferior_ptid): Simplify.
10060
46917d26
TT
100612014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10064 argument.
10065 (target_supports_btrace): Update.
10066
0759a81e
YQ
100672014-02-14 Yao Qi <yao@codesourcery.com>
10068
10069 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10070 (rsp-low-ipa.o): New target.
10071
a7191e8b
TT
100722014-02-12 Tom Tromey <tromey@redhat.com>
10073
10074 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10075 convert_ascii_to_int.
10076 * regcache.c (registers_to_string): Likewise.
10077 * remote-utils.c (decode_M_packet): Likewise.
10078 * server.c (process_serial_event): Likewise.
10079
ff0e980e
TT
100802014-02-12 Tom Tromey <tromey@redhat.com>
10081
10082 * server.c (handle_query, handle_v_run): Use hex2bin, not
10083 unhexify.
10084 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10085
e9371aff
TT
100862014-02-12 Tom Tromey <tromey@redhat.com>
10087
10088 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10089 convert_int_to_ascii.
10090 * regcache.c (registers_to_string, collect_register_as_string):
10091 Likewise.
10092 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10093 Likewise.
10094 * server.c (process_serial_event): Likewise.
10095 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10096 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10097
971dc0b8
TT
100982014-02-12 Tom Tromey <tromey@redhat.com>
10099
10100 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10101 bin2hex, not hexify.
10102 * tracepoint.c (cmd_qtstatus): Likewise.
10103
0a822afb
TT
101042014-02-12 Tom Tromey <tromey@redhat.com>
10105
10106 * remote-utils.c (monitor_output): Pass explicit length to
10107 hexify.
10108
9c3d6531
TT
101092014-02-12 Tom Tromey <tromey@redhat.com>
10110
10111 * tracepoint.c: Include rsp-low.h.
10112 * server.c: Include rsp-low.h.
10113 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10114 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10115 declare.
10116 * remote-utils.c: Include rsp-low.h.
10117 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10118 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10119 (convert_int_to_ascii, convert_ascii_to_int): Move to
10120 common/rsp-low.c.
10121 * regcache.c: Include rsp-low.h.
10122 * ax.c: Include rsp-low.h.
10123 * Makefile.in (SFILES): Add common/rsp-low.c.
10124 (OBS): Add rsp-low.o.
10125 (rsp-low.o): New target.
10126
01fd3ea5
TT
101272014-02-12 Tom Tromey <tromey@redhat.com>
10128
10129 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10130 Include print-utils.h.
10131 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10132 (plongest, thirty_two, phex_nz): Remove.
10133 * Makefile.in (SFILES): Add common/print-utils.c.
10134 (OBS): Add print-utils.o.
10135 (print-utils-ipa.o): New target.
10136 (print-utils.o): New target.
10137 (IPA_OBJS): Add print-utils-ipa.o.
10138
e99dc820
TT
101392014-02-06 Tom Tromey <tromey@redhat.com>
10140
10141 * Makefile.in (SFILES): Fix indentation.
10142
ee1e2d4f
DE
101432014-02-05 Doug Evans <dje@google.com>
10144
10145 * linux-low.c (linux_wait_for_event): Improve comment.
10146 (linux_wait_1): Keep current_inferior in sync with event_child.
10147
f5a02773
DE
101482014-01-22 Doug Evans <dje@google.com>
10149
10150 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10151
87ce2a04
DE
101522014-01-22 Doug Evans <dje@google.com>
10153
10154 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10155 * configure: Regenerate.
10156 * config.in: Regenerate.
10157 * Makefile.in (SFILES): Add debug.c.
10158 (OBS): Add debug.o.
10159 * debug.c: New file.
10160 * debug.h: New file.
10161 * linux-aarch64-low.c (*): Update all debugging printfs to use
10162 debug_printf instead of fprintf.
10163 * linux-arm-low.c (*): Ditto.
10164 * linux-cris-low.c (*): Ditto.
10165 * linux-crisv32-low.c (*): Ditto.
10166 * linux-m32r-low.c (*): Ditto.
10167 * linux-sparc-low.c (*): Ditto.
10168 * linux-x86.c (*): Ditto.
10169 * linux-low.c (*): Ditto.
10170 (linux_wait_1): Add calls to debug_enter, debug_exit.
10171 (linux_wait): Remove redundant debugging printf.
10172 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10173 (linux_resume, unstop_all_lwps): Ditto.
10174 * mem-break.c (*): Update all debugging printfs to use
10175 debug_printf instead of fprintf.
10176 * remote-utils.c (*): Ditto.
10177 * thread-db.c (*): Ditto.
10178 * server.c #include <ctype.h>, "gdb_vecs.h".
10179 (debug_threads): Moved to debug.c.
10180 (*): Update all debugging printfs to use debug_printf instead of
10181 fprintf.
10182 (start_inferior): Replace call to fflush with call to debug_flush.
10183 (monitor_show_help): Mention set debug-format.
10184 (parse_debug_format_options): New function.
10185 (handle_monitor_command): Handle "monitor set debug-format".
10186 (gdbserver_usage): Mention --debug-format.
10187 (main): Parse --debug-format.
10188 * server.h (debug_threads): Declaration moved to debug.h.
10189 #include "debug.h".
10190 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10191 trace_debug_1 that uses debug_printf.
10192 (tracepoint_look_up_symbols): Update all debugging printfs to use
10193 debug_printf instead of fprintf.
10194
e671835b
BS
101952014-01-20 Baruch Siach <baruch@tkos.co.il>
10196
10197 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10198 sys/ptrace.h.
10199
b5737fa9
PA
102002014-01-17 Pedro Alves <palves@redhat.com>
10201
ea38d2a9 10202 PR build/16445
c7faa97a
PA
10203 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10204 defined after including gdb_proc_service.h.
b5737fa9 10205
40ed484e
DE
102062014-01-16 Doug Evans <dje@google.com>
10207
10208 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10209 (match_dll): Use it.
10210
969c39fb
MM
102112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10212
10213 * target.h (target_ops) <read_btrace>: Change parameters and
10214 return type to allow error reporting.
10215 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10216 trace reading errors on.
10217 * linux-low.c (linux_low_read_btrace): Pass trace reading
10218 errors on.
10219 (linux_low_disable_btrace): New.
10220
ab7f45ba
DE
102212014-01-15 Doug Evans <dje@google.com>
10222
10223 * inferiors.c (thread_id_to_gdb_id): Delete.
10224 * inferiors.h (thread_id_to_gdb_id): Delete.
10225
66af0f44
EZ
102262014-01-13 Eli Zaretskii <eliz@gnu.org>
10227
10228 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10229 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10230 versions.
10231
9939e131
PA
102322014-01-08 Pedro Alves <palves@redhat.com>
10233
10234 * server.c (handle_status): Don't discard previous queued stop
10235 replies or thread's pending status here.
10236 (main) <disconnection>: Do it here instead.
10237
b7ea362b
PA
102382014-01-08 Pedro Alves <palves@redhat.com>
10239
10240 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10241 * server.c (visit_actioned_threads, handle_pending_status): New
10242 function.
10243 (handle_v_cont): Factor out parts to ...
10244 (resume): ... this new function. If in all-stop, and a thread
10245 being resumed has a pending status, report it without actually
10246 resuming.
10247 (myresume): Adjust to use the new 'resume' function.
10248 (clear_pending_status_callback, set_pending_status_callback)
10249 (find_status_pending_thread_callback): New functions.
10250 (handle_status): Handle the case of multiple threads having
10251 interesting statuses to report. Report threads' real last signal
10252 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10253 with an interesting thread to report the status for, instead of
10254 always reporting the status of the first thread.
10255
28498c42
JB
102562014-01-01 Joel Brobecker <brobecker@adacore.com>
10257
10258 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10259 * gdbreplay.c (gdbreplay_version): Likewise.
10260
f45c82da
YZ
102612013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10262
10263 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10264 iov.iov_len with the real length in use.
10265
379a5e2d
JB
102662013-12-13 Joel Brobecker <brobecker@adacore.com>
10267
10268 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10269 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10270 for all targets that use win32-low.c.
10271 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10272 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10273
4210d83e
PA
102742013-12-13 Pedro Alves <palves@redhat.com>
10275
10276 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10277 if equal to TARGET_WAITKIND_LOADED.
10278 * win32-low.c (cached_status): New static global.
10279 (win32_wait): Add declaration.
10280 (do_initial_child_stuff): Flush all initial pending debug events
10281 up to the initial breakpoint.
10282 (win32_wait): If CACHED_STATUS was set, return that instead
10283 of doing a real wait. Remove the code resuming the execution
10284 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10285 during the initial phase. Also remove the code changing
10286 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10287 TARGET_WAITKIND_STOPPED.
10288
e7f0d979
YQ
102892013-12-11 Yao Qi <yao@codesourcery.com>
10290
10291 * notif.c (handle_notif_ack): Return 0 if no notification
10292 matches.
10293
ebcf782c
DE
102942013-11-20 Doug Evans <dje@google.com>
10295
10296 * linux-low.c (linux_set_resume_request): Fix comment.
10297
20ad9378
DE
102982013-11-20 Doug Evans <dje@google.com>
10299
10300 * linux-low.c (resume_status_pending_p): Tweak comment.
10301
a196ebeb
WT
103022013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10303
10304 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10305 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10306 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10307 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10308 (srv_amd64_regobj): Add amd64-mpx.o.
10309 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10310 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10311 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10312 * i387-fp.c (num_pl_bnd_register) Added constant.
10313 (num_pl_bnd_cfg_registers) Added constant.
10314 (struct i387_xsave) Added reserved area and MPX fields.
10315 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10316 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10317 function.
10318 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10319 (init_registers_amd64_mpx_linux): Declare new function.
10320 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10321 (x86_64_regmap): Add MPX registers.
10322 (x86_linux_read_description): Add MPX case.
10323 (initialize_low_arch): Initialize MPX targets.
10324
0080a2f6
TT
103252013-11-18 Tom Tromey <tromey@redhat.com>
10326
10327 * configure: Rebuild.
10328 * configure.ac: Don't check for stdlib.h.
10329 * gdbreplay.c: Unconditionally include stdlib.h.
10330
2978b111
TT
103312013-11-18 Tom Tromey <tromey@redhat.com>
10332
10333 * config.in: Rebuild.
10334 * configure: Rebuild.
10335 * configure.ac: Don't use AC_HEADER_DIRENT.
10336
a3d08894
TT
103372013-11-18 Tom Tromey <tromey@redhat.com>
10338
10339 * server.h: Don't check HAVE_STRING_H.
10340 * gdbreplay.c: Don't check HAVE_STRING_H.
10341 * configure: Rebuild.
10342
0a5dd17d
TT
103432013-11-18 Tom Tromey <tromey@redhat.com>
10344
10345 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10346 LIBGNU.
10347
1bd2f0ba
TT
103482013-11-08 Tom Tromey <tromey@redhat.com>
10349
10350 * configure, config.in: Rebuild.
10351 * configure.ac: Remove unused configury.
10352
3266f10b
TT
103532013-11-08 Tom Tromey <tromey@redhat.com>
10354
10355 * acinclude.m4: Include common.m4, codeset.m4.
10356 * configure, config.in: Rebuild.
10357 * configure.ac: Use GDB_AC_COMMON.
10358
6682d959
AA
103592013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10360
10361 * linux-s390-low.c (HWCAP_S390_TE): New define.
10362 (s390_arch_setup): Consider the TE field in the HWCAP for
10363 determining 'have_regset_tdb'.
10364
fd0a4d76
SDJ
103652013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10366
10367 PR gdb/16014
10368 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10369 call to sizeof.
10370
1a3d890b
PA
103712013-10-02 Pedro Alves <palves@redhat.com>
10372
10373 * server.c (process_serial_event): Don't output "GDBserver
10374 exiting" if GDB is connected through stdio.
10375 * target.c (mywait): Likewise, be silent if GDB is connected
10376 through stdio.
10377
97ad4581
JB
103782013-10-01 Joel Brobecker <brobecker@adacore.com>
10379
10380 * lynx-low.c (lynx_add_threads_after_attach): New function.
10381 (lynx_attach): Remove call to add_thread. Add call to
10382 lynx_add_threads_after_attach instead.
10383
5b4e221c
MF
103842013-09-28 Mike Frysinger <vapier@gentoo.org>
10385
10386 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10387 * config.in, configure: Regenerated.
10388
ee47b2f8
YQ
103892013-09-18 Yao Qi <yao@codesourcery.com>
10390
10391 PR server/15959
10392 * server.c (start_inferior): Clear 'resume_info'.
10393
d6707650 103942013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10395
d6707650
JW
10396 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10397 for each register.
10398
9243dd0e 103992013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10400
9243dd0e
JW
10401 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10402 linux-tile-low.o to srv_tgtobj.
10403
c623a6ef
WN
104042013-09-16 Will Newton <will.newton@linaro.org>
10405
10406 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10407 out regs.
10408
fb71d39e
PA
104092013-09-06 Pedro Alves <palves@redhat.com>
10410
10411 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10412 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10413 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10414 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10415 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10416 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10417
8e7e9910
PA
104182013-09-06 Pedro Alves <palves@redhat.com>
10419
10420 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10421 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10422
7c3a12ca
PA
104232013-09-06 Pedro Alves <palves@redhat.com>
10424
10425 * linux-amd64-ipa.c: Include tracepoint.h.
10426 * linux-i386-ipa.c: Include tracepoint.h.
10427
8eb3d7b6
RW
104282013-09-06 Ricard Wanderlof <ricardw@axis.com>
10429
10430 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10431 (ps_get_thread_area): New function.
10432
eddddb9d
RW
104332013-09-06 Ricard Wanderlof <ricardw@axis.com>
10434
10435 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10436 (initialize_low_arch): Call init_registers_crisv32 rather than
10437 init_register_crisv32.
10438
533b0600
PA
104392013-09-05 Pedro Alves <palves@redhat.com>
10440
10441 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10442 to ...
10443 * hostio.h: ... this new file.
10444 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10445 win32-low.c: Include hostio.h.
10446
0ce3d3b5
PA
104472013-09-05 Pedro Alves <palves@redhat.com>
10448
10449 * server.h (gdb_client_data, handler_func, callback_handler_func)
10450 (delete_file_handler, add_file_handler, append_callback_event)
10451 (delete_callback_event, start_event_loop, initialize_event_loop):
10452 Move to event-loop.h and include it.
10453 * event-loop.h: New file.
10454
799cdc37
PA
104552013-09-05 Pedro Alves <palves@redhat.com>
10456
10457 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10458 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10459 (loaded_dll, unloaded_dll): Move to ...
10460 * dll.h: ... this new file.
10461 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10462
6a6bbd9d
PA
104632013-09-05 Pedro Alves <palves@redhat.com>
10464
10465 * server.h (current_process, get_thread_process, all_processes)
10466 (add_inferior_to_list, for_each_inferior, current_inferior)
10467 (remove_inferior, add_process, remove_process, find_process_pid)
10468 (have_started_inferiors_p, have_attached_inferiors_p)
10469 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10470 (clear_inferiors, find_inferior, find_inferior_id)
10471 (inferior_target_data, set_inferior_target_data)
10472 (inferior_regcache_data, set_inferior_regcache_data): Move to
10473 inferiors.h, and include it.
10474 * inferiors.h: New file.
10475
f699aaba
PA
104762013-09-05 Pedro Alves <palves@redhat.com>
10477
10478 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10479 Move ...
72f4393d 10480 * ax.h: ... here.
f699aaba 10481
c144c7a0
PA
104822013-09-05 Pedro Alves <palves@redhat.com>
10483
10484 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10485 tracepoint.h.
10486 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10487 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10488 (handle_tracepoint_general_set, handle_tracepoint_query)
10489 (tracepoint_finished_step, tracepoint_was_hit)
10490 (release_while_stepping_state_list, current_traceframe)
10491 (in_readonly_region, traceframe_read_mem)
10492 (fetch_traceframe_registers, traceframe_read_sdata)
10493 (traceframe_read_info, struct fast_tpoint_collect_status)
10494 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10495 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10496 (supply_fast_tracepoint_registers)
10497 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10498 (ipa_tdesc, claim_trampoline_space)
10499 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10500 (agent_mem_read, agent_get_trace_state_variable_value)
10501 (agent_set_trace_state_variable_value, agent_tsv_read)
10502 (agent_mem_read_string, get_raw_reg_func_addr)
10503 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10504 * tracepoint.h: ... this new file.
10505
ff42e6ab
PA
105062013-09-05 Pedro Alves <palves@redhat.com>
10507
10508 * server.h (perror_with_name, error, fatal, warning, paddress)
10509 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10510 include it.
10511 * utils.h: New file.
10512
541af0f4
PA
105132013-09-05 Pedro Alves <palves@redhat.com>
10514
10515 * server.h (remote_debug, noack_mode, transport_is_reliable)
10516 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10517 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10518 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10519 (write_enn, initialize_async_io, enable_async_io)
10520 (disable_async_io, check_remote_input_interrupt_request)
10521 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10522 (dead_thread_notify, prepare_resume_reply)
10523 (decode_address_to_semicolon, decode_address, decode_m_packet)
10524 (decode_M_packet, decode_X_packet, decode_xfer_write)
10525 (decode_search_memory_packet, unhexify, hexify)
10526 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10527 (look_up_one_symbol, relocate_instruction)
10528 (monitor_output): Move to remote-utils.h, and include it.
10529 * remote-utils.h: New file.
10530
eebdf26b
PA
105312013-09-05 Pedro Alves <palves@redhat.com>
10532
10533 * server.h (_): Delete.
10534
3aafd2ff
PA
105352013-09-02 Pedro Alves <palves@redhat.com>
10536
10537 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10538 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10539 allocated.
10540 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10541
cee83bcb
PM
105422013-09-02 Pierre Muller <muller@sourceware.org>
10543
10544 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10545 or WriteProcessMemory complete successfully and handle
10546 ERROR_PARTIAL_COPY error.
10547
9a13b2fa
PA
105482013-09-02 Pedro Alves <palves@redhat.com>
10549
10550 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10551 error instead of EIO.
10552
602e3198
JK
105532013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10554
10555 PR server/15604
10556 * linux-low.c: Include filestuff.h.
10557 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10558 * lynx-low.c: Include filestuff.h.
10559 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10560 * server.c: Include filestuff.h.
10561 (main): Call notice_open_fds.
10562 * spu-low.c: Include filestuff.h.
10563 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10564
96d7229d
LM
105652013-08-22 Luis Machado <lgustavo@codesourcery.com>
10566
10567 * Makefile.in: Explain why ../target and ../nat are not
10568 listed as include file search paths.
10569 (linux-waitpid.o): New object file rule.
10570 * configure.srv (srv_native_linux_obj): New variable.
10571 Replace all occurrences of linux native object files with
10572 $srv_native_linux_obj.
10573 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10574 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10575 (linux_enable_event_reporting): Remove declaration.
10576 (my_waitpid): Moved to common/linux-waitpid.c.
10577 (linux_wait_for_event): Pass ptid when calling
10578 linux_enable_event_reporting.
10579 (linux_supports_tracefork_flag): Remove.
10580 (linux_enable_event_reporting): Likewise.
10581 (linux_tracefork_grandchild): Remove.
10582 (STACK_SIZE): Moved to common/linux-ptrace.c.
10583 (linux_tracefork_child): Remove.
10584 (linux_test_for_tracefork): Remove.
10585 (linux_look_up_symbols): Call linux_supports_traceclone.
10586 (initialize_low): Remove call to linux_test_for_tracefork.
10587 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10588 common/linux-ptrace.h.
10589 (PTRACE_TYPE_ARG4): Likewise.
10590 Include linux-ptrace.h.
10591
32940073
PA
105922013-08-21 Pedro Alves <palves@redhat.com>
10593
10594 * config.in: Renegerate.
10595
33b60d58 105962013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 10597
33b60d58
LM
10598 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10599 (SFILES): Remove $(srcdir)/common/target-common.c and
10600 add $(srcdir)/target/waitstatus.c.
10601 (OBS): Remove target-common.o and add waitstatus.o.
10602 (server_h): Remove $(srcdir)/../common/target-common.h and
10603 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10604 and $(srcdir)/../target/waitstatus.h.
10605 (target-common.o): Remove.
10606 (waitstatus.o): New target object file.
10607 * target.h: Do not include target-common.h and
10608 include target/resume.h, target/wait.h and
10609 target/waitstatus.h.
10610
b8e1b30e
LM
106112013-08-13 Luis Machado <lgustavo@codesourcery.com>
10612
10613 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10614 to PTRACE_TYPE_ARG3.
10615 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10616 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
10617 PTRACE_TYPE_ARG4.
10618 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
10619 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
10620
7a60ad40
YQ
106212013-07-27 Jie Zhang <jie@codesourcery.com>
10622 Daniel Jacobowitz <dan@codesourcery.com>
10623 Yao Qi <yao@codesourcery.com>
10624
10625 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
10626 (mips-linux-watch.o): New rule.
10627 (mips_linux_watch_h): New variable.
10628 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
10629 srv_tgtobj.
10630 * linux-mips-low.c: Include mips-linux-watch.h.
10631 (struct arch_process_info, struct arch_lwp_info): New.
10632 (update_watch_registers_callback): New function.
10633 (mips_linux_new_process, mips_linux_new_thread) New functions.
10634 (mips_linux_prepare_to_resume, mips_insert_point): New
10635 functions.
10636 (mips_remove_point, mips_stopped_by_watchpoint): New
10637 functions.
10638 (rsp_bp_type_to_target_hw_bp_type): New function.
10639 (mips_stopped_data_address): New function.
10640 (the_low_target): Add watchpoint support functions.
10641
de6f69ad
YQ
106422013-07-27 Yao Qi <yao@codesourcery.com>
10643
10644 * i386-low.c: Include break-common.h.
10645 (enum target_hw_bp_type): Remove.
10646
3360c0bf
LM
106472013-07-24 Luis Machado <lgustavo@codesourcery.com>
10648
10649 * Makefile.in (SFILES): /common/target-common.c.
10650 (OBS): Add target-common.o.
10651 (server_h): Add $(srcdir)/../common/target-common.h.
10652 (target-common.o): New target.
10653 * server.c (queue_stop_reply_callback): Free
10654 status string after use.
10655 * target.c (target_waitstatus_to_string): Remove.
10656 * target.h: Include target-common.h.
10657 (resume_kind): Likewise.
10658 (target_waitkind): Likewise.
10659 (target_waitstatus): Likewise.
10660 (TARGET_WNOHANG): Likewise.
10661
bd885420
YQ
106622013-07-04 Yao Qi <yao@codesourcery.com>
10663
10664 * Makefile.in (host_alias): Use @host_noncanonical@.
10665 (target_alias): Use @target_noncanonical@.
10666 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10667 ACX_NONCANONICAL_HOST.
10668 * configure: Regenerated.
10669
10670 Revert:
10671 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10672
10673 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10674 * configure: Rebuild.
10675 * Makefile.in (version_host, version_target): Get from configure.
10676 (version.c): Use $(version_host) and $(version_target).
10677
17ef446e
PA
106782013-07-03 Pedro Alves <palves@redhat.com>
10679
10680 * Makefile.in (config.status): Depend on development.sh.
10681 * acinclude.m4: Include libmcheck.m4.
10682 * configure: Regenerate.
10683
7a9a7487
MG
106842013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10685
10686 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10687 attribute inside the parentheses.
10688 (winapi_DebugSetProcessKillOnExit): Ditto.
10689 (winapi_DebugBreakProcess): Ditto.
10690 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 10691
49b64de6
MG
106922013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10693
10694 * notif.h (notif_event): Add a dummy member to avoid compiler
10695 errors.
10696
d5749ee7
PA
106972013-07-01 Pedro Alves <palves@redhat.com>
10698
10699 * hostio.c (HOSTIO_PATH_MAX): Define.
10700 (require_filename, handle_open, handle_unlink, handle_readlink):
10701 Use it.
10702
d8d2a3ee
PA
107032013-07-01 Pedro Alves <palves@redhat.com>
10704
10705 * server.h: Include "pathmax.h".
10706 * linux-low.c: Don't include sys/param.h.
10707 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10708 MAXPATHLEN.
10709 * win32-low.c: Don't include sys/param.h.
10710 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10711
bc7dea8d
PA
107122013-07-01 Pedro Alves <palves@redhat.com>
10713
10714 * event-loop.c: Don't check HAVE_UNISTD_H before including
10715 <unistd.h>.
10716 * gdbreplay.c: Likewise.
10717 * remote-utils.c: Likewise.
10718 * server.c: Likewise.
10719 * configure.ac: Don't check for unistd.h.
10720 * configure: Regenerate.
10721
d6c2da54
TT
107222013-06-28 Tom Tromey <tromey@redhat.com>
10723
10724 * Makefile.in (version.c): Use version.in, not
10725 common/version.in.
10726
257b6bec
MG
107272013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10728
10729 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10730 * configure: Rebuild.
10731 * Makefile.in (version_host, version_target): Get from configure.
10732 (version.c): Use $(version_host) and $(version_target).
10733
86ebe149
DK
107342013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10735
10736 Fix trace-status to output user name without trailing colon.
10737 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10738
f30aa5af
DK
107392013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10740
10741 Fix trace-status to output proper start-time and stop-time.
10742 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10743 output start time and stop time in hex as gdb expects.
10744
28a93511
YQ
107452013-06-26 Pedro Alves <pedro@codesourcery.com>
10746
10747 * tracepoint.c (build_traceframe_info_xml): Output trace state
10748 variables present in the trace buffer.
10749
01208463
TT
107502013-06-24 Tom Tromey <tromey@redhat.com>
10751
10752 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10753 create-version.sh.
10754 (version.o): Remove.
10755 * gdbreplay.c: Include version.h.
10756 (version, host_name): Don't declare.
10757 * server.h: Include version.h.
10758 (version, host_name): Don't declare.
10759
760256f9
PA
107602013-06-12 Pedro Alves <palves@redhat.com>
10761
10762 * linux-x86-low.c (linux_is_elf64): Delete global.
10763 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10764 with local linux_pid_exe_is_elf_64_file use.
10765
030031ee
PA
107662013-06-11 Pedro Alves <palves@redhat.com>
10767
10768 * linux-low.c (regset_disabled, disable_regset): New functions.
10769 (regsets_fetch_inferior_registers)
10770 (regsets_store_inferior_registers): Use them.
10771 (initialize_regsets_info); Don't allocate the disabled_regsets
10772 array here.
10773 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10774 comment.
10775
5da6eb0a
PA
107762013-06-11 Pedro Alves <palves@redhat.com>
10777
10778 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10779 xmalloc.
10780
7e5aaa09
PA
107812013-06-11 Pedro Alves <palves@redhat.com>
10782
10783 * linux-x86-low.c (initialize_low_arch): Call
10784 init_registers_x32_avx_linux.
10785
d878444c
JK
107862013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10787
10788 Fix compatibility with Android Bionic.
10789 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10790 it is not empty.
10791
3aee8918
PA
107922013-06-07 Pedro Alves <palves@redhat.com>
10793
5f2b57b5 10794 PR server/14823
3aee8918
PA
10795 * Makefile.in (OBS): Add tdesc.o.
10796 (IPA_OBJS): Add tdesc-ipa.o.
10797 (tdesc-ipa.o): New rule.
10798 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10799 interface.
10800 * linux-low.c (new_inferior): Delete.
10801 (disabled_regsets, num_regsets): Delete.
10802 (linux_add_process): Adjust to set the new per-process
10803 new_inferior flag.
10804 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10805 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10806 was a stop. When calling arch_setup, switch the current inferior
10807 to the thread that got an event.
10808 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10809 (regsets_fetch_inferior_registers)
10810 (regsets_store_inferior_registers): New regsets_info parameter.
10811 Adjust to use it.
10812 (linux_register_in_regsets): New regs_info parameter. Adjust to
10813 use it.
10814 (register_addr, fetch_register, store_register): New usrregs_info
10815 parameter. Adjust to use it.
10816 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10817 parameter regs_info. Adjust to use it.
10818 (linux_fetch_registers): Get the current inferior's regs_info, and
10819 adjust to use it.
10820 (linux_store_registers): Ditto.
10821 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10822 (initialize_low): Don't initialize the target_regsets here. Call
10823 initialize_low_arch.
10824 * linux-low.h (target_regsets): Delete declaration.
10825 (struct regsets_info): New.
10826 (struct usrregs_info): New.
10827 (struct regs_info): New.
10828 (struct process_info_private) <new_inferior>: New field.
10829 (struct linux_target_ops): Delete the num_regs, regmap, and
10830 regset_bitmap fields. New field regs_info.
10831 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10832 * i387-fp.c (num_xmm_registers): Delete.
10833 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10834 calls to new interface.
10835 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10836 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10837 Infer the number of xmm registers from the regcache's target
10838 description.
10839 * i387-fp.h (num_xmm_registers): Delete.
10840 * inferiors.c (add_thread): Don't install the thread's regcache
10841 here.
10842 * proc-service.c (gregset_info): Fetch the current inferior's
10843 regs_info. Adjust to use it.
10844 * regcache.c: Include tdesc.h.
10845 (register_bytes, reg_defs, num_registers)
10846 (gdbserver_expedite_regs): Delete.
10847 (get_thread_regcache): If the thread doesn't have a regcache yet,
10848 create one, instead of aborting gdbserver.
10849 (regcache_invalidate_one): Rename to ...
10850 (regcache_invalidate_thread): ... this.
10851 (regcache_invalidate_one): New.
10852 (regcache_invalidate): Only invalidate registers of the current
10853 process.
10854 (init_register_cache): Add target_desc parameter, and use it.
10855 (new_register_cache): Ditto. Assert the target description has a
10856 non zero registers_size.
10857 (regcache_cpy): Add assertions. Adjust.
10858 (realloc_register_cache, set_register_cache): Delete.
10859 (registers_to_string, registers_from_string): Adjust.
10860 (find_register_by_name, find_regno, find_register_by_number)
10861 (register_cache_size): Add target_desc parameter, and use it.
10862 (free_register_cache_thread, free_register_cache_thread_one)
10863 (regcache_release, register_cache_size): New.
10864 (register_size): Add target_desc parameter, and use it.
10865 (register_data, supply_register, supply_register_zeroed)
10866 (supply_regblock, supply_register_by_name, collect_register)
10867 (collect_register_as_string, collect_register_by_name): Adjust.
10868 * regcache.h (struct target_desc): Forward declare.
10869 (struct regcache) <tdesc>: New field.
10870 (init_register_cache, new_register_cache): Add target_desc
10871 parameter.
10872 (regcache_invalidate_thread): Declare.
10873 (regcache_invalidate_one): Delete declaration.
10874 (regcache_release): Declare.
10875 (find_register_by_number, register_cache_size, register_size)
10876 (find_regno): Add target_desc parameter.
10877 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10878 declarations.
10879 * remote-utils.c: Include tdesc.h.
10880 (outreg, prepare_resume_reply): Adjust.
10881 * server.c: Include tdesc.h.
10882 (gdbserver_xmltarget): Delete declaration.
10883 (get_features_xml, process_serial_event): Adjust.
10884 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10885 declare.
10886 (struct process_info) <tdesc>: New field.
10887 (ipa_tdesc): Declare.
10888 * tdesc.c: New file.
10889 * tdesc.h: New file.
10890 * tracepoint.c: Include tdesc.h.
10891 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10892 (get_context_regcache): Adjust to pass ipa_tdesc down.
10893 (do_action_at_tracepoint): Adjust to get the register cache size
10894 from the context regcache's description.
10895 (traceframe_walk_blocks): Adjust to get the register cache size
10896 from the current trace frame's description.
10897 (traceframe_get_pc): Adjust to get current trace frame's
10898 description and pass it down.
10899 (gdb_collect): Adjust to get the register cache size from the
10900 IPA's description.
10901 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10902 (gdbserver_xmltarget): Delete.
10903 (initialize_low_tracepoint): Set the ipa's target description.
10904 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10905 (initialize_low_tracepoint): Set the ipa's target description.
10906 * linux-x86-low.c: Include tdesc.h.
10907 [__x86_64__] (is_64bit_tdesc): New.
10908 (ps_get_thread_area, x86_get_thread_area): Use it.
10909 (i386_cannot_store_register): Rename to ...
10910 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10911 (i386_cannot_fetch_register): Rename to ...
10912 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10913 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10914 to new interface.
10915 (target_regsets): Rename to ...
10916 (x86_regsets): ... this.
10917 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10918 interface.
10919 (x86_siginfo_fixup): Use is_64bit_tdesc.
10920 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10921 (tdesc_x32_avx_linux, tdesc_x32_linux)
10922 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10923 Declare.
10924 (x86_linux_update_xmltarget): Delete.
10925 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10926 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10927 (AMD64_LINUX_USER64_CS): New.
10928 (x86_linux_read_description): New, based on
10929 x86_linux_update_xmltarget.
10930 (same_process_callback): New.
10931 (x86_arch_setup_process_callback): New.
10932 (x86_linux_update_xmltarget): New.
10933 (x86_regsets_info): New.
10934 (amd64_linux_regs_info): New.
10935 (i386_linux_usrregs_info): New.
10936 (i386_linux_regs_info): New.
10937 (x86_linux_regs_info): New.
10938 (x86_arch_setup): Reimplement.
10939 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10940 (x86_emit_ops): Ditto.
10941 (the_low_target): Adjust. Install x86_linux_regs_info,
10942 x86_cannot_fetch_register, and x86_cannot_store_register.
10943 (initialize_low_arch): New.
10944 * linux-ia64-low.c (tdesc_ia64): Declare.
10945 (ia64_fetch_register): Adjust.
10946 (ia64_usrregs_info, regs_info): New globals.
10947 (ia64_regs_info): New function.
10948 (the_low_target): Adjust.
10949 (initialize_low_arch): New function.
10950 * linux-sparc-low.c (tdesc_sparc64): Declare.
10951 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10952 Adjust.
10953 (sparc_arch_setup): New function.
10954 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10955 (the_low_target): Adjust.
10956 (initialize_low_arch): New function.
10957 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10958 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10959 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10960 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10961 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10962 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10963 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10964 (tdesc_powerpc_isa205_vsx64l): Declare.
10965 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10966 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10967 (ppc_set_pc, ppc_get_hwcap): Adjust.
10968 (ppc_usrregs_info): Forward declare.
10969 (!__powerpc64__) ppc_regmap_adjusted: New global.
10970 (ppc_arch_setup): Adjust to the current process'es target
10971 description.
10972 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10973 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10974 (ppc_store_evrregset): Adjust.
10975 (target_regsets): Rename to ...
10976 (ppc_regsets): ... this, and make static.
10977 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10978 (ppc_regs_info): New function.
10979 (the_low_target): Adjust.
10980 (initialize_low_arch): New function.
10981 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10982 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10983 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10984 (tdesc_s390x_linux64v2): Declare.
10985 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10986 (s390_fill_gregset, s390_store_last_break): Adjust.
10987 (target_regsets): Rename to ...
10988 (s390_regsets): ... this, and make static.
10989 (s390_get_pc, s390_set_pc): Adjust.
10990 (s390_get_hwcap): New target_desc parameter, and use it.
10991 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10992 (s390_arch_setup): Adjust to set the current process'es target
10993 description. Don't adjust the regmap.
10994 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10995 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10996 (regs_info_3264): New globals.
10997 (s390_regs_info): New function.
10998 (the_low_target): Adjust.
10999 (initialize_low_arch): New function.
11000 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11001 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11002 [__mips64] (init_registers_mips_linux)
11003 (init_registers_mips_dsp_linux): Delete defines.
11004 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11005 (have_dsp): New global.
11006 (mips_read_description): New, based on mips_arch_setup.
11007 (mips_arch_setup): Reimplement.
11008 (get_usrregs_info): New function.
11009 (mips_cannot_fetch_register, mips_cannot_store_register)
11010 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11011 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11012 (target_regsets): Rename to ...
11013 (mips_regsets): ... this, and make static.
11014 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11015 (dsp_regs_info, regs_info): New globals.
11016 (mips_regs_info): New function.
11017 (the_low_target): Adjust.
11018 (initialize_low_arch): New function.
11019 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11020 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11021 Declare.
11022 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11023 (arm_read_description): New, with bits factored from
11024 arm_arch_setup.
11025 (arm_arch_setup): Reimplement.
11026 (target_regsets): Rename to ...
11027 (arm_regsets): ... this, and make static.
11028 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11029 (arm_regs_info): New function.
11030 (the_low_target): Adjust.
11031 (initialize_low_arch): New function.
11032 * linux-m68k-low.c (tdesc_m68k): Declare.
11033 (target_regsets): Rename to ...
11034 (m68k_regsets): ... this, and make static.
11035 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11036 (m68k_regs_info): New function.
11037 (m68k_arch_setup): New function.
11038 (the_low_target): Adjust.
11039 (initialize_low_arch): New function.
11040 * linux-sh-low.c (tdesc_sharch): Declare.
11041 (target_regsets): Rename to ...
11042 (sh_regsets): ... this, and make static.
11043 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11044 (sh_regs_info, sh_arch_setup): New functions.
11045 (the_low_target): Adjust.
11046 (initialize_low_arch): New function.
11047 * linux-bfin-low.c (tdesc_bfin): Declare.
11048 (bfin_arch_setup): New function.
11049 (bfin_usrregs_info, regs_info): New globals.
11050 (bfin_regs_info): New function.
11051 (the_low_target): Adjust.
11052 (initialize_low_arch): New function.
11053 * linux-cris-low.c (tdesc_cris): Declare.
11054 (cris_arch_setup): New function.
11055 (cris_usrregs_info, regs_info): New globals.
11056 (cris_regs_info): New function.
11057 (the_low_target): Adjust.
11058 (initialize_low_arch): New function.
11059 * linux-cris-low.c (tdesc_crisv32): Declare.
11060 (cris_arch_setup): New function.
11061 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11062 (cris_regs_info): New function.
11063 (the_low_target): Adjust.
11064 (initialize_low_arch): New function.
11065 * linux-m32r-low.c (tdesc_m32r): Declare.
11066 (m32r_arch_setup): New function.
11067 (m32r_usrregs_info, regs_info): New globals.
11068 (m32r_regs_info): Adjust.
11069 (initialize_low_arch): New function.
11070 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11071 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11072 (tic6x_usrregs_info): Forward declare.
11073 (tic6x_read_description): New function, based on ...
11074 (tic6x_arch_setup): ... this. Reimplement.
11075 (target_regsets): Rename to ...
11076 (tic6x_regsets): ... this, and make static.
11077 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11078 (tic6x_regs_info): New function.
11079 (the_low_target): Adjust.
11080 (initialize_low_arch): New function.
11081 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11082 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11083 (target_regsets): Rename to ...
11084 (xtensa_regsets): ... this, and make static.
11085 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11086 globals.
11087 (xtensa_arch_setup, xtensa_regs_info): New functions.
11088 (the_low_target): Adjust.
11089 (initialize_low_arch): New function.
11090 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11091 (nios2_arch_setup): Set the current process'es tdesc.
11092 (target_regsets): Rename to ...
11093 (nios2_regsets): ... this.
11094 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11095 (nios2_regs_info): New function.
11096 (the_low_target): Adjust.
11097 (initialize_low_arch): New function.
a261b8f5
PA
11098 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11099 (aarch64_arch_setup): Set the current process'es tdesc.
11100 (target_regsets): Rename to ...
11101 (aarch64_regsets): ... this.
11102 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11103 (aarch64_regs_info): New function.
11104 (the_low_target): Adjust.
11105 (initialize_low_arch): New function.
3aee8918
PA
11106 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11107 globals.
11108 (target_regsets): Rename to ...
11109 (tile_regsets): ... this.
11110 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11111 (tile_regs_info): New function.
11112 (tile_arch_setup): Set the current process'es tdesc.
11113 (the_low_target): Adjust.
11114 (initialize_low_arch): New function.
11115 * spu-low.c (tdesc_spu): Declare.
11116 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11117 * win32-arm-low.c (tdesc_arm): Declare.
11118 (arm_arch_setup): New function.
11119 (the_low_target): Install arm_arch_setup instead of
11120 init_registers_arm.
11121 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11122 (init_windows_x86): Rename to ...
11123 (i386_arch_setup): ... this. Set `win32_tdesc'.
11124 (the_low_target): Adjust.
11125 * win32-low.c (win32_tdesc): New global.
11126 (child_add_thread): Don't create the thread cache here.
11127 (do_initial_child_stuff): Set the new process'es tdesc.
11128 * win32-low.h (struct target_desc): Forward declare.
11129 (win32_tdesc): Declare.
11130 * lynx-i386-low.c (tdesc_i386): Declare global.
11131 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11132 * lynx-low.c (lynx_tdesc): New global.
11133 (lynx_add_process): Set the new process'es tdesc.
11134 * lynx-low.h (struct target_desc): Forward declare.
11135 (lynx_tdesc): Declare global.
11136 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11137 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11138 * nto-low.c (nto_tdesc): New global.
11139 (do_attach): Set the new process'es tdesc.
11140 * nto-low.h (struct target_desc): Forward declare.
11141 (nto_tdesc): Declare.
11142 * nto-x86-low.c (tdesc_i386): Declare.
11143 (nto_x86_arch_setup): Set `nto_tdesc'.
11144
b1fbec62
GB
111452013-06-04 Gary Benson <gbenson@redhat.com>
11146
11147 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11148 to qSupported response when appropriate.
11149 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11150 with nonzero-length annex.
11151 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11152 arguments supplied in annex.
11153
d1ec4ce7
DE
111542013-05-31 Doug Evans <dje@google.com>
11155
ac44adcb 11156 PR server/15594
d1ec4ce7
DE
11157 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11158 64 bits in 64-cross-32 environment.
11159
9b25f2d3
PA
111602013-05-28 Pedro Alves <palves@redhat.com>
11161
11162 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11163 (aarch64-without-fpu.c): Delete rule.
11164 * configure.srv (aarch64*-*-linux*): Remove references to
11165 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11166 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11167 declaration.
11168
6740dc9c
PA
111692013-05-24 Pedro Alves <palves@redhat.com>
11170
11171 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11172 instead of strchr/decode_address. Error if the range isn't split
11173 with a ','. Don't assume there's be a ':' in the action.
11174
c2d6af84
PA
111752013-05-23 Yao Qi <yao@codesourcery.com>
11176 Pedro Alves <palves@redhat.com>
11177
11178 * linux-low.c (lwp_in_step_range): New function.
11179 (linux_wait_1): If the thread was range stepping and stopped
11180 outside the stepping range, report the stop to GDB. Otherwise,
11181 continue stepping. Add range stepping debug output.
11182 (linux_set_resume_request): Copy the step range from the resume
11183 request to the lwp.
11184 (linux_supports_range_stepping): New.
11185 (linux_target_ops) <supports_range_stepping>: Set to
11186 linux_supports_range_stepping.
11187 * linux-low.h (struct linux_target_ops)
11188 <supports_range_stepping>: New field.
11189 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11190 * linux-x86-low.c (x86_supports_range_stepping): New.
11191 (the_low_target) <supports_range_stepping>: Set to
11192 x86_supports_range_stepping.
11193 * server.c (handle_v_cont): Handle 'r' action.
11194 (handle_v_requests): Append ";r" if the target supports range
11195 stepping.
11196 * target.h (struct thread_resume) <step_range_start,
11197 step_range_end>: New fields.
11198 (struct target_ops) <supports_range_stepping>:
11199 New field.
11200 (target_supports_range_stepping): New macro.
11201
58794e1a
JB
112022013-05-17 Joel Brobecker <brobecker@adacore.com>
11203
11204 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11205 confusion in comment.
11206
d631c5a7
JB
112072013-05-17 Joel Brobecker <brobecker@adacore.com>
11208
11209 * lynx-low.c (struct process_info_private): New type.
11210 (lynx_add_process): New function.
11211 (lynx_create_inferior, lynx_attach): Replace calls to
11212 add_process by calls to lynx_add_process.
11213 (lynx_resume): If PTID is null, then try using
11214 current_process()->private->last_wait_event_ptid.
11215 Add comments.
11216 (lynx_clear_inferiors): Delete. The contents of that function
11217 has been inlined in lynx_mourn;
11218 (lynx_wait_1): Save the ptid in the process's private data.
11219 (lynx_mourn): Free the process' private data. Replace call
11220 to lynx_clear_inferiors by call to clear_inferiors.
11221
96f7a20f
YQ
112222013-05-17 Yao Qi <yao@codesourcery.com>
11223
11224 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11225 the right place.
11226
db0dfaa0
LM
112272013-05-16 Luis Machado <lgustavo@codesourcery.com>
11228
11229 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11230 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11231 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11232 PT_TEXT_END_ADDR guards. Update comments.
11233 (linux_target_op) <read_offsets>: Conditionally define to
11234 linux_read_offsets if the target is UCLIBC and if it defines
11235 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11236
68f5f838
SL
112372013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11238 Andrew Jenner <andrew@codesourcery.com>
11239
11240 * Makefile.in (SFILES): Add linux-nios2-low.c.
11241 (clean): Add action to delete nios2-linux.c.
11242 (nios2-linux.c): New rule.
11243 * configure.srv: Add nios2*-*-linux*.
11244 * linux-nios2-low.c: New.
11245
1ebff1fd
HAQ
112462013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11247
11248 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11249
f6150862
HZ
112502013-04-25 Hui Zhu <hui@codesourcery.com>
11251
11252 PR gdb/15186
f6150862
HZ
11253 * ax.c (ax_printf): Add fflush.
11254
614c279d
TT
112552013-04-22 Tom Tromey <tromey@redhat.com>
11256
11257 * Makefile.in (SFILES): Add filestuff.c.
11258 (OBS): Add filestuff.o.
11259 (filestuff.o): New target.
11260 * config.in, configure: Rebuild.
11261 * configure.ac: Check for fdwalk, pipe2.
11262
7d4e5717
PA
112632013-04-17 Pedro Alves <palves@redhat.com>
11264
11265 * configure.ac (USE_THREAD_DB): Delete variable.
11266 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11267 Don't AC_SUBST USE_THREAD_DB.
11268 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11269 * config.in, configure: Regenerate.
11270
d5c93e41
PA
112712013-04-16 Pedro Alves <palves@redhat.com>
11272
11273 * linux-low.h (struct lwp_info) <thread_known>: Move under
11274 the USE_THREAD_DB #ifdef.
11275
04f5fe89
PA
112762013-04-16 Pedro Alves <palves@redhat.com>
11277
11278 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11279 (linux-low.o): Delete rule.
11280 * linux-low.h: Always include "gdb_thread_db.h" instead of
11281 conditionally including thread_db.h.
11282 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11283 HAVE_THREAD_DB_H.
11284
480b27bf
JK
112852013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11286
11287 * Makefile.in (install-only): Fix make install regression.
11288
43662968
JK
112892013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11290
11291 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11292 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11293 installation.
11294 * gdbserver.1: Remove.
11295
3e74e146
PA
112962013-03-22 Pedro Alves <palves@redhat.com>
11297
11298 * linux-low.c (handle_extended_wait): Don't call
11299 linux_enable_event_reporting.
11300
a8347a2a
TT
113012013-03-15 Tony Theodore <tonyt@logyst.com>
11302
11303 PR build/9098:
11304 * Makefile.in (SHELL): Use @SHELL@.
11305
eeb56fa7
SDJ
113062013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11307
11308 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11309 compiler warning.
11310
4fa7e2ff
JB
113112013-03-13 Joel Brobecker <brobecker@adacore.com>
11312
11313 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11314 Remove extraneous NULL element.
11315
8ddb1965
YQ
113162013-03-13 Yao Qi <yao@codesourcery.com>
11317
11318 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11319 'V' block in trace frame.
11320
9accd112
MM
113212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11322
11323 * target.h (struct target_ops): Add btrace ops.
11324 (target_supports_btrace): New macro.
11325 (target_enable_btrace): New macro.
11326 (target_disable_btrace): New macro.
11327 (target_read_btrace): New macro.
11328 * gdbthread.h (struct thread_info): Add btrace field.
11329 * server.c: Include btrace-common.h.
11330 (handle_btrace_general_set): New function.
11331 (handle_btrace_enable): New function.
11332 (handle_btrace_disable): New function.
11333 (handle_general_set): Call handle_btrace_general_set.
11334 (handle_qxfer_btrace): New function.
11335 (struct qxfer qxfer_packets[]): Add btrace entry.
11336 * inferiors.c (remove_thread): Disable btrace.
11337 * linux-low: Include linux-btrace.h.
11338 (linux_low_enable_btrace): New function.
11339 (linux_low_read_btrace): New function.
11340 (linux_target_ops): Add btrace ops.
11341 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11342 Add srv_linux_btrace=yes.
11343 (x86_64-*-linux*): Add linux-btrace.o.
11344 Add srv_linux_btrace=yes.
11345 * configure.ac: Define HAVE_LINUX_BTRACE.
11346 * config.in: Regenerated.
11347 * configure: Regenerated.
11348
5cc22e4c
MM
113492013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11350
11351 * server.c (handle_qxfer): Preserve error message if -3 is
11352 returned.
11353 (qxfer): Document the -3 return value.
11354
7c97f91e
MM
113552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11356
11357 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11358 (linux_btrace_h): New variable.
11359 (linux-btrace.o): New rule.
11360
be9a119c 113612013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11362 Hafiz Abid Qadeer <abidh@codesourcery.com>
11363
11364 * tracepoint.c (trace_buffer_size): New global.
11365 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11366 (init_trace_buffer): Change to one-argument function. Allocate
11367 trace buffer memory.
11368 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11369 handle QTBuffer:size packet.
11370 (cmd_bigqtbuffer_size): New function.
11371 (initialize_tracepoint): Call init_trace_buffer with
11372 DEFAULT_TRACE_BUFFER_SIZE.
11373 * server.c (handle_query): Add QTBuffer:size in the
11374 supported packets.
11375
e64f7499
YQ
113762013-03-07 Yao Qi <yao@codesourcery.com>
11377
11378 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11379 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11380 of -1.
11381 (cmd_qtsp): Adjust condition. Do post increment.
11382 Set cur_action and cur_step_action back to 0.
11383
f0ae6fc3
PA
113842013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11385
11386 PR server/15236
11387 * linux-low.c (linux_write_memory): Return early success if LEN is
11388 zero.
11389
b5b0b0af
CV
113902013-03-05 Corinna Vinschen <vinschen@redhat.de>
11391
334ad4a8 11392 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 11393
589bc927
TT
113942013-02-28 Tom Tromey <tromey@redhat.com>
11395
11396 * configure.ac: Invoke AC_SYS_LARGEFILE.
11397 * configure, config.in: Rebuild.
11398
dfe07582
CV
113992013-02-28 Corinna Vinschen <vinschen@redhat.com>
11400
11401 * win32-low.c: Throughout, fix format strings and casts of
11402 printf-like functions to avoid type related warnings on all
11403 platforms.
11404 (get_child_debug_event): Print dwDebugEventCode as hex since
11405 that's how it's usually documented.
11406
736cd585
YQ
114072013-02-28 Yao Qi <yao@codesourcery.com>
11408
11409 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11410 pulongest.
11411
e1f58301
JW
114122013-02-27 Jiong Wang <jiwang@tilera.com>
11413
11414 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11415 (reg-tilegx32.c): New rule.
11416 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11417 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11418 different register info initializer according to elf class.
11419 (init_registers_tilgx32): New function. The tilegx32 register info
11420 initializer.
11421 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11422 (tile_store_gregset): Likewise.
11423
d171ca78
YQ
114242013-02-27 Yao Qi <yao@codesourcery.com>
11425
11426 * server.c (process_point_options): Print debug message when
11427 debug_threads is true.
11428
282bbdf3
YQ
114292013-02-26 Yao Qi <yao@codesourcery.com>
11430
11431 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11432
aca22551
PA
114332013-02-19 Pedro Alves <palves@redhat.com>
11434 Kai Tietz <ktietz@redhat.com>
11435
11436 PR gdb/15161
11437
11438 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11439 instead of strtoul to extract address from packet.
11440 (process_serial_event) <'z'>: Likewise.
11441
4f3cee1c
YQ
114422013-02-18 Yao Qi <yao@codesourcery.com>
11443
11444 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11445
8e1d55a3
PA
114462013-02-14 Pedro Alves <palves@redhat.com>
11447
11448 Plug memory leak.
11449
11450 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11451 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11452
458820da
PA
114532013-02-14 Pedro Alves <palves@redhat.com>
11454
11455 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11456
baea0dae
PA
114572013-02-14 Pedro Alves <palves@redhat.com>
11458
11459 * tracepoint.c (save_string): Delete.
11460 (add_tracepoint_action): Use savestring instead of save_string.
11461
0b1afbb3
PA
114622013-02-12 Pedro Alves <palves@redhat.com>
11463
11464 * linux-xtensa-low.c: Ditto.
11465 * xtensa-xtregs.c: Ditto.
11466
8a4ac37e
PA
114672013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11468
11469 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11470 thread_db.
11471
148de6bb
MS
114722013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11473
11474 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11475 aarch64_num_wp_regs and aarch64_num_bp_regs to
11476 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11477
55fac6e0
MS
114782013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11479
11480 * linux-aarch64-low.c (ps_get_thread_area): Replace
11481 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11482
176eb98c
MS
114832013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11484 Marcus Shawcroft <marcus.shawcroft@arm.com>
11485 Nigel Stephens <nigel.stephens@arm.com>
11486 Yufeng Zhang <yufeng.zhang@arm.com>
11487
11488 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11489 (aarch64.c, aarch64-without-fpu.c): New targets.
11490 * configure.srv (aarch64*-*-linux*): New.
11491 * linux-aarch64-low.c: New file.
11492
56f7af9c
MS
114932013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11494
43aaf8b6 11495 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
11496 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11497 (dequeue_one_deferred_signal, linux_resume_one_thread)
11498 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11499 (linux_tracefork_grandchild, linux_test_for_tracefork)
11500 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11501 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11502 where the argument is 0.
11503
60f662b0
YQ
115042013-01-25 Yao Qi <yao@codesourcery.com>
11505
11506 * event-loop.c: Include "queue.h".
11507 (gdb_event_p): New typedef.
11508 (struct gdb_event) <next_event>: Remove.
11509 (event_queue): Change to QUEUE(gdb_event_p).
11510 (async_queue_event): Remove.
11511 (gdb_event_xfree): New.
11512 (initialize_event_loop): New.
11513 (process_event): Use API from QUEUE.
11514 (wait_for_event): Likewise.
11515 * server.c (main): Call initialize_event_loop.
11516 * server.h (initialize_event_loop): Declare.
11517
5ae4861a
YQ
115182013-01-18 Yao Qi <yao@codesourcery.com>
11519
11520 * ax.h (struct eval_agent_expr_context): New.
11521 (gdb_eval_agent_expr): Update declaration.
11522 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11523 TFRAME. Add new argument CTX.
11524 * server.h (struct eval_agent_expr_context): Declare.
11525 (agent_mem_read, agent_tsv_read): Update declaration.
11526 (agent_mem_read_string): Likewise.
11527 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11528 (add_traceframe_block): Add new argument TPOINT.
11529 Increase TPOINT->traceframe_usage.
11530 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11531 eval_tracepoint_agent_expr.
11532 (condition_true_at_tracepoint): Likewise.
11533 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11534 (agent_mem_read_string, agent_tsv_read): Likewise.
11535
85e00e85
YQ
115362013-01-16 Yao Qi <yao@codesourcery.com>
11537
11538 * linux-low.c (linux_resume_one_lwp): Don't check
11539 'lwp->bp_reinsert != 0'.
11540
4039cf45
JB
115412013-01-07 Joel Brobecker <brobecker@adacore.com>
11542 Pedro Alves <palves@redhat.com>
11543
11544 * lynx-low.c (ptrace_request_to_str): Define a temporary
11545 macro and use it to simplify this function's implementation.
11546
9044dee2
JB
115472013-01-07 Joel Brobecker <brobecker@adacore.com>
11548
11549 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11550 sets errno.
11551
e6352c8f
JB
115522013-01-07 Joel Brobecker <brobecker@adacore.com>
11553
11554 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11555
50681a27
JB
115562013-01-07 Joel Brobecker <brobecker@adacore.com>
11557
11558 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11559
3f6e77ef
JB
115602013-01-07 Joel Brobecker <brobecker@adacore.com>
11561
11562 * lynx-low.c (lynx_resume): Use the resume_info parameter
11563 to determine the ptid for the lynx_ptrace call, unless
11564 it is equal to minus_one_ptid, in which case we use the
11565 ptid of the current_inferior.
11566 (lynx_wait_1): After having received a thread create/exit
11567 event, resume the inferior's execution using the signaling
11568 thread's ptid, rather than the old ptid.
11569
7fda33ae
JB
115702013-01-07 Joel Brobecker <brobecker@adacore.com>
11571
11572 * lynx-low.c (lynx_resume): Delete variable ret.
11573
b9786c74
JB
115742013-01-01 Joel Brobecker <brobecker@adacore.com>
11575
11576 * gdbreplay.c (gdbreplay_version): Update copyright year.
11577 * server.c (gdbserver_version): Likewise.
11578
8b93d60f
JB
115792012-12-17 Joel Brobecker <brobecker@adacore.com>
11580
11581 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11582 new thread.
11583
037335a7
JB
115842012-12-17 Joel Brobecker <brobecker@adacore.com>
11585
11586 * lynx-low.c (ptrace_request_to_str): Add handling for
11587 PTRACE_GETTRACESIG.
11588
52d4cbd8
JB
115892012-12-17 Joel Brobecker <brobecker@adacore.com>
11590
11591 * lynx-low.c (lynx_attach): Delete variable new_process.
11592
ab8f6ca9
JB
115932012-12-17 Joel Brobecker <brobecker@adacore.com>
11594
11595 * lynx-low.c (lynx_create_inferior): Delete variable
11596 new_process.
11597
78cbc024
JB
115982012-12-17 Joel Brobecker <brobecker@adacore.com>
11599
11600 * lynx-low.c (ptrace_request_to_str): Do not handle
11601 PTRACE_GETTHREADLIST if this macro does not exist.
11602
14a00470
YQ
116032012-12-15 Yao Qi <yao@codesourcery.com>
11604
11605 * Makefile.in (OBS): Add notif.o.
11606 * notif.c, notif.h: New.
11607 * server.c: Include "notif.h".
11608 (struct vstop_notif) <next>: Remove.
11609 <base>: New field.
11610 (queue_stop_reply): Update.
11611 (push_event, send_next_stop_reply): Remove.
11612 (discard_queued_stop_replies): Update.
11613 (notif_stop): New variable.
11614 (handle_v_stopped): Remove.
11615 (handle_v_requests): Don't call handle_v_stopped. Call
11616 handle_ack_notif instead.
11617 (queue_stop_reply_callback): Call notif_event_enque instead
11618 of queue_stop_reply.
11619 (handle_status): Don't call send_next_stop_reply, call
11620 notif_write_event instead.
11621 (kill_inferior_callback): Likewise.
11622 (detach_or_kill_inferior_callback): Likewise.
11623 (main): Call initialize_notif.
11624 (process_serial_event): Call QUEUE_is_empty.
11625 (handle_target_event): Call notif_push instead of push event.
11626 * server.h (push_event): Remove declaration.
11627
61c125b9
TT
116282012-12-10 Tom Tromey <tromey@redhat.com>
11629
11630 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
11631 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
11632 macros.
11633 (.c.o): Rewrite.
11634 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
11635 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
11636 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
11637 (amd64-linux-ipa.o, ax.o): Rewrite.
11638 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
11639 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
11640 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
11641 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
11642 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
11643 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
11644 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
11645 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
11646 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
11647 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
11648 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
11649 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
11650 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
11651 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
11652 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11653 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11654 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11655 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11656 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11657 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11658 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11659 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11660 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11661 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11662 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11663 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11664 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11665 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11666 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11667 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11668 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11669 (reg-tilegx.o): Remove.
11670 (all_object_files): New macro.
11671 Include .deps files.
11672 * aclocal.m4, configure: Rebuild.
11673 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11674 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11675 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11676
e90e9ad9
TT
116772012-12-05 Tom Tromey <tromey@redhat.com>
11678
11679 PR gdb/14917:
11680 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11681
02d403bf 116822012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
11683
11684 * configure.ac: Check for linux/perf_event.h.
11685 * config.in: Regenerated.
11686 * configure: Regenerated.
11687
0270a750
PA
116882012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11689
11690 * hostio.c (handle_readlink): Decrease buffer size
11691 parameter passed to readlink by one byte.
11692
8c29b58e
YQ
116932012-11-26 Yao Qi <yao@codesourcery.com>
11694
11695 * configure.ac (build_warnings): Append '-Wempty-body'.
11696 * configure: Regenerated.
11697 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11698 body.
11699
8bdce1ff
PM
117002012-11-15 Pierre Muller <muller@sourceware.org>
11701
11702 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11703 * config.in: Regenerate.
11704 * configure: Regenerate.
11705 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11706 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11707 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11708 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11709 header.
11710 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11711 instead of <sys/wait.h> header.
11712 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11713
02d403bf 117142012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
11715
11716 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11717 (various make rules): Remove -DGDBSERVER
11718
fbd5db48
YQ
117192012-11-09 Yao Qi <yao@codesourcery.com>
11720
11721 * spu-low.c (current_ptid): Move it to ..
11722 * gdbthread.h: ... here. New.
11723 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11724 * server.c (myresume, process_serial_event): Likewise.
11725 * thread-db.c (thread_db_find_new_threads): Likewise.
11726 * tracepoint.c (run_inferior_command): Likewise.
11727
b3dc46ff
AB
117282012-10-01 Andrew Burgess <aburgess@broadcom.com>
11729
11730 * server.c (handle_search_memory_1): Include access length in
11731 warning message.
11732
07c04788
HPN
117332012-09-05 Michael Brandt <michael.brandt@axis.com>
11734
11735 * linux-crisv32-low.c: Fix compile errors.
11736
918d227b
YQ
117372012-09-04 Yao Qi <yao@codesourcery.com>
11738
11739 * tracepoint.c (cmd_qtsv): Adjust debug message.
11740 Don't check CUR_TPOINT.
11741
18c1b81a
YQ
117422012-08-28 Yao Qi <yao@codesourcery.com>
11743
11744 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11745 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11746 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11747 Remove declarations of xmalloc, xreallloc, xstrdup and
11748 freeargv.
11749 * Makefile.in (libiberty_h): New.
11750 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11751 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11752
dc82f37b
YQ
117532012-08-23 Yao Qi <yao@codesourcery.com>
11754
11755 * server.h: Remove declaration of 'xsnprintf'.
11756
406b1477
KS
117572012-08-22 Keith Seitz <keiths@redhat.com>
11758
11759 * server.h: Include build-gnulib-gbserver/config.h.
11760 * gdbreplay.c: Likewise.
11761
e6712ff1
DE
117622012-08-08 Doug Evans <dje@google.com>
11763
11764 * Makefile.in (SFILES): Add gdb_vecs.c.
11765 (OBS): Add gdb_vecs.o.
11766 (gdb_vecs_h, host_defs_h): New variables.
11767 (thread-db.o): Add $(gdb_vecs_h) dependency.
11768 (gdb_vecs.o): New rule.
11769 * thread-db.c: #include "gdb_vecs.h".
11770 (thread_db_load_search): Use a vector to iterate over path elements.
11771 Handle text appearing after "$pdir".
11772
11773 * configure.ac: Add check for strstr.
11774 * config.in: Regenerate.
11775 * configure: Regenerate.
11776
7c3270ae
UW
117772012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11778
11779 * hostio.c (handle_pread): If pread fails, fall back to attempting
11780 lseek/read.
11781 (handle_pwrite): Likewise for pwrite.
11782
b62e2b27
UW
117832012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11784
11785 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11786 between unsupported TYPE and unimplementable ADDR/LEN combination.
11787 (arm_insert_point): Act on new return value.
11788
78a99e91
PA
117892012-07-31 Pedro Alves <palves@redhat.com>
11790
11791 * server.c (process_point_options): Only skip tokens if we find
11792 one that is unrecognized. Don't treat 'X' specially while
11793 skipping unrecognized tokens.
11794
fcf303ab
UW
117952012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11796
11797 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11798 to 4-byte-align HW breakpoint addresses for Thumb.
11799
7255706c
YQ
118002012-07-27 Yao Qi <yao@codesourcery.com>
11801
11802 PR remote/14161.
11803
11804 * server.h: Declare gdb_agent_about_to_close.
11805 * target.c (kill_inferior): Include "agent.h".
11806 New. Send command 'kill'.
11807 * target.h (kill_inferior): Removed macro.
11808 * tracepoint.c (gdb_agent_about_to_close): New.
11809 (gdb_agent_helper_thread): Handle command 'close'.
11810 Wait endlessly until the inferior stops.
11811 Install gdb_agent_remove_socket to atexit hook.
11812 (agent_socket_name): New static variable.
11813 (gdb_agent_socket_init): Replace local variable 'name' with
11814 'agent_socket_name'.
11815 (gdb_agent_remove_socket): New.
11816
5a3f286f
YQ
118172012-07-27 Yao Qi <yao@codesourcery.com>
11818
11819 * server.c (process_point_options): Stop at 'X' when parsing.
11820
961bd387
ME
118212012-07-19 Michael Eager <eager@eagercon.com>
11822
a261b8f5 11823 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
11824 to hw_execute.
11825 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11826 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11827 hardware breakpoint.
11828
aa7c7447
JK
118292012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11830
11831 * gdbserver/linux-low.c (initialize_low): Call
11832 linux_ptrace_init_warnings.
11833
7f216e7c
DE
118342012-07-02 Doug Evans <dje@google.com>
11835
11836 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11837 pointer to int.
11838
d3ce09f5
SS
118392012-07-02 Stan Shebs <stan@codesourcery.com>
11840
11841 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11842 (ax.o): Add it to build rule.
11843 (ax-ipa.o): Ditto.
11844 (OBS): Add format.o.
11845 (IPA_OBS): Add format.o.
11846 * server.c (handle_query): Claim support for breakpoint commands.
11847 (process_point_options): Add command case.
11848 (process_serial_event): Leave running if there are printfs in
11849 effect.
11850 * mem-break.h (any_persistent_commands): Declare.
11851 (add_breakpoint_commands): Declare.
11852 (gdb_no_commands_at_breakpoint): Declare.
11853 (run_breakpoint_commands): Declare.
11854 * mem-break.c (struct point_command_list): New struct.
11855 (struct breakpoint): New field command_list.
11856 (any_persistent_commands): New function.
11857 (add_commands_to_breakpoint): New function.
11858 (add_breakpoint_commands): New function.
11859 (gdb_no_commands_at_breakpoint): New function.
11860 (run_breakpoint_commands): New function.
11861 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11862 locally.
11863 * ax.c: Include format.h.
11864 (ax_printf): New function.
11865 (gdb_eval_agent_expr): Add printf opcode.
11866
2f8f6aed
YQ
118672012-06-13 Yao Qi <yao@codesourcery.com>
11868
11869 * server.c (start_inferior): Remove duplicated writes to fields
11870 'last_resume_kind' and 'last_status' of 'current_inferior'.
11871
0c9070b3
YQ
118722012-06-12 Yao Qi <yao@codesourcery.com>
11873 Pedro Alves <palves@redhat.com>
11874
11875 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11876 comment.
11877 * server.c (handle_v_cont): Extend comment.
11878
c52daf70
YQ
118792012-06-11 Yao Qi <yao@codesourcery.com>
11880
11881 * linux-low.c (linux_attach): Add 'static'.
11882
d38bbb0a
YQ
118832012-06-06 Yao Qi <yao@codesourcery.com>
11884
11885 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11886
89dc0afd
JK
118872012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11888
11889 Fix gcc -flto compilation warning.
11890 * server.c (main): Make variable multi_mode and attach volatile.
11891
75f62ce7
TJB
118922012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11893
11894 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11895 if the platform doesn't know about it.
11896
65f479b6
PA
118972012-05-30 Jeff Kenton <jkenton@tilera.com>
11898
11899 * Makefile.in (SFILES): Add linux-tile-low.c.
11900 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11901 * configure.srv: Handle tilegx-*-linux*.
11902 * linux-tile-low.c: New file.
11903
0c5bf5a9
JK
119042012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11905
11906 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11907
a493e3e2
PA
119082012-05-24 Pedro Alves <palves@redhat.com>
11909
11910 PR gdb/7205
11911
43aaf8b6 11912 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 11913
2ea28649
PA
119142012-05-24 Pedro Alves <palves@redhat.com>
11915
11916 PR gdb/7205
11917
11918 Replace target_signal with gdb_signal throughout.
11919
8d409d16
MR
119202012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11921
11922 * linux-low.c (linux_store_registers): Avoid the copying sequence
11923 when no data has been retrieved by ptrace.
11924
23512c01
MGD
119252012-05-22 Will Deacon <will.deacon@arm.com>
11926
11927 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11928 Include asm/ptrace.h.
11929 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11930 already defined.
11931
4934b29e
MR
119322012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11933
11934 * linux-low.c (linux_store_registers): Don't re-retrieve data
11935 with ptrace that has already been obtained from /proc. Always
11936 copy any data retrieved with ptrace to the buffer supplied.
11937
bde24c0a
PA
119382012-05-11 Yao Qi <yao@codesourcery.com>
11939 Pedro Alves <palves@redhat.com>
11940
11941 * linux-low.c (enum stopping_threads_kind): New.
11942 (stopping_threads): Change type to `enum stopping_threads_kind'.
11943 (handle_extended_wait): If stopping and suspending threads, leave
11944 the new_lwp suspended too.
11945 (linux_wait_for_event): Adjust.
11946 (stop_all_lwps): Set `stopping_threads' to
11947 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11948 whether we're suspending threads or just stopping them. Assert no
11949 recursion happens.
11950
623b6bdf
YQ
119512012-04-29 Yao Qi <yao@codesourcery.com>
11952
11953 * server.h: Move some code to ...
11954 * gdbthread.h: ... here. New.
11955 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11956 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11957 (nto-low.o, win32-low.o): Likewise.
11958 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11959 * regcache.c, remote-utils.c, server.c: Likewise.
11960 * target.c, tracepoint.c, win32-low.c: Likewise.
11961
f15f9948
TJB
119622012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11963
11964 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11965 (PTRACE_ARG4_TYPE): Likewise.
11966 (PTRACE_XFER_TYPE): Likewise.
11967 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11968 ptrace to PTRACE_ARG3_TYPE.
11969 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11970 (PTRACE_ARG4_TYPE): Likewise.
11971 (PTRACE_XFER_TYPE): Likewise.
11972 (linux_detach_one_lwp): Cast fourth argument of
11973 ptrace to long then PTRACE_ARG4_TYPE.
11974 (regsets_fetch_inferior_registers): Cast third argument of
11975 ptrace to long then PTRACE_ARG3_TYPE.
11976 (regsets_store_inferior_registers): Likewise.
11977
38ea300a
PA
119782012-04-20 Pedro Alves <palves@redhat.com>
11979
11980 * configure: Regenerate.
11981
c971b7fa
PA
119822012-04-19 Pedro Alves <palves@redhat.com>
11983
43aaf8b6 11984 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 11985 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
11986 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11987 (all, install-only, uninstall, clean-info, all-lib, clean): No
11988 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11989 (maintainer-clean realclean distclean): Use subdir_do.
11990 (subdir_do): New.
11991 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 11992 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
11993 * acinclude.m4: Include acx_configure_dir.m4.
11994 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11995 calls. Call AC_PROG_RANLIB. Configure gnulib using
11996 ACX_CONFIGURE_DIR.
11997 (GNULIB): New.
11998 (GNULIB_STDINT_H): Adjust.
11999 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12000 * gdbreplay.c: Include build-gnulib/config.h.
12001 * server.h: Likewise.
12002 * aclocal.m4: Regenerate.
12003 * config.in: Regenerate.
12004 * configure: Regenerate.
c971b7fa 12005
809277f8
PA
120062012-04-19 Pedro Alves <palves@redhat.com>
12007
12008 * Makefile.in (LIBGNU, INCGNU): Adjust.
12009 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12010 (all, install-only, uninstall, clean-info, all-lib, clean)
12011 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12012 * configure.ac: Adjust AC_OUTPUT output.
12013 * aclocal.m4: Regenerate.
12014 * configure: Regenerate.
12015
fd9bb8b8
PA
120162012-04-19 Pedro Alves <palves@redhat.com>
12017
12018 * Makefile.in (generated_files): New.
12019 (server_h): Remove the explicit dependency on config.h, and depend
12020 on $generated_files.
12021
1c298c66
PA
120222012-04-19 Pedro Alves <palves@redhat.com>
12023
12024 * Makefile.in (INCGNU): Add -Ignulib.
12025
57c4b50b
PA
120262012-04-19 Pedro Alves <palves@redhat.com>
12027
12028 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12029 (INCGNU): ... this, and spell out -I here.
12030 (GNULIB_LIB): Rename to ...
12031 (LIBGNU): ... this.
12032 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12033
1030e047
PA
120342012-04-19 Pedro Alves <palves@redhat.com>
12035
12036 * config.in: Regenerate.
12037
447d4319
PA
120382012-04-19 Pedro Alves <palves@redhat.com>
12039
12040 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12041 * server.h (memmem): Remove declaration.
12042 * config.in: Regenerate.
12043 * configure: Regenerate.
12044
aad9eab9
YQ
120452012-04-19 Yao Qi <yao@codesourcery.com>
12046
12047 * Makefile.in (SFILES): Add common/vec.c.
12048 (OBS): Add vec.o.
12049 (vec.o): New rule.
12050
3e10640f
YQ
120512012-04-19 Yao Qi <yao@codesourcery.com>
12052
12053 * remote-utils.c (prepare_resume_reply): Replace with macro
12054 target_core_of_thread.
12055 * server.c (handle_qxfer_threads_proper): Likewise.
12056 * target.h (traget_core_of_thread): New macro.
12057
71622373
PA
120582012-04-18 Pedro Alves <palves@redhat.com>
12059
12060 * aclocal.m4: Regenerate.
12061 * configure: Regenerate.
12062
80d26939
YQ
120632012-04-16 Yao Qi <yao@codesourcery.com>
12064
12065 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12066 duplicated on address.
12067
42476b70
YQ
120682012-04-16 Yao Qi <yao@codesourcery.com>
12069
12070 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12071 (struct tracepoint_action_ops) <send>: New field.
12072 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12073 (agent_expr_send, x_tracepoint_action_send): New.
12074 (l_tracepoint_action_send): New.
12075 (cmd_qtdp): Download and install tracepoint
12076 according to `use_agent'.
12077 (run_inferior_command): Add one more parameter `len'.
12078 Update callers.
12079 (tracepoint_send_agent): New.
12080 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12081
7bc83639
YQ
120822012-04-16 Yao Qi <yao@codesourcery.com>
12083
12084 * tracepoint.c (download_tracepoints): Moved to ...
12085 (cmd_qtstart): ... here.
12086
5f18041e
YQ
120872012-04-14 Yao Qi <yao@codesourcery.com>
12088
12089 * tracepoint.c: Include inttypes.h.
12090 (struct collect_memory_action): Use sized types.
12091 (struct tracepoint): Likewise.
12092 (cmd_qtdp, stop_tracing): Update print specifiers.
12093 (cmd_qtp, response_tracepoint): Likewise.
12094 (collect_data_at_tracepoint): Likewise.
12095 (collect_data_at_step): Likewise.
12096
55a8c076
YQ
120972012-04-14 Yao Qi <yao@codesourcery.com>
12098
12099 Import gnulib module inttypes.
12100 * aclocal.m4, config.in, configure: Regenerated.
12101
dc750257
YQ
121022012-04-14 Yao Qi <yao@codesourcery.com>
12103
12104 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12105 Makefile and config.status at last.
12106
0ab5faf9
YQ
121072012-04-13 Yao Qi <yao@codesourcery.com>
12108
12109 * tracepoint.c: Include stdint.h unconditionally.
12110
18f5fd81
TJB
121112012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12112
12113 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12114 on BFD_HAVE_SYS_PROCFS_TYPE.
12115 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12116 * configure: Regenerate.
12117 * config.in: Likewise.
12118
4d47af5c
L
121192012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12120
12121 * Makefile.in (clean): Also remove x32.c x32-linux.c
12122 x32-avx.c x32-avx-linux.c.
12123 (x32.o): New target.
12124 (x32.c): Likewise.
12125 (x32-linux.o): Likewise.
12126 (x32-linux.c): Likewise.
12127 (x32-avx.o): Likewise.
12128 (x32-avx.c): Likewise.
12129 (x32-avx-linux.o): Likewise.
12130 (x32-avx-linux.c): Likewise.
12131
12132 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12133 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12134 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12135 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12136 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12137 i386/x32-avx-linux.xml.
12138
12139 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12140 (init_registers_x32_avx_linux): Likwise.
12141 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12142 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12143
ecedbe58
PA
121442012-04-13 Pedro Alves <palves@redhat.com>
12145
12146 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12147 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12148 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12149 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12150 the sub-make.
12151
c92b5177
L
121522012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12153
12154 * linux-x86-low.c (compat_x32_clock_t): New.
12155 (compat_x32_siginfo_t): Likewise.
12156 (compat_x32_siginfo_from_siginfo): Likewise.
12157 (siginfo_from_compat_x32_siginfo): Likewise.
12158 (linux_is_elf64): Likewise.
12159 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12160 and siginfo_from_compat_x32_siginfo for x32.
12161 (x86_arch_setup): Set linux_is_elf64.
12162
214d508e
L
121632012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12164
12165 PR gdb/13969
12166 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12167 e_machine field.
12168 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12169 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12170 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12171 compatible with process.
12172
c9a1864a
YQ
121732012-04-12 Yao Qi <yao@codesourcery.com>
12174
12175 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12176 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12177 (install-only, install-info, clean): Handle sub dir gnulib.
12178 (all-lib, am--refresh): New targets.
12179 (memmem.o): Remove target.
12180 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12181 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12182 (AC_REPLACE_FUNCS): Remove memmem.
12183 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12184 (AC_OUTPUT): Generate Makefile in gnulib/.
12185 * aclocal.m4, config.in, configure: Regenerated.
12186
367ba2c2
MR
121872012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12188
12189 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12190
9d236627
PA
121912012-04-05 Pedro Alves <palves@redhat.com>
12192
12193 -Werror=strict-aliasing
12194
12195 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12196 pointer.
12197
111217b3
PA
121982012-04-04 Pedro Alves <palves@redhat.com>
12199
12200 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12201 (sparc_store_gregset_from_stack, sparc_store_gregset)
12202 (sparc_breakpoint_at): Fix formatting.
12203
8365dcf5
TJB
122042012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12205
12206 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12207 are available.
12208 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12209 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12210 * config.in: Regenerate.
12211 * configure: Likewise.
12212
689cc2ae
PA
122132012-03-29 Pedro Alves <palves@redhat.com>
12214
12215 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12216 Correct ptrace arguments.
12217
c14dfd32
PA
122182012-03-28 Pedro Alves <palves@redhat.com>
12219
12220 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12221 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12222 (IA64_FR1_REGNUM): New defines.
12223 (ia64_fetch_register): New.
12224 (the_low_target): Install it.
12225 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12226 field.
12227 * linux-low.c (linux_fetch_registers): Try the
12228 the_low_target.fetch_register hook first.
12229
12230 * linux-arm-low.c (the_low_target): Adjust.
12231 * linux-bfin-low.c (the_low_target): Adjust.
12232 * linux-cris-low.c (the_low_target): Adjust.
12233 * linux-crisv32-low.c (the_low_target): Adjust.
12234 * linux-m32r-low.c (the_low_target): Adjust.
12235 * linux-m68k-low.c (the_low_target): Adjust.
12236 * linux-mips-low.c (the_low_target): Adjust.
12237 * linux-ppc-low.c (the_low_target): Adjust.
12238 * linux-s390-low.c (the_low_target): Adjust.
12239 * linux-sh-low.c (the_low_target): Adjust.
12240 * linux-sparc-low.c (the_low_target): Adjust.
12241 * linux-tic6x-low.c (the_low_target): Adjust.
12242 * linux-x86-low.c (the_low_target): Adjust.
12243 * linux-xtensa-low.c (the_low_target): Adjust.
12244
63c88e13
PA
122452012-03-26 Pedro Alves <palves@redhat.com>
12246
12247 * server.c (handle_qxfer_libraries): Don't bail early if
12248 the_target->qxfer_libraries_svr4 is not NULL.
12249
fb723180
PA
122502012-03-26 Pedro Alves <palves@redhat.com>
12251
12252 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12253
0afae3cf
PA
122542012-03-23 Pedro Alves <palves@redhat.com>
12255
12256 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12257 "library-list-svr4" element's start tag when the the DSO list is
12258 empty.
12259
485f1ee4
PA
122602012-03-23 Pedro Alves <palves@redhat.com>
12261
12262 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12263 a variable whose type size is the same as the inferior's pointer
12264 size.
12265
a5362b9a
TS
122662012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12267
12268 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12269 struct siginfo.
12270 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12271 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12272 * linux-low.h: Include <signal.h>.
12273 (struct siginfo): Remove forward declaration.
12274 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12275 struct siginfo.
12276
d226c142
MF
122772012-03-21 Mike Frysinger <vapier@gentoo.org>
12278
12279 * .gitignore: Ignore more files.
12280
122f36ef
PA
122812012-03-19 Pedro Alves <palves@redhat.com>
12282 Jan Kratochvil <jan.kratochvil@redhat.com>
12283
12284 * server.c (cont_thread, general_thread): Add describing comments.
12285 (start_inferior): Clear `cont_thread'.
12286 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12287 of a process.
12288
fc3e5175
YQ
122892012-03-15 Yao Qi <yao@codesourcery.com>
12290
12291 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12292 handling to ...
12293 (cmd_qtdp): ... here.
12294
8d0d92cd
YQ
122952012-03-15 Yao Qi <yao@codesourcery.com>
12296
12297 * tracepoint.c (struct tracepoint_action_ops): New.
12298 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12299 (m_tracepoint_action_download): New.
12300 (r_tracepoint_action_download): New.
12301 (x_tracepoint_action_download): New.
12302 (l_tracepoint_action_download): New.
12303 (add_tracepoint_action): Install `action->ops' according type.
12304 (download_tracepoint_1): Move code `download' function pointer
12305 of various tracepoint_action_ops.
12306
87b0bb13
JK
123072012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12308
12309 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12310 linux_ptrace_attach_warnings.
12311
5f572dec
JK
123122012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12313
12314 * Makefile.in (linux-ptrace.o): New.
12315 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12316 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12317 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12318 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12319 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12320 of these targets.
12321 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12322
f4647387
YQ
123232012-03-08 Yao Qi <yao@codesourcery.com>
12324 Pedro Alves <palves@redhat.com>
12325
12326 Fix PR server/13392.
12327 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12328 offset of JMP insn.
12329 * tracepoint.c (remove_tracepoint): New.
12330 (cmd_qtdp): Call remove_tracepoint when failed to install.
12331
9b224c5e
PA
123322012-03-07 Pedro Alves <palves@redhat.com>
12333
12334 * linux-low.c (get_detach_signal): New.
12335 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12336 Pass on pending signals to PTRACE_DETACH. Check the result of the
12337 ptrace call.
12338 * server.c (program_signals, program_signals_p): New.
12339 (handle_general_set): Handle QProgramSignals.
12340 * server.h (program_signals, program_signals_p): Declare.
12341
e237a7e2
JK
123422012-03-05 Pedro Alves <palves@redhat.com>
12343 Jan Kratochvil <jan.kratochvil@redhat.com>
12344
12345 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12346 New comment why.
12347
5808517f
YQ
123482012-03-03 Yao Qi <yao@codesourcery.com>
12349
12350 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12351 agent_look_up_symbols.
12352
58b4daa5
YQ
123532012-03-03 Yao Qi <yao@codesourcery.com>
12354
12355 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12356 (linux-x86-low.o): Likewise.
12357 * server.h: Remove in_process_agent_loaded.
12358 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12359 common/agent.c.
12360 Update callers.
12361
8ffcbaaf
YQ
123622012-03-03 Yao Qi <yao@codesourcery.com>
12363
12364 * tracepoint.c (gdb_agent_capability): New global.
12365 (in_process_agent_loaded_ust): Renamed to
12366 `in_process_agent_supports_ust'.
12367 Update callers.
12368 (in_process_agent_supports_ust): Call agent_capability_check.
12369 (clear_installed_tracepoints): Assert that agent supports
12370 agent.
12371
d1feda86
YQ
123722012-03-03 Yao Qi <yao@codesourcery.com>
12373
12374 * linux-low.c (linux_supports_agent): New.
12375 (linux_target_ops): Initialize field `supports_agent' with
12376 linux_supports_agent.
12377 * target.h (struct target_ops) <supports_agent>: New.
12378 (target_supports_agent): New macro.
12379 * server.c (handle_general_set): Handle packet 'QAgent'.
12380 (handle_query): Send `QAgent+'.
12381 * Makefile.in (server.o): Depends on agent.h.
12382
2fa291ac
YQ
123832012-03-03 Yao Qi <yao@codesourcery.com>
12384
12385 * Makefile.in (OBS): Add agent.o.
12386 Add new rule for agent.o.
12387 Track dependence of tracepoint.c on agent.h.
12388 * tracepoint.c (run_inferior_command_1):
12389 (run_inferior_command): Call agent_run_command.
12390 (gdb_ust_connect_sync_socket): Deleted. Move it to
12391 common/agent.c.
12392 (resume_thread, stop_thread): Likewise.
12393 (gdb_ust_socket_init): Renamed to ...
12394 (gdb_agent_socket_init): ... New.
12395 (gdb_ust_thread): Renamed to ...
12396 (gdb_agent_helper_thread): ... New.
12397 (gdb_ust_init): Move some code to ...
12398 (gdb_agent_init): ... here. New.
12399 [HAVE_UST]: Call gdb_ust_init.
12400 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12401 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12402 * config.in, configure: Regenerated.
12403
05044653
PA
124042012-03-02 Pedro Alves <palves@redhat.com>
12405
12406 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12407 * linux-low.c (struct simple_pid_list): New.
12408 (stopped_pids): New a struct simple_pid_list pointer.
12409 (add_to_pid_list, pull_pid_from_list): New.
12410 (handle_extended_wait): Don't assume the first signal new children
12411 report is SIGSTOP. Adjust call to pull_pid_from_list.
12412 (linux_wait_for_lwp): Adjust.
12413
8d00225b
YQ
124142012-03-02 Yao Qi <yao@codesourcery.com>
12415
12416 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12417 debug log.
12418
19560ba5
YQ
124192012-03-02 Yao Qi <yao@codesourcery.com>
12420
12421 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12422 `stop_pc' and `tpoint'. Update caller.
12423
1faeff08
MR
124242012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12425
12426 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12427 * linux-low.c (use_linux_regsets): New macro.
12428 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12429 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12430 (linux_register_in_regsets): New function.
12431 (usr_fetch_inferior_registers): Skip registers covered by
12432 regsets.
12433 (usr_store_inferior_registers): Likewise.
12434 (usr_fetch_inferior_registers): New macro.
12435 (usr_store_inferior_registers): Likewise.
12436 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12437 (linux_store_registers): Likewise.
12438 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12439 prototype.
12440 (init_registers_mips64_dsp_linux): Likewise.
12441 (init_registers_mips_linux): New macro.
12442 (init_registers_mips_dsp_linux): Likewise.
12443 (mips_dsp_num_regs): Likewise.
12444 (DSP_BASE, DSP_CONTROL): New fallback macros.
12445 (mips_base_regs): New macro.
12446 (mips_regmap): Use it. Fix the size.
12447 (mips_dsp_regmap): New variable.
12448 (mips_dsp_regset_bitmap): Likewise.
12449 (mips_arch_setup): New function.
12450 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12451 than mips_regmap.
12452 (mips_cannot_store_register): Likewise.
12453 (the_low_target): Update .arch_setup, .num_regs and .regmap
12454 initializers. Add .regset_bitmap initializer.
12455 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12456 initializer.
12457 * linux-bfin-low.c (the_low_target): Likewise.
12458 * linux-cris-low.c (the_low_target): Likewise.
12459 * linux-crisv32-low.c (the_low_target): Likewise.
12460 * linux-ia64-low.c (the_low_target): Likewise.
12461 * linux-m32r-low.c (the_low_target): Likewise.
12462 * linux-m68k-low.c (the_low_target): Likewise.
12463 * linux-ppc-low.c (the_low_target): Likewise.
12464 * linux-s390-low.c (the_low_target): Likewise.
12465 * linux-sh-low.c (the_low_target): Likewise.
12466 * linux-sparc-low.c (the_low_target): Likewise.
12467 * linux-tic6x-low.c (the_low_target): Likewise.
12468 * linux-x86-low.c (the_low_target): Likewise.
12469 * linux-xtensa-low.c (the_low_target): Likewise.
12470 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12471 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12472 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12473 srv_xmlfiles.
12474 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12475 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12476
c03e6ccc
YQ
124772012-02-29 Yao Qi <yao@codesourcery.com>
12478 Pedro Alves <palves@redhat.com>
12479
12480 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12481 `step_over_finished' is true.
12482
644cebc9
PA
124832012-02-27 Pedro Alves <palves@redhat.com>
12484
12485 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12486 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12487
c14d7ab2
PA
124882012-02-27 Pedro Alves <palves@redhat.com>
12489
12490 PR server/9684
12491 * linux-low.c (pid_is_stopped): New.
12492 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12493
412c89dd
LM
124942012-02-25 Luis Machado <lgustavo@codesourcery.com>
12495
12496 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12497 of conditions.
12498
b745defe
MR
124992012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12500
12501 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12502
9f3a5c85
LM
125032012-02-24 Luis Machado <lgustavo@codesourcery>
12504
12505 * server.c (handle_query): Advertise support for target-side
12506 breakpoint condition evaluation.
12507 (process_point_options): New function.
12508 (process_serial_event): When inserting a breakpoint, check for
12509 a target-side condition that should be evaluated.
12510
12511 * mem-break.c: Include regcache.h and ax.h.
12512 (point_cond_list_t): New data structure.
12513 (breakpoint) <cond_list>: New field.
12514 (find_gdb_breakpoint_at): Make non-static.
12515 (delete_gdb_breakpoint_at): Clear any target-side
12516 conditions.
12517 (clear_gdb_breakpoint_conditions): New function.
12518 (add_condition_to_breakpoint): Likewise.
12519 (add_breakpoint_condition): Likewise.
12520 (gdb_condition_true_at_breakpoint): Likewise.
12521 (gdb_breakpoint_here): Return result directly instead
12522 of going through a local variable.
12523
12524 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12525 (clear_gdb_breakpoint_conditions): Likewise.
12526 (add_breakpoint_condition): Likewise.
12527 (gdb_condition_true_at_breakpoint): Likewise.
12528
12529 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12530 (need_step_over_p): Take target-side breakpoint condition into
12531 consideration.
12532
5e1dc496
LM
125332012-02-24 Luis Machado <lgustavo@codesourcery>
12534
12535 * server.h: Include tracepoint.h.
12536 (agent_mem_read, agent_get_trace_state_variable_value,
12537 agent_set_trace_state_variable_value,
12538 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12539 get_set_tsv_func_addr): New prototypes.
12540
12541 * ax.h: New include file.
12542 * ax.c: New source file.
12543
12544 * tracepoint.c: Include ax.h.
12545 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12546 agent_expr, eval_result_type): Move to ax.h.
12547 (parse_agent_expr): Rename to ...
12548 (gdb_parse_agent_expr): ... this, make it non-static and move
12549 to ax.h.
12550 (unparse_agent_expr) Rename to ...
12551 (gdb_unparse_agent_expr): ... this, make it non-static and move
12552 to ax.h.
12553 (eval_agent_expr): Rename to ...
12554 (eval_tracepoint_agent_expr): ... this.
12555 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12556 forward declarations.
12557 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12558 (agent_get_trace_state_variable_value): New function.
12559 (agent_set_trace_state_variable_value): New function.
12560 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12561 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12562 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12563 (condition_true_at_tracepoint): Likewise.
12564 (parse_agent_expr): Rename to ...
12565 (gdb_parse_agent_expr): ... this and move to ax.c.
12566 (unparse_agent_expr): Rename to ...
12567 (gdb_unparse_agent_expr): ... this and move to ax.c.
12568 (gdb_agent_op_name): Move to ax.c.
12569 (eval_agent_expr): Rename to ...
12570 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12571 and move to ax.c.
12572 (eval_tracepoint_agent_expr): New function.
12573 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 12574 non-static.
5e1dc496
LM
12575 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12576 ax.c.
12577 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12578 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12579 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12580 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12581 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12582 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12583 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12584 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12585 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12586 (compile_bytecodes): Remove forward declaration.
12587 (is_goto_target): Move to ax.c.
12588 (compile_bytecodes): Move to ax.c and call
12589 agent_get_trace_state_variable_value (...) and
12590 agent_set_trace_state_variable_value (...).
12591
12592 * Makefile.in: Update ax.c and IPA dependencies.
12593
277e4e52
PA
125942012-02-24 Pedro Alves <palves@redhat.com>
12595
12596 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12597 (cmd_bigqtbuffer_circular): ... this. Only handle
12598 'QTBuffer:circular:'.
12599 (handle_tracepoint_general_set): Adjust.
12600
bf4c19f7
YQ
126012012-02-16 Yao Qi <yao@codesourcery.com>
12602
12603 * inferiors.c: Move code to ...
12604 * dll.c: .... here. New.
12605 * server.h: Declare clear_dlls.
12606 * Makefile.in (SFILES): Add dll.c.
12607 (OBS): Add dll.o
12608 (dll.o): New rule.
12609
d73f2619
YQ
126102012-02-11 Yao Qi <yao@codesourcery.com>
12611
12612 * server.c: (handle_monitor_command): Add a new parameter
12613 `own_buf'.
12614 (handle_query): Update caller.
12615
f8255c2a
JB
126162012-02-09 Joel Brobecker <brobecker@adacore.com>
12617
12618 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
12619 * configure, config.in: Regenerate.
12620 * hostio.c: Provide an alternate implementation if HAVE_READLINK
12621 is not defined.
12622
da84f473
PA
126232012-02-02 Pedro Alves <palves@redhat.com>
12624
12625 Try SIGKILL first, then PTRACE_KILL.
12626 * linux-low.c (linux_kill_one_lwp): New.
12627 (linux_kill_one_lwp): Rename to ...
12628 (kill_one_lwp_callback): ... this. Use the new
12629 linux_kill_one_lwp.
12630
e886a173
PA
126312012-02-02 Pedro Alves <palves@redhat.com>
12632
12633 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
12634 inferior.
12635
be07f1a2
PA
126362012-01-27 Pedro Alves <palves@redhat.com>
12637
12638 * linux-low.c (linux_child_pid_to_exec_file): Delete.
12639 (elf_64_file_p): Make static.
12640 (linux_pid_exe_is_elf_64_file): New.
12641 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
12642 Delete declarations.
12643 (linux_pid_exe_is_elf_64_file): Declare.
12644 * linux-x86-low.c (x86_arch_setup): Use
12645 linux_pid_exe_is_elf_64_file.
12646
d8301ad1
JK
126472012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12648
12649 * linux-low.c (linux_wait_for_event_1): Rename to ...
12650 (linux_wait_for_event): ... here and merge it with former
12651 linux_wait_for_event - new variable wait_ptid, use it.
12652 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12653
01b17894
PA
126542012-01-23 Pedro Alves <palves@redhat.com>
12655
12656 * server.c (main): Avoid yet another case of infinite loop while
12657 detaching/killing after a longjmp.
12658
e825046f
JK
126592012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12660
12661 Code cleanup.
12662 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12663
b9e7b9c3
UW
126642012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12665
12666 * hostio.c (handle_readlink): New function.
12667 (handle_vFile): Call it to handle "vFile:readlink" packets.
12668
901f9912
UW
126692012-01-20 Pedro Alves <palves@redhat.com>
12670 Ulrich Weigand <ulrich.weigand@linaro.org>
12671
12672 * server.c (handle_v_requests): Only support vAttach and vRun to
12673 start multiple processes when in extended protocol mode.
12674
fc1ab1a0
PA
126752012-01-17 Pedro Alves <palves@redhat.com>
12676
12677 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12678 memalign plus mprotect to allocate the scratch buffer.
12679
7d5d4e98
PA
126802012-01-13 Pedro Alves <palves@redhat.com>
12681
12682 * server.c (attach_inferior): Clear `cont_thread'.
12683
f128d5e9
PA
126842012-01-13 Pedro Alves <palves@redhat.com>
12685
12686 * server.c (main): Avoid infinite loop while detaching/killing
12687 after a longjmp.
12688
06db92f0
DE
126892012-01-09 Doug Evans <dje@google.com>
12690
12691 * server.c (start_inferior): Set last_ptid in --wrapper case.
12692
32d92999
YQ
126932012-01-06 Yao Qi <yao@codesourcery.com>
12694
12695 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12696 defined.
12697 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12698
5e0a92a9
YQ
126992012-01-04 Yao Qi <yao@codesourcery.com>
12700
12701 * tracepoint.c (cmd_qtdp): Print debug message
12702 for static tracepoint.
12703
ae639e8c
YQ
127042012-01-04 Yao Qi <yao@codesourcery.com>
12705
12706 * tracepoint.c (trace_vdebug): Differentiate debug message
12707 between gdbserver and IPA.
12708
f72429c5
YQ
127092012-01-03 Yao Qi <yao@codesourcery.com>
12710
12711 * tracepoint.c (tracepoint_was_hit): Don't collect for
12712 static tracepoint.
12713
12c3e59c
JB
127142012-01-02 Joel Brobecker <brobecker@adacore.com>
12715
12716 * terminal.h: Reformat copyright header.
12717
67827812
JB
127182012-01-02 Joel Brobecker <brobecker@adacore.com>
12719
12720 * server.c (gdbserver_version): Update copyright year.
12721 * gdbreplay.c (gdbreplay_version): Likewise.
12722
3e52c33d
JK
127232011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12724
12725 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12726
12727 Revert:
12728 2011-12-18 Hui Zhu <teawater@gmail.com>
12729 * linux-low.c (linux_create_inferior): Save return value to ret.
12730
66f1260e
HZ
127312011-12-18 Hui Zhu <teawater@gmail.com>
12732
12733 * linux-low.c (linux_create_inferior): Save return value to ret.
12734
e77616d7
DE
127352011-12-16 Doug Evans <dje@google.com>
12736
e7b06c57
DE
12737 * linux-low.c (linux_create_inferior): If stdio connection,
12738 redirect stdin from /dev/null, stdout to stderr.
12739 * remote-utils.c (remote_is_stdio): New static global.
12740 (remote_connection_is_stdio): New function.
12741 (remote_prepare): Handle stdio connection.
12742 (remote_open): Ditto.
12743 (remote_close): Don't close stdin for stdio connections.
12744 (read_prim,write_prim): New functions. Replace all calls to
12745 read/write to these.
12746 * server.c (main): Watch for "-" argument. Move call to
12747 remote_prepare before start_inferior.
12748 * server.h (STDIO_CONNECTION_NAME): New macro.
12749 (remote_connection_is_stdio): Declare.
12750
e77616d7
DE
12751 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12752 in debugging output.
12753
82067193
YQ
127542011-12-15 Yao Qi <yao@codesourcery.com>
12755
12756 * tracepoint.c: Include sys/syscall.h.
12757 (gdb_ust_thread): Remove preprocessor conditional.
12758
82bfbe7e
PA
127592011-12-14 Pedro Alves <pedro@codesourcery.com>
12760
12761 * linux-low.c (linux_detach_one_lwp): Call
12762 the_low_target.prepare_to_resume before detaching.
12763
712c6575
YQ
127642011-12-14 Yao Qi <yao@codesourcery.com>
12765
12766 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12767 of write.
12768
d54d1edf
YQ
127692011-12-14 Yao Qi <yao@codesourcery.com>
12770
12771 * i386-low.c (i386_low_stopped_data_address): Initialize local
12772 variable `control'.
12773
6210a125
PA
127742011-12-13 Pedro Alves <pedro@codesourcery.com>
12775
12776 PR remote/13492
12777
12778 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12779 DR_CONTROL unless necessary. Extend comments.
12780 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12781 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12782
2ece8244
YQ
127832011-12-13 Yao Qi <yao@codesourcery.com>
12784
12785 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12786 macros.
12787 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12788
784867a5
JK
127892011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12790
12791 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12792 Print new debug message for such case.
12793
6bf36717
JK
127942011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12795
12796 Fix overlapping memcpy.
12797 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12798 the read_inferior_memory transfer.
12799 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12800 write_inferior_memory transfer.
12801 (set_fast_tracepoint_jump): New variable buf. Use it for the
12802 read_inferior_memory and write_inferior_memory transfers.
12803 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12804 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12805 Use it for the write_inferior_memory transfer.
12806 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12807 buffers.
12808
50275556
MR
128092011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12810
12811 * linux-low.c (fetch_register, store_register): Make code
12812 consistent, fix formatting.
12813
7325beb4
MR
128142011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12815
12816 * linux-low.c (usr_store_inferior_registers): Factor out code
12817 to handle individual registers into...
12818 (store_register): ... this new function.
12819
c642a434
UW
128202011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12821
12822 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12823 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12824 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12825 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12826 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12827 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12828 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12829 (srv_xmlfiles): Add new XML files.
12830
12831 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12832 and <sys/uio.h>.
12833 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12834 (init_registers_s390_linux32v1): Add prototype.
12835 (init_registers_s390_linux32v2): Likewise.
12836 (init_registers_s390_linux64v1): Likewise.
12837 (init_registers_s390_linux64v2): Likewise.
12838 (init_registers_s390x_linux64v1): Likewise.
12839 (init_registers_s390x_linux64v2): Likewise.
12840 (s390_num_regs): Increment to 52.
12841 (s390_regmap): Add orig_r2 register.
12842 (s390_num_regs_3264): Increment to 68.
12843 (s390_regmap_3264): Add orig_r2 register.
12844 (s390_collect_ptrace_register): Handle orig_r2 register.
12845 (s390_supply_ptrace_register): Likewise.
12846 (s390_fill_last_break): New function.
12847 (s390_store_last_break): Likewise.
12848 (s390_fill_system_call): New function.
12849 (s390_store_system_call): Likewise.
12850 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12851 register sets.
12852 (s390_check_regset): New function.
12853 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12854 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12855 Update target_regsets for available register sets.
12856
2268b414
JK
128572011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12858 Jan Kratochvil <jan.kratochvil@redhat.com>
12859
12860 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12861 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12862 New.
12863 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12864 * linux-low.h (struct process_info_private): New member r_debug.
12865 * server.c (handle_qxfer_libraries): Call
12866 the_target->qxfer_libraries_svr4.
12867 (handle_qxfer_libraries_svr4): New function.
12868 (qxfer_packets): New entry "libraries-svr4".
12869 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12870 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12871 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12872 PACKET_qXfer_libraries_svr4.
12873
d6db1fab
UW
128742011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12875
12876 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12877 PSW address/mask between 8-byte and 16-byte formats.
12878 (s390_supply_ptrace_register): Likewise.
12879 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12880 basic addressing mode bit.
12881
242f5f1c
SS
128822011-11-24 Stan Shebs <stan@codesourcery.com>
12883
12884 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12885
f196051f
SS
128862011-11-17 Stan Shebs <stan@codesourcery.com>
12887
12888 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12889 (tracing_start_time): New global.
12890 (tracing_stop_time): New global.
12891 (tracing_user_name): New global.
12892 (tracing_notes): New global.
12893 (tracing_stop_note): New global.
12894 (cmd_qtstart): Set traceframe_usage, start_time.
12895 (stop_tracing): Set stop_time.
12896 (cmd_qtstatus): Report additional status.
12897 (cmd_qtp): New function.
12898 (handle_tracepoint_query): Call it.
12899 (cmd_qtnotes): New function.
12900 (handle_tracepoint_general_set): Call it.
12901 (get_timestamp): Rename from tsv_get_timestamp.
12902
405f8e94
SS
129032011-11-14 Stan Shebs <stan@codesourcery.com>
12904 Kwok Cheung Yeung <kcy@codesourcery.com>
12905
12906 * linux-x86-low.c (small_jump_insn): New.
12907 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12908 trampoline and error message, build a trampoline and issue a small
12909 jump instruction to it.
12910 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12911 trampoline and error message.
12912 (x86_get_min_fast_tracepoint_insn_len): New.
12913 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12914 * linux-low.h (struct linux_target_ops): Add arguments to
12915 install_fast_tracepoint_jump_pad operation, add new operation.
12916 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12917 arguments.
12918 (linux_get_min_fast_tracepoint_insn_len): New function.
12919 (linux_target_op): Add new operation.
12920 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12921 (gdb_trampoline_buffer_end): Ditto.
12922 (gdb_trampoline_buffer_error): Ditto.
12923 (struct ipa_sym_addresses): Add fields for new IPA variables.
12924 (symbol_list): Add entries for new IPA variables.
12925 (struct tracepoint): Add fields to hold the address range of the
12926 trampoline used by the tracepoint.
12927 (trampoline_buffer_head): New static variable.
12928 (trampoline_buffer_tail): Ditto.
12929 (claim_trampoline_space): New function.
12930 (have_fast_tracepoint_trampoline_buffer): New function.
12931 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12932 structure.
12933 (install_fast_tracepoint): Ditto, also add error buffer argument.
12934 (cmd_qtminftpilen): New function.
12935 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12936 (fast_tracepoint_from_trampoline_address): New function.
12937 (fast_tracepoint_collecting): Handle trampoline as part of jump
12938 pad space.
12939 (set_trampoline_buffer_space): New function.
12940 (initialize_tracepoint): Initialize new IPA variables.
12941 * target.h (struct target_ops): Add arguments to
12942 install_fast_tracepoint_jump_pad operation, add new
12943 get_min_fast_tracepoint_insn_len operation.
12944 (target_get_min_fast_tracepoint_insn_len): New.
12945 (install_fast_tracepoint_jump_pad): Add arguments.
12946 * server.h (IPA_BUFSIZ): Define.
12947 * linux-i386-ipa.c: Include extra header files.
12948 (initialize_fast_tracepoint_trampoline_buffer): New function.
12949 (initialize_low_tracepoint): Call it.
12950 * server.h (set_trampoline_buffer_space): Declare.
12951 (claim_trampoline_space): Ditto.
12952 (have_fast_tracepoint_trampoline_buffer): Ditto.
12953
1e4d1764
YQ
129542011-11-14 Yao Qi <yao@codesourcery.com>
12955
12956 * server.c (handle_query): Handle InstallInTrace for qSupported.
12957 * tracepoint.c (add_tracepoint): Sort list.
12958 (install_tracepoint, download_tracepoint): New.
12959 (cmd_qtdp): Call them to install and download tracepoints.
12960 (sort_tracepoints): Removed.
12961 (cmd_qtstart): Update.
12962
5c73ff4e
YQ
129632011-11-14 Yao Qi <yao@codesourcery.com>
12964
12965 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12966 * mem-break.h: Declare.
12967 * tracepoint.c (cmd_qtstart): Move some code to ...
12968 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12969 New.
12970 (download_tracepoints): Move some code to ...
12971 (download_tracepoint_1): ... here. New.
12972
86a30030
YQ
129732011-11-08 Yao Qi <yao@codesourcery.com>
12974
12975 * remote-utils.c (relocate_instruction): A comment fix.
12976
8d26e50c
JB
129772011-11-07 Joel Brobecker <brobecker@adacore.com>
12978
12979 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12980 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12981 dr_status_mirror and dr_control_mirror from debug_reg_state.
12982 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12983 (i386_initial_stuff): Remove use of deleted globals.
12984 (i386_get_thread_context, i386_set_thread_context,
12985 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12986 from debug_reg_state.
12987
a59306a3
YQ
129882011-11-05 Yao Qi <yao@codesourcery.com>
12989
12990 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12991 address as TPOINT's.
12992
3065dfb6
SS
129932011-11-02 Stan Shebs <stan@codesourcery.com>
12994
12995 * tracepoint.c (agent_mem_read_string): New function.
12996 (eval_agent_expr): Call it for tracenz.
12997 * server.c (handle_query): Report support for tracenz.
12998
fd0d8c7c
YQ
129992011-11-02 Yao Qi <yao@codesourcery.com>
13000
13001 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13002
609086b1
YQ
130032011-11-02 Yao Qi <yao@codesourcery.com>
13004
13005 * target.h: Fix a typo in comment.
13006
b9fd1791
PA
130072011-10-31 Pedro Alves <pedro@codesourcery.com>
13008
13009 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13010 clobber the breakpoints' shadows with fast tracepoint jumps.
13011 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13012 * target.c (write_inferior_memory): Also pass MYADDR down to
13013 check_mem_write.
13014
03583c20
UW
130152011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13016
13017 * configure.ac: Check support for personality routine.
13018 * configure: Regenerate.
13019 * config.in: Likewise.
13020 * linux-low.c: Include <sys/personality.h>.
13021 Define ADDR_NO_RANDOMIZE if necessary.
13022 (linux_create_inferior): Disable address space randomization when
13023 forking inferior, if requested.
13024 (linux_supports_disable_randomization): New function.
13025 (linux_target_ops): Install it.
13026 * server.h (disable_randomization): Declare.
13027 * server.c (disable_randomization): New global variable.
13028 (handle_general_set): Handle QDisableRandomization.
13029 (handle_query): Likewise for qSupported.
13030 (main): Support --disable-randomization and --no-disable-randomization
13031 command line arguments.
13032 * target.h (struct target_ops): Add supports_disable_randomization.
13033 (target_supports_disable_randomization): New macro.
13034
723b724b
MF
130352011-09-29 Mike Frysinger <vapier@gentoo.org>
13036
13037 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13038 ifdef check.
13039 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13040 [!PT_GETDSBT] (target_loadmap): New definition.
13041 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13042 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13043 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13044 and PT_GETDSBT to LINUX_LOADMAP.
13045 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13046 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13047
55329a5c 130482011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
13049
13050 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13051 (arm_linux_hwbp_cap): New static variable.
13052 (arm_linux_get_hwbp_cap): Replace by ...
13053 (arm_linux_init_hwbp_cap): ... this new function.
13054 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13055 (arm_linux_get_hw_watchpoint_count): Likewise.
13056 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13057 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13058 (arm_prepare_to_resume): Use perror_with_name instead of error.
13059
55329a5c 130602011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
13061
13062 * linux-arm-low.c: Include <signal.h>.
13063 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13064 (struct arm_linux_hwbp_cap): New data type.
13065 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13066 (struct arm_linux_hw_breakpoint): New data type.
13067 (MAX_BPTS, MAX_WPTS): Define.
13068 (struct arch_process_info, struct arch_lwp_info): New data types.
13069 (arm_linux_get_hwbp_cap): New function.
13070 (arm_linux_get_hw_breakpoint_count): Likewise.
13071 (arm_linux_get_hw_watchpoint_count): Likewise.
13072 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13073 (arm_hwbp_control_initialize): Likewise.
13074 (arm_hwbp_control_is_enabled): Likewise.
13075 (arm_hwbp_control_is_initialized): Likewise.
13076 (arm_hwbp_control_disable): Likewise.
13077 (arm_linux_hw_breakpoint_equal): Likewise.
13078 (arm_linux_hw_point_initialize): Likewise.
13079 (struct update_registers_data): New data structure.
13080 (update_registers_callback: New function.
13081 (arm_insert_point): Likewise.
13082 (arm_remove_point): Likewise.
13083 (arm_stopped_by_watchpoint): Likewise.
13084 (arm_stopped_data_address): Likewise.
13085 (arm_new_process): Likewise.
13086 (arm_new_thread): Likewise.
13087 (arm_prepare_to_resume): Likewise.
13088 (the_low_target): Register arm_insert_point, arm_remove_point,
13089 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13090 arm_new_thread, and arm_prepare_to_resume.
13091
6b9801d4
SS
130922011-09-15 Stan Shebs <stan@codesourcery.com>
13093
13094 * server.h (struct emit_ops): Add compare-goto fields.
13095 * tracepoint.c (gdb_agent_op_sizes): New table.
13096 (emit_eq_goto): New function.
13097 (emit_ne_goto): New function.
13098 (emit_lt_goto): New function.
13099 (emit_le_goto): New function.
13100 (emit_gt_goto): New function.
13101 (emit_ge_goto): New function.
13102 (is_goto_target): New function.
13103 (compile_bytecodes): Recognize special cases of compare-goto
13104 combinations and call specialized emitters for them.
13105 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13106 (amd64_emit_ne_goto): New function.
13107 (amd64_emit_lt_goto): New function.
13108 (amd64_emit_le_goto): New function.
13109 (amd64_emit_gt_goto): New function.
13110 (amd64_emit_ge_goto): New function.
13111 (amd64_emit_ops): Add the new functions.
13112 (i386_emit_eq_goto): New function.
13113 (i386_emit_ne_goto): New function.
13114 (i386_emit_lt_goto): New function.
13115 (i386_emit_le_goto): New function.
13116 (i386_emit_gt_goto): New function.
13117 (i386_emit_ge_goto): New function.
13118 (i386_emit_ops): Add the new functions.
13119
bf15cbda
SS
131202011-09-08 Stan Shebs <stan@codesourcery.com>
13121
13122 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13123 (i386_emit_epilogue): Restore %ebx.
13124
943ca1dd
JZ
131252011-08-31 Jie Zhang <jzhang918@gmail.com>
13126
13127 * server.c (step_thread): Remove definition.
13128 (process_serial_event): Don't handle Hs.
13129 * server.h (step_thread): Remove declaration.
13130 * target.c (set_desired_inferior): Remove use of step_thread.
13131
e3deef73
LM
131322011-08-24 Luis Machado <lgustavo@codesourcery.com>
13133
13134 * linux-low.c: Include linux-procfs.h.
13135 (linux_attach_lwp_1): Update comments.
13136 (linux_attach): Scan for existing threads when attaching to a
13137 process that is the tgid.
13138 * Makefile.in: Update dependencies.
13139
13da1c97
LM
131402011-08-24 Luis Machado <lgustavo@codesourcery.com>
13141
13142 * configure.srv: Add linux-procfs.o dependencies.
13143
881127c9
YQ
131442011-08-14 Yao Qi <yao@codesourcery.com>
13145
13146 * target.h (struct target_ops): Fix indent.
13147 * win32-low.c (win32_target_ops): Fix comment.
13148
58dbd541
YQ
131492011-08-14 Andrew Jenner <andrew@codesourcery.com>
13150 Yao Qi <yao@codesourcery.com>
13151
13152 * Makefile.in (clean): Remove tic6x-*.c files.
13153 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13154 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13155 (tic6x-c64xp-linux.c): Likewise.
13156 * configure.srv: Add support for tic6x-*-uclinux.
13157 * linux-tic6x-low.c: New.
13158 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13159
78d85199
YQ
131602011-08-14 Andrew Stubbs <ams@codesourcery.com>
13161 Yao Qi <yao@codesourcery.com>
13162
13163 * target.h (struct target_ops): Add read_loadmap.
13164 * linux-low.c (struct target_loadseg): New type.
13165 (struct target_loadmap): New type.
13166 (linux_read_loadmap): New function.
13167 (linux_target_ops): Add linux_read_loadmap.
13168 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
13169 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13170 to NULL.
78d85199 13171
a959a88d
EZ
131722011-08-05 Eli Zaretskii <eliz@gnu.org>
13173
13174 * win32-low.c: Include <stdint.h>.
13175
1ced966e
PA
131762011-07-22 Pedro Alves <pedro@codesourcery.com>
13177
13178 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13179 to the inferior here.
13180 (i386_remove_aligned_watchpoint): Ditto.
13181 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13182 fit part of the watchpoint in the debug registers.
13183 (i386_update_inferior_debug_regs): New.
13184 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13185 registers, and only update the inferior on success.
13186 (i386_low_remove_watchpoint): Ditto.
13187
d26e3629
KY
131882011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13189
13190 * linux-low.c (compare_ints, unique, list_threads, show_process,
13191 linux_core_of_thread): Delete.
13192 (linux_target_ops): Change linux_core_of_thread to
13193 linux_common_core_of_thread.
13194 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13195 * utils.c (malloc_failure): Change type of argument.
13196 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13197 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13198 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13199 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13200 (IPA_OBJS): Add common-utils-ipa.o.
13201 (ptid_h, linux_osdata_h): New macros.
13202 (server_h): Add common/common-utils.h, common/xml-utils.h,
13203 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13204 common/ptid.h.
13205 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13206 ptid.o, buffer.o): New rules.
13207 (linux-low.o): Add common/linux-osdata.h as a dependency.
13208 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13209 * configure.ac: Add AC_HEADER_DIRENT check.
13210 * config.in: Regenerate.
13211 * configure: Regenerate.
13212 * remote-utils.c (xml_escape_text): Delete.
13213 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13214 buffer_xml_printf): Move to common/buffer.c.
13215 * server.c (main): Remove call to initialize_inferiors.
13216 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13217 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13218 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13219 internal_error, gdb_assert, gdb_assert_fail): Delete.
13220 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13221 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13222 common/buffer.h.
13223 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13224 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13225 initialize_inferiors): Delete.
13226
2275a1a7
PA
132272011-07-20 Pedro Alves <pedro@codesourcery.com>
13228
13229 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13230 symbol error.
13231
0a5b1e09
PA
132322011-05-31 Pedro Alves <pedro@codesourcery.com>
13233
13234 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13235 assertion.
13236 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13237
6938fd34
YQ
132382011-05-26 Yao Qi <yao@codesourcery.com>
13239
13240 * Makefile.in (thread-db.o): Track dependence to
13241 common/gdb_thread_db.h.
13242 * thread-db.c: include gdb_thread_db.h from right place.
13243
b481f9e0
TT
132442011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13245
13246 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13247 __FILE__ and __LINE__ to internal_error.
13248
98a5dd13
DE
132492011-05-13 Doug Evans <dje@google.com>
13250
13251 * thread-db.c (try_thread_db_load_from_sdir): New function.
13252 (try_thread_db_load_from_dir): New function.
13253 (thread_db_load_search): Handle $sdir, ignore $pdir.
13254 Remove trying of system directories if search of
13255 libthread-db-search-path fails, that is now done via $sdir.
13256
d248b706
KY
132572011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13258
13259 * server.c (handle_query): Add EnableDisableTracepoints to the list
13260 of supported features.
43aaf8b6 13261 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 13262 tracepoints.
43aaf8b6
PA
13263 (cmd_qtenable_disable): New.
13264 (cmd_qtstart): Install tracepoints even if disabled.
13265 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13266 receiving a QTEnable or QTDisable packet.
13267 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13268 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13269 tracepoints.
13270 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 13271
84e578fb
DE
132722011-05-10 Doug Evans <dje@google.com>
13273
13274 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13275
71f55dd8
DE
132762011-05-04 Doug Evans <dje@google.com>
13277
13278 * linux-low.c (linux_join): Skip process lookup.
13279 * spu-low.c (spu_join): Ditto.
13280 * server.c (join_inferiors_callback): Delete.
13281 (process_serial_event): For 'D' packet (detach) call join_inferior
13282 directly.
13283
4d393d60
JM
132842011-05-04 Joseph Myers <joseph@codesourcery.com>
13285
13286 * README: Don't mention xscale*-*-linux*.
13287 * configure.srv (xscale*-*-linux*): Don't handle target.
13288
b00ad6ff
NF
132892011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13290
13291 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13292 casting pointers.
13293 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13294 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13295 (i386_emit_void_call_2): Likewise.
13296
af96c192
YQ
132972011-04-26 Yao Qi <yao@codesourcery.com>
13298
43aaf8b6
PA
13299 * linux-low.c: Move common macros to linux-ptrace.h.
13300 Include linux-ptrace.h.
af96c192
YQ
13301 * Makefile.in (linux_ptrace_h): New.
13302 (linux-low.o): Depends on linux-ptrace.h.
13303
03f2bd59
JK
133042011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13305
13306 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13307 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13308 (remote_prepare): New function with most of the TCP code from ...
13309 (remote_open): ... here. Detect PORT here unconditionally. Move also
13310 setting transport_is_reliable.
13311 * server.c (run_once): New variable.
13312 (gdbserver_usage): Document it.
13313 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13314 the first run if RUN_ONCE.
13315 * server.h (run_once, remote_prepare): New declarations.
13316
7a9dd1b2
TT
133172011-04-19 Tom Tromey <tromey@redhat.com>
13318
13319 * win32-low.c (handle_load_dll): Remove duplicate "the".
13320
81239425
PM
133212011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13322
13323 Remove support for old Cygwin 1.5 versions.
13324 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13325 function to avoid warning.
13326 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13327 warning.
13328
9e0627f1
PM
133292011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13330
13331 * gdbserver/server.h (Macro _): Define it if not available.
13332
588eebee
MS
133332011-03-14 Michael Snyder <msnyder@vmware.com>
13334
348af9f7 13335 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 13336
43f70d4c
JB
133372011-03-10 Joel Brobecker <brobecker@adacore.com>
13338
13339 * Makefile.in (maintainer-clean realclean distclean): Remove
13340 "make ... subdir_do" command.
13341
348af9f7
MS
133422011-03-10 Michael Snyder <msnyder@vmware.com>
13343
13344 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13345
13346 * server.c (handle_v_run): Free alloced buffer on early return.
13347
e637a4f5
YQ
133482011-03-09 Yao Qi <yao@codesourcery.com>
13349
13350 Revert:
13351 2011-03-04 Yao Qi <yao@codesourcery.com>
13352
13353 * Makefile.in: Remove GNU make feature --directory.
13354
13355 2011-03-05 Yao Qi <yao@codesourcery.com>
13356
13357 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13358 (subdir_do): New make target. Copied from gdb/Makefile.
13359 (maintainer-clean, realclean, distclean, clean): Call corresponding
13360 make targets in common/Makefile.
13361
13362 2011-02-11 Yao Qi <yao@codesourcery.com>
13363
13364 * configure.ac: Call AC_PROG_RANLIB.
13365 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13366 * configure: Regenerate.
13367
e6edda56
JK
133682011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13369
13370 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13371
e5141119
JB
133722011-03-06 Yao Qi <yao@codesourcery.com>
13373
13374 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13375
64794aa4
JB
133762011-03-05 Yao Qi <yao@codesourcery.com>
13377
13378 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13379 (subdir_do): New make target. Copied from gdb/Makefile.
13380 (maintainer-clean, realclean, distclean, clean): Call corresponding
13381 make targets in common/Makefile.
13382
7a762829
YQ
133832011-03-04 Yao Qi <yao@codesourcery.com>
13384
13385 * Makefile.in: Remove GNU make feature --directory.
13386
348af9f7
MS
133872011-03-04 Michael Snyder <msnyder@vmware.com>
13388
13389 * server.c (queue_stop_reply): Call xmalloc not malloc.
13390
133912011-03-02 Michael Snyder <msnyder@vmware.com>
13392
13393 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13394
9f72fee2
MS
133952011-02-28 Michael Snyder <msnyder@vmware.com>
13396
588eebee
MS
13397 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13398 (cmd_qtframe): Ditto.
13399 (cmd_qtbuffer): Ditto.
13400 (cmd_bigqtbuffer): Ditto.
13401
9f72fee2
MS
13402 * utils.c (decimal2str): Initialize 'width' to nine, then
13403 don't mess with it.
13404
8040bd49
UW
134052011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13406
13407 * hostio.c (require_data): Free *data, not data.
13408
7e52cbd0
JK
134092011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13410
13411 * hostio.c (require_data): Use free, not xfree.
13412
9130f83e
MS
134132011-02-27 Michael Snyder <msnyder@vmware.com>
13414
4b812f4e
MS
13415 * server.c (handle_query): Discard unused value.
13416
9130f83e
MS
13417 * hostio.c (require_data): Free malloc memory before returning
13418 error.
13419
69d37113
MS
134202011-02-26 Michael Snyder <msnyder@vmware.com>
13421
13422 * linux-low.c (list_threads): Call closedir for dirent.
13423
35f5825a
MS
134242011-02-27 Michael Snyder <msnyder@vmware.com>
13425
2a589cef
MS
13426 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13427 a case statement falls through.
13428
0adea5f7
MS
13429 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13430
35f5825a
MS
13431 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13432 in comparison.
13433
238f1c74
MS
134342011-02-26 Michael Snyder <msnyder@vmware.com>
13435
13436 * utils.c (decimal2str): Eliminate dead code and dead param.
13437 (pulongest): Drop dead param from call to decimal2str.
13438 (plongest): Ditto.
13439
633ff500
JB
134402011-02-24 Joel Brobecker <brobecker@adacore.com>
13441
13442 Revert the following patch (not approved yet):
13443 2011-02-21 Hui Zhu <teawater@gmail.com>
13444 * tracepoint.c (tp_printf): New function.
13445 (eval_agent_expr): Handle gdb_agent_op_printf.
13446
f9c6ff72
HZ
134472011-02-21 Hui Zhu <teawater@gmail.com>
13448
13449 * tracepoint.c (tp_printf): New function.
13450 (eval_agent_expr): Handle gdb_agent_op_printf.
13451
94d5e490
TT
134522011-02-18 Tom Tromey <tromey@redhat.com>
13453
13454 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13455 (tracepoint.o): Likewise.
13456 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13457 (gdb_agent_op_names): Likewise.
13458
c7f96d2b
TT
134592011-02-18 Tom Tromey <tromey@redhat.com>
13460
13461 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13462 gdb_agent_op_rot>: New constants.
13463 (gdb_agent_op_names): Add pick and roll.
13464 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13465 cases.
13466
0feedb2c
JK
134672011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13468
13469 * aclocal.m4: Regenerated with aclocal-1.11.1.
13470
b3b9301e
PA
134712011-02-14 Pedro Alves <pedro@codesourcery.com>
13472
13473 * server.c (handle_qxfer_traceframe_info): New.
13474 (qxfer_packets): Register "traceframe-info".
13475 (handle_query): Report support for qXfer:traceframe-info:read+.
13476 * tracepoint.c (match_blocktype): New.
13477 (traceframe_find_block_type): Rename to ...
13478 (traceframe_walk_blocks): ... this. Add callback filter argument,
13479 and use it.
13480 (traceframe_find_block_type): New, reimplemented on top of
13481 traceframe_walk_blocks.
13482 (build_traceframe_info_xml): New.
13483 (traceframe_read_info): New.
13484 * server.h (traceframe_read_info): Declare.
13485
4f3e6fb7
YQ
134862011-02-11 Yao Qi <yao@codesourcery.com>
13487
13488 * configure.ac: Call AC_PROG_RANLIB.
13489 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13490 * configure: Regenerate.
13491
764880b7
PA
134922011-02-07 Pedro Alves <pedro@codesourcery.com>
13493
13494 * server.c (gdb_read_memory): Change return semantics to allow
13495 partial transfers.
13496 (handle_search_memory_1): Adjust.
13497 (process_serial_event) <'m' packet>: Handle partial transfers.
13498 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13499
1c79eb8a
PA
135002011-01-28 Pedro Alves <pedro@codesourcery.com>
13501
13502 * regcache.c (init_register_cache): Initialize
13503 regcache->register_status.
13504 (free_register_cache): Release regcache->register_status.
13505 (regcache_cpy): Copy register_status.
13506 (registers_to_string): Print 'x's for unavailable registers.
13507 (supply_register): Mark the register's status valid or
13508 unavailable, depending on whether a buffer was passed in or not.
13509 (supply_register_zeroed): New.
13510 (supply_regblock): Mark the registers' status valid or
13511 unavailable, depending on whether a buffer was passed in or not.
13512 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13513 (struct regcache): New `register_status' field.
13514 (supply_register_zeroed): Declare.
13515 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13516 supply_register_zeroed, rather than passing a NULL buffer to
13517 supply_register.
13518 * tracepoint.c (fetch_traceframe_registers): Update comment.
13519
85724a0e
PA
135202011-01-28 Pedro Alves <pedro@codesourcery.com>
13521
13522 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13523 buffer explicit.
13524
d08aafef
PA
135252011-01-25 Pedro Alves <pedro@codesourcery.com>
13526
13527 * server.h (decode_xfer_write): Change prototype.
13528 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13529 and don't extract the annex here.
13530 * server.c (decode_xfer_read): Remove `annex' parameter,
13531 and don't extract the annex here.
13532 (decode_xfer): New.
13533 (struct qxfer): New.
13534 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13535 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13536 (handle_qxfer_statictrace): New functions, abstracted out from
13537 handle_query, and made to use the struct qxfer interface.
13538 (handle_threads_qxfer_proper): Rename to ...
13539 (handle_qxfer_threads_proper): ... this.
13540 (handle_threads_qxfer): Rename to ...
13541 (handle_qxfer_threads): ... this. Adjust.
13542 (qxfer_packets): New array.
13543 (handle_qxfer): New function.
13544 (handle_query): Use handle_qxfer.
13545
493e2a69
MS
135462011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13547
13548 * gdbreplay.c: Shorten lines of >= 80 columns.
13549 * linux-low.c: Ditto.
13550 * linux-ppc-low.c: Ditto.
13551 * linux-s390-low.c: Ditto.
13552 * linux-sparc-low.c: Ditto.
13553 * linux-x86-low.c: Ditto.
13554 * linux-xtensa-low.c: Ditto.
13555 * mem-break.c: Ditto.
13556 * nto-low.c: Ditto.
13557 * regcache.h: Ditto.
13558 * remote-utils.c: Ditto.
13559 * server.c: Ditto.
13560 * server.h: Ditto.
13561 * thread-db.c: Ditto.
13562 * tracepoint.c: Ditto.
13563 * utils.c: Ditto.
13564 * win32-low.h: Ditto.
13565
44944448
JB
135662011-01-05 Joel Brobecker <brobecker@adacore.com>
13567
13568 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13569 update.
13570
71ce852c
JB
135712011-01-01 Joel Brobecker <brobecker@adacore.com>
13572
13573 * server.c (gdbserver_version): Update copyright year in version
13574 output.
13575 * gdbreplay.c (gdbreplay_version): Ditto.
13576
eb826dc6
MF
135772010-12-29 Jie Zhang <jie.zhang@analog.com>
13578
13579 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13580 * linux-bfin-low.c: New file.
13581 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13582 PT_DATA_ADDR for BFIN targets.
13583 * Makefile.in (SFILES): Add linux-bfin-low.c.
13584 (clean): Remove reg-bfin.c.
13585 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13586 * README: Mention supported Blackfin targets.
13587
39ab222a
MF
135882010-12-23 Mike Frysinger <vapier@gentoo.org>
13589
13590 * .gitignore: New file.
13591
a1f2ce7d
MF
135922010-11-16 Mike Frysinger <vapier@gentoo.org>
13593
13594 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13595
f474844c
JZ
135962010-10-22 Jie Zhang <jie@codesourcery.com>
13597
13598 * Makefile.in: Add FLAGS_TO_PASS variable.
13599 (install): Remove dependency of install-only and recursively
13600 invoke make for install-only.
13601
f1048712
DE
136022010-10-04 Doug Evans <dje@google.com>
13603
13604 * Makefile.in (uninstall): Use $(DESTDIR).
13605
b53a1623
PA
136062010-09-24 Pedro Alves <pedro@codesourcery.com>
13607
e6ee044d
PA
13608 PR gdb/11842
13609
b53a1623
PA
13610 * linux-x86-low.c (compat_siginfo_from_siginfo)
13611 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
13612 si_code is < 0. Check for si_code == SI_TIMER before checking for
13613 si_code < 0.
13614
fa1bd1e4
JB
136152010-09-13 Joel Brobecker <brobecker@adacore.com>
13616
13617 * lynx-i386-low.c: New file.
13618 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
13619
47fac8f8
JB
136202010-09-13 Joel Brobecker <brobecker@adacore.com>
13621
13622 * lynx-low.c (ptrace_request_to_str): Remove handling for
13623 request values that have been removed in LynxOS 5.x.
13624
1adfc54d
JB
136252010-09-13 Joel Brobecker <brobecker@adacore.com>
13626
13627 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
13628 <ptrace.h>
13629
c2a66c29
NS
136302010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13631
13632 * configure.ac: Add --enable-inprocess-agent option.
13633 * configure: Rebuilt.
13634
32fcada3
YQ
136352010-09-06 Yao Qi <yao@codesourcery.com>
13636
13637 * linux-low.c (linux_kill): Remove unused variable.
13638 (linux_stabilize_threads): Likewise.
13639 * server.c (start_inferior): Likewise.
13640 (queue_stop_reply_callback): Likewise.
13641 * tracepoint.c (do_action_at_tracepoint): Likewise.
13642
0cccb683
YQ
136432010-09-06 Yao Qi <yao@codesourcery.com>
13644
13645 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
13646 on return.
13647
423ec54c
JK
136482010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13649
13650 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
13651
12ac6819
PA
136522010-09-06 Pedro Alves <pedro@codesourcery.com>
13653
13654 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13655 "$(IPA_DEPFILES)".
13656
8ed54b31
JB
136572010-09-01 Joel Brobecker <brobecker@adacore.com>
13658
13659 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13660 gdbserver/lynx-ppc-low.c: New files.
13661 * Makefile.in (lynx_low_h): New variable.
13662 (lynx-low.o, lynx-ppc-low.o): New rules.
13663 * configure.ac: On LynxOS, link with -lnetinet.
13664 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13665 * configure: regenerate.
13666
bb0116a4
JB
136672010-09-01 Joel Brobecker <brobecker@adacore.com>
13668
13669 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13670 * configure.ac: Add check for vasprintf and vsnprintf.
13671 * configure, config.in: Regenerate.
13672 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13673
a778ab81 136742010-09-01 Joel Brobecker <brobecker@adacore.com>
13675
13676 * gdbreplay.c: Move include of alloca.h up, next to include of
13677 malloc.h.
13678 * server.h: Add include of malloc.h.
13679 * mem-break.c: Remove include of malloc.h.
13680 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13681
8b034a19 136822010-09-01 Joel Brobecker <brobecker@adacore.com>
13683
13684 * Makefile.in (memmem.o): Build with -Wno-error.
13685
136862010-09-01 Joel Brobecker <brobecker@adacore.com>
13687
13688 * utils.c (xsnprintf): Make non-static.
13689 * server.h: Add xsnprintf declaration.
13690 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13691 replace calls to snprintf by calls to xsnprintf throughout.
13692
136932010-09-01 Joel Brobecker <brobecker@adacore.com>
13694
13695 * configure.ac: Add configure check for alloca.
13696 * configure, config.in: Regenerate.
13697 * server.h: Include alloca.h if it exists.
13698 * gdbreplay.c: Include alloca.h if it exists.
13699
1a981360
PA
137002010-08-28 Pedro Alves <pedro@codesourcery.com>
13701
13702 * linux-low.c (__SIGRTMIN): Define if not already defined.
13703 (linux_create_inferior): Check for __ANDROID__ rather than
13704 __SIGRTMIN.
13705 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13706 are already deferred.
13707 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13708 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13709 stopped and already has a pending signal to report.
13710 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13711 a pending signal to report or is moving out of a jump pad.
13712 (linux_init_signals): Check for __ANDROID__ rather than
13713 __SIGRTMIN.
13714
b4d51a55
PA
137152010-08-28 Pedro Alves <pedro@codesourcery.com>
13716
13717 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13718 debug_threads check. Avoid a linear search when not doing debug
13719 output.
13720
ec48365d
PA
137212010-08-27 Pedro Alves <pedro@codesourcery.com>
13722
13723 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13724 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13725 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13726 (process_event): Change local fd's type to gdb_fildes_t.
13727 (create_file_handler): Adjust prototype.
13728 (delete_file_handler): Adjust prototype.
13729 (handle_file_event): Adjust prototype. Use pfildes.
13730 (create_file_event): Adjsut prototype.
13731 * remote-utils.c (remote_desc, listen_desc): Change type to
13732 gdb_fildes_t.
13733 * server.h: New gdb_fildes_t typedef.
13734 [USE_WIN32API]: Include winsock2.h.
13735 (delete_file_handler, add_file_handler): Adjust prototypes.
13736 (pfildes): Declare.
13737 * utils.c (pfildes): New.
13738
854d88f0
PA
137392010-08-27 Pedro Alves <pedro@codesourcery.com>
13740
13741 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13742 * configure: Regenerate.
13743
0146f85b
PA
137442010-08-27 Pedro Alves <pedro@codesourcery.com>
13745
13746 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13747 (linux_done_accessing_memory): ... this.
13748 (linux_target_ops): Adjust.
13749 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13750 * nto-low.c (nto_target_ops): Adjust comment.
13751 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13752 * spu-low.c (spu_target_ops): Adjust comment.
13753 * target.h (target_ops): Rename unprepare_to_access_memory field
13754 to done_accessing_memory.
13755 (unprepare_to_access_memory): Rename to ...
13756 (done_accessing_memory): ... this.
13757
90d74c30
PA
137582010-08-26 Pedro Alves <pedro@codesourcery.com>
13759
13760 * linux-low.c (linux_prepare_to_access_memory): New.
13761 (linux_unprepare_to_access_memory): New.
13762 (linux_target_ops): Install them.
13763 * server.c (read_memory): Rename to ...
13764 (gdb_read_memory): ... this. Use
13765 prepare_to_access_memory/prepare_to_access_memory.
13766 (write_memory): Rename to ...
13767 (gdb_write_memory): ... this. Use
13768 prepare_to_access_memory/prepare_to_access_memory.
13769 (handle_search_memory_1): Adjust.
13770 (process_serial_event): Adjust.
13771 * target.h (struct target_ops): New fields
13772 prepare_to_access_memory and unprepare_to_access_memory.
13773 (prepare_to_access_memory, unprepare_to_access_memory): New.
13774 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13775 prepare_to_access_memory/prepare_to_access_memory.
13776 * nto-low.c (nto_target_ops): Adjust.
13777 * spu-low.c (spu_target_ops): Adjust.
13778 * win32-low.c (win32_target_ops): Adjust.
13779
fd467969
PA
137802010-08-26 Pedro Alves <pedro@codesourcery.com>
13781
13782 * Makefile.in (WARN_CFLAGS): Get it from configure.
13783 (WERROR_CFLAGS): New.
13784 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13785 * configure.ac: Introduce --enable-werror, which adds -Werror to
13786 the compiler command line. Enabled by default. Disable with
13787 --disable-werror. Add -Wdeclaration-after-statement
13788 Wpointer-arith and -Wformat-nonliteral to warning flags.
13789 * configure: Regenerate.
13790
331e2f5f
PA
137912010-08-26 Pedro Alves <pedro@codesourcery.com>
13792
13793 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13794
e581f2b4
PA
137952010-08-26 Pedro Alves <pedro@codesourcery.com>
13796
13797 * gdbreplay.c (remote_error): New.
13798 (gdbchar): New.
13799 (expect): Use gdbchar. Check for error reading from GDB.
13800 Clarify sync error output.
13801 (play): Check for errors writing to GDB.
13802 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13803 * remote-utils.c (getpkt): Check for errors writing to the remote
13804 descriptor.
13805
3c11dd79
PA
138062010-08-25 Pedro Alves <pedro@codesourcery.com>
13807
13808 * linux-low.c (linux_wait_1): Move non-debugging code out of
13809 `debug_threads' control.
13810
d20a8ad9
PA
138112010-08-25 Pedro Alves <pedro@codesourcery.com>
13812
13813 * linux-low.c (linux_wait_1): Don't set last_status here.
13814 * server.c (push_event, queue_stop_reply_callback): Assert we're
13815 not pushing a TARGET_WAITKIND_IGNORE event.
13816 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13817 (myresume, handle_target_event): Set the thread's last_resume_kind
13818 and last_status from the target returned status.
13819
964e4306
PA
138202010-08-25 Pedro Alves <pedro@codesourcery.com>
13821
13822 PR threads/10729
13823
13824 * linux-x86-low.c (update_debug_registers_callback): New.
13825 (i386_dr_low_set_addr): Use it.
13826 (i386_dr_low_get_addr): New.
13827 (i386_dr_low_set_control): Use update_debug_registers_callback.
13828 (i386_dr_low_get_control): New.
13829 (i386_dr_low_get_status): Adjust.
13830 * linux-low.c (linux_stop_lwp): New.
13831 * linux-low.h (linux_stop_lwp): Declare.
13832
13833 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13834 argument instead of a i386_debug_reg_state.
13835 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13836 a i386_debug_reg_state.
13837 (i386_insert_aligned_watchpoint): Adjust.
13838 (i386_remove_aligned_watchpoint): Adjust.
13839 (i386_low_stopped_data_address): Read the debug registers from the
13840 inferior instead of from the mirrors.
13841 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13842 (i386_dr_low_get_addr): Declare.
13843 (i386_dr_low_get_control): Declare.
13844 (i386_dr_low_get_status): Change prototype.
13845
13846 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13847 (i386_dr_low_get_addr): New.
13848 (i386_dr_low_get_control): New.
13849 (i386_dr_low_get_status): Adjust prototype. Return
13850 dr_status_mirror.
13851 (i386_initial_stuff): Clear dr_status_mirror and
13852 dr_control_mirror.
13853 (i386_get_thread_context): Adjust.
13854 (i386_set_thread_context): Adjust.
13855 (i386_thread_added): Adjust.
13856
5f21a75b
PA
138572010-08-24 Pedro Alves <pedro@codesourcery.com>
13858
13859 * linux-low.h (linux_thread_area): Delete declaration.
13860
3e4c1235
TS
138612010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13862
13863 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13864 after its termination.
13865
1971b033
PA
138662010-08-09 Pedro Alves <pedro@codesourcery.com>
13867
13868 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13869 (gdb_wants_all_stopped): Delete.
13870 (linux_wait_1): Don't call them.
13871 * server.c (handle_v_cont): Tag all threads as want-stopped.
13872 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13873 stopped as "client-wants-stopped".
13874
310444ac
PA
138752010-07-31 Pedro Alves <pedro@codesourcery.com>
13876
13877 * Makefile.in (signals_h): New.
13878 (server_h): Depend on it.
13879 (server.o): Don't depend on $(signals_def).
13880 (signals.o): Depend on $(signals_def).
13881
a19cae16
JK
138822010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13883
13884 * Makefile.in (signals_def): New.
13885 (server_h): Append include/gdb/signals.h and signals_def.
13886 (server.o): Append signals_def.
13887
30d50328
JK
138882010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13889
13890 * server.c (handle_target_event): Use target_signal_to_host for
13891 resume_info.sig initialization.
13892 * target.h (struct thread_resume) <sig>: New comment.
13893
5c3216e2
OS
138942010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13895
c6f46ca0
OS
13896 * server.c (handle_query): strcpy() the returned string from paddress()
13897 instead of sprintf().
5c3216e2
OS
13898 * utils.c (paddress): Return phex_nz().
13899
6bd31874
JB
139002010-07-07 Joel Brobecker <brobecker@adacore.com>
13901
13902 * server.c (handle_v_cont): Call mourn_inferior if process
13903 just exited.
13904 (myresume): Likewise.
13905
0fb4aa4b
PA
139062010-07-01 Pedro Alves <pedro@codesourcery.com>
13907
13908 Static tracepoints, and integration with UST.
13909
13910 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13911 * mem-break.c (uninsert_all_breakpoints)
13912 (reinsert_all_breakpoints): New.
13913 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13914 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13915 (gdb_agent_ust_loaded, helper_thread_id)
13916 (gdb_agent_helper_thread_id): New macros.
13917 (struct ipa_sym_addresses): Add addr_ust_loaded,
13918 addr_helper_thread_id, addr_cmd_buf.
13919 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13920 (in_process_agent_loaded_ust): New.
13921 (write_e_ust_not_loaded): New.
13922 (maybe_write_ipa_ust_not_loaded): New.
13923 (struct collect_static_trace_data_action): New.
13924 (enum tracepoint_type) <static_tracepoint>: New.
13925 (struct tracepoint) <handle>: Mention static tracepoints.
13926 (struct static_tracepoint_ctx): New.
13927 (CMD_BUF_SIZE): New.
13928 (add_tracepoint_action): Handle static tracepoint actions.
13929 (unprobe_marker_at): New.
13930 (clear_installed_tracepoints): Handle static tracepoints.
13931 (cmd_qtdp): Handle static tracepoints.
13932 (probe_marker_at): New.
13933 (cmd_qtstart): Handle static tracepoints.
13934 (response_tracepoint): Handle static tracepoints.
13935 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13936 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13937 (get_context_regcache): Handle static tracepoints.
13938 (do_action_at_tracepoint): Handle static tracepoint actions.
13939 (traceframe_find_block_type): Handle static trace data blocks.
13940 (traceframe_read_sdata): New.
13941 (download_tracepoints): Download static tracepoint actions.
13942 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13943 (GDB_PROBE_NAME): New.
13944 (ust_ops): New.
13945 (GET_UST_SYM): New.
13946 (USTF): New.
13947 (dlsym_ust): New.
13948 (ust_marker_to_static_tracepoint): New.
13949 (gdb_probe): New.
13950 (collect_ust_data_at_tracepoint): New.
13951 (gdb_ust_probe): New.
13952 (UNIX_PATH_MAX, SOCK_DIR): New.
13953 (gdb_ust_connect_sync_socket): New.
13954 (resume_thread, stop_thread): New.
13955 (run_inferior_command): New.
13956 (init_named_socket): New.
13957 (gdb_ust_socket_init): New.
13958 (cstr_to_hexstr): New.
13959 (next_st): New.
13960 (first_marker, next_marker): New.
13961 (response_ust_marker): New.
13962 (cmd_qtfstm, cmd_qtsstm): New.
13963 (unprobe_marker_at, probe_marker_at): New.
13964 (cmd_qtstmat, gdb_ust_thread): New.
13965 (gdb_ust_init): New.
13966 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13967 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13968 (ST_REGENTRY): New.
13969 (x86_64_st_collect_regmap): New.
13970 (X86_64_NUM_ST_COLLECT_GREGS): New.
13971 (AMD64_RIP_REGNUM): New.
13972 (supply_static_tracepoint_registers): New.
13973 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13974 (ST_REGENTRY): New.
13975 (i386_st_collect_regmap): New.
13976 (i386_NUM_ST_COLLECT_GREGS): New.
13977 (supply_static_tracepoint_registers): New.
13978 * server.c (handle_query): Handle qXfer:statictrace:read.
13979 <qSupported>: Report support for StaticTracepoints, and
13980 qXfer:statictrace:read features.
13981 * server.h (traceframe_read_sdata)
13982 (supply_static_tracepoint_registers): Declare.
13983 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13984 (unpack_varlen_hex): Include in IPA build.
13985 * Makefile.in (ustlibs, ustinc): New.
13986 (IPA_OBJS): Add remote-utils-ipa.o.
13987 ($(IPA_LIB)): Link -ldl and -lpthread.
13988 (UST_CFLAGS): New.
13989 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13990 * config.in, configure: Regenerate.
13991
9e4344e5
PA
139922010-06-20 Ian Lance Taylor <iant@google.com>
13993 Pedro Alves <pedro@codesourcery.com>
13994
13995 * linux-x86-low.c (always_true): Delete.
13996 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13997 trying to fool the compiler with always_true.
13998
c6beb2cb
PA
139992010-06-20 Pedro Alves <pedro@codesourcery.com>
14000
14001 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14002 conditions in gdbserver.
14003
d2ed6730
UW
140042010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14005
14006 * spu-low.c (spu_read_memory): Wrap around local store limit.
14007 (spu_write_memory): Likewise.
14008
4e29fb54
PA
140092010-06-15 Pedro Alves <pedro@codesourcery.com>
14010
14011 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14012 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14013 LONGEST uses.
14014 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14015 uses.
14016 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14017 uses with LONGEST uses.
14018
6a271cae
PA
140192010-06-14 Stan Shebs <stan@codesourcery.com>
14020 Pedro Alves <pedro@codesourcery.com>
14021
14022 Bytecode compiler.
14023
14024 * linux-x86-low.c: Include limits.h.
14025 (add_insns): New.
14026 (always_true): New.
14027 (EMIT_ASM): New.
14028 (EMIT_ASM32): New.
14029 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14030 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14031 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14032 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14033 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14034 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14035 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14036 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14037 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14038 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14039 (amd64_emit_void_call_2): New.
14040 (amd64_emit_ops): New.
14041 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14042 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14043 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14044 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14045 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14046 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14047 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14048 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14049 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14050 (i386_emit_stack_adjust, i386_emit_int_call_1)
14051 (i386_emit_void_call_2): New.
14052 (i386_emit_ops): New.
14053 (x86_emit_ops): New.
14054 (the_low_target): Install x86_emit_ops.
14055 * server.h (struct emit_ops): New.
14056 (get_raw_reg_func_addr): Declare.
14057 (current_insn_ptr, emit_error): Declare.
14058 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14059 (set_trace_state_variable_value): New defines.
14060 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14061 addr_get_trace_state_variable_value and
14062 addr_set_trace_state_variable_value.
14063 (symbol_list): New fields for get_raw_reg,
14064 get_trace_state_variable_value and set_trace_state_variable_value.
14065 (condfn): New typedef.
14066 (struct tracepoint): New field `compiled_cond'.
14067 (do_action_at_tracepoint): Clear compiled_cond.
14068 (get_trace_state_variable_value, set_trace_state_variable_value):
14069 Export in the IPA.
14070 (condition_true_at_tracepoint): If there's a compiled condition,
14071 run that.
14072 (current_insn_ptr, emit_error): New globals.
14073 (struct bytecode_address): New.
14074 (get_raw_reg_func_addr): New.
14075 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14076 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14077 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14078 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14079 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14080 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14081 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14082 (compile_tracepoint_condition, compile_bytecodes): New.
14083 * target.h (emit_ops): Forward declare.
14084 (struct target_ops): New field emit_ops.
14085 (target_emit_ops): New.
14086 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14087 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14088 * linux-low.c (linux_emit_ops): New.
14089 (linux_target_ops): Install it.
14090 * linux-low.h (struct linux_target_ops): New field emit_ops.
14091
92b72907
UW
140922010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14093
14094 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14095 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14096
fa593d66
PA
140972010-06-01 Pedro Alves <pedro@codesourcery.com>
14098 Stan Shebs <stan@codesourcery.com>
14099
14100 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14101 (all): Depend on $(extra_libraries).
14102 (install-only): Install the IPA.
14103 (IPA_OBJS, IPA_LIB): New.
14104 (clean): Remove the IPA lib.
14105 (IPAGENT_CFLAGS): New.
14106 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14107 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14108 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14109 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14110 * configure.ac: Check for atomic builtins support in the compiler.
14111 (IPA_DEPFILES, extra_libraries): Define.
14112 * configure.srv (ipa_obj): Add description.
14113 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14114 (i[34567]86-*-linux*): Set ipa_obj.
14115 (x86_64-*-linux*): Set ipa_obj.
14116 * linux-low.c (stabilizing_threads): New.
14117 (supports_fast_tracepoints): New.
14118 (linux_detach): Stabilize threads before detaching.
14119 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14120 the lwp is either not stabilizing, or is moving out of a jump pad.
14121 (linux_fast_tracepoint_collecting): New.
14122 (maybe_move_out_of_jump_pad): New.
14123 (enqueue_one_deferred_signal): New.
14124 (dequeue_one_deferred_signal): New.
14125 (linux_wait_for_event_1): If moving out of a jump pad, defer
14126 pending signals to later.
14127 (linux_stabilize_threads): New.
14128 (linux_wait_1): Check if threads need moving out of jump pads, and
14129 do it if so.
14130 (stuck_in_jump_pad_callback): New.
14131 (move_out_of_jump_pad_callback): New.
14132 (lwp_running): New.
14133 (linux_resume_one_lwp): Handle moving out of jump pads.
14134 (linux_set_resume_request): Dequeue deferred signals.
14135 (need_step_over_p): Also step over fast tracepoint jumps.
14136 (start_step_over): Also uninsert fast tracepoint jumps.
14137 (finish_step_over): Also reinsert fast tracepoint jumps.
14138 (linux_install_fast_tracepoint_jump): New.
14139 (linux_target_ops): Install linux_stabilize_threads and
14140 linux_install_fast_tracepoint_jump_pad.
14141 * linux-low.h (linux_target_ops) <get_thread_area,
14142 install_fast_tracepoint_jump_pad>: New fields.
14143 (struct lwp_info) <collecting_fast_tracepoint,
14144 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14145 (linux_get_thread_area): Declare.
14146 * linux-x86-low.c (jump_insn): New.
14147 (x86_get_thread_area): New.
14148 (append_insns): New.
14149 (push_opcode): New.
14150 (amd64_install_fast_tracepoint_jump_pad): New.
14151 (i386_install_fast_tracepoint_jump_pad): New.
14152 (x86_install_fast_tracepoint_jump_pad): New.
14153 (the_low_target): Install x86_get_thread_area and
14154 x86_install_fast_tracepoint_jump_pad.
14155 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14156 (struct fast_tracepoint_jump): New.
14157 (fast_tracepoint_jump_insn): New.
14158 (fast_tracepoint_jump_shadow): New.
14159 (find_fast_tracepoint_jump_at): New.
14160 (fast_tracepoint_jump_here): New.
14161 (delete_fast_tracepoint_jump): New.
14162 (set_fast_tracepoint_jump): New.
14163 (uninsert_fast_tracepoint_jumps_at): New.
14164 (reinsert_fast_tracepoint_jumps_at): New.
14165 (set_breakpoint_at): Use write_inferior_memory.
14166 (uninsert_raw_breakpoint): Use write_inferior_memory.
14167 (check_mem_read): Mask out fast tracepoint jumps.
14168 (check_mem_write): Mask out fast tracepoint jumps.
14169 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14170 (set_fast_tracepoint_jump): Declare.
14171 (delete_fast_tracepoint_jump)
14172 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14173 (reinsert_fast_tracepoint_jumps_at): Declare.
14174 * regcache.c: Don't compile many functions when building the
14175 in-process agent library.
14176 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14177 the register buffer in the heap.
14178 (free_register_cache): If the register buffer isn't owned by the
14179 regcache, don't free it.
14180 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14181 pre-existing register caches.
14182 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14183 type.
14184 (convert_ascii_to_int): : Constify `from' parameter type.
14185 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14186 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14187 the needed buffer in-place.
14188 (relocate_instruction): New.
14189 * server.c (handle_query) <qSymbols>: If the target supports
14190 tracepoints, give it a chance of looking up symbols. Report
14191 support for fast tracepoints.
14192 (handle_status): Stabilize threads.
14193 (process_serial_event): Adjust.
14194 * server.h (struct fast_tracepoint_jump): Forward declare.
14195 (struct process_info) <fast_tracepoint_jumps>: New field.
14196 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14197 (decode_X_packet, decode_M_packet): Adjust.
14198 (relocate_instruction): Declare.
14199 (in_process_agent_loaded): Declare.
14200 (tracepoint_look_up_symbols): Declare.
14201 (struct fast_tpoint_collect_status): Declare.
14202 (fast_tracepoint_collecting): Declare.
14203 (force_unlock_trace_buffer): Declare.
14204 (handle_tracepoint_bkpts): Declare.
14205 (initialize_low_tracepoint)
14206 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14207 * target.h (struct target_ops) <stabilize_threads,
14208 install_fast_tracepoint_jump_pad>: New fields.
14209 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14210 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14211 [HAVE_STDINT_H]: Include stdint.h.
14212 (trace_debug_1): Rename to ...
14213 (trace_vdebug): ... this.
14214 (trace_debug): Rename to ...
14215 (trace_debug_1): ... this. Add `level' parameter.
14216 (trace_debug): New.
14217 (ATTR_USED, ATTR_NOINLINE): New.
14218 (IP_AGENT_EXPORT): New.
14219 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14220 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14221 (about_to_request_buffer_space, trace_buffer_is_full)
14222 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14223 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14224 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14225 (traceframe_write_count, traceframes_created)
14226 (trace_state_variables)
14227 New renaming defines.
14228 (struct ipa_sym_addresses): New.
14229 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14230 (symbol_list): New.
14231 (ipa_sym_addrs): New.
14232 (all_tracepoint_symbols_looked_up): New.
14233 (in_process_agent_loaded): New.
14234 (write_e_ipa_not_loaded): New.
14235 (maybe_write_ipa_not_loaded): New.
14236 (tracepoint_look_up_symbols): New.
14237 (debug_threads) [IN_PROCESS_AGENT]: New.
14238 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14239 (UNKNOWN_SIDE_EFFECTS): New.
14240 (stop_tracing): New.
14241 (flush_trace_buffer): New.
14242 (stop_tracing_bkpt): New.
14243 (flush_trace_buffer_bkpt): New.
14244 (read_inferior_integer): New.
14245 (read_inferior_uinteger): New.
14246 (read_inferior_data_pointer): New.
14247 (write_inferior_data_pointer): New.
14248 (write_inferior_integer): New.
14249 (write_inferior_uinteger): New.
14250 (struct collect_static_trace_data_action): Delete.
14251 (enum tracepoint_type): New.
14252 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
14253 <actions_str, step_actions, step_actions_str>: Only include in
14254 GDBserver.
fa593d66
PA
14255 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14256 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14257 (tracepoints): Use IP_AGENT_EXPORT.
14258 (last_tracepoint): Don't include in the IPA.
14259 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14260 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14261 (alloced_trace_state_variables): New.
14262 (trace_state_variables): Use IP_AGENT_EXPORT.
14263 (traceframe_t): Delete unused variable.
14264 (circular_trace_buffer): Don't include in the IPA.
14265 (trace_buffer_start): Delete.
14266 (struct trace_buffer_control): New.
14267 (trace_buffer_free): Delete.
14268 (struct ipa_trace_buffer_control): New.
14269 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14270 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14271 New.
14272 (trace_buffer_ctrl): New.
14273 (TRACE_BUFFER_CTRL_CURR): New.
14274 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14275 Reimplement as macros.
14276 (trace_buffer_wrap): Delete.
14277 (traceframe_write_count, traceframe_read_count)
14278 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14279 (struct tracepoint_hit_ctx) <type>: New field.
14280 (struct fast_tracepoint_ctx): New.
14281 (memory_barrier): New.
14282 (cmpxchg): New.
14283 (record_tracepoint_error): Update atomically in the IPA.
14284 (clear_inferior_trace_buffer): New.
14285 (about_to_request_buffer_space): New.
14286 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14287 updating the same buffer.
14288 (add_tracepoint): Default the tracepoint's type to trap
14289 tracepoint, and orig_size to -1.
14290 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14291 internal variables.
14292 (create_trace_state_variable): New parameter `gdb'. Handle it.
14293 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14294 (cmd_qtdp): Handle fast tracepoints.
14295 (cmd_qtdv): Adjust.
14296 (max_jump_pad_size): New.
14297 (gdb_jump_pad_head): New.
14298 (get_jump_space_head): New.
14299 (claim_jump_space): New.
14300 (sort_tracepoints): New.
14301 (MAX_JUMP_SIZE): New.
14302 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14303 IPA.
14304 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14305 support. Upload fast traceframes, and delete internal IPA
14306 breakpoints.
14307 (stop_tracing_handler): New.
14308 (flush_trace_buffer_handler): New.
14309 (cmd_qtstop): Upload fast tracepoints.
14310 (response_tracepoint): Handle fast tracepoints.
14311 (tracepoint_finished_step): Upload fast traceframes. Set the
14312 tracepoint hit context's tracepoint type.
14313 (handle_tracepoint_bkpts): New.
14314 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14315 type. Add comment about fast tracepoints.
14316 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14317 non-existing action_str field.
14318 (get_context_regcache): Handle fast tracepoints.
14319 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14320 to the regcache.
14321 (fast_tracepoint_from_jump_pad_address): New.
14322 (fast_tracepoint_from_ipa_tpoint_address): New.
14323 (collecting_t): New.
14324 (force_unlock_trace_buffer): New.
14325 (fast_tracepoint_collecting): New.
14326 (collecting): New.
14327 (gdb_collect): New.
14328 (write_inferior_data_ptr): New.
14329 (target_tp_heap): New.
14330 (target_malloc): New.
14331 (download_agent_expr): New.
14332 (UALIGN): New.
14333 (download_tracepoints): New.
14334 (download_trace_state_variables): New.
14335 (upload_fast_traceframes): New.
14336 (IPA_FIRST_TRACEFRAME): New.
14337 (IPA_NEXT_TRACEFRAME_1): New.
14338 (IPA_NEXT_TRACEFRAME): New.
14339 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14340 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14341 (gdb_jump_pad_buffer_end): New.
14342 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14343 (initialize_tracepoint): Adjust.
14344 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14345 buffer. Initialize the low module.
14346 * utils.c (PREFIX, TOOLNAME): New.
14347 (malloc_failure): Use PREFIX.
14348 (error): In the IPA, an error causes an exit.
14349 (fatal, warning): Use PREFIX.
14350 (internal_error): Use TOOLNAME.
14351 (NUMCELLS): Increase to 10.
14352 * configure, config.in: Regenerate.
14353
d149dd1d
PA
143542010-06-01 Pedro Alves <pedro@codesourcery.com>
14355
14356 * server.c (handle_query) <qSupported>: Do two passes over the
14357 qSupported string to avoid nesting strtok.
14358
f6528abd
JK
143592010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14360
14361 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14362 (CDEPS): New.
14363 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14364 -Wl,--dynamic-list.
14365 * configure: Regenerate.
14366 * proc-service.list: New.
14367
ca2a87a0
JK
143682010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14369
14370 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14371 New comment.
14372
363a6e9f
OS
143732010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14374
14375 * gdbreplay.c (remote_open): Check error return from socket() call by
14376 its equality to -1 not by it being negative.
14377 * remote-utils.c (remote_open): Likewise.
14378
d23b6cb1
PA
143792010-05-23 Pedro Alves <pedro@codesourcery.com>
14380
14381 * config.h: Regenerate.
14382
28d3cf85
MK
143832010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14384
14385 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14386 doesn't provide PTRACE_GET_THREAD_AREA.
14387
fea36a59
MK
143882010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14389
14390 * linux-m68k-low.c: Include <asm/ptrace.h>
14391 (ps_get_thread_area): Implement.
14392
24b066ba
DE
143932010-05-03 Doug Evans <dje@google.com>
14394
14395 * event-loop.c (struct callback_event): New struct.
14396 (callback_list): New global.
14397 (append_callback_event, delete_callback_event): New functions.
14398 (process_callback): New function.
14399 (start_event_loop): Call it.
14400 * remote-utils.c (NOT_SCHEDULED): Define.
14401 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14402 moved out of readchar.
14403 (readchar): Rewrite. Call reschedule before returning.
14404 (reset_readchar): New function.
14405 (remote_close): Call it.
14406 (process_remaining, reschedule): New functions.
14407 * server.h (callback_handler_func): New typedef.
14408 (append_callback_event, delete_callback_event): Declare.
14409
9836d6ea
PA
144102010-05-03 Pedro Alves <pedro@codesourcery.com>
14411
14412 * proc-service.c (ps_pglobal_lookup): Use
14413 thread_db_look_up_one_symbol.
14414 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14415 parameter. Use it instead of all_symbols_looked_up.
14416 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14417 field.
14418 (all_symbols_looked_up): Don't declare.
14419 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14420 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14421 field.
14422 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14423 Set all_symbols_looked_up here.
14424 (thread_db_look_up_one_symbol): New.
14425 (thread_db_get_tls_address): Adjust.
14426 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14427 thread_db object on the heap, and tentatively set it in the
14428 process structure.
14429 (thread_db_init): Don't set all_symbols_looked_up here.
14430 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14431
7984d532
PA
144322010-05-03 Pedro Alves <pedro@codesourcery.com>
14433
14434 * linux-low.c (linux_kill, linux_detach): Adjust.
14435 (status_pending_p_callback): Remove redundant statement. Check
14436 for !TARGET_WAITIKIND_IGNORE, instead of
14437 TARGET_WAITKIND_STOPPED.
14438 (handle_tracepoints): Make sure LWP is locked. Adjust.
14439 (linux_wait_for_event_1): Adjust.
14440 (linux_cancel_breakpoints): New.
14441 (unsuspend_one_lwp): New.
14442 (unsuspend_all_lwps): New.
14443 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14444 (send_sigstop_callback): Change return type to int, add new
14445 `except' parameter and handle it.
14446 (suspend_and_send_sigstop_callback): New.
14447 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14448 pass them down. If SUSPEND, also increment the lwp's suspend
14449 count.
14450 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14451 (need_step_over_p): Don't consider suspended LWPs.
14452 (start_step_over): Adjust.
14453 (proceed_one_lwp): Change return type to int, add new `except'
14454 parameter and handle it.
14455 (unsuspend_and_proceed_one_lwp): New.
14456 (proceed_all_lwps): Use find_inferior instead of
14457 for_each_inferior.
14458 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14459 also decrement the suspend count of LWPs. Pass `except' down,
14460 instead of hacking its suspend count.
14461 (linux_pause_all): Add `freeze' parameter. Adjust.
14462 (linux_unpause_all): New.
14463 (linux_target_ops): Install linux_unpause_all.
14464 * server.c (handle_status): Adjust.
14465 * target.h (struct target_ops): New fields `unpause_all' and
14466 `cancel_breakpoints'. Add new parameter to `pause_all'.
14467 (pause_all): Add new `freeze' parameter.
14468 (unpause_all): New.
14469 (cancel_breakpoints): New.
14470 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14471 cancel breakpoints.
14472 (cmd_qtstart): Pause threads.
14473 (stop_tracing): Pause threads, and cancel breakpoints.
14474 * win32-low.c (win32_target_ops): Adjust.
14475
e471f25b
PA
144762010-05-03 Pedro Alves <pedro@codesourcery.com>
14477
14478 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14479 the inferior right away from here...
14480 (linux_wait_1): ... to here, and adjust to check the thread's
14481 last_resume_kind instead of the lwp's step or stop_expected flags.
14482
1915ef4f
PA
144832010-05-02 Pedro Alves <pedro@codesourcery.com>
14484
14485 * README: Use consistent `GDB' and `GDBserver' spellings.
14486
f9e39928
PA
144872010-05-02 Pedro Alves <pedro@codesourcery.com>
14488
14489 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14490 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14491 (linux_detach_one_lwp): Assume the lwp is stopped.
14492 (any_thread_of): Delete.
14493 (linux_detach): Stop all lwps here. Don't blindly delete all
14494 breakpoints.
14495 (delete_lwp_callback): New.
14496 (linux_mourn): Delete all lwps of the process that is gone.
14497 (linux_wait_1): Don't delete the last lwp of the process here.
14498 * mem-break.h (mark_breakpoints_out): Declare.
14499 * mem-break.c (mark_breakpoints_out): New.
14500 (free_all_breakpoints): Use it.
14501 * server.c (handle_target_event): If the process is gone, mark
14502 breakpoints out.
14503 * thread-db.c (struct thread_db) <create_bp>: New field.
14504 (thread_db_enable_reporting): Fix prototype. Store a thread event
14505 breakpoint reference in the thread_db struct.
14506 (thread_db_load_search): Clear the thread_db object.
14507 (try_thread_db_load_1): Ditto.
14508 (switch_to_process): New.
14509 (disable_thread_event_reporting): Use it.
14510 (remove_thread_event_breakpoints): New.
14511 (thread_db_detach, thread_db_mourn): Use it.
14512
1e7fc18c
PA
145132010-05-01 Pedro Alves <pedro@codesourcery.com>
14514
14515 * linux-low.c (linux_enable_event_reporting): New.
14516 (linux_wait_for_event_1, handle_extended_wait): Use it.
14517
02fc4de7
PA
145182010-04-30 Pedro Alves <pedro@codesourcery.com>
14519
14520 * linux-low.c (linux_kill_one_lwp, linux_kill)
14521 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14522 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14523 SIGSTOP even if the LWP is stopped.
14524 (send_sigstop_callback): New.
14525 (stop_all_lwps): Use send_sigstop_callback instead.
14526 (linux_resume_one_thread): Adjust.
14527 (proceed_one_lwp): Still proceed an LWP that the client has
14528 requested to stop, if we haven't reported it as stopped yet. Make
14529 sure that LWPs the client want stopped, have a pending SIGSTOP.
14530
bc3b5632
DE
145312010-04-26 Doug Evans <dje@google.com>
14532
ae1ada35
DE
14533 * server.c (handle_general_set): Make static.
14534
bc3b5632
DE
14535 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14536 Print received char after testing for error/eof instead of before.
14537 (input_interrupt): Tweak comment.
14538
65730243
DE
145392010-04-23 Doug Evans <dje@google.com>
14540
14541 * server.c (start_inferior): Print inferior argv if --debug.
14542
a8ae7dc0
AR
145432010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14544
14545 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14546 * nto-x86-low.c: Include server.h
14547
1c07cc19
PM
145482010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14549
14550 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14551 be consistent with other sources of this directory.
14552 (init_registers_amd64): Correct name of source file of this function
14553 in the comment.
14554
e0a61e09
PM
145552010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14556
14557 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14558 64-bit executables.
14559
54709339
PM
145602010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14561
14562 * win32-i386-low.c: Add 64-bit support.
14563 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14564 (init_registers_amd64): Declare.
14565 (mappings): Add 64-bit version of array.
14566 (init_windows_x86): New function.
14567 (the_low_target): Change init_arch field to init_windows_x86.
14568
e8f0053d
PM
145692010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14570
14571 * win32-low.c: Adapt to support also 64-bit architecture.
14572 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14573 (get_image_name): Use SIZE_T type for local variable `done'.
14574 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14575 (toolhelp_get_dll_name): Idem.
14576 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14577 Use uintptr_t typecast to avoid warning.
14578 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14579 (handle_exception): Use phex_nz to avoid warning.
14580 (win32_wait): Remove unused local variable `process'.
14581
c481e77e
PM
145822010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14583
14584 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14585 `amd64-avx.o'.
14586
12ea4b69
PM
145872010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14588
14589 * configure.ac: Use `ws2_32' library for srv_mingw.
14590 * configure: Regenerate.
14591 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14592 * remote-utils.c: Likewise.
14593
f6d1620c
L
145942010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14595
14596 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14597 if __x86_64__ is defined.
14598
8e642873
PM
145992010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14600
14601 * configure: Regenerate.
14602
711e434b
PM
146032010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14604
14605 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14606 * target.h (target_ops): New get_tib_address field.
14607 * win32-low.h (win32_thread_info): Add thread_local_base field.
14608 * win32-low.c (child_add_thread): Add tlb argument.
14609 Set thread_local_base field to TLB.
14610 (get_child_debug_event): Adapt to child_add_thread change.
14611 (win32_get_tib_address): New function.
14612 (win32_target_ops): Set get_tib_address field to
14613 win32_get_tib_address.
14614 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
14615
505106cd
PA
146162010-04-12 Pedro Alves <pedro@codesourcery.com>
14617
505106cd
PA
14618 * linux-low.c (linux_mourn): Also remove the process.
14619 * server.c (handle_target_event): Don't remove the process here.
14620 * nto-low.c (nto_mourn): New.
14621 (nto_target_ops): Install it.
14622 * spu-low.c (spu_mourn): New.
14623 (spu_target_ops): Install it.
14624 * win32-low.c (win32_mourn): New.
14625 (win32_target_ops): Install it.
14626
e8470a06
PA
146272010-04-12 Pedro Alves <pedro@codesourcery.com>
14628
14629 * server.h (buffer_xml_printf): Remove redundant `;'.
14630
45ba0d02
PA
146312010-04-12 Pedro Alves <pedro@codesourcery.com>
14632
14633 * regcache.c (set_register_cache): Invalidate regcaches before
14634 changing the register cache layout.
14635 (regcache_invalidate_one): Allow a NULL regcache.
14636 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
14637 regcaches before changing the register cache layout or the target
14638 regsets.
14639
59e04013
L
146402010-04-12 H.J. Lu <hongjiu.lu@intel.com>
14641
14642 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
14643 variable warning on Linux/x86-64.
14644
8336d594
PA
146452010-04-11 Pedro Alves <pedro@codesourcery.com>
14646
14647 GDBserver disconnected tracing support.
14648
14649 * linux-low.c (linux_remove_process): Delete.
14650 (add_lwp): Don't set last_resume_kind here.
14651 (linux_kill): Use `mourn'.
14652 (linux_detach): Use `thread_db_detach', and `mourn'.
14653 (linux_mourn): New.
14654 (linux_attach_lwp_1): Adjust comment.
14655 (linux_attach): last_resume_kind moved the thread_info; adjust.
14656 (status_pending_p_callback): Adjust.
14657 (linux_wait_for_event_1): Adjust.
14658 (count_events_callback, select_singlestep_lwp_callback)
14659 (select_event_lwp_callback, cancel_breakpoints_callback)
14660 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14661 (proceed_one_lwp): Adjust.
14662 (linux_async): Add debug output.
14663 (linux_thread_stopped): New.
14664 (linux_pause_all): New.
14665 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14666 linux_pause_all.
14667 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14668 (thread_db_free): Delete declaration.
14669 (thread_db_detach, thread_db_mourn): Declare.
14670 * thread-db.c (thread_db_init): Use thread_db_mourn.
14671 (thread_db_free): Delete, split in two.
14672 (disable_thread_event_reporting): New.
14673 (thread_db_detach): New.
14674 (thread_db_mourn): New.
14675
14676 * server.h (struct thread_info) <last_resume_kind>: New field.
14677 <attached>: Add comment.
14678 <gdb_detached>: New field.
14679 (handler_func): Change return type to int.
14680 (handle_serial_event, handle_target_event): Ditto.
14681 (gdb_connected): Declare.
14682 (tracing): Delete.
14683 (disconnected_tracing): Declare.
14684 (stop_tracing): Declare.
14685
14686 * server.c (handle_query) <qSupported>: Report support for
14687 disconnected tracing.
14688 (queue_stop_reply_callback): Account for running threads.
14689 (gdb_wants_thread_stopped): New.
14690 (gdb_wants_all_threads_stopped): New.
14691 (gdb_reattached_process): New.
14692 (handle_status): Clear the `gdb_detached' flag of all processes.
14693 In all-stop, stop all threads.
14694 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14695 (process_serial_event): If the remote connection breaks, or if an
14696 exit was forced with "monitor exit", force an event loop exit.
14697 Handle disconnected tracing on detach.
14698 (handle_serial_event): Adjust.
14699 (handle_target_event): If GDB isn't connected, forward events back
14700 to the inferior, unless the last process exited, in which case,
14701 exit gdbserver. Adjust interface.
14702
14703 * remote-utils.c (remote_open): Don't block in accept. Instead
14704 register an event loop source on the listen socket file
14705 descriptor. Refactor bits into ...
14706 (listen_desc): ... this new global.
14707 (gdb_connected): ... this new function.
14708 (enable_async_notification): ... this new function.
14709 (handle_accept_event): ... this new function.
14710 (remote_close): Clear remote_desc.
14711
14712 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14713
14714 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14715 New fields.
14716 (mourn_inferior): Define.
14717 (target_process_qsupported): Avoid the dangling else problem.
14718 (thread_stopped): Define.
14719 (pause_all): Define.
14720 (target_waitstatus_to_string): Declare.
14721 * target.c (target_waitstatus_to_string): New.
14722
14723 * tracepoint.c (tracing): Make extern.
14724 (disconnected_tracing): New.
14725 (stop_tracing): Make extern. Handle tracing stops due to GDB
14726 disconnecting.
14727 (cmd_qtdisconnected): New.
14728 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14729 (handle_tracepoint_general_set): Handle QTDisconnected.
14730
14731 * event-loop.c (event_handler_func): Change return type to int.
14732 (process_event): Bail out if the event handler wants the event
14733 loop to stop.
14734 (handle_file_event): Ditto.
14735 (start_event_loop): Bail out if the event handler wants the event
14736 loop to stop.
14737
14738 * nto-low.c (nto_target_ops): Adjust.
14739 * spu-low.c (spu_wait): Don't remove the process here.
14740 (spu_target_ops): Adjust.
14741 * win32-low.c (win32_wait): Don't remove the process here.
14742 (win32_target_ops): Adjust.
14743
5d267c4c
PA
147442010-04-11 Pedro Alves <pedro@codesourcery.com>
14745
14746 * regcache.c (realloc_register_cache): Invalidate inferior's
14747 regcache before recreating it.
14748
623ccd72
PA
147492010-04-09 Pedro Alves <pedro@codesourcery.com>
14750
14751 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14752
219f2f23
PA
147532010-04-09 Stan Shebs <stan@codesourcery.com>
14754 Pedro Alves <pedro@codesourcery.com>
14755
14756 * server.h (LONGEST): New.
14757 (struct thread_info) <while_stepping>: New field.
14758 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14759 Declare.
14760 (initialize_tracepoint, handle_tracepoint_general_set)
14761 (handle_tracepoint_query, tracepoint_finished_step)
14762 (tracepoint_was_hit, release_while_stepping_state_list):
14763 (current_traceframe): Declare.
14764 * server.c (handle_general_set): Handle tracepoint packets.
14765 (read_memory): New.
14766 (write_memory): New.
14767 (handle_search_memory_1): Use read_memory.
14768 (handle_query): Report support for conditional tracepoints, trace
14769 state variables, and tracepoint sources. Handle tracepoint
14770 queries.
14771 (main): Initialize the tracepoints module.
14772 (process_serial_event): Handle traceframe reads/writes.
14773
14774 * linux-low.c (handle_tracepoints): New.
14775 (linux_wait_1): Call it.
14776 (linux_resume_one_lwp): Handle while-stepping.
14777 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14778 (linux_target_ops): Install them.
14779 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14780 New field.
14781 * linux-x86-low.c (x86_supports_tracepoints): New.
14782 (the_low_target). Install it.
14783
14784 * mem-break.h (delete_breakpoint): Declare.
14785 * mem-break.c (delete_breakpoint): Make external.
14786
14787 * target.h (struct target_ops): Add `supports_tracepoints',
14788 `read_pc', and `write_pc' fields.
14789 (target_supports_tracepoints): Define.
14790 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14791 (phex_nz): New.
14792
14793 * regcache.h (struct regcache) <registers_owned>: New field.
14794 (init_register_cache, regcache_cpy): Declare.
14795 (regcache_read_pc, regcache_write_pc): Declare.
14796 (register_cache_size): Declare.
14797 (supply_regblock): Declare.
14798 * regcache.c (init_register_cache): New.
14799 (new_register_cache): Use it.
14800 (regcache_cpy): New.
14801 (register_cache_size): New.
14802 (supply_regblock): New.
14803 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 14804
219f2f23
PA
14805 * tracepoint.c: New.
14806
14807 * Makefile.in (OBS): Add tracepoint.o.
14808 (tracepoint.o): New rule.
14809
3a13a53b
L
148102010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14811
14812 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14813 (i386-mmx.o): New.
14814 (i386-mmx.c): Likewise.
14815 (i386-mmx-linux.o): Likewise.
14816 (i386-mmx-linux.c): Likewise.
14817
14818 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14819 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14820 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14821 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14822
14823 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14824 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14825 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14826
1570b33e
L
148272010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14828
14829 * Makefile.in (clean): Updated.
14830 (i386-avx.o): New.
14831 (i386-avx.c): Likewise.
14832 (i386-avx-linux.o): Likewise.
14833 (i386-avx-linux.c): Likewise.
14834 (amd64-avx.o): Likewise.
14835 (amd64-avx.c): Likewise.
14836 (amd64-avx-linux.o): Likewise.
14837 (amd64-avx-linux.c): Likewise.
14838
14839 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14840 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14841 (srv_amd64_regobj): Add amd64-avx.o.
14842 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14843 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14844 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14845 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14846 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14847 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14848 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14849
14850 * i387-fp.c: Include "i386-xstate.h".
14851 (i387_xsave): New.
14852 (i387_cache_to_xsave): Likewise.
14853 (i387_xsave_to_cache): Likewise.
14854 (x86_xcr0): Likewise.
14855
14856 * i387-fp.h (i387_cache_to_xsave): Likewise.
14857 (i387_xsave_to_cache): Likewise.
14858 (x86_xcr0): Likewise.
14859
14860 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14861 * linux-crisv32-low.c (target_regsets): Likewise.
14862 * linux-m68k-low.c (target_regsets): Likewise.
14863 * linux-mips-low.c (target_regsets): Likewise.
14864 * linux-ppc-low.c (target_regsets): Likewise.
14865 * linux-s390-low.c (target_regsets): Likewise.
14866 * linux-sh-low.c (target_regsets): Likewise.
14867 * linux-sparc-low.c (target_regsets): Likewise.
14868 * linux-xtensa-low.c (target_regsets): Likewise.
14869
14870 * linux-low.c: Include <sys/uio.h>.
14871 (regsets_fetch_inferior_registers): Support nt_type.
14872 (regsets_store_inferior_registers): Likewise.
14873 (linux_process_qsupported): New.
14874 (linux_target_ops): Add linux_process_qsupported.
14875
14876 * linux-low.h (regset_info): Add nt_type.
14877 (linux_target_ops): Add process_qsupported.
14878
14879 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14880 and <sys/uio.h>.
14881 (init_registers_i386_avx_linux): New.
14882 (init_registers_amd64_avx_linux): Likewise.
14883 (xmltarget_i386_linux_no_xml): Likewise.
14884 (xmltarget_amd64_linux_no_xml): Likewise.
14885 (PTRACE_GETREGSET): Likewise.
14886 (PTRACE_SETREGSET): Likewise.
14887 (x86_fill_xstateregset): Likewise.
14888 (x86_store_xstateregset): Likewise.
14889 (use_xml): Likewise.
14890 (x86_linux_update_xmltarget): Likewise.
14891 (x86_linux_process_qsupported): Likewise.
14892 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14893 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14894 init_registers_i386_linux here. Call
14895 x86_linux_update_xmltarget.
14896 (the_low_target): Add x86_linux_process_qsupported.
14897
14898 * server.c (handle_query): Call target_process_qsupported.
14899
14900 * target.h (target_ops): Add process_qsupported.
14901 (target_process_qsupported): New.
14902
fc7238bb
PA
149032010-04-03 Pedro Alves <pedro@codesourcery.com>
14904
14905 * inferiors.c (add_thread): Set last_status kind to
14906 TARGET_WAITKIND_IGNORE.
14907 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14908 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14909 (linux_wait_1): Move `thread' local definition to block that uses
14910 it. Don't NULL initialize `event_child'.
14911 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14912 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14913 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14914
bdabb078
PA
149152010-04-01 Pedro Alves <pedro@codesourcery.com>
14916
14917 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14918 an extended waitstatus, or by a watchpoint.
14919 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14920 thread was stepping or has been stopped by a watchpoint.
14921
d3bbe7a0
PA
149222010-04-01 Pedro Alves <pedro@codesourcery.com>
14923
14924 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14925 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14926 of another, then delete the previous, and validate all
14927 breakpoints.
14928 (validate_inserted_breakpoint): New.
14929 (delete_disabled_breakpoints): New.
14930 (validate_breakpoints): New.
14931 (check_mem_read): Validate breakpoints before trusting their
14932 shadow. Delete disabled breakpoints.
14933 (check_mem_write): Validate breakpoints before trusting they
14934 should be inserted. Delete disabled breakpoints.
14935 * mem-break.h (validate_breakpoints):
14936 * server.c (handle_query): Validate breakpoints when we see a
14937 qSymbol query.
14938
8b07ae33
PA
149392010-04-01 Pedro Alves <pedro@codesourcery.com>
14940
14941 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14942 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14943 if we could tell there's a GDB breakpoint at stop_pc.
14944 (need_step_over_p): Don't do a step over if we find a GDB
14945 breakpoint at the resume PC.
14946
14947 * mem-break.c (struct raw_breakpoint): New.
14948 (enum bkpt_type): New type `gdb_breakpoint'.
14949 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14950 fields. New field `raw'.
14951 (find_raw_breakpoint_at): New.
14952 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14953 breakpoint instead.
14954 (set_breakpoint_at): Adjust.
14955 (delete_raw_breakpoint): New.
14956 (release_breakpoint): New.
14957 (delete_breakpoint): Rename to...
14958 (delete_breakpoint_1): ... this. Add proc parameter. Use
14959 release_breakpoint. Return ENOENT.
14960 (delete_breakpoint): Reimplement.
14961 (find_breakpoint_at): Delete.
14962 (find_gdb_breakpoint_at): New.
14963 (delete_breakpoint_at): Delete.
14964 (set_gdb_breakpoint_at): New.
14965 (delete_gdb_breakpoint_at): New.
14966 (gdb_breakpoint_here): New.
14967 (set_reinsert_breakpoint): Use release_breakpoint.
14968 (uninsert_breakpoint): Rename to ...
14969 (uninsert_raw_breakpoint): ... this.
14970 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14971 (reinsert_raw_breakpoint): Change parameter type to
14972 raw_breakpoint.
14973 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14974 instead.
14975 (check_breakpoints): Adjust. Use release_breakpoint.
14976 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14977 (breakpoint_inserted_here): Ditto.
14978 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14979 Don't trust the breakpoint's shadow if it is not inserted.
14980 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14981 (delete_all_breakpoints): Adjust.
14982 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14983 use delete_breakpoint_1.
14984
14985 * mem-break.h (breakpoints_supported): Delete declaration.
14986 (set_gdb_breakpoint_at): Declare.
14987 (gdb_breakpoint_here): Declare.
14988 (delete_breakpoint_at): Delete.
14989 (delete_gdb_breakpoint_at): Declare.
14990
14991 * server.h (struct raw_breakpoint): Forward declare.
14992 (struct process_info): New field `raw_breakpoints'.
14993
14994 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14995 breakpoints.
14996
6bf5e0ba
PA
149972010-03-24 Pedro Alves <pedro@codesourcery.com>
14998
14999 * linux-low.c (status_pending_p_callback): Fix comment.
15000 (linux_wait_for_event_1): Move most of the internal breakpoint
15001 handling from here...
15002 (linux_wait_1): ... to here.
15003 (count_events_callback): New.
15004 (select_singlestep_lwp_callback): New.
15005 (select_event_lwp_callback): New.
15006 (cancel_breakpoints_callback): New.
15007 (select_event_lwp): New.
15008 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15009 priority to all LWPs that have had events that should be reported
15010 to the client. Cancel breakpoints when about to reporting the
15011 event to the client, not while stopping lwps. No longer cancel
15012 finished single-steps here.
15013 (cancel_finished_single_step): Delete.
15014 (cancel_finished_single_steps): Delete.
15015
414a389f
PA
150162010-03-24 Pedro Alves <pedro@codesourcery.com>
15017
15018 * mem-break.c (enum bkpt_type): New.
15019 (struct breakpoint): New field `type'.
15020 (set_breakpoint_at): Change return type to struct breakpoint
15021 pointer. Set type to `other_breakpoint' by default.
15022 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15023 in the breakpoint list.
15024 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15025 (reinsert_breakpoint): Rename to ...
15026 (reinsert_raw_breakpoint): ... this.
15027 (reinsert_breakpoints_at): Adjust.
15028 * mem-break.h (struct breakpoint): Declare.
15029 (set_breakpoint_at): Change return type to struct breakpoint
15030 pointer.
15031
2280c721
PA
150322010-03-24 Pedro Alves <pedro@codesourcery.com>
15033
15034 * server.c (handle_query): Assign, not compare.
15035
d50171e4
PA
150362010-03-24 Pedro Alves <pedro@codesourcery.com>
15037
15038 Teach linux gdbserver to step-over-breakpoints.
15039
15040 * linux-low.c (can_hardware_single_step): New.
15041 (supports_breakpoints): New.
15042 (handle_extended_wait): If stopping threads, read the stop pc of
15043 the new cloned LWP.
15044 (get_pc): New.
15045 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15046 low target doesn't support retrieving the PC.
15047 (add_lwp): Set last_resume_kind to resume_continue.
15048 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15049 (linux_attach): Don't clear stop_expected. Set the lwp's
15050 last_resume_kind to resume_stop.
15051 (linux_detach_one_lwp): Don't check for removed breakpoints.
15052 (check_removed_breakpoint): Delete.
15053 (status_pending_p): Rename to ...
15054 (status_pending_p_callback): ... this. Don't check for removed
15055 breakpoints. Don't consider threads that are stopped from GDB's
15056 perspective.
15057 (linux_wait_for_lwp): Always read the stop_pc here.
15058 (cancel_breakpoint): New.
15059 (step_over_bkpt): New global.
15060 (linux_wait_for_event_1): Implement stepping over breakpoints.
15061 (gdb_wants_lwp_stopped): New.
15062 (gdb_wants_all_stopped): New.
15063 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15064 single-step traps here. Store the thread's last reported target
15065 wait status.
15066 (send_sigstop): Don't clear stop_expected. Always set it,
15067 instead.
15068 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15069 (cancel_finished_single_step): New.
15070 (cancel_finished_single_steps): New.
15071 (wait_for_sigstop): Don't cancel finished single-step traps here.
15072 (linux_resume_one_lwp): Don't check for removed breakpoints.
15073 Don't set `step' on non-hardware step archs.
15074 (linux_set_resume_request): Ignore resume_stop requests if already
15075 stopping or stopped. Set the lwp's last_resume_kind.
15076 (resume_status_pending_p): Don't check for removed breakpoints.
15077 (need_step_over_p): New.
15078 (start_step_over): New.
15079 (finish_step_over): New.
15080 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15081 requests. Clear the thread's last reported target waitstatus.
15082 Don't use the `suspended' flag. Don't consider pending breakpoints.
15083 (linux_resume): Start a step-over if necessary.
15084 (proceed_one_lwp): New.
15085 (proceed_all_lwps): New.
15086 (unstop_all_lwps): New.
15087 * linux-low.h (struct lwp_info): Rewrite comment for the
15088 `suspended' flag. Add the `stop_pc' field. Delete the
15089 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15090 Add `'last_resume_kind' and `need_step_over' fields.
15091 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15092 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15093 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15094 (set_raw_breakpoint_at): New.
15095 (set_breakpoint_at): Rewrite to use it.
15096 (reinsert_breakpoint_handler): Delete.
15097 (set_reinsert_breakpoint): New.
15098 (reinsert_breakpoint_by_bp): Delete.
15099 (delete_reinsert_breakpoints): New.
15100 (uninsert_breakpoint): Rewrite.
15101 (uninsert_breakpoints_at): New.
15102 (reinsert_breakpoint): Rewrite.
15103 (reinsert_breakpoints_at): New.
15104 (check_breakpoints): Rewrite.
15105 (breakpoint_here): New.
15106 (breakpoint_inserted_here): New.
15107 (check_mem_read): Adjust.
15108 * mem-break.h (breakpoints_supported, breakpoint_here)
15109 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15110 (reinsert_breakpoint_by_bp): Delete declaration.
15111 (delete_reinsert_breakpoints): Declare.
15112 (reinsert_breakpoint): Delete declaration.
15113 (reinsert_breakpoints_at): Declare.
15114 (uninsert_breakpoint): Delete declaration.
15115 (uninsert_breakpoints_at): Declare.
15116 (check_breakpoints): Adjust prototype.
15117 * server.h: Adjust include order.
15118 (struct thread_info): Declare here. Add a `last_status' field.
15119
30ba68cb
MS
151202010-03-23 Michael Snyder <msnyder@vmware.com>
15121
15122 * server.c (crc32): New function.
15123 (handle_query): Add handling for 'qCRC:' request.
15124
b9a881c2
PA
151252010-03-23 Pedro Alves <pedro@codesourcery.com>
15126
15127 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15128 lwp had been stopped by a watchpoint.
15129
e92d13d5
PA
151302010-03-16 Pedro Alves <pedro@codesourcery.com>
15131
15132 * server.h (internal_error): Declare.
15133 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15134 * utils.c (internal_error): New function.
15135
64daa791
AS
151362010-03-15 Andreas Schwab <schwab@redhat.com>
15137
15138 * configure.srv: Fix typo setting srv_regobj.
15139
f52cd8cd
PA
151402010-03-15 Pedro Alves <pedro@codesourcery.com>
15141
15142 * linux-low.c (fetch_register): Avoid passing a non string literal
15143 format to `error'.
15144 (usr_store_inferior_registers): Ditto.
15145
93ae6fdc
PA
151462010-03-14 Pedro Alves <pedro@codesourcery.com>
15147
15148 * linux-low.c (linux_write_memory): Bail out early if peeking
15149 memory failed.
15150
c3adc08c
PA
151512010-03-14 Pedro Alves <pedro@codesourcery.com>
15152
15153 * linux-low.h (struct lwp_info): New fields
15154 `stopped_by_watchpoint' and `stopped_data_address'.
15155 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15156 here, and cache them in the lwp object.
15157 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15158 directly.
15159 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15160 field.
15161 (linux_stopped_by_watchpoint): Rewrite.
15162 (linux_stopped_data_address): Rewrite.
15163
bce522a2
PA
151642010-03-06 Simo Melenius <simo.melenius@iki.fi>
15165
15166 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15167 switching the current inferior, not before.
15168
90884b2b
L
151692010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15170
15171 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15172 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15173 i386-linux.c and amd64-linux.c.
15174 (reg-i386.o): Removed.
15175 (reg-i386.c): Likewise.
15176 (reg-i386-linux.o): Likewise.
15177 (reg-i386-linux.c): Likewise.
15178 (reg-x86-64.o): Likewise.
15179 (reg-x86-64.c): Likewise.
15180 (reg-x86-64-linux.o): Likewise.
15181 (reg-x86-64-linux.c): Likewise.
15182 (i386.o): New.
15183 (i386.c): Likewise.
15184 (i386-linux.o): Likewise.
15185 (i386-linux.c): Likewise.
15186 (amd64.o): Likewise.
15187 (amd64.c): Likewise.
15188 (amd64-linux.o): Likewise.
15189 (amd64-linux.c): Likewise.
15190
15191 * configure.srv (srv_i386_regobj): New.
15192 (srv_i386_linux_regobj): Likewise.
15193 (srv_amd64_regobj): Likewise.
15194 (srv_amd64_linux_regobj): Likewise.
15195 (srv_i386_32bit_xmlfiles): Likewise.
15196 (srv_i386_64bit_xmlfiles): Likewise.
15197 (srv_i386_xmlfiles): Likewise.
15198 (srv_amd64_xmlfiles): Likewise.
15199 (srv_i386_linux_xmlfiles): Likewise.
15200 (srv_amd64_linux_xmlfiles): Likewise.
15201 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15202 srv_xmlfiles to $srv_i386_xmlfiles.
15203 (i[34567]86-*-mingw32ce*): Likewise.
15204 (i[34567]86-*-mingw*): Likewise.
15205 (i[34567]86-*-nto*): Likewise.
15206 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15207 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15208 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15209 (x86_64-*-linux*): Likewise.
15210
15211 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15212 (init_registers_amd64_linux): New.
15213 (x86_arch_setup): Replace init_registers_x86_64_linux with
15214 init_registers_amd64_linux.
15215
193f13e6
MK
152162010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15217
15218 * configure.ac: Check for libdl. If it is not available link against
15219 static libthread_db.
15220 * configure: Regenerate.
15221
85d721b8
PA
152222010-02-22 Pedro Alves <pedro@codesourcery.com>
15223
15224 PR9605
15225
15226 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15227 handing a read watchpoint.
15228 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15229
6076632b
DE
152302010-02-12 Doug Evans <dje@google.com>
15231
15232 * linux-low.c (linux_supports_tracefork_flag): Document.
15233 (linux_look_up_symbols): Add comment.
15234
3327ccf7
L
152352010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15236
15237 * regcache.c (supply_register): Clear regcache if buf is NULL.
15238
0718675c 152392010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 15240 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
15241
15242 * inferiors.c (find_inferior): Add function documentation.
15243 (unloaded_dll): Handle the case where the unloaded dll has not
15244 been previously registered in the dll list.
15245
177321bd
DJ
152462010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15247
15248 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15249 (thumb2_breakpoint): New.
15250 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15251
2b009048
DJ
152522010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15253
15254 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15255 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15256 breakpoints.
15257
3be029c7
PA
152582010-01-21 Pedro Alves <pedro@codesourcery.com>
15259
15260 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15261
18f5de3b
JK
152622010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15263
15264 * linux-s390-low.c (s390_collect_ptrace_register)
15265 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15266
3743bb4f
DE
152672010-01-21 Doug Evans <dje@google.com>
15268
14ce3065
DE
15269 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15270 (PTRACE_ARG4_TYPE): New macro.
15271 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15272 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15273 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15274 (usr_store_inferior_registers): Ditto.
15275 (linux_read_memory, linux_write_memory): Ditto.
15276 (linux_test_for_tracefork): Ditto.
15277
3743bb4f
DE
15278 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15279 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15280
8b315be5
PA
152812010-01-21 Pedro Alves <pedro@codesourcery.com>
15282
15283 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15284 target.
15285
85492558
PA
152862010-01-21 Pedro Alves <pedro@codesourcery.com>
15287
15288 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15289 prototype to take a regcache. Adjust.
15290
442ea881
PA
152912010-01-20 Pedro Alves <pedro@codesourcery.com>
15292
15293 * regcache.h (struct thread_info): Forward declare.
15294 (struct regcache): New.
15295 (new_register_cache): Adjust prototype.
15296 (get_thread_regcache): Declare.
15297 (free_register_cache): Adjust prototype.
15298 (registers_to_string, registers_from_string): Ditto.
15299 (supply_register, supply_register_by_name, collect_register)
15300 (collect_register_as_string, collect_register_by_name): Ditto.
15301 * regcache.c (struct inferior_regcache_data): Delete.
15302 (get_regcache): Rename to ...
15303 (get_thread_regcache): ... this. Adjust. Switch inferior before
15304 fetching registers.
15305 (regcache_invalidate_one): Adjust.
15306 (regcache_invalidate): Fix prototype.
15307 (new_register_cache): Return the new register cache.
15308 (free_register_cache): Change prototype.
15309 (realloc_register_cache): Adjust.
15310 (registers_to_string): Change prototype to take a regcache. Adjust.
15311 (registers_from_string): Ditto.
15312 (register_data): Ditto.
15313 (supply_register): Ditto.
15314 (supply_register_by_name): Ditto.
15315 (collect_register): Ditto.
15316 (collect_register_as_string): Ditto.
15317 (collect_register_by_name): Ditto.
15318 * server.c (process_serial_event): Adjust.
15319 * linux-low.h (regset_fill_func, regset_store_func): Change
15320 prototype.
15321 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15322 Change prototype.
15323 * linux-low.c (get_stop_pc): Adjust.
15324 (check_removed_breakpoint): Adjust.
15325 (linux_wait_for_event): Adjust.
15326 (linux_resume_one_lwp): Adjust.
15327 (fetch_register): Add regcache parameter. Adjust.
15328 (usr_store_inferior_registers): Ditto.
15329 (regsets_fetch_inferior_registers): Ditto.
15330 (regsets_store_inferior_registers): Ditto.
15331 (linux_fetch_registers, linux_store_registers): Ditto.
15332 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15333 regcache. Adjust.
43aaf8b6
PA
15334 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15335 Ditto.
442ea881
PA
15336 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15337 prototype to take a regcache.
15338 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15339 * remote-utils.c (convert_ascii_to_int, outreg)
15340 (prepare_resume_reply): Change prototype to take a regcache.
15341 Adjust.
15342 * target.h (struct target_ops) <fetch_registers, store_registers>:
15343 Change prototype to take a regcache.
15344 (fetch_inferior_registers, store_inferior_registers): Change
15345 prototype to take a regcache. Adjust.
15346 * proc-service.c (ps_lgetregs): Adjust.
15347 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15348 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15349 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15350 take a regcache. Adjust.
15351 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15352 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15353 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15354 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15355 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15356 (cris_cannot_fetch_register):
15357 (cris_breakpoint_at): Change prototype to take a regcache.
15358 Adjust.
15359 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15360 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15361 to take a regcache. Adjust.
15362 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15363 Adjust.
15364 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15365 take a regcache. Adjust.
15366 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15367 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15368 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15369 * linux-mips-low.c (mips_get_pc):
15370 (mips_set_pc): Change prototype to take a regcache. Adjust.
15371 (mips_reinsert_addr): Adjust.
15372 (mips_collect_register): Change prototype to take a regcache.
15373 Adjust.
15374 (mips_supply_register):
15375 (mips_collect_register_32bit, mips_supply_register_32bit)
15376 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15377 (mips_store_fpregset): Ditto.
43aaf8b6
PA
15378 * linux-ppc-low.c (ppc_supply_ptrace_register)
15379 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
15380 (parse_spufs_run): Adjust.
15381 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15382 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15383 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15384 take a regcache. Adjust.
15385 * linux-s390-low.c (s390_collect_ptrace_register)
15386 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15387 (s390_set_pc): Change prototype to take a regcache. Adjust.
15388 (s390_arch_setup): Adjust.
15389 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15390 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15391 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15392 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15393 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15394 regcache. Adjust.
15395 (sparc_breakpoint_at): Adjust.
15396 * linux-xtensa-low.c (xtensa_fill_gregset):
15397 (xtensa_store_gregset):
15398 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15399 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15400 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15401 prototype to take a regcache. Adjust.
15402 * win32-arm-low.c (arm_fetch_inferior_register)
15403 (arm_store_inferior_register): Change prototype to take a
15404 regcache. Adjust.
15405 * win32-i386-low.c (i386_fetch_inferior_register)
15406 (i386_store_inferior_register): Change prototype to take a
15407 regcache. Adjust.
15408 * win32-low.c (child_fetch_inferior_registers)
15409 (child_store_inferior_registers): Change prototype to take a
15410 regcache. Adjust.
15411 (win32_wait): Adjust.
15412 (win32_fetch_inferior_registers): Change prototype to take a
15413 regcache. Adjust.
15414 (win32_store_inferior_registers): Adjust.
15415 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15416 store_inferior_register>: Change prototype to take a regcache.
15417
60c3d7b0
DE
154182010-01-20 Doug Evans <dje@google.com>
15419
15420 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15421 #ifdef.
15422 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 15423 (W_STOPCODE): Provide definition if missing.
60c3d7b0 15424
dc146f7c
VP
154252010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15426
15427 * linux-low.c (linux_core_of_thread): New.
15428 (compare_ints, show_process, list_threads): New.
15429 (linux_qxfer_osdata): Report threads and cores.
15430 (linux_target_op): Register linux_core_of_thread.
15431 * remote-utils.c (prepare_resume_reply): Report the core.
15432 (buffer_xml_printf): Support %d specifier.
15433 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15434 New.
15435 (handle_query): Handle qXfer:threads. Announce availability
15436 thereof.
15437 * target.h (struct target_ops): New field core_of_thread.
15438
7803799a
UW
154392010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15440
15441 * Makefile.in (clean): Remove new generated files.
15442 (reg-s390.o, reg-s390.c): Remove rules.
15443 (reg-s390x.o, reg-s390x.c): Likewise.
15444 (s390-linux32.o, s390-linux32.c): Add rules.
15445 (s390-linux64.o, s390-linux64.c): Likewise.
15446 (s390x-linux64.o, s390x-linux64.c): Likewise.
15447 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15448 * linux-s390-low.c: Include <elf.h>.
15449 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15450 (init_registers_s390): Remove prototype.
15451 (init_registers_s390x): Likewise.
15452 (init_registers_s390_linux32): Add prototype.
15453 (init_registers_s390_linux64): Likewise.
15454 (init_registers_s390x_linux64): Likewise.
15455 (s390_num_regs_3264): New define.
15456 (s390_regmap_3264): New global variable.
15457 (s390_cannot_fetch_register): Remove obsolete check.
15458 (s390_cannot_store_register): Likewise.
15459 (s390_collect_ptrace_register): Handle upper/lower register halves.
15460 (s390_supply_ptrace_register): Likewise.
15461 (s390_fill_gregset): Update to register number changes.
15462 (s390_get_hwcap): New routine.
15463 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15464 Install appropriate regmap and register set.
15465
6e7ffa39
JB
154662010-01-01 Joel Brobecker <brobecker@adacore.com>
15467
15468 * server.c (gdbserver_version): Update copyright year to 2010.
15469 * gdbreplay.c (gdbreplay_version): Likewise.
15470
957f3f49
DE
154712009-12-28 Doug Evans <dje@google.com>
15472
15473 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15474 elf/external.h. Include <elf.h> instead but only if necessary.
15475
ca5c370d
PA
154762009-12-28 Pedro Alves <pedro@codesourcery.com>
15477
15478 * linux-low.c (linux_remove_process): Remove `detaching'
15479 parameter. Don't release/detach from thread_db here.
15480 (linux_kill): Release/detach from thread_db here, ...
15481 (linux_detach): ... and here, before actually detaching.
15482 (linux_wait_1): ... and here, when a process exits.
15483 * thread-db.c (any_thread_of): New.
15484 (thread_db_free): Switch the current inferior to a thread of the
15485 passed in process.
15486
4ee62156
DE
154872009-12-21 Doug Evans <dje@google.com>
15488
d90e6a88
DE
15489 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15490
c5f62d5f
DE
15491 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15492 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15493 warning ifndef __NR_tkill. Move setting of errno there too.
15494 Delete unnecessary resetting of errno after syscall.
15495 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15496
10e86dd7
DE
15497 * configure.ac: Check for dladdr.
15498 * config.in: Regenerate.
15499 * configure: Regenerate.
15500 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15501 (try_thread_db_load): Update.
15502
4ee62156
DE
15503 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15504
00f515da
DE
155052009-12-18 Doug Evans <dje@google.com>
15506
e9464885
DE
15507 * event-loop.c: Include unistd.h if it exists.
15508
07d4f67e
DE
15509 * linux-low.c (my_waitpid): Move definition away from being in
15510 between linux_tracefork_child/linux_test_for_tracefork.
15511
00f515da
DE
15512 * gdb_proc_service.h (psaddr_t): Fix type.
15513 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15514 signature to match glibc.
15515
1de1badb
DE
155162009-12-16 Doug Evans <dje@google.com>
15517
15518 * linux-low.c (linux_read_memory): Fix argument to read.
15519
aeeb81d1
PA
155202009-11-26 Pedro Alves <pedro@codesourcery.com>
15521
15522 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15523 events, don't leave current_inferior pointing at null.
15524
10357975
PA
155252009-11-26 Pedro Alves <pedro@codesourcery.com>
15526
15527 * win32-low.c (LOG): Delete.
15528 (OUTMSG): Output to stderr.
15529 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15530 on compile time LOG macro.
15531 (win32_wait): Fix debug output.
15532
cf6e3471
PA
155332009-11-26 Pedro Alves <pedro@codesourcery.com>
15534
15535 * win32-low.c (win32_add_one_solib): If the dll name is
15536 "ntdll.dll", prepend the system directory to the dll path.
15537
0c85e18e
MK
155382009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15539
15540 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15541
9ac544ce 155422009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 15543 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
15544
15545 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15546 * configure.ac: Check for __mcoldfire__ and set
15547 gdb_cv_m68k_is_coldfire.
15548 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15549 reg-cf.o and reg-m68k.o.
15550 * configure: Regenerated.
15551
fd7dd3e6
PA
155522009-11-16 Pedro Alves <pedro@codesourcery.com>
15553
15554 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15555 Pass it to thread_db_free.
15556 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15557 proper `detaching' argument to linux_remove_process.
15558 * linux-low.h (thread_db_free): Add `detaching' parameter.
15559 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15560 to thread_db_free.
15561 (thread_db_free): Add `detaching' parameter. Only
15562 call td_ta_clear_event if detaching from process.
15563
75aa492e
MK
155642009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15565
15566 * thread-db.c (thread_db_free): Fix typo.
15567
21e1bee4
PP
155682009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15569
15570 PR gdb/10838
15571 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15572
8838b45e
NS
155732009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15574
15575 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15576 with an i686 compiler.
15577 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15578 needed.
15579 * configure: Rebuilt.
15580
8a35fb51
SL
155812009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15582
15583 PR gdb/10783
15584
15585 * server.c (handle_search_memory_1): Correct read_addr initialization
15586 in loop for searching subsequent chunks.
15587
96f15937
PP
155882009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15589
15590 * configure.ac: New --with-libthread-db option.
15591 * thread-db.c: Allow direct dependence on libthread_db.
15592 (thread_db_free): Adjust.
15593 * config.in: Regenerate.
15594 * configure: Likewise.
889bf7c5 15595
5f7d1694
PP
155962009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15597
15598 PR gdb/10757
15599 * thread-db.c (attach_thread): New function.
15600 (maybe_attach_thread): Return success/failure.
15601 (find_new_threads_callback): Adjust.
889bf7c5
PA
15602 (thread_db_find_new_threads): Loop until no new threads.
15603
88e3b899
PA
156042009-10-13 Pedro Alves <pedro@codesourcery.com>
15605
15606 * proc-service.c (ps_lgetregs): Formatting.
15607
cdbfd419
PP
156082009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
15609
15610 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
15611 * configure.ac: Adjust.
15612 * linux-low.h (struct process_info_private): Move members to struct
15613 thread_db.
15614 (thread_db_free, thread_db_handle_monitor_command): New prototype.
15615 * linux-low.c (linux_remove_process): Adjust.
15616 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
15617 * server.c (handle_query): Move code ...
15618 (handle_monitor_command): ... here. New function.
15619 * target.h (struct target_ops): New member.
15620 * thread-db.c (struct thread_db): New.
15621 (libthread_db_search_path): New variable.
15622 (thread_db_create_event, thread_db_enable_reporting)
15623 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
15624 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
15625 (try_thread_db_load_1, dladdr_to_soname): New functions.
15626 (try_thread_db_load, thread_db_load_search): New functions.
15627 (thread_db_init): Search for libthread_db.
15628 (thread_db_free): New function.
15629 (thread_db_handle_monitor_command): Likewise.
15630 * config.in: Regenerate.
15631 * configure: Regenerate.
889bf7c5 15632
4168d2d6
UW
156332009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
15634
15635 * spu-low.c (spu_kill): Wait for inferior to terminate.
15636 Call clear_inferiors.
15637 (spu_detach): Call clear_inferiors.
15638
81ecdfbb
RW
156392009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15640
15641 * aclocal.m4: Regenerate.
15642 * config.in: Likewise.
15643 * configure: Likewise.
15644
0b9ff2c0
UW
156452009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15646
15647 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
15648 (parse_spufs_run): New function.
15649 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
15650 (ppc_breakpoint_at): Handle SPU breakpoints.
15651
efcbbd14
UW
156522009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15653
15654 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15655 (SPUFS_MAGIC): Define.
15656 (spu_enumerate_spu_ids): New function.
15657 (linux_qxfer_spu): New function.
15658 (linux_target_ops): Install linux_qxfer_spu.
15659
f4d9bade
UW
156602009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15661
15662 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15663 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15664 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15665 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15666 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15667 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15668 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15669 (init_registers_powerpc_cell32l): Add prototype.
15670 (init_registers_powerpc_cell64l): Likewise.
15671 (ppc_arch_setup): Detect Cell/B.E. architecture.
15672
96e946ca
RW
156732009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15674
15675 * Makefile.in (datarootdir): New variable.
15676
58d6951d
DJ
156772009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15678
15679 * linux-low.c (linux_write_memory): Update debugging output.
15680 * Makefile.in (clean): Add new descriptions.
15681 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15682 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15683 * configure.srv: Add new files for arm*-*-linux*.
15684 * linux-arm-low.c: Add new declarations.
15685 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15686 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15687 (HWCAP_VFPv3D16): New.
15688 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15689 instead of __IWMMXT__.
15690 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15691 (arm_arch_setup): New.
15692 (target_regsets): Remove #ifdef. Add VFP regset.
15693 (the_low_target): Use arm_arch_setup.
15694
12b42a12
DJ
156952009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15696
15697 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15698 the main thread again.
15699
ac8c974e
AR
157002009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15701
15702 Adding Neutrino gdbserver.
15703 * configure: Regenerated.
15704 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15705 * configure.srv (i[34567]86-*-nto*): New target.
15706 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15707 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15708 (nto_comctrl) [__QNX__]: New function.
15709 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15710
4424e0c3 157112009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
15712
15713 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15714 srv_tgtobj.
15715
912cf4ba
PA
157162009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15717 Pedro Alves <pedro@codesourcery.com>
15718
15719 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15720 don't support CONTEXT_EXTENDED_REGISTERS.
15721 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15722 (the_low_target): Install them.
15723 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15724 failing with ERROR_PIPE_NOT_CONNECTED.
15725
aa5ca48f
DE
157262009-06-30 Doug Evans <dje@google.com>
15727 Pierre Muller <muller@ics.u-strasbg.fr>
15728
15729 Add h/w watchpoint support to x86-linux, win32-i386.
15730 * Makefile.in (SFILES): Add i386-low.c
15731 (i386_low_h): Define.
15732 (i386-low.o): Add dependencies.
15733 (linux-x86-low.o): Add i386-low.h dependency.
15734 (win32-i386-low.o): Ditto.
15735 * i386-low.c: New file.
15736 * i386-low.h: New file.
15737 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15738 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15739 * linux-low.c (linux_add_process): Initialize arch_private.
15740 (linux_remove_process): Free arch_private.
15741 (add_lwp): Initialize arch_private.
15742 (delete_lwp): Free arch_private.
15743 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15744 provided.
15745 * linux-low.h (process_info_private): New member arch_private.
15746 (lwp_info): New member arch_private.
15747 (linux_target_ops): New members new_process, new_thread,
15748 prepare_to_resume.
15749 (ptid_of): New macro.
15750 * linux-x86-low.c: Include stddef.h, i386-low.h.
15751 (arch_process_info): New struct.
15752 (arch_lwp_info): New struct.
15753 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15754 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15755 (i386_dr_low_get_status): New function.
15756 (x86_insert_point, x86_remove_point): New functions.
15757 (x86_stopped_by_watchpoint): New function.
15758 (x86_stopped_data_address): New function.
15759 (x86_linux_new_process, x86_linux_new_thread): New functions.
15760 (x86_linux_prepare_to_resume): New function.
15761 (the_low_target): Add entries for insert_point, remove_point,
15762 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15763 prepare_to_resume.
15764 * server.c (debug_hw_points): New global.
15765 (monitor_show_help): Document set debug-hw-points.
15766 (handle_query): Process "set debug-hw-points".
15767 * server.h (debug_hw_points): Declare.
15768 (paddress): Declare.
15769 * utils.c (NUMCELLS, CELLSIZE): New macros.
15770 (get_sell, xsnprintf, paddress): New functions.
15771 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15772 remove_point, stopped_by_watchpoint, stopped_data_address.
15773 * win32-i386-low.c: Include i386-low.h.
15774 (debug_reg_state): Replaces dr.
15775 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15776 (i386_dr_low_get_status): New function.
15777 (i386_insert_point, i386_remove_point): New functions.
15778 (i386_stopped_by_watchpoint): New function.
15779 (i386_stopped_data_address): New function.
15780 (i386_initial_stuff): Update.
15781 (get_thread_context,set_thread_context,i386_thread_added): Update.
15782 (the_low_target): Add entries for insert_point,
15783 remove_point, stopped_by_watchpoint, stopped_data_address.
15784 * win32-low.c (win32_insert_watchpoint): New function.
15785 (win32_remove_watchpoint): New function.
15786 (win32_stopped_by_watchpoint): New function.
15787 (win32_stopped_data_address): New function.
15788 (win32_target_ops): Add entries for insert_watchpoint,
15789 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15790 * win32-low.h (win32_target_ops): New members insert_point,
15791 remove_point, stopped_by_watchpoint, stopped_data_address.
15792
d993e290
PA
157932009-06-25 Pedro Alves <pedro@codesourcery.com>
15794
15795 * server.c (process_serial_event): Re-return unsupported, not
15796 error, if the type isn't recognized. Re-allow supporting only
15797 insert or remove packets. Also call require_running for
15798 breakpoints. Add missing break statement to default case. Tidy.
15799 * target.h (struct target_ops): Rename insert_watchpoint to
15800 insert_point, and remove_watchpoint to remove_point.
15801
15802 * linux-low.h (struct linux_target_ops): Likewise.
15803 * linux-low.c (linux_insert_watchpoint): Rename to ...
15804 (linux_insert_point): ... this. Adjust.
15805 (linux_remove_watchpoint): Rename to ...
15806 (linux_remove_point): ... this. Adjust.
15807 (linux_target_ops): Adjust.
15808 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15809 (cris_insert_point): ... this.
15810 (cris_remove_watchpoint): Rename to ...
15811 (cris_remove_point): ... this.
15812 (the_low_target): Adjust.
15813
0f54c268
PM
158142009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15815
15816 * server.c (handle_v_kill): Pass signal_pid to
15817 kill_inferior if multi_process is zero.
15818
c6314022
AR
158192009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15820
15821 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15822 * target.h (target_ops): Comment for *_watchpoint to make it clear
15823 the functions can get types '0' and '1'.
15824
4463ce24
AR
158252009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15826
15827 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15828 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15829 * regcache.c (get_regcache): Likewise.
15830 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15831 * win32-low.c (child_fetch_inferior_registers): Remove check for
15832 regno 0.
15833
cf8fd78b
PA
158342009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15835 Pedro Alves <pedro@codesourcery.com>
15836
15837 * target.h (struct target_ops) <supports_multi_process>: New
15838 callback.
15839 (target_supports_multi_process): New.
15840 * server.c (handle_query): Even if GDB reports support, only
15841 enable multi-process if the target also supports it. Report
15842 multi-process support only if the target backend supports it.
15843 * linux-low.c (linux_supports_multi_process): New function.
15844 (linux_target_ops): Install it as target_supports_multi_process
15845 callback.
15846
47c0c975
DE
158472009-05-24 Doug Evans <dje@google.com>
15848
e09875d4
DE
15849 Global renaming of find_thread_pid to find_thread_ptid.
15850 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15851 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15852 All callers updated.
15853
e27d73f6
DE
15854 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15855 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15856 directly.
15857
47c0c975
DE
15858 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15859 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15860 (linux_resume_one_lwp): Ditto.
15861
2acc282a
DE
158622009-05-23 Doug Evans <dje@google.com>
15863
15864 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15865 from struct inferior_list_entry * to struct lwp_info *.
15866 All callers updated.
15867
9f1036c1
DE
158682009-05-13 Doug Evans <dje@google.com>
15869
15870 * linux-x86-low.c: Don't include assert.h.
15871 (x86_siginfo_fixup): Use fatal, not assert.
15872 (x86_arch_setup): Fix comment.
15873
d0722149
DE
158742009-05-12 Doug Evans <dje@google.com>
15875
15876 Biarch support for i386/amd64 gdbserver.
15877 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15878 Add linux-x86-low.c.
15879 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15880 (linux-x86-low.o): Add.
15881 * linux-x86-64-low.c: Delete.
15882 * linux-i386-low.c: Delete.
15883 * linux-x86-low.c: New file.
15884 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15885 linux-x86-low.o.
15886 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15887 linux-x86-low.o.
15888 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15889 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15890 (linux_child_pid_to_exec_file): New function.
15891 (elf_64_header_p, elf_64_file_p): New functions.
15892 (siginfo_fixup): New function.
15893 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15894 give target a chance to convert layout.
15895 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15896 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15897
fdeb2a12
DE
158982009-05-07 Doug Evans <dje@google.com>
15899
15900 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15901 (regsets_store_inferior_registers): Ditto.
15902
a6dbe5df
PA
159032009-05-06 Pedro Alves <pedro@codesourcery.com>
15904
15905 PR server/10048
15906
15907 * linux-low.c (must_set_ptrace_flags): Delete.
15908 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15909 of the global.
15910 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15911 `lwp->must_set_ptrace_flags' instead.
ba42693b 15912 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
15913 (linux_wait_1): ... not here.
15914
5091eb23
DE
159152009-04-30 Doug Evans <dje@google.com>
15916
9f767825
DE
15917 * inferiors.c (started_inferior_callback): New function.
15918 (attached_inferior_callback): New function.
15919 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15920 * server.c (print_started_pid, print_attached_pid): New functions.
15921 (detach_or_kill_for_exit): New function.
15922 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15923 * server.h (have_started_inferiors_p): Declare.
15924 (have_attached_inferiors_p): Declare.
15925
5091eb23
DE
15926 * inferiors.c (remove_process): Fix memory leak, free process.
15927 * linux-low.c (linux_remove_process): New function.
15928 (linux_kill): Call it instead of remove_process.
15929 (linux_detach, linux_wait_1): Ditto.
15930
155c8968
PA
159312009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15932
15933 * configure.srv: Add x86 Windows CE target.
15934
7fe519cb
UW
159352009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15936
15937 * inferiors.c (get_thread_process): Make global.
15938 * server.h (get_thread_process): Add prototype.
15939 * thread-db.c (find_one_thread): Use get_thread_process
15940 instead of current_process.
15941 (thread_db_get_tls_address): Do not crash if called when
15942 thread layer is not yet initialized.
15943
5472f405
UW
159442009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15945
15946 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15947 * spu-low.c (current_tid): Rename to ...
15948 (current_ptid): ... this.
15949 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15950 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15951 ptid_get_lwp (current_ptid) instead of current_tid.
15952 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15953 instead of current_tid. Use find_process_pid to verify pid
15954 argument is valid. Pass proper argument to remove_process.
15955 (spu_thread_alive): Compare current_ptid instead of current_tid.
15956 (spu_resume): Likewise.
15957
55ac2b99
PA
159582009-04-02 Pedro Alves <pedro@codesourcery.com>
15959
15960 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15961 variable.
15962
95954743
PA
159632009-04-01 Pedro Alves <pedro@codesourcery.com>
15964
15965 Implement the multiprocess extensions, and add linux multiprocess
15966 support.
15967
15968 * server.h (ULONGEST): Declare.
15969 (struct ptid, ptid_t): New.
15970 (minus_one_ptid, null_ptid): Declare.
15971 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15972 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15973 (struct inferior_list_entry): Change `id' type from unsigned from
15974 to ptid_t.
15975 (struct sym_cache, struct breakpoint, struct
15976 process_info_private): Forward declare.
15977 (struct process_info): Declare.
15978 (current_process): Declare.
15979 (all_processes): Declare.
15980 (initialize_inferiors): Declare.
15981 (add_thread): Adjust to use ptid_t.
15982 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15983 (add_process, remove_process, find_thread_pid): Declare.
15984 (find_inferior_id): Adjust to use ptid_t.
15985 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15986 (multi_process): Declare.
15987 (push_event): Adjust to use ptid_t.
15988 (read_ptid, write_ptid): Declare.
15989 (prepare_resume_reply): Adjust to use ptid_t.
15990 (clear_symbol_cache): Declare.
15991 * inferiors.c (all_processes): New.
15992 (null_ptid, minus_one_ptid): New.
15993 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15994 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15995 (add_thread): Change unsigned long to ptid. Remove gdb_id
15996 parameter. Adjust.
15997 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15998 (gdb_id_to_thread): Rename to ...
15999 (find_thread_pid): ... this. Change unsigned long to ptid.
16000 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16001 (loaded_dll, pull_pid_from_list): Adjust.
16002 (add_process, remove_process, find_process_pid)
16003 (get_thread_process, current_process, initialize_inferiors): New.
16004 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16005 (struct target_waitstatus) <related_pid>: Ditto.
16006 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16007 return type to int.
16008 (struct target_ops) <join>: Add `pid' argument.
16009 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16010 (struct target_ops) <wait>: Add `ptid' field. Change return type
16011 to ptid.
16012 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16013 (mywait): Add `ptid' argument. Change return type to ptid_t.
16014 (target_pid_to_str): Declare.
16015 * target.c (set_desired_inferior): Adjust to use ptids.
16016 (mywait): Add new `ptid' argument. Adjust.
16017 (target_pid_to_str): New.
16018 * mem-break.h (free_all_breakpoints): Declare.
16019 * mem-break.c (breakpoints): Delelete.
16020 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16021 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16022 to use per-process breakpoint list.
16023 (free_all_breakpoints): New.
16024 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16025 (symbol_cache, all_symbols_looked_up): Delete.
16026 (hexchars): New.
16027 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16028 read_ptid): New.
16029 (prepare_resume_reply): Change ptid argument's type from unsigned
16030 long to ptid_t. Adjust. Implement W;process and X;process.
16031 (free_sym_cache, clear_symbol_cache): New.
16032 (look_up_one_symbol): Adjust to per-process symbol cache. *
16033 * server.c (cont_thread, general_thread, step_thread): Change type
16034 to ptid_t.
16035 (attached): Delete.
16036 (multi_process): New.
16037 (last_ptid): Change type to ptid_t.
16038 (struct vstop_notif) <ptid>: Change type to ptid_t.
16039 (queue_stop_reply, push_event): Change `ptid' argument's type to
16040 ptid_t.
16041 (discard_queued_stop_replies): Add `pid' argument.
16042 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16043 changes. Don't reference the `attached' global.
16044 (attach_inferior): Adjust to mywait interface changes.
16045 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16046 features. Handle and report "multiprocess+". Handle
16047 "qAttached:PID".
16048 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16049 changes.
16050 (handle_v_kill): New.
16051 (handle_v_stopped): Adjust to use target_pid_to_str.
16052 (handle_v_requests): Allow multiple attaches and runs when
16053 multiprocess extensions are in effect. Handle "vKill".
16054 (myresume): Adjust to use ptids.
16055 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16056 (handle_status): Adjust to discard_queued_stop_replies interface
16057 change.
16058 (first_thread_of, kill_inferior_callback)
16059 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16060 (main): Call initialize_inferiors. Adjust to use ptids, killing
16061 and detaching from all inferiors. Handle multiprocess packet
16062 variants.
16063 * linux-low.h: Include gdb_proc_service.h.
16064 (struct process_info_private): New.
16065 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16066 <lwpid_of>: Use ptid_get_lwp.
16067 (get_lwp_thread): Adjust.
16068 (struct lwp_info): Add `dead' member.
16069 (find_lwp_pid): Declare.
16070 * linux-low.c (thread_db_active): Delete.
16071 (new_inferior): Adjust comment.
16072 (inferior_pid): Delete.
16073 (linux_add_process): New.
16074 (handle_extended_wait): Adjust.
16075 (add_lwp): Change unsigned long to ptid.
16076 (linux_create_inferior): Add process to processes table. Adjust
16077 to use ptids. Don't set new_inferior here.
16078 (linux_attach_lwp): Rename to ...
16079 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16080 it. Adjust to use ptids.
16081 (linux_attach_lwp): New.
16082 (linux_attach): Add process to processes table. Don't set
16083 new_inferior here.
16084 (struct counter): New.
16085 (second_thread_of_pid_p, last_thread_of_process_p): New.
16086 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16087 multiple processes.
16088 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16089 processes. Remove process from process table.
16090 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16091 to multiple processes.
16092 (any_thread_of): New.
16093 (linux_detach): Add `pid' argument, and handle it. Remove process
16094 from processes table.
16095 (linux_join): Add `pid' argument. Handle it.
16096 (linux_thread_alive): Change unsighed long argument to ptid_t.
16097 Consider dead lwps as not being alive.
16098 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16099 threads we're not interested in.
16100 (same_lwp, find_lwp_pid): New.
16101 (linux_wait_for_lwp): Change `pid' argument's type from int to
16102 ptid_t. Adjust.
16103 (linux_wait_for_event): Rename to ...
16104 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16105 from int to ptid_t. Adjust.
16106 (linux_wait_for_event): New.
16107 (linux_wait_1): Add `ptid' argument. Change return type to
16108 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16109 that exit from the process table.
16110 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16111 Adjust.
16112 (mark_lwp_dead): New.
16113 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16114 stopping all threads, mark its main lwp as dead.
16115 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16116 ptids.
16117 (fetch_register, usr_store_inferior_registers)
16118 (regsets_fetch_inferior_registers)
16119 (regsets_store_inferior_registers, linux_read_memory)
16120 (linux_write_memory): Inline `inferior_pid'.
16121 (linux_look_up_symbols): Adjust to use per-process
16122 `thread_db_active'.
16123 (linux_request_interrupt): Adjust to use ptids.
16124 (linux_read_auxv): Inline `inferior_pid'.
16125 (initialize_low): Don't reference thread_db_active.
16126 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16127 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16128 (ps_getpid): Return the pid of the current inferior.
16129 * thread-db.c (proc_handle, thread_agent): Delete.
16130 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16131 per-process data.
16132 (find_one_thread): Change argument type to ptid_t. Adjust to
16133 per-process data.
16134 (maybe_attach_thread): Adjust to per-process data and ptids.
16135 (thread_db_find_new_threads): Ditto.
16136 (thread_db_init): Ditto.
16137 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16138 processes table. Adjust to use ptids.
16139 (spu_kill, spu_detach): Adjust interface. Remove process from
16140 processes table.
16141 (spu_join, spu_thread_alive): Adjust interface.
16142 (spu_wait): Adjust interface. Remove process from processes
16143 table. Adjust to use ptids.
16144 * win32-low.c (current_inferior_tid): Delete.
16145 (current_inferior_ptid): New.
16146 (debug_event_ptid): New.
16147 (thread_rec): Take a ptid. Adjust.
16148 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16149 (child_delete_thread): Ditto.
16150 (do_initial_child_stuff): Add `attached' argument. Add process to
16151 processes table.
16152 (child_fetch_inferior_registers, child_store_inferior_registers):
16153 Adjust.
16154 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16155 (win32_attach): Pass 1 to do_initial_child_stuff.
16156 (win32_kill): Adjust interface. Remove process from processes
16157 table.
16158 (win32_detach): Ditto.
16159 (win32_join): Adjust interface.
16160 (win32_thread_alive): Take a ptid.
16161 (win32_resume): Adjust to use ptids.
16162 (get_child_debug_event): Ditto.
16163 (win32_wait): Adjust interface. Remove exiting process from
16164 processes table.
16165
bd99dc85
PA
161662009-04-01 Pedro Alves <pedro@codesourcery.com>
16167
16168 Non-stop mode support.
16169
16170 * server.h (non_stop): Declare.
16171 (gdb_client_data, handler_func): Declare.
16172 (delete_file_handler, add_file_handler, start_event_loop):
16173 Declare.
16174 (handle_serial_event, handle_target_event, push_event)
16175 (putpkt_notif): Declare.
16176 * target.h (enum resume_kind): New.
16177 (struct thread_resume): Replace `step' field by `kind' field.
16178 (TARGET_WNOHANG): Define.
16179 (struct target_ops) <wait>: Add `options' argument.
16180 <supports_non_stop, async, start_non_stop>: New fields.
16181 (target_supports_non_stop, target_async): New.
16182 (start_non_stop): Declare.
16183 (mywait): Add `options' argument.
16184 * target.c (mywait): Add `options' argument. Print child exit
16185 notifications here.
16186 (start_non_stop): New.
16187 * server.c (non_stop, own_buf, mem_buf): New globals.
16188 (struct vstop_notif): New.
16189 (notif_queue): New global.
16190 (queue_stop_reply, push_event, discard_queued_stop_replies)
16191 (send_next_stop_reply): New.
16192 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16193 interface changes.
16194 (attach_inferior): In non-stop mode, don't wait for the target
16195 here.
16196 (handle_general_set): Handle QNonStop.
16197 (handle_query): When handling qC, return the current general
16198 thread, instead of the first thread of the list.
16199 (handle_query): If the backend supports non-stop mode, include
16200 QNonStop+ in the qSupported query response.
16201 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16202 and non-stop mode.
16203 (handle_v_attach, handle_v_run): Handle non-stop mode.
16204 (handle_v_stopped): New.
16205 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16206 (myresume): Adjust to use resume_kind. Handle non-stop.
16207 (queue_stop_reply_callback): New.
16208 (handle_status): Handle non-stop mode.
16209 (main): Clear non_stop flag on reconnection. Use the event-loop.
16210 Refactor serial protocol handling from here ...
16211 (process_serial_event): ... to this new function. When GDB
16212 selects any thread, select one here. In non-stop mode, wait until
16213 GDB acks all pending events before exiting.
16214 (handle_serial_event, handle_target_event): New.
16215 * remote-utils.c (remote_open): Install remote_desc in the event
16216 loop.
16217 (remote_close): Remove remote_desc from the event loop.
16218 (putpkt_binary): Rename to...
16219 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16220 (putpkt_binary): New as wrapper around putpkt_binary_1.
16221 (putpkt_notif): New.
16222 (prepare_resume_reply): In non-stop mode, don't change the
16223 general_thread.
16224 * event-loop.c: New.
16225 * Makefile.in (OBJ): Add event-loop.o.
16226 (event-loop.o): New rule.
16227
16228 * linux-low.h (pid_of): Moved here.
16229 (lwpid_of): New.
16230 (get_lwp_thread): Use lwpid_of.
16231 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16232 * linux-low.c (pid_of): Delete.
16233 (inferior_pid): Use lwpid_of.
16234 (linux_event_pipe): New.
16235 (target_is_async_p): New.
16236 (delete_lwp): New.
16237 (handle_extended_wait): Use lwpid_of.
16238 (add_lwp): Don't set lwpid field.
16239 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16240 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16241 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16242 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16243 first. Adjust to linux_wait_for_event interface changes. Use
16244 lwpid_of.
16245 (linux_detach): Don't delete the main lwp here.
16246 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16247 (status_pending_p): Don't consider explicitly suspended lwps.
16248 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16249 pointer. Add OPTIONS argument. Change return type to int. Use
16250 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16251 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16252 pointer. Add status pointer argument. Return a pid instead of a
16253 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16254 changes. In non-stop mode, don't switch to a random thread.
16255 (linux_wait): Rename to...
16256 (linux_wait_1): ... this. Add target_options argument, and handle
16257 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16258 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16259 clean exit and signal exit code. Don't stop all threads in
16260 non-stop mode. In all-stop mode, only stop all threads when
16261 reporting a stop to GDB. Handle explicit thread stop requests.
16262 (async_file_flush, async_file_mark): New.
16263 (linux_wait): New.
16264 (send_sigstop): Use lwpid_of.
16265 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16266 interface changes. In non-stop mode, don't switch to a random
16267 thread.
16268 (linux_resume_one_lwp): Use lwpid_of.
16269 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16270 (linux_resume_one_thread): ... this. Handle resume_stop. In
16271 non-stop mode, don't look for pending flag in all threads.
16272 (resume_status_pending_p): Don't consider explicitly suspended
16273 threads.
16274 (my_waitpid): Reimplement. Emulate __WALL.
16275 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16276 Use lwpid_of.
16277 (sigchld_handler, linux_supports_non_stop, linux_async)
16278 (linux_start_non_stop): New.
16279 (linux_target_ops): Register linux_supports_non_stop, linux_async
16280 and linux_start_non_stop.
16281 (initialize_low): Install SIGCHLD handler.
16282 * thread-db.c (thread_db_create_event, find_one_thread)
16283 (thread_db_get_tls_address): Use lwpid_of.
16284 * win32-low.c (win32_detach): Adjust to use resume_kind.
16285 (win32_wait): Add `options' argument.
16286 * spu-low.c (spu_resume): Adjust to use resume_kind.
16287 (spu_wait): Add `options' argument.
16288
5b1c542e
PA
162892009-04-01 Pedro Alves <pedro@codesourcery.com>
16290
16291 Decouple target code from remote protocol.
16292
16293 * target.h (enum target_waitkind): New.
16294 (struct target_waitstatus): New.
16295 (struct target_ops) <wait>: Return an unsigned long. Take a
16296 target_waitstatus pointer instead of a char pointer.
16297 (mywait): Likewise.
16298 * target.c (mywait): Change prototype to return an unsigned long.
16299 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16300 * server.h (thread_from_wait, old_thread_from_wait): Delete
16301 declarations.
16302 (prepare_resume_reply): Change prototype to take a
16303 target_waitstatus.
16304 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16305 (last_status, last_ptid): New.
16306 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16307 pid instead of a signal.
16308 (attach_inferior): Remove "status" and "signal" parameters.
16309 Adjust.
16310 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16311 not as an address.
16312 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16313 (handle_v_requests, myresume): Remove "status" and "signal"
16314 parameters. Adjust.
16315 (handle_status): New.
16316 (main): Delete local `status'. Adjust.
16317 * remote-utils.c: Include target.h.
16318 (prepare_resume_reply): Change prototype to take a
16319 target_waitstatus. Adjust.
16320
16321 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16322 interface.
16323 * spu-low.c (spu_wait): Adjust.
16324 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16325 Delete.
16326 (win32_wait): Adjust.
16327
2bd7c093
PA
163282009-04-01 Pedro Alves <pedro@codesourcery.com>
16329
16330 * target.h (struct thread_resume): Delete leave_stopped member.
16331 (struct target_ops): Add a `n' argument to the `resume' callback.
16332 * server.c (start_inferior): Adjust.
16333 (handle_v_cont, myresume): Adjust.
16334 * linux-low.c (check_removed_breakpoint): Adjust to resume
16335 interface change, and to removed leave_stopped field.
16336 (resume_ptr): Delete.
16337 (struct thread_resume_array): New.
16338 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16339 resume interface change.
16340 (linux_continue_one_thread, linux_queue_one_thread)
16341 (resume_status_pending_p): Check if the resume field is NULL
16342 instead of checking the leave_stopped member.
16343 (linux_resume): Adjust to the target resume interface change.
16344 * spu-low.c (spu_resume): Adjust to the target resume interface
16345 change.
16346 * win32-low.c (win32_detach, win32_resume): Ditto.
16347
c35fafde
PA
163482009-04-01 Pedro Alves <pedro@codesourcery.com>
16349
16350 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16351 flag.
16352 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16353 pending.
16354 (linux_continue_one_thread): Only preserve the stepping flag if
16355 there's a pending breakpoint.
16356
0a59d50b
PA
163572009-03-31 Pedro Alves <pedro@codesourcery.com>
16358
16359 * server.c (main): After the inferior having exited, call
16360 remote_close before exiting gdbserver.
16361
f04c6d38
TJB
163622009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16363
16364 Fix size of FPSCR in Power 7 processors.
16365 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16366 (PPC_FEATURE_HAS_DFP): New #define.
16367 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16368 size of the FPSCR.
16369
78e5cee6
PA
163702009-03-23 Pedro Alves <pedro@codesourcery.com>
16371
16372 * server.c (handle_query) Whitespace and formatting.
16373
1b3f6016
PA
163742009-03-22 Pedro Alves <pedro@codesourcery.com>
16375
16376 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16377 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16378 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16379 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16380 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16381 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16382 Makefile.in, configure.ac: Fix whitespace throughout.
16383 * configure: Regenerate.
16384
a07b2135
PA
163852009-03-22 Pedro Alves <pedro@codesourcery.com>
16386
16387 * inferiors.c (find_inferior): Make it safe for the callback
16388 function to delete the currently iterated inferior.
16389
67cc2626
PA
163902009-03-22 Pedro Alves <pedro@codesourcery.com>
16391
16392 * Makefile.in (linuw_low_h): Move higher.
16393 (thread-db.o): Depend on $(linux_low_h).
16394
54a0b537
PA
163952009-03-17 Pedro Alves <pedro@codesourcery.com>
16396
16397 Rename "process" to "lwp" throughout.
16398
16399 * linux-low.c (all_processes): Rename to...
16400 (all_lwps): ... this.
16401 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16402 (add_process): Rename to ...
16403 (add_lwp): ... this. Adjust.
16404 (linux_create_inferior): Adjust.
16405 (linux_attach_lwp): Adjust.
16406 (linux_attach): Adjust.
16407 (linux_kill_one_process): Rename to ...
16408 (linux_kill_one_lwp): ... this. Adjust.
16409 (linux_kill): Adjust.
16410 (linux_detach_one_process): Rename to ...
16411 (linux_detach_one_lwp): ... this. Adjust.
16412 (linux_detach): Adjust.
16413 (check_removed_breakpoint): Adjust.
16414 (status_pending_p): Adjust.
16415 (linux_wait_for_process): Rename to ...
16416 (linux_wait_for_lwp): ... this. Adjust.
16417 (linux_wait_for_event): Adjust.
16418 (send_sigstop): Adjust.
16419 (wait_for_sigstop): Adjust.
16420 (stop_all_processes): Rename to ...
16421 (stop_all_lwps): ... this.
16422 (linux_resume_one_process): Rename to ...
16423 (linux_resume_one_lwp): ... this. Adjust.
16424 (linux_set_resume_request, linux_continue_one_thread)
16425 (linux_queue_one_thread, resume_status_pending_p)
16426 (usr_store_inferior_registers, regsets_store_inferior_registers)
16427 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16428 Adjust.
16429 * linux-low.h (get_process): Rename to ...
16430 (get_lwp): ... this. Adjust.
16431 (get_thread_process): Rename to ...
16432 (get_thread_lwp): ... this. Adjust.
16433 (get_process_thread): Rename to ...
16434 (get_lwp_thread): ... this. Adjust.
16435 (struct process_info): Rename to ...
16436 (struct lwp_info): ... this.
16437 (all_processes): Rename to ...
16438 (all_lwps): ... this.
16439 * proc-service.c (ps_lgetregs): Adjust.
16440 * thread-db.c (thread_db_create_event, find_one_thread)
16441 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16442
0b16c5cf
PA
164432009-03-14 Pedro Alves <pedro@codesourcery.com>
16444
16445 * server.c (handle_query): Handle "qAttached".
16446
32de4b9d
NS
164472009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16448
16449 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16450 GPLv3, update license URL.
16451
2aecd87f
DE
164522009-03-01 Doug Evans <dje@google.com>
16453
93efd302 16454 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
16455 (server_h): Add gdb_signals.h.
16456 (signals.o): Update.
16457 * server.h (target_signal_from_host,target_signal_to_host_p)
16458 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16459
86b1f9c5
PM
164602009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16461
16462 * remote-utils.c (getpkt): Also generate remote-debug
16463 information if noack_mode is set.
16464
4aa995e1
PA
164652009-02-06 Pedro Alves <pedro@codesourcery.com>
16466
16467 * server.c (handle_query): Report qXfer:siginfo:read and
16468 qXfer:siginfo:write as supported and handle them.
16469 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16470 * linux-low.c (linux_xfer_siginfo): New.
16471 (linux_target_ops): Set it.
16472
62709adf
PA
164732009-01-26 Pedro Alves <pedro@codesourcery.com>
16474
16475 * server.c (gdbserver_usage): Mention --remote-debug.
16476 (main): Accept '--remote-debug' switch.
16477
aef93bd7
DE
164782009-01-18 Doug Evans <dje@google.com>
16479
16480 * regcache.c (new_register_cache): No need to check result of xcalloc.
16481 * server.c (handle_search_memory): Back out calls to xmalloc,
16482 result is checked and error is returned to user upon failure.
16483 (handle_query): Ditto. Add more checks for result of malloc.
16484 (handle_v_cont): Check result of malloc, report error back to
16485 user upon failure.
16486 (handle_v_run): Ditto. Call freeargv.
16487 * server.h (freeargv): Declare.
16488 * utils.c (freeargv): New fn.
16489
54363045
DE
164902009-01-15 Doug Evans <dje@google.com>
16491
f626972c
DE
16492 * gdbreplay.c (perror_with_name): Make arg const char *.
16493 * server.h (target_signal_to_name): Make return type const char *.
0842e787 16494 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 16495 * utils.c (perror_with_name): Make arg const char *.
54363045 16496
18aae699
PA
164972009-01-14 Pedro Alves <pedro@codesourcery.com>
16498
16499 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16500 when handling a EXIT_PROCESS_DEBUG_EVENT.
16501
ff703abe
JB
165022009-01-06 Joel Brobecker <brobecker@adacore.com>
16503
16504 * gdbreplay.c (gdbreplay_version): Update copyright year.
16505 * server.c (gdbserver_version): Likewise.
16506
f21cc1a2 165072009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
16508
16509 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 16510 (handle_extended_wait): Improve comment.
0e21c1ec 16511
bca929d3
DE
165122008-12-13 Doug Evans <dje@google.com>
16513
16514 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16515 * server.h (ATTR_MALLOC): New macro.
16516 (xmalloc,xcalloc,xstrdup): Declare.
16517 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16518 * inferiors.c: Ditto.
16519 * linux-low.c: Ditto.
16520 * mem-break.c: Ditto.
16521 * regcache.c: Ditto.
16522 * remote-utils.c: Ditto.
16523 * server.c: Ditto.
16524 * target.c: Ditto.
16525 * win32-low.c: Ditto.
16526
97438e3f
DE
165272008-12-12 Doug Evans <dje@google.com>
16528
896c7fbb
DE
16529 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16530 in debugging printf.
16531
97438e3f
DE
16532 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16533
e3b886f8
DE
165342008-12-09 Doug Evans <dje@google.com>
16535
16536 * linux-low.h (struct process_info): Delete member tid, unused.
16537 * thread-db.c (find_one_thread): Update.
16538 (maybe_attach_thread): Update.
16539
07e059b5
VP
165402008-12-02 Pedro Alves <pedro@codesourcery.com>
16541
889bf7c5
PA
16542 * target.h (struct target_ops): Add qxfer_osdata member.
16543 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16544 and dirent.h.
16545 (linux_qxfer_osdata): New functions.
16546 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16547 callback.
16548 * server.c (handle_query): Handle "qXfer:osdata:read:".
16549 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16550 (buffer_xml_printf): New functions.
16551 * server.h (struct buffer): New.
16552 (buffer_grow_str, buffer_grow_str0): New macros.
16553 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16554 (buffer_xml_printf): Declare.
07e059b5 16555
4cab47ab
DE
165562008-11-24 Doug Evans <dje@google.com>
16557
16558 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16559
f142445f
DJ
165602008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16561
16562 * server.c (handle_v_run): Always use the supplied argument list.
16563
d0107bb6 165642008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 16565
d0107bb6
BW
16566 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16567 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 16568
2c4ad781
TJB
165692008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16570
16571 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16572 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16573 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16574 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16575 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16576 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16577 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16578 XML target descriptions.
16579 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16580 when inferior is running on an ISA 2.05 or later processor. Add
16581 special case to return offset for full 64-bit slot of FPSCR when
16582 in 32-bits.
16583
dfb64f85
DJ
165842008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16585
16586 * Makefile.in (SFILES, clean): Added sparc64 files.
16587 (reg-sparc64.o, reg-sparc64.c): New.
16588 * configure.srv (sparc*-*-linux*): New configuration.
16589 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16590 syscall arguments for SPARC.
16591 (regsets_store_inferior_registers): Likewise.
16592 * linux-sparc-low.c: New file.
16593
66b6e1dd
DE
165942008-10-21 Doug Evans <dje@google.com>
16595
16596 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16597 (READLINE_DIR,READLINE_DEP): Delete.
16598 (INTERNAL_CFLAGS): Update.
16599 (LINTFLAGS): Update.
16600
9b710a42
PA
166012008-10-10 Pedro Alves <pedro@codesourcery.com>
16602
16603 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16604 whole argv from the last run, not just argv[0].
16605
5822d809
PA
166062008-09-08 Pedro Alves <pedro@codesourcery.com>
16607
16608 * regcache.c (new_register_cache): Return NULL if the register
16609 cache size isn't known yet.
16610 (free_register_cache): Avoid dereferencing a NULL regcache.
16611
74aac56f
DJ
166122008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16613
16614 * configure.srv: Merge MIPS and MIPS64.
16615
400b20f5
MR
166162008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
16617
16618 * Makefile.in (uninstall): Apply $(EXEEXT) too.
16619
677c5bb1
LM
166202008-08-18 Luis Machado <luisgpm@br.ibm.com>
16621
16622 * Makefile.in: Add required vsx dependencies.
16623
16624 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
16625 Declare init_registers_powerpc_vsx32l.
16626 Declare init_registers_powerpc_vsx64l.
16627 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
16628 (ppc_arch_setup): Check for VSX in hwcap.
16629 (ppc_fill_vsxregset): New function.
16630 (ppc_store_vsxregset): New function.
16631 Add new VSX entry in regset_info target_regsets.
16632
16633 * configure.srv: Add new VSX dependencies.
16634
a6f3e723
SL
166352008-08-12 Pedro Alves <pedro@codesourcery.com>
16636
16637 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
16638 (remote_open): Set or clear transport_is_reliable.
16639 (putpkt_binary): Don't expect acks in noack mode.
16640 (getpkt): Don't send ack/nac in noack mode.
16641 * server.c (handle_general_set): Handle QStartNoAckMode.
16642 (handle_query): If connected by tcp pass QStartNoAckMode+ in
16643 qSupported.
16644 (main): Reset noack_mode on every connection.
16645 * server.h (noack_mode): Declare.
16646
a417dc56
RW
166472008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16648
16649 * Makefile.in (GDBREPLAY_OBS): New variable.
16650 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
16651
3221518c
UW
166522008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16653 Daniel Jacobowitz <dan@codesourcery.com>
16654
16655 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16656 (usr_store_inferior_registers): Likewise.
16657 (regsets_store_inferior_registers): Likewise.
16658
ec56be1b
PA
166592008-07-31 Rolf Jansen <rj@surtec.com>
16660 Pedro Alves <pedro@codesourcery.com>
16661
16662 * configure.ac: Check for memmem declaration.
16663 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16664 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16665 (disable_packet_qfThreadInfo): Unconditionally compile.
16666 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16667 * configure, config.in: Regenerate.
16668
2fe5e3ff
DE
166692008-07-28 Doug Kwan <dougkwan@google.com>
16670
16671 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16672 (linux_write_memory): Remove declaration of errno.
16673
836acd6d
UW
166742008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16675
16676 * linux-low.c (handle_extended_wait): Do not use "status"
16677 variable uninitialized.
16678
aeba519e
PA
166792008-07-07 Pedro Alves <pedro@codesourcery.com>
16680
16681 * server.c (handle_v_attach): Inhibit reporting dll changes.
16682
db42f210
PA
166832008-06-27 Pedro Alves <pedro@codesourcery.com>
16684
16685 * remote-utils.c (prepare_resume_reply): If requested, don't
16686 output "thread:TID" in the T stop reply.
16687
16688 * server.c (disable_packet_vCont, disable_packet_Tthread)
16689 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16690 (handle_query): If requested, disable support for qC, qfThreadInfo
16691 and qsThreadInfo.
16692 (handle_v_requests): If requested, disable support for vCont.
16693 (gdbserver_show_disableable): New.
16694 (main): Handle --disable-packet and --disable-packet=LIST.
16695
16696 * server.h (disable_packet_vCont, disable_packet_Tthread)
16697 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16698
8e4c5421
CD
166992008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16700
16701 * server.c (gdbserver_usage): Mention --version.
16702
6e23a804
DJ
167032008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16704
16705 * Makefile.in (gdbreplay.o): New rule.
16706
90aa6a40
JM
167072008-06-06 Joseph Myers <joseph@codesourcery.com>
16708
16709 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16710 message, not gdbserver.
16711
c16158bc 167122008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
16713 Nathan Sidwell <nathan@codesourcery.com>
16714 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
16715
16716 * acinclude.m4: Include ../../config/acx.m4.
16717 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16718 * configure, config.in: Regenerate.
16719 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16720 * server.c (gdbserver_version): Print PKGVERSION.
16721 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16722 (main): Adjust gdbserver_usage calls.
16723 * gdbreplay.c (version, host_name): Add declarations.
16724 (gdbreplay_version, gdbreplay_usage): New.
16725 (main): Accept --version and --help options.
16726
aeb75bf5
DJ
167272008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16728
16729 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16730 (arm_breakpoint_at): Handle Thumb.
16731 (the_low_target): Add comment.
16732
76b233dd
UW
167332008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16734
16735 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16736
08388c79
DE
167372008-05-09 Doug Evans <dje@google.com>
16738
a3c83fae
DE
16739 * server.h (decode_search_memory_packet): Declare.
16740 * remote-utils.c (decode_search_memory_packet): New fn.
16741 * server.c (handle_search_memory_1): New fn.
08388c79
DE
16742 (handle_search_memory): New fn.
16743 (handle_query): Process qSearch:memory packets.
16744
bb9c3d36
UW
167452008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16746
16747 * regcache.c (registers_length): Remove.
16748 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16749 full register packet.
16750 * regcache.h (registers_length): Remove prototype.
16751 * server.h (PBUFSIZ): Define to 16384.
16752
7284e1be
UW
167532008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16754
16755 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16756 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16757 powerpc-64l.o, and powerpc-altivec64l.o.
16758 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16759 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16760 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16761 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16762 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16763 to srv_xmlfiles.
16764
16765 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16766 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16767 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16768 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16769 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16770 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16771 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16772 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16773 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16774 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16775 (clean): Update.
16776
16777 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16778 (init_registers_powerpc_32l): ... this new prototype.
16779 (init_registers_powerpc_32): Remove, replace by ...
16780 (init_registers_powerpc_altivec32l): ... this new prototype.
16781 (init_registers_powerpc_e500): Remove, replace by ...
16782 (init_registers_powerpc_e500l): ... this new prototype.
16783 (init_registers_ppc64): Remove, replace by ...
16784 (init_registers_powerpc_64l): ... this new prototype.
16785 (init_registers_powerpc_64): Remove, replace by ...
16786 (init_registers_powerpc_altivec64l): ... this new prototype.
16787 (ppc_num_regs): Set to 73.
16788 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16789 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16790 (ppc_cannot_store_register): Handle orig_r3 and trap.
16791 (ppc_arch_setup): Update init_registers_... calls.
16792 (ppc_fill_gregset): Handle orig_r3 and trap.
16793
16794 * inferiors.c (clear_inferiors): Reset current_inferior.
16795
fdc59709
PB
167962008-04-23 Paolo Bonzini <bonzini@gnu.org>
16797
889bf7c5
PA
16798 * acinclude.m4: Add override.m4.
16799 * configure: Regenerate.
fdc59709 16800
c9b2f845
UW
168012008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16802
16803 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16804 initial call to init_register_ppc64.
16805
550512b8
UW
168062008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16807
43aaf8b6
PA
16808 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16809 single powerpc*-*-linux* case.
550512b8
UW
16810 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16811
b6430ec3
UW
168122008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16813
16814 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 16815 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
16816 from reg_xmlfiles.
16817 * linux-ppc-low.c: Include <elf.h>.
16818 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16819 (ppc_hwcap): New global variable.
16820 (ppc_regmap): Remove __SPE__ #ifdef sections.
16821 (ppc_regmap_e500): New global variable.
16822 (ppc_cannot_store_register): Update __SPE__ special case.
16823 (ppc_get_hwcap): New function.
16824 (ppc_arch_setup): Use it to determine whether inferior supports
16825 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16826 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16827 Do not access registers if target does not support AltiVec.
16828 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16829 Do not access registers if target does not support SPE.
16830 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16831
52fa2412
UW
168322008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16833
16834 * linux-low.c (disabled_regsets, num_regsets): New.
16835 (use_regsets_p): Delete.
16836 (linux_wait_for_process): Clear disabled_regsets.
16837 (regsets_fetch_inferior_registers): Check and set it.
16838 (regsets_store_inferior_registers): Likewise.
16839 (linux_fetch_registers, linux_store_registers): Do not use
16840 use_regsets_p.
16841 (initialize_low): Allocate disabled_regsets.
16842
e28b3332
DJ
168432008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16844
16845 * Makefile.in (LIBOBJS): New.
16846 (OBS): Use LIBOBJS.
16847 (memmem.o): New rule.
16848 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16849 * configure: Regenerated.
16850
4536995d
UW
168512008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16852
16853 * server.c (handle_query): Never return "unsupported" for
16854 qXfer:features:read queries.
16855
221c031f
UW
168562008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16857
16858 * server.c (get_features_xml): Fix inverted condition.
16859 (handle_query): Always support qXfer:feature:read.
16860
ccd213ac
DJ
168612008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16862
16863 * server.c (wrapper_argv): New.
16864 (start_inferior): Handle wrapper_argv. If set, expect an extra
16865 trap.
16866 (gdbserver_usage): Document --wrapper.
16867 (main): Parse --wrapper.
16868
6fe305f7
UW
168692008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16870
16871 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16872 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16873 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16874 (ppc_set_pc): Likewise.
16875 (ppc_arch_setup): New function.
16876 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16877 of collect_register.
889bf7c5 16878 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 16879
5b0a002e
UW
168802008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16881
16882 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16883 instead of linux-ppc64-low.o.
16884 * linux-ppc64-low.c: Remove file.
16885 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16886 (linux-ppc64-low.o): Remove rule.
16887
16888 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16889 (init_registers_powerpc_64): Likewise.
16890 (ppc_regmap): Conditionally define depending on __powerpc64__.
16891 (ppc_cannot_store_register): Do not special-case "fpscr" when
16892 compiled on __powerpc64__.
16893 (ppc_collect_ptrace_register): New function.
16894 (ppc_supply_ptrace_register): New function.
16895 (ppc_breakpoint): Change type to "unsigned int".
16896 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16897 (the_low_target): Conditionally provide initializers for the
889bf7c5 16898 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
16899 collect_ptrace_register and supply_ptrace_register members.
16900
9b4b61c8
UW
169012008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16902
16903 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16904 * server.c (gdbserver_xmltarget): Define.
16905 (get_features_xml): Use it to replace "target.xml" and arch_string.
16906
16907 * configure.srv: Remove srv_xmltarget. Add XML files that were
16908 mentioned there to srv_xmlfiles instead. Remove conditional tests
16909 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16910 srv_xmlfiles and srv_regobj to include all possible choices.
16911 * configure.ac (srv_xmltarget): Remove.
16912 (srv_xmlfiles): Do not add "target.xml".
16913 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16914 checks for supplementary target information.
16915 * configure: Regenerate.
16916 * Makefile.in (XML_TARGET): Remove.
16917 (target.xml): Remove rule.
16918 (clean): Do not clean up target.xml.
16919 (.PRECIOUS): Do not mention target.xml.
16920
16921 * target.h (struct target_ops): Remove arch_string member.
16922 * linux-low.c (linux_arch_string): Remove.
16923 (linux_target_ops): Remove arch_string initializer.
16924 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16925 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16926 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16927 * spu-low.c (spu_arch_string): Remove.
16928 (spu_target_ops): Remove arch_string initializer.
16929 * win32-low.c (win32_arch_string): Remove.
16930 (win32_target_ops): Remove arch_string initializer.
16931 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16932 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16933 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16934
ee1a7ae4
UW
169352008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16936
16937 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16938 by collect_ptrace_register and supply_ptrace_register hooks.
16939 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16940 instead of checking for the_low_target.left_pad_xfer.
16941 (usr_store_inferior_registers): Use collect_ptrace_register callback
16942 instead of checking for the_low_target.left_pad_xfer.
16943
16944 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16945 (s390_supply_ptrace_register): Likewise.
16946 (s390_fill_gregset): Call s390_collect_ptrace_register.
16947 (the_low_target): Update.
16948
16949 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16950 (ppc_supply_ptrace_register): Likewise.
16951 (the_low_target): Update.
16952
16953 * linux-i386-low.c (the_low_target): Update.
16954 * linux-x86-64-low.c (the_low_target): Update.
16955
d61ddec4
UW
169562008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16957
16958 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16959 reg-s390.o and reg-s390x.o.
16960
16961 * linux-low.c (new_inferior): New global variable.
16962 (linux_create_inferior, linux_attach): Set it.
16963 (linux_wait_for_process): Call the_low_target.arch_setup after the
16964 target has stopped for the first time.
16965 (initialize_low): Do not call the_low_target.arch_setup.
16966
16967 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16968 (s390_set_pc): Likewise.
16969 (s390_arch_setup): New function.
16970 (the_low_target): Use s390_arch_setup as arch_setup routine.
16971
16972 * regcache.c (realloc_register_cache): New function.
16973 (set_register_cache): Call it for each existing regcache.
16974
d05b4ac3
UW
169752008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16976
16977 * server.h (init_registers): Remove prototype.
16978
16979 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16980 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16981 instead of init_registers ().
16982 * linux-arm-low.c (init_registers_arm): Add prototype.
16983 (init_registers_arm_with_iwmmxt): Likewise.
16984 (the_low_target): Add initializer for arch_setup field.
16985 * linux-cris-low.c (init_registers_cris): Add prototype.
16986 (the_low_target): Add initializer for arch_setup field.
16987 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16988 (the_low_target): Add initializer for arch_setup field.
16989 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16990 (the_low_target): Add initializer for arch_setup field.
16991 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16992 (the_low_target): Add initializer for arch_setup field.
16993 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16994 (the_low_target): Add initializer for arch_setup field.
16995 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16996 (the_low_target): Add initializer for arch_setup field.
16997 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16998 (init_registers_mips64_linux): Likewise.
16999 (the_low_target): Add initializer for arch_setup field.
17000 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17001 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17002 (the_low_target): Add initializer for arch_setup field.
17003 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17004 (init_registers_powerpc_64): Likewise.
17005 (the_low_target): Add initializer for arch_setup field.
17006 * linux-s390-low.c (init_registers_s390): Add prototype.
17007 (init_registers_s390x): Likewise.
17008 (the_low_target): Add initializer for arch_setup field.
17009 * linux-sh-low.c (init_registers_sh): Add prototype.
17010 (the_low_target): Add initializer for arch_setup field.
17011 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17012 (the_low_target): Add initializer for arch_setup field.
17013 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17014 (the_low_target): Add initializer for arch_setup field.
17015
17016 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17017 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17018 instead of init_registers ().
17019 * win32-arm-low.c (init_registers_arm): Add prototype.
17020 (the_low_target): Add initializer for arch_setup field.
17021 * win32-i386-low.c (init_registers_i386): Add prototype.
17022 (the_low_target): Add initializer for arch_setup field.
17023
17024 * spu-low.c (init_registers_spu): Add prototype.
17025 (initialize_low): Call initialie_registers_spu () instead of
17026 initialize_registers ().
17027
fd96d250
PA
170282008-02-19 Pedro Alves <pedro@codesourcery.com>
17029
17030 * server.c (handle_v_requests): When handling the vRun and vAttach
17031 packets, if already debugging a process, don't kill it. Return an
17032 error instead.
17033
d41b6bb4
DJ
170342008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17035
17036 * server.c (handle_query): Correct length check.
17037
5ac588cf
PA
170382008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17039
17040 * win32-low.c (do_initial_child_stuff): Add process handle
17041 parameter. Set current_process_handle and current_process_id from the
17042 parameters. Clear globals.
17043 (win32_create_inferior): Don't set current_process_handle and
17044 current_process_id here. Instead pass them on the call to
17045 do_initial_child_stuff.
17046 (win32_attach): Likewise.
17047 (win32_clear_inferiors): New.
17048 (win32_kill): Don't close the current process handle or the
17049 current thread handle here. Instead call win32_clear_inferiors.
17050 (win32_detach): Don't open a new handle to the process. Call
17051 win32_clear_inferiors.
17052 (win32_join): Don't rely on current_process_handle; open a new
17053 handle using the process id.
17054 (win32_wait): Call win32_clear_inferiors when the inferior process
17055 has exited.
17056
ecd7ecbc
DJ
170572008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17058
17059 * server.c (monitor_show_help): Add "exit".
17060
1525d545
MG
170612008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17062
ecd7ecbc 17063 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
17064 (clean): Add reg-xtensa.c.
17065 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
17066 * configure.srv (xtensa*-*-linux*) New target.
17067 * linux-xtensa-low.c: New.
17068 * xtensa-xtregs.c: New.
1525d545 17069
59a016f0
PA
170702008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17071
17072 * hostio.c: Don't include errno.h.
17073 (errno_to_fileio_errno): Move to hostio-errno.
17074 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17075 error number outputting to the target->hostio_last_error callback.
17076 (hostio_packet_error): Use FILEIO_EINVAL directly.
17077 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17078 calls to hostio_error.
17079 * hostio-errno.c: New.
17080 * server.h (hostio_last_error_from_errno): Declare.
17081 * target.h (target_ops): Add hostio_last_error member.
17082 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17083 as hostio_last_error handler.
889bf7c5 17084 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
17085 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17086 (wince_hostio_last_error): New functions.
17087 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17088 as hostio_last_error handler.
17089 (win32_target_ops) [!_WIN32_WCE]: Register
17090 hostio_last_error_from_errno as hostio_last_error handler.
17091 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17092 (hostio-errno.o): New rule.
17093 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17094 * configure.srv (srv_hostio_err_objs): New variable. Default to
17095 hostio-errno.o.
17096 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17097 * configure: Regenerate.
17098
2d717e4f
DJ
170992008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17100
17101 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17102 (linux_kill, linux_detach): Clean up the process list.
17103 * remote-utils.c (remote_open): Improve port number parsing.
17104 (putpkt_binary, input_interrupt): Only send interrupts if the target
17105 is running.
17106 * server.c (extended_protocol): Make static.
17107 (attached): Define earlier.
17108 (exit_requested, response_needed, program_argv): New variables.
17109 (target_running): New.
17110 (start_inferior): Clear attached here.
17111 (attach_inferior): Set attached here.
17112 (require_running): Define.
17113 (handle_query): Use require_running and target_running. Implement
17114 "monitor exit".
17115 (handle_v_attach, handle_v_run): New.
17116 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17117 (gdbserver_usage): Update.
17118 (main): Redo argument parsing. Handle --debug and --multi. Handle
17119 --attach along with other options or after the port. Save
17120 program_argv. Support no initial program. Resynchronize
17121 communication with GDB after an error. Handle "monitor exit".
17122 Use require_running and target_running. Always allow the extended
17123 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17124 restart in extended mode.
17125 * README: Refer to the GDB manual. Update --attach usage.
17126
7407e2de
AS
171272007-12-20 Andreas Schwab <schwab@suse.de>
17128
17129 * linux-low.c (STACK_SIZE): Define.
17130 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17131 (linux_test_for_tracefork): Likewise.
17132
b65d95c5
DJ
171332007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17134
17135 * linux-low.c (linux_wait_for_event): Update messages. Do not
17136 reinsert auto-delete breakpoints.
17137 * mem-break.c (struct breakpoint): Change return type of handler to
17138 int.
17139 (set_breakpoint_at): Update handler type.
17140 (reinsert_breakpoint_handler): Return 1 instead of calling
17141 delete_breakpoint.
17142 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17143 setting a new one.
17144 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17145 * mem-break.h (set_breakpoint_at): Update handler type.
17146 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17147 * win32-low.c (auto_delete_breakpoint): New.
17148 (get_child_debug_event): Use it.
17149
4e799345
DJ
171502007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17151
17152 * configure.ac: Check for pread and pwrite.
17153 * hostio.c (handle_pread): Fall back to lseek and read.
17154 (handle_pwrite): Fall back to lseek and write.
17155 * config.in, configure: Regenerated.
17156
27524b67
DJ
171572007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17158
17159 * server.c (myresume): Add own_buf argument.
17160 (main): Update calls.
17161
a20d5e98
DJ
171622007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17163
17164 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17165 * remote-utils.c (remote_open): Do not call disable_async_io.
17166 (block_async_io): Delete.
17167 (unblock_async_io): Make static.
17168 (initialize_async_io): New.
17169 * server.c (handle_v_cont): Handle async I/O here.
17170 (myresume): Likewise. Move other common resume tasks here...
17171 (main): ... from here. Call initialize_async_io. Disable async
17172 I/O before the main loop.
17173 * server.h (initialize_async_io): Declare.
17174 (block_async_io, unblock_async_io): Delete prototypes.
17175 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17176
b79d787e
DJ
171772007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17178
17179 * remote-utils.c (readchar): Allow binary data in received messages.
17180
d97903b2
PA
171812007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17182
17183 * win32-low.c (attaching): New global.
17184 (win32_create_inferior): Clear the `attaching' global.
17185 (win32_attach): Set the `attaching' global.
17186 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17187 attaching. Only set a breakpoint at the entry point if not
17188 attaching.
17189
311de423
PA
171902007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17191
17192 * server.c (main): Don't report dll events on the initial
17193 connection on attaches.
17194
6c2d16d2
PA
171952007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17196
17197 * server.c (main): Relax numerical bases supported for the pid of
17198 the --attach command line argument.
17199
5ca906e6
PA
172002007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17201
17202 * win32-low.c (win32_attach): Call OpenProcess before
17203 DebugActiveProcess, not after. Add last error output to error
17204 call.
17205
9c6c8194
PA
172062007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17207
17208 * win32-low.c (win32_get_thread_context)
17209 (win32_set_thread_context): New functions.
17210 (thread_rec): Use win32_get_thread_context.
17211 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17212 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17213 field.
17214
4d5d1aaa
PA
172152007-12-03 Leo Zayas
17216 Pedro Alves <pedro_alves@portugalmail.pt>
17217
17218 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17219 global variables.
17220 (child_add_thread): Minor cleanup.
17221 (child_continue): Resume artificially suspended threads before
17222 calling ContinueDebugEvent.
17223 (suspend_one_thread): New.
17224 (fake_breakpoint_event): New.
17225 (get_child_debug_event): Change return type to int. Check here if
17226 gdb sent an interrupt request. If a soft interrupt was requested,
17227 fake a breakpoint event. Return 0 if there is no event to handle,
17228 and 1 otherwise.
17229 (win32_wait): Don't check here if gdb sent an interrupt request.
17230 Ensure there is a valid event to handle.
17231 (win32_request_interrupt): Add soft interruption method as last
17232 resort.
17233
c436e841
PA
172342007-12-03 Leo Zayas
17235 Pedro Alves <pedro_alves@portugalmail.pt>
17236
17237 * win32-low.h (win32_thread_info): Add descriptions to the
17238 structure members. Replace `suspend_count' counter by a
17239 `suspended' flag.
17240 * win32-low.c (thread_rec): Update condition of when to get the
17241 context from the inferior. Rely on ContextFlags being set if it
17242 has already been retrieved. Only suspend the inferior thread if
17243 we haven't already. Warn if that fails.
17244 (continue_one_thread): s/suspend_count/suspended/. Only call
17245 ResumeThread once. Warn if that fails.
17246
e7b5fa67
PA
172472007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17248
17249 * win32-low.c (win32_wait): Don't read from the inferior when it
17250 has already exited.
17251
a385171d
PA
172522007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17253
17254 * Makefile.in (win32_low_h): New variable.
17255 (win32-low.o): Add dependency on $(win32_low_h).
17256 (win32-arm-low.o, win32-i386-low.o): New rules.
17257
f80c84b3
DJ
172582007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17259
17260 * hostio.c: Correct copyright year.
17261
a6b151f1
DJ
172622007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17263
17264 * Makefile.in (OBS): Add hostio.o.
17265 (hostio.o): New rule.
17266 * server.h (handle_vFile): Declare.
17267 * hostio.c: New file.
17268 * server.c (handle_v_requests): Take packet_len and new_packet_len
17269 for binary packets. Call handle_vFile.
17270 (main): Update call to handle_v_requests.
17271
f9387fc3
DJ
172722007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17273
17274 * linux-low.c: Include <sched.h>.
17275
51c2684e
DJ
172762007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17277
17278 * linux-low.c (linux_tracefork_grandchild): New.
17279 (linux_tracefork_child): Use clone.
17280 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17281
75f83163
JB
172822007-10-31 Joel Brobecker <brobecker@adacore.com>
17283
17284 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17285
da5898ce
DJ
172862007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17287
17288 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17289
24a09b5f
DJ
172902007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17291
17292 * inferiors.c (change_inferior_id): Delete.
17293 (add_pid_to_list, pull_pid_from_list): New.
17294 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17295 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17296 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17297 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17298 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17299 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17300 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17301 (using_threads): Always set to 1.
17302 (handle_extended_wait): New.
17303 (add_process): Do not set TID.
17304 (linux_create_inferior): Set must_set_ptrace_flags.
17305 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17306 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17307 (linux_thread_alive): Rename TID argument to LWPID.
17308 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17309 (linux_wait_for_event): Do not use TID or check using_threads. Update
17310 call to dead_thread_notify. Call handle_extended_wait.
17311 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17312 (send_sigstop): Delete sigstop_sent.
17313 (wait_for_sigstop): Avoid TID.
17314 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17315 (linux_test_for_tracefork): New.
17316 (linux_lookup_signals): Use thread_db_active and
17317 linux_supports_tracefork_flag.
17318 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17319 * linux-low.h (get_process_thread): Avoid TID.
17320 (struct process_ifo): Move thread_known and tid to the end. Remove
17321 sigstop_sent.
17322 (linux_attach_lwp, thread_db_init): Update prototypes.
17323 * server.h (change_inferior_id): Delete prototype.
17324 (add_pid_to_list, pull_pid_from_list): New prototypes.
17325 * thread-db.c (thread_db_use_events): New.
17326 (find_first_thread): Rename to...
17327 (find_one_thread): ...this. Update callers and messages. Do not
17328 call fatal. Check thread_db_use_events. Do not call
17329 change_inferior_id or new_thread_notify.
17330 (maybe_attach_thread): Update. Do not call new_thread_notify.
17331 (thread_db_init): Set thread_db_use_events. Check use_events.
17332 * utils.c (fatal, warning): Correct message prefix.
17333
30ed0a8f
DJ
173342007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17335
17336 * Makefile.in (clean): Remove new files.
17337 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17338 (powerpc-64.o, powerpc-64.c): New rules.
17339 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17340 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17341 with SPE.
17342 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17343 SPE targets.
17344 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17345 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17346 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17347 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17348 (target_regsets): Add AltiVec and SPE register sets.
17349 * configure.ac: Check for AltiVec and SPE.
17350 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17351 (ppc_fill_vrregset, ppc_store_vrregset): New.
17352 (target_regsets): Add AltiVec register set.
17353 * configure: Regenerated.
17354
fd462a61
DJ
173552007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17356
17357 * linux-low.c (O_LARGEFILE): Define.
17358 (linux_read_memory): Use /proc/PID/mem.
17359 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17360 * configure, config.in: Regenerated.
17361
69f223ed
DJ
173622007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17363
17364 * linux-low.c (linux_wait_for_event): Do not pass signals while
17365 single-stepping.
17366
aec18585
PA
173672007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17368
17369 * win32-low.c (create_process): New.
17370 (win32_create_inferior): Use create_process instead of
17371 CreateProcess. If create_process failed retry appending an ".exe"
17372 suffix. Store the GetLastError result immediatelly after
17373 create_process calls and use it on the call to error.
17374
34d86ddd
PA
173752007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17376
17377 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17378
5a0e3bd0
JB
173792007-08-23 Joel Brobecker <brobecker@adacore.com>
17380
17381 * configure.ac: Switch license to GPLv3.
17382
f88c79e6
MS
173832007-08-01 Michael Snyder <msnyder@access-company.com>
17384
17385 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17386
6b3d9b83
PA
173872007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17388
17389 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17390 typedef.
17391 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17392 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17393 CloseToolhelp32Snapshot.
17394 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17395 CloseToolhelp32Snapshot.
17396
c588c53c
MS
173972007-07-27 Michael Snyder <michael.snyder@access-company.com>
17398
17399 * server.c (main): Check for inferior exit before main loop.
17400
aa0403d9
PA
174012007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17402
17403 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17404 instead of on tmp_desc.
17405
255e7678
DJ
174062007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17407 Daniel Jacobowitz <dan@codesourcery.com>
17408
17409 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17410 (add_thread): Minor cleanups.
17411 (clear_inferiors): Move lower in the file. Clear the DLL
17412 list.
17413 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17414 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17415 (xml_escape_text): New.
17416 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17417 for qSupported.
17418 (handle_v_cont): Report errors.
17419 (gdbserver_version): Update.
17420 (main): Correct size of own_buf. Do not report initial DLL events.
17421 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17422 (unloaded_dll, xml_escape_text): New.
17423 * win32-low.c (enum target_waitkind): Update comments.
17424 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17425 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17426 (win32_EnumProcessModules, win32_GetModuleInformation)
17427 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17428 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17429 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17430 (win32_Module32First, win32_Module32Next, load_toolhelp)
17431 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17432 (get_child_debug_event): Handle DLL events.
17433 (win32_wait): Likewise.
17434
0d37add9
DJ
174352007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17436
17437 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17438 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17439
45e2715e
PA
174402007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17441
17442 * win32-low.c (handle_output_debug_string): Ignore event if not
17443 waiting.
17444
c5674cf1
PA
174452007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17446
17447 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17448
2bbe3cc1
DJ
174492007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17450
17451 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17452
ae13219e
DJ
174532007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17454
17455 * inferiors.c (change_inferior_id): Add comment.
17456 * linux-low.c (check_removed_breakpoint): Add an early
17457 prototype. Improve debug output.
17458 (linux_attach): Doc update.
17459 (linux_detach_one_process, linux_detach): Clean up before releasing
17460 each process.
17461 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17462 * linux-low.h (struct process_info): Doc improvement.
17463 * mem-break.c (delete_all_breakpoints): New.
17464 * mem-break.h (delete_all_breakpoints): New prototype.
17465 * thread-db.c (find_first_thread): New.
17466 (thread_db_create_event): Call it instead of
17467 thread_db_find_new_threads. Clean up unused variables.
17468 (maybe_attach_thread): Remove first thread handling.
17469 (thread_db_find_new_threads): Use find_first_thread.
17470 (thread_db_get_tls_address): Likewise.
17471
4105de34
DJ
174722007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17473
17474 * thread-db.c (thread_db_find_new_threads): Add prototype.
17475 (thread_db_create_event): Check for the main thread before adding
17476 a new thread.
17477 (maybe_attach_thread): Only enable event reporting if TID == 0.
17478 (thread_db_get_tls_address): Check for new threads.
17479
2b876972
DJ
174802007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17481
17482 * linux-low.c (linux_create_inferior): Try execv before execvp.
17483 * spu-low.c (spu_create_inferior): Likewise.
17484
7a245884
DJ
174852007-06-13 Mike Frysinger <vapier@gentoo.org>
17486
17487 * linux-low.c (linux_create_inferior): Change execv to execvp.
17488 * spu-low.c (spu_create_inferior): Likewies.
17489
117ce543
DJ
174902007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17491
17492 * Makefile.in (clean): Clean new files instead of deleted ones.
17493 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17494 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17495 rules.
17496 * configure.srv: Specify XML files and new regformats for MIPS and
17497 MIPS64 GNU/Linux.
17498 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17499 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17500 an entry for the restart register.
17501 (mips_cannot_fetch_register, mips_cannot_store_register)
17502 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17503 register names to match the XML descriptions.
17504 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17505 restart register instead of $0.
17506
0e7f50da
UW
175072007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17508 Markus Deuling <deuling@de.ibm.com>
17509
17510 * remote-utils.c (decode_xfer_write): New function.
17511 * server.h (decode_xfer_write): Add prototype.
17512 * server.c (handle_query): Add PACKET_LEN argument. Support
17513 qXfer:spu:read and qXfer:spu:write packets.
17514 (main): Pass packet_len to handle_query.
17515 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17516 * target.h (target_ops): Add qxfer_spu.
17517
374c1d38
UW
175182007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17519
17520 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17521 accessing non-seekable spufs files.
17522
bb63802a
UW
175232007-05-16 Markus Deuling <deuling@de.ibm.com>
17524
889bf7c5 17525 * server.c (handle_query): Add reply for qC packet.
bb63802a 17526
7390519e
PA
175272007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17528 Leo Zayas <lerele@champenstudios@com>
17529
17530 * server.h (check_remote_input_interrupt_request): New function.
17531 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17532 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17533 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17534 (check_remote_input_interrupt_request): New function.
17535 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 17536 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
17537 winapi_GenerateConsoleCtrlEvent): New typedefs.
17538 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17539 to 250 ms.
17540 (win32_wait): Check for remote interrupt request
17541 with check_remote_input_interrupt_request.
17542 (win32_request_interrupt): New function.
17543 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17544
34b34921
PA
175452007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17546
17547 * win32-low.c (debug_registers_changed,
17548 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17549 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17550 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17551 (thread_rec): Get context using the low target.
17552 (child_add_thread): Call thread_added on the low target,
17553 which does the same thing.
17554 (regptr): Delete.
17555 (do_initial_child_stuff): Remove debug registers references.
17556 Set context using the low target. Resume threads after
17557 setting the contexts.
17558 (child_continue): Remove dead variable. Remove debug
17559 registers references.
17560 (child_fetch_inferior_registers): Go through the low target.
17561 (do_child_store_inferior_registers): Remove.
17562 (child_store_inferior_registers): Go through the low target.
17563 (win32_resume): Remove debug registers references.
17564 Set context using the low target.
17565 (handle_exception): Change return type to void. Don't record
17566 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17567 first chance exception.
889bf7c5 17568 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
17569 goto loop. Always return after waiting for debug event.
17570 (win32_wait): Convert to switch statement. Handle spurious
17571 events.
17572
17573 * win32-i386-low.c (debug_registers_changed,
17574 debug_registers_used): New.
17575 (initial_stuff): Rename to ...
17576 (i386_initial_stuff): ... this. Clear debug registers
17577 state variables.
17578 (store_debug_registers): Delete.
17579 (i386_get_thread_context): New.
17580 (load_debug_registers): Delete.
17581 (i386_set_thread_context): New.
17582 (i386_thread_added): New.
17583 (single_step): Rename to ...
17584 (i386_single_step): ... this.
17585 (do_fetch_inferior_registers): Rename to ...
17586 (i386_fetch_inferior_register): ... this.
17587 (i386_store_inferior_register): New.
17588 (the_low_target): Adapt to new interface.
17589
17590 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17591 (arm_get_thread_context): New.
17592 (arm_set_thread_context): New.
17593 (regptr): New.
17594 (do_fetch_inferior_registers): Rename to ...
17595 (arm_fetch_inferior_register): ... this.
17596 (arm_store_inferior_register): New.
17597 (arm_wince_breakpoint): Reimplement as unsigned long.
17598 (arm_wince_breakpoint_len): Define.
17599 (the_low_target): Adapt to new interface.
17600
17601 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17602 load_debug_registers. Add get_thread_context, set_thread_context,
17603 thread_added and store_inferior_register. Rename
17604 fetch_inferior_registers to fetch_inferior_register.
17605 (regptr): Remove declaration.
17606
dd6953e1
PA
176072007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17608
17609 * linux-low.c (linux_detach): Change return type to int. Return 0.
17610 * spu-low.c (spu_detach): Likewise.
17611
444d6139
PA
176122007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17613
17614 * target.h (target_ops): Change return type of detach to int.
17615 Add join.
17616 (join_inferior): New.
17617 * server.c (main): Don't skip detach support on mingw32.
17618 If the inferior doesn't support detaching return error.
17619 Call join_inferior instead of using waitpid.
17620 * linux-low.c (linux_join): New.
17621 (linux_target_op): Add linux_join.
17622 * spu-low.c (spu_join): New.
17623 (spu_target_ops): Add spu_join.
17624 * win32-low.c (win32_detach): Adapt to new interface.
17625 Reopen current_process_handle before detaching. Issue a child
17626 resume before detaching.
17627 (win32_join): New.
17628 (win32_target_op): Add win32_join.
17629
1d5315fe
PA
176302007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17631
17632 * win32-low.c (win32-attach): Fix return value.
17633 * target.h (target_ops): Describe ATTACH return values.
17634
bf914831
PA
176352007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17636
17637 * win32-low.c (GETPROCADDRESS): Define.
17638 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
17639 (winapi_DebugSetProcessKillOnExit): Likewise.
17640 (win32_create_inferior): Force usage of ansi CreateProcessA.
17641 (win32_attach): Use GETPROCADDRESS.
17642 (win32_detach): Likewise.
17643
f72f3e60
PA
176442007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17645
17646 * win32-low.c (win32_wait): Don't use WSTOPSIG.
17647
ed50f18f
PA
176482007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
17649
17650 * win32-low.c: Commit leftover changes from 2007-03-29.
17651
0c2ead7e
DJ
176522007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17653
17654 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17655 fields short instead of int. Add explicit padding.
17656 (i387_cache_to_fsave): Remove unnecessary casts.
17657 (i387_fsave_to_cache): Doc fix.
17658 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17659
73725ff3
DJ
176602007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17661
17662 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17663 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17664
d99f33d8
PA
176652007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17666
17667 * configure.srv (arm*-*-mingw32ce*): Move near the other
17668 arm targets.
17669
68070c10
PA
176702007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17671
2482afc6 17672 * configure.ac: Add errno checking.
68070c10
PA
17673 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17674 sys/file.h and malloc.h.
17675 (AC_CHECK_DECLS): Add perror.
17676 (srv_mingwce): Handle.
2482afc6 17677 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
17678 win32-i386-low.o to srv_tgtobj.
17679 (i[34567]86-*-mingw*): Likewise.
17680 (arm*-*-mingw32ce*): Add case.
17681 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17682 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17683 [__MINGW32CE__] (strerror): New function.
17684 [__MINGW32CE__] (errno): Define to GetLastError.
17685 [__MINGW32CE__] (COUNTOF): New macro.
17686 (remote_open): Remove extra close call.
17687 * mem-break.c (delete_breakpoint_at): New function.
17688 * mem-break.h (delete_breakpoint_at): Declare.
17689 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17690 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17691 [USE_WIN32API] (read, write): Add char* casts.
17692 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17693 * server.h: Include wincecompat.h on Windows CE.
17694 [HAVE_ERRNO_H]: Check.
17695 (perror): Declare if not declared.
17696 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17697 (perror_with_name): Remove errno declaration.
17698 * wincecompat.h: New.
17699 * wincecompat.c: New.
17700 * win32-low.h: New.
17701 * win32-arm-low.c: New.
17702 * win32-i386-low.c: New.
17703 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17704 (OUTMSG2): Make it safe.
17705 (_T): New macro.
17706 (COUNTOF): New macro.
17707 (NUM_REGS): Get it from the low target.
17708 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17709 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17710 (thread_rec): Let low target handle debug registers.
17711 (child_add_thread): Likewise.
17712 (child_init_thread_list): Likewise.
17713 (continue_one_thread): Likewise.
17714 (regptr): New.
17715 (do_child_fetch_inferior_registers): Move to ...
17716 * win32-i386-low.c: ... here, and rename to ...
17717 (do_fetch_inferior_registers): ... this.
889bf7c5 17718 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
17719 Go through the low target.
17720 (do_child_store_inferior_registers): Use regptr.
17721 (strwinerror): New function.
17722 (win32_create_inferior): Handle Windows CE.
17723 Use strwinerror instead of strerror on Windows error
17724 codes. Add program to the error output.
17725 Don't close the main thread handle on Windows CE.
17726 (win32_attach): Use coredll.dll on Windows CE.
17727 (win32_kill): Close current process and current
17728 thread handles.
17729 (win32_detach): Use coredll.dll on Windows CE.
17730 (win32_resume): Let low target handle debug registers, and
17731 step request.
17732 (handle_exception): Add/Remove initial breakpoint. Avoid
17733 non-existant WSTOPSIG on Windows CE.
17734 (win32_read_inferior_memory): Cast to remove warning.
17735 (win32_arch_string): Go through the low target.
17736 (initialize_low): Call set_breakpoint_data with the low
17737 target's breakpoint.
17738 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17739 FOP_REGNUM, mappings): Move to ...
17740 * win32-i386-low.c: ... here.
17741 * win32-low.c (win32_thread_info): Move to ...
17742 * win32-low.h: ... here.
17743 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17744 win32-arm-low.c and wincecompat.c.
17745 (all:): Add $EXEEXT.
17746 (install-only:): Likewise.
17747 (gdbserver:): Likewise.
17748 (gdbreplay:): Likewise.
17749 * config.in: Regenerate.
17750 * configure: Regenerate.
17751
41093d81
PA
177522007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17753
17754 * win32-low.c: Rename typedef thread_info to
17755 win32_thread_info throughout.
17756
544afa54
PA
177572007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17758
17759 * win32-i386-low.c: Rename to ...
17760 * win32-low.c: ... this.
17761 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17762 * Makefile.in: Likewise.
17763
bce7165d
PA
177642007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17765
17766 * remote-utils.c (monitor_output): Constify msg parameter.
17767 * server.h (monitor_output): Likewise.
17768 * win32-i386-low.c (handle_output_debug_string): New.
17769 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17770 handle_output_debug_string.
17771 (get_child_debug_event): Likewise.
17772
506c7aa0
DJ
177732007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17774
17775 * server.c (main): Correct strtoul check.
17776
42c81e2a
DJ
177772007-03-27 Jon Ringle <jon@ringle.org>
17778
17779 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17780
9453113a
DJ
177812007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17782
17783 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17784
64a69107
DJ
177852007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17786
17787 * terminal.h: Check HAVE_SGTTY_H.
17788
177892007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
17790
17791 * remote-utils.c (remote_open): Print out the assigned port number.
17792
c74d0ad8
DJ
177932007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17794
17795 * remote-utils.c (monitor_output): New function.
17796 * server.c (debug_threads): Define here.
17797 (monitor_show_help): New function.
17798 (handle_query): Handle qRcmd.
17799 (main): Do not handle 'd' packet.
17800 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17801 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17802 of debug_threads.
17803
de7c3b4a
PA
178042007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17805
17806 * Makefile.in (EXEEXT): New.
17807 (clean): Use $(EXEEXT).
17808
ef57601b
PA
178092007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17810
17811 * target.h (target_ops): Rename send_signal to request_interrupt,
17812 and remove enum target_signal parameter.
17813 * linux-low.c (linux_request_interrupt): Rename from
17814 linux_send_signal, and always send SIGINT.
17815 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17816 and always send SIGINT.
17817 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17818 of send_signal.
17819 (input_interrupt): Likewise.
17820
820f2bda
PA
178212007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17822
17823 * server.c (get_features_xml): Check if target implemented
17824 arch_string.
17825 * win32-i386-low.c (win32_arch_string): New.
17826 (win32_target_ops): Add win32_arch_string as arch_string member.
17827
ab39bf24
UW
178282007-02-22 Markus Deuling <deuling@de.ibm.com>
17829
17830 * spu-low.c (spu_arch_string): New.
17831 (spu_target_ops): Add spu_arch_string.
17832
61ff6e04
DJ
178332007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17834
17835 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17836 * configure.ac: Do not check for terminal.h.
17837 * configure, config.in: Regenerated.
17838
fb1e4ffc
DJ
178392007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17840
17841 * Makefile.in (OBS): Add $(XML_BUILTIN).
17842 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17843 (clean): Update.
17844 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17845 (arm-with-iwmmxt.c): New.
17846 * config.in, configure: Regenerate.
17847 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17848 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17849 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17850 (arm*-*-linux*): Add iWMMXt and regset support.
17851 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17852 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17853 (arm_store_wmmxregset, target_regsets): New.
17854 * server.c (get_features_xml): Take annex argument. Check builtin
17855 XML documents.
17856 (handle_query): Handle multiple annexes.
17857
0f48aa01
DJ
178582007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17859
17860 * remote-utils.c [USE_WIN32API] (read, write): Define.
17861 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17862 write.
17863
23181151
DJ
178642007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17865
17866 * linux-i386-low.c (the_low_target): Set arch_string.
17867 * linux-x86-64-low.c (the_low_target): Likewise.
17868 * linux-low.c (linux_arch_string): New.
17869 (linux_target_ops): Add it.
17870 * linux-low.h (struct linux_target_ops): Add arch_string.
17871 * server.c (write_qxfer_response): Use const void * for DATA.
17872 (get_features_xml): New.
17873 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17874 * target.h (struct target_ops): Add arch_string method.
17875
9d606399
DJ
178762007-01-03 Denis Pilat <denis.pilat@st.com>
17877 Daniel Jacobowitz <dan@codesourcery.com>
17878
17879 * linux-low.c (linux_kill): Handle being called with no threads.
17880 * win32-i386-low.c (win32_kill): Likewise.
17881 (get_child_debug_event): Clear current_process_handle.
17882
178832006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
17884 Daniel Jacobowitz <dan@codesourcery.com>
17885
17886 * remote-utils.c (remote_open): Check the type of specified
17887 serial port devices before opening them.
17888 * server.c (main): Kill the inferior if an error occurs during
17889 the first remote_open.
17890
a5e13d24
DJ
178912006-12-05 Markus Deuling <deuling@de.ibm.com>
17892
17893 * README: Update supported targets.
17894
186947f7
DJ
178952006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17896
17897 * Makefile.in (clean): Remove reg-mips64.c.
17898 (reg-mips64.c, reg-mips64.o): New rules.
17899 * configure.srv: Handle mips64. Include regset support for mips.
17900 * linux-mips-low.c (union mips_register): New.
17901 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17902 (mips_breakpoint, mips_breakpoint_at): Use int.
17903 (mips_collect_register, mips_supply_register)
17904 (mips_collect_register_32bit, mips_supply_register_32bit)
17905 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17906 (mips_store_fpregset, target_regsets): New.
17907 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17908
a13e2c95
UW
179092006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17910
17911 * configure.srv: Add target "spu*-*-*".
17912 * Makefile.in (clean): Remove reg-spu.c.
17913 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17914 * spu-low.c: New file.
17915
cb7283db
DJ
179162006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17917
17918 * configure.ac: Correct td_thr_tls_get_addr test.
17919 * configure: Regenerated.
17920
89be2091
DJ
179212006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17922
17923 * linux-low.c (linux_wait_for_event): Reformat. Use the
17924 pass_signals array.
17925 * remote-utils.c (decode_address_to_semicolon): New.
17926 * server.c (pass_signals, handle_general_set): New.
17927 (handle_query): Mention QPassSignals for qSupported.
17928 (main): Call handle_general_set.
17929 * server.h (pass_signals, decode_address_to_semicolon): New.
17930
000ef4f0
DJ
179312006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17932
17933 * server.c (handle_query): Correct error handling for read_auxv.
17934
b7149293
UW
179352005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17936
17937 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17938 and srv_linux_thread_db to yes.
17939 * linux-s390-low.c (s390_fill_gregset): New function.
17940 (target_regsets): Define data structure.
17941
dae5f5cf
DJ
179422006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17943
17944 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17945 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17946 * config.in, configure: Regenerated.
17947 * inferiors.c (gdb_id_to_thread): New function.
17948 (gdb_id_to_thread_id): Use it.
17949 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17950 * linux-low.h (struct process_info): Add th member.
17951 (thread_db_get_tls_address): New prototype.
17952 * remote-utils.c (decode_address): Make non-static.
17953 * server.c (handle_query): Handle qGetTLSAddr.
17954 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17955 * target.h (struct target_ops): Add get_tls_address.
17956 * thread-db.c (maybe_attach_thread): Save the thread handle.
17957 (thread_db_get_tls_address): New.
17958
32ca6d61
DJ
179592006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17960
17961 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17962 (linux_resume_one_process): Take a siginfo_t *. Update all
17963 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17964 (struct pending_signals): Add a siginfo_t.
17965 (linux_wait_for_process): Always set last_status.
17966 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17967 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17968 * linux-low.h (struct process_info): Add last_status.
17969
5ffff7c1
DJ
179702006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17971
17972 * remote-utils.c (try_rle): New function.
17973 (putpkt_binary): Use it.
17974
8695c747
DJ
179752006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17976
17977 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17978 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17979 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17980 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17981 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17982 point registers.
17983
290fadea
RS
179842006-08-08 Richard Sandiford <richard@codesourcery.com>
17985
17986 * server.c (terminal_fd): New variable.
17987 (old_foreground_pgrp): Likewise.
17988 (restore_old_foreground_pgrp): New function.
17989 (start_inferior): Record the terminal file descriptor in terminal_fd
17990 and its original foreground group in old_foreground_pgrp. Register
17991 restore_old_foreground_pgrp with atexit().
17992
9f2e1e63
DJ
179932006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17994
17995 * server.c (handle_query): Correct qPart to qXfer.
17996
b80864fb
DJ
179972006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17998
17999 * configure.ac: Check for more headers which are missing on
18000 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18001 * configure.srv: Add Cygwin and mingw32.
18002 * remote-utils.c: Don't include headers unconditionally which
18003 are missing on mingw32. Include <winsock.h> for mingw32.
18004 (remote_open): Adjust for mingw32 support. Flush
18005 standard error after writing to it.
18006 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18007 (unblock_async_io, enable_async_io, disable_async_io)
18008 (readchar, getpkt): Update for Winsock support.
18009 (prepare_resume_reply): Expect a protocol signal number.
18010 * server.c: Disable <sys/wait.h> on mingw32.
18011 (start_inferior): Adjust for mingw32 support. Flush
18012 standard error after writing to it.
18013 (attach_inferior): Likewise. Use protocol signal
18014 numbers.
18015 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18016 and names.
18017 * win32-i386-low.c: New file.
18018 * Makefile.in (XM_CLIBS): Set.
18019 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18020 (win32-i386-low.o): New dependency rule.
18021 * linux-low.c (linux_wait): Use target signal numbers.
18022 * target.h (struct target_ops): Doc fix.
18023 * server.h (target_signal_to_name): New prototype.
18024 * gdbreplay.c: Don't include headers unconditionally which
18025 are missing on mingw32. Include <winsock.h> for mingw32.
18026 (remote_close, remote_open): Adjust for Winsock support.
18027 * configure, config.in: Regenerated.
18028
0876f84a
DJ
180292006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18030
18031 * server.c (decode_xfer_read, write_qxfer_response): New.
18032 (handle_query): Take a packet length argument. Handle
18033 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18034 the qSupported response.
18035 (main): Update call to handle_query.
18036
01f9e8fa
DJ
180372006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18038
18039 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18040 (putpkt_binary): Renamed from putpkt and adjusted for binary
18041 data.
18042 (putpkt): New wrapper for putpkt_binary.
18043 (readchar): Don't mask off the high bit.
18044 (decode_X_packet): New function.
18045 * server.c (main): Call putpkt_binary if a handler sets the packet
18046 length. Save the length of the incoming packet. Handle 'X'.
18047 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18048
be2a5f71
DJ
180492006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18050
18051 * server.c (handle_query): Handle qSupported.
18052
ea025f5f
DJ
180532006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18054
18055 * remote-utils.c (all_symbols_looked_up): New variable.
18056 (look_up_one_symbol): Check it.
18057 * server.h (look_up_one_symbol): New declaration.
18058 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18059
9308fc88
DJ
180602006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18061
18062 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 18063 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
18064 (PTRACE_GET_THREAD_AREA): Define.
18065 (ps_get_thread_area): New function.
18066
52fb6437
NS
180672006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18068
18069 * configure.srv (m68k*-*-uclinux*): New target.
18070 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18071 (linux_resume_one_process): Remove extraneous cast.
18072 (linux_read_offsets): New.
18073 (linux_target_op): Add linux_read_offsets on mmuless systems.
18074 * server.c (handle_query): Add qOffsets logic.
18075 * target.h (struct target_ops): Add read_offsets.
18076
21b0f40c
DJ
180772006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18078
18079 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18080 (PTRACE_GET_THREAD_AREA): Define.
18081 (ps_get_thread_area): New function.
18082 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18083 (linux-x86-64-low.o): Update.
18084
0050a760
DJ
180852006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18086
18087 * configure.ac: Remove checks for prfpregset_t.
18088 * gdb_proc_service.h: New file.
18089 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18090 new "gdb_proc_service.h".
18091 * proc-service.c: Likewise.
18092 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18093 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18094 * Makefile.in (gdb_proc_service_h): Updated.
18095 * configure, config.in: Regenerated.
18096
b92a518e
DJ
180972006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18098
18099 * remote-utils.c (prepare_resume_reply): Move declaration
18100 of gdb_id_from_wait to the top of the block.
18101
545587ee
DJ
181022006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18103
18104 * linux-low.c (regsets_store_inferior_registers): Read the regset
18105 from the target before filling it.
18106
9db87ebd
DJ
181072006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18108
18109 * server.c (attach_inferior): Return SIGTRAP for a successful
18110 attach.
18111
dd24457d
DJ
181122006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18113
18114 * Makefile.in (OBS): Add version.o.
18115 (STAGESTUFF): Delete.
18116 (version.o): Add dependencies.
18117 (version.c): Replace rule.
18118 (clean): Remove version.c.
18119 * server.c (gdbserver_version): New.
18120 (gdbserver_usage): Use printf.
18121 (main): Handle --version and --help.
18122 * server.h (version, host_name): Add declarations.
18123
6f0f660e
EZ
181242005-12-23 Eli Zaretskii <eliz@gnu.org>
18125
889bf7c5
PA
18126 * linux-arm-low.c:
18127 * linux-arm-low.c:
18128 * inferiors.c:
18129 * i387-fp.h:
18130 * i387-fp.c:
18131 * gdbreplay.c:
18132 * regcache.c:
18133 * proc-service.c:
18134 * mem-break.h:
18135 * mem-break.c:
18136 * linux-x86-64-low.c:
18137 * linux-sh-low.c:
18138 * linux-s390-low.c:
18139 * linux-ppc64-low.c:
18140 * linux-ppc-low.c:
18141 * linux-mips-low.c:
18142 * linux-m68k-low.c:
18143 * linux-m32r-low.c:
18144 * linux-low.h:
18145 * linux-low.c:
18146 * linux-ia64-low.c:
18147 * linux-i386-low.c:
18148 * linux-crisv32-low.c:
18149 * thread-db.c:
18150 * terminal.h:
18151 * target.h:
18152 * target.c:
18153 * server.h:
18154 * server.c:
18155 * remote-utils.c:
18156 * regcache.h:
18157 * utils.c:
18158 * Makefile.in:
18159 * configure.ac:
6f0f660e
EZ
18160 * gdbserver.1: Add (C) after Copyright. Update the FSF
18161 address.
18162
9d1fb177
DJ
181632005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18164
18165 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18166 (arm_breakpoint_at): Recognize both breakpoints.
18167 (the_low_target): Use the correct breakpoint instruction.
18168
011a70c2
DJ
181692005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18170
18171 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18172 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18173 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18174 (the_low_target): Update.
18175
7fb85e41
AS
181762005-10-25 Andreas Schwab <schwab@suse.de>
18177
18178 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18179
18180 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18181 (ia64_num_regs): Reduce to 462.
18182
3db0444b
DJ
181832005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18184
18185 * acinclude.m4: Correct quoting.
18186 * aclocal.m4: Regenerated.
18187
18188 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18189 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18190 (thread_db_init): Call thread_db_err_str.
18191 * configure.ac: Check for TD_VERSION.
18192 * config.in, configure: Regenerated.
18193
bee0189a
DJ
181942005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18195
18196 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18197
e9d25b98
DJ
181982005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18199
18200 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18201 is not available. Define HAVE_PTRACE_GETREGS if it is.
18202 * config.in, configure: Regenerated.
18203 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18204 * linux-i386-low.c, linux-m68k-low.c: Update to use
18205 HAVE_PTRACE_GETREGS.
18206 * linux-low.c (regsets_fetch_inferior_registers)
18207 (regsets_store_inferior_registers): Only return 0 if we processed
18208 GENERAL_REGS.
18209 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18210 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18211
a06660f7
DJ
182122005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18213
18214 * inferiors.c (struct thread_info): Add gdb_id.
18215 (add_thread): Add gdb_id argument.
18216 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18217 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18218 calls to add_thread.
18219 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18220 * server.c (handle_query): Use thread_to_gdb_id.
18221 (handle_v_cont, main): Use gdb_id_to_thread_id.
18222 * server.h (add_thread): Update prototype.
18223 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18224 prototypes.
18225
5a1f5858
DJ
182262005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18227
18228 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18229 left-padded registers.
18230 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18231 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18232
e122f1f5
SE
182332005-07-01 Steve Ellcey <sje@cup.hp.com>
18234
18235 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18236 * configure: Regenerate.
18237 * config.in: Regenerate.
18238 * server.h (NEED_DECLARATION_STRERROR):
18239 Replace with !HAVE_DECL_STRERROR.
18240
d592fa2f
DJ
182412005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18242
18243 * linux-low.c (linux_wait, linux_send_signal): Don't test
18244 an unsigned long variable for > 0 if it could be MAX_ULONG.
18245 * server.c (myresume): Likewise.
18246 * target.c (set_desired_inferior): Likewise.
18247
ccbd4912
MK
182482005-06-13 Mark Kettenis <kettenis@gnu.org>
18249
18250 * configure.ac: Simplify and improve check for socklen_t.
18251 * configure, config.in: Regenerate.
18252
f450004a
DJ
182532005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18254
18255 * acconfig.h: Remove.
18256 * configure.ac: Add a test for socklen_t. Use three-argument
18257 AC_DEFINE throughout.
18258 * config.in: Regenerated using autoheader 2.59.
18259 * configure: Regenerated.
18260
18261 * gdbreplay.c (socklen_t): Provide a default.
18262 (remote_open): Use socklen_t.
18263 * remote-utils.c (socklen_t): Provide a default.
18264 (remote_open): Use socklen_t.
18265 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18266 unsigned char.
18267
18268 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18269 char for buffers.
18270 * linux-low.c (linux_read_memory, linux_write_memory)
18271 (linux_read_auxv): Likewise.
18272 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18273 (check_mem_write): Likewise.
18274 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18275 Likewise.
18276 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18277 (registers_from_string, register_data): Likewise.
18278 * server.c (handle_query, main): Likewise.
18279 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18280 (decode_M_packet): Likewise.
18281 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18282 * target.h (struct target_ops): Update read_memory, write_memory,
18283 and read_auxv.
18284 (read_inferior_memory, write_inferior_memory): Update.
18285 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18286 to unsigned char *.
18287 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18288 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18289 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18290 linux-s390-low.c, linux-sh-low.c: Update for changes in
18291 read_inferior_memory and the_low_target->breakpoint.
18292
eee84df1
DJ
182932005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18294
18295 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18296 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18297 * configure.srv: Add powerpc64-*-linux*.
18298 * linux-ppc64-low.c: New file.
18299
45b134e5
OF
183002005-05-23 Orjan Friberg <orjanf@axis.com>
18301
18302 * linux-cris-low.c: New file with support for CRIS.
18303 * linux-crisv32-low.c: Ditto for CRISv32.
18304 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18305 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 18306 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
18307 reg-crisv32.o, and reg-crisv32.c to make rules.
18308 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18309 recognized targets.
18310
48d93c75
UW
183112005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18312
18313 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18314 of sizeof (PTRACE_XFER_TYPE).
18315 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18316
e013ee27
OF
183172005-05-12 Orjan Friberg <orjanf@axis.com>
18318
889bf7c5 18319 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
18320 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18321 pointers for hardware watchpoint support.
18322 * linux-low.h (struct linux_target_ops): Ditto.
18323 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18324 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18325 to linux_target_ops.
18326 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18327 reply packet.
18328 * server.c (main): Recognize 'Z' and 'z' packets.
18329
b0ded00b
UW
183302005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18331
18332 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18333 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18334 (the_low_target): Add new members.
18335
8643e2ad
DJ
183362005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18337
18338 * proc-service.c (ps_lgetregs): Search all_processes instead of
18339 all_threads.
18340
fc620387
DJ
183412005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18342
18343 * server.c (start_inferior): Change return type to int.
18344 (attach_inferior): Change sigptr to int *.
18345 (handle_v_cont, handle_v_requests): Change signal to int *.
18346 (main): Change signal to int.
18347
183482005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
18349
18350 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18351 * configure.srv: Add m32r*-*-linux*.
18352 * linux-m32r-low.c: New file.
18353
e0e76420
DJ
183542005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18355
18356 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18357
a1928bad
DJ
183582005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18359
18360 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18361 Take unsigned long arguments for PIDs.
18362 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18363 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18364 (wait_for_sigstop, linux_resume_one_process)
18365 (regsets_fetch_inferior_registers, linux_send_signal)
18366 (linux_read_auxv): Likewise. Update the types of variables holding
18367 PIDs. Update format string specifiers.
18368 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18369 * remote-utils.c (prepare_resume_reply): Likewise.
18370 * server.c (cont_thread, general_thread, step_thread)
18371 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18372 unsigned long.
18373 (handle_query): Update format specifiers.
18374 (handle_v_cont, main): Use strtoul for thread IDs.
18375 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18376 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18377 (general_thread, step_thread, thread_from_wait)
18378 (old_thread_from_wait): Update.
18379 * target.h (struct thread_resume): Use unsigned long for THREAD.
18380 (struct target_ops): Use unsigned long for arguments to attach and
18381 thread_alive.
18382
dcdb98d2
DJ
183832005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18384
18385 * acinclude.m4: Include bfd/bfd.m4 directly.
18386 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18387 <agriffis@toolchain.org>.
18388 * aclocal.m4, configure: Regenerated.
18389
bec39cab
AC
183902005-01-07 Andrew Cagney <cagney@gnu.org>
18391
18392 * configure.ac: Rename configure.in, require autoconf 2.59.
18393 * configure: Re-generate.
18394
434c4c77
DJ
183952004-12-08 Daniel Jacobowitz <dan@debian.org>
18396
18397 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18398 LIBS when finished.
18399 * aclocal.m4: Regenerated.
18400 * configure: Regenerated.
18401
db1d3e1b
AS
184022004-11-21 Andreas Schwab <schwab@suse.de>
18403
18404 * linux-m68k-low.c (m68k_num_gregs): Define.
18405 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18406 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18407 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18408 (m68k_breakpoint_at): New. Add to the_low_target.
18409
18410 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18411 srv_linux_thread_db to yes.
18412
43360365
JB
184132004-10-20 Joel Brobecker <brobecker@gnat.com>
18414
18415 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18416 (ARCH_SET_FS): Likewise.
18417 (ARCH_GET_FS): Likewise.
18418 (ARCH_GET_GS): Likewise.
18419
fd500816
DJ
184202004-10-16 Daniel Jacobowitz <dan@debian.org>
18421
18422 * linux-i386-low.c (ps_get_thread_area): New.
18423 * linux-x86-64-low.c (ps_get_thread_area): New.
18424 * linux-low.c: Include <sys/syscall.h>.
18425 (linux_kill_one_process): Don't kill the first thread here.
18426 (linux_kill): Kill the first thread here.
18427 (kill_lwp): New function.
18428 (send_sigstop, linux_send_signal): Use it.
18429 * proc-service.c: Clean up #ifdefs.
18430 (fpregset_info): Delete.
18431 (ps_lgetregs): Update and enable implementation.
18432 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18433 implementations.
18434 * remote-utils.c (struct sym_cache, symbol_cache): New.
18435 (input_interrupt): Print a clearer message.
18436 (async_io_enabled): New variable.
18437 (enable_async_io, disable_async_io): Use it. Update comments.
18438 (look_up_one_symbol): Use the symbol cache.
18439 * thread-db.c (thread_db_look_up_symbols): New function.
18440 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18441
f6de3c42
DJ
184422004-10-16 Daniel Jacobowitz <dan@debian.org>
18443
18444 * configure.in: Test for -rdynamic.
18445 * configure: Regenerated.
18446 * Makefile (INTERNAL_LDFLAGS): New.
18447 (gdbserver, gdbreplay): Use it.
18448
2c0fc042
AC
184492004-09-02 Andrew Cagney <cagney@gnu.org>
18450
18451 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18452
075b3282
DJ
184532004-03-23 Daniel Jacobowitz <drow@mvista.com>
18454
18455 * linux-low.c (linux_wait): Clear all_processes list also.
18456
fa6a77dc
DJ
184572004-03-12 Daniel Jacobowitz <drow@mvista.com>
18458
18459 * linux-low.c: Include <errno.h>. Remove extern declaration of
18460 errno.
18461
6d782a97
DJ
184622004-03-12 Daniel Jacobowitz <drow@mvista.com>
18463
18464 * gdbreplay.c, server.h, utils.c: Update copyright years.
18465
3a7fb99b
DJ
184662004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18467
18468 * server.c (main): Print child status or termination signal from
18469 variable 'signal', not 'sig'.
18470
c3e735a6
DJ
184712004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18472
18473 * linux-low.c (linux_read_memory): Change return type to
18474 int. Check for and return error from ptrace().
18475 * target.c (read_inferior_memory): Change return type to int. Pass
18476 back return status from the_target->read_memory().
18477 * target.h (struct target_ops): Adapt *read_memory() prototype.
18478 Update comment.
18479 (read_inferior_memory): Adapt prototype.
18480 * server.c (main): Return an error packet if
18481 read_inferior_memory() returns an error.
18482
a59d1c82
DJ
184832004-03-04 Daniel Jacobowitz <drow@mvista.com>
18484
18485 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18486 Unify with other clean targets.
18487
dc3f8883
DJ
184882004-02-29 Daniel Jacobowitz <drow@mvista.com>
18489
18490 * server.c (handle_v_cont): Call set_desired_inferior.
18491
89a208da
DJ
184922004-02-29 Daniel Jacobowitz <drow@mvista.com>
18493
18494 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18495
62ea82f5
DJ
184962004-02-29 Daniel Jacobowitz <drow@mvista.com>
18497
18498 * linux-low.c (linux_wait): Unblock async I/O.
18499 (linux_resume): Block and enable async I/O.
18500 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18501 * server.h (block_async_io, unblock_async_io): Add prototypes.
18502
6910d122
DJ
185032004-02-29 Daniel Jacobowitz <drow@mvista.com>
18504
18505 * remote-utils.c (remote_open): Print a status notice after
18506 opening a TCP port.
18507 * server.c (attach_inferior): Print a status notice after
18508 attaching.
18509
185102004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
18511
18512 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18513
c89dc5d4
DJ
185142004-02-26 Daniel Jacobowitz <drow@mvista.com>
18515
18516 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18517 error packet.
18518 * server.c, target.h: Update copyright years.
18519
4b8dad4a
RM
185202004-02-25 Roland McGrath <roland@redhat.com>
18521
18522 * target.h (struct target_ops): New member `read_auxv'.
18523 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18524 * linux-low.c (linux_read_auxv): New function.
18525 (linux_target_ops): Initialize `read_auxv' member to that.
18526
d7446758
JB
185272004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18528
18529 Committed by Jim Blandy <jimb@redhat.com>.
18530
18531 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 18532 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
18533 instead of GPR_SIZE to distiguish s390 and s390x targets.
18534
5544ad89
DJ
185352004-01-31 Daniel Jacobowitz <drow@mvista.com>
18536
18537 * linux-low.c: Update copyright year.
18538 (check_removed_breakpoint): Clear pending_is_breakpoint.
18539 (linux_set_resume_request, linux_queue_one_thread)
18540 (resume_status_pending_p): New functions.
18541 (linux_continue_one_thread): Use process->resume.
18542 (linux_resume): Only resume threads if there are no pending events.
18543 * linux-low.h (struct process_info): Add resume request
18544 pointer.
18545
2a68b70e
DJ
185462004-01-30 Daniel Jacobowitz <drow@mvista.com>
18547
18548 * regcache.c (new_register_cache): Clear the allocated register
18549 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18550
64386c31
DJ
185512003-10-13 Daniel Jacobowitz <drow@mvista.com>
18552
18553 * linux-low.c (linux_resume): Take a struct thread_resume *
18554 argument.
18555 (linux_wait): Update call.
18556 (resume_ptr): New static variable.
18557 (linux_continue_one_thread): Renamed from
18558 linux_continue_one_process. Use resume_ptr.
18559 (linux_resume): Use linux_continue_one_thread.
18560 * server.c (handle_v_cont, handle_v_requests): New functions.
18561 (myresume): New function.
18562 (main): Handle 'v' case.
18563 * target.h (struct thread_resume): New type.
18564 (struct target_ops): Change argument of "resume" to struct
18565 thread_resume *.
18566 (myresume): Delete macro.
18567
c938e9b0
L
185682003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18569
18570 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18571 (uninstall): Support DESTDIR.
18572
7f313d07
BC
18573Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18574
18575 * configure.srv: Add xscale*linux copy of arm*linux entry.
18576
3b2fc2ea
DJ
185772003-07-24 Daniel Jacobowitz <drow@mvista.com>
18578
18579 * linux-arm-low.c (arm_reinsert_addr): New function.
18580 (the_low_target): Add arm_reinsert_addr.
18581
1c0a559e
MK
185822003-07-08 Mark Kettenis <kettenis@gnu.org>
18583
18584 * mem-break.c: Remove whitespace at end of file.
18585
43d5792c
DJ
185862003-06-28 Daniel Jacobowitz <drow@mvista.com>
18587
18588 * configure.in: Check whether we need to prototype strerror.
18589 * server.h: Optionally prototype strerror.
18590 * gdbreplay.c (perror_with_name): Use strerror.
18591 * linux-low.c (linux_attach_lwp): Use strerror.
18592 * utils.c (perror_with_name): Use strerror.
18593 * config.in, configure: Regenerated.
18594
c8a86edf
DJ
185952003-06-28 Daniel Jacobowitz <drow@mvista.com>
18596
18597 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18598 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18599
73d37363
DJ
186002003-06-20 Daniel Jacobowitz <drow@mvista.com>
18601
18602 * Makefile.in (SFILES): Update.
18603 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18604 low-sun3.c: Remove files.
18605
6ad8ae5c
DJ
186062003-06-17 Daniel Jacobowitz <drow@mvista.com>
18607
18608 * linux-low.c: Move comment to linux_thread_alive where it belonged.
18609 (linux_detach_one_process, linux_detach): New functions.
18610 (linux_target_ops): Add linux_detach.
18611 * server.c (main): Handle 'D' packet.
18612 * target.h (struct target_ops): Add "detach" member.
18613 (detach_inferior): Define.
18614
1581182a
MK
186152003-06-13 Mark Kettenis <kettenis@gnu.org>
18616
18617 From Kelley Cook <kelleycook@wideopenwest.com>:
18618 * configure.srv: Accept i[34567]86 variants.
18619
e5379b03
DJ
186202003-06-05 Daniel Jacobowitz <drow@mvista.com>
18621
18622 * linux-low.c (linux_wait_for_event): Correct comment typos.
18623 (linux_resume_one_process): Call check_removed_breakpoint.
18624 (linux_send_signal): New function.
18625 (linux_target_ops): Add linux_send_signal.
18626 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
18627 of kill.
18628 * target.h (struct target_ops): Add send_signal.
18629
2ff29de4
JB
186302003-05-29 Jim Blandy <jimb@redhat.com>
18631
18632 * linux-low.c (usr_store_inferior_registers): Transfer buf in
18633 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
18634 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
18635 away part of the register's value.
18636
254787d4
DJ
186372003-03-26 Daniel Jacobowitz <drow@mvista.com>
18638
18639 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
18640 (linux_wait_for_event, linux_init_signals): Likewise.
18641
94e10508
DJ
186422003-03-17 Daniel Jacobowitz <drow@mvista.com>
18643
18644 * configure.in: Check for stdlib.h.
18645 * configure: Regenerated.
18646 * config.in: Regenerated.
18647
4c0711e0
DJ
186482003-01-04 Andreas Schwab <schwab@suse.de>
18649
18650 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
18651
ef66e766
AC
186522003-01-02 Andrew Cagney <ac131313@redhat.com>
18653
18654 * Makefile.in: Remove obsolete code.
18655
a1358604
DJ
186562002-11-20 Daniel Jacobowitz <drow@mvista.com>
18657
18658 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18659 defined(PT_FPR0_HI).
18660
23ce3b1c
DJ
186612002-11-17 Stuart Hughes <seh@zee2.com>
18662
18663 * linux-arm-low.c (arm_num_regs): Increase.
18664 (arm_regmap): Include status register.
18665
186662002-11-17 Daniel Jacobowitz <drow@mvista.com>
18667
18668 * linux-low.c (register_addr): Remove incorrect -1 check.
18669
a9fa9f7d
DJ
186702002-08-29 Daniel Jacobowitz <drow@mvista.com>
18671
18672 * linux-low.c (linux_create_inferior): Call setpgid. Return
18673 the new PID.
18674 (unstopped_p, linux_signal_pid): Remove.
18675 (linux_target_ops): Remove linux_signal_pid.
18676 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18677 global instead of target method.
18678 * target.h (struct target_ops): Remove signal_pid. Update comment
18679 for create_inferior.
18680 * server.c (signal_pid): New variable.
18681 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 18682 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
18683 (attach_inferior): Set signal_pid.
18684
17574093
DJ
186852002-08-23 Daniel Jacobowitz <drow@mvista.com>
18686
18687 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18688
186892002-08-20 Jim Blandy <jimb@redhat.com>
18690
18691 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18692 default for this.
18693
186942002-08-01 Andrew Cagney <cagney@redhat.com>
18695
18696 * Makefile.in: Make chill references obsolete.
18697
186982002-07-24 Kevin Buettner <kevinb@redhat.com>
18699
18700 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18701 * configure: Regenerate.
18702 * config.in: Regenerate.
18703
187042002-07-09 David O'Brien <obrien@FreeBSD.org>
18705
18706 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18707 (perror_with_name, remote_close, remote_open, expect, play): Static.
18708
187092002-07-04 Michal Ludvig <mludvig@suse.cz>
18710
4b8dad4a 18711 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
18712 byte offsets instead of an array of indexes.
18713 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18714
187152002-06-13 Daniel Jacobowitz <drow@mvista.com>
18716
18717 * regcache.c: Add comment.
18718
187192002-06-11 Daniel Jacobowitz <drow@mvista.com>
18720
18721 * thread-db.c: New file.
18722 * proc-service.c: New file.
18723 * acinclude.m4: New file.
18724 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18725 proc-service.o, and thread-db.o.
18726 (linux-low.o): Add USE_THREAD_DB.
18727 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18728 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18729 * aclocal.m4: Regenerated.
18730 * config.in: Regenerated.
18731 * configure: Regenerated.
18732 * configure.in: Check for proc_service.h, sys/procfs.h,
18733 thread_db.h, and linux/elf.h headrs.
18734 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18735 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18736 Check for -lthread_db and thread support.
18737 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18738 PowerPC, and SuperH.
18739 * i387-fp.c: Constify arguments.
18740 * i387-fp.h: Likewise.
18741 * inferiors.c: (struct thread_info): Renamed from
18742 `struct inferior_info'. Remove PID member. Use generic inferior
18743 list header. All uses updated.
18744 (inferiors, signal_pid): Removed.
18745 (all_threads): New variable.
18746 (get_thread): Define.
18747 (add_inferior_to_list): New function.
18748 (for_each_inferior): New function.
18749 (change_inferior_id): New function.
18750 (add_inferior): Removed.
18751 (remove_inferior): New function.
18752 (add_thread): New function.
18753 (free_one_thread): New function.
18754 (remove_thread): New function.
18755 (clear_inferiors): Use for_each_inferior and free_one_thread.
18756 (find_inferior): New function.
18757 (find_inferior_id): New function.
18758 (inferior_target_data): Update argument type.
18759 (set_inferior_target_data): Likewise.
18760 (inferior_regcache_data): Likewise.
18761 (set_inferior_regcache_data): Likewise.
18762 * linux-low.c (linux_bp_reinsert): Remove.
18763 (all_processes, stopping_threads, using_thrads)
18764 (struct pending_signals, debug_threads, pid_of): New.
18765 (inferior_pid): Replace with macro.
18766 (struct inferior_linux_data): Remove.
18767 (get_stop_pc, add_process): New functions.
18768 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18769 Use add_process and add_thread.
18770 (linux_attach_lwp): New function, based on old linux_attach. Use
18771 add_process and add_thread. Set stop_expected for new threads.
18772 (linux_attach): New function.
18773 (linux_kill_one_process): New function.
18774 (linux_kill): Kill all LWPs.
18775 (linux_thread_alive): Use find_inferior_id.
18776 (check_removed_breakpoints, status_pending_p): New functions.
18777 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18778 Update. Use WNOHANG. Wait for cloned processes also. Update process
18779 struct for the found process.
18780 (linux_wait_for_event): New function.
18781 (linux_wait): Use it. Support LWPs.
18782 (send_sigstop, wait_for_sigstop, stop_all_processes)
18783 (linux_resume_one_process, linux_continue_one_process): New functions.
18784 (linux_resume): Support LWPs.
18785 (REGISTER_RAW_SIZE): Remove.
18786 (fetch_register): Use register_size instead. Call supply_register.
18787 (usr_store_inferior_registers): Likewise. Call collect_register.
18788 Fix recursive case.
18789 (regsets_fetch_inferior_registers): Improve error message.
18790 (regsets_store_inferior_registers): Add debugging.
18791 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18792 (unstopped_p, linux_signal_pid): New functions.
18793 (linux_target_ops): Add linux_signal_pid.
18794 (linux_init_signals): New function.
18795 (initialize_low): Call it. Initialize using_threads.
18796 * regcache.c (inferior_regcache_data): Add valid
18797 flag.
18798 (get_regcache): Fetch registers lazily. Add fetch argument
18799 and update all callers.
18800 (regcache_invalidate_one, regcache_invalidate): New
18801 functions.
18802 (new_register_cache): Renamed from create_register_cache.
18803 Return the new regcache.
18804 (free_register_cache): Change argument to a void *.
18805 (registers_to_string, registers_from_string): Call get_regcache
18806 with fetch flag set.
18807 (register_data): Make static. Pass fetch flag to get_regcache.
18808 (supply_register): Call get_regcache with fetch flag clear.
18809 (collect_register): Call get_regcache with fetch flag set.
18810 (collect_register_as_string): New function.
18811 * regcache.h: Update.
18812 * remote-utils.c (putpkt): Flush after debug output and use
18813 stderr.
18814 Handle input interrupts while waiting for an ACK.
18815 (input_interrupt): Use signal_pid method.
18816 (getpkt): Flush after debug output and use stderr.
18817 (outreg): Use collect_register_as_string.
18818 (new_thread_notify, dead_thread_notify): New functions.
18819 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18820 and general_thread.
18821 (look_up_one_symbol): Flush after debug output.
18822 * server.c (step_thread, server_waiting): New variables.
18823 (start_inferior): Don't use signal_pid. Update call to mywait.
18824 (attach_inferior): Update call to mywait.
18825 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18826 (main): Don't fetch/store registers explicitly. Use
18827 set_desired_inferior. Support proposed ``Hs'' packet. Update
18828 calls to mywait.
18829 * server.h: Update.
18830 (struct inferior_list, struct_inferior_list_entry): New.
18831 * target.c (set_desired_inferior): New.
18832 (write_inferior_memory): Constify.
18833 (mywait): New function.
18834 * target.h: Update.
18835 (struct target_ops): New signal_pid method.
18836 (mywait): Removed macro, added prototype.
18837
18838 * linux-low.h (regset_func): Removed.
18839 (regset_fill_func, regset_store_func): New.
18840 (enum regset_type): New.
18841 (struct regset_info): Add type field. Use new operation types.
18842 (struct linux_target_ops): stop_pc renamed to get_pc.
18843 Add decr_pc_after_break and breakpoint_at.
18844 (get_process, get_thread_proess, get_process_thread)
18845 (strut process_info, all_processes, linux_attach_lwp)
18846 (thread_db_init): New.
18847
18848 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18849 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18850 (the_low_target): Add new members.
18851 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18852 (i386_store_fpxregset): Constify.
18853 (target_regsets): Add new kind identifier.
18854 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18855 (i386_set_pc): Add debugging.
18856 (i386_breakpoint_at): New function.
18857 (the_low_target): Add new members.
18858 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18859 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18860 (mips_breakpoint_at): New.
18861 (the_low_target): Add new members.
18862 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18863 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18864 (the_low_target): Add new members.
18865 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18866 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18867 (the_low_target): Add new members.
18868 * linux-x86-64-low.c (target_regsets): Add new kind
18869 identifier.
18870
188712002-05-15 Daniel Jacobowitz <drow@mvista.com>
18872
18873 From Martin Pool <mbp@samba.org>:
18874 * server.c (gdbserver_usage): New function.
18875 (main): Call it.
18876
188772002-05-14 Daniel Jacobowitz <drow@mvista.com>
18878
18879 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18880 stop_at -> stop_pc.
18881
188822002-05-04 Andrew Cagney <ac131313@redhat.com>
18883
18884 * Makefile.in: Remove obsolete code.
18885
188862002-04-24 Michal Ludvig <mludvig@suse.cz>
18887
18888 * linux-low.c (regsets_fetch_inferior_registers),
18889 (regsets_store_inferior_registers): Removed cast to int from
18890 ptrace() calls.
18891 * regcache.h: Added declaration of struct inferior_info.
18892
188932002-04-20 Daniel Jacobowitz <drow@mvista.com>
18894
18895 * inferiors.c (struct inferior_info): Add regcache_data.
18896 (add_inferior): Call create_register_cache.
18897 (clear_inferiors): Call free_register_cache.
18898 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18899 * regcache.c (struct inferior_regcache_data): New.
18900 (registers): Remove.
18901 (get_regcache): New function.
18902 (create_register_cache, free_register_cache): New functions.
18903 (set_register_cache): Don't initialize the register cache here.
18904 (registers_to_string, registers_from_string, register_data): Call
18905 get_regcache.
18906 * regcache.h: Add prototypes.
18907 * server.h: Likewise.
18908
189092002-04-20 Daniel Jacobowitz <drow@mvista.com>
18910
18911 * mem-break.c: New file.
18912 * mem-break.h: New file.
18913 * Makefile.in: Add mem-break.o rule; update server.h
18914 dependencies.
18915 * inferiors.c (struct inferior_info): Add target_data
18916 member.
18917 (clear_inferiors): Free target_data member if set.
18918 (inferior_target_data, set_inferior_target_data): New functions.
18919 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18920 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18921 * linux-low.c (linux_bp_reinsert): New variable.
18922 (struct inferior_linux_data): New.
18923 (linux_create_inferior): Use set_inferior_target_data.
18924 (linux_attach): Likewise. Call add_inferior.
18925 (linux_wait_for_one_inferior): New function.
18926 (linux_wait): Call it.
18927 (linux_write_memory): Add const.
18928 (initialize_low): Call set_breakpoint_data.
18929 * linux-low.h (struct linux_target_ops): Add breakpoint
18930 handling members.
18931 * server.c (attach_inferior): Remove extra add_inferior
18932 call.
18933 * server.h: Include mem-break.h. Update inferior.c
18934 prototypes.
18935 * target.c (read_inferior_memory)
18936 (write_inferior_memory): New functions.
18937 * target.h (read_inferior_memory)
18938 (write_inferior_memory): Change macros to prototypes.
18939 (struct target_ops): Update comments. Add const to write_memory
18940 definition.
18941
189422002-04-11 Daniel Jacobowitz <drow@mvista.com>
18943
18944 * linux-low.c (usr_store_inferior_registers): Support
18945 registers which are allowed to fail to store.
18946 * linux-low.h (linux_target_ops): Likewise.
18947 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18948 (ppc_cannot_store_register): FPSCR may not be storable.
18949
189502002-04-09 Daniel Jacobowitz <drow@mvista.com>
18951
18952 * server.h: Include <string.h> if HAVE_STRING_H.
18953 * ChangeLog: Correct paths in last ChangeLog entry.
18954
189552002-04-09 Daniel Jacobowitz <drow@mvista.com>
18956
18957 * linux-low.h: Remove obsolete prototypes.
18958 (struct linux_target_ops): New.
18959 (extern the_low_target): New.
18960 * linux-low.c (num_regs, regmap): Remove declarations.
18961 (register_addr): Use the_low_target explicitly.
18962 (fetch_register): Likewise.
18963 (usr_fetch_inferior_registers): Likewise.
18964 (usr_store_inferior_registers): Likewise.
18965 * linux-arm-low.c (num_regs): Remove.
18966 (arm_num_regs): Define.
18967 (arm_regmap): Renamed from regmap, made static.
18968 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18969 made static.
18970 (arm_cannot_store_register): Renamed from cannot_store_register,
18971 made static.
18972 (the_low_target): New.
18973 * linux-i386-low.c (num_regs): Remove.
18974 (i386_num_regs): Define.
18975 (i386_regmap): Renamed from regmap, made static.
18976 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18977 made static.
18978 (i386_cannot_store_register): Renamed from cannot_store_register,
18979 made static.
18980 (the_low_target): New.
18981 * linux-ia64-low.c (num_regs): Remove.
18982 (ia64_num_regs): Define.
18983 (ia64_regmap): Renamed from regmap, made static.
18984 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18985 made static.
18986 (ia64_cannot_store_register): Renamed from cannot_store_register,
18987 made static.
18988 (the_low_target): New.
18989 * linux-m68k-low.c (num_regs): Remove.
18990 (m68k_num_regs): Define.
18991 (m68k_regmap): Renamed from regmap, made static.
18992 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18993 made static.
18994 (m68k_cannot_store_register): Renamed from cannot_store_register,
18995 made static.
18996 (the_low_target): New.
18997 * linux-mips-low.c (num_regs): Remove.
18998 (mips_num_regs): Define.
18999 (mips_regmap): Renamed from regmap, made static.
19000 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19001 made static.
19002 (mips_cannot_store_register): Renamed from cannot_store_register,
19003 made static.
19004 (the_low_target): New.
19005 * linux-ppc-low.c (num_regs): Remove.
19006 (ppc_num_regs): Define.
19007 (ppc_regmap): Renamed from regmap, made static.
19008 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19009 made static.
19010 (ppc_cannot_store_register): Renamed from cannot_store_register,
19011 made static.
19012 (the_low_target): New.
19013 * linux-s390-low.c (num_regs): Remove.
19014 (s390_num_regs): Define.
19015 (s390_regmap): Renamed from regmap, made static.
19016 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19017 made static.
19018 (s390_cannot_store_register): Renamed from cannot_store_register,
19019 made static.
19020 (the_low_target): New.
19021 * linux-sh-low.c (num_regs): Remove.
19022 (sh_num_regs): Define.
19023 (sh_regmap): Renamed from regmap, made static.
19024 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19025 made static.
19026 (sh_cannot_store_register): Renamed from cannot_store_register,
19027 made static.
19028 (the_low_target): New.
19029 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19030 (the_low_target): New.
19031
190322002-04-09 Daniel Jacobowitz <drow@mvista.com>
19033
19034 * Makefile.in: Add stamp-h target.
19035 * configure.in: Create stamp-h.
19036 * configure: Regenerated.
19037
190382002-04-09 Daniel Jacobowitz <drow@mvista.com>
19039
19040 * inferiors.c: New file.
19041 * target.c: New file.
19042 * target.h: New file.
19043 * Makefile.in: Add target.o and inferiors.o. Update
19044 dependencies.
19045 * linux-low.c (inferior_pid): New static variable,
19046 moved from server.c.
19047 (linux_create_inferior): Renamed from create_inferior.
19048 Call add_inferior. Return 0 on success instead of a PID.
19049 (linux_attach): Renamed from myattach.
19050 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19051 (linux_thread_alive): Renamed from mythread_alive.
19052 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19053 child dies.
19054 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19055 (regsets_store_inferior_registers): Correct error message.
19056 Add missing ``return 0''.
19057 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19058 (linux_store_registers): Renamed from store_inferior_registers.
19059 (linux_read_memory): Renamed from read_inferior_memory.
19060 (linux_write_memory): Renamed from write_inferior_memory.
19061 (linux_target_ops): New structure.
19062 (initialize_low): Call set_target_ops ().
19063 * remote-utils.c (unhexify): New function.
19064 (hexify): New function.
19065 (input_interrupt): Send signals to ``signal_pid''.
19066 * server.c (inferior_pid): Remove.
19067 (start_inferior): Update create_inferior call.
19068 (attach_inferior): Call add_inferior.
19069 (handle_query): New function.
19070 (main): Call handle_query for `q' packets.
19071 * server.h: Include "target.h". Remove obsolete prototypes.
19072 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19073
190742002-04-09 Daniel Jacobowitz <drow@mvista.com>
19075
19076 * Makefile.in: Add WARN_CFLAGS. Update configury
19077 dependencies.
19078 * configure.in: Check for <string.h>
19079 * configure: Regenerate.
19080 * config.in: Regenerate.
19081 * gdbreplay.c: Include needed system headers.
19082 (remote_open): Remove strchr prototype.
19083 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19084 * regcache.c (supply_register): Change buf argument to const void *.
19085 (supply_register_by_name): Likewise.
19086 (collect_register): Change buf argument to void *.
19087 (collect_register_by_name): Likewise.
19088 * regcache.h: Add missing prototypes.
19089 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19090 * server.c (handle_query): New function.
19091 (attached): New static variable, moved out of main.
19092 (main): Quiet longjmp clobber warnings.
19093 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19094 * utils.c (error): Remove NORETURN.
19095 (fatal): Likewise.
This page took 2.251132 seconds and 4 git commands to generate.